/* =========================================================================
   SAJEKGO — Premium Dark Glassmorphism  |  Mobile-First Responsive Design
   Theme: Dark glass · Violet/Pink gradient · Neon glow
   Breakpoints (min-width): 480 · 560 · 768 · 992 · 1200 · 1440
   ========================================================================= */

/* =========================================================================
   §1  DESIGN TOKENS
   ========================================================================= */
:root {
  --theme-primary-rgb:   139 92 246;
  --theme-primary-2-rgb: 167 139 250;
  --theme-primary-bright-rgb: 183 156 255;
  --theme-secondary-rgb: 236 72 153;
  --theme-accent-rgb:    34 211 238;
  --violet:        rgb(var(--theme-primary-rgb));
  --violet-2:      rgb(var(--theme-primary-2-rgb));
  --violet-bright: rgb(var(--theme-primary-bright-rgb));
  --violet-dim:    rgb(var(--theme-primary-rgb) / .16);
  --pink:          rgb(var(--theme-secondary-rgb));
  --cyan:          rgb(var(--theme-accent-rgb));
  --grad:          linear-gradient(135deg, rgb(var(--theme-primary-rgb)) 0%, rgb(var(--theme-secondary-rgb)) 60%, rgb(245 158 11) 130%);
  --grad-soft:     linear-gradient(135deg, rgb(var(--theme-primary-rgb) / .22), rgb(var(--theme-secondary-rgb) / .14));
  --grad-border:   linear-gradient(135deg, rgb(var(--theme-primary-2-rgb) / .5), rgb(var(--theme-secondary-rgb) / .35), rgb(var(--theme-accent-rgb) / .3));
  --bg:            #07070F;
  --bg-2:          #0C0C18;
  --bg-3:          #121222;
  --card:          rgba(24, 23, 44, .72);
  --card-solid:    #181732;
  --card-2:        rgba(30, 29, 56, .85);
  --glass:         rgba(255,255,255,.055);
  --glass-2:       rgba(255,255,255,.09);
  --line:          rgba(255,255,255,.08);
  --line-2:        rgba(255,255,255,.16);
  --text:          #F1EFFF;
  --text-2:        #BDB6E4;
  --muted:         #8B83B5;
  --success:       #34D399;
  --warning:       #FBBF24;
  --danger:        #FB7185;
  --info:          #38BDF8;
  --r-sm:  10px;
  --r:     14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-pill:999px;
  --sh:      0 10px 34px rgba(0,0,0,.45);
  --sh-lg:   0 24px 70px rgba(0,0,0,.60);
  --glow:    0 0 0 1px rgb(var(--theme-primary-rgb) / .4), 0 0 24px rgb(var(--theme-primary-rgb) / .35), 0 8px 30px rgb(var(--theme-primary-rgb) / .22);
  --glow-pink: 0 0 18px rgb(var(--theme-secondary-rgb) / .4);
  --blur:      20px;
  --notice-h:  34px;
  --header-h:  60px;
  --ff:        "Hind Siliguri", "Segoe UI", system-ui, -apple-system, "Noto Sans Bengali", sans-serif;
  --ff-head:   "Space Grotesk", "Hind Siliguri", system-ui, sans-serif;
}

/* =========================================================================
   §2  RESET & BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: var(--ff);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
  padding-bottom: 64px;
}
body.has-notice { padding-top: calc(var(--header-h) + var(--notice-h)); }
main { animation: pageEnter .32s ease; }
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(880px 500px at 8%  -10%, rgb(var(--theme-primary-rgb) / .26),  transparent 62%),
    radial-gradient(760px 480px at 95%  -6%, rgb(var(--theme-secondary-rgb) / .16),  transparent 60%),
    radial-gradient(900px 600px at 50% 115%, rgb(var(--theme-accent-rgb) / .10),  transparent 62%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 84% 62% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 84% 62% at 50% 0%, #000 30%, transparent 78%);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; font-family: var(--ff-head); }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgb(var(--theme-primary-rgb) / .45); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

/* =========================================================================
   §3  LAYOUT PRIMITIVES  (mobile-first)
   ========================================================================= */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 14px; }
/* Prevent grid/flex children from overflowing */
.acct-grid > *, .co-layout > *, .row > *, .grid > * { min-width: 0; }
.section { padding: 28px 0; }
.row { display: flex; flex-direction: column; gap: 14px; }
.grid { display: grid; gap: 12px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: 1fr; }
.g-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-6 { grid-template-columns: repeat(2, 1fr); }
.center { text-align: center; }
.hide   { display: none !important; }

/* =========================================================================
   §4  TYPOGRAPHY
   ========================================================================= */
.t-muted   { color: var(--muted); }
.t-2       { color: var(--text-2); }
.t-sm      { font-size: 13px; }
.t-xs      { font-size: 12px; }
.t-grad    { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-success { color: var(--success); }
.t-danger  { color: var(--danger); }
.t-warning { color: var(--warning); }
.bold      { font-weight: 700; }

.section-head {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 10px; margin-bottom: 18px;
}
.section-head h2 {
  font-size: 18px; display: flex; align-items: center;
  gap: 10px; letter-spacing: -.3px;
}
.section-head h2::before {
  content: ""; flex: none; width: 4px; height: 20px;
  border-radius: 4px; background: var(--grad);
  box-shadow: 0 0 14px rgb(var(--theme-primary-rgb) / .7);
}
.section-head .link {
  font-size: 13px; color: var(--violet-2);
  display: flex; align-items: center; gap: 4px;
  font-weight: 600; white-space: nowrap; transition: .2s;
}
.section-head .link:hover { color: var(--pink); gap: 7px; }

/* =========================================================================
   §5  BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r);
  font-weight: 600; font-size: 14px; line-height: 1;
  cursor: pointer; white-space: nowrap; text-align: center;
  border: 1px solid transparent;
  transition: transform .16s, box-shadow .22s, background .2s, border-color .2s, opacity .2s;
  position: relative; overflow: hidden;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary {
  background: var(--grad); background-size: 160% 160%;
  color: #fff; box-shadow: 0 8px 26px rgb(var(--theme-primary-rgb) / .42);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-100%); transition: transform .5s;
}
.btn-primary:hover {
  box-shadow: 0 12px 38px rgb(var(--theme-primary-rgb) / .6), 0 0 24px rgb(var(--theme-secondary-rgb) / .3);
  transform: translateY(-2px); background-position: 100% 100%;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-outline {
  border-color: var(--line-2); background: var(--glass); color: var(--text);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--violet); background: var(--violet-dim); color: #fff; box-shadow: var(--glow); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--text); }
.btn-success { background: var(--success); color: #03231a; font-weight: 700; box-shadow: 0 6px 22px rgba(52,211,153,.35); }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-warning { background: var(--warning); color: #3a2703; font-weight: 700; }
.btn-sm    { padding: 8px 14px;   font-size: 12px;  border-radius: var(--r-sm); }
.btn-lg    { padding: 14px 28px;  font-size: 15px;  border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn .icon { flex: none; }
/* =========================================================================
   §6  BADGES & CHIPS
   ========================================================================= */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .3px; line-height: 1.6;
  white-space: nowrap; border: 1px solid transparent;
}
.badge-success { background: rgba(52,211,153,.13);  color: var(--success);  border-color: rgba(52,211,153,.3); }
.badge-warning { background: rgba(251,191,36,.13);  color: var(--warning);  border-color: rgba(251,191,36,.3); }
.badge-danger  { background: rgba(251,113,133,.13); color: var(--danger);   border-color: rgba(251,113,133,.3); }
.badge-info    { background: rgba(56,189,248,.13);  color: var(--info);     border-color: rgba(56,189,248,.3); }
.badge-muted   { background: rgba(255,255,255,.06); color: var(--muted);    border-color: rgba(255,255,255,.09); }
.badge-violet  { background: var(--violet-dim);     color: var(--violet-2); border-color: rgb(var(--theme-primary-rgb) / .32); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 9px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--line);
  font-size: 11px; font-weight: 600; color: var(--text-2);
  transition: .2s; white-space: nowrap;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.chip:hover  { border-color: var(--violet); color: var(--text); transform: translateY(-1px); }
