/* =====================================================================
   SUPPORT TUGMASI + KARUSEL ANIMATSIYALARI
   ===================================================================== */

/* ---------- Support tugmasi ---------- */
.support-toggle{ position:relative; }
.support-toggle button{
  position:relative;
  color:var(--primary);
  transition:background .25s ease, transform .2s cubic-bezier(.34,1.56,.64,1), color .25s ease;
}
.support-toggle button svg{
  transition:transform .3s cubic-bezier(.34,1.56,.64,1);
  transform-origin:50% 60%;
}

/* Yashil "online" nuqta (pulsatsiya bilan) */
.support-toggle button::after{
  content:""; position:absolute; top:7px; right:7px;
  width:8px; height:8px; border-radius:50%;
  background:var(--mint);
  border:2px solid var(--card);
  box-sizing:content-box;
  animation:supportDotPulse 2.2s ease-out infinite;
}
@keyframes supportDotPulse{
  0%{ box-shadow:0 0 0 0 rgba(18,184,134,.55); }
  70%{ box-shadow:0 0 0 7px rgba(18,184,134,0); }
  100%{ box-shadow:0 0 0 0 rgba(18,184,134,0); }
}

.support-toggle button:active{ transform:scale(.88); }

/* Kursor olib borilganda (kompyuter) */
@media (hover:hover){
  .support-toggle button:hover{
    background:var(--primary-dim);
    transform:translateY(-1px);
  }
  .support-toggle button:hover svg{
    animation:supportWiggle .7s ease-in-out;
  }
}
@keyframes supportWiggle{
  0%,100%{ transform:rotate(0) scale(1); }
  20%{ transform:rotate(-14deg) scale(1.12); }
  40%{ transform:rotate(12deg) scale(1.12); }
  60%{ transform:rotate(-8deg) scale(1.08); }
  80%{ transform:rotate(5deg) scale(1.04); }
}

/* Sahifa ochilganda tugmalar ketma-ket chiroyli chiqadi */
.header-actions .theme-toggle{
  animation:headerBtnIn .5s cubic-bezier(.22,.9,.32,1) backwards;
}
.header-actions .theme-toggle:nth-child(1){ animation-delay:.05s; }
.header-actions .theme-toggle:nth-child(2){ animation-delay:.12s; }
.header-actions .theme-toggle:nth-child(3){ animation-delay:.19s; }
@keyframes headerBtnIn{
  from{ opacity:0; transform:translateY(-10px) scale(.85); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}

/* ---------- Karusel slaydlari: yengil animatsiya ---------- */
.ob-carousel{ padding:8px 0; margin:-8px 0; }
.ob-slide{
  transition:transform .3s cubic-bezier(.22,.9,.32,1), filter .3s ease;
}
.ob-slide .order-balance-card{
  transition:box-shadow .3s ease, border-color .3s ease;
}
.ob-slide:active{ transform:scale(.985); }

/* Slayd ichidagi tugma animatsiyalari */
.order-topup-btn{
  transition:transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.order-topup-btn svg{ transition:transform .3s cubic-bezier(.34,1.56,.64,1); }

/* Pagination nuqtalar: silliq o'tish */
.ob-dot{ transition:width .35s cubic-bezier(.22,.9,.32,1), background .25s ease, transform .2s ease; }
.ob-dot:hover{ transform:scale(1.4); }

/* ---------- Faqat KOMPYUTER (860px+) ---------- */
@media (min-width:860px){

  .header-actions{ gap:12px; }

  /* Tugma ustida "Yordam" yozuvi (tooltip) */
  .support-toggle button::before{
    content:attr(data-tip);
    position:absolute; top:calc(100% + 14px); left:50%;
    transform:translate(-50%,-6px) scale(.9);
    background:var(--text); color:var(--bg);
    font-size:12.5px; font-weight:700; letter-spacing:.01em;
    padding:7px 12px; border-radius:10px; white-space:nowrap;
    opacity:0; pointer-events:none;
    transition:opacity .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
    z-index:20;
  }
  .support-toggle button:hover::before{
    opacity:1; transform:translate(-50%,0) scale(1);
  }
  .support-toggle{
    transition:transform .25s ease, box-shadow .25s ease;
  }
  .support-toggle:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 26px -12px rgba(109,93,246,.55);
  }
  .header-actions .theme-toggle:not(.support-toggle):hover{
    transform:translateY(-2px);
    transition:transform .25s ease;
  }

  /* Karusel kartalari ko'tarilib turadi */
  .ob-slide:hover{ transform:translateY(-5px); }
  .ob-slide:hover .order-balance-card{
    box-shadow:0 22px 40px -18px rgba(40,30,120,.55);
    border-color:rgba(255,255,255,.45);
  }
  .order-topup-btn:hover svg{ transform:rotate(90deg) scale(1.15); }
  .ai-slide-promo .order-topup-btn:hover svg,
  .premium-promo .order-topup-btn:hover svg,
  .promo-random-a .order-topup-btn:hover svg,
  .promo-random-b .order-topup-btn:hover svg{ transform:translateX(3px) scale(1.15) rotate(0); }
}
/* ===========================================================
   Balans va headerning BAZAVIY ko'rinishi (mobil + desktop)
   =========================================================== */
.wallet-btn{
  display:flex;align-items:center;justify-content:center;gap:7px;flex:none;
  height:46px;padding:0 12px;border-radius:999px;
  background:var(--card);border:1px solid var(--border);
  color:var(--text);font-weight:800;font-size:12.5px;
  cursor:pointer;white-space:nowrap;box-shadow:var(--shadow-card);
  transition:transform .12s ease,border-color .2s ease;
}
.wallet-btn svg{width:18px;height:18px;color:var(--primary);flex:none;}
.wallet-btn:active{transform:scale(.94);}
.wallet-btn:hover{border-color:var(--primary);}
.wallet-currency{color:var(--text-dim);font-size:11px;font-weight:600;}
.identity,.identity-text{min-width:0;}
.identity-text .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:75px;}
@media(min-width:430px) and (max-width:859px){
  .identity-text .name{max-width:120px;}
}
@media(max-width:859px){
  .header-actions{gap:6px;}
  .header-actions .theme-toggle{padding:3px;}
  .header-actions .theme-toggle button{width:36px;height:36px;}
}

