@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@700;800&display=swap");
/* =====================================================================
   SafoBuilder — ichki sahifalar uchun yangi ko'rinish qatlami.

   Har bir ichki sahifa o'z <style> blokidan KEYIN shu faylni ulaydi.
   Sahifalarning HTML tuzilishi, PHP mantiqi va JS'iga tegilmaydi:
   bu fayl faqat ranglar, shrift va komponentlar ko'rinishini almashtiradi.

   Brend landing page bilan bir xil: to'q ko'k asos (#05080F),
   Telegram ko'ki aksent, Onest shrifti. Gradient, soya, mayda bosh harfli
   yozuvlar ishlatilmaydi.

   Landing va ochiq sahifalar (about, privacy, terms) bu faylni ULAMAYDI.
   ===================================================================== */

/* ------------------------------------------------------------ tokenlar (2026-11-24: SB logo ranglari) */
:root {
  --bg: #020C1C;
  --bg2: #04112A;
  --side: #061529;
  --s1: #071A33;
  --s2: #0D2442;
  --s3: #14305A;
  --s4: #1B3B6B;
  --b1: rgba(140, 170, 215, .12);
  --b2: rgba(140, 170, 215, .20);
  --b3: rgba(140, 170, 215, .30);
  --text: #EAF1FB;
  --t2: #AAB7CD;
  --t3: #7E8CA6;

  --accent: #0C8BFE;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(12, 139, 254, .14);
  --blue: #0C8BFE;
  --blue2: #3AA1FF;
  --cyan: #0C8BFE;
  --tg-blue: #2AABEE;
  --grad-a: #0C8BFE;
  --grad-b: #0C8BFE;

  --green: #27C49A;
  --orange: #F2B33D;
  --red: #F07070;
  --danger: #F07070;
  --st-ok: #27C49A;
  --st-soon: #F2B33D;
  --st-over: #F07070;
  --st-idle: #7E8CA6;

  --ghost-bg: rgba(255, 255, 255, .04);
  --hover-bg: rgba(255, 255, 255, .06);
  --badge-bg: rgba(12, 139, 254, .14);
  --badge-br: rgba(12, 139, 254, .28);
  --shadow-sm: none;
  --shadow-md: 0 18px 40px rgba(0, 0, 0, .45);

  --deep: #0A2140;
  --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%230C8BFE' stroke-width='1.2' opacity='.35'%3E%3Crect x='21' y='21' width='30' height='30'/%3E%3Crect x='21' y='21' width='30' height='30' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 36h15M57 36h15M36 0v15M36 57v15'/%3E%3C/g%3E%3C/svg%3E");
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Archivo", var(--font);
  --font-body: var(--font);
  --sidebar-w: 256px;
  --sw: 256px;
  --r-card: 16px;
}
[data-theme="light"] {
  --bg: #F2F5FA;
  --bg2: #E9EEF6;
  --side: #FFFFFF;
  --s1: #FFFFFF;
  --s2: #EEF2F8;
  --s3: #E2E8F1;
  --s4: #D3DCE8;
  --b1: rgba(1, 17, 40, .09);
  --b2: rgba(1, 17, 40, .15);
  --b3: rgba(1, 17, 40, .24);
  --text: #011128;
  --t2: #3C4860;
  --t3: #6F7A91;

  --accent: #0A72D6;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(10, 114, 214, .10);
  --blue: #0A72D6;
  --blue2: #085DB0;
  --cyan: #0A72D6;
  --tg-blue: #2AABEE;
  --grad-a: #0A72D6;
  --grad-b: #0A72D6;

  --green: #0B9A74;
  --orange: #B7751A;
  --red: #D64545;
  --danger: #D64545;
  --st-ok: #0B9A74;
  --st-soon: #B7751A;
  --st-over: #D64545;
  --st-idle: #6F7A91;

  --ghost-bg: rgba(1, 17, 40, .03);
  --hover-bg: rgba(1, 17, 40, .05);
  --badge-bg: rgba(10, 114, 214, .08);
  --badge-br: rgba(10, 114, 214, .22);
  --shadow-md: 0 18px 40px rgba(1, 17, 40, .12);

  --deep: #011128;
}

