/* =========================================================
   BOOST.UZ — DIZAYN TOKENLARI
   ========================================================= */
:root{
  --font-display:'Space Grotesk', system-ui, sans-serif;
  --font-body:'Inter', system-ui, sans-serif;

  /* ---- TONG (kunduzgi) — DEFAULT tema ---- */
  --bg:#F2F4FA;
  --bg-soft:#FFFFFF;
  --panel:#FFFFFF;
  --panel-soft:#F3F5FA;
  --border:#E3E7F0;
  --border-soft:#ECEFF6;

  --text:#161A24;
  --text-dim:#666F86;
  --text-faint:#99A1B5;

  --accent:#6C5CE7;
  --accent-2:#8B7BF7;
  --accent-soft:rgba(108,92,231,.10);
  --mint:#0FB185;
  --mint-soft:rgba(15,177,133,.12);
  --amber:#D98A14;
  --amber-soft:rgba(217,138,20,.13);
  --danger:#E0464F;
  --danger-soft:rgba(224,70,79,.12);

  --radius-lg:20px;
  --radius-md:14px;
  --radius-sm:10px;
  --radius-pill:999px;

  --shadow-card:0 10px 30px -18px rgba(24,30,52,.16);
  --sidebar-w:264px;
  --topbar-h:72px;
  --content-max:1680px;
  --topbar-bg:rgba(255,255,255,.86);
  --nav-hover:rgba(108,92,231,.07);

  color-scheme:light;
}

/* ---- TUN (kechqurun) — almashtiriladigan tema ---- */
[data-theme="tun"]{
  --bg:#0A0D14;
  --bg-soft:#0E121B;
  --panel:#151A24;
  --panel-soft:#1A2029;
  --border:#232A38;
  --border-soft:#1D2330;

  --text:#EBEEF5;
  --text-dim:#8D97AC;
  --text-faint:#565F72;

  --accent:#6C5CE7;
  --accent-2:#8B7BF7;
  --accent-soft:rgba(108,92,231,.16);
  --mint:#2FE6B0;
  --mint-soft:rgba(47,230,176,.14);
  --amber:#FFB454;
  --amber-soft:rgba(255,180,84,.15);
  --danger:#FF5D6C;
  --danger-soft:rgba(255,93,108,.14);

  --shadow-card:0 10px 30px -14px rgba(0,0,0,.55);
  --topbar-bg:rgba(10,13,20,.86);
  --nav-hover:rgba(108,92,231,.12);
  color-scheme:dark;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{-webkit-text-size-adjust:100%; overflow-x:hidden; width:100%; background:var(--bg);}
body{overflow-x:hidden; max-width:100%; width:100%; overflow-wrap:break-word;}
body{
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  transition:background .35s ease, color .35s ease;
}
h1,h2,h3,h4{font-family:var(--font-display); font-weight:600; letter-spacing:-.01em;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer;}
input, select{font-family:inherit;}
ul{list-style:none;}
::selection{background:var(--accent); color:#fff;}

/* Scrollbar (webkit) */
::-webkit-scrollbar{width:9px; height:9px;}
::-webkit-scrollbar-track{background:transparent;}
::-webkit-scrollbar-thumb{background:var(--border); border-radius:99px;}
::-webkit-scrollbar-thumb:hover{background:var(--text-faint);}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:none; border-radius:var(--radius-sm);
  font-weight:600; font-size:14px; padding:12px 18px;
  transition:transform .15s ease, filter .2s ease, background .2s ease;
}
.btn svg{width:17px; height:17px; flex:none;}
.btn:active{transform:scale(.97);}
.btn-block{width:100%;}
.btn-lg{padding:15px 18px; font-size:15px;}

.btn-accent{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
}
.btn-accent:hover{filter:brightness(1.08);}

.btn-outline{
  background:transparent;
  color:var(--text);
  border:1px solid var(--border);
}
.btn-outline:hover{border-color:var(--accent); color:var(--accent-2);}

.btn-ghost-light{
  background:rgba(255,255,255,.14);
  color:#fff;
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(6px);
}
.btn-ghost-light:hover{background:rgba(255,255,255,.22);}

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar{
  position:fixed; top:0; left:0; bottom:0; width:var(--sidebar-w);
  background:var(--bg-soft);
  border-right:1px solid var(--border-soft);
  display:flex; flex-direction:column;
  z-index:60;
  transition:transform .3s cubic-bezier(.32,.72,0,1);
}
.sidebar-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 20px 18px;
}
.brand{display:flex; align-items:center; gap:10px;}
.brand-mark{
  width:34px; height:34px; border-radius:10px; flex:none;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  display:flex; align-items:center; justify-content:center; color:#fff;
}
.brand-mark svg{width:18px; height:18px;}
.brand-name{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(16.5px, 1.6vw, 19px);
  letter-spacing:-.01em; white-space:nowrap;
}
.brand-name em{font-style:normal; color:var(--accent-2);}
.sidebar-close{
  display:none;
  width:34px; height:34px; border-radius:50%; border:none;
  background:var(--panel-soft); color:var(--text-dim);
  align-items:center; justify-content:center;
}
.sidebar-close svg{width:16px; height:16px;}

.nav{flex:1; overflow-y:auto; padding:6px 14px 14px;}
.nav-group{margin-bottom:18px;}
.nav-label{
  display:block; font-size:11px; font-weight:700; color:var(--text-faint);
  text-transform:uppercase; letter-spacing:.06em;
  padding:8px 10px 6px;
}
.nav-link{
  display:flex; align-items:center; gap:11px;
  padding:10px 11px; border-radius:var(--radius-sm);
  color:var(--text-dim); font-size:14px; font-weight:500;
  transition:background .18s ease, color .18s ease;
}
.nav-link svg{width:18px; height:18px; flex:none; opacity:.85;}
.nav-link:hover{background:var(--nav-hover); color:var(--text);}
.nav-link.active{
  background:var(--accent-soft);
  color:var(--accent);
  font-weight:600;
}
.nav-link.active svg{opacity:1; color:var(--accent-2);}

.sidebar-foot{
  padding:16px; border-top:1px solid var(--border-soft);
}
.mini-balance{
  display:flex; align-items:center; justify-content:space-between;
  background:var(--panel-soft); border:1px solid var(--border-soft);
  border-radius:var(--radius-sm); padding:11px 13px; margin-bottom:10px;
}
.mini-balance-label{font-size:12px; color:var(--text-dim);}
.mini-balance-val{font-family:var(--font-display); font-weight:700; font-size:14.5px;}

/* =========================================================
   MAIN / TOPBAR
   ========================================================= */
.main{margin-left:var(--sidebar-w);}
.topbar{
  position:sticky; top:0; z-index:40;
  height:var(--topbar-h);
  display:flex; align-items:center; gap:16px;
  padding:0 26px;
  background:var(--topbar-bg);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border-soft);
}
.icon-btn{
  width:38px; height:38px; border-radius:50%; flex:none;
  border:1px solid var(--border); background:var(--panel);
  color:var(--text-dim);
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.icon-btn svg{width:17px; height:17px;}
.icon-btn:hover{color:var(--text); border-color:var(--accent);}
.icon-dot{
  position:absolute; top:8px; right:9px;
  width:6px; height:6px; border-radius:50%; background:var(--mint);
}

.topbar-search{
  position:relative;
  flex:1; max-width:420px;
  display:flex; align-items:center; gap:9px;
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-pill); padding:10px 16px;
}
.topbar-search svg{width:16px; height:16px; color:var(--text-faint); flex:none;}
.topbar-search input{
  border:none; background:transparent; outline:none; color:var(--text);
  font-size:14px; width:100%;
}
.topbar-search input::placeholder{color:var(--text-faint);}

.search-dropdown{
  position:absolute; top:calc(100% + 10px); left:0; right:0;
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-md); box-shadow:var(--shadow-card);
  overflow:hidden; z-index:70; display:none;
}
.search-dropdown.show{display:block;}
.search-dropdown-item{
  display:flex; align-items:center; gap:12px;
  padding:12px 16px; cursor:pointer;
  border-bottom:1px solid var(--border-soft);
  transition:background .15s ease;
}
.search-dropdown-item:last-child{border-bottom:none;}
.search-dropdown-item:hover{background:var(--nav-hover);}
.search-dropdown-ico{
  width:34px; height:34px; border-radius:10px; flex:none;
  background:var(--accent-soft); color:var(--accent-2);
  display:flex; align-items:center; justify-content:center;
}
.search-dropdown-ico svg{width:16px; height:16px;}
.search-dropdown-text{min-width:0; flex:1;}
.search-dropdown-title{
  font-size:13.5px; font-weight:600; color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.search-dropdown-sub{
  font-size:11.5px; color:var(--text-dim);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.search-dropdown-empty{
  padding:16px; text-align:center; font-size:13px; color:var(--text-faint);
}

@media (max-width:980px){
  .search-dropdown{position:fixed; top:calc(var(--topbar-h) + 6px); left:14px; right:14px;}
}

.topbar-actions{
  margin-left:auto; display:flex; align-items:center; gap:10px;
}
@media (max-width:480px){
  .topbar-actions{gap:6px;}
}

.theme-toggle{
  display:flex; align-items:center; gap:3px;
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-pill); padding:4px;
}

/* Burger menyu ichidagi tema tugmalari */
.theme-toggle--sidebar{
  width:100%;
  margin-bottom:10px;
  background:var(--panel-soft);
}
.theme-toggle--sidebar .theme-btn{
  flex:1;
  width:auto;
  height:38px;
  border-radius:var(--radius-pill);
  gap:6px;
  font-size:12px;
  font-weight:600;
}
.theme-toggle--sidebar .theme-btn span{
  white-space:nowrap;
}
.theme-btn{
  border:none; background:transparent; color:var(--text-faint);
  width:30px; height:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s ease, color .2s ease;
}
.theme-btn svg{width:15px; height:15px;}
.theme-btn.active{background:var(--accent-soft); color:var(--accent-2);}
.balance-pill{
  display:flex; align-items:center; gap:8px;
  background:var(--mint-soft); color:var(--mint);
  border:1px solid rgba(47,230,176,.28);
  padding:9px 15px; border-radius:var(--radius-pill);
  font-weight:700; font-size:13.5px; white-space:nowrap;
}
.balance-pill svg{width:15px; height:15px;}

.account-chip{
  display:flex; align-items:center; gap:8px;
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-pill); padding:6px 12px 6px 6px;
  color:var(--text);
}
.account-chip svg{width:14px; height:14px; color:var(--text-faint);}
.avatar{
  width:28px; height:28px; border-radius:50%; flex:none;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff; font-family:var(--font-display); font-weight:700; font-size:12.5px;
  display:flex; align-items:center; justify-content:center;
}
.account-name{font-size:13.5px; font-weight:600;}

/* =========================================================
   CONTENT
   ========================================================= */
.content{
  padding:28px 26px 60px;
  max-width:var(--content-max);
  margin:0 auto;
}
.page-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:20px; margin-bottom:22px; flex-wrap:wrap;
}
.page-head h1{font-size:clamp(21px, 2.3vw, 28px);}
.page-head p{color:var(--text-dim); font-size:13.5px; margin-top:5px; max-width:46ch;}
.page-head-stats{display:flex; gap:10px;}
.stat-chip{
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-md); padding:10px 16px;
  display:flex; flex-direction:column; align-items:flex-start; gap:2px;
  min-width:92px;
}
.stat-chip--accent{background:var(--accent-soft); border-color:rgba(108,92,231,.3);}
.stat-num{font-family:var(--font-display); font-weight:700; font-size:17px;}
.stat-lbl{font-size:11px; color:var(--text-dim);}

.grid{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);
  gap:22px;
  align-items:start;
}

/* Panel umumiy */
.panel{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:24px;
  box-shadow:var(--shadow-card);
}

/* =========================================================
   PLATFORM TANLASH QATORI
   ========================================================= */
.platform-row{
  display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; margin-bottom:22px;
  scrollbar-width:none;
}
.platform-row::-webkit-scrollbar{display:none;}
.platform-chip{
  flex:none;
  display:flex; align-items:center; gap:8px;
  background:var(--panel-soft); border:1px solid var(--border);
  color:var(--text-dim); font-weight:600; font-size:13.5px;
  padding:11px 16px; border-radius:var(--radius-pill);
  transition:all .18s ease;
}
.platform-chip svg{width:16px; height:16px;}
.platform-chip:hover{border-color:var(--accent); color:var(--text);}
.platform-chip.active{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color:transparent; color:#fff;
}

/* =========================================================
   FORM ELEMENTLARI
   ========================================================= */
.field{margin-bottom:18px;}
.field-grid{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px;
}
.field label{
  display:block; font-size:12.5px; font-weight:600; color:var(--text-dim);
  margin-bottom:7px;
}
.field input,
.select-wrap select{
  width:100%; background:var(--panel-soft); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:13px 14px; font-size:14.5px;
  color:var(--text); outline:none; transition:border-color .2s ease;
}
.field input::placeholder{color:var(--text-faint);}
.field input:focus, .select-wrap select:focus{border-color:var(--accent);}
.field-hint{display:block; font-size:11.5px; color:var(--text-faint); margin-top:6px;}
.field-hint.error{color:var(--danger);}

.select-wrap{position:relative;}
.select-wrap select{appearance:none; padding-right:38px; cursor:pointer;}
.select-wrap svg{
  position:absolute; right:14px; top:50%; transform:translateY(-50%);
  width:15px; height:15px; color:var(--text-faint); pointer-events:none;
}

.static-value{
  background:var(--panel-soft); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:13px 14px; font-size:14.5px;
  font-weight:700; color:var(--mint);
}

.desc-box{
  background:var(--accent-soft); border:1px solid rgba(108,92,231,.25);
  border-radius:var(--radius-md); padding:14px 16px; margin-bottom:18px;
  min-width:0;
}
.desc-row{display:flex; align-items:flex-start; gap:10px; min-width:0;}
.desc-row svg{width:17px; height:17px; color:var(--accent-2); flex:none; margin-top:1px;}
.desc-row > div{min-width:0; flex:1;}
.desc-row p{font-size:13px; color:var(--text-dim); line-height:1.55; overflow-wrap:anywhere; word-break:break-word;}
.desc-row ul{margin-top:6px; padding-left:0;}
.desc-row li{
  font-size:13px; color:var(--text-dim); line-height:1.6;
  padding-left:14px; position:relative;
  overflow-wrap:anywhere; word-break:break-word;
}
.desc-row li::before{
  content:""; position:absolute; left:0; top:9px;
  width:4px; height:4px; border-radius:50%; background:var(--accent-2);
}

/* Xulosa */
.summary{
  background:var(--panel-soft); border:1px solid var(--border);
  border-radius:var(--radius-md); padding:16px; margin-bottom:18px;
}
.summary-row{
  display:flex; justify-content:space-between; align-items:center;
  font-size:13.5px; color:var(--text-dim); padding:6px 0; min-width:0; gap:10px;
}
.summary-row span{min-width:0; overflow-wrap:anywhere;}
.summary-row--total{
  border-top:1px dashed var(--border); margin-top:4px; padding-top:12px;
  font-size:16px; color:var(--text); font-weight:700;
}
.summary-row--total span:last-child{color:var(--mint); font-family:var(--font-display);}

/* =========================================================
   O'NG USTUN — BANNER / INFO
   ========================================================= */
.side-col{display:flex; flex-direction:column; gap:18px;}

.promo-card{
  position:relative; overflow:hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(139,123,247,.55), transparent 55%),
    linear-gradient(155deg, #241B52, #120E2E 70%);
  border:1px solid rgba(139,123,247,.3);
  border-radius:var(--radius-lg); padding:22px;
  box-shadow:var(--shadow-card);
}
.promo-tag{
  display:inline-block; background:rgba(255,255,255,.14);
  color:#fff; font-size:11px; font-weight:700; letter-spacing:.03em;
  padding:4px 11px; border-radius:var(--radius-pill); margin-bottom:12px;
}
.promo-card h3{color:#fff; font-size:19px; margin-bottom:6px;}
.promo-card p{color:rgba(255,255,255,.72); font-size:13px; line-height:1.5; margin-bottom:18px;}

.info-card{
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:22px;
}
.info-card h4{font-size:15px; margin-bottom:14px;}
.info-list li{
  display:flex; align-items:flex-start; gap:12px;
  padding:10px 0; border-top:1px solid var(--border-soft);
}
.info-list li:first-child{border-top:none; padding-top:0;}
.info-ico{
  width:34px; height:34px; border-radius:10px; flex:none;
  background:var(--mint-soft); color:var(--mint);
  display:flex; align-items:center; justify-content:center;
}
.info-ico svg{width:16px; height:16px; display:block;}
.info-list b{display:block; font-size:13.5px; font-weight:600; margin-bottom:2px;}
.info-list li > div span{display:block; font-size:12px; color:var(--text-dim); line-height:1.4;}

.referral-card{
  background:var(--panel); border:1px dashed var(--border);
  border-radius:var(--radius-lg); padding:20px;
}
.referral-card-head{display:flex; gap:12px; align-items:flex-start; margin-bottom:16px;}
.ref-ico{
  width:38px; height:38px; border-radius:11px; flex:none;
  background:var(--amber-soft); display:flex; align-items:center; justify-content:center;
  font-size:18px;
}
.referral-card-head b{display:block; font-size:13.5px; margin-bottom:3px;}
.referral-card-head span{font-size:12px; color:var(--text-dim); line-height:1.4;}

/* =========================================================
   TOAST
   ========================================================= */
.toast{
  position:fixed; left:50%; bottom:26px; transform:translateX(-50%) translateY(16px);
  background:var(--text); color:var(--bg);
  padding:12px 20px; border-radius:var(--radius-pill);
  font-size:13.5px; font-weight:600; opacity:0; pointer-events:none;
  transition:all .25s ease; z-index:100; max-width:90%; text-align:center;
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0);}

/* =========================================================
   MOBIL / RESPONSIV
   ========================================================= */
.only-mobile{display:none;}
.scrim{
  position:fixed; inset:0; background:rgba(4,5,9,.6);
  opacity:0; pointer-events:none; transition:opacity .25s ease; z-index:55;
}
.scrim.show{opacity:1; pointer-events:auto;}


/* --- INPUT HOLATLARI UCHUN DIZAYN --- */
.field input.input-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px var(--danger-soft);
}
.field-hint.error {
  color: var(--danger);
  font-weight: 600;
}

