/* ============================================================
   SMMSCRIPTZONE — Master CSS v8
   Modern · Fluid · Mobile-First · Desktop-Polish
   ============================================================ */

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  /* Brand */
  --cyan:       #00f5ff;
  --cyan-dim:   rgba(0,245,255,.1);
  --cyan-glow:  0 0 32px rgba(0,245,255,.22);
  --purple:     #7c3aed;
  --purple-l:   #a855f7;
  --purple-dim: rgba(124,58,237,.1);
  --green:      #10b981;
  --yellow:     #f59e0b;
  --red:        #ef4444;
  --pink:       #ec4899;

  /* Surfaces */
  --bg:         #0a0f1e;
  --bg2:        #060c18;
  --bg3:        #0f1629;
  --card:       #111827;
  --card2:      #161f30;
  --glass:      rgba(17,24,39,.82);

  /* Borders */
  --border:     rgba(0,245,255,.08);
  --border-h:   rgba(0,245,255,.25);
  --border-s:   rgba(255,255,255,.06);

  /* Text */
  --text:       #f0f4f8;
  --text2:      #8fa3bf;
  --text3:      #3d5166;

  /* Radius */
  --r:          10px;
  --r-lg:       16px;
  --r-xl:       22px;
  --r-full:     100px;

  /* Typography */
  --font:       'Rajdhani', system-ui, sans-serif;
  --font-d:     'Orbitron', monospace;
  --font-code:  'Space Mono', monospace;

  /* Motion */
  --ease:       cubic-bezier(.4,0,.2,1);
  --spring:     cubic-bezier(.34,1.56,.64,1);
  --tr:         all .25s var(--ease);

  /* Shadows */
  --shadow:     0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.55);
  --shadow-xl:  0 24px 80px rgba(0,0,0,.65);

  /* ── Backward-compat aliases (v7→v8 renames) ─────────────
     Inline styles across PHP pages use old names.
     These aliases mean we never need to touch 166+ files.    */
  --font-display: 'Orbitron', monospace;   /* was --font-d   */
  --radius:       10px;                    /* was --r        */
  --radius-lg:    16px;                    /* was --r-lg     */
  --radius-xl:    22px;                    /* was --r-xl     */
  --transition:   all .25s cubic-bezier(.4,0,.2,1); /* was --tr */
  --glow-c:       0 0 32px rgba(0,245,255,.22);      /* was --cyan-glow */
  --glow-p:       0 0 32px rgba(124,58,237,.28);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.55);
  --bg2:          #060c18;
  --card2:        #161f30;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { text-decoration: none; color: inherit; transition: var(--tr); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }
button { cursor: pointer; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ── Background particles ────────────────────────────────── */
#particles-js { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ── Ambient orbs ────────────────────────────────────────── */
.orb { position: fixed; border-radius: 50%; filter: blur(120px); opacity: .07; pointer-events: none; }
.orb-1 { width: 700px; height: 700px; background: var(--cyan); top: -200px; left: -150px; animation: orbFloat 16s ease-in-out infinite; }
.orb-2 { width: 600px; height: 600px; background: var(--purple); bottom: -150px; right: -150px; animation: orbFloat 13s ease-in-out infinite reverse; }
@keyframes orbFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.08); } }

/* ── Layout ──────────────────────────────────────────────── */
.relative { position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem,4vw,2rem); }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 clamp(1rem,4vw,2rem); }
.section { padding: clamp(56px,8vw,100px) 0; }
.section-sm { padding: clamp(32px,5vw,60px) 0; }

/* Grids — fluid, no breakpoint hacks needed */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.auto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px,100%), 1fr)); gap: 1.5rem; }

/* Flex utilities */
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Spacing */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }  .mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }

