/* anto — final project */
/* ==========================================================================
   ANTO Masterpiece UI, 3D Motion & Adaptive Responsive Engine
   Fluid 320px -> 4K · GPU-Only 3D Choreography · Hardware-Tiered Zero-Lag
   ========================================================================== */

:root {
  --anto-ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --anto-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --anto-3d-persp: 1200px;
  --anto-nav-mobile-h: 102px;
  --anto-bnav-mobile-h: 74px;
}

/* 1. GLOBAL OVERFLOW & SAFE-SCROLL GUARD */
html {
  overflow-x: clip !important;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body.premium-store,
body.auth-standalone {
  overflow-x: clip !important;
  max-width: 100vw;
}

/* Pause duplicate background DOM engines when video scene is active or on budget hardware */
html[data-video-scene-active="1"] #cssAnimeWorld,
html[data-video-scene-active="1"] #moneyRain,
html[data-video-scene-active="1"] .scene36,
html[data-hw-tier="lite"] #cssAnimeWorld,
html[data-hw-tier="lite"] #moneyRain,
html[data-hw-tier="lite"] .scene36,
html[data-hw-tier="balanced"] #cssAnimeWorld {
  display: none !important;
  animation: none !important;
}

/* Fix budget-phone GPU killer: replace expensive backdrop-filter blur with crisp high-craft surfaces on lite tier */
html[data-hw-tier="lite"] .navbar,
html[data-hw-tier="lite"] .bottom-nav,
html[data-hw-tier="lite"] .modal-bg,
html[data-hw-tier="lite"] .modal-box,
html[data-hw-tier="lite"] .cat-filter-wrap {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html[data-hw-tier="lite"] body.premium-store .navbar,
html[data-hw-tier="lite"] body.premium-store .bottom-nav {
  background: var(--card, #ffffff) !important;
}

/* ==========================================================================
   2. DESKTOP & MOBILE NAVBAR — ZERO OVERLAP FROM 320px TO 4K
   ========================================================================== */

/* Fix invisible user icon on light theme desktop & mobile (#btnUser had white stroke on light pink) */
html body.premium-store .navbar #btnUser,
html body.premium-store .navbar .btn-nav-user {
  color: var(--text) !important;
}
html body.premium-store .navbar #btnUser > svg,
html body.premium-store .navbar .btn-nav-user > svg {
  stroke: currentColor !important;
  color: var(--red) !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
}
html body.premium-store .navbar #btnUser .vb42 svg,
html body.premium-store .navbar #btnUser .vb44-premium svg {
  stroke: none !important;
  fill: currentColor !important;
  color: inherit !important;
}

/* Ensure Bengali Taka & currency symbols inside Wallet Badge always use Noto Sans Bengali */
html body.premium-store #navWalletBadge,
html body.premium-store #navWalletBadge *,
html body.premium-store #navWalletAmount {
  font-family: var(--anto-font-sans) !important;
  font-variant-numeric: tabular-nums;
}

/* Desktop Navbar 3D Polish */
@media (min-width: 601px) {
  html body.premium-store .navbar .nav-links a,
  html body.premium-store .navbar .nav-links button {
    transition: transform 0.22s var(--anto-ease-spring), color 0.18s ease, background 0.18s ease !important;
  }
  html body.premium-store .navbar .nav-links a:hover,
  html body.premium-store .navbar .nav-links button:hover {
    transform: translate3d(0, -2px, 0) !important;
  }
}