.field-hint.success {
  color: var(--mint);
  font-weight: 600;
}


/* =========================================================
   O'YIN DONAT — YANGI DIZAYN
   ========================================================= */

.game-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:24px 20px;
  width:100%;
}

/* Oq tashqi block yo'q */
.game-card{
  min-width:0;
  padding:0;
  margin:0;

  background:transparent;
  border:none;
  box-shadow:none;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;

  gap:10px;
  text-align:center;
  cursor:pointer;

  transition:transform .22s ease;
}

/* Rasmning o'zi katta block */
.game-card img{
  display:block;

  width:100%;
  aspect-ratio:1 / 1;
  height:auto;

  object-fit:cover;

  border-radius:24px;
  transition:
    transform .22s ease,
    box-shadow .22s ease;
}

/* O'yin nomi rasmdan tashqarida */
.game-card span{
  display:block;

  width:100%;

  font-family:var(--font-display);
  font-size:16px;
  font-weight:700;
  line-height:1.25;

  color:var(--text);

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}


/* ================= RESPONSIVE ================= */

/* Kichik desktop */
@media (max-width:1200px){
  .game-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:22px 18px;
  }
}

/* Planshet */
@media (max-width:900px){
  .game-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:20px 16px;
  }
}

/* Telefon */
@media (max-width:600px){
  .game-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:18px 14px;
  }

  .game-card img{
    border-radius:20px;
  }

  .game-card span{
    font-size:14px;
  }
}


/* ---- Juda katta ekranlar / TV (1600px+) — nafas oladigan bo'shliq ---- */
@media (min-width: 1600px){
  .content{padding:40px 48px 72px;}
  .grid{gap:28px;}
  :root{--sidebar-w:284px;}
}

/* ---- Kichraytirilgan desktop / kichik noutbuk ---- */
@media (max-width: 1280px){
  .grid{gap:18px;}
}

/* ---- Planshet landshaft: forma va banner ustma-ust tushadi ---- */
@media (max-width: 1140px){
  .grid{grid-template-columns:minmax(0,1fr);}
  .side-col{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(min(230px,100%), 1fr));
    gap:16px;
  }
}

/* ---- Planshet portret / kichik noutbuk balandligi past holatlar ---- */
@media (max-width: 980px){
  :root{--topbar-h:62px;}
  .sidebar{transform:translateX(-100%); box-shadow:none;}
  .sidebar.open{transform:translateX(0); box-shadow:0 0 60px rgba(0,0,0,.5);}
  .sidebar-close{display:flex;}
  .main{margin-left:0;}
  .only-mobile{display:flex;}
  .only-desktop{display:none;}
  .content{padding:calc(var(--topbar-h) + 18px) 16px 50px;}
  .topbar{
    position:fixed;
    top:0; left:0; right:0;
    width:100%;
    padding:0 14px; gap:10px;
  }
  .topbar-search{display:none;}
  .page-head{flex-direction:column; align-items:flex-start; gap:14px;}
}

/* ---- Telefon (portret) ---- */
@media (max-width: 720px){
  .field-grid{grid-template-columns:minmax(0,1fr);}
  .side-col{grid-template-columns:minmax(0,1fr); width:100%;}
  .side-col > *{width:100%; margin:0; box-sizing:border-box; min-width:0;}
  .panel{padding:18px;}
  .platform-chip span{font-size:13px;}
  .balance-pill{padding:9px 12px; gap:6px;}
  .balance-pill span{font-size:12.5px; white-space:nowrap;}
  .theme-toggle{padding:3px;}
  .theme-btn{width:27px; height:27px;}
}

/* ---- Kichik telefon (iPhone SE va shunga o'xshash, ~360px) ---- */
@media (max-width: 400px){
  :root{--sidebar-w:88vw;}
  .content{padding:calc(var(--topbar-h) + 14px) 12px 44px;}
  .panel{padding:15px; border-radius:16px;}
  .promo-card, .info-card, .referral-card{padding:16px;}
  .platform-chip{padding:9px 13px;}
  .account-name{display:none;}
  .account-chip{padding:6px;}
  .stat-chip{min-width:76px; padding:9px 12px;}
  .btn-lg{padding:13px 16px; font-size:14px;}
}

/* ---- Juda tor ekranlar (~320px) uchun so'nggi himoya ---- */
@media (max-width: 340px){
  .topbar-actions{gap:6px;}
  .icon-btn{width:34px; height:34px;}
}

@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
}

/* =========================================================
   HISOBNI TO'LDIRISH — MODAL
   ========================================================= */
.topup-scrim{
  position:fixed; inset:0; background:rgba(4,5,9,.62);
  backdrop-filter:blur(2px);
  opacity:0; pointer-events:none; transition:opacity .25s ease; z-index:120;
}
.topup-scrim.show{opacity:1; pointer-events:auto;}

.topup-modal{
  position:fixed; inset:0; z-index:121;
  display:flex; align-items:center; justify-content:center;
  padding:20px;
  opacity:0; pointer-events:none;
  transition:opacity .25s ease;
}
.topup-modal.show{opacity:1; pointer-events:auto;}

.topup-modal-inner{
  position:relative;
  width:100%; max-width:440px;
  max-height:88vh; overflow-y:auto;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:0 30px 70px -20px rgba(10,12,20,.5);
  padding:28px;
  transform:translateY(14px) scale(.98);
  transition:transform .28s cubic-bezier(.32,.72,0,1);
}
.topup-modal.show .topup-modal-inner{transform:translateY(0) scale(1);}

.topup-close{
  position:absolute; top:16px; right:16px;
  width:34px; height:34px; border-radius:50%;
  border:1px solid var(--border); background:var(--panel-soft);
  color:var(--text-dim);
  display:flex; align-items:center; justify-content:center;
}
.topup-close svg{width:15px; height:15px;}
.topup-close:hover{color:var(--text); border-color:var(--accent);}

.topup-head{display:flex; gap:13px; align-items:flex-start; margin-bottom:22px; padding-right:30px;}
.topup-ico{
  width:42px; height:42px; border-radius:12px; flex:none;
  background:var(--accent-soft); color:var(--accent-2);
  display:flex; align-items:center; justify-content:center;
}
.topup-ico svg{width:19px; height:19px;}
.topup-head h3{font-size:17.5px; margin-bottom:3px;}
.topup-head p{font-size:13px; color:var(--text-dim);}

.topup-chips{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px;}
.topup-chip{
  border:1px solid var(--border); background:var(--panel-soft);
  color:var(--text); font-weight:600; font-size:13px;
  padding:9px 14px; border-radius:var(--radius-pill);
  transition:all .16s ease;
}
.topup-chip:hover{border-color:var(--accent);}
.topup-chip.active{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff; border-color:transparent;
}

.topup-amount-out{
  text-align:center; font-family:var(--font-display); font-weight:700;
  font-size:26px; color:var(--mint);
  background:var(--mint-soft); border:1px solid rgba(15,177,133,.25);
  border-radius:var(--radius-md); padding:14px; margin-bottom:16px;
}

.topup-card-visual{
  position:relative; overflow:hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(139,123,247,.5), transparent 55%),
    linear-gradient(155deg, #241B52, #120E2E 70%);
  border:1px solid rgba(139,123,247,.3);
  border-radius:var(--radius-md); padding:20px; margin-bottom:16px;
  color:#fff;
}
.topup-card-visual-row{
  display:flex; align-items:center; justify-content:space-between;
  font-size:12.5px; font-weight:700; letter-spacing:.03em;
  color:rgba(255,255,255,.75); margin-bottom:20px;
}
.topup-card-visual-row svg{width:22px; height:22px; opacity:.8;}
.topup-card-num{
  font-family:var(--font-display); font-weight:700; font-size:19px;
  letter-spacing:.04em; margin-bottom:8px;
}
.topup-card-holder{font-size:12.5px; color:rgba(255,255,255,.7);}

.topup-actions-row{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:16px;}
.topup-actions-row .btn{font-size:12.5px; padding:11px 8px;}

.topup-timer{
  display:flex; align-items:center; justify-content:center; gap:8px;
  color:var(--amber); background:var(--amber-soft);
  border:1px solid rgba(217,138,20,.25);
  border-radius:var(--radius-sm); padding:10px; margin-bottom:16px;
  font-weight:700; font-size:14px; font-family:var(--font-display);
}
.topup-timer svg{width:16px; height:16px;}
.topup-timer.expiring{color:var(--danger); background:var(--danger-soft); border-color:rgba(224,70,79,.3);}

.topup-success-ico{
  width:64px; height:64px; border-radius:50%; margin:0 auto 18px;
  background:var(--mint-soft); color:var(--mint);
  display:flex; align-items:center; justify-content:center;
}
.topup-success-ico svg{width:30px; height:30px;}
.topup-success-title{text-align:center; font-size:19px; margin-bottom:6px;}
.topup-success-sub{text-align:center; color:var(--text-dim); font-size:13.5px; margin-bottom:22px;}

@media (max-width:480px){
  .topup-actions-row{grid-template-columns:1fr;}
}

/* ---- Faol to'lov eslatmasi (pastda, o'rtada suzuvchi) ---- */
.topup-reminder{
  position:fixed; left:50%; bottom:26px; transform:translateX(-50%) translateY(20px);
  display:flex; align-items:center; gap:10px;
  background:var(--panel); color:var(--text);
  border:1px solid var(--border);
  padding:13px 18px 13px 15px; border-radius:var(--radius-pill);
  box-shadow:0 16px 40px -14px rgba(10,12,20,.4);
  font-size:13.5px; font-weight:600;
  opacity:0; pointer-events:none;
  transition:all .28s cubic-bezier(.32,.72,0,1);
  z-index:90;
  max-width:92vw;
}
.topup-reminder.show{opacity:1; transform:translateX(-50%) translateY(0); pointer-events:auto;}
.topup-reminder:hover{border-color:var(--accent);}
.topup-reminder svg{width:15px; height:15px; color:var(--text-faint); flex:none;}
.topup-reminder-dot{
  width:8px; height:8px; border-radius:50%; flex:none;
  background:var(--amber);
  box-shadow:0 0 0 0 rgba(217,138,20,.5);
  animation:topupPulse 1.6s ease-out infinite;
}
.topup-reminder.expiring .topup-reminder-dot{background:var(--danger); box-shadow:0 0 0 0 rgba(224,70,79,.5);}
.topup-reminder-text b{font-family:var(--font-display); color:var(--accent-2);}
.topup-reminder.expiring .topup-reminder-text b{color:var(--danger);}
@keyframes topupPulse{
  0%{box-shadow:0 0 0 0 rgba(217,138,20,.45);}
  70%{box-shadow:0 0 0 9px rgba(217,138,20,0);}
  100%{box-shadow:0 0 0 0 rgba(217,138,20,0);}
}

@media (max-width:480px){
  .topup-reminder{bottom:16px; padding:11px 15px 11px 13px; font-size:12.5px;}
  .topup-reminder-text{white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:56vw;}
}


/* =========================================================
   TOPUP — PREMIUM DESKTOP PAYMENT
   ========================================================= */

.topup-main-panel{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:34px;
}

.topup-payment-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:24px;
}

.topup-secure-badge{
  display:flex;
  align-items:center;
  gap:7px;
  padding:9px 13px;
  border-radius:999px;
  background:var(--mint-soft);
  color:var(--mint);
  font-size:12px;
  font-weight:700;
}

.topup-secure-badge svg{
  width:16px;
  height:16px;
}

/* ================= TO'LOV BOSQICHLARI (STEPPER) ================= */
.topup-progress{
  display:flex;
  align-items:center;
  gap:0;
  margin-bottom:28px;
  padding:4px 0;
}
.topup-progress-step{
  display:flex;
  align-items:center;
  gap:10px;
  flex:none;
}
.topup-progress-circle{
  width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:13px;
  background:var(--panel-soft); border:2px solid var(--border);
  color:var(--text-faint);
  transition:all .3s ease;
  flex:none;
}
.topup-progress-label{
  font-size:12.5px; font-weight:600; color:var(--text-faint);
  white-space:nowrap; transition:color .3s ease;
}
.topup-progress-line{
  flex:1; height:2px; background:var(--border);
  margin:0 10px; min-width:24px;
  position:relative; overflow:hidden;
}
.topup-progress-line::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  transform:scaleX(0); transform-origin:left;
  transition:transform .5s cubic-bezier(.4,0,.2,1);
}
.topup-progress-line.filled::after{transform:scaleX(1);}

.topup-progress-step.active .topup-progress-circle{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color:transparent; color:#fff;
  box-shadow:0 6px 16px -4px rgba(108,92,231,.55);
}
.topup-progress-step.active .topup-progress-label{color:var(--text);}
.topup-progress-step.done .topup-progress-circle{
  background:var(--mint-soft); border-color:var(--mint); color:var(--mint);
}
.topup-progress-step.done .topup-progress-label{color:var(--mint);}

@media (max-width:600px){
  .topup-progress-label{display:none;}
  .topup-progress-line{margin:0 6px; min-width:14px;}
}

/* Oxirgi to'ldirgan summa tugmasi */
.topup-chip.last-used{
  border-color:var(--mint);
  background:var(--mint-soft);
  color:var(--mint);
  position:relative;
  padding-left:30px;
}
.topup-chip.last-used::before{
  content:"↻";
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  font-size:13px;
}
.topup-chip.last-used.active{
  background:linear-gradient(135deg, var(--mint), #12c793);
  color:#fff; border-color:transparent;
}

#topupLastUsedBox{
  margin-top:2px;
  margin-bottom:16px;
}
#topupLastUsedBox:empty{
  margin:0;
}

/* Bayramona konfetti */
.topup-confetti{
  position:fixed; inset:0; pointer-events:none; z-index:200;
  overflow:hidden;
}
.confetti-piece{
  position:absolute; top:-12px;
  width:8px; height:14px;
  opacity:.9;
  animation:confettiFall linear forwards;
}
@keyframes confettiFall{
  0%{ transform:translateY(0) rotate(0deg); opacity:1; }
  100%{ transform:translateY(110vh) rotate(540deg); opacity:0; }
}

.topup-payment-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(0, .95fr);
  gap:32px;
  align-items:stretch;
}

.topup-payment-left{
  min-width:0;
  padding-right:32px;
  border-right:1px solid var(--border);
}

.topup-payment-right{
  min-width:0;
  display:flex;
  flex-direction:column;
}

.topup-payment-label{
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  color:var(--text-faint);
  margin-bottom:8px;
}

/* SUMMA */

.topup-payment-left .topup-amount-out{
  font-size:34px;
  padding:18px;
  margin-bottom:20px;
  border-radius:16px;
}

/* KARTA */

.topup-payment-left .topup-card-visual{
  min-height:205px;
  padding:26px;
  border-radius:18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;

  box-shadow:
    0 20px 45px -22px rgba(27,18,75,.65);
}

.topup-payment-left .topup-card-visual-row{
  font-size:14px;
  margin-bottom:35px;
}

.topup-payment-left .topup-card-num{
  font-size:clamp(20px,2vw,27px);
  letter-spacing:.055em;
}

.topup-payment-left .topup-card-holder{
  margin-top:9px;
  font-size:13px;
}

.topup-payment-left .topup-actions-row{
  margin-bottom:0;
}

.topup-payment-left .topup-actions-row .btn{
  min-height:48px;
}


/* O‘NG TOMON SARLAVHA */

.topup-instruction-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:18px;
}

.topup-instruction-icon{
  width:42px;
  height:42px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:var(--accent-soft);
  color:var(--accent);
}

.topup-instruction-icon svg{
  width:20px;
  height:20px;
}

.topup-instruction-head h3{
  font-size:18px;
  margin-bottom:4px;
}

.topup-instruction-head p{
  color:var(--text-dim);
  font-size:12.5px;
  line-height:1.5;
}


/* MUHIM OGOHLANTIRISH */

.topup-important{
  display:flex;
  align-items:flex-start;
  gap:11px;
  padding:14px;
  margin-bottom:18px;

  background:var(--amber-soft);
  border:1px solid rgba(217,138,20,.25);
  border-radius:13px;
}

.topup-important-icon{
  width:25px;
  height:25px;
  flex:none;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;

  background:var(--amber);
  color:#fff;
  font-weight:800;
  font-size:13px;
}

.topup-important strong{
  display:block;
  font-size:13px;
  margin-bottom:2px;
}

.topup-important p{
  color:var(--text-dim);
  font-size:12px;
  line-height:1.5;
}


/* QADAMLAR */

.topup-steps{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:18px;
}

.topup-step-item{
  display:flex;
  align-items:flex-start;
  gap:11px;
  padding:11px 12px;
  border:1px solid var(--border-soft);
  background:var(--panel-soft);
  border-radius:12px;
}

.topup-step-item > span{
  width:27px;
  height:27px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:8px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:12px;
  font-weight:800;
}

.topup-step-item strong{
  display:block;
  font-size:12.5px;
  margin-bottom:2px;
}

.topup-step-item p{
  color:var(--text-dim);
  font-size:11.5px;
  line-height:1.45;
}


/* TIMER */

.topup-payment-right .topup-timer{
  min-height:48px;
  margin-top:auto;
  margin-bottom:12px;
  padding:12px 14px;
}

.topup-payment-right .topup-timer strong{
  margin-left:auto;
  font-size:15px;
}


/* TEKSHIRISH */

.topup-check-btn{
  min-height:54px;
  border-radius:12px;
  font-size:14px;
}

.topup-auto-note{
  margin-top:10px;
  text-align:center;
  color:var(--text-faint);
  font-size:11.5px;
  line-height:1.45;
}


/* =========================================================
   FOYDALANISH QO'LLANMASI (GUIDE)
   ========================================================= */
.guide-layout{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:24px;
  align-items:start;
}