/* ── Section headers ─────────────────────────────────────── */
.section-tag {
  display: inline-block;
  padding: .28rem 1rem;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,245,255,.2);
  border-radius: var(--r-full);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .85rem;
}
.section-title {
  font-family: var(--font-d);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: .85rem;
}
.section-desc { color: var(--text2); max-width: 560px; margin: 0 auto; font-size: 1rem; line-height: 1.72; }
.accent {
  background: linear-gradient(135deg, var(--cyan) 20%, var(--purple-l) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Announcement bar ────────────────────────────────────── */
.announcement-bar {
  position: relative; z-index: 1001;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: .55rem 1rem; font-size: .84rem; font-weight: 600;
  border-bottom: 1px solid;
}
.announcement-info    { background: rgba(0,245,255,.07);  border-color: rgba(0,245,255,.18);  color: var(--cyan); }
.announcement-success { background: rgba(16,185,129,.07); border-color: rgba(16,185,129,.18); color: #34d399; }
.announcement-warning { background: rgba(245,158,11,.07); border-color: rgba(245,158,11,.18); color: var(--yellow); }
.announcement-danger  { background: rgba(239,68,68,.07);  border-color: rgba(239,68,68,.18);  color: #f87171; }
.ann-content { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.ann-link { padding: .12rem .6rem; background: rgba(255,255,255,.1); border-radius: var(--r-full); font-size: .76rem; font-weight: 700; border: 1px solid currentColor; }
.ann-close { background: none; border: none; cursor: pointer; color: inherit; opacity: .55; padding: .2rem .4rem; position: absolute; right: .75rem; }
.ann-close:hover { opacity: 1; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px; display: flex; align-items: center; padding: 0 clamp(1rem,3vw,1.5rem);
  background: rgba(10,15,30,.88);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.navbar.scrolled { background: rgba(6,12,24,.97); box-shadow: 0 4px 32px rgba(0,0,0,.55); }
.navbar.nav-hidden { transform: translateY(-100%); }
.nav-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-d); font-weight: 900; font-size: 1.05rem; letter-spacing: .04em; display: flex; align-items: center; }
.nav-logo span { color: var(--cyan); }
/* .nav-links removed — replaced by .nav-desktop-links (desktop) and #mobileDrawer (mobile) */
.nav-link {
  padding: .42rem .85rem; border-radius: var(--r); font-weight: 700;
  font-size: .82rem; color: var(--text2); letter-spacing: .02em;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--cyan); background: var(--cyan-dim); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: .4rem; }
.hamburger span { width: 22px; height: 2px; background: var(--text2); border-radius: 2px; transition: var(--tr); display: block; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Nav overlay */
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 998; backdrop-filter: blur(4px); }
.nav-overlay.active { display: block; animation: fadeIn .2s ease; }

/* Wallet chip */
.wallet-chip {
  display: flex; align-items: center; gap: .35rem;
  padding: .32rem .75rem; background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25); border-radius: var(--r-full);
  font-size: .76rem; font-weight: 700; color: var(--green); transition: var(--tr);
}
.wallet-chip:hover { background: rgba(16,185,129,.18); }

/* User dropdown */
.nav-user-menu { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; padding: .38rem .75rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text); transition: var(--tr); font-size: .84rem;
}
.nav-user-btn:hover { border-color: var(--border-h); }
.nav-avatar {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--cyan), var(--purple-l));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 700; font-size: .58rem; color: #000;
}
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 200px;
  background: var(--card2); border: 1px solid var(--border-h);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: none; z-index: 999;
}
.user-dropdown.open { display: block; animation: slideDown .2s ease; }
.user-dropdown a {
  display: flex; align-items: center; gap: .6rem; padding: .65rem 1rem;
  font-size: .84rem; color: var(--text2); transition: var(--tr); font-weight: 600;
}
.user-dropdown a:hover { background: var(--cyan-dim); color: var(--cyan); }