/* ===========================================================
   SENYOR DESKTOP — YAGONA MOSLASHUVCHAN DIZAYN
   Desktop navigatsiya tepada; mobil navigatsiya pastda qoladi.
   =========================================================== */
.header-theme-toggle{display:none;}

@media (min-width:860px){
  :root{--sb:0px;}

  html body #app{
    width:100% !important;
    max-width:1680px !important;
    margin:0 auto !important;
    padding:0 clamp(24px,4.4vw,72px) 80px !important;
    min-height:100vh;
    overflow:visible !important;
  }
  html body.hide-hero .hero{display:block !important;}
  html body.hide-hero #view-account,
  html body.hide-hero #view-history,
  html body.hide-hero #view-transactions{padding-top:0 !important;}

  /* Profil va uning yonida barcha boshqaruv elementlari. */
  html body .hero{
    background:none !important;
    border-radius:0 !important;
    overflow:visible !important;
    padding:18px 110px 12px 0 !important;
    min-height:96px !important;
  }
  html body .hero::before{display:none !important;}
  html body .topbar{min-height:60px;}
  html body .avatar{width:56px !important;height:56px !important;}
  html body .identity-text .name{
    max-width:210px !important;font-size:19px !important;font-weight:800 !important;
  }
  html body .identity-text .status{font-size:14px !important;}
  html body .header-actions{
    display:flex !important;flex:none !important;align-items:center !important;
    gap:10px !important;padding:0 !important;
  }
  html body .header-actions .theme-toggle{
    display:flex !important;padding:4px !important;
    background:var(--card) !important;
    border:1px solid var(--border) !important;
    border-radius:999px !important;
    box-shadow:0 4px 12px rgba(20,20,60,.05) !important;
  }
  html body .header-actions .theme-toggle button{
    width:40px !important;height:40px !important;
    display:flex;align-items:center;justify-content:center;
  }
  html body .header-actions .theme-toggle svg{width:19px;height:19px;}
  html body .header-actions .header-theme-toggle{
    display:flex !important;gap:2px !important;
  }
  html body .header-theme-toggle button{color:var(--text-dim) !important;}
  html body .header-theme-toggle button.active{
    color:var(--primary) !important;
    background:var(--primary-dim) !important;
  }
  html body #btnHeaderSearch{display:none !important;}
  html body .header-actions .theme-toggle:has(#btnHeaderSearch){display:none !important;}
  html body .wallet-btn{
    display:flex !important;align-items:center !important;
    gap:8px !important;height:48px !important;
    padding:0 15px !important;font-size:15px !important;
    border-radius:999px !important;white-space:nowrap;
  }
  html body .wallet-btn svg{width:19px !important;height:19px !important;}
  html body .wallet-currency{font-size:13px;color:var(--text-dim);font-weight:600;}
  html body .wallet-btn::after{
    content:"";width:7px;height:7px;margin:0 1px 4px 3px;
    border-right:1.8px solid var(--text-dim);
    border-bottom:1.8px solid var(--text-dim);
    transform:rotate(45deg);
  }

  /* Tab bar tepada: butun sahifa bo'yicha markazlashgan. */
  html body .tabbar{
    position:absolute !important;
    top:20px !important;bottom:auto !important;
    left:50% !important;right:auto !important;
    transform:translateX(-50%) !important;
    width:max-content !important;height:auto !important;
    max-width:calc(100vw - 32px) !important;
    display:flex !important;flex-direction:row !important;
    justify-content:center !important;
    padding:0 !important;
    background:transparent !important;border:none !important;
    pointer-events:none !important;z-index:50 !important;
  }
  html body .tabbar::before{content:none !important;display:none !important;}
  html body .tabbar .tabbar-inner{
    display:flex !important;flex-direction:row !important;
    width:auto !important;max-width:100% !important;
    gap:4px !important;padding:5px !important;
    background:var(--card) !important;
    border:1px solid var(--border) !important;
    border-radius:999px !important;
    box-shadow:0 8px 24px -10px rgba(30,30,90,.23) !important;
    pointer-events:auto !important;
  }
  html body .tabbar .tab{
    flex:none !important;
    display:flex !important;flex-direction:row !important;
    align-items:center !important;justify-content:center !important;
    gap:9px !important;padding:13px 17px !important;
    background:transparent !important;
    color:var(--text-dim) !important;
    border-radius:999px !important;
  }
  html body .tabbar .tab svg{
    box-sizing:border-box !important;
    width:20px !important;height:20px !important;
    padding:0 !important;border-radius:0 !important;background:none !important;
  }
  html body .tabbar .tab span{font-size:14px !important;font-weight:700 !important;}
  html body .tabbar .tab:hover{background:var(--card-soft) !important;}
  html body .tabbar .tab.active,
  html[data-theme="tun"] body .tabbar .tab.active{
    background:var(--primary) !important;color:#fff !important;
    box-shadow:0 6px 14px -6px rgba(100,80,230,.45) !important;
  }
  html body .tabbar .tab.active svg,
  html body .tabbar .tab.active span,
  html[data-theme="tun"] body .tabbar .tab.active svg,
  html[data-theme="tun"] body .tabbar .tab.active span{
    color:#fff !important;background:none !important;
  }

  /* Reklama kartalari: ixcham uch ustun, avtomatik karuselsiz. */
  html body #view-order > .section:first-child{padding-top:10px !important;}
  html body .ob-carousel{padding:0 !important;margin:0 !important;overflow:hidden;}
  html body .ob-carousel-track{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:12px !important;
    min-height:0 !important;
    height:auto !important;
    transform:none !important;
    transition:none !important;
    cursor:auto !important;
  }
  html body .ob-slide{
    display:flex !important;flex:none !important;
    width:auto !important;min-width:0 !important;
    height:180px !important;min-height:0 !important;
    margin:0 !important;transform:none;
  }
  html body .ob-slide:nth-child(n+4){display:none !important;}
  html body .ob-carousel-track .order-balance-card{
    flex:1;width:100% !important;height:180px !important;
    min-height:180px !important;
    padding:20px 22px !important;
    border-radius:22px !important;
    display:flex !important;flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:space-between !important;
  }
  html body .order-balance-lbl{font-size:14px !important;line-height:1.3 !important;}
  html body .order-balance-val{
    font-size:clamp(23px,2.1vw,31px) !important;
    line-height:1.18 !important;margin-top:6px !important;
    white-space:normal !important;
  }
  html body #aiSlidePromoCard .order-balance-val{
    font-size:clamp(21px,2vw,29px) !important;
  }
  html body .order-balance-val span{font-size:13px !important;}
  html body .order-topup-btn{
    font-size:13px !important;padding:10px 15px !important;
    border-radius:12px !important;
  }
  html body .ob-carousel-dots{display:none !important;}

  /* Qidiruv va filtr bir qatorda, tor ekranda moslashadi. */
  html body #view-order .section{padding:26px 0 0 !important;}
  html body #view-order .section:has(#searchBoxSection){
    display:flex !important;align-items:center !important;
    gap:14px !important;flex-wrap:wrap !important;
  }
  html body #searchBoxSection{
    flex:1 1 340px !important;
    max-height:none !important;opacity:1 !important;
    transform:none !important;overflow:visible !important;
  }
  html body #searchBoxSection .search-box{max-width:none !important;}
  html body #searchBoxSection input{padding:16px 20px 16px 50px !important;font-size:15px !important;}
  html body #mainFilterTabs{
    flex:0 1 auto !important;
    display:flex !important;gap:8px !important;
    margin-top:0 !important;padding:0 !important;
    flex-wrap:wrap !important;
  }
  html body #mainFilterTabs .filter-pill{
    font-size:14px !important;font-weight:700 !important;
    padding:14px 18px !important;
  }
  html body .section-head h2{font-size:23px !important;}
  html body #platformSection::before,
  html body #gamedonateSection::before,
  html body #premiumStarsSection::before{
    display:block !important;
    font-family:var(--font-display);font-size:23px;
    font-weight:800;line-height:1.2;margin-bottom:18px;color:var(--text);
  }
  html body #platformSection::before{content:"Ijtimoiy tarmoqlar";}
  html body #gamedonateSection::before{content:"O'yin donat";}
  html body #premiumStarsSection::before{content:"Telegram Premium va Stars";}

  /* Bir xil bloklar: media kartalari. */
  html body .chip-row,
  html body .chip-row.two-col{
    display:grid !important;
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    gap:16px !important;
  }
  html body .chip{
    background:var(--card) !important;border:1px solid var(--border) !important;
    border-radius:20px !important;padding:17px 8px !important;
    gap:10px !important;
  }
  html body .chip-icon-wrap{
    width:min(90px,100%) !important;height:90px !important;
    aspect-ratio:auto !important;margin:0 auto;
    border:0 !important;background:transparent !important;
    border-radius:22px !important;
  }
  html body .chip-icon-wrap img{object-fit:contain !important;}
  html body .chip-name{font-size:15px !important;}

  /* O'yinlar: rasmlar 2:1, nomlari pastdagi gradient ustida. */
  html body #gdGameChips,
  html body .gd-game-grid{
    display:grid !important;
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    gap:18px !important;
  }
  html body .gd-game-card{
    display:block !important;position:relative !important;
    border-radius:19px !important;overflow:hidden !important;
    isolation:isolate;min-width:0;
    transition:transform .2s ease,box-shadow .2s ease;
  }
  html body .gd-game-card:hover{transform:translateY(-4px);box-shadow:0 18px 30px -14px rgba(0,0,0,.32);}
  html body .gd-game-icon-wrap{
    width:100% !important;aspect-ratio:2/1 !important;
    border:0 !important;border-radius:19px !important;
  }
  html body .gd-game-icon-wrap img{object-fit:cover !important;}
  html body .gd-game-card::after{
    content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
    border-radius:19px;background:linear-gradient(to top,rgba(8,10,25,.78),rgba(8,10,25,.12) 60%,transparent);
  }
  html body .gd-game-name{
    position:absolute !important;left:14px !important;right:10px !important;bottom:12px !important;
    z-index:2 !important;color:#fff !important;text-align:left !important;
    font-size:clamp(12px,1.15vw,17px) !important;line-height:1.2 !important;
    font-weight:800 !important;
  }
  /* Muhim: gridning tagida, o'rtada; sarlavha yonida EMAS. */
  html body #btnGdLoadMore{
    position:static !important;top:auto !important;right:auto !important;
    display:flex;align-items:center;justify-content:center;
    width:max-content !important;min-width:166px;
    max-width:100%;padding:12px 26px !important;
    margin:26px auto 10px !important;
    border-radius:999px !important;font-size:14px !important;
  }
  html body #btnGdLoadMore[style*="display:none"],
  html body #btnGdLoadMore[style*="display: none"]{display:none !important;}

  html body .reco-row{
    display:grid !important;overflow:visible !important;
    grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px !important;
  }
  html body .reco-card{width:auto !important;border-radius:18px !important;}
  html body .list{
    display:grid !important;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:14px !important;
  }

  html body .acc-dashboard{
    max-width:1180px;margin:0 auto;
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;
  }
  html body .acc-header{grid-column:1/-1;}
  html body .acc-balance-box{grid-column:1;}
  html body .acc-actions{grid-column:2;align-self:center;}
  html body .acc-stats-grid{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));}
  html body .acc-settings-card{
    grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:28px;
  }
  html body .acc-settings-divider{display:none;}
  html body #toast{left:50% !important;bottom:30px !important;}
  html body .active-topup-float{left:0 !important;bottom:20px !important;}
}