.guide-nav{
  position:sticky; top:calc(var(--topbar-h) + 20px);
  display:flex; flex-direction:column; gap:4px;
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:10px;
}
.guide-nav-item{
  display:flex; align-items:center; gap:11px;
  padding:11px 12px; border-radius:var(--radius-sm);
  color:var(--text-dim); font-weight:600; font-size:13.5px;
  text-align:left; background:transparent; border:none;
  transition:background .18s ease, color .18s ease;
}
.guide-nav-item svg{width:17px; height:17px; flex:none; opacity:.8;}
.guide-nav-item .guide-nav-count{
  margin-left:auto; font-size:11px; font-weight:700;
  color:var(--text-faint); background:var(--panel-soft);
  padding:2px 8px; border-radius:var(--radius-pill);
}
.guide-nav-item:hover{background:var(--nav-hover); color:var(--text);}
.guide-nav-item.active{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
}
.guide-nav-item.active svg{opacity:1;}
.guide-nav-item.active .guide-nav-count{background:rgba(255,255,255,.22); color:#fff;}

.guide-content{min-width:0;}
.guide-content-head{
  display:flex; align-items:center; gap:14px;
  margin-bottom:20px;
}
.guide-content-ico{
  position:relative;
  overflow:hidden;
  width:52px; height:52px; border-radius:15px; flex:none;
  background:
    radial-gradient(120% 140% at 15% 15%, rgba(255,255,255,.28), transparent 55%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:
    0 12px 28px -10px rgba(108,92,231,.65),
    inset 0 1px 0 rgba(255,255,255,.25);
}
.guide-content-ico svg{
  width:23px; height:23px;
  stroke:#fff;
  stroke-width:2.3;
  fill:none;
  position:relative; z-index:1;
}
.guide-content-head h2{font-size:19px; margin-bottom:2px;}
.guide-content-head span{font-size:12.5px; color:var(--text-dim);}

.faq-group{display:flex; flex-direction:column; gap:12px;}
.faq-item{
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-lg); overflow:hidden;
  transition:border-color .2s ease;
}
.faq-item.open{border-color:rgba(108,92,231,.35);}
.faq-question{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:14px;
  background:transparent; border:none; text-align:left;
  padding:18px 20px; font-size:14.5px; font-weight:600; color:var(--text);
}
.faq-question:hover{background:var(--nav-hover);}
.faq-question .faq-plus{
  flex:none; width:28px; height:28px; border-radius:50%;
  background:var(--panel-soft); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-dim); transition:transform .25s ease, background .2s ease, color .2s ease;
}
.faq-question .faq-plus svg{width:13px; height:13px;}
.faq-item.open .faq-question .faq-plus{
  transform:rotate(45deg); background:linear-gradient(135deg, var(--accent), var(--accent-2)); color:#fff;
}
.faq-item.open .faq-question{color:var(--accent-2);}

.faq-answer-wrap{
  display:grid; grid-template-rows:0fr;
  transition:grid-template-rows .3s ease;
}
.faq-item.open .faq-answer-wrap{grid-template-rows:1fr;}
.faq-answer{overflow:hidden;}
.faq-answer-inner{padding:0 20px 20px 20px; border-top:1px solid var(--border-soft); margin-top:2px; padding-top:16px;}
.faq-steps{display:flex; flex-direction:column; gap:12px;}
.faq-step{display:flex; gap:13px; align-items:flex-start;}
.faq-step-num{
  flex:none; width:26px; height:26px; border-radius:9px;
  background:var(--accent-soft); color:var(--accent-2);
  font-family:var(--font-display); font-weight:700; font-size:12px;
  display:flex; align-items:center; justify-content:center;
}
.faq-step p{font-size:13.5px; color:var(--text-dim); line-height:1.6;}

@media (max-width:900px){
  .guide-layout{grid-template-columns:1fr;}
  .guide-nav{
    position:static;
    flex-direction:row; overflow-x:auto; scrollbar-width:none;
  }
  .guide-nav::-webkit-scrollbar{display:none;}
  .guide-nav-item{flex:none;}
  .guide-nav-item .guide-nav-count{display:none;}
}


.services-overview-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
  gap:18px;
}
.service-overview-card{
  position:relative;
  overflow:hidden;
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:22px;
  display:flex; flex-direction:column; gap:16px;
  box-shadow:none;
  transition:border-color .3s ease, transform .3s ease;
}
.service-overview-card::before{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(140px 140px at var(--mx,50%) var(--my,0%), rgba(108,92,231,.14), transparent 70%);
  opacity:0; transition:opacity .35s ease;
  pointer-events:none;
}
.service-overview-card:hover{
  border-color:rgba(108,92,231,.4);
  transform:translateY(-3px);
}
.service-overview-card:hover::before{opacity:1;}

.service-overview-card-head{display:flex; align-items:center; gap:12px; position:relative;}
.service-overview-ico{
  width:46px; height:46px; border-radius:13px; flex:none;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 20px -8px rgba(108,92,231,.6);
  transition:transform .3s ease;
}
.service-overview-card:hover .service-overview-ico{transform:scale(1.08) rotate(-4deg);}
.service-overview-ico svg{width:21px; height:21px;}
.service-overview-card h3{font-size:15.5px;}
.service-overview-count{font-size:12px; color:var(--text-dim);}
.service-overview-count b{color:var(--mint); font-family:var(--font-display);}

.service-overview-card .btn{
  margin-top:auto;
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
  border:none;
  box-shadow:0 4px 16px -6px rgba(108,92,231,.5);
  transition:box-shadow .3s ease, transform .15s ease;
  z-index:1;
}
.service-overview-card .btn::after{
  content:"";
  position:absolute;
  top:0; left:-60%;
  width:40%; height:100%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform:skewX(-20deg);
  animation:serviceBtnShine 2.8s ease-in-out infinite;
}
.service-overview-card .btn:hover{
  box-shadow:0 8px 26px -6px rgba(108,92,231,.75);
}
.service-overview-card .btn:active{transform:scale(.97);}

@keyframes serviceBtnShine{
  0%{left:-60%;}
  35%{left:130%;}
  100%{left:130%;}
}

@media (prefers-reduced-motion: reduce){
  .service-overview-card .btn::after{animation:none;}
}

@media (max-width:600px){
  .services-overview-grid{grid-template-columns:1fr;}
}

.history-list{display:flex; flex-direction:column; gap:10px;}
.history-item{
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-md); padding:15px 18px;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.history-item-main{min-width:0;}
.history-item-title{font-weight:600; font-size:13.5px; margin-bottom:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.history-item-sub{font-size:12px; color:var(--text-dim);}
.history-item-right{text-align:right; flex:none;}
.history-item-price{font-family:var(--font-display); font-weight:700; font-size:14px; margin-bottom:4px;}
/* =========================================================
   ALOQA MARKAZI — KONTAKT KARTALARI
   ========================================================= */

.contact-grid{
  display:grid;
  grid-template-columns:repeat(6, minmax(0,1fr));
  gap:18px;
  margin-bottom:22px;
}

/* ===== TEPADAGI 2 TA KATTA KARTA ===== */

.contact-card--lg{
  grid-column:span 3;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:22px;
  min-height:245px;
  padding:28px;
  border-radius:24px;
  color:#fff;
  border:1px solid transparent;
  transition:transform .25s ease, box-shadow .25s ease;
}

.contact-card--lg:hover{
  transform:translateY(-3px);
}

.contact-card--mint{
  background:
    radial-gradient(130% 160% at 100% 0%, rgba(47,230,176,.35), transparent 55%),
    linear-gradient(155deg,#0FB185,#08745A 80%);
}

.contact-card--accent{
  background:
    radial-gradient(130% 160% at 100% 0%, rgba(139,123,247,.4), transparent 55%),
    linear-gradient(155deg,#2B2061,#120E2E 80%);
}

.contact-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
}

.contact-card--lg .contact-ico{
  width:56px;
  height:56px;
  border-radius:16px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
}

.contact-card--lg .contact-ico svg{
  width:25px;
  height:25px;
}

.contact-card-badge{
  font-size:11px;
  font-weight:700;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.22);
  padding:6px 13px;
  border-radius:999px;
  color:#fff;
}

.contact-card-body{
  flex:1;
}

.contact-card-body b{
  display:block;
  font-family:var(--font-display);
  font-size:20px;
  font-weight:700;
  margin-bottom:7px;
}

.contact-card-body span{
  display:block;
  font-size:13.5px;
  color:rgba(255,255,255,.75);
  line-height:1.5;
}

.contact-card-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding-top:17px;
  border-top:1px solid rgba(255,255,255,.16);
}

.contact-card-value{
  font-family:var(--font-display);
  font-size:15px;
  font-weight:700;
}

.contact-card-foot .contact-arrow{
  width:34px;
  height:34px;
  border-radius:50%;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.16);
  color:#fff;
  transition:.2s ease;
}

.contact-card--lg:hover .contact-arrow{
  background:rgba(255,255,255,.28);
  transform:translateX(3px);
}

/* ===== PASTDAGI 3 TA KARTA ===== */

.contact-card--sm{
  grid-column:span 2;
  min-width:0;
  min-height:112px;
  display:flex;
  align-items:center;
  gap:16px;
  padding:20px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:20px;
  transition:transform .2s ease,
             border-color .2s ease,
             box-shadow .2s ease;
}

.contact-card--sm:hover{
  transform:translateY(-2px);
  border-color:rgba(108,92,231,.4);
}

.contact-ico--sm{
  width:54px;
  height:54px;
  border-radius:16px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
}

.contact-ico--sm svg{
  width:24px;
  height:24px;
}

.contact-ico--amber{
  background:linear-gradient(135deg,var(--amber),#FFD98A);
}

.contact-ico--pink{
  background:linear-gradient(135deg,#E1306C,#F77737);
}

.contact-main{
  flex:1;
  min-width:0;
}

.contact-main b{
  display:block;
  font-size:15px;
  font-weight:700;
  margin-bottom:5px;
}

.contact-main span{
  display:block;
  font-size:12.5px;
  color:var(--text-dim);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.contact-card--sm .contact-arrow{
  width:34px;
  height:34px;
  border-radius:50%;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--panel-soft);
  border:1px solid var(--border);
  color:var(--text-dim);
  transition:.2s ease;
}

.contact-card--sm:hover .contact-arrow{
  transform:translateX(3px);
  color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  border-color:transparent;
}

/* ===== ESLATMA ===== */

.support-note{
  display:flex;
  align-items:flex-start;
  gap:11px;
  background:var(--accent-soft);
  border:1px solid rgba(108,92,231,.25);
  border-radius:var(--radius-md);
  padding:14px 16px;
}

.support-note svg{
  width:17px;
  height:17px;
  color:var(--accent-2);
  flex:none;
  margin-top:1px;
}

.support-note p{
  font-size:13px;
  color:var(--text-dim);
  line-height:1.55;
}

/* ===== PLANSHET ===== */

@media (max-width:1000px){
  .contact-card--lg{
    grid-column:span 3;
  }

  .contact-card--sm{
    grid-column:span 3;
  }

  .contact-grid > .contact-card--sm:last-of-type{
    grid-column:span 6;
  }
}

/* ===== TELEFON ===== */

@media (max-width:700px){
  .contact-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .contact-card--lg,
  .contact-card--sm,
  .contact-grid > .contact-card--sm:last-of-type{
    grid-column:1 / -1;
  }

  .contact-card--lg{
    min-height:210px;
    padding:22px;
  }

  .contact-card--sm{
    min-height:96px;
    padding:16px;
  }
}

@media (max-width:760px){
  .contact-grid{grid-template-columns:1fr !important;}
  .contact-card--lg, .contact-card--sm{grid-column:span 1 !important;}
}
.status-badge{display:inline-block; padding:3px 10px; border-radius:var(--radius-pill); font-size:11px; font-weight:700;}
.status-badge.completed{background:var(--mint-soft); color:var(--mint);}
.status-badge.pending, .status-badge.processing, .status-badge.confirmed{background:var(--amber-soft); color:var(--amber);}
.status-badge.canceled, .status-badge.failed, .status-badge.expired{background:var(--danger-soft); color:var(--danger);}


@media (max-width:600px){
  .guide-search{max-width:100%;}
  .faq-question{padding:14px 16px; font-size:14px;}
  .faq-answer-inner{padding:0 16px 16px 16px;}
}

/* TABLET / KICHIK DESKTOP */

@media (max-width:1000px){

  .topup-main-panel{
    max-width:650px;
  }

  .topup-payment-grid{
    grid-template-columns:1fr;
    gap:24px;
  }

  .topup-payment-left{
    padding-right:0;
    padding-bottom:24px;
    border-right:none;
    border-bottom:1px solid var(--border);
  }
}


/* MOBILE */

@media (max-width:600px){

  .topup-main-panel{
    padding:18px;
  }

  .topup-payment-header{
    margin-bottom:18px;
  }

  .topup-secure-badge{
    font-size:11px;
  }

  .topup-payment-left .topup-amount-out{
    font-size:27px;
  }

  .topup-payment-left .topup-card-visual{
    min-height:175px;
    padding:20px;
  }

  .topup-payment-left .topup-card-num{
    font-size:19px;
  }

  .topup-payment-left .topup-actions-row{
    grid-template-columns:1fr;
  }

  .topup-payment-right .topup-timer{
    flex-wrap:wrap;
  }
}


/* =========================================================
   BO'SH HOLAT (EMPTY STATE) — Buyurtma/To'lov tarixi
   ========================================================= */
.empty-state{
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:var(--panel); border:1px dashed var(--border);
  border-radius:var(--radius-lg); padding:60px 24px;
  width:100%; box-sizing:border-box;
}
.empty-state.show{ display:flex; }

/* Loading skeleton */
.history-skeleton{ display:flex; flex-direction:column; gap:10px; }
.skeleton-item{
  height:64px; border-radius:var(--radius-md);
  background:linear-gradient(90deg, var(--panel-soft) 25%, var(--border-soft) 37%, var(--panel-soft) 63%);
  background-size:400% 100%;
  animation:skeletonShine 1.3s ease infinite;
  border:1px solid var(--border);
}
@keyframes skeletonShine{ 0%{background-position:100% 50%;} 100%{background-position:0 50%;} }

.history-item{ cursor:pointer; transition:border-color .15s ease, transform .15s ease; }
.history-item:hover{ border-color:var(--accent); transform:translateY(-1px); }

.detail-scrim{ position:fixed; inset:0; background:rgba(4,5,9,.6); backdrop-filter:blur(2px);
  opacity:0; pointer-events:none; transition:opacity .22s ease; z-index:140; }
.detail-scrim.show{ opacity:1; pointer-events:auto; }
.detail-modal{ position:fixed; inset:0; z-index:141; display:flex; align-items:center; justify-content:center;
  padding:20px; opacity:0; pointer-events:none; transition:opacity .22s ease; }
.detail-modal.show{ opacity:1; pointer-events:auto; }
.detail-modal-inner{ width:100%; max-width:380px; background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:24px; box-shadow:0 30px 70px -20px rgba(10,12,20,.5);
  transform:translateY(14px) scale(.98); transition:transform .25s cubic-bezier(.32,.72,0,1); }
.detail-modal.show .detail-modal-inner{ transform:translateY(0) scale(1); }
.detail-row{ display:flex; justify-content:space-between; gap:14px; padding:10px 0;
  border-bottom:1px solid var(--border-soft); font-size:13.5px; }
.detail-row:last-child{ border-bottom:none; }
.detail-row span:first-child{ color:var(--text-dim); }
.detail-row span:last-child{ font-weight:600; text-align:right; }
.detail-close{ width:100%; margin-top:16px; }
.empty-state-ico{
  width:66px; height:66px; border-radius:50%; flex:none;
  background:linear-gradient(135deg, var(--accent-soft), var(--mint-soft));
  color:var(--accent-2);
  display:flex !important; align-items:center; justify-content:center;
  margin:0 auto 14px auto !important;
}
.empty-state-ico svg{width:28px; height:28px;}
.empty-state h3{
  font-size:17.5px; margin:0 0 8px 0 !important;
  width:100%; text-align:center !important;
}
.empty-state p{
  font-size:13.5px; color:var(--text-dim); line-height:1.55;
  max-width:34ch; margin:0 auto 22px auto !important;
  width:100%; text-align:center !important;
}
.empty-state-btn{
  width:auto; padding:12px 26px;
  margin:0 auto !important; display:inline-flex !important;
}

@media (max-width:600px){
  .empty-state{padding:42px 18px; border-radius:16px;}
  .empty-state-ico{width:56px; height:56px; margin-bottom:8px !important;}
  .empty-state-ico svg{width:24px; height:24px;}
  .empty-state h3{font-size:16px;}
  .empty-state p{font-size:13px;}
}

@media (max-width:600px){
  .empty-state{padding:42px 18px; border-radius:16px;}
  .empty-state-ico{width:56px; height:56px; margin-bottom:8px;}
  .empty-state-ico svg{width:24px; height:24px;}
  .empty-state h3{font-size:16px;}
  .empty-state p{font-size:13px;}
}

/* =========================================================
   PREMIUM / STARS — MAXSUS KARTALAR (O'yin donat)
   ========================================================= */
.game-card-visual{
  position:relative; overflow:hidden;
  width:100%; aspect-ratio:1/1;
  display:flex; align-items:center; justify-content:center;
  border-radius:24px; color:#fff;
  transition:transform .22s ease, box-shadow .22s ease;
}
.game-card-visual svg{width:36%; height:36%;}
.game-card-visual--premium{
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.25), transparent 55%),
    linear-gradient(155deg, #6C5CE7, #241B52 75%);
  box-shadow:0 16px 36px -16px rgba(108,92,231,.6);
}
.game-card-visual--stars{
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.3), transparent 55%),
    linear-gradient(155deg, #FFB454, #D98A14 75%);
  box-shadow:0 16px 36px -16px rgba(217,138,20,.55);
}
.game-card--premium:hover .game-card-visual{transform:translateY(-3px);}
.game-card-badge{
  position:absolute; top:10px; right:10px;
  background:rgba(255,255,255,.2); color:#fff;
  font-size:10.5px; font-weight:700; letter-spacing:.02em;
  padding:4px 10px; border-radius:var(--radius-pill);
  backdrop-filter:blur(4px);
  border:1px solid rgba(255,255,255,.35);
}

@media (max-width:600px){
  .game-card-visual{border-radius:20px;}
  .game-card-visual svg{width:32%; height:32%;}
  .game-card-badge{font-size:9.5px; padding:3px 8px; top:8px; right:8px;}
}


/* =========================================================
   PREMIUM / STARS SAHIFASI
   ========================================================= */
.ps-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  align-items:start;
}