/* Currency switcher */
.currency-switcher { position: relative; }
.currency-btn {
  display: flex; align-items: center; gap: .3rem;
  padding: .35rem .7rem; background: rgba(255,255,255,.05);
  border: 1px solid var(--border); border-radius: var(--r);
  cursor: pointer; color: var(--text2); font-size: .76rem; font-weight: 700;
  font-family: var(--font-d); transition: var(--tr); letter-spacing: .04em;
}
.currency-btn:hover { border-color: var(--border-h); color: var(--cyan); }
.currency-menu {
  position: absolute; top: calc(100% + 8px); right: 0; width: 210px;
  background: var(--card2); border: 1px solid var(--border-h);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: none; z-index: 999;
}
.currency-menu.open { display: block; animation: slideDown .2s ease; }
.currency-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1rem; font-size: .82rem; color: var(--text2); font-weight: 600;
}
.currency-menu a:hover { background: var(--cyan-dim); color: var(--cyan); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .65rem 1.4rem; border-radius: var(--r);
  font-family: var(--font-d); font-weight: 700; font-size: .76rem;
  letter-spacing: .07em; text-transform: uppercase; cursor: pointer;
  border: none; transition: transform .2s var(--spring), box-shadow .2s, background .2s;
  white-space: nowrap; position: relative; overflow: hidden;
  min-height: 40px; text-align: center;
}
.btn:active { transform: scale(.97) !important; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  color: #000; box-shadow: 0 4px 20px rgba(0,245,255,.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(0,245,255,.38); }
.btn-outline { background: transparent; color: var(--cyan); border: 1px solid var(--border-h); }
.btn-outline:hover { background: var(--cyan-dim); box-shadow: var(--cyan-glow); }
.btn-danger  { background: rgba(239,68,68,.12);  color: #f87171; border: 1px solid rgba(239,68,68,.28); }
.btn-danger:hover  { background: rgba(239,68,68,.22); }
.btn-success { background: rgba(16,185,129,.12); color: var(--green); border: 1px solid rgba(16,185,129,.28); }
.btn-success:hover { background: rgba(16,185,129,.22); }
.btn-warning { background: rgba(245,158,11,.12); color: var(--yellow); border: 1px solid rgba(245,158,11,.28); }
.btn-lg { padding: .88rem 2rem; font-size: .86rem; border-radius: var(--r-lg); min-height: 48px; }
.btn-sm { padding: .38rem .85rem; font-size: .7rem; min-height: 34px; }
.btn-xs { padding: .22rem .6rem; font-size: .64rem; min-height: 28px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Admin badge */
.admin-badge {
  display: inline-block; padding: .14rem .58rem;
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--r-full); font-size: .63rem; color: var(--yellow); font-weight: 700;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); transition: border-color .25s; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--border-h); }
.card-accent-cyan::before, .card-accent-purple::before, .card-accent-green::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.card-accent-cyan::before   { background: linear-gradient(90deg, var(--cyan), var(--purple-l)); }
.card-accent-purple::before { background: linear-gradient(90deg, var(--purple-l), var(--pink)); }
.card-accent-green::before  { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.glass {
  background: var(--glass); backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border); border-radius: var(--r-lg);
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.15rem; }
.form-label {
  display: block; font-size: .79rem; font-weight: 700; color: var(--text2);
  margin-bottom: .4rem; letter-spacing: .06em; text-transform: uppercase;
}
.form-input {
  width: 100%; padding: .78rem 1rem;
  background: rgba(0,0,0,.3); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text); font-family: var(--font);
  font-size: 1rem; /* 1rem prevents iOS zoom */
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.form-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,245,255,.07); background: rgba(0,0,0,.42); }
.form-input::placeholder { color: var(--text3); }
.form-input option { background: var(--card); }
textarea.form-input { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: .76rem; color: var(--text3); margin-top: .28rem; }

/* Progress */
.progress { height: 5px; background: rgba(255,255,255,.07); border-radius: 100px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--purple-l)); border-radius: 100px; transition: width .35s ease, background .3s; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: .85rem 1.1rem; border-radius: var(--r); font-size: .88rem;
  margin-bottom: 1rem; display: flex; align-items: flex-start; gap: .6rem; font-weight: 600; line-height: 1.5;
}
.alert-success { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.25); color: #34d399; }
.alert-error   { background: rgba(239,68,68,.08);  border: 1px solid rgba(239,68,68,.25);  color: #f87171; }
.alert-info    { background: rgba(0,245,255,.07);  border: 1px solid rgba(0,245,255,.2);   color: var(--cyan); }
.alert-warning { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); color: var(--yellow); }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th {
  padding: .82rem 1rem; background: rgba(0,0,0,.35);
  font-family: var(--font-d); font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text3);
  text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border);
}
.table td { padding: .85rem 1rem; border-bottom: 1px solid rgba(255,255,255,.03); font-size: .87rem; color: var(--text2); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(0,245,255,.015); }
.table td.primary { color: var(--text); font-weight: 600; }