/* 860–1359 px (planshet / kichik noutbuk): tab bar HEADERda, tepada, ixcham */
@media (min-width:860px) and (max-width:1359px){
  html body .hero{padding-right:20px !important;}
  html body .identity-text .name{max-width:110px !important;}
  /* Mavzu tugmasi joy egallamasligi uchun yashiriladi (Hisob > Sozlamalarda bor) */
  html body .header-actions .header-theme-toggle{display:none !important;}

  /* Tab bar ismning yonida, tepada */
  html body .tabbar{
    top:20px !important;
    left:calc(clamp(24px,4.4vw,72px) + 205px) !important;
    transform:none !important;
  }
  /* Ixcham: faqat faol tabda yozuv, qolganlarda ikonka */
  html body .tabbar .tab{padding:13px 14px !important;gap:0 !important;}
  html body .tabbar .tab span{display:none !important;}
  html body .tabbar .tab.active{padding:13px 17px !important;gap:8px !important;}
  html body .tabbar .tab.active span{display:inline !important;}

  html body #gdGameChips,
  html body .gd-game-grid,
  html body .chip-row,
  html body .chip-row.two-col{grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
}

/* 1040–1359 px: joy yetarli — tab bar markazda */
@media (min-width:1040px) and (max-width:1359px){
  html body .tabbar{
    left:50% !important;
    transform:translateX(-50%) !important;
  }
}

/* =========================================================
   HISOB — DESKTOP QAYTA DIZAYN (860px+)
   12 ustunli grid: profil / balans + amallar / statistika /
   ikkita banner / sozlamalar. Barcha bloklar bir xil radius va balandlikda.
   ========================================================= */
@media (min-width:860px){
  html body #view-account .section{padding:28px 0 0 !important;}

  html body .acc-dashboard{
    max-width:1240px;margin:0 auto;
    display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
    gap:16px;align-items:stretch;
  }
  html body .acc-header,
  html body .acc-balance-box,
  html body .acc-actions,
  html body .acc-stat-card,
  html body .acc-settings-card{border-radius:22px;}

  /* 1-qator: Profil kartasi */
  html body .acc-header{
    grid-column:1/-1;margin:0 !important;padding:20px 24px;gap:18px;
    background:var(--card);border:1px solid var(--border);
  }
  html body .acc-avatar{width:68px;height:68px;font-size:26px;}
  html body .acc-name{font-size:24px;}
  html body .acc-sub-row{font-size:13.5px;}

  /* 2-qator: Balans (chap) + Amallar (o'ng), bir xil balandlikda */
  html body .acc-balance-box{
    grid-column:1 / span 7;padding:28px 32px;
    display:flex;flex-direction:column;justify-content:center;
    background:linear-gradient(135deg,var(--primary-dim),var(--card) 70%);
  }
  html body .acc-balance-val{font-size:56px;margin-top:8px;}
  html body .acc-balance-val span{font-size:20px;}

  html body .acc-actions{
    grid-column:8 / span 5;align-self:stretch;
    display:grid;grid-template-columns:1fr 1fr;gap:12px;align-content:center;
    padding:22px;background:var(--card);border:1px solid var(--border);
  }
  html body .acc-actions #btnTopup{
    grid-column:1/-1;height:64px;padding:0;border-radius:16px;font-size:16px;
  }
  html body .acc-actions .acc-btn-icon{
    width:auto;height:54px;border-radius:16px;gap:8px;font-size:14px;
  }
  html body #btnRefresh::after{content:"Yangilash";}
  html body #btnSupport::after{content:"Operator";}

  /* 3-qator: 4 ta statistika kartasi */
  html body .acc-stats-grid{
    grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;
  }
  html body .acc-stat-card{padding:18px 20px;gap:14px;}
  html body .acc-stat-icon{width:44px;height:44px;border-radius:14px;}
  html body .acc-stat-lbl{font-size:12px;}
  html body .acc-stat-val{font-size:15px;}
  html body .acc-stat-card.clickable{transition:transform .2s ease,border-color .2s ease;}
  html body .acc-stat-card.clickable:hover{transform:translateY(-3px);border-color:var(--primary);}

  /* 4-qator: ikkita banner yonma-yon, teng */
  html body #btnOpenBaraban{
    grid-column:1 / span 6 !important;margin:0 !important;padding:22px 24px !important;
  }
  html body #btnReferralShare{
    grid-column:7 / span 6 !important;margin:0 !important;padding:22px 24px !important;
  }

  /* 5-qator: Sozlamalar — o'rtada vertikal chiziq bilan ikkiga bo'lingan */
  html body .acc-settings-card{
    grid-column:1/-1;margin:0;padding:12px 8px;
    display:grid;grid-template-columns:1fr 1px 1fr;align-items:center;gap:0;
  }
  html body .acc-settings-divider{
    display:block;width:1px;height:36px;margin:0;background:var(--border);
  }
  html body .acc-settings-row{padding:8px 24px;}
}