.ps-panel{
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:24px;
  box-shadow:var(--shadow-card);
  position:relative; overflow:hidden;
}
.ps-panel::before{
  content:""; position:absolute; top:0; left:0; right:0; height:4px;
}
.ps-panel--premium::before{background:linear-gradient(90deg, var(--accent), var(--accent-2));}
.ps-panel--stars::before{background:linear-gradient(90deg, var(--amber), #FFD98A);}

.ps-panel-head{
  display:flex; align-items:center; gap:14px;
  margin-bottom:20px;
}
.ps-panel-img{
  width:56px; height:56px; border-radius:16px; flex:none;
  object-fit:cover;
}
.ps-panel-head h3{font-size:18px; margin-bottom:3px;}
.ps-panel-head p{font-size:12.5px; color:var(--text-dim); line-height:1.4;}

.ps-offers{
  display:flex; flex-direction:column; gap:10px;
  margin-bottom:18px;
}
.ps-loading{
  text-align:center; padding:24px; color:var(--text-faint); font-size:13px;
}
.ps-error{
  text-align:center; padding:16px; color:var(--danger); font-size:12.5px;
  background:var(--danger-soft); border-radius:var(--radius-sm);
}

.ps-offer-card{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:var(--panel-soft); border:1.5px solid var(--border);
  border-radius:var(--radius-md); padding:14px 16px;
  transition:all .18s ease; text-align:left; width:100%;
}
.ps-offer-card:hover{border-color:var(--accent);}
.ps-offer-card.selected{
  border-color:var(--accent);
  background:var(--accent-soft);
  box-shadow:0 0 0 3px var(--accent-soft);
}
.ps-panel--stars .ps-offer-card.selected{
  border-color:var(--amber);
  background:var(--amber-soft);
  box-shadow:0 0 0 3px var(--amber-soft);
}
.ps-offer-name{font-weight:700; font-size:14px; margin-bottom:2px;}
.ps-offer-sub{font-size:11.5px; color:var(--text-dim);}
.ps-offer-price{
  font-family:var(--font-display); font-weight:700; font-size:15px;
  color:var(--mint); white-space:nowrap; flex:none;
}
.ps-offer-radio{
  width:20px; height:20px; border-radius:50%; flex:none;
  border:2px solid var(--border); background:var(--panel);
  display:flex; align-items:center; justify-content:center;
  transition:all .18s ease;
}
.ps-offer-radio::after{
  content:""; width:9px; height:9px; border-radius:50%;
  background:var(--accent); transform:scale(0); transition:transform .15s ease;
}
.ps-panel--stars .ps-offer-radio::after{background:var(--amber);}
.ps-offer-card.selected .ps-offer-radio{border-color:var(--accent);}
.ps-panel--stars .ps-offer-card.selected .ps-offer-radio{border-color:var(--amber);}
.ps-offer-card.selected .ps-offer-radio::after{transform:scale(1);}
.ps-offer-left{display:flex; align-items:center; gap:12px; min-width:0;}

.ps-offer-more-btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%;
  background:var(--panel-soft); border:1px dashed var(--border);
  color:var(--text-dim); font-weight:600; font-size:13px;
  padding:13px 16px; border-radius:var(--radius-md);
  transition:all .18s ease;
}
.ps-offer-more-btn svg{width:15px; height:15px;}
.ps-offer-more-btn:hover{
  border-color:var(--accent); color:var(--accent-2);
  background:var(--accent-soft);
}

.ps-panel--stars .summary-row--total span:last-child{color:var(--amber);}

/* ===== Mobil tab tugmalari (Premium / Stars) ===== */
.ps-mobile-tabs{
  display:none;
  gap:6px;
  background:var(--panel-soft); border:1px solid var(--border);
  border-radius:var(--radius-pill); padding:5px;
  margin-bottom:16px;
}
.ps-tab{
  flex:1;
  display:flex; align-items:center; justify-content:center; gap:7px;
  border:none; background:transparent; color:var(--text-dim);
  font-weight:700; font-size:13.5px; padding:11px 10px;
  border-radius:var(--radius-pill);
  transition:background .25s ease, color .25s ease;
}
.ps-tab svg{width:15px; height:15px;}
.ps-tab.active{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
  box-shadow:0 8px 18px -8px rgba(108,92,231,.55);
}

.ps-slider-viewport{overflow:hidden; width:100%;}

@media (max-width:1140px){
  .ps-mobile-tabs{display:flex;}

  .ps-grid{
    display:flex;
    width:200%;
    gap:0;
    grid-template-columns:none;
    transition:transform .4s cubic-bezier(.32,.72,0,1);
    will-change:transform;
  }
  .ps-grid.show-stars{transform:translateX(-50%);}
  .ps-panel{
    width:50%;
    flex:none;
    box-sizing:border-box;
    margin:0 4px;
  }
}
@media (max-width:600px){
  .ps-panel{padding:18px;}
  .ps-panel-img{width:46px; height:46px; border-radius:13px;}
  .ps-panel-head h3{font-size:16px;}
}

/* =========================================================
   OMAD G'ILDIRAGI (SPIN WHEEL)
   ========================================================= */
.wheel-scrim{
  position:fixed; inset:0; background:rgba(4,5,9,.66);
  backdrop-filter:blur(3px);
  opacity:0; pointer-events:none; transition:opacity .25s ease; z-index:130;
}
.wheel-scrim.show{opacity:1; pointer-events:auto;}

.wheel-modal{
  position:fixed; inset:0; z-index:131;
  display:flex; align-items:center; justify-content:center;
  padding:20px;
  opacity:0; pointer-events:none;
  transition:opacity .25s ease;
}
.wheel-modal.show{opacity:1; pointer-events:auto;}

.wheel-modal-inner{
  position:relative;
  width:100%; max-width:420px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:0 30px 70px -20px rgba(10,12,20,.5);
  padding:28px;
  text-align:center;
  transform:translateY(14px) scale(.98);
  transition:transform .28s cubic-bezier(.32,.72,0,1);
}
.wheel-modal.show .wheel-modal-inner{transform:translateY(0) scale(1);}

.wheel-title{font-size:19px; margin-bottom:6px;}
.wheel-sub{font-size:13px; color:var(--text-dim); margin-bottom:22px; min-height:34px;}

.wheel-stage{
  position:relative;
  width:260px; height:260px;
  margin:0 auto 24px;
}
.wheel-pointer{
  position:absolute; top:-6px; left:50%; transform:translateX(-50%);
  width:28px; height:28px; color:var(--amber);
  z-index:3;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.35));
}
.wheel-disc{
  width:100%; height:100%; border-radius:50%;
  position:relative;
  border:6px solid var(--panel);
  box-shadow:0 0 0 3px var(--border), 0 20px 45px -18px rgba(24,30,52,.5);
  transition:transform 4.2s cubic-bezier(.13,.79,.12,1);
}
.wheel-labels{position:absolute; inset:0;}
.wheel-label{
  position:absolute; top:50%; left:50%;
  width:50%; height:0;
  transform-origin:0 0;
  display:flex; align-items:center;
  pointer-events:none;
}
.wheel-label span{
  display:block;
  transform:translateX(14px);
  color:#fff; font-family:var(--font-display); font-weight:700;
  font-size:11.5px; line-height:1.3; text-shadow:0 1px 3px rgba(0,0,0,.35);
  max-width:78px;
}
.wheel-label span em{display:block; font-style:normal; font-weight:600; font-size:10px; opacity:.85;}

.wheel-center{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:22px; height:22px; border-radius:50%;
  background:var(--panel);
  border:3px solid var(--border);
  z-index:2;
}

.wheel-cooldown{
  margin-top:14px; font-size:12.5px; color:var(--text-dim);
}
.wheel-cooldown b{color:var(--amber); font-family:var(--font-display);}

@media (max-width:400px){
  .wheel-stage{width:220px; height:220px;}
}

/* =========================================================
   YUTUQLAR TARIXI (WHEEL HISTORY)
   ========================================================= */
.wheel-history-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  gap:14px;
}
.wheel-history-card{
  position:relative;
  display:flex; align-items:center; gap:14px;
  background:var(--panel); border:1px solid var(--border);
  border-left:4px solid var(--wh-color, var(--accent));
  border-radius:var(--radius-md);
  padding:15px 16px;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease;
}
.wheel-history-card::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(120deg, color-mix(in srgb, var(--wh-color, var(--accent)) 12%, transparent), transparent 60%);
  pointer-events:none;
}
.wheel-history-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px -18px rgba(24,30,52,.35);
}
.wheel-history-card.lose{
  border-left-color:var(--text-faint);
  opacity:.72;
}
.wheel-history-ico{
  width:42px; height:42px; border-radius:12px; flex:none;
  background:var(--wh-color, var(--accent));
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 18px -8px color-mix(in srgb, var(--wh-color, var(--accent)) 70%, transparent);
  position:relative; z-index:1;
}
.wheel-history-card.lose .wheel-history-ico{
  background:var(--panel-soft); color:var(--text-faint); box-shadow:none;
  border:1px solid var(--border);
}
.wheel-history-ico svg{width:20px; height:20px;}
.wheel-history-main{flex:1; min-width:0; position:relative; z-index:1;}
.wheel-history-title{
  font-family:var(--font-display); font-weight:700; font-size:13.5px;
  letter-spacing:.01em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.wheel-history-date{font-size:11.5px; color:var(--text-dim); margin-top:2px;}
.wheel-history-qty{
  font-family:var(--font-display); font-weight:700; font-size:14px;
  color:var(--wh-color, var(--mint));
  flex:none; white-space:nowrap;
  position:relative; z-index:1;
}
.wheel-history-card.lose .wheel-history-qty{color:var(--text-faint); font-weight:600; font-size:12.5px;}

@media (max-width:600px){
  .wheel-history-grid{grid-template-columns:1fr;}
}

/* =========================================================
   OMAD G'ILDIRAGI — SAHIFA KO'RINISHI (YANGI, KATTA VA CHIROYLI)
   ========================================================= */
.wheel-page-stack{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.wheel-panel{
  text-align:center;
  background:
    radial-gradient(120% 100% at 50% -10%, rgba(108,92,231,.10), transparent 60%),
    var(--panel);
  padding:36px 24px 32px;
}
.wheel-panel .wheel-title{font-size:22px; margin-bottom:6px;}
.wheel-panel .wheel-sub{
  font-size:14px; color:var(--text-dim);
  min-height:auto; margin-bottom:8px;
}

/* ---- SLOT LENTA (REEL) — APPLE LIQUID GLASS ---- */
.reel-stage{
  position:relative;
  width:100%;
  max-width:980px;
  margin:26px auto 28px;
}

.reel-viewport{
  position:relative;
  width:100%;
  height:190px;
  overflow:hidden;
  border-radius:28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.18)),
    var(--panel-soft);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
  backdrop-filter:blur(22px) saturate(160%);
  border:1px solid rgba(255,255,255,.5);
  box-shadow:
    0 20px 50px -24px rgba(24,30,52,.28),
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -1px 0 rgba(255,255,255,.15);
}
[data-theme="tun"] .reel-viewport{
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02)),
    var(--panel-soft);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:
    0 20px 50px -20px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.3);
}

.reel-track{
  position:absolute;
  top:0; left:0; bottom:0;
  display:flex;
  align-items:center;
  will-change:transform;
}

.reel-item{
  position:relative;
  flex:none;
  width:154px;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 8px;
}
.reel-item::after{
  content:"";
  position:absolute; top:14%; bottom:14%; right:0;
  width:1px;
  background:linear-gradient(180deg, transparent, rgba(255,255,255,.6), transparent);
}
[data-theme="tun"] .reel-item::after{
  background:linear-gradient(180deg, transparent, rgba(255,255,255,.14), transparent);
}

.reel-item-ico{
  width:42px; height:42px; border-radius:50%; flex:none;
  background:
    linear-gradient(160deg, rgba(255,255,255,.55), rgba(255,255,255,.05)),
    var(--ri-color, var(--accent));
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  border:1px solid rgba(255,255,255,.55);
  box-shadow:
    0 8px 18px -6px color-mix(in srgb, var(--ri-color, var(--accent)) 60%, transparent),
    inset 0 1px 1px rgba(255,255,255,.6);
}
.reel-item-ico svg{width:19px; height:19px; filter:drop-shadow(0 1px 1px rgba(0,0,0,.15));}
.reel-item.lose .reel-item-ico{
  background:linear-gradient(160deg, rgba(255,255,255,.35), rgba(255,255,255,.03)), var(--text-faint);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.4);
}

.reel-item-title{
  font-family:var(--font-display); font-weight:800; font-size:14.5px;
  color:var(--text);
  white-space:nowrap;
}
.reel-item-sub{
  font-size:11.5px; font-weight:600;
  color:var(--text-dim);
  white-space:nowrap;
}
.reel-item-qty{
  font-family:var(--font-display); font-weight:700; font-size:11px;
  color:var(--text-faint);
  white-space:nowrap;
  margin-top:1px;
  background:rgba(255,255,255,.45);
  padding:2px 9px;
  border-radius:var(--radius-pill);
  border:1px solid rgba(255,255,255,.5);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}
[data-theme="tun"] .reel-item-qty{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}

/* Katta yutuqlar — LIQUID GOLD GLASS */
.reel-item.big{
  background:
    linear-gradient(165deg, rgba(255,255,255,.6), transparent 40%),
    linear-gradient(165deg, #FFE8A3 0%, #FFC94A 35%, #D98A14 75%, #B36B00 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.8),
    inset 0 -18px 30px -18px rgba(120,70,0,.5),
    0 12px 28px -10px rgba(217,138,20,.55);
  border-left:1px solid rgba(255,255,255,.5);
  border-right:1px solid rgba(255,255,255,.5);
  z-index:2;
}
.reel-item.big::before{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(65% 45% at 50% 0%, rgba(255,255,255,.65), transparent 70%);
  pointer-events:none;
}
.reel-item.big::after{ display:none; }
.reel-item.big .reel-item-ico{
  background:linear-gradient(160deg, rgba(255,255,255,.5), rgba(90,60,0,.2)), #3A2A00;
  border:1px solid rgba(255,255,255,.6);
  box-shadow:0 6px 16px -4px rgba(0,0,0,.4), inset 0 1px 1px rgba(255,255,255,.5);
  position:relative; z-index:1;
}
.reel-item.big .reel-item-title{
  color:#3A2500;
  text-shadow:0 1px 0 rgba(255,255,255,.5);
  position:relative; z-index:1;
}
.reel-item.big .reel-item-sub{
  color:#6B4A00;
  position:relative; z-index:1;
}
.reel-item.big .reel-item-qty{
  color:#3A2500;
  font-weight:800;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.7);
  position:relative; z-index:1;
}

/* Markazdagi tanlov oynasi — bitta kartochkani ANIQ qamrab oladi */
.reel-window{
  position:absolute; top:2px; bottom:2px; left:50%;
  width:154px; transform:translateX(-50%);
  border-radius:20px;
  border:3px solid var(--accent);
  background:transparent;
  box-shadow:
    0 0 0 3px rgba(255,255,255,.9),
    0 0 26px rgba(108,92,231,.45);
  pointer-events:none; z-index:5;
}
[data-theme="tun"] .reel-window{
  box-shadow:
    0 0 0 3px rgba(21,26,36,.9),
    0 0 26px rgba(108,92,231,.55);
}

.reel-viewport::before, .reel-viewport::after{
  content:""; position:absolute; top:0; bottom:0; width:90px; z-index:4; pointer-events:none;
}
.reel-viewport::before{left:0; background:linear-gradient(90deg, var(--panel-soft), transparent);}
.reel-viewport::after{right:0; background:linear-gradient(270deg, var(--panel-soft), transparent);}

.reel-arrow{
  position:absolute; left:50%; transform:translateX(-50%);
  width:24px; height:24px; color:var(--accent); z-index:5;
  filter:drop-shadow(0 4px 8px rgba(108,92,231,.35));
}
.reel-arrow--top{top:-12px;}
.reel-arrow--bottom{bottom:-12px;}

@media (max-width:600px){
  .reel-viewport{height:160px; border-radius:22px;}
  .reel-item{width:130px;}
  .reel-window{width:130px;}
}

/* ---- Tugma va status ---- */
.wheel-spin-btn{
  max-width:340px;
  margin:0 auto;
  font-size:16px;
  padding:16px 18px;
  border:1px solid rgba(255,255,255,.35);
  box-shadow:
    0 14px 32px -12px rgba(108,92,231,.55),
    inset 0 1px 1px rgba(255,255,255,.4);
}
.wheel-status{
  margin-top:18px;
  font-size:13.5px;
  color:var(--text-dim);
  line-height:1.6;
}
.wheel-status b{color:var(--mint); font-family:var(--font-display);}
.wheel-status b.paid{color:var(--amber);}

/* ---- Tarix paneli (pastda, to'liq kenglik) ---- */
.wheel-history-panel{padding:26px;}
.wheel-history-grid--page{
  max-height:none;
  overflow-y:visible;
  padding-right:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.wheel-history-row{
  display:flex;
  align-items:center;
  gap:14px;
  background:var(--panel);
  border:1px solid var(--border);
  border-left:4px solid var(--wh-color, var(--accent));
  border-radius:var(--radius-md);
  padding:14px 16px;
  transition:transform .15s ease, box-shadow .15s ease;
}
.wheel-history-row:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 26px -18px rgba(24,30,52,.3);
}
.wheel-history-row.lose{ opacity:.72; border-left-color:var(--text-faint); }

.wheel-history-row .wheel-history-ico{
  width:40px; height:40px; border-radius:12px; flex:none;
  background:var(--wh-color, var(--accent));
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 14px -6px color-mix(in srgb, var(--wh-color, var(--accent)) 60%, transparent);
}
.wheel-history-row.lose .wheel-history-ico{
  background:var(--panel-soft); color:var(--text-faint); box-shadow:none;
  border:1px solid var(--border);
}
.wheel-history-row .wheel-history-ico svg{width:19px; height:19px;}

.wheel-history-row .wheel-history-main{flex:1; min-width:0;}
.wheel-history-row .wheel-history-title{
  font-family:var(--font-display); font-weight:700; font-size:14px;
  color:var(--text);
}
.wheel-history-row .wheel-history-date{
  font-size:12px; color:var(--text-dim); margin-top:2px;
}