/* ── Badges ──────────────────────────────────────────────── */
.badge { padding: .2rem .65rem; border-radius: var(--r-full); font-size: .65rem; font-weight: 700; font-family: var(--font-d); letter-spacing: .04em; display: inline-flex; align-items: center; }
.badge-success { background: rgba(16,185,129,.14); color: var(--green); border: 1px solid rgba(16,185,129,.28); }
.badge-pending { background: rgba(245,158,11,.14); color: var(--yellow); border: 1px solid rgba(245,158,11,.28); }
.badge-danger  { background: rgba(239,68,68,.14);  color: #f87171;      border: 1px solid rgba(239,68,68,.28); }
.badge-info    { background: rgba(0,245,255,.1);   color: var(--cyan);  border: 1px solid rgba(0,245,255,.2); }
.badge-purple  { background: rgba(124,58,237,.14); color: var(--purple-l); border: 1px solid rgba(124,58,237,.28); }
.badge-warning { background: rgba(245,158,11,.14); color: var(--yellow); border: 1px solid rgba(245,158,11,.28); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding: clamp(90px,12vw,130px) 0 clamp(60px,8vw,100px);
  position: relative; overflow: hidden;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem 1rem; background: var(--cyan-dim);
  border: 1px solid rgba(0,245,255,.22); border-radius: var(--r-full);
  font-size: .76rem; font-weight: 700; color: var(--cyan);
  margin-bottom: 1.5rem; letter-spacing: .04em;
}
.badge-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 1.6s infinite; flex-shrink: 0; }
.hero-title {
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.06; letter-spacing: -.025em; margin-bottom: 1.4rem;
}
.hero-desc { color: var(--text2); font-size: clamp(.95rem,1.5vw,1.1rem); line-height: 1.78; margin-bottom: 2.25rem; max-width: 500px; }
.hero-btns { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 2.75rem; }
.hero-stats { display: flex; gap: clamp(1.25rem,3vw,2.5rem); flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; gap: .12rem; }
.stat-num { font-family: var(--font-d); font-size: clamp(1.5rem,2.5vw,1.9rem); font-weight: 900; color: var(--cyan); line-height: 1; }
.stat-label { font-size: .7rem; color: var(--text3); text-transform: uppercase; letter-spacing: .12em; }

/* Code window */
.code-win {
  background: rgba(0,0,0,.58); border: 1px solid rgba(0,245,255,.15);
  border-radius: 14px; overflow: hidden; backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
}
.code-bar {
  padding: .65rem 1rem; background: rgba(0,0,0,.4);
  border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center;
}
.dot-r,.dot-y,.dot-g { width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot-r { background: #ef4444; } .dot-y { background: #f59e0b; } .dot-g { background: #10b981; }
.code-body { padding: 1.25rem; font-family: var(--font-code); font-size: .77rem; line-height: 1.78; }
.ck { color: #a78bfa; } .cc { color: #475569; } .cf { color: #00f5ff; } .cv { color: #34d399; }

/* ── Ticker ──────────────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden; padding: .6rem 0; position: relative;
  background: linear-gradient(135deg, rgba(0,245,255,.04), rgba(124,58,237,.04));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.ticker-inner { display: inline-flex; white-space: nowrap; font-size: .84rem; font-weight: 600; color: var(--text2); }

/* ── Product Cards ───────────────────────────────────────── */
.product-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .3s var(--spring), border-color .25s, box-shadow .3s;
  display: flex; flex-direction: column; position: relative;
}
.product-card:hover {
  border-color: var(--border-h);
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0,0,0,.45), var(--cyan-glow);
}
.product-badge {
  position: absolute; top: .75rem; right: .75rem;
  padding: .18rem .65rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple-l));
  color: #000; border-radius: var(--r-full); font-size: .64rem; font-weight: 700;
  font-family: var(--font-d); z-index: 2; letter-spacing: .06em;
}
.product-thumb {
  aspect-ratio: 16/9; background: linear-gradient(135deg, rgba(0,245,255,.06), rgba(124,58,237,.06));
  display: flex; align-items: center; justify-content: center; font-size: 2.8rem;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; gap: .55rem; }