/* Mobile Navbar (320px – 600px): Clean, Zero-Collision 12-Column 2-Row Grid */
@media (max-width: 600px) {
  html body.premium-store .navbar {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    grid-template-rows: 42px 38px !important;
    align-items: center !important;
    gap: 6px 5px !important;
    height: auto !important;
    min-height: 96px !important;
    padding: calc(7px + env(safe-area-inset-top, 0px)) 8px 8px !important;
    box-sizing: border-box !important;
  }

  html body.premium-store .navbar .navbar-right {
    display: contents !important;
  }

  /* Row 1 Left: Brand */
  html body.premium-store .navbar .navbar-brand {
    grid-column: 1 / span 7 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: hidden !important;
  }
  html body.premium-store .navbar .navbar-logo {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 11px !important;
    flex-shrink: 0 !important;
  }
  html body.premium-store .navbar .navbar-title {
    font-size: 14px !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Row 1 Right: Sign In / Profile Pill */
  html body.premium-store .navbar #btnUser,
  html body.premium-store .navbar .btn-nav-user {
    grid-column: 8 / -1 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    width: auto !important;
    min-width: 92px !important;
    max-width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 11px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    overflow: hidden !important;
  }

  /* Row 2 Default (Signed Out): 4 Equal Fluid Controls (3 cols each = 12 cols) */
  html body.premium-store:not(.anto-signed-in):not(.r70-signed-in):not(.r71-signed-in) .navbar #notifBellBtn { grid-column: 1 / span 3 !important; grid-row: 2 !important; }
  html body.premium-store:not(.anto-signed-in):not(.r70-signed-in):not(.r71-signed-in) .navbar #langSwitcherWrap { grid-column: 4 / span 3 !important; grid-row: 2 !important; }
  html body.premium-store:not(.anto-signed-in):not(.r70-signed-in):not(.r71-signed-in) .navbar .r65-currency-control { grid-column: 7 / span 3 !important; grid-row: 2 !important; }
  html body.premium-store:not(.anto-signed-in):not(.r70-signed-in):not(.r71-signed-in) .navbar #themeToggle { grid-column: 10 / span 3 !important; grid-row: 2 !important; }

  /* Row 2 Signed In: Wallet (4 cols) + Alerts (2) + Lang (2) + Currency (2) + Theme (2) = 12 cols */
  html body.premium-store:is(.anto-signed-in, .r70-signed-in, .r71-signed-in) .navbar #navWalletBadge {
    grid-column: 1 / span 4 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 7px !important;
    border-radius: 11px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    overflow: hidden !important;
  }
  html body.premium-store:is(.anto-signed-in, .r70-signed-in, .r71-signed-in) .navbar #notifBellBtn {
    grid-column: 5 / span 2 !important;
    grid-row: 2 !important;
    font-size: 0 !important;
  }
  html body.premium-store:is(.anto-signed-in, .r70-signed-in, .r71-signed-in) .navbar #notifBellBtn span:not(.notif-dot):not(.notif-badge) {
    display: none !important;
  }
  html body.premium-store:is(.anto-signed-in, .r70-signed-in, .r71-signed-in) .navbar #langSwitcherWrap { grid-column: 7 / span 2 !important; grid-row: 2 !important; }
  html body.premium-store:is(.anto-signed-in, .r70-signed-in, .r71-signed-in) .navbar .r65-currency-control { grid-column: 9 / span 2 !important; grid-row: 2 !important; }
  html body.premium-store:is(.anto-signed-in, .r70-signed-in, .r71-signed-in) .navbar #themeToggle {
    grid-column: 11 / span 2 !important;
    grid-row: 2 !important;
    font-size: 0 !important;
  }
  html body.premium-store:is(.anto-signed-in, .r70-signed-in, .r71-signed-in) .navbar #themeToggle span {
    display: none !important;
  }

  /* Force ALL Row 2 controls to obey their exact grid track — fixes Currency button overflowing into Theme! */
  html body.premium-store .navbar #notifBellBtn,
  html body.premium-store .navbar #langSwitcherWrap,
  html body.premium-store .navbar #langToggleBtn,
  html body.premium-store .navbar .r65-currency-control,
  html body.premium-store .navbar #r65CurrencyBtn,
  html body.premium-store .navbar .r65-ccy-trigger,
  html body.premium-store .navbar #themeToggle {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 11px !important;
  }

  html body.premium-store .navbar #r65CurrencyBtn,
  html body.premium-store .navbar .r65-ccy-trigger,
  html body.premium-store .navbar #langToggleBtn {
    padding: 0 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    overflow: hidden !important;
  }

  /* Compact currency pill inside signed-in 2-col slot so BDT never clips */
  html body.premium-store:is(.anto-signed-in, .r70-signed-in, .r71-signed-in) .navbar .r65-currency-control svg:last-child,
  html body.premium-store:is(.anto-signed-in, .r70-signed-in, .r71-signed-in) .navbar #r65CurrencyBtn .r65-ccy-caret {
    display: none !important;
  }
  html body.premium-store:is(.anto-signed-in, .r70-signed-in, .r71-signed-in) .navbar .r65-ccy-symbol {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    font-size: 10px !important;
  }

  /* Ultra-compact 320px–355px safeguard */
  @media (max-width: 355px) {
    html body.premium-store.r70-signed-in .navbar #langToggleBtn span,
    html body.premium-store.r70-signed-in .navbar #r65CurrencyBtn .r65-ccy-code {
      font-size: 10px !important;
    }
    html body.premium-store.r70-signed-in .navbar #navWalletBadge {
      padding: 0 5px !important;
      font-size: 10px !important;
    }
  }

  /* Sticky navbar already occupies normal flow — never double-offset .page top! */
  html body.premium-store .page {
    padding-top: 12px !important;
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.premium-store #page-shop {
    padding-top: 0 !important;
  }
}