.chip.active {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 6px 20px rgb(var(--theme-primary-rgb) / .4);
}

.scroll-x {
  display: flex; gap: 5px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.scroll-x::-webkit-scrollbar { display: none; }

/* =========================================================================
   §7  CARDS
   ========================================================================= */
.card {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.card-pad-0 { padding: 0; overflow: hidden; }

/* =========================================================================
   §8  HEADER  (mobile-first)
   — logo left · actions right · search hidden (in drawer)
   ========================================================================= */
.notice-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  background: var(--grad); background-size: 180% 180%;
  color: #fff; font-size: 12px; font-weight: 600;
  text-align: center; padding: 7px 14px;
  animation: gradShift 8s ease infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(7,7,15,.72);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
body.has-notice .header { top: var(--notice-h); }
.header.is-scrolled {
  background: rgba(7,7,15,.88);
  border-color: rgb(var(--theme-primary-rgb) / .22);
  box-shadow: 0 10px 36px rgba(0,0,0,.45), 0 0 30px rgb(var(--theme-primary-rgb) / .08);
}
.header-in {
  height: var(--header-h);
  display: flex; align-items: center; gap: 10px;
  transition: height .25s;
}
.header.is-scrolled .header-in { height: calc(var(--header-h) - 4px); }

.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: -.4px; flex: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 12px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 26%, rgba(255,255,255,.45) 0 10%, transparent 11%),
    linear-gradient(135deg, rgb(var(--theme-primary-rgb)) 0%, rgb(var(--theme-secondary-rgb)) 55%, rgb(var(--theme-accent-rgb)) 100%);
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 900;
  box-shadow:
    0 10px 24px rgb(var(--theme-primary-rgb) / .36),
    0 0 0 1px rgb(255 255 255 / .12) inset,
    0 0 18px rgb(var(--theme-secondary-rgb) / .28);
  transform: rotate(-8deg);
  animation: gradShift 6s ease infinite;
  flex: none;
}
.logo-mark::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid rgb(255 255 255 / .12);
  box-shadow: 0 0 0 1px rgb(var(--theme-primary-rgb) / .12) inset;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: auto 4px 4px auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(255 255 255 / .72);
  box-shadow: 0 0 14px rgb(255 255 255 / .45);
}
.logo-mark svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  transform: rotate(8deg);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.28));
}
.logo > span:last-child {
  background: linear-gradient(135deg, #fff 0%, rgb(var(--theme-primary-2-rgb)) 45%, rgb(var(--theme-secondary-rgb)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Desktop nav — hidden until 992px */
.nav { display: none; align-items: center; gap: 3px; margin-inline: auto; }
.nav a {
  padding: 8px 13px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: var(--text-2); transition: .18s;
}
.nav a:hover  { color: var(--text); background: rgba(255,255,255,.05); }
.nav a.active { color: var(--violet-bright); background: var(--violet-dim); box-shadow: inset 0 0 0 1px rgb(var(--theme-primary-rgb) / .22); }

.header-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--text-2); transition: .18s; flex: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.icon-btn:hover { color: var(--text); border-color: var(--violet); background: var(--violet-dim); box-shadow: var(--glow); transform: translateY(-1px); }

.wallet-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: var(--r-pill);
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.32);
  color: var(--success); font-weight: 700; font-size: 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: .2s;
}
.wallet-pill:hover { box-shadow: 0 0 20px rgba(52,211,153,.3); transform: translateY(-1px); }
.wallet-pill-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wallet-pill-label {
  color: var(--text-2);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.wallet-pill-amount { color: var(--success); font-size: 12px; line-height: 1.1; }
.account-launch { display: none; }

/* Search — hidden on mobile, shown at 768px */
.search-wrap { display: none; position: relative; flex: 1; max-width: 380px; }
.search-wrap input {
  width: 100%; padding: 10px 15px 10px 42px;
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--r-pill); color: var(--text); font-size: 14px;
  transition: .2s; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap input:focus { outline: none; border-color: var(--violet); box-shadow: var(--glow); background: rgba(24,23,44,.7); }
.search-wrap .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

.suggest {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 70;
  background: rgba(22,21,42,.96);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sh-lg);
  max-height: 340px; overflow-y: auto; display: none; animation: popIn .18s ease;
}
.suggest.open  { display: block; }
.suggest a     { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover      { background: var(--violet-dim); }
.suggest img          { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex: none; }
.suggest .s-name      { font-size: 13.5px; font-weight: 600; }
.suggest .s-price     { font-size: 12px; color: var(--success); }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* =========================================================================
   §9  MOBILE DRAWER  (full-height, max 84vw)
   ========================================================================= */
.drawer-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: .25s;
}
.drawer-mask.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  width: 300px; max-width: 84vw;
  background: rgba(10,10,22,.94);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border-right: 1px solid var(--line);
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 17px; border-bottom: 1px solid var(--line); flex: none; }
.drawer-nav  { padding: 10px; flex: 1; }
.drawer-nav a {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 15px; border-radius: var(--r);
  font-weight: 600; font-size: 14.5px; color: var(--text-2); transition: .16s;
}
.drawer-nav a:hover,
.drawer-nav a.active { background: var(--violet-dim); color: var(--violet-bright); }
.drawer-nav a.active { box-shadow: inset 0 0 0 1px rgb(var(--theme-primary-rgb) / .25); }
.drawer-nav .sep { height: 1px; background: var(--line); margin: 10px 7px; }
.drawer-foot { padding: 14px; border-top: 1px solid var(--line); display: grid; gap: 9px; flex: none; }

/* =========================================================================
   §9b  MOBILE SEARCH SHEET
   ========================================================================= */
.search-sheet-mask {
  position: fixed; inset: 0; z-index: 91;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: .24s;
}
.search-sheet-mask.open { opacity: 1; visibility: visible; }
.search-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 92;
  display: flex; flex-direction: column; gap: 8px;
  min-height: auto;
  max-height: min(38vh, 330px);
  overflow-y: auto;
  padding: 12px 12px calc(72px + env(safe-area-inset-bottom, 0px));
  border-top-left-radius: 20px; border-top-right-radius: 20px;
  background: rgba(13,12,28,.96);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -20px 60px rgba(0,0,0,.45);
  transform: translateY(104%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.search-sheet.open { transform: translateY(0); }
.search-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.search-sheet-head h2 { font-size: 15px !important; }
.search-sheet-body { display: grid; gap: 8px; }
.search-wrap-mobile { display: block; max-width: 100%; }
.search-wrap-mobile input { padding: 8px 13px 8px 38px; font-size: 13px; }
.search-wrap-mobile .icon { left: 13px; }
.search-wrap-mobile .suggest { position: static; margin-top: 8px; display: none; }
.search-wrap-mobile .suggest.open { display: block; }
.search-sheet-links {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none;
}
.search-sheet-links::-webkit-scrollbar { display: none; }
.search-sheet-links .chip { padding: 7px 10px; font-size: 11px; }
.search-sheet-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 16px;
  background: linear-gradient(135deg, rgb(var(--theme-primary-rgb) / .18), rgb(var(--theme-secondary-rgb) / .14));
  border: 1px solid rgb(var(--theme-primary-rgb) / .22);
}
.search-sheet-cta-copy { display: grid; gap: 3px; }

