  :root {
    --navy:#0a1f44; --blue:#1d4ed8; --blue-light:#eaf0fc; --blue-strong:#6ea8ff;
    --bg:#f4f7fb; --white:#fff; --border:#e5edf7;
    --text:#0f1d33; --muted:#6b7d99;
    --green:#16a34a; --green-soft:#e8f7ee;
    --amber:#b45309; --amber-soft:#fef3e2;
    --red:#b91c1c; --red-soft:#fdeded;
  }
  * { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
  body { font-family:'Inter',sans-serif; background:var(--bg); color:var(--text); min-height:100vh; }

  .screen { display:none !important; min-height:100vh; }
  .screen.active { display:flex !important; flex-direction:column; }
  .screen[hidden] { display:none !important; }
  /* Tabs inside dashboard only show when active */
  .tab { display:none; }
  .tab.active { display:block; }

  /* BOOT / SESSION RESTORE */
  #screen-boot {
    align-items:center; justify-content:center; text-align:center;
    background:linear-gradient(160deg,#0a1f44 0%,#0d2a5a 60%,#0a3070 100%);
    padding:24px;
  }
  .boot-spinner {
    width:144px;
    height:4px;
    border-radius:999px;
    background:rgba(255,255,255,.22);
    overflow:hidden;
    position:relative;
    margin:16px auto 0;
  }
  .boot-spinner::after {
    content:"";
    position:absolute;
    top:0; bottom:0; left:0;
    width:40%;
    border-radius:999px;
    background:linear-gradient(90deg,rgba(255,255,255,.6),#fff);
    animation:bootbar 1.1s ease-in-out infinite;
  }
  @keyframes bootbar {
    0% { left:-40%; }
    100% { left:100%; }
  }
  .boot-text { margin-top:14px; font-family:'Sora',sans-serif; font-weight:800; font-size:1.1rem; color:#fff; letter-spacing:.02em; }

  /* LANDING */
  #screen-landing {
    min-height:100dvh;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:calc(20px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
    background:linear-gradient(160deg,#0a1f44 0%,#0d2a5a 60%,#0a3070 100%);
    position:relative; overflow:hidden; isolation:isolate;
  }
  #screen-landing .bg { position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:-1; }
  #screen-landing .ring { position:absolute; border-radius:50%; border-style:solid; }
  #screen-landing .ring-a { width:400px; height:400px; border-width:60px; border-color:rgba(255,255,255,0.06); top:-100px; right:-100px; }
  #screen-landing .ring-b { width:300px; height:300px; border-width:40px; border-color:rgba(255,255,255,0.06); bottom:80px; left:-80px; }
  .landing-inner { width:100%; max-width:420px; margin:0 auto; display:flex; flex-direction:column; align-items:center; text-align:center; }
  .landing-logo { display:flex; justify-content:center; }
  .landing-logo img { max-width:84px; width:100%; height:auto; object-fit:contain; filter:brightness(0) invert(1); margin-bottom:clamp(14px,4vw,22px); }
  .landing-title { font-family:'Sora',sans-serif; font-size:clamp(1.6rem,7vw,2.2rem); line-height:1.15; font-weight:800; color:#fff; margin:0; }
  .landing-sub { font-family:'Inter',sans-serif; font-size:clamp(.92rem,3.5vw,1rem); line-height:1.5; color:rgba(255,255,255,.85); max-width:30rem; margin:clamp(8px,2vh,14px) auto 0; }
  #landing-min-price { margin-top:6px; font-size:.8rem; color:rgba(255,255,255,.7); }
  #btn-signup-land { width:100%; height:52px; background:var(--blue); color:#fff; font-size:1rem; font-weight:700; border-radius:14px; border:none; cursor:pointer; transition:transform .12s, background .2s; touch-action:manipulation; margin-top:clamp(16px,4vh,28px); }
  #btn-signup-land:hover { background:color-mix(in srgb, var(--blue) 86%, #000); }
  #btn-signup-land:active { transform:scale(.97); }
  #btn-signup-land:focus-visible { outline:2px solid #fff; outline-offset:2px; }
  #btn-signin-land { background:transparent; border:none; color:rgba(255,255,255,.85); font-size:.95rem; text-decoration:underline; padding:12px 8px; margin-top:4px; cursor:pointer; touch-action:manipulation; }
  #btn-signin-land:hover { color:#fff; }
  #btn-signin-land:focus-visible { outline:2px solid #fff; outline-offset:2px; }
  .or-divider { display:flex; align-items:center; gap:12px; width:100%; margin:14px 0; color:rgba(255,255,255,.6); font-size:.75rem; }
  .or-divider::before, .or-divider::after { content:''; flex:1; height:1px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); }
  .btn-primary { width:100%; height:52px; min-height:52px; padding:0 16px; background:var(--blue); color:#fff; border:none; border-radius:14px; font-family:'Sora',sans-serif; font-weight:700; font-size:1rem; cursor:pointer; box-shadow:0 8px 24px rgba(29,78,216,.35); transition:transform .15s, box-shadow .15s, background .15s; }
  .btn-primary:hover { background:#163aab; background:color-mix(in srgb, var(--blue) 86%, #000); }
  .btn-primary:active { transform:scale(.98); }
  .google-btn { width:100%; height:52px; background:var(--white); color:#1f1f1f; border-radius:14px; border:1px solid rgba(0,0,0,.08); box-shadow:0 1px 2px rgba(0,0,0,.08); font-weight:600; font-size:.95rem; display:flex; align-items:center; justify-content:center; gap:10px; cursor:pointer; touch-action:manipulation; transition:transform .12s; }
  .google-btn .google-ic { width:20px; height:20px; flex-shrink:0; }
  .google-btn.loading { opacity:.72; pointer-events:none; }
  .google-btn:active { transform:scale(.97); }
  .landing-trust { font-size:.78rem; color:rgba(255,255,255,.7); margin-top:14px; }
  .landing-guest-link { background:transparent; border:none; color:rgba(255,255,255,.65); font-size:.8rem; padding:12px 8px; margin-top:4px; cursor:pointer; text-decoration:underline; touch-action:manipulation; }
  .landing-guest-link:hover { color:rgba(255,255,255,.9); }
  .landing-footer { margin-top:clamp(14px,3vh,22px); display:flex; flex-wrap:wrap; justify-content:center; gap:8px; font-size:.75rem; color:rgba(255,255,255,.6); }
  .landing-footer a { color:rgba(255,255,255,.75); text-decoration:none; padding:6px 4px; }
  .landing-footer a:hover { text-decoration:underline; color:#fff; }
  @media (min-width:768px) { .landing-inner { max-width:540px; } }

  /* AUTH */
  .auth-screen { background:var(--navy); }
  .auth-header { padding:16px 20px; display:flex; align-items:center; gap:14px; }
  .back-btn { width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,0.08); border:none; color:white; font-size:1.1rem; cursor:pointer; display:flex; align-items:center; justify-content:center; }
  .auth-logo { height:24px; object-fit:contain; filter:brightness(0) invert(1); }
  .auth-body { background:var(--bg); border-radius:28px 28px 0 0; flex:1; padding:32px 24px 40px; overflow-y:auto; }
  .auth-title { font-family:'Sora',sans-serif; font-size:1.6rem; font-weight:800; color:var(--navy); margin-bottom:6px; }
  .auth-sub { color:var(--muted); font-size:0.875rem; margin-bottom:28px; }
  .form-group { margin-bottom:16px; }
  .form-label { font-size:0.72rem; font-weight:700; color:var(--muted); letter-spacing:1px; text-transform:uppercase; display:block; margin-bottom:8px; }
  .form-input { width:100%; background:var(--white); border:1.5px solid var(--border); border-radius:14px; padding:14px 16px; color:var(--text); font-size:1rem; font-family:'Inter',sans-serif; }
  .form-input:focus { outline:none; border-color:var(--blue); }
  .form-input::placeholder { color:var(--muted); }
  .form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .form-error { color:var(--red); font-size:.8rem; margin-top:8px; }
  .auth-btn { width:100%; padding:16px; margin-top:8px; background:var(--blue); color:white; border:none; border-radius:16px; font-family:'Sora',sans-serif; font-weight:800; font-size:1rem; cursor:pointer; margin-bottom:20px; }
  .auth-switch { text-align:center; font-size:0.875rem; color:var(--muted); }
  .auth-switch a { color:var(--blue); font-weight:700; cursor:pointer; }
  .divider { display:flex; align-items:center; gap:12px; margin:20px 0; }
  .divider::before, .divider::after { content:''; flex:1; height:1px; background:var(--border); }
  .divider span { font-size:0.75rem; color:var(--muted); font-weight:600; }
  .auth-alt-btn { width:100%; padding:14px; background:var(--white); color:var(--navy); border:1.5px solid var(--border); border-radius:16px; font-family:'Sora',sans-serif; font-weight:700; font-size:0.95rem; cursor:pointer; }

  .link-btn { background:none; border:none; color:var(--blue); font-weight:700; font-size:.875rem; cursor:pointer; padding:4px 0; }
  .auth-card { background:var(--white); border-radius:20px; padding:28px 24px; margin:48px 20px; box-shadow:0 12px 40px rgba(0,0,0,.1); }

  /* DASHBOARD */
  #screen-dashboard { background:var(--bg); padding-bottom:92px; }
  .topbar { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background:var(--navy); position:sticky; top:0; z-index:50; }
  .topbar img { height:28px; object-fit:contain; filter:brightness(0) invert(1); }
  .topbar-right { display:flex; align-items:center; gap:10px; }
  .whatsapp-btn { display:flex; align-items:center; gap:6px; background:#16a34a; color:white; border:none; border-radius:22px; padding:8px 12px; font-weight:700; font-size:0.75rem; text-decoration:none; cursor:pointer; }
  .whatsapp-btn svg { width:14px; height:14px; }
  .signout-btn { background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); color:white; border-radius:20px; padding:7px 12px; font-size:0.72rem; font-weight:700; cursor:pointer; }

  .tab { display:none; padding:20px 16px 10px; max-width:480px; margin:0 auto; }
  .tab.active { display:block; animation:fadeIn 0.22s ease; }
  @keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

  .greeting-label { font-size:0.68rem; font-weight:800; letter-spacing:2px; text-transform:uppercase; color:var(--blue); margin-bottom:6px; }
  .greeting-title { font-family:'Sora',sans-serif; font-size:1.5rem; font-weight:800; line-height:1.2; color:var(--navy); }
  .greeting-title span { color:var(--blue); }
  .greeting-sub { color:var(--muted); font-size:0.875rem; margin-top:4px; margin-bottom:18px; }
  .admin-strip { background:var(--navy); border:1px solid rgba(110,168,255,.25); border-radius:14px; padding:14px; margin-bottom:14px; display:flex; flex-direction:column; gap:12px; }
  .admin-strip[hidden] { display:none !important; }
  .admin-strip-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
  .admin-badge { background:#ffcb05; color:var(--navy); font-size:.65rem; font-weight:800; letter-spacing:1.5px; padding:5px 10px; border-radius:20px; text-transform:uppercase; white-space:nowrap; }
  .admin-panel-btn { background:var(--blue); color:#fff; border:none; border-radius:12px; padding:10px 14px; font-family:'Sora',sans-serif; font-weight:700; font-size:.85rem; cursor:pointer; }
  .admin-strip-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
  .admin-chip { background:rgba(255,255,255,.08); border-radius:10px; padding:8px 10px; text-align:left; min-width:0; }
  .admin-chip-label { display:block; font-size:.6rem; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:rgba(255,255,255,.6); margin-bottom:2px; }
  .admin-chip-val { display:block; font-family:'Sora',sans-serif; font-size:1rem; font-weight:800; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .admin-refresh-btn { background:transparent; border:1px solid rgba(255,255,255,.35); color:#fff; border-radius:10px; padding:7px 12px; font-family:'Sora',sans-serif; font-weight:700; font-size:.75rem; cursor:pointer; }
  @media (min-width:520px) { .admin-strip-grid { grid-template-columns:repeat(5,1fr); } }

  .auth-banner-unused { background:var(--amber-soft); border:1px solid #fde68a; border-radius:14px; padding:12px 16px; display:flex; align-items:center; gap:10px; margin-bottom:16px; cursor:pointer; }
  .auth-banner-unused p { font-size:0.8rem; color:var(--amber); font-weight:600; }
  .auth-banner-unused p span { text-decoration:underline; }

  .balance-card { background:var(--navy); border-radius:20px; padding:22px; margin-bottom:16px; display:flex; align-items:center; gap:18px; position:relative; overflow:hidden; }
  .balance-card::after { content:''; position:absolute; top:-60px; right:-60px; width:180px; height:180px; border:24px solid rgba(255,255,255,0.04); border-radius:50%; }
  .balance-ring { flex-shrink:0; width:64px; height:64px; border-radius:50%; border:3px solid rgba(255,255,255,0.18); display:flex; align-items:center; justify-content:center; position:relative; }
  .balance-ring::before { content:''; position:absolute; inset:-3px; border-radius:50%; border:3px solid #9cc1ff; border-bottom-color:transparent; border-right-color:transparent; transform:rotate(45deg); }
  .balance-ring .ic { color:#9cc1ff; font-size:1.3rem; }
  .balance-text { color:white; flex:1; }
  .balance-label { font-size:0.65rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:#9cc1ff; margin-bottom:4px; }
  .balance-amount { font-family:'Sora',sans-serif; font-size:1.9rem; font-weight:800; letter-spacing:-0.5px; }
  .balance-amount .currency { font-size:1.1rem; font-weight:700; opacity:0.6; margin-right:2px; }

  .stat-row { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:16px; }
  .stat-card { background:var(--white); border:1px solid var(--border); border-radius:14px; padding:14px 10px; }
  .stat-icon { width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.9rem; margin-bottom:8px; }
  .stat-icon.orders { background:var(--blue-light); color:var(--blue); }
  .stat-icon.delivered { background:var(--green-soft); color:var(--green); }
  .stat-icon.inflight { background:var(--amber-soft); color:var(--amber); }
  .stat-label { font-size:0.6rem; font-weight:700; letter-spacing:1.5px; color:var(--muted); text-transform:uppercase; margin-bottom:2px; }
  .stat-value { font-family:'Sora',sans-serif; font-size:1.3rem; font-weight:800; color:var(--navy); }

  .quick-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:22px; }
  .quick-card { background:var(--white); border:1px solid var(--border); border-radius:14px; padding:16px; cursor:pointer; transition:border-color 0.2s; }
  .quick-card:hover { border-color:var(--blue); }
  .quick-card:active { transform:scale(0.97); }
  .quick-card .qicon { width:36px; height:36px; border-radius:10px; background:var(--blue-light); color:var(--blue); display:flex; align-items:center; justify-content:center; font-size:1.1rem; margin-bottom:10px; }
  .quick-card .qtitle { font-weight:700; font-size:0.95rem; color:var(--navy); }
  .quick-card .qsub { font-size:0.75rem; color:var(--muted); margin-top:2px; }

  .section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
  .section-head h3 { font-size:0.68rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--muted); }
  .section-head a { font-size:0.8rem; font-weight:700; color:var(--blue); text-decoration:none; }

  .status-pill-row { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
  .status-pill { display:flex; align-items:center; gap:6px; background:var(--white); border:1px solid var(--border); border-radius:20px; padding:6px 12px; font-size:0.75rem; color:var(--muted); font-weight:600; }
  .status-pill .dot { width:7px; height:7px; border-radius:50%; background:var(--green); }
  .buy-title { font-family:'Sora',sans-serif; font-size:1.5rem; font-weight:800; margin-bottom:4px; color:var(--navy); }
  .buy-sub { color:var(--muted); font-size:0.875rem; margin-bottom:16px; }
  .delivery-banner { background:var(--green-soft); border:1px solid #c8ecd6; border-radius:14px; padding:12px 14px; display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
  .delivery-banner .dleft { display:flex; align-items:center; gap:10px; }
  .delivery-banner .dbic { width:32px; height:32px; border-radius:50%; background:#d3f3df; display:flex; align-items:center; justify-content:center; color:var(--green); }
  .delivery-banner .dtitle { font-weight:700; font-size:0.85rem; color:var(--green); }
  .delivery-banner .dsub { font-size:0.7rem; color:var(--muted); margin-top:1px; }
  .live-tag { font-size:0.65rem; font-weight:700; color:var(--green); background:#d3f3df; padding:3px 10px; border-radius:12px; }

  .eyebrow { font-size:0.68rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--blue); display:flex; align-items:center; gap:6px; margin-bottom:10px; }
  .eyebrow .dot { width:5px; height:5px; border-radius:50%; background:var(--blue); }
  .eyebrow .count { margin-left:auto; color:var(--muted); font-weight:600; letter-spacing:0; text-transform:none; font-size:0.75rem; }

  .network-tabs { display:flex; background:var(--white); border:1px solid var(--border); border-radius:14px; padding:4px; margin-bottom:22px; }
  .network-tab { flex:1; text-align:center; padding:10px 6px; border-radius:11px; font-weight:700; font-size:0.82rem; cursor:pointer; color:var(--muted); transition:background 0.2s,color 0.2s,box-shadow 0.2s; display:flex; align-items:center; justify-content:center; gap:6px; }
  .network-tab.active { background:var(--navy); color:white; }
  .network-tab[data-network="MTN"].active { background:#1a1a1a; box-shadow:inset 0 -3px 0 #ffcb05; }
  .network-tab[data-network="Telecel"].active { background:#1a1a1a; box-shadow:inset 0 -3px 0 #e2241a; }
  .network-tab[data-network="iShare"].active, .network-tab[data-network="BigTime"].active { background:#1a1a1a; box-shadow:inset 0 -3px 0 #1d4ed8; }
  .swatch { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
  .swatch-mtn { background:#ffcb05; }
  .swatch-telecel { background:#e2241a; }
  .swatch-at { background:#1d4ed8; }

  .pkg-list { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; margin-bottom:16px; }
  .pkg-row { background:var(--white); border:2px solid var(--border); border-radius:14px; padding:14px 16px; display:flex; align-items:center; gap:14px; cursor:pointer; transition:border-color 0.2s,background 0.2s,box-shadow 0.2s; position:relative; overflow:hidden; }
  .pkg-row::after { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:transparent; }
  .pkg-row.net-mtn-express,
.pkg-row.net-mtn::after { background:#ffcb05; }
  .pkg-row.net-telecel::after { background:#e2241a; }
  .pkg-row.net-airteltigo::after { background:#1d4ed8; }
  .pkg-row:active { transform:scale(0.99); }
  .pkg-row.selected { border-color:var(--blue); background:var(--blue-light); }
  .pkg-row.unavailable { opacity:0.55; cursor:not-allowed; }
  .pkg-row.unavailable:active { transform:none; }
  .pkg-num { flex-shrink:0; width:44px; height:44px; border-radius:50%; background:var(--navy); color:white; display:flex; flex-direction:column; align-items:center; justify-content:center; font-family:'Sora',sans-serif; font-weight:800; line-height:1; }
  .pkg-num .n { font-size:1.05rem; }
  .pkg-num .u { font-size:0.48rem; letter-spacing:1px; opacity:0.7; }
  .pkg-row.selected .pkg-num { background:var(--blue); }
  .pkg-mid { flex:1; min-width:0; }
  .pkg-title { font-weight:700; font-size:0.92rem; color:var(--navy); }
  .pkg-valid { font-size:0.7rem; color:var(--muted); margin-top:2px; }
  .pkg-right { text-align:right; flex-shrink:0; }
  .pkg-price { font-family:'Sora',sans-serif; font-size:1.05rem; font-weight:800; color:var(--navy); }
  .pkg-row.selected .pkg-price { color:var(--blue); }
  .pkg-rate { font-size:0.68rem; color:var(--muted); margin-top:2px; }
  .pkg-row.popular::before { content:'Best Value'; position:absolute; top:-9px; right:16px; background:var(--blue); color:white; font-size:0.58rem; font-weight:800; letter-spacing:1px; text-transform:uppercase; padding:3px 9px; border-radius:10px; }

  .pkg-card { display:flex; flex-direction:column; gap:6px; background:var(--white); border:1.5px solid var(--border); border-radius:14px; padding:12px 12px 14px; font-family:inherit; font-size:1rem; color:var(--text); text-align:left; cursor:pointer; transition:border-color .2s, transform .15s; min-width:0; }
  .pkg-card:hover { border-color:var(--blue); }
  .pkg-card:active { transform:scale(.98); }
  .pkg-gb { font-weight:700; font-size:.95rem; color:var(--navy); line-height:1.25; overflow-wrap:anywhere; }
  .pkg-rate { font-size:0.68rem; color:var(--muted); margin-top:2px; }

  /* Package skeleton loaders */
  .pkg-skeleton { pointer-events:none; border-style:dashed; }
  .pkg-skeleton .sk-block { background:linear-gradient(90deg, #e8eef6 25%, var(--bg) 50%, #e8eef6 75%); background-size:200% 100%; animation:shimmer 1.2s ease-in-out infinite; border-radius:8px; }
  .pkg-skeleton .sk-num { width:44px; height:44px; border-radius:50%; flex-shrink:0; }
  .pkg-skeleton .sk-mid { flex:1; height:36px; }
  .pkg-skeleton .sk-price { width:64px; height:36px; flex-shrink:0; }
  @keyframes shimmer { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }


  .wallet-btn { border:none; border-radius:14px; padding:14px; font-family:'Sora',sans-serif; font-weight:700; font-size:0.9rem; display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; }
  .wallet-btn.primary { background:var(--blue); color:white; }
  .wallet-btn.secondary { background:var(--white); color:var(--navy); border:1px solid var(--border); }
  .wallet-status-row { display:flex; align-items:center; justify-content:space-between; background:var(--white); border:1px solid var(--border); border-radius:14px; padding:14px 16px; margin-bottom:22px; font-size:0.85rem; }
  .wleft { display:flex; align-items:center; gap:10px; color:var(--muted); font-weight:600; }
  .status-active { color:var(--green); font-weight:800; background:var(--green-soft); padding:4px 12px; border-radius:12px; font-size:0.75rem; }
  .paystack-fallback-link { display:inline-block; margin-top:12px; color:var(--blue); font-weight:700; text-decoration:underline; }

  .empty-state { text-align:center; padding:36px 20px; color:var(--muted); font-size:0.875rem; background:var(--white); border:1px dashed var(--border); border-radius:14px; }
  .empty-state .ic { font-size:2rem; margin-bottom:10px; display:block; }
  .search-input { width:100%; background:var(--white); border:1px solid var(--border); border-radius:30px; padding:13px 18px; color:var(--text); font-size:1rem; margin-bottom:18px; }
  .search-input::placeholder { color:var(--muted); }
  .search-input:focus { outline:none; border-color:var(--blue); }

  /* BOTTOM NAV */
  .bottom-nav { position:fixed; bottom:0; left:0; right:0; background:rgba(255,255,255,0.96); backdrop-filter:blur(12px); border-top:1px solid var(--border); display:grid; grid-template-columns:repeat(4,1fr); padding:10px 6px calc(10px + env(safe-area-inset-bottom)); z-index:100; }
  .nav-item { display:flex; flex-direction:column; align-items:center; gap:4px; color:var(--muted); font-size:0.7rem; font-weight:600; background:none; border:none; cursor:pointer; padding:4px 10px; }
  .nav-item .nav-ic { font-size:1.2rem; }
  .nav-item.active { color:var(--blue); }

  /* SIDE PANEL */
  #btn-menu { width:48px; height:48px; min-width:48px; min-height:48px; background:transparent; border:none; color:var(--muted); display:flex; align-items:center; justify-content:center; padding:4px; cursor:pointer; }
  #btn-menu svg { width:40px; height:40px; }
  .side-panel-overlay { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:399; }
  .side-panel-overlay[hidden] { display:none !important; }
  .side-panel { position:fixed; top:0; right:0; bottom:0; width:min(84vw,320px); background:var(--navy); color:#fff; z-index:400; padding-top:calc(14px + env(safe-area-inset-top)); display:flex; flex-direction:column; transform:translateX(100%); transition:transform .25s ease; overflow-y:auto; }
  .side-panel[hidden] { display:none !important; }
  body.side-open .side-panel { transform:translateX(0); }
  .side-panel-head { display:flex; align-items:center; justify-content:space-between; padding:6px 16px 14px; border-bottom:1px solid rgba(255,255,255,.1); }
  .side-panel-title { font-family:'Sora',sans-serif; font-weight:800; font-size:1.05rem; }
  #side-panel-close { width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.08); border:none; color:#fff; font-size:1rem; cursor:pointer; display:flex; align-items:center; justify-content:center; }
  .side-panel-nav { padding:8px 0; }
  .side-panel-item { display:block; width:100%; text-align:left; padding:14px 16px; background:transparent; border:none; border-bottom:1px solid rgba(255,255,255,.08); color:#fff; font-size:.95rem; font-weight:600; font-family:'Inter',sans-serif; cursor:pointer; }
  .side-panel-item:hover { background:rgba(255,255,255,.06); }

  /* ORDER SHEET */
  .sheet-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:200; opacity:0; pointer-events:none; transition:opacity 0.3s; }
  .sheet-overlay.visible { opacity:1; pointer-events:all; }
  .order-sheet { position:fixed; bottom:0; left:0; right:0; background:var(--white); border-radius:24px 24px 0 0; z-index:201; padding:0 0 40px; transform:translateY(100%); transition:transform 0.35s cubic-bezier(0.4,0,0.2,1); max-height:90vh; overflow-y:auto; }
  .order-sheet.visible { transform:translateY(0); }
  .sheet-handle { width:40px; height:4px; background:var(--border); border-radius:2px; margin:12px auto 20px; }
  .sheet-header { padding:0 20px 16px; border-bottom:1px solid var(--border); }
  .sheet-title { font-family:'Sora',sans-serif; font-size:1.2rem; font-weight:800; color:var(--navy); margin-bottom:4px; }
  .sheet-sub { font-size:0.8rem; color:var(--muted); }
  .sheet-body { padding:20px; }
  .selected-bundle-card { background:var(--navy); border-radius:16px; padding:16px; display:flex; align-items:center; gap:14px; margin-bottom:24px; }
  .bundle-badge { width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:0.9rem; color:white; flex-shrink:0; }
  .badge-mtn { background:#ffcb05; color:#1a1a1a; }
  .badge-telecel { background:#e2241a; }
  .badge-at { background:#1d4ed8; }
  .bundle-info { flex:1; }
  .bnet { font-size:0.75rem; color:rgba(255,255,255,0.5); margin-bottom:2px; }
  .bname { font-family:'Sora',sans-serif; font-weight:700; font-size:1rem; color:white; }
  .bundle-price { font-family:'Sora',sans-serif; font-weight:800; font-size:1.2rem; color:#7eb8ff; }
  .sheet-field-label { font-size:0.72rem; font-weight:700; color:var(--muted); letter-spacing:1px; text-transform:uppercase; display:flex; align-items:center; gap:6px; margin-bottom:8px; }
  .sheet-input { width:100%; background:var(--bg); border:1.5px solid var(--border); border-radius:14px; padding:14px 16px; color:var(--text); font-size:1rem; font-family:'Inter',sans-serif; margin-bottom:6px; }
  .sheet-input:focus { outline:none; border-color:var(--blue); }
  .sheet-input::placeholder { color:var(--muted); }
  .input-hint { font-size:0.72rem; color:var(--muted); margin-bottom:20px; }
  .input-hint.error { color:var(--red); }
  .optional-label { font-size:0.68rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--muted); margin-bottom:12px; }
  .optional-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:24px; }
  .review-btn { width:100%; padding:16px; background:var(--blue); color:white; border:none; border-radius:16px; font-family:'Sora',sans-serif; font-weight:800; font-size:1rem; cursor:pointer; margin-bottom:10px; display:flex; align-items:center; justify-content:center; gap:8px; }
  .review-btn:disabled { opacity:0.4; cursor:not-allowed; }
  .secured-note { text-align:center; font-size:0.72rem; color:var(--muted); display:flex; align-items:center; justify-content:center; gap:5px; }

  /* GUEST SHEET */
  .guest-sheet { position:fixed; bottom:0; left:0; right:0; background:var(--white); border-radius:24px 24px 0 0; z-index:201; padding:0 0 calc(40px + env(safe-area-inset-bottom)); transform:translateY(100%); transition:transform 0.35s cubic-bezier(0.4,0,0.2,1); max-height:90vh; overflow-y:auto; }
  .guest-sheet.visible { transform:translateY(0); }
  .sheet-header-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
  .sheet-close { flex-shrink:0; width:32px; height:32px; border-radius:50%; background:var(--bg); border:1px solid var(--border); color:var(--muted); font-size:0.9rem; font-weight:700; cursor:pointer; }
  .guest-pkg-list { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:18px; }
  .guest-net-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
  .guest-net-chip {
    background:var(--white); border:1.5px solid var(--border); color:var(--navy);
    border-radius:999px; padding:8px 14px; font-size:.8rem; font-weight:700;
    cursor:pointer; transition:border-color .15s, background .15s;
    display:inline-flex; align-items:center; gap:6px;
  }
  .guest-net-chip:hover { border-color:var(--blue); }
  .guest-net-chip.active { background:var(--blue); border-color:var(--blue); color:#fff; }
  .guest-chip-count { font-size:.68rem; opacity:.75; }
  .guest-cat-title { font-size:.68rem; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); margin:6px 0 8px; }
  .modal-sheet {
    position:fixed; bottom:0; left:0; right:0;
    background:var(--white); border-radius:24px 24px 0 0;
    z-index:201; padding:0 0 calc(40px + env(safe-area-inset-bottom));
    transform:translateY(100%); transition:transform 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0s linear .35s;
    max-height:90vh; overflow-y:auto;
    visibility:hidden;
  }
  .modal-sheet.visible { transform:translateY(0); visibility:visible; transition:transform 0.35s cubic-bezier(0.4,0,0.2,1); }
  .track-link-btn { background:none; border:none; color:var(--blue); font-weight:700; font-size:.8rem; cursor:pointer; padding:10px 4px; display:block; margin:0 auto; }
  .track-order-card { background:var(--bg); border:1px solid var(--border); border-radius:14px; padding:12px 14px; margin-bottom:10px; }
  .track-order-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; }
  .track-order-ref { font-weight:800; font-size:.8rem; color:var(--navy); overflow-wrap:anywhere; }
  .track-order-line { font-size:.9rem; color:var(--text); }
  .track-order-msg { font-size:.76rem; color:var(--muted); margin-top:4px; }
  #guest-pkg-list .pkg-card.selected { border-color:var(--blue); background:var(--blue-light); }
  #guest-price { font-family:'Sora',sans-serif; font-weight:800; font-size:1.05rem; color:var(--navy); text-align:right; margin-bottom:10px; min-height:1.4em; }
  .guest-status { background:var(--blue-light); border:1px solid var(--blue); border-radius:12px; padding:12px 14px; font-size:0.85rem; color:var(--navy); margin-bottom:14px; }
  .guest-status.error { background:var(--red-soft); border-color:#f5c6c6; color:var(--red); }
  .guest-success { text-align:center; padding:28px 16px; background:var(--green-soft); border:1px solid #c8ecd6; border-radius:16px; margin-bottom:14px; }
  .guest-success-icon { font-size:2.4rem; margin-bottom:8px; }
  .guest-success strong { display:block; font-size:1.1rem; color:var(--green); margin-bottom:6px; }
  .guest-success p { font-size:0.85rem; color:var(--muted); line-height:1.5; }
  .guest-success b { color:var(--navy); word-break:break-all; }
  .guest-success-code { margin-top:12px; padding-top:10px; border-top:1px dashed var(--green); }
  .guest-success-code-label { font-size:0.75rem; text-transform:uppercase; letter-spacing:0.05em; color:var(--muted); }
  .guest-success-code-val { font-family:'Sora',sans-serif; font-weight:800; font-size:1.4rem; letter-spacing:0.12em; color:var(--navy); margin:4px 0; }
  .guest-success-code-hint { font-size:0.75rem; color:var(--muted); }
  .track-order-receipt { margin-top:6px; font-size:0.85rem; color:var(--green); word-break:break-all; }

  /* AUTH ERROR / LOADING / TOAST */
  .auth-error { display:none; background:var(--red-soft); color:var(--red); border:1px solid #f5c6c6; border-radius:10px; padding:10px 14px; font-size:0.8rem; font-weight:600; margin-bottom:14px; }
  .auth-error.visible { display:block; }
  .auth-btn:disabled, .auth-alt-btn:disabled { opacity:0.6; cursor:not-allowed; }
  .btn-spinner { display:inline-block; width:16px; height:16px; border:2px solid rgba(255,255,255,0.4); border-top-color:#fff; border-radius:50%; animation:spin 0.7s linear infinite; vertical-align:middle; margin-right:6px; }
  @keyframes spin { to { transform:rotate(360deg); } }
  /* ---------- Enhanced button interactions ---------- */
  button, a, [role="button"], input, select, textarea { -webkit-tap-highlight-color: transparent; }
  button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
  }
  #btn-signup-land { position: relative; overflow: hidden; animation: ctaPulse 2.6s ease-in-out infinite; }
  @keyframes ctaPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(29,78,216,.35); }
    50% { box-shadow: 0 8px 36px rgba(29,78,216,.55); }
  }
  .btn-primary, .auth-btn, .google-btn, .auth-alt-btn, .wallet-btn { position: relative; overflow: hidden; }
  .btn-primary:hover, .auth-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(29,78,216,.45); }
  .btn-primary:active, .auth-btn:active, .google-btn:active, .auth-alt-btn:active, .wallet-btn:active { transform: scale(.97); }
  .landing-signin-link { transition: transform .12s ease, color .15s ease; }
  .landing-signin-link:active, .landing-guest-link:active { transform: scale(.96); }
  .btn-ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.4); pointer-events: none; animation: ripple .6s ease-out forwards; }
  @keyframes ripple { to { transform: scale(4); opacity: 0; } }

  .toast { position:fixed; top:16px; left:50%; transform:translateX(-50%) translateY(-20px); background:var(--navy); color:white; padding:12px 20px; border-radius:12px; font-size:0.85rem; font-weight:600; z-index:999; opacity:0; pointer-events:none; transition:opacity 0.3s, transform 0.3s; max-width:90%; text-align:center; box-shadow:0 8px 24px rgba(0,0,0,0.2); }
  .toast.visible { opacity:1; transform:translateX(-50%) translateY(0); }
  .toast.error { background:var(--red); }
  .toast.success { background:var(--green); }
  #fatal-error-bar {
    position:fixed; top:calc(12px + env(safe-area-inset-top)); left:50%; transform:translateX(-50%);
    background:#7f1d1d; color:#fff; padding:12px 20px; border-radius:12px;
    font-size:0.85rem; font-weight:600; z-index:999; max-width:90%; text-align:center;
    box-shadow:0 8px 24px rgba(0,0,0,0.25);
  }
  #fatal-error-bar[hidden] { display:none; }

  /* ORDER LIST / ROWS */
  .order-list { display:flex; flex-direction:column; gap:10px; margin-bottom:8px; }
  .order-row { background:var(--white); border:1px solid var(--border); border-radius:14px; padding:14px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
  .order-net { font-weight:700; font-size:0.9rem; color:var(--navy); }
  .order-net .pkg { color:var(--muted); font-weight:500; font-size:0.8rem; margin-left:4px; }
  .order-meta { font-size:0.75rem; color:var(--muted); margin-top:3px; }
  .order-right { text-align:right; display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
  .order-price { font-family:'Sora',sans-serif; font-weight:700; font-size:0.95rem; color:var(--navy); }
  .order-status { font-size:0.7rem; font-weight:700; padding:3px 10px; border-radius:20px; }
  .order-status.processing { background:var(--amber-soft); color:var(--amber); }
  .order-status.delivered { background:var(--green-soft); color:var(--green); }
  .order-status.failed { background:var(--red-soft); color:var(--red); }

/* ================================================
   RESPONSIVE SCALING -- TABLET & DESKTOP
   Mobile-first base is already written above.
   These rules enhance it for larger screens.
   ================================================ */

/* ---- TABLET: 600px and up ---- */
@media (min-width: 600px) {

  /* Landing page -- wider centered content */
  #screen-landing {
    align-items: center;
    padding: 48px 32px calc(48px + env(safe-area-inset-bottom));
  }
  .landing-inner { max-width: 540px; }
  .landing-logo img { max-width: 96px; }
  .landing-title { font-size: clamp(1.8rem, 4vw, 2.4rem); }
  .landing-sub { font-size: clamp(.95rem, 2.5vw, 1.05rem); }

  /* Auth screens -- card style */
  .auth-screen { align-items: center; justify-content: center; background: var(--bg); }
  .auth-header {
    max-width: 540px; width: 100%;
    background: var(--navy);
    border-radius: 20px 20px 0 0;
    margin-top: 40px;
  }
  .auth-body {
    max-width: 540px; width: 100%;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    margin-bottom: 40px;
  }

  /* Dashboard tabs wider */
  .tab { max-width: 600px; padding: 24px 24px 10px; }

  /* Stat row -- 3 columns already, just give them more breathing room */
  .stat-row { gap: 14px; }
  .stat-card { padding: 18px 14px; }

  /* Order sheet wider */
  .order-sheet { max-width: 520px; margin: 0 auto; border-radius: 24px; bottom: 20px; }
  .guest-sheet { max-width: 520px; margin: 0 auto; border-radius: 24px; bottom: 20px; }

  /* Bottom nav wider spacing */
  .bottom-nav { justify-content: center; gap: 20px; }
  .nav-item { padding: 4px 20px; }
}

/* ---- DESKTOP: 1024px and up ---- */
@media (min-width: 1024px) {

  /* Body no longer needs bottom padding for nav -- we'll use sidebar on desktop */
  body { padding-bottom: 0; }

  /* Landing -- centered hero that scales with viewport */
  #screen-landing {
    justify-content: center;
    padding: 56px 32px calc(56px + env(safe-area-inset-bottom));
    min-height: 100vh;
  }
  .landing-inner { max-width: 720px; }
  .landing-logo img { max-width: 132px; }
  .landing-title { font-size: clamp(2.2rem, 4vw, 3.2rem); }
  .landing-sub { font-size: clamp(1rem, 1.8vw, 1.2rem); max-width: 34rem; }
  #screen-landing #btn-signup-land, #screen-landing .google-btn, #screen-landing .btn-primary { width: min(100%, 400px); }

  /* Dashboard -- hide bottom nav, show top nav links instead */
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }

  /* Top bar gets nav links on desktop */
  .topbar { padding: 14px 32px; }

  /* Main content wider, two-column on dashboard home */
  .tab {
    max-width: 900px;
    padding: 32px 32px 20px;
  }

  /* Home tab -- two column grid */
  #tab-home .quick-actions {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Balance card + stats side by side */
  #tab-home .balance-card { margin-bottom: 0; }
  .home-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
    align-items: start;
  }

  /* Bundle grid -- two columns on desktop */
  .pkg-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .pkg-row { flex-direction: column; gap: 8px; align-items: flex-start; }
  .pkg-num { width: 48px; height: 48px; }
  .pkg-num .n { font-size: 1.2rem; }

  /* Auth card stays centered and comfortable */
  .auth-header { max-width: 560px; }
  .auth-body { max-width: 560px; padding: 40px; }

  /* Order sheet -- centered floating card (desktop) */
  .sheet-overlay { background: rgba(0,0,0,0.4); }
  .order-sheet {
    max-width: 560px;
    margin: 0 auto;
    bottom: auto;
    top: 50%;
    left: 50%;
    /* Stay hidden by default -- only .visible brings it on screen */
    transform: translate(-50%, -60%);
    opacity: 0;
    pointer-events: none;
    border-radius: 24px;
    max-height: 85vh;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  }
  .order-sheet.visible {
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: all;
  }
  .guest-sheet {
    max-width: 560px;
    margin: 0 auto;
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    opacity: 0;
    pointer-events: none;
    border-radius: 24px;
    max-height: 85vh;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  }
  .guest-sheet.visible {
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: all;
  }
}

/* ---- LARGE DESKTOP: 1280px and up ---- */
@media (min-width: 1280px) {
  .tab { max-width: 1000px; }

  #tab-home .quick-actions { grid-template-columns: repeat(4, 1fr); }

  /* Bundle list 3 columns on very wide screens */
  .pkg-list { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---- DESKTOP NAV in topbar ---- */
.desktop-nav {
  display: none; /* hidden on mobile */
  align-items: center;
  gap: 4px;
}
.desktop-nav-item {
  background: none; border: none;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem; font-weight: 600;
  padding: 8px 14px; border-radius: 10px;
  cursor: pointer; transition: background 0.2s, color 0.2s;
  font-family: 'Inter', sans-serif;
}
.desktop-nav-item:hover { background: rgba(255,255,255,0.08); color: white; }
.desktop-nav-item.active { background: rgba(29,78,216,0.3); color: white; }

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
}

/* ===== WALLET TAB -- MoMo prompt UX ===== */
.balance-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}
.momo-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 18px 16px 20px;
  margin-bottom: 12px;
}
.momo-card-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.momo-card-title .momo-ic {
  font-size: 1.4rem;
  line-height: 1;
}
.momo-card-title strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}
.momo-card-title p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin: 12px 0 6px;
}
.topup-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.preset-btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  min-width: 72px;
}
.preset-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.preset-btn.active {
  border-color: #16a34a;
  background: #ecfdf5;
  color: #15803d;
}
.wallet-topup-row {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}
.wallet-input {
  flex: 1;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
}
.wallet-input.full {
  width: 100%;
  margin-bottom: 4px;
}
.wallet-input:focus {
  outline: none;
  border-color: var(--blue);
}
.wallet-input::placeholder {
  color: var(--muted);
}
select.wallet-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
#wallet-topup-hint {
  margin-bottom: 8px;
}
.wallet-btn.full {
  width: 100%;
  margin-top: 14px;
  justify-content: center;
}
.momo-stay-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 10px 0 0;
}
.momo-status-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 32px 20px;
  text-align: center;
  margin-bottom: 12px;
}
.momo-status-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.momo-status-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--text);
}
.momo-status-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.momo-status-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.momo-status-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  opacity: 0.35;
  animation: momoDot 1.2s infinite ease-in-out;
}
.momo-status-dots span:nth-child(2) { animation-delay: 0.2s; }
.momo-status-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes momoDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.9); }
  40% { opacity: 1; transform: scale(1.15); }
}
.how-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.how-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.how-list li:last-child { border-bottom: none; }
.how-list strong { color: var(--text); }

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

/* ===== PROFILE TAB ===== */
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0 auto 12px;
}
.manage-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 18px 16px 20px;
  margin-bottom: 12px;
}
.manage-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
}
.manage-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 4px 0 14px;
}
.manage-msg {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
}
.manage-msg.err { color: var(--red); }
#mp-set-pass { margin-top: 10px; }

/* ===== TRANSACTION LIST ===== */
.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.tx-row {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tx-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.tx-icon.topup { background: var(--green-soft); color: var(--green); }
.tx-icon.purchase { background: var(--red-soft); color: var(--red); }
.tx-icon.refund { background: var(--amber-soft); color: var(--amber); }

.tx-info { flex: 1; min-width: 0; }
.tx-type {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
}
.tx-desc {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-meta {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
}
.tx-right {
  text-align: right;
  flex-shrink: 0;
}
.tx-amount {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
}
.tx-amount.positive { color: var(--green); }
.tx-amount.negative { color: var(--red); }
.tx-balance {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ===== PAYMENT METHOD SELECTOR (order sheet) ===== */
.payment-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.payment-method-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.payment-method-btn {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--bg);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--muted);
  width: 100%;
  text-align: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.payment-method-btn.active {
  border-color: var(--blue);
  color: var(--navy);
  background: var(--blue-light);
}
.payment-method-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.payment-method-balance {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 3px;
  display: block;
  font-weight: 600;
}


/* Network tab delivery styles */
.network-tabs-4 { flex-wrap: wrap; }
.network-tabs-4 .network-tab { flex: 1 1 22%; min-width: 70px; font-size: 0.72rem; padding: 8px 4px; }
.tab-label-stack { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.15; }
.tab-label-stack .tab-name { font-weight: 700; }
.tab-label-stack .tab-eta { font-size: 0.62rem; font-weight: 600; opacity: 0.85; }
.network-tab.active .tab-eta { opacity: 1; color: #ffcb05; }
.network-tab[data-network="MTN"].active { background: #1a1a1a; box-shadow: inset 0 -3px 0 #ffcb05; }
.delivery-hint {
  display: flex; flex-direction: column; gap: 2px;
  margin: 0 0 14px; padding: 10px 12px;
  border-radius: 12px; background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border, #e2e8f0);
  font-size: 0.8rem; color: var(--muted);
}
.delivery-hint strong { color: var(--navy, #0f172a); font-size: 0.85rem; }
.delivery-hint.express { background: rgba(255, 203, 5, 0.12); border-color: rgba(255, 203, 5, 0.45); }
.delivery-hint.standard { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.35); }

/* MTN verify result box */
.mtn-verify-box { margin: 12px 0; }
.verify-ok, .verify-warn, .verify-block {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.verify-ok { background: #ecfdf5; border: 1px solid #86efac; color: #166534; }
.verify-warn { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.verify-block { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.verify-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.verify-actions .wallet-btn { flex: 1; min-width: 120px; }

  /* Result checkers */
  .pin-box { background:var(--blue-light); border:1.5px solid var(--blue); border-radius:16px; padding:16px; margin-bottom:16px; }
  .pin-box .pin { font-family:'Sora',sans-serif; font-weight:800; font-size:1.4rem; color:var(--navy); letter-spacing:2px; word-break:break-all; }
  .pkg-card[disabled] { opacity:.5; cursor:not-allowed; }


/* ============================================================
   RESPONSIVE -- phones, tablets, laptops, ultra-small / watch
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
}
body {
  min-height: 100dvh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
img, svg, video {
  max-width: 100%;
  height: auto;
}
input, select, textarea, button {
  font-size: 16px; /* stops iOS zoom on focus */
  max-width: 100%;
}

/* Safe areas (notch, home indicator, rounded corners) */
.screen {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
#screen-landing {
  padding-left: 20px;
  padding-right: 20px;
  padding-top: calc(24px + env(safe-area-inset-top));
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  min-height: 100dvh;
}
.auth-header {
  padding-top: calc(12px + env(safe-area-inset-top));
}
.tab {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
.toast {
  top: calc(12px + env(safe-area-inset-top));
}

/* Comfortable touch targets */
.bottom-nav button,
.bottom-nav a,
.network-tab,
.wallet-btn,
.auth-btn,
.btn-primary,
.btn-outline,
.btn-ghost,
.back-btn {
  min-height: 44px;
}

/* ---------- Large phones / small tablets already covered at 600+ ---------- */

/* ---------- Narrow phones (<= 380px) ---------- */
@media (max-width: 380px) {

  .tab { padding-left: 12px; padding-right: 12px; }

  .form-row { grid-template-columns: 1fr; gap: 10px; }

  .network-tabs-4 .network-tab {
    flex: 1 1 45%;
    min-width: 0;
    font-size: 0.68rem;
    padding: 8px 2px;
  }
  .tab-label-stack .tab-eta { font-size: 0.58rem; }

  .pkg-row { padding: 12px 10px; gap: 8px; }
  .pkg-price { font-size: 0.95rem; }

  .bottom-nav { padding-left: 2px; padding-right: 2px; }
  .bottom-nav button,
  .bottom-nav a {
    font-size: 0.65rem;
    padding: 6px 2px;
    min-width: 0;
  }

  .verify-actions { flex-direction: column; }
  .verify-actions .wallet-btn { min-width: 0; width: 100%; }

  .pin-box .pin { font-size: 1.15rem; letter-spacing: 1px; }
}

/* ---------- Ultra-small / smartwatch-ish (<= 320px width) ---------- */
@media (max-width: 320px) {
  #screen-landing { padding: 24px 14px calc(24px + env(safe-area-inset-bottom)); }
  .btn-primary, .google-btn { font-size: 0.9rem; }

  .auth-body { padding: 16px 12px; }
  .auth-title { font-size: 1.2rem; }
  .form-label { font-size: 0.72rem; }
  .form-input { padding: 10px 12px; }

  .tab { padding: 12px 10px 72px; }
  .buy-title { font-size: 1.1rem; }
  .buy-sub { font-size: 0.75rem; }

  .network-tabs-4 .network-tab {
    flex: 1 1 100%;
    border-radius: 10px;
  }

  .balance-amount, .wallet-balance { font-size: 1.4rem; }

  .bottom-nav span:not(.nav-ico) { display: none; } /* icons only */
  .bottom-nav { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }

  .order-sheet { border-radius: 16px 16px 0 0; max-height: 92dvh; }
  .guest-sheet { border-radius: 16px 16px 0 0; max-height: 92dvh; }
  .toast { font-size: 0.75rem; padding: 10px 14px; max-width: 96%; }
}

/* ---------- Short screens (landscape phone / short watch) ---------- */
@media (max-height: 480px) {
  #screen-landing {
    justify-content: flex-start;
    padding-top: calc(16px + env(safe-area-inset-top));
    padding-bottom: 16px;
    overflow-y: auto;
  }
  .landing-logo { margin-bottom: 8px; }
  .landing-title { font-size: 1.4rem; margin-bottom: 6px; }
  .landing-sub { margin-bottom: 12px; }

  .tab { padding-top: 12px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .bottom-nav { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
}

/* ---------- Tablets portrait (600-1023) -- tighten spacing ---------- */
@media (min-width: 600px) and (max-width: 1023px) {
  .tab { padding-left: 28px; padding-right: 28px; }
  .network-tabs-4 .network-tab { min-width: 100px; font-size: 0.8rem; }
  .pkg-list { gap: 12px; }
}

/* ---------- Laptops / desktop: readable content column ---------- */
@media (min-width: 1024px) {
  body { background: #e8eef6; }
  .form-input, .auth-btn, .wallet-btn { font-size: 0.95rem; }
  /* no bottom-nav on desktop -- drop mobile reserve space */
  .tab { padding-bottom: 32px; }
  #screen-landing {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* ---------- Very wide desktops ---------- */
@media (min-width: 1440px) {
  .tab { max-width: 1100px; }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print: hide chrome */
@media print {
  .bottom-nav, .order-sheet, .guest-sheet, .toast { display: none !important; }
  .screen { display: block !important; min-height: auto; }
}


/* ---- Promo banner ---- */
.promo-banner {
  margin: 12px 16px 8px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f766e 0%, #115e59 50%, #134e4a 100%);
  color: #ecfdf5;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.25);
  overflow: hidden;
}
.promo-banner-inner { padding: 16px 18px 18px; }
.promo-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.promo-title { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; color: #fff; }
.promo-desc { margin: 0 0 8px; font-size: 0.92rem; opacity: 0.92; line-height: 1.4; }
.promo-meta { margin: 0 0 12px; font-size: 0.8rem; opacity: 0.85; }
.promo-claim-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.promo-code-input {
  flex: 1 1 140px;
  min-width: 0;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fff;
  color: #134e4a;
}
#promo-claim-btn {
  flex: 0 0 auto;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  border: none;
  background: #fbbf24;
  color: #134e4a;
  cursor: pointer;
}
#promo-claim-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.promo-status { margin: 10px 0 0; font-size: 0.88rem; min-height: 1.2em; }
.promo-status.ok { color: #a7f3d0; }
.promo-status.err { color: #fecaca; }
.promo-my-row { margin-top: 8px; }
.promo-my-row .link-btn { font-size: 0.85rem; opacity: 0.9; }
.promo-my-list {
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 8px;
  max-height: 180px;
  overflow-y: auto;
}
.promo-my-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  padding: 5px 0;
}
.promo-my-item .promo-status { margin: 0; font-size: 0.8rem; }


/* kesse-tab-fix -- only one tab visible */
.tab { display: none !important; }
.tab.active { display: block !important; }
#screen-dashboard:not(.active) .bottom-nav { display: none !important; }


/* ===== CUSTOMER OVERHAUL ADDITIONS ===== */
.pass-field { position:relative; }
.pass-toggle { position:absolute; right:12px; top:50%; transform:translateY(-50%); background:none; border:none; color:var(--muted); font-weight:700; font-size:.8rem; cursor:pointer; }
.signin-badge { display:inline-flex; align-items:center; gap:6px; background:var(--green-soft); color:var(--green); border:1px solid #c8ecd6; border-radius:20px; padding:4px 12px; font-size:.72rem; font-weight:700; margin-bottom:12px; }
.terms-row { display:flex; align-items:center; gap:8px; font-size:.85rem; color:var(--muted); margin:10px 0; }
.terms-row a { color:var(--blue); }
.trust-line { text-align:center; font-size:.78rem; color:var(--muted); margin-top:12px; }
.footer-links { display:flex; justify-content:center; gap:14px; margin-top:16px; font-size:.8rem; }
.footer-links a { color:var(--blue); text-decoration:none; }
.buy-tile-row { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:16px; }
.buy-tile { background:var(--white); border:1.5px solid var(--border); border-radius:14px; padding:14px 8px; display:flex; flex-direction:column; align-items:center; gap:6px; font-weight:700; font-size:.8rem; color:var(--navy); cursor:pointer; font-family:'Inter',sans-serif; transition:border-color .2s, transform .15s; }
.buy-tile:hover { border-color:var(--blue); }
.buy-tile:active { transform:scale(.97); }
.landing-min-price { color:rgba(255,255,255,.75); font-size:.9rem; margin-top:8px; text-align:center; }
.copy-pin { background:var(--blue-light); border:1px solid var(--blue); color:var(--blue); font-weight:700; font-size:.72rem; border-radius:10px; padding:4px 10px; cursor:pointer; }
button, a { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
/* Floating WhatsApp support button */
.wa-float {
  position: fixed;
  right: 14px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 300;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:active { transform: scale(.95); }
.wa-float:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.has-bottom-nav .wa-float { bottom: calc(88px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  .wa-float,
  .has-bottom-nav .wa-float { bottom: 24px; }
}
/* PWA: install button, guide, offline banner */
.install-app-btn {
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--white);
  color:var(--blue);
  border:1.5px solid var(--blue);
  border-radius:999px;
  padding:8px 16px;
  font-family:'Sora',sans-serif;
  font-weight:700;
  font-size:.8rem;
  cursor:pointer;
  margin:0 0 14px;
  transition:background .2s, color .2s, transform .15s;
  touch-action:manipulation;
}
.install-app-btn:hover { background:var(--blue-light); }
.install-app-btn:active { transform:scale(.97); }

#install-guide {
  background:var(--white);
  border:1px solid var(--border);
  border-left:3px solid var(--blue);
  border-radius:12px;
  padding:10px 14px;
  font-size:.78rem;
  color:var(--muted);
  margin-bottom:14px;
}

.offline-banner {
  position:fixed;
  top:calc(56px + env(safe-area-inset-top));
  left:0;
  right:0;
  z-index:250;
  background:var(--amber-soft);
  border-bottom:1px solid #fde68a;
  color:var(--amber);
  font-size:.78rem;
  font-weight:600;
  text-align:center;
  padding:9px 16px;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
}

.install-app-btn[hidden],
#install-guide[hidden],
.offline-banner[hidden] { display:none !important; }
/* ===== DESKTOP MENU BUTTON (topbar) ===== */
.desktop-menu-btn {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent; border: none;
  color: #fff; font-size: 1.2rem;
  border-radius: 10px; padding: 0;
  cursor: pointer;
}
.desktop-menu-btn:hover { background: rgba(255,255,255,0.08); }
@media (min-width: 1024px) {
  .desktop-menu-btn { display: flex; }
}

/* ===== SIDE PANEL THEME ROW ===== */
.side-panel-section {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.side-panel-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.theme-row { display: flex; gap: 8px; }
.theme-btn {
  flex: 1; padding: 9px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s, border-color 0.2s;
  font-family: 'Inter', sans-serif;
}
.theme-btn:hover { background: rgba(255,255,255,0.16); }
.theme-btn.active { background: var(--blue); border-color: var(--blue); }

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --bg: #0b1428;
  --white: #111c36;
  --card: #111c36;
  --text: #eef2f9;
  --muted: #93a4c3;
  --border: rgba(255,255,255,0.12);
  --navy: #0a1f44;
  --blue: #3b82f6;
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .bottom-nav { background: rgba(17,28,54,0.96); }
[data-theme="dark"] .pkg-skeleton .sk-block { background: linear-gradient(90deg,#1a2740 25%,#0b1428 50%,#1a2740 75%); }
[data-theme="dark"] .delivery-hint { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .delivery-hint.express { background: rgba(255,203,5,0.10); border-color: rgba(255,203,5,0.45); }
[data-theme="dark"] .delivery-hint.standard { background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.4); }
[data-theme="dark"] .auth-title,
[data-theme="dark"] .auth-alt-btn,
[data-theme="dark"] .greeting-title,
[data-theme="dark"] .stat-value,
[data-theme="dark"] .quick-card .qtitle,
[data-theme="dark"] .buy-title,
[data-theme="dark"] .buy-tile,
[data-theme="dark"] .pkg-title,
[data-theme="dark"] .pkg-price,
[data-theme="dark"] .pkg-gb,
[data-theme="dark"] .wallet-btn.secondary,
[data-theme="dark"] .sheet-title,
[data-theme="dark"] .order-net,
[data-theme="dark"] .order-price,
[data-theme="dark"] .manage-title,
[data-theme="dark"] .tx-type,
[data-theme="dark"] .payment-method-btn.active,
[data-theme="dark"] .pin-box .pin,
[data-theme="dark"] .guest-success b {
  color: var(--text);
}
[data-theme="dark"] .notif-item:hover,
[data-theme="dark"] .notif-item.unread { background: rgba(59,130,246,0.12); }

/* ===== NOTIFICATIONS ===== */
.topbar-notif { position: relative; display: flex; align-items: center; }
.notif-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background .2s;
}
.notif-btn:hover { background: rgba(255,255,255,0.14); }
.notif-btn:active { transform: scale(.95); }
.notif-btn.open { background: rgba(255,255,255,0.2); }
.notif-btn svg { width: 20px; height: 20px; }
.notif-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px;
  background: var(--red);
  color: #fff;
  font-size: .68rem; font-weight: 700;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.notif-badge[hidden] { display: none; }
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px; max-width: calc(100vw - 24px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  z-index: 200;
  overflow: hidden;
}
.notif-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.notif-panel-title { font-family:'Sora',sans-serif; font-weight:700; font-size:.9rem; color:var(--text); }
.notif-mark-all { background: none; border: none; color: var(--blue); font-weight:600; font-size:.76rem; cursor:pointer; }
.notif-mark-all:disabled { opacity: .5; cursor: default; }
.notif-status { padding: 16px 14px; font-size: .8rem; color: var(--muted); text-align: center; }
.notif-status.error { color: var(--red); }
  .notif-list { max-height: min(55vh, 360px); overflow-y: auto; overscroll-behavior: contain; }
  .notif-item {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background .15s, border-color .15s;
  }
  .notif-item:last-child { border-bottom: none; }
  .notif-item:hover { background: var(--blue-light); }
  .notif-item.unread { background: var(--blue-light); border-left-color: var(--blue); }
  .notif-item.unread .notif-title { font-weight: 700; }
  .notif-item:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
  .notif-mark-all:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.notif-title { font-size: .85rem; font-weight: 600; color: var(--text); }
.notif-msg { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.notif-title, .notif-msg { overflow-wrap: anywhere; }
.notif-time { font-size: .7rem; color: var(--muted); margin-top: 6px; }
.notif-empty { padding: 24px 16px; text-align: center; }

/* Hidden must always win over display rules (desktop + mobile tray). */
.notif-panel[hidden] { display: none !important; }

/* Notification panel: full-width anchored tray on small screens */
@media (max-width: 600px) {
  .notif-panel {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 60px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    max-height: min(68vh, 460px);
    z-index: 300;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    animation: notifTrayIn .18s ease-out;
  }
  .notif-list { max-height: none; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
}
@keyframes notifTrayIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.delivery-perf {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 10px 0 2px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.4;
}
.delivery-perf[hidden] { display: none; }
.dp-icon { font-size: .95rem; line-height: 1.3; }
.site-maintenance-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f7f9fc;
}

.site-maintenance-gate[hidden] {
  display: none;
}

.site-maintenance-card {
  width: min(460px, 100%);
  padding: 36px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid #e4e9f1;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(10, 31, 68, 0.12);
}

.site-maintenance-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.site-maintenance-card h1 {
  margin: 0 0 10px;
  color: #0a1f44;
}

.site-maintenance-card p {
  margin: 0;
  color: #53627a;
  line-height: 1.6;
}
