
  :root{
    --bg:#070c14; --surface:rgba(255,255,255,.05); --surface-2:rgba(255,255,255,.04); --surface-3:rgba(255,255,255,.08);
    --primary:#2dd4bf; --primary-dark:#14b8a6; --gold:#a78bfa; --gold-dim:#8b5cf6;
    --text:#eafffb; --muted:#b4cad0; --danger:#ff5d8f; --ok:#2dd4bf; --warn:#facc15;
    --line:rgba(45,212,191,.22); --ring:0 0 0 3px rgba(45,212,191,.35); --shadow:0 8px 30px rgba(45,212,191,.12);
    --glass:rgba(15,24,36,.55); --neon-glow:0 0 24px rgba(45,212,191,.35), 0 0 46px rgba(139,92,246,.18);
  }
  *{box-sizing:border-box;}
  body{ margin:0; min-height:100vh; color:var(--text); font-family:'Tajawal',sans-serif; position:relative; overflow-x:hidden;
    background:
      radial-gradient(650px circle at 10% -5%, rgba(45,212,191,.18), transparent 60%),
      radial-gradient(550px circle at 100% 5%, rgba(139,92,246,.16), transparent 55%),
      radial-gradient(750px circle at 50% 115%, rgba(45,212,191,.12), transparent 60%),
      var(--bg);
  }
  body::before, body::after, body .blob3{ content:''; position:fixed; border-radius:50%; filter:blur(80px); z-index:0; pointer-events:none; animation:floatBlob 16s ease-in-out infinite; }
  body::before{ width:380px; height:380px; background:radial-gradient(circle, var(--gold), transparent 70%); opacity:.4; top:-130px; right:-110px; }
  body::after{ width:340px; height:340px; background:radial-gradient(circle, var(--primary), transparent 70%); opacity:.38; bottom:-110px; left:-100px; animation-delay:-8s; }
  @keyframes floatBlob{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(22px,-26px) scale(1.08); } }
  h1,h2,h3{ text-shadow:0 0 18px rgba(45,212,191,.25); }
  h1,h2,h3{font-family:'El Messiri',sans-serif; margin:0;}
  .hidden{ display:none !important; }
  .btn{ font-family:'Tajawal',sans-serif; border:1px solid transparent; cursor:pointer;
    border-radius:11px; padding:9px 16px; font-size:13.5px; font-weight:700;
    display:inline-flex; align-items:center; gap:6px; transition:transform .15s, box-shadow .15s, background .15s, opacity .15s; }
  .btn:active{ transform:scale(.96); }
  .btn-primary{ background:linear-gradient(180deg,var(--primary),var(--primary-dark)); color:#fff; }
  .btn-primary:hover{ box-shadow:var(--neon-glow); }
  .btn-gold{ background:linear-gradient(180deg,var(--gold),var(--gold-dim)); color:#3a2a10; }
  .btn-ghost{ background:var(--surface-2); color:var(--text); border-color:var(--line); }
  .btn-ghost:hover{ background:var(--surface-3); }
  .btn-danger{ background:transparent; color:var(--danger); border-color:rgba(201,79,95,.4); }
  .btn-sm{ padding:6px 11px; font-size:12px; border-radius:8px; }
  .btn[disabled]{ opacity:.55; cursor:not-allowed; }
  input, textarea{ font-family:'Tajawal',sans-serif; }
  .spinner{ width:13px; height:13px; border:2px solid rgba(255,255,255,.5); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; display:inline-block; }
  @keyframes spin{ to{ transform:rotate(360deg); } }

  #configWarning{ max-width:560px; margin:60px auto; background:var(--glass); backdrop-filter:blur(16px); border:1px solid var(--danger); border-radius:14px; padding:22px; text-align:center; line-height:2; position:relative; }
  #configWarning code{ background:var(--surface-2); padding:2px 6px; border-radius:5px; color:var(--primary-dark); }

  #landing{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; position:relative; z-index:1; }
  .auth-card{ max-width:440px; width:100%; background:var(--glass); backdrop-filter:blur(20px); box-shadow:var(--neon-glow); border:1px solid var(--line); border-radius:22px; padding:30px 28px; }
  .auth-card .mark{ width:52px; height:52px; border-radius:50%; margin:0 auto 12px; background:radial-gradient(circle at 35% 30%, var(--primary), var(--gold) 90%); box-shadow:var(--neon-glow); }
  .auth-card h1{ font-size:24px; text-align:center; margin-bottom:4px; color:var(--primary); }
  .auth-card p.sub{ color:var(--muted); font-size:12.5px; text-align:center; margin:0 0 18px; line-height:1.8; }
  .auth-tabs{ display:flex; gap:6px; background:var(--surface-2); border-radius:11px; padding:4px; margin-bottom:18px; }
  .auth-tab{ flex:1; text-align:center; padding:8px; border-radius:9px; cursor:pointer; font-size:13px; font-weight:700; color:#c5dce0; }
  .auth-tab.active{ background:var(--glass); backdrop-filter:blur(16px); color:var(--primary); box-shadow:0 2px 6px rgba(0,0,0,.06); }
  .field{ margin-bottom:12px; }
  .field label{ display:block; font-size:11.5px; color:#c5dce0; margin-bottom:5px; }
  .field input, .field textarea{ width:100%; padding:11px 13px; border-radius:11px; background:var(--surface-2); border:1px solid var(--line); color:var(--text); font-size:13.5px; }
  .field input:focus, .field textarea:focus{ outline:none; border-color:var(--primary); }
  .field-hint{ color:var(--muted); font-size:11px; margin-top:4px; line-height:1.7; }
  .field-err{ color:var(--danger); font-size:11.5px; margin-top:4px; display:none; }
  .field-err.show{ display:block; }
  .auth-submit{ width:100%; justify-content:center; margin-top:6px; }
  .auth-note{ text-align:center; font-size:11px; color:var(--muted); margin-top:16px; line-height:1.8; opacity:.95; }
  .logo-picker{ display:flex; align-items:center; gap:10px; }
  .logo-preview{ width:52px; height:52px; border-radius:50%; background:var(--surface-2); border:1px dashed var(--line); background-size:cover; background-position:center; flex:0 0 auto; }
  .forgot-link{ display:block; text-align:left; font-size:11.5px; color:var(--primary); margin:-4px 0 12px; cursor:pointer; }

  #storefront{ max-width:900px; margin:0 auto; padding-bottom:70px; position:relative; z-index:1; }
  .topbar{ position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 20px;
    background:rgba(7,12,20,.75); backdrop-filter:blur(14px); border-bottom:1px solid var(--line); }
  .brand{ display:flex; align-items:center; gap:10px; min-width:0; }
  .brand .mark{ width:68px; height:68px; border-radius:50%; flex:0 0 auto; overflow:hidden;
    background:radial-gradient(circle at 35% 30%, var(--primary), var(--gold) 90%); cursor:default; position:relative; }
  .brand .mark.has-logo{ background:none; cursor:pointer; }
  .brand .mark img{ width:100%; height:100%; object-fit:cover; display:block; }
  .brand .mark.editable{ cursor:pointer; box-shadow:0 0 0 2px var(--gold); }
  .store-name{ font-size:26px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-family:'El Messiri',sans-serif; }
  .store-name-input{ font-family:'El Messiri',sans-serif; font-size:26px; background:transparent; border:none; border-bottom:1px dashed var(--line); color:var(--text); padding:2px; max-width:220px; }
  .owner-badge{ font-size:10.5px; color:var(--ok); background:rgba(45,212,191,.1); border:1px solid rgba(45,212,191,.3); border-radius:20px; padding:2px 9px; margin-inline-start:6px; }
  .topbar-actions{ display:flex; gap:8px; align-items:center; }

  .store-desc{ padding:6px 20px 0; color:var(--muted); font-size:12.5px; line-height:1.8; }
  .store-desc-input{ margin:8px 20px 0; width:calc(100% - 40px); padding:8px 10px; border-radius:9px; background:var(--surface-2); border:1px solid var(--line); color:var(--text); font-size:12.5px; resize:vertical; min-height:44px; }

  .search-box{ margin:14px 20px 0; position:relative; }
  .search-box input{ width:100%; padding:11px 40px 11px 14px; border-radius:30px; background:var(--glass); backdrop-filter:blur(16px); border:1px solid var(--line); box-shadow:var(--shadow); font-size:13.5px; color:var(--text); }
  .search-box input:focus{ outline:none; border-color:var(--primary); }
  .search-box .ic{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--muted); }

  .pending-banner{ margin:14px 20px 0; padding:11px 14px; border-radius:12px; font-size:12.5px; background:rgba(7,12,20,.7); border:1px solid rgba(250,204,21,.5); color:#fff6d8; line-height:1.8; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }  .pending-banner .pending-banner-text{ color:#fff6d8; }
  .trial-banner{ margin:14px 20px 0; padding:11px 14px; border-radius:12px; font-size:12.5px; background:rgba(45,212,191,.08); border:1px solid rgba(45,212,191,.3); color:var(--ok); line-height:1.8; }
  .locked-view{ text-align:center; padding:80px 20px; color:var(--muted); }
  .locked-view h2{ color:var(--text); }
  .locked-view p{ color:var(--muted); }
  .locked-view .big{ font-size:44px; margin-bottom:12px; }

  .my-link-box{ margin:14px 20px 18px; padding:10px 14px; border-radius:11px; background:var(--surface-2); border:1px dashed var(--gold); font-size:12px; display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
  .my-link-box span.v{ color:var(--primary); direction:ltr; font-weight:700; }

  .links-row{ padding:16px 20px 0; display:grid; grid-template-columns:repeat(2, 1fr); gap:12px; }
  .link-chip{ display:flex; flex-direction:column; align-items:center; gap:8px; background:var(--glass); backdrop-filter:blur(14px);
    border:1px solid var(--line); border-radius:18px; padding:16px 10px; font-size:12.5px; font-weight:700; text-decoration:none; color:var(--text);
    box-shadow:var(--shadow); transition:transform .18s ease, box-shadow .18s ease; text-align:center; }
  .link-chip:hover{ transform:translateY(-4px); box-shadow:var(--neon-glow); border-color:var(--primary); }
  .link-chip .brand-ic{ width:38px; height:38px; border-radius:11px; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
  .link-chip .brand-ic svg{ width:18px; height:18px; }
  .brand-ic{ background:var(--surface-2); border:1px solid var(--line); color:var(--primary); }
  .brand-ic svg{ display:block; }

  .links-editor{ padding:16px 20px 24px; display:grid; grid-template-columns:repeat(2, 1fr); gap:14px; }
  .links-editor .lf{ flex-direction:column; align-items:stretch; background:var(--glass); backdrop-filter:blur(14px); border:1px solid var(--line); border-radius:16px; padding:14px; box-shadow:var(--shadow); }
  .links-editor .lf .lf-head{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:800; color:var(--primary); margin-bottom:8px; }
  .links-editor .lf .lf-head .brand-ic{ width:28px; height:28px; border-radius:9px; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
  .links-editor .lf input{ background:var(--surface-2); border:1px solid var(--line); border-radius:9px; padding:8px 10px; font-size:12.5px; color:var(--text); font-weight:600; }
  .links-editor .lf input::placeholder{ color:#7a94a0; }
  .tabs{ display:flex; gap:8px; overflow-x:auto; padding:16px 20px 4px; scrollbar-width:thin; }
  .tab{ flex:0 0 auto; display:flex; align-items:center; gap:6px; padding:8px 14px; border-radius:20px; background:var(--glass); backdrop-filter:blur(16px); border:1px solid var(--line); cursor:pointer; font-size:13px; white-space:nowrap; box-shadow:0 1px 3px rgba(0,0,0,.04); color:var(--text); }
  .tab.active{ background:var(--primary); border-color:var(--primary); color:#fff; }
  .tab .del{ opacity:.5; margin-inline-start:2px; }
  .tab .del:hover{ opacity:1; color:var(--danger); }
  .tab-add{ border:1px dashed var(--gold); color:var(--gold-dim); background:transparent; }

  .add-cat-inline{ display:flex; gap:8px; padding:0 20px 8px; }
  .add-cat-inline input{ flex:1; padding:8px 10px; border-radius:9px; background:var(--glass); backdrop-filter:blur(16px); border:1px solid var(--line); color:var(--text); font-size:13px; }
  .add-cat-inline input:first-child{ flex:0 0 50px; text-align:center; }

  .content{ padding:10px 20px 30px; }
  .cat-title{ display:flex; align-items:center; gap:10px; margin:6px 0 16px; }
  .cat-title .ic{ width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--surface-2); border:2px solid var(--gold); font-size:18px; }
  .cat-title h2{ font-size:23px; color:var(--text); }
  .cat-title input.cat-name-edit{ font-family:'El Messiri',sans-serif; font-size:23px; background:transparent; border:none; border-bottom:1px dashed var(--line); color:var(--text); }
  .back-btn{ display:inline-flex; align-items:center; gap:6px; color:var(--primary); font-size:13px; font-weight:700; cursor:pointer; margin-bottom:12px; }

  .items-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:12px; }
  @media (min-width:640px){ .items-grid{ grid-template-columns:repeat(3,1fr); gap:16px; } }
  @media (min-width:900px){ .items-grid{ grid-template-columns:repeat(4,1fr); } }
  @media (min-width:640px){ .links-row, .links-editor{ grid-template-columns:repeat(4,1fr); } }
  .empty-state{ text-align:center; padding:50px 20px; color:var(--muted); border:1px dashed var(--line); border-radius:16px; background:var(--glass); backdrop-filter:blur(16px); }
  .empty-state .big{ font-size:36px; margin-bottom:8px; }

  .item-card{ background:var(--glass); backdrop-filter:blur(16px); border:1px solid var(--line); box-shadow:var(--shadow); border-radius:18px; overflow:hidden; display:flex; flex-direction:column; cursor:pointer; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
  .item-card:hover{ transform:translateY(-4px); box-shadow:var(--neon-glow); border-color:var(--primary); }
  .item-img{ position:relative; aspect-ratio:1/1; background:var(--surface-2); display:flex; align-items:center; justify-content:center; overflow:hidden; }
  .item-img img{ width:100%; height:100%; object-fit:contain; }
  .item-img .no-img{ color:#c5dce0; font-size:12.5px; }
  .item-del{ position:absolute; top:7px; right:7px; background:rgba(7,12,20,.75); border:1px solid rgba(201,79,95,.4); color:var(--danger); border-radius:8px; width:26px; height:26px; cursor:pointer; z-index:2; }
  .item-img-btn{ position:absolute; bottom:7px; left:7px; z-index:2; }
  .coll-badge{ position:absolute; top:7px; left:7px; background:rgba(45,212,191,.85); color:#fff; font-size:10.5px; font-weight:700; padding:3px 9px; border-radius:20px; z-index:2; }
  .unavail-badge{ position:absolute; inset:0; background:rgba(7,12,20,.65); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:var(--danger); z-index:1; }

  .item-body{ padding:12px; display:flex; flex-direction:column; gap:6px; flex:1; }
  .item-name-row{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
  .item-name{ font-size:14.5px; font-weight:700; flex:1 1 auto; min-width:0; }
  .item-name-input{ background:transparent; border:none; border-bottom:1px solid var(--line); color:var(--text); font-size:14px; font-weight:700; padding:2px; flex:1 1 100px; min-width:0; max-width:100%; }
  .item-price{ color:var(--primary); font-size:13px; font-weight:800; white-space:nowrap; flex:0 0 auto; }
  .item-price-input{ flex:0 0 auto; width:88px; min-width:72px; max-width:100%; background:var(--surface-3); border:1px solid var(--line); color:var(--primary); border-radius:6px; padding:5px 8px; font-size:12.5px; font-weight:700; text-align:center; }
  .item-brand{ color:var(--muted); font-size:11px; }
  .item-brand-input{ background:var(--surface-2); border:1px solid var(--line); border-radius:6px; padding:4px 7px; font-size:11.5px; color:var(--text); }
  .item-desc{ color:var(--muted); font-size:11.5px; line-height:1.6; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; }
  .item-desc-input{ background:var(--surface-2); border:1px solid var(--line); color:var(--text); border-radius:6px; padding:6px 8px; font-size:12px; resize:vertical; min-height:38px; }
  .avail-row{ display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--muted); }

  .add-cart-btn{ background:var(--primary); color:#fff; border:none; border-radius:9px; padding:7px 10px; font-size:12px; font-weight:700; cursor:pointer; margin-top:4px; }
  .add-cart-btn:hover{ background:var(--primary-dark); }
  .add-cart-btn[disabled]{ background:var(--muted); cursor:not-allowed; }

  .add-choice-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:18px; }
  .add-choice-card{ background:var(--glass); backdrop-filter:blur(16px); border:2px dashed var(--gold); border-radius:16px; padding:18px 14px; text-align:center; cursor:pointer; color:var(--gold-dim); }
  .add-choice-card:hover{ background:rgba(139,92,246,.12); }
  .add-choice-card .ic{ font-size:26px; margin-bottom:6px; }
  .add-choice-card .t{ font-weight:800; font-size:13.5px; color:var(--text); }
  .add-choice-card .d{ font-size:11px; color:var(--muted); margin-top:3px; }

  .footnote{ margin-top:34px; text-align:center; padding:0 20px; }
  .footnote a{ color:var(--primary); font-size:12px; font-weight:700; text-decoration:none; border-bottom:1px dashed var(--primary); }

  .owner-bottom-nav{ position:fixed; bottom:0; left:0; right:0; z-index:50; display:flex; background:rgba(7,12,20,.85); backdrop-filter:blur(16px); border-top:1px solid var(--line); padding:8px 6px calc(8px + env(safe-area-inset-bottom)); }
  .owner-bottom-nav button{ flex:1; background:none; border:none; color:#b4cad0; display:flex; flex-direction:column; align-items:center; gap:3px; font-size:10.5px; padding:6px 2px; cursor:pointer; border-radius:10px; font-family:'Tajawal',sans-serif; }
  .owner-bottom-nav button .ic{ font-size:18px; }
  .owner-bottom-nav button.active{ color:var(--primary); background:rgba(45,212,191,.12); }
  .owner-pad-bottom{ padding-bottom:calc(88px + env(safe-area-inset-bottom, 0px)); }
  #ownerStoreTab{ padding-bottom:12px; }
  #storefront.owner-pad-bottom.owner-tab-store{ padding-bottom:calc(100px + env(safe-area-inset-bottom, 0px)); }
  #storefront.owner-pad-bottom .footnote{ margin-bottom:8px; }

  .home-greet{ font-size:21px; margin:14px 20px 14px; }
  .stat-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:0 20px; margin-bottom:20px; }
  .stat-card{ background:var(--glass); backdrop-filter:blur(14px); border:1px solid var(--line); border-radius:16px; padding:16px; text-align:center; }
  .stat-card .n{ font-size:24px; font-weight:800; color:var(--primary); }
  .stat-card .l{ font-size:11.5px; color:var(--muted); margin-top:4px; }
  .quick-actions{ padding:0 20px; display:flex; flex-direction:column; gap:10px; }
  .quick-actions .btn{ justify-content:flex-start; padding:13px 16px; font-size:14px; }
  .section-label{ padding:0 20px; color:var(--muted); font-size:12px; font-weight:700; margin:6px 0 10px; }

  .pd-bg{ position:fixed; inset:0; background:rgba(30,20,20,.55); z-index:80; display:flex; align-items:flex-end; justify-content:center; }
  @media (min-width:640px){ .pd-bg{ align-items:center; } }
  .pd-modal{ background:var(--glass); backdrop-filter:blur(16px); width:100%; max-width:480px; max-height:92vh; overflow-y:auto; border-radius:22px 22px 0 0; }
  @media (min-width:640px){ .pd-modal{ border-radius:22px; } }
  .pd-img{ aspect-ratio:1/1; background:var(--surface-2); display:flex; align-items:center; justify-content:center; overflow:hidden; }
  .pd-img img{ width:100%; height:100%; object-fit:contain; }
  .pd-body{ padding:18px 20px 24px; }
  .pd-close{ float:left; background:var(--surface-2); border:none; width:30px; height:30px; border-radius:50%; cursor:pointer; font-size:15px; }
  .pd-name{ font-size:20px; margin-bottom:2px; }
  .pd-brand{ color:var(--muted); font-size:12.5px; margin-bottom:8px; }
  .pd-price{ color:var(--primary); font-weight:800; font-size:16px; margin-bottom:10px; }
  .pd-desc{ color:var(--muted); font-size:13px; line-height:1.8; margin-bottom:14px; }
  .pd-qty{ display:flex; align-items:center; gap:12px; margin:16px 0; }
  .pd-qty button{ width:32px; height:32px; border-radius:9px; border:1px solid var(--line); background:var(--surface-2); font-size:16px; cursor:pointer; }
  .pd-qty .n{ font-size:16px; font-weight:700; min-width:20px; text-align:center; }

  .cart-fab{ position:fixed; bottom:20px; left:20px; z-index:40; background:linear-gradient(180deg,var(--primary),var(--primary-dark)); color:#fff; border:none; border-radius:30px; padding:12px 18px; font-weight:800; font-size:14px; display:flex; align-items:center; gap:8px; cursor:pointer; box-shadow:var(--neon-glow); }
  .cart-fab .count{ background:#fff; color:var(--primary-dark); border-radius:50%; width:22px; height:22px; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; }
  .cart-drawer-bg{ position:fixed; inset:0; background:rgba(30,20,20,.55); z-index:70; display:flex; justify-content:flex-end; }
  .cart-drawer{ width:100%; max-width:380px; background:var(--glass); backdrop-filter:blur(16px); height:100%; padding:20px; overflow-y:auto; }
  .cart-drawer h3{ font-size:20px; margin-bottom:14px; }
  .cart-line{ display:flex; align-items:center; gap:8px; padding:10px 0; border-bottom:1px solid var(--line); }
  .cart-line .nm{ flex:1; font-size:12.5px; }
  .cart-line .qty-ctl{ display:flex; align-items:center; gap:6px; }
  .cart-line .qty-ctl button{ width:22px; height:22px; border-radius:6px; border:1px solid var(--line); background:var(--surface-2); color:var(--text); cursor:pointer; }
  .cart-line .price{ color:var(--primary); font-size:12.5px; width:70px; text-align:left; }
  .cart-empty{ color:var(--muted); text-align:center; padding:40px 0; font-size:13px; }
  .cart-total-row{ display:flex; justify-content:space-between; margin:16px 0; font-size:16px; font-weight:800; }
  .cart-field{ margin-bottom:10px; }
  .cart-field input, .cart-field textarea{ width:100%; padding:9px 11px; border-radius:9px; background:var(--surface-2); border:1px solid var(--line); color:var(--text); font-size:13px; }
  .wa-btn{ background:#2f9d63; color:#fff; border:none; }
  .wa-btn:hover{ background:#278a55; box-shadow:0 4px 14px rgba(47,157,99,.35); }

  #adminView{ max-width:760px; margin:0 auto; padding:30px 20px; position:relative; z-index:1; }
  #adminView h1{ font-size:24px; margin-bottom:4px; color:var(--primary); }
  #adminView .sub{ color:var(--muted); font-size:12.5px; margin-bottom:20px; }
  .store-row{ display:flex; align-items:center; gap:12px; background:var(--glass); backdrop-filter:blur(16px); border:1px solid var(--line); box-shadow:var(--shadow); border-radius:14px; padding:12px 14px; margin-bottom:10px; flex-wrap:wrap; }
  .store-row .info{ flex:1; min-width:180px; }
  .store-row .info b{ font-size:14.5px; }
  .store-row .info div{ color:var(--muted); font-size:11.5px; margin-top:2px; }
  .status-pill{ font-size:11px; padding:3px 10px; border-radius:20px; font-weight:700; }
  .status-pill.active{ background:rgba(45,212,191,.12); color:var(--ok); border:1px solid rgba(45,212,191,.35); }
  .status-pill.pending{ background:rgba(7,12,20,.7); color:var(--warn); border:1px solid rgba(250,204,21,.35); }

  .toast{ position:fixed; bottom:20px; left:50%; transform:translateX(-50%); background:linear-gradient(120deg,var(--primary),var(--gold)); color:#08131a; font-weight:700; padding:9px 18px; border-radius:20px; font-size:12.5px; z-index:90; opacity:0; transition:opacity .25s ease; pointer-events:none; }
  .toast.show{ opacity:1; }
  #bootLoader{ position:fixed; inset:0; background:var(--bg); display:flex; align-items:center; justify-content:center; z-index:200; }
  .dot-spin{ width:38px; height:38px; border:4px solid var(--surface-3); border-top-color:var(--primary); border-radius:50%; animation:spin .8s linear infinite; }

  .profile-modal{ background:var(--glass); backdrop-filter:blur(16px); width:100%; max-width:420px; max-height:90vh; overflow-y:auto; border-radius:20px; padding:22px; }
  .profile-modal h3{ font-size:18px; margin-bottom:14px; color:var(--primary); }
  .logo-lightbox-modal img{ max-width:100%; max-height:70vh; border-radius:14px; object-fit:contain; }
/* منع تداخل اسم المتجر مع زر الدخول */
.topbar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100%;
}

.topbar .brand {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* يضع نقاط (...) إذا كان اسم المتجر طويلاً جداً */
}

#ownerLoginLink {
  flex-shrink: 0; /* يمنع انكماش الزر أو تداخله */
  white-space: nowrap;
  font-size: 11px !important;
  padding: 4px 8px !important;
}