body { font-family: var(--font); letter-spacing: -.005em; }
h1, h2, h3, h4, .page-title { font-family: var(--font); letter-spacing: -.02em; }
.num, .stat-value, .balance-amount { font-variant-numeric: tabular-nums; }
::selection { background: var(--accent); color: var(--accent-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ------------------------------------------------------------ yuqori panel */
.header { background: var(--bg); border-bottom: 0; }
.brand { font-family: var(--font); font-weight: 700; letter-spacing: -.02em; }
.brand .accent { color: inherit; }
.brand-mark { background: transparent !important; box-shadow: none !important; }
.icon-btn, .menu-toggle { background: var(--s1); border: 0; border-radius: 50%; }
.icon-btn:hover, .menu-toggle:hover { background: var(--s2); }
.notif-dot { background: var(--accent); box-shadow: 0 0 0 2px var(--s1); }
.user-chip { background: var(--s1); border: 0; border-radius: 999px; }
.user-chip:hover { background: var(--s2); }
.user-avatar { background: var(--s3) !important; color: var(--text) !important; box-shadow: none !important; }

/* ------------------------------------------------------------ chap menyu */
.sidebar { background: var(--side); border-right: 0; }
/* Guruh nomlari ("ASOSIY", "BOTLAR"...) o'rniga faqat bo'shliq */
.nav-section { font-size: 0; line-height: 0; height: 14px; margin: 0; padding: 0; text-transform: none; letter-spacing: 0; }
.nav-section:first-child { height: 4px; }
.nav-item { border-radius: 10px; font-weight: 500; color: var(--t2); }
.nav-item:hover { background: var(--hover-bg); color: var(--text); }
.nav-item.active { background: var(--s2); color: var(--text); font-weight: 600; box-shadow: none; }
.nav-item.active::before { display: none; }
.nav-item.active svg { fill: var(--accent); color: var(--accent); }
.nav-badge { background: transparent; border: 0; color: var(--t3); font-weight: 500; }
.nav-item.logout { color: var(--t3); }
.nav-item.logout:hover { color: var(--danger); background: transparent; }

/* Balans: quti emas, oddiy blok */
.balance-card { background: transparent; border: 0; box-shadow: none; padding: 16px 12px 4px; }
.balance-label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 400; color: var(--t3); }
.balance-amount { font-family: var(--font); font-weight: 700; letter-spacing: -.02em; }
.balance-amount span { color: var(--t2); font-weight: 600; }
.topup-btn { border-radius: 999px; background: var(--accent) !important; color: var(--accent-ink) !important; box-shadow: none !important; font-weight: 600; }
.topup-btn:hover { filter: brightness(1.06); }

/* ------------------------------------------------------------ tugmalar */
.btn-primary, .submit-btn, .pay-btn, .bp-pay, .modal-confirm, .tk-send, .tk-row.user .tk-bubble {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  box-shadow: none !important;
}
.btn-primary svg, .pay-btn svg, .bp-pay svg, .submit-btn svg, .tk-send svg { fill: currentColor; color: currentColor; }
.btn-primary, .submit-btn, .pay-btn, .bp-pay, .btn-ghost, .btn-secondary { border-radius: 999px; font-weight: 600; }
.btn-primary:hover, .submit-btn:hover, .pay-btn:hover, .bp-pay:hover { filter: brightness(1.06); transform: none; }
.btn-ghost:hover { background: var(--hover-bg); color: var(--text); }
.tk-unread, .tk-avatar.admin { background: var(--accent) !important; color: var(--accent-ink) !important; }
.toggle[aria-checked="true"] { background: var(--accent) !important; }

/* ------------------------------------------------------------ kartalar */
.card, .stat-card, .panel, .bp-card, .profile-card, .form-card, .update-card {
  border-radius: var(--r-card);
  box-shadow: none;
}
.card, .stat-card { border-color: transparent; }

/* Jadval sarlavhalari va mayda yozuvlar: bosh harf emas, oddiy gap */
.table th, .bh-label, .av-stat-lbl, .update-badge, .section-divider-title, .ml-phase {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Gradientli bloklar — tekis rang */
.balance-hero { background: var(--s1) !important; border-color: transparent !important; }
.big-avatar { background: var(--s3) !important; color: var(--text) !important; box-shadow: none !important; }
.unread-banner { background: var(--accent-soft) !important; border-color: transparent !important; }
.update-card::before { display: none !important; }
.logo-icon { background: transparent !important; box-shadow: none !important; }

/* Yuklanayotgan holatda ham soya yo'q */
.stat-card:hover, .card:hover { box-shadow: none; }

/* Telefonda balans blokidagi ikonka matn ostiga tushib qolmasin */
@media (max-width: 760px) {
  .balance-hero .bh-icon, .balance-hero > svg, .balance-hero .bh-ico { display: none !important; }
}

/* =====================================================================
   QOBIQ: brend chap menyu tepasida, yuqori panelda sahifa nomi,
   telefonda pastki menyu (navbar.php bilan birga).
   ===================================================================== */
.header { background: var(--bg) !important; border-bottom: 0 !important; padding: 0 28px 0 20px; }
.header::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); background: var(--side); z-index: -1; }
.brand { width: calc(var(--sidebar-w) - 20px); flex: none; font-size: 19px; }
.brand-mark { width: 32px !important; height: 32px !important; border-radius: 9px !important; }
.nav-crumb { flex: 1; min-width: 0; padding-left: 28px; font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-crumb a { color: var(--t3); }
.nav-crumb a:hover { color: var(--text); }
.nav-crumb .sep { color: var(--t3); margin: 0 8px; }
.header-right { gap: 10px; }
.icon-btn { width: 40px !important; height: 40px !important; }
.user-chip { height: 40px !important; padding: 0 14px 0 4px !important; gap: 10px !important; }
.user-avatar { width: 32px !important; height: 32px !important; border-radius: 50% !important; font-weight: 700; }

.sidebar { padding: 14px 14px 18px !important; }
.nav-item { padding: 10px 12px !important; font-size: 15px !important; gap: 12px !important; }
.nav-item svg.nav-ico { width: 20px !important; height: 20px !important; fill: none !important; stroke: currentColor; }
.nav-item.active svg.nav-ico { stroke: var(--accent); fill: none !important; }
.nav-badge { margin-left: auto; }
.balance-cover { font-size: 13px; color: var(--t2); margin-top: 2px; }
.balance-amount { font-size: 22px !important; }
.topup-btn { margin-top: 12px !important; height: 42px; display: flex !important; align-items: center; justify-content: center; }
.main { padding-left: 32px !important; padding-right: 32px !important; }

.tabbar { display: none; }

.bal-chip { display: none; }

@media (max-width: 900px) {
  /* bitta menyu: faqat pastki tablar; tepada balans */
  .menu-toggle, #themeToggle, .user-chip { display: none !important; }
  .bal-chip { display: flex; align-items: baseline; gap: 4px; height: 38px; padding: 0 14px; border-radius: 999px;
    background: var(--s1); color: var(--text); font-size: 14px; text-decoration: none; line-height: 38px; }
  .bal-chip small { color: var(--t2); font-size: 12px; }
  .bal-chip:active { background: var(--s2); }
  .header { padding: 0 14px !important; }
  .header::before { display: none; }
  .brand { width: auto; }
  .nav-crumb { display: none; }
  .main { padding-left: 16px !important; padding-right: 16px !important; padding-bottom: 100px !important; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 8px 4px calc(10px + env(safe-area-inset-bottom));
    background: var(--side);
  }
  .tabbar-item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; color: var(--t3); padding: 4px 0; }
  .tabbar-item svg { width: 23px; height: 23px; }
  .tabbar-item.active { color: var(--accent); }
}