/* Kichik noutbuk / planshet (860–1099px): bloklar bir ustunga tushadi */
@media (min-width:860px) and (max-width:1099px){
  html body .acc-balance-box,
  html body .acc-actions,
  html body #btnOpenBaraban,
  html body #btnReferralShare{grid-column:1/-1 !important;}
  html body .acc-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (min-width:860px){
  html body #steamSection::before{
    content:"Steam Top-Up";display:block;
    font-family:var(--font-display);font-size:23px;font-weight:800;
    line-height:1.2;margin-bottom:18px;color:var(--text);
  }
}

/* ---------------- O'YIN DONAT: MAHSULOTLAR GRID / RO'YXAT ---------------- */
.gd-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin:4px 0 12px;
}
.gd-toolbar .gd-count{font-size:12.5px; color:var(--text-dim); font-weight:600;}
.gd-view-toggle{
  width:40px; height:40px; border-radius:12px; flex:none;
  border:1px solid var(--border); background:var(--card); color:var(--primary);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition:transform .12s ease, background .2s ease;
}
.gd-view-toggle:active{transform:scale(.9);}
.gd-view-toggle svg{width:18px; height:18px;}

.gd-offers{display:grid; gap:10px;}
.gd-offers.grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.gd-offers.rows{grid-template-columns:1fr;}