/* ==========================================================================
   3. HERO SEAM FIX + 3D AMBIENT STAGE + AUTO-SLIDING 3D SPOTLIGHT RAIL
   ========================================================================== */

/* Fix the abrupt half-pink vertical rectangle seam behind Home Hero */
html body.premium-store .home-hero {
  position: relative !important;
  overflow: hidden !important;
  background: radial-gradient(ellipse 85% 65% at 50% 0%, rgba(var(--glow-r, 220, 38, 38), 0.10), transparent 72%) !important;
}
html body.premium-store .home-hero::before,
html body.premium-store .home-hero::after {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: none !important;
}
html body.premium-store .home-logo-circle {
  transition: transform 0.45s var(--anto-ease-spring), box-shadow 0.45s ease !important;
  transform-style: preserve-3d;
}
html body.premium-store .home-logo-circle:hover {
  transform: perspective(600px) translate3d(0, -4px, 12px) rotateX(6deg) rotateY(-6deg) !important;
}

/* 3D Auto-Sliding Featured Spotlight Deck (#anto3dSpotlight) */
.anto-3d-spotlight {
  position: relative;
  max-width: 1120px;
  margin: 10px auto 16px;
  padding: 0 14px;
  perspective: 1200px;
  user-select: none;
}
.anto-3d-stage {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--card, #ffffff), rgba(var(--glow-r, 220, 38, 38), 0.04));
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  box-shadow:
    0 18px 40px -18px rgba(0, 0, 0, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--anto-ease-spring), box-shadow 0.35s ease;
}
.anto-3d-track {
  position: relative;
  min-height: 136px;
}
.anto-3d-slide {
  display: none;
  padding: 16px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.anto-3d-slide.is-active {
  display: flex;
  animation: antoSpotlight3DIn 0.52s var(--anto-ease-spring) both;
}
.anto-3d-slide[data-dir="prev"].is-active {
  animation-name: antoSpotlight3DInPrev;
}
@keyframes antoSpotlight3DIn {
  from {
    opacity: 0;
    transform: perspective(1000px) translate3d(38px, 0, -40px) rotateY(-8deg);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) translate3d(0, 0, 0) rotateY(0deg);
  }
}
@keyframes antoSpotlight3DInPrev {
  from {
    opacity: 0;
    transform: perspective(1000px) translate3d(-38px, 0, -40px) rotateY(8deg);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) translate3d(0, 0, 0) rotateY(0deg);
  }
}
.anto-3d-art {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--glow-r, 220, 38, 38), 0.16), rgba(var(--glow-r, 220, 38, 38), 0.04));
  border: 1px solid rgba(var(--glow-r, 220, 38, 38), 0.24);
  display: grid;
  place-items: center;
  font-size: 30px;
  overflow: hidden;
  box-shadow: 0 10px 22px -10px rgba(var(--glow-r, 220, 38, 38), 0.38), inset 0 1px 0 rgba(255,255,255,0.4);
  transform: translateZ(18px);
}
.anto-3d-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.anto-3d-info {
  flex: 1 1 auto;
  min-width: 0;
}
.anto-3d-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--red, #dc2626);
  background: rgba(var(--glow-r, 220, 38, 38), 0.10);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 5px;
}
.anto-3d-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.anto-3d-title {
  font-family: var(--anto-font-display) !important;
  font-size: clamp(16px, 4.2vw, 20px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.anto-3d-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.anto-3d-cta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.anto-3d-price {
  font-family: var(--anto-font-display) !important;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.anto-3d-btn {
  border: none;
  border-radius: 11px;
  padding: 8px 14px;
  background: var(--red, #dc2626);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px -6px rgba(var(--glow-r, 220, 38, 38), 0.55), inset 0 1px 0 rgba(255,255,255,0.28);
  transition: transform 0.2s var(--anto-ease-spring), box-shadow 0.2s ease;
}
.anto-3d-btn:hover {
  transform: translate3d(0, -2px, 6px);
}
.anto-3d-btn:active {
  transform: scale(0.96);
}
.anto-3d-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 11px;
  gap: 10px;
}
.anto-3d-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.anto-3d-dot {
  height: 6px;
  width: 6px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border, rgba(120,120,120,0.3));
  cursor: pointer;
  transition: width 0.28s var(--anto-ease-spring), background 0.25s ease;
}
.anto-3d-dot.is-active {
  width: 22px;
  background: var(--red, #dc2626);
}
.anto-3d-arrows {
  display: flex;
  gap: 6px;
}
.anto-3d-nav {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.anto-3d-nav:hover {
  border-color: var(--red);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .anto-3d-slide {
    padding: 13px 14px;
    gap: 11px;
  }
  .anto-3d-art {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 14px;
    font-size: 24px;
  }
  .anto-3d-price {
    font-size: 17px;
  }
  .anto-3d-btn {
    padding: 7px 11px;
    font-size: 11px;
  }
  .anto-3d-foot {
    padding: 0 14px 10px;
  }
}

/* ==========================================================================
   4. CATEGORY FILTER RAIL — FIX OVERLAPPING COUNT BADGE ("AI & Pro Tools 1")
   ========================================================================== */
html body.premium-store #page-shop .cat-filter-list .cat-pill,
html body.premium-store #page-shop .cat-pill {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  padding: 6px 12px 6px 8px !important;
  min-height: 40px !important;
  max-width: none !important;
  width: auto !important;
  flex: 0 0 auto !important;
  border-radius: 13px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  transition: transform 0.22s var(--anto-ease-spring), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}
html body.premium-store #page-shop .cat-pill > span:not(.cat-pill-icon):not(.cat-pill-count) {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
html body.premium-store #page-shop .cat-pill .cat-pill-count,
html body.premium-store #page-shop .cat-filter-list .cat-pill-count {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 0 0 0 2px !important;
  padding: 2px 6px !important;
  min-width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   5. SMART AUTO-ADJUSTING PRODUCT GRID & INTERACTIVE 3D CARDS
   ========================================================================== */

/* Offscreen rendering boost for large catalogues on budget phones */
html body.premium-store #productGrid .category-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
}

/* Fix error/empty state box ("The shop could not be loaded.") having 0 padding! */
html body.premium-store #productGrid > div:not(.category-section),
html body.premium-store .shop-error-card,
html body.premium-store .empty-state {
  padding: 22px 20px !important;
  border-radius: 18px !important;
  box-sizing: border-box !important;
}

/* Interactive Product Cards — Crisp at rest (no perspective bitmap blur), GPU tilt only while active */
html body.premium-store #productGrid .product-card {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  --glare-x: 50%;
  --glare-y: 0%;
  --glare-o: 0;
  position: relative !important;
  transform: none;
  transform-style: flat;
  backface-visibility: visible;
  transition: transform 0.24s var(--anto-ease-spring), box-shadow 0.24s ease, border-color 0.22s ease !important;
  will-change: auto;
  overflow: hidden !important;
}

html body.premium-store #productGrid .product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--glare-x) var(--glare-y), rgba(255, 255, 255, 0.22), transparent 65%);
  opacity: var(--glare-o);
  transition: opacity 0.25s ease;
  z-index: 3;
}