/* =========================================================================
   §10  BOTTOM NAV  (always visible mobile/tablet — hidden ≥992px)
   ========================================================================= */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(10,10,22,.92);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid var(--line);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 2px);
  box-shadow: 0 -14px 36px rgba(0,0,0,.28);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 0;
  padding: 8px 4px 7px;
  font-size: 11px; line-height: 1.1; font-weight: 600; color: var(--muted); transition: .18s;
  text-align: center;
  position: relative;
}
.bottom-nav .icon { display: grid; place-items: center; flex: none; }
.bottom-nav .label { display: block; width: 100%; white-space: nowrap; }
.bottom-nav a::before {
  content: "";
  position: absolute;
  inset: 5px 6px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(var(--theme-primary-rgb) / .14), rgb(var(--theme-secondary-rgb) / .12));
  opacity: 0;
  transform: scale(.85);
  transition: opacity .18s, transform .18s;
}
.bottom-nav a > * { position: relative; z-index: 1; }
.bottom-nav a.active,
.bottom-nav a:hover { color: var(--violet-2); }
.bottom-nav a.active::before {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 0 1px rgb(var(--theme-primary-rgb) / .18), 0 12px 20px rgb(var(--theme-primary-rgb) / .12);
}
.bottom-nav a.active .icon { filter: drop-shadow(0 0 8px rgb(var(--theme-primary-2-rgb) / .8)); transform: translateY(-1px); }
.nav-dot {
  position: absolute;
  top: -1px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 3px rgb(var(--theme-secondary-rgb) / .12);
}

/* =========================================================================
   §11  HERO  (mobile-first: 22px h1)
   ========================================================================= */
.hero { padding: 18px 0 0; }
.hero .container { display: grid; gap: 8px; }
.hero-inner {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-inline: 0;
  padding-inline: 0;
  position: relative;
}
.hero-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-3), var(--bg-3)) padding-box,
    var(--grad-border) border-box;
  padding: 26px 18px;
  box-shadow: var(--sh-lg), 0 0 60px rgb(var(--theme-primary-rgb) / .12) inset;
}
.hero-card.hero-card-media {
  padding: 0;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 320px at 88% 10%, rgb(var(--theme-secondary-rgb) / .22), transparent 60%),
    radial-gradient(460px 300px at 6%  92%, rgb(var(--theme-primary-rgb) / .24), transparent 60%);
}
.hero-card::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--theme-primary-rgb) / .32), transparent 66%);
  filter: blur(8px); animation: floatBlob 9s ease-in-out infinite;
}
@keyframes floatBlob { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-24px,22px) scale(1.12); } }
.hero-card-media {
  padding: 0;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-height: 118px;
  aspect-ratio: 1600 / 520;
  background: rgba(255,255,255,.03);
  border-radius: 0;
}
.hero-banner-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
}
.hero-banner-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,10,18,.5) 0%, rgba(6,10,18,.16) 56%, rgba(6,10,18,.28) 100%);
}
.hero-banner-copy {
  position: absolute;
  inset: auto auto 12px 14px;
  z-index: 1;
  display: grid;
  gap: 4px;
  max-width: min(58%, 420px);
}
.hero-banner-copy strong {
  font-size: clamp(14px, 2.4vw, 30px);
  line-height: 1.15;
  text-shadow: 0 8px 30px rgba(0, 0, 0, .34);
}
.hero-banner-copy small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: rgba(255,255,255,.88);
  font-size: clamp(10px, 1.1vw, 14px);
  line-height: 1.35;
}
.hero-banner-cta {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  font-size: 11px; font-weight: 700; letter-spacing: .6px; margin-bottom: 14px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero h1 { font-size: 22px; letter-spacing: -.7px; margin-bottom: 10px; position: relative; }
.hero p  { color: var(--text-2); font-size: 14px; max-width: 540px; margin-bottom: 20px; position: relative; }
.hero-btns { display: flex; flex-direction: column; gap: 10px; position: relative; }
.hero-btns .btn { width: 100%; }
.hero-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  position: absolute;
  inset: 0;
  margin: 0;
  padding-inline: 8px;
  pointer-events: none;
  z-index: 2;
}
.hero-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
  transition: transform .18s ease, opacity .18s ease;
  opacity: .92;
}
.hero-nav-btn:hover {
  transform: translateY(-1px) scale(1.04);
  opacity: 1;
}
.hero-nav-btn[data-hero-nav="prev"] svg { transform: rotate(180deg); }

.dots { display: flex; gap: 7px; justify-content: center; margin-top: 8px; }
.dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: .3s; cursor: pointer; }
.dot.active { width: 26px; border-radius: 5px; background: var(--grad); box-shadow: 0 0 12px rgb(var(--theme-primary-rgb) / .7); }

/* =========================================================================
   §11b  BRAND MARQUEE
   ========================================================================= */
.marquee-wrap {
  position: relative; overflow: hidden; padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 34s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 9px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--text-2); transition: .2s;
}
.marquee-item:hover { border-color: var(--violet); color: var(--text); box-shadow: var(--glow); transform: translateY(-2px); }
.marquee-item img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* =========================================================================
   §11c  AFFILIATE STRIP
   ========================================================================= */
.aff-strip {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--glass); border: 1px solid transparent;
  background-image:
    linear-gradient(rgba(24,23,44,.72), rgba(24,23,44,.72)) padding-box,
    var(--grad-border) border-box;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 22px 18px;
}
.aff-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 200px at 88% 20%, rgba(251,191,36,.14), transparent 60%),
    radial-gradient(320px 180px at 6%  90%, rgb(var(--theme-primary-rgb) / .20), transparent 60%);
  animation: affPulse 6s ease-in-out infinite;
}
@keyframes affPulse { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
.aff-content { position: relative; display: flex; flex-direction: column; gap: 16px; }
.aff-content h2 { font-size: 20px; margin: 6px 0 5px; }

/* =========================================================================
   §12  FEATURES  (1-col mobile → 2-col @560 → 4-col @768)
   ========================================================================= */
.features { display: grid; grid-template-columns: 1fr; gap: 10px; }
.feature {
  display: flex; align-items: center; gap: 12px;
  padding: 13px; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: .22s;
}
.feature:hover { border-color: rgb(var(--theme-primary-rgb) / .4); transform: translateY(-2px); box-shadow: var(--sh); }
.feature-ico {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--violet-dim); color: var(--violet-2);
  border: 1px solid rgb(var(--theme-primary-rgb) / .25); box-shadow: 0 0 14px rgb(var(--theme-primary-rgb) / .18);
}
.feature b    { display: block; font-size: 13px; }
.feature span { font-size: 11.5px; color: var(--muted); }