.product-cat {
  display: inline-block; padding: .16rem .65rem;
  background: var(--cyan-dim); border: 1px solid rgba(0,245,255,.14);
  border-radius: var(--r-full); font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cyan);
}
.product-name { font-family: var(--font-d); font-size: .96rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.product-desc { font-size: .83rem; color: var(--text2); line-height: 1.55; flex: 1; }
.product-rating { display: flex; align-items: center; gap: .4rem; font-size: .81rem; }
.stars { color: var(--yellow); }
.rating-count { color: var(--text3); }
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .85rem; border-top: 1px solid var(--border); flex-wrap: wrap; gap: .5rem; margin-top: auto;
}
.price-wrap { display: flex; align-items: baseline; gap: .5rem; }
.price-new { font-family: var(--font-d); font-size: 1.25rem; font-weight: 900; color: var(--cyan); }
.price-old { font-size: .8rem; color: var(--text3); text-decoration: line-through; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: var(--r); margin-bottom: .65rem; overflow: hidden; transition: border-color .25s; }
.faq-item.open { border-color: rgba(0,245,255,.28); }
.faq-q { padding: 1.05rem 1.25rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .95rem; background: none; border: none; width: 100%; color: var(--text); text-align: left; transition: color .2s; }
.faq-q:hover { color: var(--cyan); }
.faq-chevron { color: var(--cyan); transition: transform .3s; font-size: 1rem; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .3s; padding: 0 1.25rem; color: var(--text2); font-size: .9rem; line-height: 1.75; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 1.25rem 1.1rem; }

/* ── Testimonials ────────────────────────────────────────── */
.testi-card { padding: 1.75rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); transition: var(--tr); }
.testi-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.testi-featured { border-color: rgba(0,245,255,.28); box-shadow: var(--cyan-glow); }
.testi-stars { color: var(--yellow); margin-bottom: .75rem; font-size: 1rem; }
.testi-text { color: var(--text2); font-style: italic; line-height: 1.75; margin-bottom: 1.25rem; font-size: .91rem; }
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, var(--cyan), var(--purple-l)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 700; font-size: .72rem; color: #000; flex-shrink: 0; }
.testi-name { font-weight: 700; font-size: .88rem; }
.testi-role { font-size: .74rem; color: var(--text3); }

/* ── Stat Cards ──────────────────────────────────────────── */
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.35rem 1rem; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .3rem; transition: var(--tr); text-decoration: none; cursor: pointer;
}
.stat-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.stat-card-icon { font-size: 1.5rem; }
.stat-card-val { font-family: var(--font-d); font-size: 1.75rem; font-weight: 900; line-height: 1; }
.stat-card-label { font-size: .68rem; color: var(--text3); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.stat-cyan   { border-top: 2px solid var(--cyan); }
.stat-green  { border-top: 2px solid var(--green); }
.stat-yellow { border-top: 2px solid var(--yellow); }
.stat-purple { border-top: 2px solid var(--purple-l); }

/* ── Dashboard Layout ────────────────────────────────────── */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100svh; padding-top: 64px; }
.dash-sidebar {
  background: rgba(0,0,0,.45); border-right: 1px solid var(--border);
  padding: 1rem 0; position: sticky; top: 64px; height: calc(100svh - 64px); overflow-y: auto;
}
.dash-nav-section { padding: 0 .6rem; }
.dash-nav-label { font-size: .6rem; color: var(--text3); text-transform: uppercase; letter-spacing: .18em; padding: .35rem .75rem; font-family: var(--font-d); margin-top: .75rem; }
.dash-nav-item {
  display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem;
  border-radius: var(--r); font-weight: 700; font-size: .84rem; color: var(--text2);
  transition: var(--tr); width: 100%; text-align: left; border: none; background: none;
}
.dash-nav-item:hover, .dash-nav-item.active { background: var(--cyan-dim); color: var(--cyan); }
.dash-nav-icon { width: 18px; text-align: center; font-size: .95rem; flex-shrink: 0; }
.dash-main { padding: 2rem; background: var(--bg2); min-width: 0; }
.admin-sidebar { background: rgba(0,0,0,.58); }