@media (hover: hover) and (pointer: fine) {
  html body.premium-store #productGrid .product-card:hover {
    --lift: -5px;
    box-shadow:
      0 22px 44px -18px rgba(0, 0, 0, 0.24),
      0 0 0 1px rgba(var(--glow-r, 220, 38, 38), 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  }
}

/* Fix single-product category on mobile: render as sleek full-width banner card instead of lonely half-width stick! */
@media (max-width: 680px) {
  /* R78: single-product categories use exact normal 2-column card width */

  /* Readable typography on 2-column mobile cards */
  html body.premium-store #productGrid .card-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }
  html body.premium-store #productGrid .card-desc {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
  html body.premium-store #productGrid .btn-buy {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
  }
}

/* Ultra-small 320px–342px phones: clean 1-column full-width cards so zero text ever squishes */
@media (max-width: 342px) {
  html body.premium-store #productGrid .category-products {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Staggered Scroll-Reveal Animation for Cards (ends at transform:none for crisp text) */
.anto-reveal-3d {
  animation: antoCard3DReveal 0.36s var(--anto-ease-spring);
  animation-delay: var(--stagger-ms, 0ms);
}
@keyframes antoCard3DReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   6. CRISP PAGE TRANSITIONS (ZERO PERSPECTIVE BLUR ON PC OR MOBILE)
   ========================================================================== */
html body.premium-store .page.active {
  animation: antoPageCrispIn 0.24s ease-out !important;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  perspective: none !important;
  backface-visibility: visible !important;
  will-change: auto !important;
}
html body.premium-store .page.active[data-slide-dir="next"],
html body.premium-store .page.active[data-slide-dir="prev"] {
  animation: antoPageCrispIn 0.24s ease-out !important;
}

@keyframes antoPageCrispIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Mobile Bottom Nav: Smooth Horizontal Scroll, Edge Fade & 3D Active Lift */
@media (max-width: 600px) {
  html body.premium-store .bottom-nav {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    scroll-behavior: smooth;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.premium-store .bottom-nav::-webkit-scrollbar {
    display: none !important;
  }
  html body.premium-store .bottom-nav .bnav-item {
    transition: transform 0.26s var(--anto-ease-spring), background 0.22s ease, box-shadow 0.22s ease, color 0.2s ease !important;
  }
  html body.premium-store .bottom-nav .bnav-item.active {
    transform: translate3d(0, -3px, 0) scale(1.03) !important;
  }
}

/* ==========================================================================
   7. MODALS, WALLET, BUY STEPS, SPIN WHEEL & ACCOUNT FIXES
   ========================================================================== */

/* 3D Modal Sheet & Dialog Entrance */
html body.premium-store .modal-bg.open .modal-box,
html body.premium-store .modal-bg[style*="flex"] .modal-box {
  animation: antoModal3DIn 0.36s var(--anto-ease-spring) both !important;
}
@keyframes antoModal3DIn {
  from {
    opacity: 0;
    transform: perspective(1000px) translate3d(0, 26px, -24px) rotateX(4deg) scale(0.97);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) translate3d(0, 0, 0) rotateX(0deg) scale(1);
  }
}

/* 3D Step Pane Transition inside Checkout & Wallet Modals */
html body.premium-store .step-pane.active {
  animation: antoStep3DSlide 0.32s var(--anto-ease-spring) both !important;
}
@keyframes antoStep3DSlide {
  from {
    opacity: 0;
    transform: translate3d(18px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Fix Buy Modal & Theme Studio duplicate close focus ring & Spin Wheel center square */
html body.premium-store .modal-close,
html body.premium-store .modal-close:focus,
html body.premium-store .modal-close:focus-visible,
html body.premium-store .ts-close,
html body.premium-store .ts-close:focus,
html body.premium-store .ts-close:focus-visible,
html body.premium-store #themePickerClose,
html body.premium-store #themePickerClose:focus,
html body.premium-store #themePickerClose:focus-visible {
  outline: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* Fix Spin Wheel center square overlay artifact -> pure 3D round hub */
html body.premium-store #spinCenterBtn,
html body.premium-store .spin-center-btn {
  width: 66px !important;
  height: 66px !important;
  min-width: 66px !important;
  min-height: 66px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  outline: none !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14), 0 8px 22px rgba(0, 0, 0, 0.45) !important;
}

/* Fix Wallet Modal: remove 100dvh empty bottom white space & fix "bKash Persona\nl" letter-wrap! */
html body.premium-store #walletModal .modal-box {
  height: auto !important;
  min-height: 0 !important;
  max-height: min(90dvh, 760px) !important;
  overflow-y: auto !important;
}
html body.premium-store #walletModal .reference59,
html body.premium-store .reference59 {
  min-height: 0 !important;
  height: auto !important;
  background: transparent !important;
}
html body.premium-store #walletModal .reference59 .page {
  padding: 0 !important;
}
html body.premium-store #walletModal *,
html body.premium-store .reference59 * {
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}
html body.premium-store .reference59 .method-name,
html body.premium-store .reference59 .pm-name,
html body.premium-store #walletModal button {
  font-size: 12.5px !important;
  line-height: 1.25 !important;
}

/* Fix Spin Wheel center square overlay artifact */
html body.premium-store #spinBtn,
html body.premium-store .spin-center-btn {
  border-radius: 50% !important;
  outline: none !important;
}
html body.premium-store .spin-wheel-wrap > div[style*="border-radius"],
html body.premium-store #page-spin .spin-center-wrap {
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Fix Account Page name clipping ("Azharu]" -> full crisp "Azharul VIP") */
html body.premium-store #page-account h1,
html body.premium-store #page-account h2,
html body.premium-store #page-account #acName,
html body.premium-store #page-account .acct-name,
html body.premium-store #page-account .ps-user-name {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
  word-break: break-word !important;
  max-width: 100% !important;
  line-height: 1.22 !important;
}

/* Ensure Bengali Taka symbol inside Navbar Wallet Badge always renders crisply */
html body.premium-store .navbar #navWalletBadge,
html body.premium-store .navbar #navWalletBadge * {
  font-family: 'DM Sans', 'Noto Sans Bengali', 'Hind Siliguri', sans-serif !important;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  html body.premium-store .page.active,
  .anto-3d-slide.is-active,
  .anto-reveal-3d,
  html body.premium-store .modal-bg.open .modal-box {
    animation: none !important;
    transition: none !important;
  }
}