/* =========================================================================
   §13  CATEGORY TILES
   ========================================================================= */
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 14px 8px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  text-align: center; transition: .24s; position: relative; overflow: hidden;
}
.cat-tile::after {
  content: ""; position: absolute; inset: auto -30% -60% -30%; height: 80%;
  background: radial-gradient(ellipse at center, rgb(var(--theme-primary-rgb) / .22), transparent 70%);
  opacity: 0; transition: .3s;
}
.cat-tile:hover { border-color: var(--violet); transform: translateY(-4px); box-shadow: var(--glow); }
.cat-tile:hover::after { opacity: 1; }
.cat-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--violet-2); border: 1px solid var(--line-2); transition: .3s;
}
.cat-tile:hover .cat-ico { color: #fff; background: var(--grad); box-shadow: 0 0 22px rgb(var(--theme-primary-rgb) / .6); transform: scale(1.08) rotate(-3deg); }
.cat-tile b    { font-size: 11px; line-height: 1.25; position: relative; }
.cat-tile span { font-size: 10px; color: var(--muted); position: relative; }

[data-builder-id="home-categories"] .grid.g-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* =========================================================================
   §14  PRODUCT CARD
   ========================================================================= */
.p-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgb(var(--theme-primary-rgb) / .18) 0%, rgb(var(--theme-accent-rgb) / .10) 100%);
  border: 1px solid rgb(var(--theme-primary-rgb) / .14); border-radius: 18px; overflow: hidden;
  transition: transform .24s, border-color .24s, box-shadow .24s;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.p-card:hover { transform: translateY(-5px); border-color: rgb(var(--theme-accent-rgb) / .34); box-shadow: 0 18px 44px rgba(0,0,0,.38), 0 0 20px rgb(var(--theme-accent-rgb) / .12); }