.wheel-history-right{
  display:flex; align-items:center; gap:12px; flex:none;
}
.wheel-history-row .wheel-history-qty{
  font-family:var(--font-display); font-weight:700; font-size:13.5px;
  color:var(--wh-color, var(--mint));
  white-space:nowrap;
}
.wheel-history-row.lose .wheel-history-qty{ color:var(--text-faint); font-weight:600; font-size:12px;}

.wheel-history-use-btn{
  padding:9px 14px; font-size:12.5px; white-space:nowrap;
}
.wheel-history-used-badge{
  font-size:11.5px; font-weight:700; color:var(--text-faint);
  background:var(--panel-soft); border:1px solid var(--border);
  padding:6px 11px; border-radius:var(--radius-pill); white-space:nowrap;
}

@media (max-width:560px){
  .wheel-history-row{flex-wrap:wrap;}
  .wheel-history-right{width:100%; justify-content:space-between; margin-top:8px;}
}

@media (max-width:720px){
  .wheel-panel{padding:26px 16px 24px;}
  .wheel-stage--page{width:min(320px, 88vw); height:min(320px, 88vw); margin:16px auto 20px;}
  .wheel-spin-btn{max-width:100%;}
}
@media (prefers-reduced-motion: reduce){
  .wheel-light{animation:none; opacity:.85;}
}

/* =========================================================
   ACCOUNT DROPDOWN MENYU
   ========================================================= */
.account-menu-wrap{ position:relative; }

.account-dropdown{
  position:absolute; top:calc(100% + 10px); right:0;
  width:270px;
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-card);
  padding:8px;
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
  z-index:80;
}
.account-dropdown.show{
  opacity:1; visibility:visible; transform:translateY(0);
}

.account-dropdown-head{
  display:flex; align-items:center; gap:12px;
  padding:10px 10px 14px;
}
.avatar--lg{ width:42px; height:42px; font-size:16px; flex:none; }
.account-dropdown-name{ font-weight:700; font-size:14.5px; margin-bottom:3px; }
.account-dropdown-balance{ font-size:12.5px; color:var(--mint); font-weight:700; font-family:var(--font-display); }

.account-dropdown-divider{ height:1px; background:var(--border-soft); margin:6px 4px; }

.account-dropdown-item{
  width:100%;
  display:flex; align-items:center; gap:11px;
  padding:10px 10px; border-radius:var(--radius-sm);
  background:transparent; border:none;
  color:var(--text-dim); font-size:13.5px; font-weight:500; text-align:left;
  transition:background .16s ease, color .16s ease;
}
.account-dropdown-item svg{ width:17px; height:17px; flex:none; opacity:.85; }
.account-dropdown-item:hover{ background:var(--nav-hover); color:var(--text); }
.account-dropdown-item--danger{ color:var(--danger); }
.account-dropdown-item--danger:hover{ background:var(--danger-soft); color:var(--danger); }

@media (max-width:480px){
  .account-dropdown{ right:-14px; width:calc(100vw - 28px); max-width:300px; }
}


/* =========================================================
   XIZMAT SHARTLARI — soyasiz, professional yuridik sahifa
   ========================================================= */
.terms-layout{
  display:grid;
  grid-template-columns:240px 1fr;
  gap:28px;
  align-items:start;
}

.terms-nav{
  position:sticky;
  top:20px;
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:8px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  box-shadow:none;
  max-height:calc(100vh - 40px);
  overflow-y:auto;
}
.terms-nav-link{
  display:block;
  padding:9px 12px;
  border-radius:var(--radius-sm);
  font-size:13px;
  font-weight:500;
  color:var(--text-dim);
  text-decoration:none;
  border-left:2px solid transparent;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.terms-nav-link:hover{
  background:var(--panel-soft);
  color:var(--text);
}
.terms-nav-link.active{
  background:var(--accent-soft);
  color:var(--accent-2);
  border-left-color:var(--accent);
  font-weight:600;
}

.terms-content{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:none;
  padding:32px 36px;
}

.terms-updated{
  display:inline-block;
  font-size:12px;
  font-weight:600;
  color:var(--text-faint);
  background:var(--panel-soft);
  border:1px solid var(--border-soft);
  padding:5px 12px;
  border-radius:var(--radius-pill);
  margin-bottom:24px;
}

.terms-section{
  padding-bottom:26px;
  margin-bottom:26px;
  border-bottom:1px solid var(--border-soft);
  scroll-margin-top:24px;
}
.terms-section:last-child{
  border-bottom:none;
  margin-bottom:0;
  padding-bottom:0;
}
.terms-section h3{
  font-size:17px;
  color:var(--text);
  margin-bottom:12px;
}
.terms-section p{
  font-size:14px;
  line-height:1.75;
  color:var(--text-dim);
  margin-bottom:12px;
}
.terms-section p:last-child{margin-bottom:0;}

.terms-list{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:12px;
}
.terms-list li{
  position:relative;
  padding-left:20px;
  font-size:14px;
  line-height:1.7;
  color:var(--text-dim);
}
.terms-list li::before{
  content:'';
  position:absolute;
  left:0; top:9px;
  width:6px; height:6px;
  border-radius:50%;
  background:var(--accent);
}
.terms-list b{color:var(--text);}
.terms-section b{color:var(--text); font-weight:600;}

/* Mobil: nav yuqoriga chiqadi, gorizontal skroll bilan */
@media (max-width:860px){
  .terms-layout{grid-template-columns:1fr;}
  .terms-nav{
    position:static;
    flex-direction:row;
    overflow-x:auto;
    max-height:none;
    white-space:nowrap;
  }
  .terms-nav-link{flex:none;}
  .terms-content{padding:22px 18px;}
}

/* =========================================================
   MAVJUD XIZMATLAR — BO'LIMLAR (Ijtimoiy / O'yin / Premium-Stars)
   ========================================================= */
.services-section{ margin-bottom:34px; }
.services-section:last-child{ margin-bottom:0; }
.services-section-title{
  font-size:16px;
  margin-bottom:16px;
  padding-bottom:10px;
  border-bottom:1px solid var(--border-soft);
}

.services-platform-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  gap:18px;
}

.service-platform-card{
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:20px;
  box-shadow:none;
}
.service-platform-head{
  display:flex; align-items:center; gap:12px;
  margin-bottom:14px;
}
.service-platform-ico{
  width:42px; height:42px; border-radius:12px; flex:none;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 18px -8px rgba(108,92,231,.55);
}
.service-platform-ico svg{width:20px; height:20px;}
.service-platform-head h3{font-size:15.5px;}

.service-category-list{
  display:flex; flex-direction:column; gap:6px;
}
.service-category-row{
  width:100%;
  display:flex; align-items:center; gap:10px;
  background:var(--panel-soft); border:1px solid var(--border-soft);
  border-radius:var(--radius-sm); padding:11px 13px;
  color:var(--text); font-size:13px; font-weight:600;
  text-align:left;
  transition:border-color .16s ease, background .16s ease;
}
.service-category-row:hover{
  border-color:var(--accent);
  background:var(--accent-soft);
}
.service-category-row span:first-child{flex:1; min-width:0;}
.service-category-count{
  font-size:11.5px; font-weight:700; color:var(--text-faint);
  background:var(--panel); border:1px solid var(--border);
  padding:2px 9px; border-radius:var(--radius-pill); flex:none;
}
.service-category-row svg{width:14px; height:14px; color:var(--text-faint); flex:none;}
.service-category-row:hover svg{color:var(--accent-2);}

/* Premium / Stars bloklari — o'yin kartalari uslubida, lekin kattaroq */
.service-overview-card--premium,
.service-overview-card--stars{
  padding:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  background:var(--panel);
  display:flex; flex-direction:column; gap:0;
  cursor:pointer;
  transition:transform .2s ease, border-color .2s ease;
}
.service-overview-card--premium:hover,
.service-overview-card--stars:hover{
  transform:translateY(-3px);
  border-color:rgba(108,92,231,.4);
}
.service-overview-card--premium .game-card-visual,
.service-overview-card--stars .game-card-visual{
  border-radius:0;
  aspect-ratio:auto;
  height:120px;
}
.service-overview-card--premium .game-card-visual svg,
.service-overview-card--stars .game-card-visual svg{
  width:34px; height:34px;
}
.service-overview-card-body{
  padding:16px 18px;
  text-align:left;
}
.service-overview-card-body h3{font-size:15px; margin-bottom:4px;}
.service-overview-card-body .service-overview-count{font-size:12px; color:var(--text-dim);}

@media (max-width:600px){
  .services-platform-grid{grid-template-columns:1fr;}
  .services-overview-grid{grid-template-columns:1fr;}
}


/* =========================================================
   HISOBIM (PROFIL) — DASHBOARD
   ========================================================= */
.profile-head-card{
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:24px; margin-bottom:22px;
  box-shadow:none;
}
.profile-head-left{display:flex; align-items:center; gap:18px; min-width:0;}
.profile-avatar{ width:72px; height:72px; border-radius:20px; flex:none; font-size:24px; }
.profile-head-info{min-width:0;}
.profile-head-info h2{font-size:19px; margin-bottom:3px;}
.profile-username{display:block; font-size:13px; color:var(--text-dim); margin-bottom:10px;}
.profile-badges{display:flex; flex-wrap:wrap; gap:8px;}
.profile-badge{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--panel-soft); border:1px solid var(--border);
  color:var(--text-dim); font-size:12px; font-weight:600;
  padding:6px 12px; border-radius:var(--radius-pill);
}
.profile-badge svg{width:13px; height:13px; flex:none;}
.profile-badge--mint{background:var(--mint-soft); color:var(--mint); border-color:rgba(15,177,133,.25);}