.gd-offer{
  display:flex; flex-direction:column; align-items:flex-start; gap:8px;
  width:100%; padding:14px; text-align:left; font-family:inherit; color:var(--text);
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius-md); cursor:pointer;
  transition:border-color .2s ease, transform .15s ease;
  animation:listItemIn .38s cubic-bezier(.22,.9,.32,1) backwards;
}
.gd-offer:active{transform:scale(.97);}
.gd-offer:hover{border-color:var(--primary);}
.gd-offer .ic{
  width:36px; height:36px; border-radius:11px; font-size:18px;
  display:flex; align-items:center; justify-content:center;
  background:var(--primary-dim);
}
.gd-offer .nm{font-weight:700; font-size:13.5px; line-height:1.3; flex:1; word-break:break-word;}
.gd-offer .pr{
  font-weight:800; font-size:13px; color:var(--primary-ink);
  background:var(--primary-dim); padding:5px 9px; border-radius:var(--radius-sm);
}

/* Bir qatorli (ro'yxat) ko'rinish */
.gd-offers.rows .gd-offer{flex-direction:row; align-items:center; gap:12px;}

/* Kompyuter: ekranga sig'gancha 3-4-5 ustun, tugma kerak emas */
@media (min-width:860px){
  .gd-view-toggle{display:none;}
  .gd-offers.grid,
  .gd-offers.rows{grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:14px;}
  .gd-offers.rows .gd-offer{flex-direction:column; align-items:flex-start;}
}