/* ── Checkout ────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.checkout-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; margin-bottom: 1.25rem; }
.checkout-box h3 { font-family: var(--font-d); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text3); margin-bottom: 1.1rem; }
.order-summary-card { background: rgba(0,0,0,.28); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; position: sticky; top: 84px; }
.summary-row { display: flex; justify-content: space-between; padding: .42rem 0; border-bottom: 1px solid var(--border); font-size: .85rem; color: var(--text2); }
.summary-total { display: flex; justify-content: space-between; padding: .85rem 0 0; font-family: var(--font-d); font-size: 1.05rem; font-weight: 700; color: var(--cyan); }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: clamp(48px,7vw,80px) 0 0; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-logo { font-family: var(--font-d); font-size: 1.1rem; font-weight: 900; margin-bottom: .75rem; }
.footer-desc { color: var(--text2); font-size: .86rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-title { font-family: var(--font-d); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--text3); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .52rem; }
.footer-links a { font-size: .88rem; color: var(--text2); transition: color .2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--text3);
}
.social-links { display: flex; gap: .5rem; margin-top: .85rem; }
.social-link {
  width: 36px; height: 36px; background: rgba(255,255,255,.06);
  border: 1px solid var(--border); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; transition: var(--tr);
}
.social-link:hover { background: var(--cyan-dim); border-color: var(--border-h); transform: translateY(-2px); }

/* ── Back to top ─────────────────────────────────────────── */
.back-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  width: 42px; height: 42px; background: var(--card2);
  border: 1px solid var(--border-h); border-radius: var(--r); cursor: pointer;
  color: var(--cyan); font-size: 1.1rem; display: none;
  align-items: center; justify-content: center;
  transition: var(--tr); box-shadow: var(--shadow);
}
.back-top:hover { background: var(--cyan-dim); transform: translateY(-3px); }
.back-top.visible { display: flex; }

/* ── AOS ─────────────────────────────────────────────────── */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .65s cubic-bezier(.22,1,.36,1); }
[data-aos].aos-in { opacity: 1; transform: translateY(0); }

/* ── Wishlist, bulk, misc ────────────────────────────────── */
.wishlist-btn:hover { background: rgba(0,0,0,.75) !important; transform: scale(1.1); }
#bulkBar { background: rgba(0,245,255,.04); border: 1px solid rgba(0,245,255,.15); padding: .5rem .85rem; border-radius: var(--r); flex-wrap: wrap; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.tab-btn { padding: .82rem 1.1rem; background: none; border: none; border-bottom: 2px solid transparent; font-weight: 700; font-size: .8rem; cursor: pointer; color: var(--text3); white-space: nowrap; flex-shrink: 0; letter-spacing: .04em; transition: color .2s, border-color .2s; }
.tab-btn.tab-active, .tab-btn:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.tab-content { display: none; } .tab-content.active { display: block; }

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.15); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── Print ───────────────────────────────────────────────── */
@media print {
  #particles-js, .orb, .navbar, .footer, .back-top { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Fluid scaling, no magic numbers
══════════════════════════════════════════════════════════ */

/* Tablet: 960px */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container > div { grid-template-columns: 1fr !important; }
  .hero .container > div > div:last-child { display: none !important; }
  .product-detail-grid { grid-template-columns: 1fr !important; }
  .checkout-layout { grid-template-columns: 1fr !important; }
  .order-summary-card { position: static !important; order: -1; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: fixed; top: 64px; left: -260px; bottom: 0; width: 260px; z-index: 495; transition: left .3s var(--ease); height: calc(100svh - 64px); display: block !important; }
  .dash-sidebar.open { left: 0; box-shadow: 8px 0 40px rgba(0,0,0,.7); }
  .dash-main { padding: 1.25rem; }
  /* Nav handled by new drawer system below */
}

/* Mobile: 640px */
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .flex-between { flex-wrap: wrap; gap: .75rem; }
  .btn-lg { font-size: .8rem; padding: .8rem 1.5rem; }
  .dash-main { padding: 1rem !important; padding-bottom: 80px !important; }
  .form-input, select.form-input { font-size: 16px !important; } /* prevent iOS zoom */
  .footer-bottom { flex-direction: column; text-align: center; gap: .75rem; }
  .checkout-box { padding: 1.25rem; }
  .product-card:hover { transform: none; box-shadow: none; }
  .back-top { bottom: 5rem; right: 1rem; }
  .container { padding: 0 1rem; }
}

/* Small: 400px */
@media (max-width: 400px) {
  .section-title { font-size: 1.5rem; }
  .stat-card-val { font-size: 1.5rem; }
  .btn { font-size: .72rem; }
}