.profile-stats-grid{
  display:grid; grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px; margin-bottom:22px;
}
.profile-stat-card{
  display:flex; align-items:center; gap:14px;
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:18px;
  box-shadow:none;
}
.profile-stat-ico{
  width:44px; height:44px; border-radius:13px; flex:none;
  display:flex; align-items:center; justify-content:center; color:#fff;
}
.profile-stat-ico svg{width:20px; height:20px;}
.profile-stat-ico--mint{background:linear-gradient(135deg, var(--mint), #12c793);}
.profile-stat-ico--accent{background:linear-gradient(135deg, var(--accent), var(--accent-2));}
.profile-stat-ico--amber{background:linear-gradient(135deg, var(--amber), #FFD98A);}
.profile-stat-ico--pink{background:linear-gradient(135deg, #E1306C, #F77737);}
.profile-stat-label{display:block; font-size:12px; color:var(--text-dim); margin-bottom:4px;}
.profile-stat-val{display:block; font-family:var(--font-display); font-weight:700; font-size:17px;}

.profile-charts-grid{display:flex; flex-direction:column; gap:18px;}
.profile-charts-row{display:grid; grid-template-columns:1fr 1fr; gap:18px;}
.profile-chart-panel{padding:22px; box-shadow:none; position:relative;}
.profile-chart-panel h3{font-size:14.5px; margin-bottom:16px;}
.profile-chart-wrap{position:relative; height:220px;}
.profile-chart-wrap--lg{height:260px;}
.profile-chart-empty{
  position:absolute; inset:40px 20px 20px 20px;
  display:flex; align-items:center; justify-content:center;
  color:var(--text-faint); font-size:12.5px;
}

@media (max-width:1100px){
  .profile-stats-grid{grid-template-columns:repeat(2, minmax(0,1fr));}
  .profile-charts-row{grid-template-columns:1fr;}
}
@media (max-width:600px){
  .profile-stats-grid{grid-template-columns:1fr;}
  .profile-head-card{flex-direction:column; align-items:flex-start;}
  .profile-head-card .btn{width:100%;}
}

/* =========================================================
   API SAHIFASI — KENG PANEL + KO'P TILLI KOD TABLARI
   ========================================================= */
.api-panel-wide{
  max-width:1320px !important;
  width:100%;
}

.api-overview-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
  margin-bottom:22px;
}

.api-code-block{
  background:var(--panel-soft); border:1px solid var(--border);
  border-radius:var(--radius-md); padding:16px; margin-bottom:18px;
}
.api-lang-tabs{
  display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px;
}
.api-lang-tab{
  padding:8px 15px; border-radius:var(--radius-pill);
  border:1px solid var(--border); background:var(--panel);
  color:var(--text-dim); font-size:12.5px; font-weight:700;
  transition:all .16s ease;
}
.api-lang-tab:hover{border-color:var(--accent); color:var(--text);}
.api-lang-tab.active{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff; border-color:transparent;
  box-shadow:0 8px 18px -8px rgba(108,92,231,.55);
}
.api-lang-panel{display:none; margin:0; background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:16px; font-size:12.8px; overflow-x:auto; line-height:1.6;}
.api-lang-panel.active{display:block;}

.api-endpoint-tag{
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--font-display); font-weight:700; font-size:12px;
  padding:5px 11px; border-radius:var(--radius-pill);
  margin-bottom:12px;
}
.api-endpoint-tag.get{background:var(--mint-soft); color:var(--mint);}
.api-endpoint-tag.post{background:var(--amber-soft); color:var(--amber);}

.api-table{width:100%; border-collapse:collapse; margin-bottom:18px; font-size:13px;}
.api-table th, .api-table td{
  text-align:left; padding:10px 14px; border-bottom:1px solid var(--border-soft);
}
.api-table th{color:var(--text-faint); font-size:11.5px; text-transform:uppercase; letter-spacing:.04em;}
.api-table td{color:var(--text-dim);}
.api-table td b, .api-table code{color:var(--text);}
.api-table code{
  background:var(--panel-soft); border:1px solid var(--border);
  padding:2px 7px; border-radius:6px; font-size:12px;
}

.api-faq-item{border-bottom:1px solid var(--border-soft); padding:14px 0;}
.api-faq-item:last-child{border-bottom:none;}
.api-faq-item b{display:block; font-size:13.5px; margin-bottom:5px; color:var(--text);}
.api-faq-item p{font-size:13px; color:var(--text-dim); line-height:1.6;}

@media (max-width:700px){
  .api-overview-grid{grid-template-columns:1fr;}
  .api-table{font-size:12px;}
}

/* =========================================================
   HAMKORLIK PANELI — HERO BANNER
   ========================================================= */
.reseller-hero{
  position:relative; overflow:hidden;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(139,123,247,.45), transparent 55%),
    linear-gradient(155deg, #241B52, #120E2E 75%);
  border:1px solid rgba(139,123,247,.3);
  border-radius:var(--radius-lg); padding:30px;
  color:#fff; margin-bottom:22px;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.reseller-hero-left{max-width:560px;}
.reseller-hero h2{font-size:22px; margin-bottom:8px;}
.reseller-hero p{color:rgba(255,255,255,.75); font-size:13.5px; line-height:1.6;}
.reseller-hero-badges{display:flex; gap:10px; margin-top:16px; flex-wrap:wrap;}
.reseller-hero-badge{
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22);
  padding:8px 14px; border-radius:var(--radius-pill); font-size:12px; font-weight:700;
  display:flex; align-items:center; gap:7px;
}

.reseller-benefits-grid{
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px; margin-bottom:26px;
}
.reseller-benefit-card{
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:20px;
  transition:transform .2s ease, border-color .2s ease;
}
.reseller-benefit-card:hover{transform:translateY(-3px); border-color:rgba(108,92,231,.4);}
.reseller-benefit-ico{
  width:42px; height:42px; border-radius:12px; margin-bottom:12px;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff; display:flex; align-items:center; justify-content:center;
}
.reseller-benefit-ico svg{width:20px; height:20px;}
.reseller-benefit-card h4{font-size:14.5px; margin-bottom:6px;}
.reseller-benefit-card p{font-size:12.5px; color:var(--text-dim); line-height:1.5;}

@media (max-width:900px){
  .reseller-benefits-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:600px){
  .reseller-benefits-grid{grid-template-columns:1fr;}
  .reseller-hero{flex-direction:column; align-items:flex-start;}
}

.input-locked{
  opacity: .65;
  cursor: not-allowed;
  background: var(--panel-soft) !important;
}


/* =========================================================
   BUYURTMA MUVAFFAQIYATLI — MODAL + KONFETTI
   ========================================================= */
.order-success-scrim{
  position:fixed; inset:0; background:rgba(4,5,9,.62);
  backdrop-filter:blur(2px);
  opacity:0; pointer-events:none; transition:opacity .25s ease; z-index:150;
}
.order-success-scrim.show{opacity:1; pointer-events:auto;}

.order-success-modal{
  position:fixed; inset:0; z-index:151;
  display:flex; align-items:center; justify-content:center;
  padding:20px;
  opacity:0; pointer-events:none;
  transition:opacity .25s ease;
}
.order-success-modal.show{opacity:1; pointer-events:auto;}

.order-success-inner{
  width:100%; max-width:400px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:0 30px 70px -20px rgba(10,12,20,.5);
  padding:32px 28px;
  text-align:center;
  transform:translateY(14px) scale(.96);
  transition:transform .3s cubic-bezier(.32,.72,0,1);
}
.order-success-modal.show .order-success-inner{transform:translateY(0) scale(1);}

.order-success-ico{
  width:68px; height:68px; border-radius:50%; margin:0 auto 18px;
  background:var(--mint-soft); color:var(--mint);
  display:flex; align-items:center; justify-content:center;
  animation:orderSuccessPop .5s cubic-bezier(.34,1.56,.64,1);
}
.order-success-ico svg{width:32px; height:32px;}
@keyframes orderSuccessPop{
  0%{transform:scale(0); opacity:0;}
  60%{transform:scale(1.12); opacity:1;}
  100%{transform:scale(1);}
}

.order-success-inner h3{font-size:19px; margin-bottom:6px;}
.order-success-inner > p{color:var(--text-dim); font-size:13.5px; margin-bottom:16px;}

.order-success-code{
  font-family:var(--font-display); font-weight:700; font-size:20px;
  color:var(--accent-2);
  background:var(--accent-soft); border:1px solid rgba(108,92,231,.25);
  border-radius:var(--radius-md); padding:12px; margin-bottom:14px;
  letter-spacing:.02em;
}

.order-success-status{
  display:inline-flex; align-items:center; gap:7px;
  background:var(--amber-soft); color:var(--amber);
  border:1px solid rgba(217,138,20,.25);
  padding:7px 14px; border-radius:var(--radius-pill);
  font-size:12.5px; font-weight:700; margin-bottom:22px;
}
.order-success-status-dot{
  width:7px; height:7px; border-radius:50%; background:var(--amber);
  box-shadow:0 0 0 0 rgba(217,138,20,.5);
  animation:orderStatusPulse 1.6s ease-out infinite;
}
@keyframes orderStatusPulse{
  0%{box-shadow:0 0 0 0 rgba(217,138,20,.45);}
  70%{box-shadow:0 0 0 8px rgba(217,138,20,0);}
  100%{box-shadow:0 0 0 0 rgba(217,138,20,0);}
}

.order-success-inner .btn{margin-top:10px;}
.order-success-inner .btn:first-of-type{margin-top:0;}

@media (prefers-reduced-motion: reduce){
  .order-success-ico{animation:none;}
  .order-success-status-dot{animation:none;}
}
.btn-spinner{
  display:inline-block;
  width:16px;
  height:16px;
  border:2px solid rgba(255,255,255,.4);
  border-top-color:#fff;
  border-radius:50%;
  animation:btnSpin .6s linear infinite;
  margin-right:8px;
  vertical-align:middle;
}
@keyframes btnSpin{ to{ transform:rotate(360deg); } }
.btn-loading{ opacity:.85; cursor:not-allowed; }

/* O'yin kartalari yuklanish animatsiyasi (skeleton) */
.game-card--skeleton{ pointer-events:none; cursor:default; }
.game-skel-img{ width:100%; aspect-ratio:1/1; border-radius:24px; }
.game-skel-line{ height:14px; width:60%; margin:12px auto 0; border-radius:8px; }
.game-skel-img,
.game-skel-line{
  background:linear-gradient(90deg, var(--panel-soft, #eceff6) 25%, var(--border, #dfe3ee) 50%, var(--panel-soft, #eceff6) 75%);
  background-size:200% 100%;
  animation:gameShimmer 1.2s ease-in-out infinite;
}
@keyframes gameShimmer{
  from{ background-position:200% 0; }
  to{ background-position:-200% 0; }
}
/* Rasm yuklanguncha kartaning joyi bo'sh ko'rinmasin */
.game-card img{ background:var(--panel-soft, #eceff6); }
@media (prefers-reduced-motion:reduce){
  .game-skel-img,.game-skel-line{ animation:none; }
}

.order-success-details{
  text-align:left; background:var(--panel-soft); border:1px solid var(--border-soft);
  border-radius:var(--radius-md); padding:4px 14px; margin-bottom:16px;
}
.order-success-details .detail-row{ padding:9px 0; }
.order-success-ico.is-sending{ background:var(--accent-soft); color:var(--accent-2); animation:none; }
.order-success-ico.is-sending svg{ display:none; }
.order-success-ico.is-sending::after{
  content:""; width:30px; height:30px; border-radius:50%;
  border:3px solid var(--accent-soft); border-top-color:var(--accent-2);
  animation:btnSpin .7s linear infinite;
}
.order-success-status.is-done{ background:var(--mint-soft); color:var(--mint); border-color:rgba(15,177,133,.25); }
.order-success-status.is-done .order-success-status-dot{ background:var(--mint); animation:none; }

.ai-blocks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.ai-block{position:relative;text-align:left;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-lg);padding:26px;display:flex;flex-direction:column;gap:10px;color:var(--text);transition:transform .2s,border-color .2s;}
.ai-block:hover{transform:translateY(-3px);border-color:rgba(108,92,231,.45);}
.ai-block-ico{width:52px;height:52px;border-radius:15px;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 12px 28px -10px rgba(108,92,231,.6);}
.ai-block-ico svg{width:24px;height:24px;}
.ai-block h3{font-size:18px;} .ai-block p{font-size:13px;color:var(--text-dim);line-height:1.5;}
.ai-badge{align-self:flex-start;font-size:11.5px;font-weight:700;padding:5px 12px;border-radius:999px;background:var(--mint-soft);color:var(--mint);}
.ai-block.is-maint{opacity:.7;cursor:not-allowed;}
.ai-block.is-maint:hover{transform:none;border-color:var(--border);}
.ai-block.is-maint .ai-badge{background:var(--amber-soft);color:var(--amber);}
.ai-themes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.ai-theme{border:2px solid var(--border);border-radius:12px;padding:0;overflow:hidden;background:var(--panel);text-align:center;font-size:12px;font-weight:700;color:var(--text);}
.ai-theme i{display:block;height:54px;}
.ai-theme span{display:block;padding:7px;}
.ai-theme.active{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);}
.ai-result-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px;}
.ai-dl{display:flex;gap:10px;flex-wrap:wrap;}
.ai-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.ai-slide-wrap{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:12px;border:1px solid var(--border);}
.ai-slide-wrap>div{transform-origin:0 0;position:absolute;top:0;left:0;}
@media(max-width:760px){.ai-blocks,.ai-preview{grid-template-columns:1fr;}.ai-themes{grid-template-columns:repeat(2,1fr);}}


/* ObunaGO AI: style.css dan KEYIN ulang. */
#view-ai{--ai-glass:rgba(255,255,255,.74);--ai-edge:rgba(255,255,255,.94);--ai-input:rgba(247,248,255,.88);position:relative;isolation:isolate;padding:0;}
#view-ai::before{display:none;}
#view-ai .page-head{padding:0;}
#view-ai .panel,#view-ai .ai-block{background:var(--ai-glass);border:1px solid var(--ai-edge);border-radius:26px;box-shadow:0 18px 50px -32px rgba(63,53,114,.4),inset 0 1px 0 rgba(255,255,255,.55);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);}
#view-ai .panel{padding:clamp(20px,3vw,34px);}#view-ai .ai-block{padding:30px;min-height:220px;gap:14px;transition:transform .2s,box-shadow .2s;}
#view-ai .ai-block:hover{transform:translateY(-4px);box-shadow:0 22px 50px -25px rgba(97,79,182,.38);}
#view-ai .ai-block-ico{width:58px;height:58px;border-radius:19px;background:linear-gradient(145deg,#a69aff,#6c5ce7);box-shadow:0 10px 24px -10px #8170e7;}
#view-ai .ai-block h3{font-size:22px;}#view-ai .ai-block p{max-width:390px;line-height:1.65;}
#view-ai .ai-badge,#aiUsage{width:fit-content;padding:8px 13px;border-radius:12px;font-size:12px;font-weight:600;background:var(--accent-soft);color:var(--accent);}
#aiUsage:empty{display:none;}#view-ai .field{margin-bottom:22px;}#view-ai .field label{color:var(--text-dim);font-size:13px;font-weight:600;margin-bottom:9px;}
#view-ai input[type=text]{min-height:52px;border-radius:15px;background:var(--ai-input);border:1px solid var(--border);box-shadow:inset 0 1px 3px rgba(55,42,105,.025);padding:14px 16px;color:var(--text);font-size:15px;transition:border-color .2s,box-shadow .2s;}
#view-ai input[type=text]:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft);}
#view-ai input[type=range]{accent-color:var(--accent);height:26px;background:transparent;border:0;box-shadow:none;cursor:pointer;}
#aiCountVal{display:inline-flex;min-width:28px;justify-content:center;padding:3px 7px;margin-left:4px;background:var(--accent-soft);border-radius:7px;color:var(--accent);}
#view-ai .ai-themes{gap:12px;}#view-ai .ai-theme{position:relative;border-radius:17px;border:2px solid transparent;background:var(--ai-input);box-shadow:0 0 0 1px var(--border);transition:transform .2s,border-color .2s;}
#view-ai .ai-theme i{height:78px;}#view-ai .ai-theme span{padding:11px;font-size:13px;}#view-ai .ai-theme:hover{transform:translateY(-3px);}
#view-ai .ai-theme.active{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft);}#view-ai .ai-theme.active::after{content:"✓";position:absolute;right:8px;top:8px;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:white;font-size:13px;box-shadow:0 2px 8px #0002;}
#btnAiGenerate{min-height:54px;border:1px solid #ffffff40;border-radius:16px;background:linear-gradient(110deg,#7763e9,#9981fb);box-shadow:0 12px 25px -12px #7862dd;font-weight:700;letter-spacing:.1px;}
#btnAiGenerate:disabled{opacity:.6;cursor:wait;}#view-ai button:focus-visible{outline:3px solid var(--accent);outline-offset:4px;}
#view-ai .ai-slide-wrap{border-radius:17px;box-shadow:0 8px 25px -18px #30265670;}#view-ai .ai-result-head{gap:16px;}#view-ai .history-list{gap:12px;}
[data-theme=tun] #view-ai{--ai-glass:rgba(23,27,42,.85);--ai-edge:rgba(163,156,217,.17);--ai-input:rgba(13,17,30,.64);}
[data-theme=tun] #view-ai .panel,[data-theme=tun] #view-ai .ai-block{box-shadow:0 20px 50px -30px #0008,inset 0 1px 0 #ffffff08;}
[data-theme=tun] #view-ai .ai-badge,[data-theme=tun] #aiUsage,[data-theme=tun] #aiCountVal{color:#bfb4ff;}
@supports not (backdrop-filter:blur(1px)){#view-ai .panel,#view-ai .ai-block{background:var(--panel);}}
@media(max-width:760px){#view-ai .ai-blocks,#view-ai .ai-preview,#view-ai .field-grid{grid-template-columns:1fr;}#view-ai .ai-themes{grid-template-columns:repeat(2,minmax(0,1fr));}#view-ai .panel{border-radius:20px;}#view-ai .ai-dl{width:100%;}#view-ai .ai-dl button{flex:1;min-width:180px;}#view-ai .ai-block{min-height:190px;}}
@media(prefers-reduced-motion:reduce){#view-ai *,#view-ai *::before,#view-ai *::after{transition:none!important;animation:none!important;}}


/* ===== AI STUDIO: BOSQICHLI FORMA ===== */

#aiFormPanel {
  --aw-accent: #7860ee;
  --aw-soft: rgba(120, 96, 238, .09);
  --aw-line: rgba(120, 96, 238, .15);
  --aw-ink: #202339;
  --aw-muted: #747990;
  --aw-surface: rgba(255, 255, 255, .65);

  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  padding: clamp(22px, 4vw, 56px);
  overflow: hidden;
  color: var(--aw-ink);
  background:
    radial-gradient(circle at 100% 0, #e9e3ff90, transparent 42%),
    rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 30px;
  box-shadow: 0 24px 70px -38px #65539b70;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

#aiFormPanel,
#aiFormPanel * {
  box-sizing: border-box;
}

#aiFormPanel [hidden] {
  display: none !important;
}

#aiFormPanel button,
#aiFormPanel input {
  font: inherit;
}

#aiFormPanel button {
  cursor: pointer;
}

#aiFormPanel button:disabled {
  cursor: not-allowed;
}

#aiFormPanel .aw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#aiFormPanel .aw-brand {
  color: var(--aw-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

#aiFormPanel .aw-step-label {
  color: var(--aw-muted);
  font-size: 12px;
}

#aiFormPanel #aiUsage {
  margin: 15px 0 0;
  font-size: 11px;
}

#aiFormPanel .aw-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 28px 0 32px;
  list-style: none;
}

#aiFormPanel .aw-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 13px;
  border-bottom: 3px solid var(--aw-line);
  color: var(--aw-muted);
}

#aiFormPanel .aw-steps li > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: var(--aw-soft);
  font-size: 12px;
  font-weight: 700;
}

#aiFormPanel .aw-steps b {
  font-size: 12px;
  font-weight: 600;
}

#aiFormPanel .aw-steps .is-current {
  color: var(--aw-accent);
  border-color: var(--aw-accent);
}

#aiFormPanel .aw-steps .is-current > span {
  color: #fff;
  background: var(--aw-accent);
  box-shadow: 0 5px 14px #7860ee35;
}

#aiFormPanel .aw-steps .is-done {
  color: #168673;
  border-color: #42bca1;
}

#aiFormPanel .aw-pane {
  animation: aw-enter .25s ease-out;
}

#aiFormPanel .aw-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--aw-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

#aiFormPanel h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 39px);
  line-height: 1.15;
  letter-spacing: -1.2px;
  font-weight: 800;
  color: var(--aw-ink);
}

#aiFormPanel h2:focus {
  outline: none;
}

#aiFormPanel .aw-description {
  margin: 16px 0 26px;
  max-width: 530px;
  color: var(--aw-muted);
  font-size: 14px;
  line-height: 1.75;
}

#aiFormPanel .field {
  margin-bottom: 20px;
}

#aiFormPanel .field label {
  display: block;
  margin-bottom: 9px;
  color: var(--aw-ink);
  font-size: 13px;
  font-weight: 600;
}

#aiFormPanel input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 16px;
  border: 1px solid var(--aw-line);
  border-radius: 15px;
  color: var(--aw-ink);
  background: var(--aw-surface);
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}

#aiFormPanel input::placeholder {
  color: #979bb0;
}

#aiFormPanel input[type="text"]:focus {
  border-color: var(--aw-accent);
  outline: none;
  box-shadow: 0 0 0 4px var(--aw-soft);
}

#aiFormPanel .aw-input-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--aw-muted);
  font-size: 11px;
  line-height: 1.5;
}

#aiFormPanel #aiTopicLength {
  flex: none;
}

#aiFormPanel .aw-examples > span {
  color: var(--aw-muted);
  font-size: 12px;
}

#aiFormPanel .aw-examples > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#aiFormPanel .aw-examples button {
  padding: 10px 12px;
  border: 1px solid var(--aw-line);
  border-radius: 11px;
  color: var(--aw-ink);
  background: var(--aw-surface);
  font-size: 12px;
  text-align: left;
}

#aiFormPanel .aw-examples button:hover {
  color: var(--aw-accent);
  border-color: var(--aw-accent);
}

#aiFormPanel .aw-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 15px;
  color: var(--aw-accent);
  background: var(--aw-soft);
}

#aiFormPanel .aw-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

#aiFormPanel .aw-count-hero {
  padding: 24px 16px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid var(--aw-line);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--aw-soft), transparent);
}

#aiFormPanel .aw-count-hero > div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  color: var(--aw-muted);
}

#aiFormPanel #aiCountVal {
  display: inline;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--aw-accent);
  background: none;
  font-size: 70px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -4px;
}

#aiFormPanel .aw-count-hero p {
  margin: 13px 0 0;
  color: var(--aw-muted);
  font-size: 12px;
}

#aiFormPanel .aw-number-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

#aiFormPanel .aw-number {
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--aw-line);
  border-radius: 13px;
  color: var(--aw-ink);
  background: var(--aw-surface);
  font-size: 18px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}

#aiFormPanel .aw-number:hover {
  transform: translateY(-2px);
  border-color: var(--aw-accent);
}

#aiFormPanel .aw-number[aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #927aff, #7156e5);
  box-shadow: 0 7px 18px #7860ee35;
}

#aiFormPanel #aiThemes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#aiFormPanel .ai-theme {
  min-width: 0;
  padding: 7px;
  text-align: left;
  border: 2px solid var(--aw-line);
  border-radius: 19px;
  background: var(--aw-surface);
  box-shadow: none;
}

#aiFormPanel .ai-theme.active {
  border-color: var(--aw-accent);
  box-shadow: 0 0 0 3px var(--aw-soft);
}

#aiFormPanel .ai-theme.active::after {
  top: 13px;
  right: 13px;
}

#aiFormPanel .aw-theme-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  height: 105px;
  padding: 18px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--preview-bg);
}

#aiFormPanel .aw-theme-preview em {
  width: 24px;
  height: 4px;
  border-radius: 5px;
  background: var(--preview-accent);
}

#aiFormPanel .aw-theme-preview strong {
  color: var(--preview-title);
  font-size: 14px;
  font-style: normal;
}

#aiFormPanel .aw-theme-preview small {
  width: 72%;
  height: 4px;
  border-radius: 4px;
  background: var(--preview-title);
  opacity: .3;
}

#aiFormPanel .aw-theme-name {
  padding: 11px 6px 5px;
  color: var(--aw-ink);
}

#aiFormPanel .aw-theme-name b {
  display: block;
  font-size: 13px;
}

#aiFormPanel .aw-theme-name small {
  display: block;
  margin-top: 4px;
  color: var(--aw-muted);
  font-size: 10px;
  font-weight: 400;
}

#aiFormPanel .aw-summary {
  margin-top: 22px;
  padding: 17px;
  border: 1px solid var(--aw-line);
  border-radius: 15px;
  background: var(--aw-soft);
  overflow-wrap: anywhere;
}

#aiFormPanel .aw-summary > span {
  display: block;
  color: var(--aw-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

#aiFormPanel .aw-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}

#aiFormPanel .aw-summary p {
  margin: 6px 0 0;
  color: var(--aw-muted);
  font-size: 12px;
  line-height: 1.7;
}

#aiFormPanel .aw-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

#aiFormPanel .aw-back {
  flex: none;
  padding: 0 17px;
  border: 1px solid var(--aw-line);
  border-radius: 15px;
  color: var(--aw-ink);
  background: var(--aw-surface);
  font-size: 13px;
}

#aiFormPanel .aw-next,
#aiFormPanel #btnAiGenerate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 14px 16px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(110deg, #7455e8, #9980fc);
  box-shadow: 0 10px 24px -9px #7860ee80;
  font-size: 14px;
  font-weight: 700;
  transition: opacity .2s, transform .2s;
}

#aiFormPanel .aw-next:hover:not(:disabled) {
  transform: translateY(-2px);
}

#aiFormPanel .aw-next:disabled,
#aiFormPanel #btnAiGenerate:disabled {
  color: var(--aw-muted);
  background: var(--aw-soft);
  box-shadow: none;
  opacity: .65;
  cursor: not-allowed;
}

#aiFormPanel .aw-bottom-note {
  margin: 17px 0 0;
  color: var(--aw-muted);
  text-align: center;
  font-size: 10px;
  line-height: 1.7;
}

#aiFormPanel .aw-error {
  margin: 20px 0 0;
  padding: 14px;
  border: 1px solid #e3696940;
  border-radius: 12px;
  color: #b93145;
  background: #e3696910;
  font-size: 13px;
  line-height: 1.6;
}

#aiFormPanel .aw-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border-radius: 16px;
  background: var(--aw-soft);
}

#aiFormPanel .aw-loading strong {
  font-size: 13px;
}

#aiFormPanel .aw-loading p {
  margin: 5px 0 0;
  color: var(--aw-muted);
  font-size: 12px;
  line-height: 1.6;
}