.p-thumb {
  position: relative; aspect-ratio: 1/1; overflow: hidden;
  background: linear-gradient(180deg, rgb(var(--theme-primary-rgb) / .26) 0%, rgb(var(--theme-accent-rgb) / .16) 100%);
}
.p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.p-card:hover .p-thumb img { transform: scale(1.08); }
.p-thumb::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgb(8 18 28 / .68) 100%);
}
.p-badge {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  display: inline-flex; align-items: center; max-width: calc(100% - 78px);
  font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: rgb(var(--theme-primary-rgb) / .72);
  border: 1px solid rgb(255 255 255 / .12); border-radius: 999px; padding: 4px 7px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.p-tags {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: flex; flex-direction: column; gap: 5px; align-items: flex-end;
}
.p-chip {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 20px; padding: 3px 8px;
  border-radius: 999px; font-size: 9px; font-weight: 800; line-height: 1;
  box-shadow: 0 8px 16px rgba(0,0,0,.2);
}
.p-chip-instant {
  color: #fff; background: rgb(var(--theme-primary-rgb) / .20);
  border: 1px solid rgb(255 255 255 / .12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.p-chip-instant svg { color: rgb(var(--theme-accent-rgb)); }
.p-chip-discount {
  color: #fff; background: linear-gradient(135deg, rgb(var(--theme-primary-rgb)) 0%, rgb(var(--theme-accent-rgb)) 100%);
}
.p-body {
  padding: 11px 10px 12px;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
  background: linear-gradient(180deg, rgb(var(--theme-primary-rgb) / .22) 0%, rgb(var(--theme-accent-rgb) / .12) 100%);
  border-top: 1px solid rgb(255 255 255 / .06);
}
.p-name {
  font-size: 15px; font-weight: 800; line-height: 1.2; text-align: center;
  color: #fff; text-transform: uppercase; letter-spacing: .02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 36px;
}
.p-meta { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 10px; color: rgba(223,232,245,.72); }
.p-price { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: auto; flex-wrap: wrap; }
.p-price .was { font-size: 10px; color: rgba(223,232,245,.5); text-decoration: line-through; }
.p-price small { font-size: 9px; color: rgba(223,232,245,.58); text-transform: uppercase; letter-spacing: .05em; }
.p-price .now { font-size: 14px; font-weight: 800; color: rgb(var(--theme-accent-rgb)); text-shadow: 0 0 14px rgb(var(--theme-accent-rgb) / .22); }
.stock-out { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(7 7 15 / .76); backdrop-filter: blur(3px); }
.stock-out span { background: var(--danger); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: var(--r-pill); }
.shop-more-strip {
  position: relative; margin-top: 10px; padding: 12px 10px 18px;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgb(var(--theme-primary-rgb) / .20) 0%, rgb(var(--theme-accent-rgb) / .12) 100%);
  border: 1px solid rgb(var(--theme-primary-rgb) / .12);
}
.shop-more-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; min-height: 54px;
}
.shop-more-item {
  color: rgba(220, 229, 241, .72); font-size: 11px; font-weight: 800;
  line-height: 1.2; text-align: center; text-transform: uppercase;
  display: flex; align-items: flex-start; justify-content: center;
}
.shop-more-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -35%);
  min-width: 160px; min-height: 38px; padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1.5px solid rgb(var(--theme-accent-rgb));
  background: rgb(8 18 28 / .92); color: #fff; text-transform: uppercase;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
}
.shop-more-btn:hover { color: #fff; border-color: rgb(var(--theme-accent-rgb)); box-shadow: 0 12px 28px rgb(var(--theme-accent-rgb) / .18); }

@media (max-width: 559px) {
  .grid.g-4 { gap: 8px; }
  .p-card { border-radius: 14px; }
  .p-badge { left: 6px; top: 6px; padding: 3px 6px; font-size: 8px; max-width: calc(100% - 62px); }
  .p-tags { top: 6px; right: 6px; gap: 4px; }
  .p-chip { min-height: 18px; padding: 2px 7px; font-size: 8px; }
  .p-body { padding: 8px 8px 9px; gap: 3px; }
  .p-name { font-size: 10px; min-height: 24px; }
  .p-meta,
  .p-price { display: none; }
  .shop-more-strip { padding: 10px 8px 16px; border-radius: 14px; }
  .shop-more-grid { min-height: 44px; }
  .shop-more-item { font-size: 10px; }
  .shop-more-btn { min-width: 150px; min-height: 34px; font-size: 10px; transform: translate(-50%, -32%); }
}

/* =========================================================================
   §15  FORMS
   ========================================================================= */
.field   { margin-bottom: 14px; }
.label   { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(7,7,15,.5); border: 1px solid var(--line);
  border-radius: var(--r); color: var(--text); font-size: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--violet); box-shadow: var(--glow); background: rgba(24,23,44,.6); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238B83B5' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.select option { background: var(--card-solid); color: var(--text); }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.err  { font-size: 12px; color: var(--danger); margin-top: 5px; }
.input.is-err { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(251,113,133,.12); }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--violet); margin-top: 2px; flex: none; cursor: pointer; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: rgba(7,7,15,.5); }
.qty button { width: 42px; height: 44px; display: grid; place-items: center; color: var(--text-2); font-size: 19px; transition: .16s; }
.qty button:hover { background: var(--violet-dim); color: var(--violet-2); }
.qty input { width: 54px; height: 44px; text-align: center; background: transparent; border: 0; border-inline: 1px solid var(--line); font-weight: 700; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Shop filter — compact single-row scroller on mobile */
.shop-filter {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 8px;
  overflow: hidden;
  scrollbar-width: none;
}
.shop-filter::-webkit-scrollbar { display: none; }
.shop-filter .label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.shop-field  { flex: 0 0 auto; width: auto; min-width: 0; }
.shop-field-search { flex-basis: 120px; width: 120px; }
.shop-field-min,
.shop-field-max { flex-basis: 46px; width: 46px; }
.shop-field-sort { flex-basis: 64px; width: 64px; }
.shop-field .input,
.shop-field .select {
  min-height: 38px;
  width: 100%;
  padding: 8px 8px;
  font-size: 11.5px;
}
.shop-field-search .input { padding-inline: 10px; }
.shop-field-min .input,
.shop-field-max .input { text-align: center; }
.shop-field-sort .select { padding-right: 22px; }
.shop-actions { display: flex; flex-wrap: nowrap; gap: 6px; width: auto; flex: 0 0 auto; }
.shop-actions .btn {
  flex: 0 0 auto;
  width: 44px;
  min-height: 38px;
  padding: 0;
  font-size: 0;
  gap: 0;
  justify-content: center;
  white-space: nowrap;
}
.shop-actions .btn svg { flex: none; }

/* =========================================================================
   §16  ALERTS
   ========================================================================= */
.alert {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 15px; border-radius: var(--r);
  font-size: 13.5px; font-weight: 500; margin-bottom: 14px;
  border: 1px solid transparent;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.alert-ico { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; margin-top: 1px; }
.alert-success { background: rgba(52,211,153,.09);  border-color: rgba(52,211,153,.32);  color: #8BEFD0; }
.alert-success .alert-ico { background: var(--success); color: #03231a; box-shadow: 0 0 14px rgba(52,211,153,.5); }
.alert-error   { background: rgba(251,113,133,.09); border-color: rgba(251,113,133,.32); color: #FFC1CC; }
.alert-error   .alert-ico { background: var(--danger);  color: #fff;    box-shadow: 0 0 14px rgba(251,113,133,.5); }
.alert-warning { background: rgba(251,191,36,.09);  border-color: rgba(251,191,36,.32);  color: #FCE4A2; }
.alert-warning .alert-ico { background: var(--warning); color: #3a2703; box-shadow: 0 0 14px rgba(251,191,36,.5); }
.alert-info    { background: rgba(56,189,248,.09);  border-color: rgba(56,189,248,.32);  color: #B1E8FF; }
.alert-info    .alert-ico { background: var(--info);    color: #04202b; box-shadow: 0 0 14px rgba(56,189,248,.5); }

/* =========================================================================
   §17  TABLES  (horizontally scrollable on mobile via .table-wrap)
   ========================================================================= */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.table { min-width: 580px; font-size: 13px; }
.table th {
  text-align: left; padding: 12px 14px; white-space: nowrap;
  background: rgba(255,255,255,.04); color: var(--text-2);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: .15s; }
.table tbody tr:hover { background: rgb(var(--theme-primary-rgb) / .06); }

/* =========================================================================
   §18  PAGINATION
   ========================================================================= */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 24px; }
.page-item {
  min-width: 38px; height: 38px; padding-inline: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; color: var(--text-2); transition: .18s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.page-item:hover:not(.disabled) { border-color: var(--violet); color: var(--text); transform: translateY(-1px); }
.page-item.active   { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 5px 16px rgb(var(--theme-primary-rgb) / .4); }
.page-item.disabled { opacity: .35; pointer-events: none; }

/* =========================================================================
   §19  BREADCRUMB
   ========================================================================= */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 14px 0; }
.crumb a:hover { color: var(--violet-2); }
.crumb .sep    { opacity: .5; }

/* =========================================================================
   §20  PRODUCT DETAIL
   ========================================================================= */
/* Single column on mobile, 2-col on desktop (set in media queries) */
.pd-grid  { display: grid; gap: 20px; }
.pd-media {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); background: var(--glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--sh-lg), 0 0 50px rgb(var(--theme-primary-rgb) / .1) inset;
}
.pd-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.pd-title { font-size: 20px; margin-bottom: 8px; }
.pd-sub   { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.pd-stats { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }

/* Denomination picker — 2-col always on mobile */
.var-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.var {
  position: relative; cursor: pointer; display: block;
  padding: 12px 11px; border-radius: var(--r);
  background: rgba(7,7,15,.45); border: 1.5px solid var(--line);
  transition: .2s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.var:hover { border-color: var(--line-2); transform: translateY(-1px); }
.var input { position: absolute; opacity: 0; pointer-events: none; }
.var-t { font-size: 12.5px; font-weight: 700; margin-bottom: 3px; line-height: 1.3; }
.var-p { font-size: 14px; font-weight: 800; color: var(--success); }
.var-o { font-size: 11px; color: var(--muted); text-decoration: line-through; margin-left: 4px; }
.var input:checked ~ .var-check { opacity: 1; transform: scale(1); }
.var-check {
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
  opacity: 0; transform: scale(.5); transition: .2s;
  box-shadow: 0 0 12px rgb(var(--theme-primary-rgb) / .6);
}
.var-check svg { width: 11px; height: 11px; color: #fff; }
.var.selected { border-color: var(--violet); background: var(--violet-dim); box-shadow: 0 0 0 3px rgb(var(--theme-primary-rgb) / .14), 0 0 20px rgb(var(--theme-primary-rgb) / .18); }
.var.oos { opacity: .4; pointer-events: none; }

.buy-box { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--sh); transition: box-shadow .25s; }
.buy-box:focus-within { box-shadow: var(--glow); }
.total-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px dashed var(--line-2); margin-top: 12px; }
.total-row .lbl { font-size: 14px; color: var(--text-2); }
.total-row .val { font-size: 24px; font-weight: 800; }

/* =========================================================================
   §21  ACCORDION
   ========================================================================= */
.acc { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--glass); margin-bottom: 10px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; text-align: left; font-weight: 600; font-size: 14px; transition: .16s; }
.acc-head:hover { background: rgb(var(--theme-primary-rgb) / .07); }
.acc-head .icon { transition: transform .24s; color: var(--muted); flex: none; }
.acc.open { border-color: rgb(var(--theme-primary-rgb) / .35); }
.acc.open .acc-head { color: var(--violet-2); }
.acc.open .acc-head .icon { transform: rotate(90deg); color: var(--violet-2); }
.acc-body    { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-body-in { padding: 0 16px 15px; color: var(--text-2); font-size: 13.8px; line-height: 1.75; }

/* =========================================================================
   §22  ACCOUNT LAYOUT
   ========================================================================= */
/* Single column on mobile, sidebar+content at 992px */
.acct-grid { display: grid; gap: 18px; grid-template-columns: 1fr; min-width: 0; }
.orders-shell { width: 100%; max-width: 920px; margin-inline: auto; }

.acct-side {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg);
  contain: paint; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  min-width: 0; width: 100%; max-width: 100%;
}
.acct-user {
  padding: 18px; text-align: center; border-bottom: 1px solid var(--line);
  background: var(--grad-soft); position: relative; overflow: hidden;
}
.acct-user::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--theme-primary-rgb) / .3), transparent 68%);
  pointer-events: none;
}
.avatar { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; background: var(--grad); display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #fff; box-shadow: 0 6px 22px rgb(var(--theme-primary-rgb) / .55); }
.acct-user-badges { display: flex; gap: 6px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }

/* Mobile: horizontal pill tab bar, scrollable */
.acct-menu {
  display: flex; flex-wrap: nowrap; overflow-x: auto;
  gap: 6px; padding: 10px;
  width: 100%; max-width: 100%; box-sizing: border-box;
  scrollbar-width: none; -ms-overflow-style: none;
}
.acct-menu::-webkit-scrollbar { display: none; }
.acct-menu a {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: .16s; white-space: nowrap; flex: none;
  border: 1px solid transparent; background: var(--glass);
}
.acct-menu a:hover { background: rgba(255,255,255,.07); color: var(--text); }
.acct-menu a.active { background: var(--violet-dim); color: var(--violet-bright); border-color: rgb(var(--theme-primary-rgb) / .3); box-shadow: 0 0 14px rgb(var(--theme-primary-rgb) / .2); }
.acct-menu a.danger:hover { background: rgba(251,113,133,.12); color: var(--danger); }

/* Account / wallet cards */
.account-cards         { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.account-card          { width: 100%; min-width: 0; }
.account-card-highlight { background: var(--grad-soft); }

/* Wallet summary — stacked on mobile */
.wallet-summary { margin-bottom: 16px; }
.wallet-inner   { display: flex; flex-direction: column; gap: 14px; }
.wallet-balance { font-size: 30px; font-weight: 800; }
.wallet-meta    { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.wallet-cta     { width: 100%; margin-top: 8px; }
.wallet-cta .btn { width: 100%; }
.wallet-form-row { display: flex; flex-direction: column; gap: 12px; }
.wallet-form-row > .field { width: 100%; min-width: 0; }

/* Stat tiles — 2-col on mobile */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 15px;
  position: relative; overflow: hidden;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: .22s;
}
.stat:hover { transform: translateY(-3px); border-color: rgb(var(--theme-primary-rgb) / .4); box-shadow: var(--sh); }
.stat::after { content: ""; position: absolute; right: -26px; top: -26px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, rgb(var(--theme-primary-rgb) / .24), transparent 70%); pointer-events: none; }
.stat-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--violet-dim); color: var(--violet-2); margin-bottom: 10px; border: 1px solid rgb(var(--theme-primary-rgb) / .25); position: relative; }
.stat-v   { font-size: 20px; font-weight: 800; line-height: 1.2; position: relative; }
.stat-l   { font-size: 11px; color: var(--muted); position: relative; }

/* =========================================================================
   §23  AUTH PAGES  (full-width mobile, 440px desktop)
   ========================================================================= */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 64px); display: grid; place-items: center; padding: 20px 0; }
.auth-card {
  width: 100%; max-width: 100%;
  background: var(--glass); border: 1px solid var(--line-2);
  border-radius: var(--r-xl); padding: 22px 16px;
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  box-shadow: var(--sh-lg), 0 0 60px rgb(var(--theme-primary-rgb) / .1) inset;
  animation: cardIn .45s cubic-bezier(.2,.8,.2,1);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.auth-head    { text-align: center; margin-bottom: 22px; }
.auth-head h1 { font-size: 22px; margin-bottom: 5px; }
.auth-head p  { color: var(--muted); font-size: 13px; }
.auth-foot    { text-align: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.auth-foot a  { color: var(--violet-2); font-weight: 600; }

/* =========================================================================
   §23b  ORDERS TABLE — responsive card layout on mobile
   ========================================================================= */
/* Mobile: hide thead, each row becomes a card */
@media (max-width: 639px) {
  .orders-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }
  .orders-table.table,
  .orders-table-wrap {
    min-width: 0;
  }
  .orders-table-wrap {
    overflow: visible;
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .orders-table thead { display: none; }

  .orders-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .orders-table tr {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 12px;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  /* Last cell (View button) spans full width */
  .orders-table td:last-child {
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px solid var(--line-2);
    margin-top: 6px;
  }
  .orders-table td:last-child .btn { width: 100%; justify-content: center; }

  /* Label prefix from data-label */
  .orders-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
    margin-bottom: 3px;
  }

  /* Order no + date: full width */
  .orders-table td:first-child { grid-column: 1 / -1; }

  /* Remove default td padding/border */
  .orders-table td {
    padding: 0;
    border: none;
    min-width: 0;
    word-break: break-word;
  }
}

/* =========================================================================
   §24  CHECKOUT LAYOUT
   ========================================================================= */
/* Mobile: single column stacked */
.co-layout       { display: flex; flex-direction: column; gap: 16px; }
.co-form-col     { display: grid; gap: 16px; }
.co-summary-col  { width: 100%; }

/* Checkout field rows — stack on mobile, side-by-side at 560 */
.co-fields       { display: flex; flex-direction: column; gap: 12px; }
.co-fields .field { margin: 0; width: 100%; }

/* Product image row in summary */
.co-product      { display: flex; gap: 12px; margin-bottom: 14px; }
.co-product-img  { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.co-product-info { flex: 1; min-width: 0; }

/* Coupon input row */
.co-coupon       { display: flex; gap: 8px; }
.co-coupon .input { flex: 1; }

/* Summary price rows */
.co-price-rows   { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; font-size: 14px; }
.co-price-row    { display: flex; justify-content: space-between; }

/* =========================================================================
   §25  BLOG / POSTS
   ========================================================================= */
.post-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: .24s; display: flex; flex-direction: column; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.post-card:hover { transform: translateY(-4px); border-color: var(--violet); box-shadow: var(--glow); }
.post-card img   { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .4s; }
.post-card:hover img { transform: scale(1.04); }
.post-body   { padding: 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.post-body h3 { font-size: 15px; line-height: 1.4; }
.post-body p  { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.prose       { color: var(--text-2); line-height: 1.85; font-size: 15px; }
.prose h2    { font-size: 20px; margin: 24px 0 10px; color: var(--text); }
.prose h3    { font-size: 17px; margin: 20px 0 9px;  color: var(--text); }
.prose p     { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 14px 20px; }
.prose ul    { list-style: disc; }
.prose ol    { list-style: decimal; }
.prose li    { margin-bottom: 7px; }
.prose a     { color: var(--violet-2); text-decoration: underline; }
.prose b, .prose strong { color: var(--text); }
.prose img   { border-radius: var(--r); margin: 14px 0; }
.prose blockquote { border-left: 3px solid var(--violet); padding: 4px 0 4px 15px; margin: 14px 0; color: var(--text); font-style: italic; }

/* =========================================================================
   §25  FOOTER  (1-col mobile → 2-col @560 → 4-col @992)
   ========================================================================= */
.footer {
  background:
    radial-gradient(420px 180px at 0% 0%, rgb(var(--theme-primary-rgb) / .14), transparent 60%),
    linear-gradient(180deg, rgba(11,16,30,.94) 0%, rgba(8,12,24,.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 44px;
  padding: 34px 0 22px;
}
.f-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.footer-card {
  position: relative;
  padding: 14px 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.025) 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 32px rgba(0,0,0,.22);
  overflow: hidden;
}
.footer-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  pointer-events: none;
}
.footer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgb(var(--theme-primary-rgb) / .12);
  border: 1px solid rgb(var(--theme-primary-rgb) / .22);
  color: #c4b5fd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-logo { margin-bottom: 8px; }
.footer-brand-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(226,232,240,.82);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}
.f-col h4 { font-size: 12px; margin-bottom: 9px; text-transform: uppercase; letter-spacing: .11em; color: rgba(248,250,252,.94); }
.f-col a, .f-col p { display: block; font-size: 12px; color: rgba(203,213,225,.78); margin-bottom: 4px; line-height: 1.32; transition: color .16s ease, transform .16s ease; }
.f-col a:hover { color: var(--violet-2); transform: translateX(3px); }
.footer-link-list { display: grid; gap: 4px; }
.footer-link-list a {
  position: relative;
  padding-left: 12px;
  line-height: 1.28;
}
.footer-link-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48rem;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgb(var(--theme-primary-rgb) / .8);
  box-shadow: 0 0 10px rgb(var(--theme-primary-rgb) / .5);
}
.footer-subrows { display: grid; gap: 14px; margin-top: 14px; }
.footer-contact { width: 100%; }
.footer-contact-card { padding-bottom: 16px; }
.footer-contact-list { display: grid; gap: 5px; }
.footer-contact-list a,
.footer-contact-list p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.footer-contact-list p { color: rgba(203,213,225,.72); }
.f-social { display: flex; gap: 9px; margin-top: 8px; flex-wrap: wrap; }
.footer-social-bar {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}
.footer-social-heading p {
  margin: 0;
  font-size: 12px;
  color: rgba(203,213,225,.72);
}
.footer-social { justify-content: center; margin-top: 0; }
.f-social a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); margin: 0; transition: .2s; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.f-social a:hover { background: var(--grad); border-color: transparent; color: #fff; transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 22px rgb(var(--theme-primary-rgb) / .45); }
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.pay-logo  {
  width: 46px; height: 46px; padding: 6px;
  border-radius: 14px; background: var(--glass); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.pay-logo img { width: 100%; height: 100%; object-fit: contain; }
.pay-logo-text {
  display: block; max-width: 100%; text-align: center;
  font-size: 10px; font-weight: 800; line-height: 1.1; white-space: nowrap;
}
.f-bottom  { border-top: 1px solid rgba(255,255,255,.08); margin-top: 24px; padding-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; color: var(--muted); }

/* =========================================================================
   §26  MODAL  (96vw mobile, 460px desktop)
   ========================================================================= */
.modal-mask { position: fixed; inset: 0; z-index: 120; background: rgba(4,4,10,.78); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 12px; opacity: 0; visibility: hidden; transition: .24s; }
.modal-mask.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 96vw;
  background: rgba(22,21,42,.97);
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); max-height: 90vh; overflow-y: auto;
  transform: translateY(16px) scale(.97); transition: .24s cubic-bezier(.2,.8,.2,1);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
}
.modal-mask.open .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-body    { padding: 18px; }

/* =========================================================================
   §27  COPY BOX  (wraps on mobile)
   ========================================================================= */
.copy-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  padding: 12px 13px; background: rgba(7,7,15,.5);
  border: 1px dashed var(--line-2); border-radius: var(--r);
  font-size: 13px; word-break: break-all;
}
.copy-box code { flex: 1; color: var(--violet-2); font-family: ui-monospace, Menlo, Consolas, monospace; min-width: 0; }

/* =========================================================================
   §28  MISC
   ========================================================================= */
.empty     { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 14px; color: var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.empty h3  { font-size: 16px; color: var(--text-2); margin-bottom: 5px; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.spin { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.28); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

.toast-host { position: fixed; top: 12px; right: 12px; z-index: 200; display: flex; flex-direction: column; gap: 9px; pointer-events: none; max-width: calc(100vw - 24px); }
.toast { padding: 11px 16px; border-radius: var(--r); background: rgba(30,29,56,.93); border: 1px solid var(--line-2); box-shadow: var(--sh-lg); font-size: 13px; font-weight: 600; animation: tin .3s cubic-bezier(.2,.8,.2,1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); word-break: break-word; }
.toast.ok  { border-color: rgba(52,211,153,.5); color: var(--success); }
.toast.bad { border-color: rgba(251,113,133,.5); color: var(--danger); }
@keyframes tin { from { opacity: 0; transform: translateX(24px); } }

.fade-up { animation: fu .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fu { from { opacity: 0; transform: translateY(18px); } }

/* =========================================================================
   §29  PROGRESSIVE ENHANCEMENT — MIN-WIDTH MEDIA QUERIES
   ========================================================================= */

/* ── 480px ───────────────────────────────────────────────────────────── */
@media (min-width: 480px) {
  body { font-size: 14.5px; }
  .container { padding-inline: 16px; }
  .hero h1  { font-size: 26px; }
  .hero-btns { flex-direction: row; flex-wrap: wrap; }
  .hero-btns .btn { width: auto; flex: 1 1 auto; }
  .hero-nav { margin-top: 0; }
  .auth-card { padding: 26px 20px; }
  .wallet-balance { font-size: 32px; }
}

/* ── 560px ───────────────────────────────────────────────────────────── */
@media (min-width: 560px) {
  .container { padding-inline: 20px; }
  .section   { padding: 34px 0; }
  .grid      { gap: 14px; }

  /* Row becomes horizontal */
  .row { flex-direction: row; flex-wrap: wrap; }

  /* Grids */
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .g-4 { grid-template-columns: repeat(3, 1fr); }
  .g-6 { grid-template-columns: repeat(3, 1fr); }

  /* Section head: inline row */
  .section-head { flex-direction: row; align-items: center; justify-content: space-between; }

  .wallet-pill {
    padding: 8px 14px;
    font-size: 13px;
  }
  .wallet-pill-label { font-size: 10px; }
  .wallet-pill-amount { font-size: 13px; }
  .account-launch { display: grid; }

  /* Hero */
  .hero-card { padding: 32px 26px; }
  .hero-card-media { min-height: 152px; }
  .hero-banner-copy { inset: auto auto 18px 20px; }
  .hero-banner-cta { right: 18px; bottom: 18px; }

  /* Features: 2-col */
  .features { grid-template-columns: repeat(2, 1fr); }

  /* Footer: 3-col */
  .f-grid   { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .footer-subrows { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .9fr); align-items: stretch; }
  .footer-social-bar { justify-items: start; text-align: left; }
  .footer-social { justify-content: flex-start; }
  .f-bottom { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }

  /* Auth card: constrained */
  .auth-card { max-width: 440px; padding: 32px 28px; }

  /* Account cards: 50% side-by-side */
  .account-cards { flex-direction: row; flex-wrap: wrap; }
  .account-card { flex: 1 1 calc(50% - 8px); }

  /* Wallet inner: row */
  .wallet-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .wallet-cta   { width: auto; margin-top: 0; }
  .wallet-cta .btn { width: auto; }

  /* Shop filter: row */
  .shop-filter  { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px; overflow: visible; padding: 14px; }
  .shop-filter .label {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 6px;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  .shop-field   { flex: 1 1 180px; width: auto; }
  .shop-field-search,
  .shop-field-min,
  .shop-field-max,
  .shop-field-sort { flex-basis: auto; width: auto; }
  .shop-field .input,
  .shop-field .select { width: 100%; min-height: 44px; padding: 10px 14px; font-size: 14px; }
  .shop-actions { width: auto; margin-left: auto; }
  .shop-actions .btn { flex: 0 0 auto; width: auto; min-height: 44px; padding: 10px 16px; font-size: 14px; gap: 8px; }

  /* Wallet form row */
  .wallet-form-row { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .wallet-form-row > .field { flex: 1 1 170px; }

  /* Checkout: side-by-side fields */
  .co-fields { flex-direction: row; flex-wrap: wrap; }
  .co-fields .field { flex: 1 1 180px; }

  /* Checkout: two-column layout */
  .co-layout { flex-direction: row; align-items: flex-start; }
  .co-form-col    { flex: 1 1 340px; }
  .co-summary-col { flex: 1 1 300px; position: sticky; top: calc(var(--header-h) + 14px); }

  /* Var grid: 3-col */
  .var-grid { grid-template-columns: repeat(3, 1fr); }

  /* Copy box: no wrap */
  .copy-box { flex-wrap: nowrap; }
}

/* ── 768px ───────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  :root { --header-h: 68px; }
  body  { font-size: 15px; }
  .container { padding-inline: 24px; }
  .section   { padding: 50px 0; }
  .grid      { gap: 18px; }

  .g-3 { grid-template-columns: repeat(3, 1fr); }
  .g-4 { grid-template-columns: repeat(4, 1fr); }
  .g-6 { grid-template-columns: repeat(4, 1fr); }

  /* Search visible in header */
  .search-wrap { display: block; }
  .search-sheet,
  .search-sheet-mask { display: none; }

  .section-head h2 { font-size: 24px; }

  .hero .container { max-width: none; padding-inline: 0; }
  .hero-inner { max-width: none; }
  .hero-card { padding: 44px 38px; }
  .hero-card.hero-card-media { padding: 0; }
  .hero h1   { font-size: 34px; }
  .hero p    { font-size: 15.5px; }
  .hero-card-media { min-height: 196px; }
  .hero-nav { margin-top: 0; max-width: none; }

  .features  { grid-template-columns: repeat(4, 1fr); }

  .aff-content { flex-direction: row; align-items: center; justify-content: space-between; }
  .aff-content h2 { font-size: 24px; }

  .stats  { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .stat-v { font-size: 22px; }

  .card    { padding: 20px; }
  .buy-box { padding: 20px; }

  .pd-title    { font-size: 26px; }
  .pd-media img { aspect-ratio: 4/3; }

  .auth-card    { max-width: 440px; padding: 38px 34px; }
  .auth-head h1 { font-size: 26px; }

  .wallet-balance { font-size: 34px; }

  .p-name  { font-size: 14px; }
  .btn-lg  { padding: 16px 32px; font-size: 16px; }
}

/* ── 992px — DESKTOP ─────────────────────────────────────────────────── */
@media (min-width: 992px) {
  /* Bottom nav hidden; body padding reset */
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }

  /* Desktop nav + hamburger */
  .nav      { display: flex; }
  .menu-btn { display: none; }

  /* Logo sizing */
  .logo      { font-size: 19px; }
  .logo-mark { width: 36px; height: 36px; font-size: 15px; }

  /* Grids */
  .g-4 { grid-template-columns: repeat(5, 1fr); }
  .g-6 { grid-template-columns: repeat(6, 1fr); }

  /* Section head */
  .section-head h2 { font-size: 26px; }

  /* Hero */
  .hero .container { max-width: none; padding-inline: 0; }
  .hero-inner { max-width: none; }
  .hero-card { padding: 54px 46px; }
  .hero-card.hero-card-media { padding: 0; }
  .hero h1   { font-size: 44px; }
  .hero p    { font-size: 16.5px; }
  .hero-card-media { min-height: 248px; }
  .hero-nav { margin-top: 0; max-width: none; }

  /* Footer: 3-col */
  .f-grid { grid-template-columns: 1.4fr 1.2fr 1fr; gap: 36px; }
  .footer-card { padding: 18px 18px; }
  .footer-subrows { grid-template-columns: minmax(0, 1.6fr) minmax(280px, .85fr); gap: 18px; }

  /* Account: sidebar+content */
  .acct-grid { grid-template-columns: 260px 1fr; align-items: start; }

  /* Sidebar: sticky vertical list */
  .acct-side { position: sticky; top: calc(var(--header-h) + 16px); }
  .acct-menu {
    display: block;
    overflow-x: visible;
    padding: 10px;
  }
  .acct-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-size: 14px;
    white-space: normal;
    flex: none;
    width: 100%;
    border: none;
    background: transparent;
    border-radius: var(--r-sm);
  }
  .acct-menu a:hover  { background: rgba(255,255,255,.05); color: var(--text); }
  .acct-menu a.active { background: var(--violet-dim); color: var(--violet-bright); box-shadow: inset 0 0 0 1px rgb(var(--theme-primary-rgb) / .25); border: none; }

  /* Product detail: 2-col */
  .pd-grid  { grid-template-columns: 390px 1fr; align-items: start; }
  .pd-media { position: sticky; top: calc(var(--header-h) + 16px); }
  .pd-media img { aspect-ratio: 1/1; }

  /* Account cards flow */
  .account-card { flex: 1 1 240px; }

  /* Modal: 460px */
  .modal { max-width: 460px; }

  /* Wallet */
  .wallet-balance { font-size: 36px; }
  .stat-v         { font-size: 23px; }
  .aff-content h2 { font-size: 26px; }
}

/* ── 1200px ──────────────────────────────────────────────────────────── */
@media (min-width: 1200px) {
  .container { padding-inline: 28px; }
  .section   { padding: 60px 0; }
  .g-4 { grid-template-columns: repeat(5, 1fr); }
  .hero .container { max-width: none; padding-inline: 0; }
  .hero-inner { max-width: none; }
  .hero-card { padding: 60px 52px; }
  .hero-card.hero-card-media { padding: 0; }
  .hero h1   { font-size: 48px; }
  .section-head h2 { font-size: 28px; }
}

/* ── 1440px ──────────────────────────────────────────────────────────── */
@media (min-width: 1440px) {
  .hero .container { max-width: none; padding-inline: 0; }
  .hero-inner { max-width: none; }
  .hero-card.hero-card-media { padding: 0; }
  .hero h1 { font-size: 54px; }
}

/* =========================================================================
   §30  LIVE CHAT
   ========================================================================= */
.live-chat {
  position: fixed;
  right: 18px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 85;
  display: grid;
  justify-items: end;
}

.live-chat-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  height: 58px;
  padding: 0;
  background: rgba(12, 14, 31, .92);
  color: var(--text);
  box-shadow: var(--sh-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  z-index: 2;
}

.live-chat-launch-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(var(--theme-primary-rgb) / .95), rgb(var(--theme-accent-rgb) / .95));
  color: #fff;
}

.live-chat-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, .18);
  position: absolute;
  top: 6px;
  right: 6px;
}

.live-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(380px, calc(100vw - 24px));
  height: min(72vh, 560px);
  max-height: min(72vh, 560px);
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: rgba(11, 13, 29, .98);
  box-shadow: var(--sh-lg);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
  z-index: 3;
}