/* ── Mobile Bottom Navigation ────────────────────────────── */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 500; background: rgba(6,12,24,.97); border-top: 1px solid var(--border-h); padding-bottom: env(safe-area-inset-bottom, 0); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.mobile-bottom-nav-inner { display: flex; align-items: stretch; height: 60px; }
.mobile-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--text3); font-size: .54rem; font-weight: 700; font-family: var(--font-d); letter-spacing: .06em; text-transform: uppercase; transition: color .2s; position: relative; border: none; background: none; -webkit-tap-highlight-color: transparent; }
.mobile-nav-item .nav-icon { font-size: 1.2rem; line-height: 1; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--cyan); }
.mobile-nav-item.active::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 2px; background: var(--cyan); border-radius: 0 0 3px 3px; }
.mobile-nav-badge { position: absolute; top: 6px; right: calc(50% - 18px); background: #ef4444; color: #fff; border-radius: 100px; font-size: .5rem; font-weight: 700; min-width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.dash-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 490; backdrop-filter: blur(4px); }
.dash-sidebar-overlay.active { display: block; animation: fadeIn .2s; }
.admin-menu-btn { display: none; align-items: center; gap: .4rem; padding: .4rem .75rem; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2); border-radius: var(--r); color: var(--yellow); font-size: .72rem; font-weight: 700; cursor: pointer; font-family: var(--font-d); letter-spacing: .04em; }

@media (max-width: 960px) {
  .mobile-bottom-nav { display: block; }
  .admin-menu-btn { display: flex !important; }
}
@media (min-width: 961px) {
  .admin-menu-btn, .mobile-bottom-nav { display: none !important; }
}

/* ── Scroll indicator for tables on mobile ───────────────── */
@media (max-width: 640px) {
  .table-wrap::after { content: '← swipe to scroll →'; display: block; text-align: center; font-size: .62rem; color: var(--text3); padding: .3rem; border-top: 1px solid var(--border); }
}

/* ── Invoice ─────────────────────────────────────────────── */
.inv-wrap { max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .inv-head { flex-direction: column; gap: 1rem; } .inv-parties { grid-template-columns: 1fr; } }

/* ── Misc / promo popup ──────────────────────────────────── */
#promoPopup { transition: transform .35s var(--spring); }

/* ══════════════════════════════════════════════════════════
   NAVBAR v8 — Clean two-element system
   Desktop: .nav-desktop-links (flex row) + .nav-actions
   Mobile:  #mobileDrawer (slide-in panel, completely separate)
   No CSS class wars, no !important abuse
══════════════════════════════════════════════════════════ */

/* Desktop horizontal nav links */
.nav-desktop-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
}
.nav-desktop-links .nav-link {
  padding: .42rem .85rem;
  border-radius: var(--r);
  font-weight: 700;
  font-size: .82rem;
  color: var(--text2);
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-desktop-links .nav-link:hover,
.nav-desktop-links .nav-link.active {
  color: var(--cyan);
  background: var(--cyan-dim);
}
/* Username shown on desktop, hidden on mobile */
.nav-uname { font-size: .78rem; font-weight: 600; margin-left: .35rem; }

/* Mobile drawer — hidden completely on desktop */
#mobileDrawer {
  display: none; /* JS adds .open which sets display:flex */
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: rgba(6,12,24,.98);
  border-right: 1px solid var(--border-h);
  z-index: 999;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .3s var(--ease);
  overflow-y: auto;
}
#mobileDrawer.open {
  display: flex;
  transform: translateX(0);
  box-shadow: 8px 0 40px rgba(0,0,0,.65);
  animation: slideInDrawer .3s var(--ease) forwards;
}
@keyframes slideInDrawer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  min-height: 64px;
  flex-shrink: 0;
}
.drawer-close {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2); font-size: .9rem;
  transition: background .2s;
}
.drawer-close:hover { background: rgba(255,255,255,.16); }
.drawer-body { display: flex; flex-direction: column; padding: .5rem 0; flex: 1; }
.drawer-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .92rem 1.4rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text2);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color .18s, background .18s;
  text-decoration: none;
  min-height: 48px;
}
.drawer-link:hover,
.drawer-link:active { color: var(--cyan); background: var(--cyan-dim); }
.drawer-divider {
  height: 1px;
  background: var(--border);
  margin: .5rem 0;
}

/* On desktop: drawer never appears, even if JS fires */
@media (min-width: 961px) {
  #mobileDrawer { display: none !important; }
  .hamburger    { display: none !important; }
  .nav-desktop-links { display: flex !important; }
  .nav-uname { display: inline; }
}

/* On mobile: hide desktop link list, show hamburger */
@media (max-width: 960px) {
  .nav-desktop-links { display: none !important; }
  .hamburger         { display: flex !important; }
  .nav-uname         { display: none; }
  .nav-desktop-only  { display: none; }
  .currency-switcher { display: none; }
  .wallet-chip .wallet-amt { display: none; }
  /* Hamburger → X animation */
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
}