#aiFormPanel .aw-spinner {
  flex: none;
  width: 26px;
  height: 26px;
  border: 3px solid var(--aw-line);
  border-top-color: var(--aw-accent);
  border-radius: 50%;
  animation: aw-spin .8s linear infinite;
}

[data-theme="tun"] #aiFormPanel {
  --aw-accent: #baa8ff;
  --aw-soft: rgba(175, 146, 255, .1);
  --aw-line: rgba(175, 146, 255, .19);
  --aw-ink: #f0edff;
  --aw-muted: #aaa5c2;
  --aw-surface: rgba(255, 255, 255, .035);

  background:
    radial-gradient(circle at 100% 0, #66519f30, transparent 45%),
    rgba(24, 25, 42, .94);
  border-color: var(--aw-line);
}

[data-theme="tun"] #aiFormPanel .aw-error {
  color: #ffabb6;
}

@keyframes aw-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes aw-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  #aiFormPanel {
    padding: 23px 18px;
    border-radius: 23px;
  }

  #aiFormPanel .aw-steps {
    margin-block: 24px;
    gap: 7px;
  }

  #aiFormPanel .aw-steps li {
    flex-direction: column;
    gap: 7px;
  }

  #aiFormPanel .aw-steps b {
    font-size: 10px;
  }

  #aiFormPanel .aw-number-grid {
    gap: 7px;
  }

  #aiFormPanel .aw-number {
    min-height: 46px;
    border-radius: 11px;
    font-size: 16px;
  }

  #aiFormPanel #aiThemes {
    gap: 10px;
  }

  #aiFormPanel .aw-theme-preview {
    padding: 12px;
    height: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #aiFormPanel *,
  #aiFormPanel *::before,
  #aiFormPanel *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* AI Studio: katta ekranlar uchun */
@media (min-width: 900px) {
  #aiFormPanel .aw-description {
    max-width: 720px;
    font-size: 15px;
  }

  #aiFormPanel h2 {
    font-size: clamp(34px, 3.4vw, 46px);
  }

  #aiFormPanel .aw-number-grid {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }

  #aiFormPanel #aiThemes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #aiFormPanel .aw-theme-preview {
    height: 130px;
  }

  #aiFormPanel .aw-steps b {
    font-size: 13px;
  }
}

/* AI Studio: shadowlarni o'chirish */
#view-ai .panel,
#view-ai .ai-block,
#view-ai .ai-block:hover,
#view-ai .ai-slide-wrap,
#view-ai .ai-theme,
#view-ai .ai-theme.active,
#aiFormPanel,
#aiFormPanel .ai-theme,
#aiFormPanel .ai-theme.active,
#aiFormPanel .aw-next,
#aiFormPanel #btnAiGenerate,
#aiFormPanel .aw-number[aria-pressed="true"],
#aiFormPanel .aw-steps .is-current > span,
#view-ai .ai-block-ico,
#btnAiGenerate {
  box-shadow: none !important;
}

[data-theme="tun"] #view-ai .panel,
[data-theme="tun"] #view-ai .ai-block {
  box-shadow: none !important;
}

/* Yangiliklar */
.news-feed{display:flex; flex-direction:column; gap:12px;}
.news-card{
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:20px 22px;
}
.news-card.is-new{border-color:rgba(108,92,231,.45);}
.news-card-head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px;}
.news-card-head h3{font-size:16px;}
.news-card-badge{
  flex:none; font-size:11px; font-weight:700; padding:4px 10px;
  border-radius:999px; background:var(--mint-soft); color:var(--mint);
}
.news-card p{font-size:14px; line-height:1.65; color:var(--text-dim); white-space:pre-line;}
.news-card-date{display:block; margin-top:12px; font-size:12px; color:var(--text-faint);}

/* Kirill ↔ Lotin */
.tl-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.tl-pane{padding:20px !important;}
.tl-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;}
.tl-badge{font-size:12px;font-weight:700;padding:6px 12px;border-radius:999px;background:var(--accent-soft);color:var(--accent);}
.tl-copy{padding:8px 14px;font-size:12.5px;}
.tl-text{
  width:100%;min-height:320px;resize:vertical;
  padding:14px 16px;border:1px solid var(--border);border-radius:15px;
  background:var(--panel-soft);color:var(--text);
  font:inherit;font-size:15px;line-height:1.6;outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.tl-text::placeholder{color:var(--text-faint);}
.tl-text:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft);}
@media(max-width:760px){
  .tl-grid{grid-template-columns:1fr;}
  .tl-text{min-height:200px;}
}


/* Rasmdan matn (OCR) */
.ocr-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:260px;padding:16px;border:2px dashed var(--border);border-radius:18px;background:var(--panel-soft);color:var(--text-dim);font-size:14px;text-align:center;cursor:pointer;transition:border-color .2s}
.ocr-drop:hover,.ocr-drop.drag{border-color:var(--accent)}
.ocr-drop img{max-width:100%;max-height:300px;border-radius:12px}

/* =========================================================
   UNIVERSAL RESPONSIVE: TV · planshet · telefon · soat · avto ekran
   (style.css ning eng oxirida turishi shart)
   ========================================================= */

/* ---- Umumiy xavfsizlik ---- */
img, canvas{ max-width:100%; }
body{
  padding-left:env(safe-area-inset-left);
  padding-right:env(safe-area-inset-right);
}
.toast{ bottom:calc(26px + env(safe-area-inset-bottom)); }
.topup-reminder{ bottom:calc(26px + env(safe-area-inset-bottom)); }

/* Modal oynalar past balandlikda kesilib qolmasin */
.order-success-inner,
.detail-modal-inner,
.wheel-modal-inner{ max-height:92vh; max-height:92dvh; overflow-y:auto; }

/* API jadvallari tor ekranda sig'masa yon tomonga siljiydi */
.api-panel-wide{ overflow-x:auto; }
@media (max-width:600px){
  .api-table{ display:block; overflow-x:auto; white-space:nowrap; }
}

/* ---- Pult / klaviatura / rul tugmasi bilan boshqarish (TV, avto) ---- */
:focus-visible{ outline:3px solid var(--accent-2); outline-offset:3px; }

/* ---- Sensorli ekranlar: bosish uchun qulay hajm ---- */
@media (pointer:coarse){
  .btn, .nav-link, .platform-chip, .topup-chip,
  .faq-question, .guide-nav-item, .api-lang-tab{ min-height:44px; }
}

/* ---- Planshet gorizontal (981–1280px): menyu torroq ---- */
@media (min-width:981px) and (max-width:1280px){
  :root{ --sidebar-w:232px; }
  .content{ padding:24px 20px 50px; }
}

/* ---- TV va katta ekranlar (72" gacha): butun sahifa proporsional kattalashadi ---- */
@media (min-width:1920px){ html{ zoom:1.15; } }
@media (min-width:2560px){ html{ zoom:1.5; } }
@media (min-width:3200px){ html{ zoom:1.9; } }
@media (min-width:3840px){ html{ zoom:2.25; } }

/* ---- Past balandlikdagi gorizontal ekranlar (avto displey, telefon yotqizilganda) ---- */
@media (max-height:520px) and (orientation:landscape){
  :root{ --topbar-h:52px; }
  .sidebar-head{ padding:10px 16px; }
  .nav-link{ padding:8px 11px; }
  .nav-group{ margin-bottom:10px; }
  .sidebar-foot{ padding:10px; }
  .panel{ padding:16px; }
  .page-head{ margin-bottom:12px; }
  .page-head h1{ font-size:20px; }
  .reel-viewport{ height:130px; }
  .topup-modal-inner{ max-height:94vh; max-height:94dvh; }
}
@media (max-height:520px) and (orientation:landscape) and (max-width:980px){
  .content{ padding-top:calc(var(--topbar-h) + 10px); }
}

/* ---- Juda tor ekranlar: smart soat (≤300px) ---- */
@media (max-width:300px){
  :root{ --topbar-h:50px; }
  .topbar{ padding:0 6px; gap:6px; }
  .balance-pill{ display:none; }
  .brand-name{ font-size:15px; }
  .brand-mark{ width:28px; height:28px; }
  .content{ padding:calc(var(--topbar-h) + 8px) 8px 30px; }
  .page-head h1{ font-size:18px; }
  .page-head p{ font-size:12px; }
  .panel{ padding:10px; border-radius:12px; }
  .btn, .btn-lg{ font-size:12.5px; padding:10px 12px; }
  .field input, .select-wrap select{ padding:10px; font-size:13px; }
  .field label{ font-size:11.5px; }
  .platform-chip{ padding:8px 10px; font-size:12px; }
  .game-grid{ gap:10px 8px; }
  .game-card span{ font-size:11px; }
  .game-card img{ border-radius:14px; }
  .summary-row{ font-size:12px; }
  .summary-row--total{ font-size:14px; }
  .toast{ font-size:12px; padding:9px 14px; }
  .topup-payment-left .topup-card-num{ font-size:15px; }
  .topup-payment-left .topup-amount-out{ font-size:21px; }
  .order-success-inner{ padding:20px 14px; }
}
@media (max-width:220px){
  .game-grid{ grid-template-columns:minmax(0,1fr); }
  .icon-btn{ width:30px; height:30px; }
  .avatar{ width:24px; height:24px; font-size:11px; }
  .page-head h1{ font-size:16px; }
}

/* =========================================================
   CHEK (RECEIPT) — buyurtma / to'lov tafsilotlari
   ========================================================= */
.detail-modal-inner.receipt-shell{
  background:transparent; border:none; box-shadow:none; padding:0;
  max-width:390px; overflow:visible;
  max-height:94vh; max-height:94dvh; overflow-y:auto;
}
.receipt-wrap{
  filter:drop-shadow(0 24px 30px rgba(10,12,20,.35));
  padding:0 0 4px;
}
.receipt{
  --paper:#FFFEFB; --ink:#1B1F2A; --ink-dim:#6B7285; --line:#C9CEDB;
  position:relative;
  background:var(--paper); color:var(--ink);
  padding:30px 24px 24px;
  font-family:ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
  /* tishli (zigzag) qirralar: tepa va past */
  -webkit-mask:
    conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50% 100%/16px 51% repeat-x,
    conic-gradient(from 135deg at top,#0000,#000 1deg 89deg,#0000 90deg) 50% 0/16px 51% repeat-x;
          mask:
    conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50% 100%/16px 51% repeat-x,
    conic-gradient(from 135deg at top,#0000,#000 1deg 89deg,#0000 90deg) 50% 0/16px 51% repeat-x;
}
[data-theme="tun"] .receipt{
  --paper:#1A2029; --ink:#EBEEF5; --ink-dim:#8D97AC; --line:#3A4355;
}

.receipt-head{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  gap:4px; padding-bottom:16px; margin-bottom:14px;
  border-bottom:2px dashed var(--line);
}
.receipt-logo{
  width:40px; height:40px; border-radius:12px; margin-bottom:6px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#fff; display:flex; align-items:center; justify-content:center;
}
.receipt-logo svg{width:20px; height:20px;}
.receipt-brand{
  font-family:var(--font-display); font-size:19px; letter-spacing:.02em;
}
.receipt-title{
  font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-dim);
}
.receipt-number{
  margin-top:6px; font-size:15px; font-weight:700; letter-spacing:.06em;
  padding:4px 14px; border:1.5px solid var(--ink); border-radius:6px;
}

.receipt-status{
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin:0 auto 16px; width:fit-content;
  padding:6px 16px; border-radius:999px;
  font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  background:var(--amber-soft); color:var(--amber);
  border:1.5px dashed currentColor;
}
.receipt-status-dot{width:7px; height:7px; border-radius:50%; background:currentColor;}
.receipt-status.completed, .receipt-status.confirmed{background:var(--mint-soft); color:var(--mint);}
.receipt-status.canceled, .receipt-status.failed, .receipt-status.expired{background:var(--danger-soft); color:var(--danger);}
.receipt-status.pending .receipt-status-dot,
.receipt-status.processing .receipt-status-dot{animation:orderStatusPulse 1.6s ease-out infinite;}

.receipt-rows{display:flex; flex-direction:column; gap:10px; padding-bottom:16px;}
.receipt-row{display:flex; align-items:baseline; gap:8px; font-size:12.5px;}
.receipt-label{flex:none; color:var(--ink-dim);}
.receipt-leader{
  flex:1; min-width:10px; border-bottom:1.5px dotted var(--line);
  transform:translateY(-3px);
}
.receipt-value{
  flex:0 1 62%; text-align:right; font-weight:700; color:var(--ink);
  overflow-wrap:anywhere; word-break:break-word;
}

.receipt-total{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  padding:14px 0; border-top:2px dashed var(--line); border-bottom:2px dashed var(--line);
  margin-bottom:16px;
}
.receipt-total span{font-size:12px; letter-spacing:.14em; color:var(--ink-dim); font-weight:700;}
.receipt-total b{
  font-family:var(--font-display); font-size:20px; text-align:right;
  overflow-wrap:anywhere;
}

.receipt-barcode{
  height:42px; margin:0 auto 10px; width:80%;
  background:repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px,
    var(--ink) 4px 5px, transparent 5px 8px,
    var(--ink) 8px 11px, transparent 11px 13px,
    var(--ink) 13px 14px, transparent 14px 17px);
  opacity:.85; border-radius:2px;
}
.receipt-thanks{
  text-align:center; font-size:11.5px; color:var(--ink-dim);
  letter-spacing:.06em; margin-bottom:14px;
}
.receipt .detail-close{
  margin-top:0; font-family:var(--font-body);
  background:var(--panel-soft); color:var(--text);
}

@media (max-width:400px){
  .receipt{padding:26px 16px 20px;}
  .receipt-row{font-size:12px;}
}

/* Balans tooltip (hover) */
.balance-wrap{ position:relative; }
.balance-tip{
  position:absolute; top:calc(100% + 12px); right:0;
  width:290px;
  background:var(--panel); color:var(--text);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-card);
  padding:14px 16px;
  opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
  z-index:85; pointer-events:none;
}
.balance-tip b{
  display:block; font-family:var(--font-display);
  font-size:13px; color:var(--amber); margin-bottom:6px;
}
.balance-tip p{ font-size:12.5px; line-height:1.55; color:var(--text-dim); }
.balance-tip::before{
  content:""; position:absolute; top:-6px; right:26px;
  width:10px; height:10px; background:var(--panel);
  border-left:1px solid var(--border); border-top:1px solid var(--border);
  transform:rotate(45deg);
}
/* Faqat balans < 5000 bo'lganda (JS .low-balance klassini qo'shadi) va sichqoncha ustida */
.balance-wrap.low-balance:hover .balance-tip{
  opacity:1; visibility:visible; transform:translateY(0);
}
.balance-wrap.low-balance .balance-pill{
  background:var(--amber-soft); color:var(--amber);
  border-color:rgba(217,138,20,.3);
}
@media (hover:none){ .balance-tip{ display:none; } } /* telefonda hover yo'q */


/* =========================================================
   HAMKORLIK PANELI: soyasiz bloklar + 3 ta statistika bloki to'liq kenglikda
   ========================================================= */

/* 1) Soyalarni o'chirish */
#view-reseller .panel,
#view-reseller .reseller-benefit-card,
#view-reseller .profile-stat-card,
#view-reseller .profile-chart-panel,
#view-reseller .history-item{
  box-shadow:none !important;
}

/* 2) Pastdagi 3 ta blok butun qatorni to'ldirsin (yonma-yon, teng kenglikda) */
#rsStatsGrid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  width:100%;
}
@media (max-width:900px){
  #rsStatsGrid{ grid-template-columns:1fr; }
}

/* 3) Aloqa markazi: YouTube kartasi qizil gradient */
.contact-card--red{
  background:
    radial-gradient(130% 160% at 100% 0%, rgba(255,120,120,.38), transparent 55%),
    linear-gradient(155deg,#FF3B3B,#B80F1A 80%);
}

/* AI bloklar: 3 ustun → planshet 2 ustun → telefon 1 ustun */
@media (max-width:1100px){
  .ai-blocks{grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* AI bloklardagi "Foydalanish" tugmasi soyasini o'chirish */
#view-ai .ai-block .btn,
#view-ai .ai-block .btn:hover,
#view-ai .ai-block .btn-accent{
  box-shadow:none !important;
}

/* AI xizmat ochilganda sarlavha yashirinadi, o'rnida "Orqaga" tugmasi qoladi */
#view-ai.ai-in-tool > .page-head{
  display:none;
}

/* "Hisobni to'ldirish" tugmalaridan soyani olib tashlash */
#btnProfileTopup,
#btnProfileTopup:hover,
#btnSidebarTopup,
#btnSidebarTopup:hover{
  box-shadow:none !important;
}

/* Kirish usuli belgisi */
.profile-badge--auth{
  background:var(--accent-soft);
  color:var(--accent-2);
  border-color:rgba(108,92,231,.25);
}
.profile-badge--auth svg{width:14px; height:14px;}

/* =========================================================
   O'YIN DONAT — MAHSULOTLAR GRID KO'RINISHI
   ========================================================= */
.game-topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:18px;
}
.game-view-toggle{
  width:46px; height:46px; flex:none;
  display:flex; align-items:center; justify-content:center;
  border-radius:var(--radius-sm);
  border:1px solid var(--border);
  background:transparent; color:var(--text-dim);
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease;
}
.game-view-toggle svg{width:20px; height:20px;}
.game-view-toggle:hover{border-color:var(--accent); color:var(--accent-2);}
.game-view-toggle:active{transform:scale(.95);}
.game-view-toggle.active{
  background:var(--accent-soft);
  border-color:var(--accent);
  color:var(--accent);
}

.game-offer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(150px, 1fr));
  gap:12px;
  margin-bottom:18px;
}
.game-offer-grid[hidden]{display:none;}