.live-chat-panel[hidden],
.live-chat-guest[hidden] {
  display: none !important;
}

.live-chat-head,
.live-chat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-chat-head h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.live-chat-status {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(139, 92, 246, .12);
  color: var(--text-2);
  font-size: 12px;
}

.live-chat-messages {
  min-height: 0;
  max-height: none;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.live-chat-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: 18px;
  color: var(--text-2);
  padding: 18px;
}

.live-chat-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--card-solid);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-sm);
}

.live-chat-bubble.admin {
  margin-left: auto;
  background: rgba(139, 92, 246, .18);
  border-color: rgba(139, 92, 246, .3);
}

.live-chat-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--text-2);
}

.live-chat-bubble p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.live-chat-guest,
.live-chat-form {
  display: grid;
  gap: 10px;
  flex: none;
}

.live-chat-form {
  margin: 0;
}

.live-chat-form .textarea {
  min-height: 64px;
}

@media (min-width: 992px) {
  .live-chat {
    bottom: 24px;
  }
}

@media (max-width: 640px) {
  .live-chat {
    right: 8px;
    left: 8px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    justify-items: stretch;
  }

  .live-chat-launch {
    width: 100%;
  }

  .live-chat-launch {
    justify-content: space-between;
  }

  .live-chat-panel {
    position: fixed;
    left: 8px;
    right: 8px;
    top: calc(var(--header-h) + 12px);
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    max-height: none;
    padding: 12px;
    border-radius: 22px;
  }

  .live-chat-messages {
    min-height: 0;
    max-height: none;
  }

  .live-chat-bubble {
    max-width: 94%;
  }

  .live-chat-head h3 {
    font-size: 16px;
  }

  .live-chat-foot {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .live-chat-foot .btn {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================================
   §31  PRINT & REDUCED MOTION
   ========================================================================= */
@media print {
  .header, .footer, .bottom-nav, .drawer, .btn { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