/* =====================================================================
   Kirish / Ro'yxatdan o'tish: chapda ko'k brend panel, o'ngda forma.
   Telefonda faqat forma qoladi.
   ===================================================================== */
.auth-brand { display: none; }
@media (min-width: 1000px) {
  .auth-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding: 0 !important;
    align-items: stretch !important;
    max-width: none !important;
  }
  .auth-brand {
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 44px 48px 56px;
    background: #2AABEE; color: #05080F;
  }
  .auth-brand-logo { display: inline-flex; align-items: center; gap: 12px; color: #05080F; font-weight: 700; font-size: 21px; letter-spacing: -.02em; text-decoration: none; }
  .auth-brand-logo img { border-radius: 10px; background: #05080F; }
  .auth-brand-title { margin: 0; max-width: 11ch; font-size: clamp(52px, 5.4vw, 80px); line-height: .98; font-weight: 800; letter-spacing: -.045em; }
  .auth-brand-sub { margin: 22px 0 0; max-width: 30ch; font-size: 19px; line-height: 1.45; color: rgba(5, 8, 15, .78); }

  .auth-card {
    align-self: center; justify-self: center;
    width: 100%; max-width: 480px !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    padding: 48px 24px !important;
  }
  .auth-card .auth-logo { visibility: hidden; }
  .auth-title { font-size: 40px !important; letter-spacing: -.035em; }
}
.auth-card .field input, .auth-card input.field-input { border: 0 !important; background: var(--s2) !important; }

/* Mockup'da yo'q sahifalar (profil, yangilanishlar, qo'llanma) ham bir xil:
   kartalar chegarasiz, ichki ajratgichlar yengil */
.profile-card, .form-card, .panel, .card, .update-card, .manual-card { border-color: transparent !important; }
.big-avatar { border: 0 !important; }
.card-head, .form-card-head, .panel-head { border-bottom-color: var(--b1) !important; }

/* ── Chiroyli xabarlar (toast): ikonka, sarlavha, izoh (2026-11-18) ── */
.tst-wrap{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:400;display:flex;flex-direction:column;gap:10px;
  width:calc(100% - 32px);max-width:420px;pointer-events:none}
.tst{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-radius:16px;background:var(--s2);border:1px solid var(--b2);
  box-shadow:0 18px 40px rgba(0,0,0,.45);color:var(--text);pointer-events:auto;animation:tstIn .28s cubic-bezier(.2,.9,.3,1.2)}
.tst.leaving{animation:tstOut .22s ease forwards}
.tst-ic{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}
.tst-ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.tst.ok .tst-ic{background:rgba(16,185,129,.16);color:var(--green)}
.tst.err .tst-ic{background:rgba(248,113,113,.16);color:var(--red)}
.tst.info .tst-ic{background:rgba(59,130,246,.16);color:var(--blue)}
.tst-tx{flex:1;min-width:0;padding-top:1px}
.tst-t{font-weight:700;font-size:14.5px;line-height:1.35;overflow-wrap:anywhere}
.tst-s{font-size:13px;color:var(--t2);margin-top:2px;line-height:1.4}
.tst-x{background:none;border:0;color:var(--t3);cursor:pointer;padding:2px;margin:-2px -4px 0 0;font-size:18px;line-height:1}
.tst-x:hover{color:var(--text)}
@keyframes tstIn{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
@keyframes tstOut{to{opacity:0;transform:translateY(8px)}}
@media (prefers-reduced-motion:reduce){.tst,.tst.leaving{animation:none}}
@media (max-width:900px){
  .tst-wrap{bottom:calc(140px + env(safe-area-inset-bottom))}
}


/* =====================================================================
   2026-11-24 — yangi dizayn qobig'i (maket_panel.html): SB logo, guruh
   nomlari ko'rinadi, faol bo'lim — och ko'k fon, balans — to'q ko'k
   koshinli karta, kartalar ingichka chegara bilan, sarlavhalar Archivo.
   ===================================================================== */
h1, .page-title { font-family: var(--font-head) !important; font-weight: 800 !important; letter-spacing: -.025em !important; }
.header { background: color-mix(in srgb, var(--bg) 92%, transparent) !important; backdrop-filter: blur(10px); border-bottom: 1px solid var(--b1) !important; }
.header::before { border-right: 1px solid var(--b1); }
.brand { gap: 9px; color: var(--text); text-decoration: none; }
.brand-mark { width: auto !important; height: auto !important; border-radius: 0 !important; display: flex; }
.brand-mark img { height: 32px; width: auto; display: block; }
.brand .m-night { display: none; }
[data-theme="dark"] .brand .m-day { display: none; }
[data-theme="dark"] .brand .m-night { display: block; }
.brand-word { font-family: var(--font-head); font-weight: 800; font-size: 13.5px; line-height: .95; letter-spacing: -.01em; text-transform: uppercase; color: var(--text); }
.icon-btn, .menu-toggle { background: var(--s1) !important; border: 1.5px solid var(--b1) !important; border-radius: 11px !important; }
.icon-btn:hover, .menu-toggle:hover { border-color: var(--b3) !important; }
.notif-dot { background: #E5484D !important; box-shadow: 0 0 0 2px var(--s1) !important; }
.user-chip { background: var(--s1) !important; border: 1.5px solid var(--b1) !important; border-radius: 12px !important; }
.user-avatar { background: var(--accent) !important; color: #fff !important; border-radius: 9px !important; }
.nav-crumb { color: var(--t3) !important; }

.sidebar { border-right: 1px solid var(--b1) !important; }
.nav-section { font-size: 12px !important; line-height: 1.2 !important; height: auto !important; font-weight: 700; color: var(--t3); padding: 16px 12px 6px !important; letter-spacing: .02em !important; }
.nav-section:first-child { padding-top: 4px !important; height: auto !important; }
.nav-item { border-radius: 11px !important; }
.nav-item:hover { background: var(--bg) !important; }
.nav-item.active { background: var(--accent-soft) !important; color: var(--accent) !important; }
[data-theme="dark"] .nav-item.active { color: #6FB6FF !important; }
.nav-item.active svg.nav-ico { stroke: currentColor !important; }
.nav-badge { background: var(--s3) !important; color: var(--t2) !important; border-radius: 999px !important; font-size: 12px !important; font-weight: 700 !important; padding: 1px 8px !important; min-width: 0 !important; }
.nav-item.active .nav-badge { background: var(--blue) !important; color: #fff !important; }
.balance-card { margin-top: 12px; background: var(--deep) var(--girih) !important; color: #fff !important; border-radius: 16px !important; padding: 16px !important; }
.balance-label, .balance-cover { color: #AEBBD2 !important; }
.balance-amount, .balance-amount span { color: #fff !important; font-family: var(--font-head) !important; font-weight: 800 !important; }
.topup-btn { background: #0C8BFE !important; color: #fff !important; border-radius: 10px !important; height: 40px !important; }
.balance-card .nav-item.logout { color: #AEBBD2 !important; padding-left: 4px !important; }
.balance-card .nav-item.logout:hover { color: #fff !important; background: transparent !important; }
.balance-card .nav-item.logout svg { fill: currentColor; width: 18px; height: 18px; }

.btn-primary, .submit-btn, .pay-btn, .bp-pay, .btn-ghost, .btn-secondary { border-radius: 12px !important; }
.btn-primary, .submit-btn, .pay-btn, .bp-pay { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18) !important; }
.card, .stat-card, .panel, .bp-card, .profile-card, .form-card, .update-card, .manual-card { border: 1px solid var(--b1) !important; }
.balance-hero { background: var(--deep) var(--girih) !important; color: #fff !important; border: 0 !important; }
.big-avatar { background: var(--accent) !important; color: #fff !important; }

@media (max-width: 900px) {
  .header { border-bottom: 1px solid var(--b1) !important; }
  .bal-chip { background: var(--deep) !important; color: #fff !important; border-radius: 12px !important; font-weight: 700; }
  .bal-chip small { color: #AEBBD2 !important; }
  .tabbar { background: color-mix(in srgb, var(--side) 94%, transparent) !important; backdrop-filter: blur(14px); border-top: 1px solid var(--b1); }
  .tabbar-item.active { color: var(--accent) !important; }
  [data-theme="dark"] .tabbar-item.active { color: #6FB6FF !important; }
}

/* Bosh sahifa (dashboard): balans — to'q ko'k koshinli karta, ko'rsatkichlar ingichka chegara bilan */
.dz-fuel { background: var(--deep) var(--girih) !important; color: #fff !important; border-radius: 18px !important; }
.dz-fuel .dz-label { color: #AEBBD2 !important; }
.dz-fuel .dz-big, .dz-fuel .dz-big small { color: #fff !important; font-family: var(--font-head) !important; }
.dz-fuel .dz-big small { color: #AEBBD2 !important; }
.dz-fuel .dz-btn { background: rgba(255, 255, 255, .08) !important; color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .18) !important; }
.dz-kpi, .dz-list, .dz-card { border: 1px solid var(--b1) !important; border-radius: 16px !important; }
.dz-kpi .dz-big, .dz-kpi .num { font-family: var(--font-head) !important; }