.game-offer-card{
  position:relative;
  min-width:0; min-height:84px;
  display:flex; flex-direction:column; justify-content:center; align-items:flex-start;
  gap:6px;
  padding:14px 16px;
  text-align:left;
  background:var(--panel-soft);
  border:1.5px solid var(--border);
  border-radius:var(--radius-md);
  color:var(--text);
  transition:border-color .18s ease, background .18s ease, transform .15s ease;
}
.game-offer-card:hover{border-color:var(--accent); transform:translateY(-2px);}
.game-offer-card:active{transform:scale(.98);}
.game-offer-card.selected{
  border-color:var(--accent);
  background:var(--accent-soft);
  box-shadow:0 0 0 3px var(--accent-soft);
}
.game-offer-card.selected::after{
  content:"✓";
  position:absolute; top:8px; right:8px;
  width:20px; height:20px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent); color:#fff;
  font-size:11px; font-weight:800;
}
.game-offer-name{
  font-family:var(--font-display); font-weight:700; font-size:14px; line-height:1.3;
  padding-right:18px; overflow-wrap:anywhere;
}
.game-offer-price{
  font-family:var(--font-display); font-weight:700; font-size:13.5px;
  color:var(--mint); white-space:nowrap;
}
.game-offer-empty{
  grid-column:1 / -1; text-align:center; padding:22px;
  color:var(--text-faint); font-size:13px;
}

@media (max-width:400px){
  .game-offer-grid{grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px;}
  .game-offer-card{padding:12px; min-height:78px;}
  .game-offer-name{font-size:13px;}
}
@media (max-width:300px){
  .game-offer-grid{grid-template-columns:minmax(0,1fr);}
}

/* =========================================================
   BARABAN v2 — soyasiz, aniq to'xtaydigan
   ========================================================= */
.reel-stage{
  --reel-w:154px;
  position:relative; width:100%; max-width:980px; margin:30px auto 28px;
}
@media (max-width:600px){ .reel-stage{--reel-w:124px;} }

.reel-viewport{ height:190px; }
.reel-viewport,
[data-theme="tun"] .reel-viewport{
  border-radius:24px;
  background:var(--panel-soft);
  border:1px solid var(--border);
  box-shadow:none;
  -webkit-backdrop-filter:none; backdrop-filter:none;
}
@media (max-width:600px){ .reel-viewport{ height:160px; } }
@media (max-height:520px) and (orientation:landscape){ .reel-viewport{ height:130px; } }

.reel-track{ will-change:transform; backface-visibility:hidden; }

/* Kartalar */
.reel-item{
  width:var(--reel-w); gap:7px; padding:0 8px;
  background:none; border:0; box-shadow:none;
  transition:opacity .35s ease;
}
.reel-item::after,
[data-theme="tun"] .reel-item::after{
  top:20%; bottom:20%; background:var(--border);
}
.reel-item-ico{
  width:44px; height:44px;
  background:var(--ri-color, var(--accent));
  border:0; box-shadow:none;
}
.reel-item-ico svg{ filter:none; }
.reel-item.lose .reel-item-ico{ background:var(--text-faint); box-shadow:none; }
.reel-item-qty,
[data-theme="tun"] .reel-item-qty{
  background:var(--panel); border:1px solid var(--border);
  color:var(--text-dim);
  -webkit-backdrop-filter:none; backdrop-filter:none;
}

/* Katta yutuqlar: yaxlit blok emas, alohida yumaloq kartochka */
.reel-item.big{ background:none; border:0; box-shadow:none; }
.reel-item.big::before{
  content:""; position:absolute; inset:12px 6px; border-radius:18px;
  background:var(--amber-soft);
  border:1.5px solid var(--amber);
  pointer-events:none;
}
.reel-item.big::after{ display:none; }
.reel-item.big .reel-item-ico{
  background:var(--ri-color, var(--accent)); border:0; box-shadow:none;
}
.reel-item.big .reel-item-title{ color:var(--text); text-shadow:none; }
.reel-item.big .reel-item-sub{ color:var(--text-dim); }
.reel-item.big .reel-item-qty{
  background:var(--amber); border-color:var(--amber); color:#fff;
}

/* Markazdagi oyna */
.reel-window,
[data-theme="tun"] .reel-window{
  top:6px; bottom:6px; width:var(--reel-w);
  border:2.5px solid var(--accent);
  border-radius:20px;
  background:transparent;
  box-shadow:none;
  transition:border-color .25s ease, background-color .25s ease;
}
.reel-arrow{ filter:none; }
.reel-stage.is-win .reel-window{ border-color:var(--mint); background:var(--mint-soft); }
.reel-stage.is-win .reel-arrow{ color:var(--mint); }
.reel-stage.is-lose .reel-window{ border-color:var(--text-faint); }
.reel-stage.is-lose .reel-arrow{ color:var(--text-faint); }

/* To'xtagandan keyin: g'olib "pop" qiladi, qolganlari xiralashadi */
.reel-stage.is-done .reel-item:not(.is-winner){ opacity:.4; }
.reel-item.is-winner{ animation:reelPop .55s cubic-bezier(.34,1.56,.64,1); }
@keyframes reelPop{
  0%{ transform:scale(.9); }
  60%{ transform:scale(1.07); }
  100%{ transform:scale(1); }
}

/* Barcha soyalarni o'chirish */
#view-wheel .panel,
.wheel-panel,
.wheel-history-panel,
.wheel-history-row,
.wheel-history-row:hover,
.wheel-spin-btn{
  box-shadow:none !important;
}

/* O'yin rasmlari yuklanguncha shimmer effekti */
.game-card img.img-loading{
  color:transparent; /* yuklanmagan rasmning alt yozuvi ko'rinmasin */
  background:linear-gradient(100deg, var(--panel-soft) 30%, var(--border) 50%, var(--panel-soft) 70%);
  background-size:200% 100%;
  animation:gameImgShimmer 1.3s linear infinite;
}
@keyframes gameImgShimmer{
  from{ background-position:200% 0; }
  to{ background-position:-200% 0; }
}
@media (prefers-reduced-motion:reduce){
  .game-card img.img-loading{ animation:none; }
}

/* O'yin donat: Server / dinamik maydonlar */
.game-dyn-field{
  width:100%;
  padding:13px 14px;
  font:inherit;
  font-size:14.5px;
  font-weight:500;
  color:var(--text);
  background:var(--panel-soft);
  border:1px solid var(--border);
  border-radius:var(--radius-sm, 10px);
  outline:none;
  box-shadow:none;
  transition:border-color .2s ease, background-color .2s ease;
}
.game-dyn-field::placeholder{ color:var(--text-faint); }
.game-dyn-field:hover{ border-color:var(--accent-2); }
.game-dyn-field:focus{ border-color:var(--accent); }

/* Faqat <select> uchun: standart strelkani o'chirib, o'zimizniki */
select.game-dyn-field{
  -webkit-appearance:none;
  appearance:none;
  padding-right:42px;
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238D97AC' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:16px;
}
select.game-dyn-field option{
  color:var(--text);
  background:var(--panel);
}

/* Hisobni to'ldirish bloki: border va soyasiz */
#view-topup > div,
#view-topup .panel,
#view-topup .card,
#view-topup .topup-card{
  border:none !important;
  box-shadow:none !important;
}

/* To'lov usullari */
.topup-methods{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:18px; }
.topup-method{
  flex:1; min-width:160px;
  display:flex; flex-direction:column; align-items:flex-start; gap:2px;
  padding:13px 16px; text-align:left;
  background:var(--panel-soft); color:var(--text);
  border:1.5px solid transparent; border-radius:var(--radius-md, 14px);
  cursor:pointer; font:inherit;
  transition:border-color .2s ease, background-color .2s ease;
}
.topup-method b{ font-size:14px; font-weight:700; }
.topup-method span{ font-size:12px; color:var(--text-faint); font-weight:500; }
.topup-method:hover:not(:disabled){ border-color:var(--accent-2); }
.topup-method.active{ border-color:var(--accent); background:var(--accent-soft); }
.topup-method.active span{ color:var(--accent-2); }
.topup-method:disabled{ opacity:.55; cursor:not-allowed; }
.topup-methods-note{ width:100%; font-size:12.5px; color:var(--danger); font-weight:600; }

/* =========================================================
   TO'LOV USULINI TANLASH (qadam 2)
   ========================================================= */
.tm-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; flex-wrap:wrap; margin-bottom:26px;
}
.tm-amount{
  display:flex; align-items:center; gap:10px;
  background:var(--mint-soft); border:1px solid rgba(15,177,133,.25);
  padding:9px 16px; border-radius:var(--radius-pill);
}
.tm-amount span{font-size:12px; color:var(--text-dim); font-weight:600;}
.tm-amount b{font-family:var(--font-display); font-size:16px; color:var(--mint);}

.tm-title{font-size:22px; margin-bottom:6px;}
.tm-sub{font-size:13.5px; color:var(--text-dim); margin-bottom:22px; line-height:1.55;}

.tm-grid{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px;
}
.tm-grid.is-single{grid-template-columns:minmax(0,520px);}

.tm-card{
  position:relative; overflow:hidden; text-align:left;
  display:flex; flex-direction:column; gap:16px;
  min-height:230px; padding:24px;
  background:var(--panel-soft); color:var(--text);
  border:1.5px solid var(--border); border-radius:22px;
  font:inherit; cursor:pointer;
  transition:transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.tm-card::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(120% 90% at 100% 0%, var(--tm-glow, rgba(108,92,231,.14)), transparent 60%);
  opacity:.9;
}
.tm-card:hover:not(.is-maint){
  transform:translateY(-3px); border-color:var(--tm-color, var(--accent));
}
.tm-card:active:not(.is-maint){transform:scale(.99);}
.tm-card > *{position:relative;}

.tm-card--bank{--tm-color:var(--accent); --tm-glow:rgba(108,92,231,.18);}
.tm-card--click{--tm-color:#00AEEF; --tm-glow:rgba(0,174,239,.16);}

.tm-top{display:flex; align-items:center; justify-content:space-between; gap:12px;}
.tm-logo{
  width:60px; height:60px; border-radius:18px; flex:none;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.tm-logo--bank{background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:#fff;}
.tm-logo--bank svg{width:28px; height:28px;}
.tm-logo--click{background:transparent; border:none; padding:0;}
.tm-logo--click img{width:100%; height:100%; object-fit:contain; display:block; border-radius:16px;}

.tm-arrow{
  width:36px; height:36px; border-radius:50%; flex:none;
  display:flex; align-items:center; justify-content:center;
  background:var(--panel); border:1px solid var(--border); color:var(--text-dim);
  transition:all .2s ease;
}
.tm-arrow svg{width:16px; height:16px;}
.tm-card:hover:not(.is-maint) .tm-arrow{
  background:var(--tm-color); border-color:transparent; color:#fff; transform:translateX(3px);
}

.tm-card h4{font-size:19px; font-family:var(--font-display);}
.tm-card p{font-size:13.5px; color:var(--text-dim); line-height:1.55; margin-top:-8px;}

.tm-tags{display:flex; flex-wrap:wrap; gap:8px; margin-top:auto;}
.tm-tag{
  font-size:11.5px; font-weight:700; padding:6px 12px; border-radius:var(--radius-pill);
  background:var(--panel); border:1px solid var(--border); color:var(--text-dim);
}
.tm-tag--mint{background:var(--mint-soft); border-color:rgba(15,177,133,.25); color:var(--mint);}
.tm-tag--cash{background:rgba(0,174,239,.12); border-color:rgba(0,174,239,.3); color:#00AEEF;}

.tm-card.is-maint{cursor:not-allowed;}
.tm-card.is-maint .tm-logo,
.tm-card.is-maint h4,
.tm-card.is-maint p,
.tm-card.is-maint .tm-tags{opacity:.55; filter:grayscale(.4);}
.tm-maint{
  display:inline-flex; align-items:center; gap:7px;
  font-size:11.5px; font-weight:800; letter-spacing:.03em;
  padding:6px 12px; border-radius:var(--radius-pill);
  background:var(--amber-soft); color:var(--amber);
  border:1px solid rgba(217,138,20,.3);
}
.tm-maint::before{
  content:""; width:7px; height:7px; border-radius:50%; background:var(--amber);
  animation:orderStatusPulse 1.6s ease-out infinite;
}

.tm-note{
  margin-top:18px; font-size:12.5px; line-height:1.55; color:var(--text-dim);
  background:var(--accent-soft); border:1px solid rgba(108,92,231,.25);
  padding:12px 14px; border-radius:var(--radius-md);
}

@media (max-width:760px){
  .tm-grid, .tm-grid.is-single{grid-template-columns:1fr;}
  .tm-card{min-height:0; padding:20px;}
  .tm-title{font-size:19px;}
}

.tm-card--admin{--tm-color:#229ED9; --tm-glow:rgba(34,158,217,.16); text-decoration:none;}
.tm-logo--admin{background:linear-gradient(135deg,#2AABEE,#229ED9); color:#fff;}
.tm-logo--admin svg{width:28px; height:28px;}
.tm-tag--tg{background:rgba(34,158,217,.12); border-color:rgba(34,158,217,.3); color:#229ED9;}

/* =========================================================
   CLICK CHEKI — qisqa, minimal
   ========================================================= */
/* CLICK — keng va tartibli to‘lov bloki */
#topupStepClick{
  min-width:0;
}

#topupStepClick .tm-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:24px;
}

#topupStepClick .ck-wrap{
  width:100%;
  max-width:none;
  margin:0;
}

#topupStepClick .ck-receipt{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  width:100%;
  padding:0;
  overflow:hidden;
  box-sizing:border-box;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:none;
}

#topupStepClick .ck-details,
#topupStepClick .ck-summary{
  min-width:0;
  padding:32px;
}

#topupStepClick .ck-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:14px;
  margin:0;
  padding:0;
  border:0;
}

#topupStepClick .ck-head-ico{
  width:48px;
  height:48px;
  flex:none;
  border-radius:14px;
  object-fit:contain;
}

#topupStepClick .ck-eyebrow{
  display:block;
  margin-bottom:5px;
  color:var(--text-dim);
  font-size:10px;
  font-weight:700;
  letter-spacing:.1em;
}

#topupStepClick .ck-brand{
  margin:0;
  color:var(--text);
  font-family:var(--font-display);
  font-size:22px;
  line-height:1.3;
}

#topupStepClick .ck-description{
  margin:18px 0 24px;
  color:var(--text-dim);
  font-size:14px;
  line-height:1.7;
}

#topupStepClick .ck-rows{
  display:flex;
  flex-direction:column;
  gap:0;
  padding:0;
}

#topupStepClick .ck-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:20px;
  padding:15px 0;
  border-bottom:1px solid var(--border-soft);
  font-size:14px;
  line-height:1.5;
}

#topupStepClick .ck-row:last-child{
  border-bottom:0;
}

#topupStepClick .ck-label{
  flex:1;
  min-width:0;
  color:var(--text-dim);
}

#topupStepClick .ck-value{
  flex:1;
  min-width:0;
  color:var(--text);
  font-weight:600;
  text-align:right;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}

#topupStepClick .ck-summary{
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:var(--panel-soft);
  border-left:1px solid var(--border);
}

#topupStepClick .ck-summary-label{
  color:var(--text-dim);
  font-size:14px;
  font-weight:500;
}

#topupStepClick .ck-total{
  display:block;
  margin:12px 0 0;
  padding:0;
  border:0;
}

#topupStepClick .ck-total b{
  display:block;
  color:var(--text);
  font-family:var(--font-display);
  font-size:clamp(26px,2.6vw,40px);
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.04em;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}

#topupStepClick .ck-summary-description{
  margin:16px 0 28px;
  color:var(--text-dim);
  font-size:13px;
  line-height:1.8;
}

#topupStepClick .ck-pay{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  min-height:56px;
  padding:14px 18px;
  border-radius:14px;
  background:var(--accent);
  color:#fff;
  font-size:15px;
  font-weight:600;
  box-shadow:none;
  transition:background .18s ease;
}

#topupStepClick .ck-pay:hover:not(:disabled){
  background:var(--accent-2);
}

#topupStepClick .ck-pay:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:4px;
}

#topupStepClick .ck-pay:disabled{
  opacity:.6;
  cursor:wait;
}

#topupStepClick .ck-pay-ico{
  width:26px;
  height:26px;
  flex:none;
  border-radius:8px;
  object-fit:contain;
}

#topupStepClick .ck-pay svg{
  width:18px;
  height:18px;
  flex:none;
}

#topupStepClick .ck-footnote{
  display:block;
  margin-top:14px;
  color:var(--text-dim);
  font-size:12px;
  line-height:1.7;
  text-align:center;
}

@media(max-width:900px){
  #topupStepClick .ck-receipt{
    grid-template-columns:minmax(0,1fr);
  }

  #topupStepClick .ck-summary{
    border-left:0;
    border-top:1px solid var(--border);
  }
}

@media(max-width:480px){
  #topupStepClick .ck-details,
  #topupStepClick .ck-summary{
    padding:22px 18px;
  }

  #topupStepClick .ck-brand{
    font-size:19px;
  }

  #topupStepClick .ck-row{
    gap:12px;
    font-size:13px;
  }

  #topupStepClick .topup-timer{
    gap:6px;
    padding:10px;
    font-size:12px;
  }
}


/* Kutilmoqda — sariq */
#topupHistoryList .status-badge.pending,
#topupHistoryList .status-badge.processing,
#topupHistoryList .status-badge.prepared{
  background:#fff3cd;
  color:#855400;
  border:1px solid #f4d77c;
}

/* Bekor qilindi — qizil */
#topupHistoryList .status-badge.canceled,
#topupHistoryList .status-badge.cancelled,
#topupHistoryList .status-badge.expired,
#topupHistoryList .status-badge.failed{
  background:#fee2e2;
  color:#b91c1c;
  border:1px solid #fecaca;
}

/* Tasdiqlandi — yashil */
#topupHistoryList .status-badge.confirmed{
  background:#15803d;
  color:#fff;
  border:1px solid #15803d;
}

/* Faqat bajarilgan Click qatori — ko‘k */
#topupHistoryList .history-item.history-item--click-paid{
  background:#0066ff;
  background-image:none;
  border:1px solid #0066ff;
  border-radius:18px;
  box-shadow:0 8px 24px -18px rgba(0,102,255,.7);
}

#topupHistoryList .history-item--click-paid .history-item-title,
#topupHistoryList .history-item--click-paid .history-item-price{
  color:#fff;
}

#topupHistoryList .history-item--click-paid .history-item-sub{
  color:#e6efff;
}

#topupHistoryList .history-item--click-paid .status-badge.confirmed{
  background:#15803d;
  color:#fff;
  border-color:rgba(255,255,255,.4);
}

@media(hover:hover){
  #topupHistoryList .history-item.history-item--click-paid:hover{
    background:#005ce6;
    border-color:#005ce6;
  }
}