/* === AI SUBSCRIPTIONS — Premium Dark + Gold === */
:root {
  --bg: #0a0908;
  --bg-2: #11100e;
  --bg-3: #1a1815;
  --line: #25221d;
  --line-2: #38332b;
  --ink: #f5f1e8;
  --ink-2: #b8b1a0;
  --ink-3: #6f6957;
  --gold: #d4a93e;
  --gold-2: #f4d27a;
  --gold-3: #8a6d1f;
  --danger: #d4524e;
  --success: #5fa872;

  --font-ar: 'Cairo', 'Inter', system-ui, sans-serif;
  --font-en: 'Inter', system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', 'Cairo', serif;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: default !important; }
a, button, [role="button"], label, select, summary, [onclick] { cursor: pointer !important; }
input, textarea, [contenteditable="true"] { cursor: text !important; }

html { scroll-behavior: smooth; width: 100%; max-width: 100%; overflow-x: clip; }
html, body { margin:0; padding:0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
[lang="en"], .en { font-family: var(--font-en); direction: ltr; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Soft grain backdrop */
body::before {
  content:""; position: fixed; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(800px 500px at 80% -10%, rgba(212,169,62,0.08), transparent 60%),
    radial-gradient(700px 600px at 10% 110%, rgba(212,169,62,0.05), transparent 60%);
}
#root { position: relative; z-index: 1; width: 100%; max-width: 100%; }

/* === Top notification bar === */
.notice-bar {
  background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--gold-3));
  color: #0a0908;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(10,9,8,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1340px; margin: 0 auto; padding: clamp(10px, 2vw, 14px) clamp(14px, 3vw, 28px);
  display: flex; align-items: center; gap: clamp(8px, 1.5vw, 20px); overflow: hidden;
}
.logo {
  display:flex; align-items:center; gap:10px;
  font-weight: 800; font-size: 22px; letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-3));
  display: grid; place-items: center;
  color: #0a0908; font-weight: 900; font-size: 18px;
  font-family: var(--font-display); font-style: italic;
  box-shadow: 0 6px 18px rgba(212,169,62,0.25), inset 0 -2px 0 rgba(0,0,0,0.15);
}
.logo-text { display:flex; flex-direction:column; line-height:1; }
.logo-text .ar { font-size: 15px; font-weight: 800; }
.logo-text .en { font-size: 9px; color: var(--gold-2); letter-spacing: 0.14em; margin-top: 3px; }

.main-nav {
  display:flex; gap: 4px; flex: 1;
}
.nav-link {
  padding: 8px 11px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: 0.15s;
  background: transparent; border: 0;
}
.nav-link:hover { color: var(--ink); background: var(--bg-3); }
.nav-link.active { color: var(--gold-2); background: rgba(212,169,62,0.08); }

.header-actions { display:flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink); display: grid; place-items: center;
  position: relative; transition: 0.15s;
}
.icon-btn:hover { border-color: var(--gold-3); color: var(--gold-2); }
.icon-btn .badge {
  position: absolute; top: -4px; left: -4px;
  background: var(--gold); color: #0a0908;
  font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: grid; place-items: center;
  padding: 0 5px;
}
.lang-toggle {
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  padding: 8px 12px; border-radius: 10px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.05em;
}
.lang-toggle:hover { border-color: var(--gold-3); color: var(--gold-2); }

/* === Header search === */
.header-search {
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  animation: slideDown 0.2s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.header-search-inner {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 10px 14px;
  color: var(--ink-3);
}
.header-search-inner input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--ink); font-family: inherit; font-size: 14px;
}
.header-search-inner input::placeholder { color: var(--ink-3); }
.header-search-results {
  margin-top: 10px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; max-height: 360px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.header-search-results::-webkit-scrollbar { width: 6px; }
.header-search-results::-webkit-scrollbar-track { background: transparent; }
.header-search-results::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.header-search-results::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
.header-search-hit {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer; transition: 0.15s;
  border-bottom: 1px solid var(--line);
}
.header-search-hit:last-child { border-bottom: none; }
.header-search-hit:hover { background: var(--bg-3); }

/* Mobile nav search */
.mnav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 12px;
  color: var(--ink-3);
}
.mnav-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--ink); font-family: inherit; font-size: 13px;
}
.mnav-search input::placeholder { color: var(--ink-3); }
.mnav-search-results {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 12px; overflow: hidden;
  max-height: 280px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.mnav-search-results::-webkit-scrollbar { width: 5px; }
.mnav-search-results::-webkit-scrollbar-track { background: transparent; }
.mnav-search-results::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* === Hero === */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 28px 64px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 1340px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 99px;
  background: rgba(212,169,62,0.08);
  border: 1px solid rgba(212,169,62,0.25);
  color: var(--gold-2);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
}
.hero-eyebrow .dot { width: 6px; height:6px; border-radius:50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 78px);
  font-weight: 800; line-height: 1.05;
  margin: 18px 0 18px;
  letter-spacing: -0.02em;
}
.hero h1 .gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold), var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  padding: 0 6px;
}
.hero p.lede { font-size: 18px; color: var(--ink-2); max-width: 540px; line-height: 1.65; }
.hero-cta { display:flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; margin-top: 38px; padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.hero-stat {
  min-width: 0;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
}
.hero-stat.live {
  border-color: rgba(95,168,114,0.32);
  background: linear-gradient(135deg, rgba(95,168,114,0.14), rgba(255,255,255,0.035));
  box-shadow: 0 14px 36px rgba(95,168,114,0.08);
}
.hero-stats .num {
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; color: var(--gold-2);
  font-family: var(--font-display); font-style: italic;
  line-height: 1;
}
.hero-stat.live .num { color: #9be3ad; }
.hero-stat-unit {
  font-size: 0.5em;
  font-family: var(--font-ar);
  font-style: normal;
  color: var(--ink-2);
}
.hero-stats .lbl { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.35; }

.hero-deal-timer {
  max-width: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(212,169,62,0.28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(212,169,62,0.16), rgba(95,168,114,0.08)),
    rgba(17,16,14,0.72);
  box-shadow: 0 20px 56px rgba(0,0,0,0.24);
}
.deal-copy {
  min-width: 0;
}
.deal-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.deal-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #9be3ad;
  box-shadow: 0 0 0 0 rgba(155,227,173,0.55);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(155,227,173,0.48); }
  50% { box-shadow: 0 0 0 8px rgba(155,227,173,0); }
}
.deal-copy strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.15;
}
.deal-end-label {
  display: inline-block;
  margin-top: 6px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
}
.deal-end-label bdi {
  unicode-bidi: isolate;
}
.deal-copy p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}
.deal-clock {
  display: grid;
  grid-template-columns: repeat(3, minmax(58px, 1fr));
  gap: 8px;
}
.deal-clock span {
  min-width: 0;
  min-height: 66px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(10,9,8,0.54);
}
.deal-clock strong {
  color: var(--gold-2);
  font: 900 clamp(22px, 3vw, 34px)/1 var(--font-en);
}
.deal-clock small {
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.hero-visual {
  position: relative; height: 540px;
}
.float-card {
  position: absolute; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 18px; padding: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
}
.float-card.c1 { top: 0; right: 12%; width: 240px; animation-delay: 0s; }
.float-card.c2 { top: 28%; right: 50%; width: 260px; animation-delay: -2s; }
.float-card.c3 { top: 58%; right: 8%; width: 240px; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px;
  font-size: 15px; font-weight: 700;
  border: 1px solid transparent;
  transition: 0.15s; white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #0a0908;
  box-shadow: 0 8px 24px rgba(212,169,62,0.3);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(212,169,62,0.4); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-dark {
  background: var(--bg-3); color: var(--ink);
  border-color: var(--line);
}
.btn-dark:hover { border-color: var(--gold-3); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* === Sections === */
.section { padding: clamp(28px, 4.8vw, 56px) clamp(16px, 4vw, 28px); }
.section-inner { max-width: 1340px; margin: 0 auto; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: clamp(20px, 2.8vw, 28px); gap: 18px; flex-wrap: wrap;
}
.section-title { font-size: clamp(22px, 4vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.section-title em {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  color: var(--gold-2); font-size: 1.05em;
}
.section-sub { color: var(--ink-2); margin-top: 8px; font-size: clamp(13px, 2vw, 16px); }
.section-link { color: var(--gold-2); font-weight: 700; font-size: 14px; }
.section-link:hover { color: var(--gold); }

/* === Categories grid — always scrollable === */
.cat-grid {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 16px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.cat-grid::-webkit-scrollbar { height: 4px; }
.cat-grid::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }
.cat-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: clamp(14px, 2.5vw, 24px) clamp(12px, 2vw, 20px);
  text-align: right; cursor: pointer; transition: 0.3s;
  position: relative; overflow: hidden;
  min-width: 160px; flex: 1 0 160px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1), inset 0 0 0 0.5px rgba(255,255,255,0.06);
}
.cat-card:hover {
  border-color: rgba(212,169,62,0.5);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 20px rgba(212,169,62,0.12), inset 0 1px 0 rgba(255,255,255,0.15);
}
.cat-card::before {
  content:""; position: absolute; inset: 0;
  background: radial-gradient(220px 100px at 100% 0%, rgba(212,169,62,0.08), transparent 60%);
  opacity: 0; transition: 0.2s;
}
.cat-card:hover::before { opacity: 1; }
.cat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-3), rgba(212,169,62,0.2));
  display: grid; place-items: center;
  font-size: 22px; margin-bottom: 12px;
}
.cat-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.cat-card .count { font-size: 12px; color: var(--ink-3); }
.cat-card .arrow { position: absolute; bottom: 20px; left: 20px; opacity: 0.4; transition: 0.2s; }
.cat-card:hover .arrow { opacity: 1; color: var(--gold-2); transform: translateX(-4px); }

/* === Best sellers carousel === */
.carousel-wrap { position: relative; }
.carousel {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 0 14px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  overscroll-behavior-inline: contain;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

/* Global thin scrollbar for panels */
.mobile-nav-body::-webkit-scrollbar,
.summary-items::-webkit-scrollbar,
.drawer-body::-webkit-scrollbar { width: 5px; }
.mobile-nav-body::-webkit-scrollbar-track,
.summary-items::-webkit-scrollbar-track,
.drawer-body::-webkit-scrollbar-track { background: transparent; }
.mobile-nav-body::-webkit-scrollbar-thumb,
.summary-items::-webkit-scrollbar-thumb,
.drawer-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

/* === Product card === */
.product-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); overflow: hidden;
  transition: 0.3s; cursor: pointer;
  display: flex; flex-direction: column;
  min-width: clamp(180px, 28vw, 260px); scroll-snap-align: start;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1), inset 0 0 0 0.5px rgba(255,255,255,0.06);
}
.product-card:hover {
  border-color: rgba(212,169,62,0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 24px rgba(212,169,62,0.15), inset 0 1px 0 rgba(255,255,255,0.15);
}
.product-card .thumb {
  height: 160px; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.product-card .thumb::after {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4));
}
.brand-badge {
  font-family: var(--font-en);
  font-weight: 800; font-size: 38px;
  color: white; letter-spacing: -0.02em;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.product-card .body { padding: 16px 18px 18px; }
.product-card .brand-name {
  font-size: 11px; color: var(--gold-2); text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 700;
  font-family: var(--font-en); direction: ltr; text-align: right;
}
.product-card .plan-name {
  font-size: 17px; font-weight: 700; margin: 6px 0 4px;
}
.product-card .billing {
  font-size: 12px; color: var(--ink-3);
}
.product-card .card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  gap: 10px;
}
.product-card .price-area { line-height: 1; }
.product-card .price-num {
  font-size: 22px; font-weight: 800; color: var(--ink);
  font-family: var(--font-en); direction: ltr;
}
.product-card .price-cur {
  font-size: 11px; color: var(--ink-3); margin-right: 2px; font-weight: 600;
}
.review-pill {
  font-size: 11px; padding: 4px 10px; border-radius: 99px;
  background: rgba(212,82,78,0.12); color: #ee8480;
  border: 1px solid rgba(212,82,78,0.3);
  font-weight: 700;
}
.btn-buy {
  background: var(--gold); color: #0a0908;
  border: 0; padding: 9px 14px; border-radius: 9px;
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  transition: 0.15s;
}
.btn-buy:hover { background: var(--gold-2); }

/* === Catalog page === */
.catalog-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: clamp(16px, 3vw, 32px);
  max-width: 1340px; margin: 0 auto; padding: clamp(16px, 3vw, 32px) clamp(14px, 3vw, 28px) clamp(40px, 6vw, 80px);
}
.filter-panel {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  position: sticky; top: 100px; align-self: start;
}
.filter-panel h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3); margin: 20px 0 12px; font-weight: 700;
}
.filter-panel h4:first-child { margin-top: 0; }
.filter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.filter-list button {
  width: 100%; text-align: right;
  padding: 9px 12px; border-radius: 8px;
  background: transparent; border: 0; color: var(--ink-2);
  font-size: 14px; transition: 0.15s;
  display: flex; justify-content: space-between; align-items: center;
}
.filter-list button:hover { background: var(--bg-3); color: var(--ink); }
.filter-list button.active {
  background: rgba(212,169,62,0.1); color: var(--gold-2);
  border: 1px solid rgba(212,169,62,0.2);
}
.filter-list .cnt { font-size: 11px; color: var(--ink-3); font-family: var(--font-en); }

.mobile-filter-bar {
  display: none;
}

.catalog-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.catalog-title {
  font-size: clamp(22px, 3.5vw, 32px); font-weight: 800; letter-spacing: -0.02em;
}
.catalog-meta { color: var(--ink-3); font-size: 14px; }
.search-box {
  position: relative; flex: 1; max-width: 360px; min-width: 220px;
}
.search-box input {
  width: 100%; padding: 11px 40px 11px 16px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink);
  font-family: inherit; font-size: 14px;
}
.search-box input:focus { outline: none; border-color: var(--gold-3); }
.search-box svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(160px, 25vw, 240px), 1fr)); gap: clamp(10px, 2vw, 16px);
}

/* === Product detail page === */
.detail-layout {
  max-width: 1340px; margin: 0 auto; padding: clamp(16px, 3vw, 32px) clamp(14px, 3vw, 28px) clamp(40px, 6vw, 80px);
}
.breadcrumbs {
  display:flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: 13px;
  margin-bottom: 24px;
}
.breadcrumbs a:hover { color: var(--gold-2); }
.breadcrumbs span { opacity: 0.5; }

.detail-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 4vw, 48px);
}
.detail-visual {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); aspect-ratio: 4/3;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.detail-visual .brand-badge { font-size: 90px; }
.detail-visual::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(400px 200px at 50% 100%, rgba(212,169,62,0.15), transparent 70%);
}
.detail-info h1 {
  font-size: clamp(24px, 4vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  margin: 8px 0 12px;
}
.detail-info .brand-line {
  font-size: 12px; color: var(--gold-2); letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 700;
  font-family: var(--font-en); direction: ltr; text-align: right;
}
.detail-info .desc { color: var(--ink-2); font-size: 15px; line-height: 1.7; margin: 16px 0 24px; }

.plan-options { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.plan-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--bg-2);
  cursor: pointer; transition: 0.15s; user-select: none;
}
.plan-option * { cursor: pointer; }
.plan-option:hover { border-color: var(--line-2); }
.plan-option.selected {
  border-color: var(--gold);
  background: rgba(212,169,62,0.06);
  box-shadow: 0 0 0 4px rgba(212,169,62,0.08);
}
.plan-option .name { font-weight: 700; font-size: 16px; }
.plan-option .billing { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.plan-option .price-num { font-size: 22px; font-weight: 800; font-family: var(--font-en); }
.plan-option .price-cur { font-size: 11px; color: var(--ink-3); }
.plan-guide {
  margin: 8px 0 14px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.6;
}
.plan-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.plan-badge.popular {
  color: #0a0908;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 20px rgba(212,169,62,0.18);
}
.plan-badge.value {
  color: #86efac;
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.28);
}
.plan-badge.new {
  color: #bfdbfe;
  background: rgba(96,165,250,0.12);
  border: 1px solid rgba(96,165,250,0.28);
}
.plan-hint {
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.45;
}

.detail-buy { display: flex; gap: 12px; margin-top: 24px; }
.detail-buy-sticky {
  display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: stretch;
  position: sticky; bottom: 16px; z-index: 30;
  padding: 10px; border-radius: 16px;
  background: rgba(10,9,8,0.72);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.detail-buy-sticky .btn { min-width: 0; width: 100%; white-space: nowrap; }
.detail-buy-sticky .detail-add-btn { width: auto; min-width: 112px; padding-inline: 16px; }
.detail-add-btn.is-added {
  border-color: rgba(37,211,102,0.45);
  color: #86efac;
  background: rgba(37,211,102,0.12);
}
.detail-wa-btn, .detail-add-btn { min-height: 52px; }
.sticky-selected-package {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 0 4px 2px;
}
.sticky-selected-package span {
  color: var(--ink-3);
  font-size: 11px;
  white-space: nowrap;
}
.sticky-selected-package strong {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feature-list {
  list-style: none; padding: 0; margin: 24px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px;
}
.feature-list li {
  display: flex; gap: 10px; align-items: start;
  font-size: 14px; color: var(--ink-2);
}
.feature-list .check {
  color: var(--gold); flex-shrink: 0; margin-top: 2px;
}

/* === Cart drawer === */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px); z-index: 180;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.drawer {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: min(440px, 100vw);
  background: var(--bg); border-right: 1px solid var(--line);
  z-index: 181; display: flex; flex-direction: column;
  animation: slideIn 0.25s cubic-bezier(0.2,0.9,0.3,1);
}
@keyframes slideIn { from { transform: translateX(-100%); } }
.drawer-head {
  padding: 20px 24px; border-bottom: 1px solid var(--line);
  display:flex; align-items:center; justify-content: space-between;
}
.drawer-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.close-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-3); border: 0; color: var(--ink); display: grid; place-items: center;
}
.close-btn:hover { background: var(--bg-2); color: var(--gold-2); }

.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.drawer-foot {
  border-top: 1px solid var(--line); padding: 20px 24px; background: var(--bg-2);
}
.cart-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item .thumb-sm {
  width: 56px; height: 56px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-en); font-weight: 800; font-size: 22px; color: white;
}
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .b-line { font-size: 11px; color: var(--gold-2); font-family: var(--font-en); direction: ltr; text-align:right; letter-spacing: 0.1em; }
.cart-item .p-line { font-size: 14px; font-weight: 700; margin-top: 2px; }
.cart-item .price { font-size: 15px; font-weight: 800; font-family: var(--font-en); }
.qty-ctrl { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty-ctrl button {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--ink); font-weight: 700;
}
.qty-ctrl button:hover { border-color: var(--gold-3); }
.qty-ctrl button:disabled { opacity: 0.45; cursor: not-allowed; }
.qty-ctrl button:disabled:hover { border-color: var(--line); }
.qty-ctrl span { font-family: var(--font-en); font-weight: 700; min-width: 20px; text-align: center; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.cart-empty .ico { font-size: 56px; margin-bottom: 12px; opacity: 0.4; }

.totals { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.totals .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.totals .row.total { font-size: 18px; font-weight: 800; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--line); }
.totals .num { font-family: var(--font-en); }

/* === Checkout === */
.checkout-page { max-width: 1100px; margin: 0 auto; padding: 32px 28px 80px; }
.steps {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 36px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 20px;
}
.step { display: flex; align-items: center; gap: 10px; flex: 1; }
.step .num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-3); display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: var(--ink-3);
  border: 1px solid var(--line);
  font-family: var(--font-en);
}
.step.done .num, .step.active .num {
  background: var(--gold); color: #0a0908; border-color: var(--gold);
}
.step .lbl { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.step.active .lbl, .step.done .lbl { color: var(--ink); }
.step .bar { flex: 1; height: 1px; background: var(--line); }
.step.done .bar { background: var(--gold-3); }

.checkout-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
}
.panel {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.panel h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.panel .sub { color: var(--ink-3); font-size: 14px; margin-bottom: 22px; }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form-row .req { color: var(--gold); }
.form-row input, .form-row textarea, .form-row select {
  background: var(--bg); border: 1px solid var(--line);
  color: var(--ink); padding: 12px 14px; border-radius: 10px;
  font-family: inherit; font-size: 14px;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--gold-3);
}
.form-row .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* === Lead capture === */
.lead-capture-section {
  max-width: 1180px;
  margin: 28px auto 42px;
  padding: 0 28px;
}
.lead-capture-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(212,169,62,0.09), rgba(37,211,102,0.05)),
    var(--bg-2);
  padding: 18px;
}
.lead-copy,
.lead-form {
  border-radius: 14px;
  padding: 22px;
}
.lead-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lead-copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}
.lead-copy p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.7;
}
.lead-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.lead-points span {
  border: 1px solid rgba(212,169,62,0.22);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--gold-2);
  background: rgba(0,0,0,0.12);
  font-size: 12px;
  font-weight: 800;
}
.lead-form {
  display: grid;
  gap: 12px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.06);
}
.lead-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.lead-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}
.lead-form label b {
  color: var(--gold-2);
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}
.lead-form textarea {
  resize: vertical;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--gold-3);
}
.lead-consent {
  display: flex !important;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 9px !important;
  color: var(--ink-2) !important;
  line-height: 1.55;
}
.lead-consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
}
.lead-hp {
  position: absolute;
  left: -9999px;
  width: 1px !important;
  height: 1px;
  opacity: 0;
}
.lead-form-error,
.lead-form-success {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
}
.lead-form-error {
  border: 1px solid rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.1);
  color: #fca5a5;
}
.lead-form-success {
  border: 1px solid rgba(34,197,94,0.28);
  background: rgba(34,197,94,0.08);
  color: #86efac;
}
.lead-privacy-note {
  margin: -2px 0 0;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.55;
}

.lead-popup {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  width: min(420px, calc(100vw - 32px));
  z-index: 95;
  pointer-events: none;
}
.lead-popup-card {
  position: relative;
  pointer-events: auto;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(212,169,62,0.28);
  border-radius: 16px;
  background: rgba(18, 16, 14, 0.96);
  box-shadow: 0 22px 70px rgba(0,0,0,0.45);
  padding: 18px;
  animation: leadPopupIn 0.25s ease;
}
@keyframes leadPopupIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.lead-popup-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lead-popup-close:hover {
  border-color: var(--line-2);
  color: var(--ink);
}
.lead-popup-copy {
  padding-inline-end: 28px;
}
.lead-popup-copy h3 {
  margin: 7px 0 6px;
  font-size: 22px;
  line-height: 1.2;
}
.lead-popup-copy p {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.6;
}
.lead-popup-form {
  display: grid;
  gap: 10px;
}
.lead-popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lead-popup-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}
.lead-popup-form input,
.lead-popup-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  padding: 10px 11px;
  font: inherit;
}
.lead-popup-form input:focus,
.lead-popup-form select:focus {
  outline: none;
  border-color: var(--gold-3);
}
.lead-popup-note {
  margin: -2px 0 0;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.5;
}

.pay-method-list { display: flex; flex-direction: column; gap: 12px; }
.pay-method {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 20px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: 0.15s; background: var(--bg);
}
.pay-method:hover { border-color: var(--line-2); }
.pay-method.selected {
  border-color: var(--gold); background: rgba(212,169,62,0.05);
}
.pay-method .pm-logo {
  width: 56px; height: 56px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; color: white;
  font-family: var(--font-en); font-size: 13px; flex-shrink: 0;
  text-align: center; line-height: 1.1;
}
.pay-method .pm-name { font-size: 16px; font-weight: 700; }
.pay-method .pm-desc { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.pay-method .radio {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line-2); position: relative; flex-shrink: 0;
}
.pay-method.selected .radio { border-color: var(--gold); }
.pay-method.selected .radio::after {
  content:""; position:absolute; inset: 4px;
  background: var(--gold); border-radius: 50%;
}

.pay-instructions {
  margin-top: 20px; padding: 20px;
  background: var(--bg-3); border-radius: var(--radius);
  border: 1px dashed var(--line-2);
}
.pay-instructions h4 { margin: 0 0 12px; color: var(--gold-2); font-size: 14px; }
.pay-instructions ol { margin: 0; padding-right: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.pay-instructions code {
  background: var(--bg-2); padding: 3px 8px; border-radius: 5px;
  font-family: var(--font-en); color: var(--gold-2);
  font-weight: 700; border: 1px solid var(--line);
}

.summary {
  position: sticky; top: 100px; align-self: start;
}
.summary-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; max-height: 400px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.summary-item {
  display: flex; gap: 12px; align-items: center;
}
.summary-item .thumb-sm { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; color: white; font-weight: 800; font-family: var(--font-en); flex-shrink: 0; }
.summary-item .info { flex: 1; min-width: 0; }
.summary-item .b { font-size: 11px; color: var(--gold-2); font-family: var(--font-en); direction: ltr; text-align: right; }
.summary-item .p { font-size: 13px; font-weight: 700; }
.summary-item .price { font-family: var(--font-en); font-weight: 800; }
.summary-item .qty { font-size: clamp(10px, 2vw, 12px); color: var(--ink-3); }

/* Success */
.success-card {
  text-align: center; padding: clamp(48px, 2vw, 60px) clamp(24px, 2vw, 32px);
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 600px; margin: clamp(48px, 2vw, 60px) auto;
}
.success-icon {
  width: clamp(64px, 2vw, 88px); height: clamp(64px, 2vw, 88px); border-radius: 50%; margin: 0 auto clamp(20px, 2vw, 24px);
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  display: grid; place-items: center; color: #0a0908; font-size: 44px;
  box-shadow: 0 0 60px rgba(212,169,62,0.4);
}
.success-card h1 { font-size: 32px; font-weight: 800; margin: 0 0 8px; }
.success-card .order-no {
  display: inline-block; padding: 6px 16px; border-radius: 99px;
  background: var(--bg-3); border: 1px solid var(--line);
  font-family: var(--font-en); font-weight: 700; color: var(--gold-2);
  margin: 16px 0 24px;
}
.success-card p { color: var(--ink-2); line-height: 1.7; }

/* === Footer === */
.footer {
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: clamp(28px, 5vw, 60px) clamp(16px, 3vw, 28px) clamp(20px, 3vw, 30px); margin-top: clamp(30px, 5vw, 60px);
}
.footer-inner {
  max-width: 1340px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(16px, 3vw, 40px);
}
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-2); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--ink-2); font-size: 14px; }
.footer a:hover { color: var(--gold-2); }
.footer-bottom {
  max-width: 1340px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--ink-3);
}
.social-row { display: flex; gap: 10px; margin-top: 12px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2);
}
.social-row a:hover { border-color: var(--gold-3); color: var(--gold-2); }

/* === Auth Modal === */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: 20px;
  animation: fadeIn 0.2s;
}
.modal {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 440px;
  padding: 40px 36px;
  position: relative;
  animation: pop 0.25s cubic-bezier(0.2,0.9,0.3,1);
}
@keyframes pop {
  from { transform: scale(0.95); opacity: 0; }
}
.modal h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.modal-sub { color: var(--ink-3); margin-bottom: 28px; font-size: 14px; }
.modal .close-btn { position: absolute; top: 16px; left: 16px; }
.tab-row {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg-3); border-radius: 10px; padding: 4px;
  margin-bottom: 24px;
}
.tab-row button {
  padding: 10px; border-radius: 8px;
  background: transparent; border: 0; color: var(--ink-2);
  font-weight: 700; font-size: 14px;
}
.tab-row button.active { background: var(--gold); color: #0a0908; }

/* === Account page === */
.account-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 28px;
  max-width: 1200px; margin: 0 auto; padding: 32px 28px 80px;
}
.account-side { display: flex; flex-direction: column; gap: 8px; }
.acc-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px;
  background: transparent; border: 0; color: var(--ink-2);
  font-size: 15px; font-weight: 600; text-align: right;
  width: 100%;
}
.acc-link:hover { background: var(--bg-3); color: var(--ink); }
.acc-link.active { background: rgba(212,169,62,0.1); color: var(--gold-2); }
.user-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.user-card .avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  display: grid; place-items: center; color: #0a0908;
  font-weight: 800; font-size: 18px; font-family: var(--font-en);
}
.order-row {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  margin-bottom: 12px;
}
.order-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.order-head .id { font-family: var(--font-en); font-weight: 700; color: var(--gold-2); font-size: 14px; }
.order-head .date { font-size: 13px; color: var(--ink-3); }
.status-pill {
  font-size: 11px; padding: 4px 10px; border-radius: 99px;
  font-weight: 700; letter-spacing: 0.05em;
}
.status-pill.delivered { background: rgba(95,168,114,0.15); color: var(--success); border: 1px solid rgba(95,168,114,0.3); }
.status-pill.pending { background: rgba(212,169,62,0.12); color: var(--gold-2); border: 1px solid rgba(212,169,62,0.3); }

/* === Hamburger + Mobile nav drawer === */
.hamburger-btn {
  display: none;
  width: 36px; height: 36px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink); place-items: center;
  cursor: pointer; flex-shrink: 0;
}
.hamburger-btn:hover { border-color: var(--gold-3); color: var(--gold-2); }

.mobile-nav-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px); z-index: 200;
  animation: fadeIn 0.2s;
}
.mobile-nav-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg); border-left: 1px solid var(--line);
  z-index: 201; display: flex; flex-direction: column;
  animation: mobileSlideIn 0.25s cubic-bezier(0.2,0.9,0.3,1);
}
[dir="ltr"] .mobile-nav-drawer {
  right: auto; left: 0;
  border-left: 0; border-right: 1px solid var(--line);
}
@keyframes mobileSlideIn { from { transform: translateX(100%); } }
[dir="ltr"] .mobile-nav-drawer { animation-name: mobileSlideInLtr; }
@keyframes mobileSlideInLtr { from { transform: translateX(-100%); } }

.mobile-nav-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav-body {
  flex: 1; overflow-y: auto; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 4px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.mobile-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px;
  background: transparent; border: 0; color: var(--ink-2);
  font-size: 15px; font-weight: 600; text-align: right; width: 100%;
  font-family: inherit; cursor: pointer; transition: 0.15s;
}
.mobile-nav-link:hover { background: var(--bg-3); color: var(--ink); }
.mobile-nav-link.active { background: rgba(212,169,62,0.1); color: var(--gold-2); }

/* Nav icons */
.mnav-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-3); display: grid; place-items: center;
  font-size: 16px; flex-shrink: 0;
}
.mobile-nav-link.active .mnav-icon { background: rgba(212,169,62,0.15); }

/* Divider */
.mnav-divider { height: 1px; background: var(--line); margin: 8px 16px; }

/* Dropdown chevron */
.mnav-chevron {
  display: grid; place-items: center; color: var(--ink-3);
  transition: transform 0.25s;
}
.mnav-chevron.open { transform: rotate(180deg); }

/* Dropdown sub-menu */
.mnav-sub {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  padding: 0 8px;
}
.mnav-sub.open { max-height: 400px; padding: 4px 8px 8px; }
.mnav-sub-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 16px 10px 48px;
  border: 0; background: transparent; color: var(--ink-2);
  font-size: 14px; font-weight: 500; border-radius: 8px;
  font-family: inherit; cursor: pointer; transition: 0.15s;
  text-align: right;
}
.mnav-sub-link:hover { background: var(--bg-3); color: var(--ink); }
.mnav-sub-link.active { color: var(--gold-2); background: rgba(212,169,62,0.06); }
.mnav-cnt {
  font-size: 11px; color: var(--ink-3); font-family: var(--font-en);
  background: var(--bg-3); padding: 2px 8px; border-radius: 10px;
}

/* WhatsApp button */
.mnav-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px; border-radius: 12px;
  background: #25D366; color: white; font-weight: 700; font-size: 15px;
  text-decoration: none; font-family: inherit;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  transition: 0.2s;
}
.mnav-wa-btn:hover { background: #1da851; }

.mobile-nav-foot {
  padding: 16px 20px; border-top: 1px solid var(--line);
}

/* Mobile */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .hamburger-btn { display: grid; }
  .header-actions { margin-inline-start: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats,
  .hero-deal-timer { max-width: 100%; }
  .hero-visual { height: 280px; }
  .float-card { padding: 14px; border-radius: 14px; }
  .float-card.c1 { width: 200px; }
  .float-card.c2 { width: 210px; top: 22%; right: 45%; }
  .float-card.c3 { width: 200px; top: 50%; }
  
  .catalog-layout, .checkout-grid, .account-grid { grid-template-columns: 1fr; }
  .filter-panel, .summary { position: static; }
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  /* Header */
  .header-inner { padding: 14px 16px; gap: 10px; }
  .main-nav { display: none; }
  .hamburger-btn { display: grid; width: 40px; height: 40px; }
  .logo-text .ar { font-size: 14px; }
  .logo-text .en { font-size: 10px; }
  .logo-mark { width: 36px; height: 36px; font-size: 15px; }
  .header-actions { gap: 8px; margin-inline-start: auto; }
  .icon-btn { width: 40px; height: 40px; }
  .lang-toggle { padding: 8px 12px; font-size: 12px; }
  .notice-bar { font-size: 12px; padding: 8px 14px; }

  /* Hero */
  .hero { padding: 48px 28px 36px; }
  .hero-inner { gap: 16px; }
  .hero h1 { font-size: 34px; line-height: 1.08; margin: 16px 0 14px; }
  .hero p.lede { font-size: 15px; line-height: 1.6; }
  .hero-visual { display: none; }
  .hero-cta { flex-direction: column; gap: 10px; align-items: stretch; margin-top: 22px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
  }
  .hero-stat {
    min-height: 74px;
    padding: 11px 10px;
    border-radius: 12px;
  }
  .hero-stats .num {
    font-size: 25px;
  }
  .hero-stats .lbl {
    font-size: 11px;
  }
  .hero-deal-timer {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
    padding: 13px;
    border-radius: 14px;
  }
  .deal-clock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .deal-clock span {
    min-height: 50px;
    padding: 7px 5px;
  }
  .deal-live {
    font-size: 10px;
  }
  .deal-copy strong {
    font-size: 19px;
  }
  .deal-clock strong {
    font-size: 22px;
  }
  .deal-copy p {
    display: none;
  }

  /* Trust strip — compact 4-column on mobile, hide subtitles */
  .trust-grid {
    grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important;
  }
  .trust-item {
    flex-direction: column; align-items: center !important; text-align: center; gap: 6px !important;
  }
  .trust-item div:first-child { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
  .trust-sub { display: none; }
  .trust-item div:last-child > div:first-child { font-size: 11px !important; }

  /* Category — hide arrow on mobile */
  .cat-card .arrow { display: none; }
  .cat-grid { scrollbar-width: none; }
  .cat-grid::-webkit-scrollbar { display: none; }

  /* Product cards — compact */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-card { min-width: 0; border-radius: 12px; }
  .product-card .thumb { height: 90px; }
  .product-card .body { padding: 10px 10px 12px; }
  .product-tag { top: 6px; right: 6px; padding: 3px 8px; font-size: 9px; }
  .product-card .brand-name { font-size: 9px; letter-spacing: 0.1em; }
  .product-card .plan-name { font-size: 13px; margin: 3px 0 2px; }
  .product-card .billing { font-size: 10px; }
  .product-card .card-foot { margin-top: 8px; padding-top: 8px; gap: 6px; }
  .product-card .price-num { font-size: 16px; }
  .product-card .price-cur { font-size: 9px; }
  .brand-badge { font-size: 18px; width: 44px !important; height: 44px !important; border-radius: 12px !important; }
  .btn-buy { padding: 6px 10px !important; font-size: 11px; border-radius: 7px; }
  .btn-buy span { font-size: 10px !important; }

  /* Card foot — stack buttons vertically on mobile */
  .product-card .card-foot { flex-direction: column; gap: 6px !important; }
  .product-card .card-foot .btn, .product-card .card-foot .btn-ghost,
  .product-card .card-foot .btn-buy, .product-card .card-foot a {
    width: 100%; justify-content: center; text-align: center;
    padding: 8px 0 !important; font-size: 11px !important;
  }

  /* Carousel */
  .carousel { gap: 8px; padding: 4px 0 12px; }
  .carousel .product-card { min-width: 180px; }
  .carousel-wrap { padding-bottom: 4px; }

  /* Footer — compact on mobile */
  .feature-list { grid-template-columns: 1fr; }
  .footer { padding: 24px 16px 16px !important; margin-top: 30px !important; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; gap: 16px 10px; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .footer-inner > div:first-child p { font-size: 11px !important; margin-top: 6px !important; max-width: none !important; }
  .footer h4 { font-size: 10px; margin-bottom: 8px; letter-spacing: 0.08em; }
  .footer ul { gap: 4px; }
  .footer a { font-size: 11px; }
  .footer li { font-size: 11px; }
  .footer-bottom { margin-top: 16px !important; padding-top: 12px; font-size: 11px; }
  .social-row { margin-top: 8px; }
  .social-row a { width: 30px; height: 30px; }

  /* Checkout / panels */
  .checkout-page, .catalog-layout, .account-grid { padding: 12px; }
  .form-row.two { grid-template-columns: 1fr; }
  .lead-capture-section { padding: 0 12px; margin: 18px auto 26px; }
  .lead-capture-inner { grid-template-columns: 1fr; padding: 12px; }
  .lead-copy, .lead-form { padding: 16px; }
  .lead-form-grid { grid-template-columns: 1fr; }
  .lead-popup { inset-inline: 12px; bottom: 72px; width: auto; }
  .lead-popup-grid { grid-template-columns: 1fr; }
  .lead-popup-card { padding: 16px; border-radius: 14px; }
  .lead-copy h2 { font-size: 24px; }
  .panel { padding: 14px; border-radius: 14px; }
  .step .lbl { display: none; }
  .cart-item .thumb-sm { width: 44px; height: 44px; border-radius: 8px; }
  .qty-ctrl button { width: 28px; height: 28px; }

  /* Detail page */
  .detail-layout {
    padding-bottom: calc(132px + env(safe-area-inset-bottom)) !important;
  }
  .detail-grid { gap: 16px; }
  .detail-grid h1, .detail-buy + * h1 { font-size: 24px !important; }
  .desc { font-size: 13px; }
  .plans-list .plan-row { padding: 10px; }
  .plan-guide { font-size: 12px; margin-bottom: 10px; }
  .plan-option { align-items: flex-start; gap: 10px; padding: 13px 14px; }
  .plan-name-row { gap: 6px; }
  .plan-badge { min-height: 20px; padding: 3px 7px; font-size: 9px; }
  .plan-hint { font-size: 11px; }
  .detail-buy-sticky {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 130;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
    width: auto;
    max-width: 560px;
    margin: 0 auto;
    padding: 8px;
    border-radius: 14px;
  }
  .detail-buy-sticky .btn {
    min-height: 48px;
    padding: 0 10px;
    gap: 6px;
    font-size: 12px;
  }
  .detail-buy-sticky .detail-add-btn {
    min-width: 86px;
    padding-inline: 12px;
  }
  .sticky-selected-package {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .toast {
    max-width: calc(100vw - 24px);
    padding: 10px 12px;
    font-size: 12px;
  }
  .admin-page { padding: 14px; }
  .admin-head, .admin-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-actions { width: 100%; }
  .admin-actions .btn { flex: 1; justify-content: center; }
  .admin-stat-grid, .admin-grid, .admin-funnel {
    grid-template-columns: 1fr;
  }

  /* Filter panel — compact horizontal chips on mobile */
  .filter-panel {
    margin-bottom: 12px; padding: 10px 12px;
    border-radius: 12px;
  }
  .filter-panel h4 { font-size: 10px; margin: 8px 0 6px; }
  .filter-panel h4:first-child { margin-top: 0; }
  .filter-list {
    flex-direction: row !important; flex-wrap: wrap; gap: 6px;
  }
  .filter-list button {
    width: auto; padding: 6px 12px; font-size: 12px;
    border-radius: 20px; border: 1px solid var(--line);
    white-space: nowrap;
  }
  .filter-list button.active {
    border-radius: 20px;
  }

  /* Drawer */
  .drawer { width: min(340px, 92vw); }
  .drawer-head { padding: 14px 16px; }
  .drawer-head h2 { font-size: 17px; }
  .drawer-body { padding: 12px 14px; }
  .drawer-foot { padding: 14px 16px; }
}
@media (max-width: 380px) {
  .catalog-layout .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .catalog-layout .product-card .thumb { height: 82px; }
  .catalog-layout .product-card .body { padding: 9px 8px 10px; }
  .catalog-layout .product-card .plan-name { font-size: 12px; }
  .catalog-layout .product-card .billing { font-size: 9px; }
  .catalog-layout .product-card .price-num { font-size: 15px; }
  .carousel .product-card { min-width: 160px; }
  .hero h1 { font-size: 24px; }
  .cat-card { min-width: 120px; }
}

/* === Fly-to-cart animation === */
.fly-item {
  will-change: left, top, width, height, opacity, transform;
}
.icon-btn.cart-bounce {
  animation: cartBounce 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes cartBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.badge.badge-pop {
  animation: badgePop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes badgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); background: var(--gold-2); }
  100% { transform: scale(1); }
}

/* utility */
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.center { align-items: center; }
.between { justify-content: space-between; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--ink-3); }
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--gold);
  animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Page transition === */
.page-transition {
  animation: pageIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === Glassmorphism cards === */
.glass-card {
  background: rgba(17,16,14,0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212,169,62,0.12);
  border-radius: var(--radius-lg);
}

/* === Trust strip grid === */
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.trust-item {
  display: flex; gap: 14px; align-items: start;
}

/* === Subtle hover lift + border glow === */
.product-card { position: relative; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-color: var(--line-2);
}

/* === Product tags === */
.product-tag {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  padding: 4px 10px; border-radius: 99px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
}
.product-tag.best-seller {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0a0908;
}
.product-tag.new-tag {
  background: linear-gradient(135deg, #25D366, #1da851);
  color: white;
}
.product-tag.popular {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

/* === Sticky WhatsApp button === */
.sticky-wa {
  position: fixed; bottom: 24px; left: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: white;
  display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  border: 0; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: waFloat 3s ease-in-out infinite;
}
.sticky-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}
html[dir="ltr"] .sticky-wa {
  left: auto;
  right: 24px;
}
@keyframes waFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.sticky-wa .tooltip {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--ink); padding: 8px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.sticky-wa:hover .tooltip { opacity: 1; }

/* === FAQ Accordion === */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 8px; overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--line-2); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 18px 20px;
  background: transparent; border: 0; color: var(--ink);
  font-size: 15px; font-weight: 700; text-align: right;
  font-family: inherit; cursor: pointer; gap: 12px;
}
.faq-q .faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-3); display: grid; place-items: center;
  flex-shrink: 0; transition: transform 0.3s, background 0.3s;
  font-size: 14px; color: var(--ink-2);
}
.faq-item.open .faq-q .faq-icon {
  transform: rotate(45deg);
  background: rgba(212,169,62,0.15); color: var(--gold-2);
}
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s;
  padding: 0 20px;
  color: var(--ink-2); font-size: 14px; line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 300px; padding: 0 20px 18px;
}

/* === Search dropdown === */
.search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 12px; margin-top: 4px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  max-height: 360px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.search-dropdown::-webkit-scrollbar { width: 5px; }
.search-dropdown::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.search-hit {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 16px; cursor: pointer;
  transition: background 0.15s;
}
.search-hit:hover { background: var(--bg-3); }
.search-hit:not(:last-child) { border-bottom: 1px solid var(--line); }
.search-hit .hit-brand { font-size: 11px; color: var(--gold-2); font-weight: 600; }
.search-hit .hit-plan { font-size: 14px; font-weight: 700; }
.search-hit .hit-cat { font-size: 11px; color: var(--ink-3); }
.search-empty { padding: 24px; text-align: center; color: var(--ink-3); font-size: 14px; }

/* === Testimonials === */
.testimonial-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 28px 24px;
  min-width: 300px; scroll-snap-align: start;
  transition: 0.3s;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1), inset 0 0 0 0.5px rgba(255,255,255,0.06);
}
.testimonial-card:hover {
  border-color: rgba(212,169,62,0.5); transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 20px rgba(212,169,62,0.12), inset 0 1px 0 rgba(255,255,255,0.15);
}
.testimonial-stars { color: var(--gold-2); font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-text { font-size: 14px; color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-3), var(--gold));
  display: grid; place-items: center;
  color: #0a0908; font-weight: 800; font-size: 16px;
}
.testimonial-name { font-weight: 700; font-size: 14px; }
.testimonial-sub { font-size: 12px; color: var(--ink-3); }

/* === Skeleton loading === */
.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--line) 50%, var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Toast notification === */
.toast-container {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  z-index: 999; display: flex; flex-direction: column; gap: 8px;
  align-items: center; pointer-events: none;
}
.toast {
  background: var(--bg-2); border: 1px solid var(--gold-3);
  color: var(--ink); padding: 12px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.2s forwards;
  pointer-events: auto;
}
.toast .toast-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: #0a0908;
  display: grid; place-items: center; font-size: 12px; font-weight: 900;
  flex-shrink: 0;
}
.toast-action {
  margin-inline-start: 4px;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid rgba(212,169,62,0.28);
  background: rgba(212,169,62,0.1);
  color: var(--gold-2);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.toast-action:hover {
  border-color: var(--gold);
  background: rgba(212,169,62,0.16);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }

/* === Admin dashboard === */
.admin-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  padding: clamp(18px, 4vw, 42px);
}
.admin-layout {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.admin-shell {
  max-width: 1240px;
  margin: 0 auto;
}
.admin-sidebar {
  position: sticky;
  top: 18px;
  min-width: 0;
  height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 16, 14, 0.92);
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  overflow: hidden;
}
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.admin-sidebar-brand strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}
.admin-logo-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--bg);
  font-family: var(--font-en);
  font-weight: 900;
}
.admin-nav {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline-end: 4px;
}
.admin-nav::-webkit-scrollbar { width: 4px; }
.admin-nav::-webkit-scrollbar-track { background: transparent; }
.admin-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 999px; }
.admin-nav button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  padding: 10px 11px;
  text-align: start;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.admin-nav button:hover,
.admin-nav button.active {
  border-color: rgba(212,169,62,0.34);
  background: rgba(212,169,62,0.1);
  color: var(--ink);
}
.admin-nav-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.admin-nav-text strong,
.admin-nav-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-nav-text strong {
  font-size: 14px;
}
.admin-nav-text small,
.admin-sidebar-foot span {
  color: var(--ink-3);
  font-size: 11px;
}
.admin-nav-badge {
  min-width: 28px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: var(--gold-2);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
}
.admin-sidebar-foot {
  margin-top: auto;
  flex: 0 0 auto;
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.admin-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}
.admin-login {
  width: min(440px, 100%);
  margin: 10vh auto 0;
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
  box-shadow: 0 22px 70px rgba(0,0,0,0.35);
}
.admin-login h1, .admin-head h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
}
.admin-login p, .admin-head p, .admin-muted {
  margin: 0;
  color: var(--ink-3);
  line-height: 1.6;
}
.admin-login input, .admin-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-3);
  color: var(--ink);
  padding: 10px 12px;
  font-family: inherit;
}
.admin-kicker {
  color: var(--gold-2);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-error {
  border: 1px solid rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.1);
  color: #fca5a5;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}
.admin-head, .admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-head {
  padding: 4px 2px 2px;
}
.admin-head-actions {
  display: flex;
  gap: 8px;
}
.admin-actions {
  display: flex;
  gap: 8px;
}
.admin-section {
  display: grid;
  gap: 14px;
}
.admin-stat-grid, .admin-grid {
  display: grid;
  gap: 14px;
}
.admin-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  margin-bottom: 14px;
}
.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}
.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
}
.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.admin-panel, .admin-stat {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 16px;
  padding: 16px;
}
.admin-panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.admin-panel-head h2 {
  margin-bottom: 5px;
}
.admin-online-panel {
  margin-bottom: 0;
}
.admin-online-head h2 {
  margin-bottom: 6px;
}
.admin-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,0.28);
  background: rgba(34,197,94,0.08);
  color: #86efac;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.admin-live-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}
.admin-online-list {
  display: grid;
  gap: 8px;
}
.admin-online-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
.admin-online-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.admin-online-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}
.admin-online-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.admin-online-copy strong,
.admin-online-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-online-copy strong {
  font-size: 14px;
}
.admin-online-copy span {
  color: var(--ink-3);
  font-size: 12px;
}
.admin-online-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.admin-online-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--ink-2);
  background: rgba(0,0,0,0.12);
  font-size: 12px;
  white-space: nowrap;
}
.admin-stat {
  display: grid;
  gap: 8px;
  align-content: start;
}
.admin-stat span {
  color: var(--ink-3);
  font-size: 12px;
}
.admin-stat strong {
  font-size: 28px;
  font-family: var(--font-en);
}
.admin-stat small {
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.45;
}
.admin-funnel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.admin-form {
  display: grid;
  gap: 12px;
}
.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-3);
  font-size: 12px;
}
.admin-form label:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-form input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
}
.admin-top-list {
  display: grid;
  gap: 8px;
}
.admin-top-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}
.admin-top-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}
.admin-table th, .admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: start;
  font-size: 12px;
  vertical-align: top;
}
.admin-table th {
  color: var(--ink-3);
  font-weight: 800;
}
.admin-table-link {
  color: var(--gold-2);
  font-weight: 800;
  text-decoration: none;
}
.admin-table-link:hover {
  text-decoration: underline;
}
.admin-contact-cell,
.admin-note-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.admin-note-cell strong {
  font-size: 12px;
  color: var(--ink);
}
.admin-note-cell span {
  color: var(--ink-3);
  line-height: 1.45;
}
.admin-ip-hash {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--ink-3);
}
.admin-wa-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.admin-wa-status.open {
  color: #9be3ad;
  background: rgba(95,168,114,0.1);
  border: 1px solid rgba(95,168,114,0.26);
}
.admin-wa-status.blocked {
  color: #fca5a5;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.26);
}

.admin-comments-table {
  min-width: 980px;
}

.admin-review-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  border: 1px solid rgba(212,169,62,0.24);
  background: rgba(212,169,62,0.09);
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-review-status.approved {
  border-color: rgba(95,168,114,0.26);
  background: rgba(95,168,114,0.1);
  color: #9be3ad;
}

.admin-review-status.rejected {
  border-color: rgba(239,68,68,0.26);
  background: rgba(239,68,68,0.1);
  color: #fca5a5;
}

.admin-rating {
  color: var(--gold-2) !important;
  font-family: var(--font-en);
  letter-spacing: 1px;
}

.admin-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 1040px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    min-height: 0;
    overflow: hidden;
  }
  .admin-nav {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .admin-nav button {
    min-width: 166px;
  }
  .admin-sidebar-foot {
    margin-top: 0;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .admin-overview-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* === Back to top button === */
.back-to-top {
  position: fixed; bottom: 90px; right: 24px; z-index: 100;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--gold-2); display: grid; place-items: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--bg-3); transform: translateY(-2px); border-color: var(--gold-3); }

/* === Mobile sticky WA === */
@media (max-width: 640px) {
  .sticky-wa { width: 48px; height: 48px; bottom: 16px; left: 16px; }
  .sticky-wa .tooltip { display: none; }
  .testimonial-card { min-width: 260px; padding: 20px 16px; }
  .faq-q { padding: 14px 16px; font-size: 14px; }
  .search-dropdown { border-radius: 10px; }
  .admin-layout { gap: 12px; }
  .admin-sidebar { padding: 12px; border-radius: 14px; }
  .admin-nav button { min-width: 148px; min-height: 58px; }
  .admin-sidebar-foot { grid-template-columns: 1fr; }
  .admin-head-actions { width: 100%; }
  .admin-head-actions .btn { flex: 1; justify-content: center; }
  .admin-metric-grid { grid-template-columns: 1fr; }
  .admin-online-row { grid-template-columns: 1fr; }
  .admin-online-meta { justify-content: flex-start; }
  .back-to-top { bottom: 76px; right: 16px; width: 40px; height: 40px; }
}

/* === Admin dashboard polish === */
.admin-page {
  overflow-x: clip;
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(212,169,62,0.08), transparent 58%),
    radial-gradient(760px 460px at 100% 18%, rgba(95,168,114,0.06), transparent 62%),
    var(--bg);
  padding: clamp(16px, 2.4vw, 32px);
}
.admin-mobile-topbar,
.admin-sidebar-backdrop {
  display: none;
}
.admin-layout {
  width: min(1360px, 100%);
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 16px;
}
.admin-sidebar,
.admin-head,
.admin-panel,
.admin-stat {
  border-color: rgba(255,255,255,0.08);
  background: rgba(17,16,14,0.84);
  box-shadow: 0 18px 46px rgba(0,0,0,0.22);
}
.admin-sidebar {
  min-height: calc(100vh - 32px);
  gap: 14px;
  border-radius: 14px;
  padding: 14px;
}
.admin-sidebar-brand {
  gap: 10px;
  padding-bottom: 12px;
}
.admin-sidebar-brand strong {
  font-size: 15px;
}
.admin-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.admin-nav {
  gap: 6px;
}
.admin-nav button {
  min-height: 54px;
  justify-content: flex-start;
  gap: 10px;
  border-radius: 10px;
  padding: 9px 10px;
}
.admin-nav-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  background: rgba(255,255,255,0.03);
}
.admin-nav button:hover .admin-nav-icon,
.admin-nav button.active .admin-nav-icon {
  border-color: rgba(212,169,62,0.35);
  color: var(--gold-2);
  background: rgba(212,169,62,0.1);
}
.admin-nav-badge {
  margin-inline-start: auto;
}
.admin-sidebar-foot {
  gap: 9px;
}
.admin-head {
  align-items: flex-start;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 0;
}
.admin-head h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}
.admin-head p {
  max-width: 760px;
  font-size: 13px;
}
.admin-head-actions {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-privacy-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(95,168,114,0.28);
  border-radius: 999px;
  padding: 0 11px;
  color: #9be3ad;
  background: rgba(95,168,114,0.08);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.admin-section {
  gap: 16px;
}
.admin-stat-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 0;
}
.admin-stat {
  min-height: 106px;
  border-radius: 14px;
  padding: 14px;
}
.admin-stat span {
  color: var(--ink-2);
}
.admin-stat strong {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  color: var(--ink);
}
.admin-panel {
  border-radius: 14px;
  padding: 16px;
}
.admin-panel h2,
.admin-panel-head h2 {
  font-size: 17px;
}
.admin-overview-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px;
}
.admin-funnel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-grid {
  gap: 16px;
  margin-bottom: 0;
}
.admin-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.admin-online-row,
.admin-top-row {
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
}
.admin-table-wrap {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(0,0,0,0.12);
  overflow: auto;
}
.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #15130f;
}
.admin-table tr:hover td {
  background: rgba(255,255,255,0.025);
}
.admin-form {
  max-width: 760px;
}

@media (max-width: 1180px) {
  .admin-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    min-height: 0;
  }
  .admin-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }
  .admin-nav button {
    min-width: 0;
  }
  .admin-sidebar-foot {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .admin-overview-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-page {
    padding: 10px;
  }
  .admin-layout,
  .admin-main,
  .admin-section {
    gap: 10px;
  }
  .admin-sidebar {
    padding: 10px;
    border-radius: 12px;
  }
  .admin-sidebar-brand {
    padding-bottom: 10px;
  }
  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .admin-nav button {
    min-height: 48px;
    padding: 8px;
  }
  .admin-nav-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  .admin-nav-text small {
    display: none;
  }
  .admin-nav-text strong {
    font-size: 12px;
  }
  .admin-nav-badge {
    min-width: 24px;
    min-height: 22px;
    font-size: 11px;
    padding: 0 6px;
  }
  .admin-sidebar-foot {
    grid-template-columns: 1fr;
  }
  .admin-head {
    padding: 14px;
    gap: 12px;
  }
  .admin-head-actions {
    width: 100%;
    justify-content: stretch;
  }
  .admin-head-actions .btn,
  .admin-privacy-pill {
    flex: 1;
    justify-content: center;
  }
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .admin-stat {
    min-height: 88px;
    padding: 12px;
  }
  .admin-stat strong {
    font-size: 24px;
  }
  .admin-panel {
    padding: 12px;
    border-radius: 12px;
  }
  .admin-panel-head {
    gap: 10px;
    margin-bottom: 12px;
  }
  .admin-funnel,
  .admin-metric-grid {
    grid-template-columns: 1fr;
  }
  .admin-table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table {
    min-width: 0;
    border-collapse: separate;
  }
  .admin-table thead {
    display: none;
  }
  .admin-table tr {
    margin-bottom: 10px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
  }
  .admin-table td {
    display: grid;
    grid-template-columns: minmax(86px, 34%) minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 8px 0;
    font-size: 12px;
  }
  .admin-table td::before {
    content: attr(data-label);
    color: var(--ink-3);
    font-weight: 800;
  }
  .admin-table td:last-child {
    border-bottom: 0;
  }
  .admin-table tr.admin-empty-row td,
  .admin-table td[colspan] {
    display: block;
    text-align: center;
  }
  .admin-table tr.admin-empty-row td::before,
  .admin-table td[colspan]::before {
    content: none;
  }
  .admin-online-row {
    grid-template-columns: 1fr;
  }
  .admin-online-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .admin-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-mobile-topbar {
    position: sticky;
    top: 8px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0 0 10px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(17,16,14,0.94);
    box-shadow: 0 14px 36px rgba(0,0,0,0.24);
    backdrop-filter: blur(14px);
  }
  .admin-mobile-topbar > span {
    min-width: 0;
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .admin-menu-toggle {
    min-width: 0;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(212,169,62,0.24);
    border-radius: 10px;
    background: rgba(212,169,62,0.1);
    color: var(--gold-2);
    padding: 0 12px;
    font: 800 13px/1 var(--font-ar);
    cursor: pointer;
  }
  .admin-menu-toggle span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    border: 0;
    background: rgba(0,0,0,0.58);
    cursor: pointer;
  }
  .catalog-layout {
    display: block;
  }
  .catalog-layout > .filter-panel {
    display: none;
  }
  .mobile-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
  }
  .mobile-filter-bar label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: var(--ink-3);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .mobile-filter-bar select {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-2);
    color: var(--ink);
    padding: 0 10px;
    font: 700 12px/1.2 var(--font-ar);
  }
  .mobile-filter-bar select:focus {
    outline: none;
    border-color: var(--gold-3);
  }
  .catalog-head {
    gap: 10px;
    margin-bottom: 14px;
  }
  .catalog-head .search-box {
    max-width: none;
    min-width: 100%;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-layout .admin-sidebar {
    position: fixed;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: auto;
    z-index: 120;
    width: min(318px, calc(100vw - 28px));
    min-height: 0;
    max-height: calc(100vh - 20px);
    padding: 12px;
    overflow-y: auto;
    transform: translateX(calc(100% + 20px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .admin-layout .admin-sidebar.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .admin-layout .admin-nav {
    grid-template-columns: 1fr;
  }
  .admin-layout .admin-nav button {
    min-height: 52px;
  }
}

/* === Admin live operations redesign === */
.admin-page {
  --admin-bg: #080807;
  --admin-shell: rgba(12, 13, 12, 0.92);
  --admin-surface: rgba(18, 19, 17, 0.88);
  --admin-surface-2: rgba(255,255,255,0.035);
  --admin-line: rgba(255,255,255,0.09);
  --admin-line-strong: rgba(212,169,62,0.26);
  --admin-text: #f6f2e9;
  --admin-muted: #9b9486;
  --admin-faint: #6f685d;
  --admin-gold: #d4a93e;
  --admin-gold-soft: #f4d27a;
  --admin-green: #66d17d;
  --admin-red: #ef6b62;
  min-height: 100vh;
  padding: clamp(14px, 2.4vw, 28px);
  background:
    linear-gradient(180deg, rgba(212,169,62,0.08), transparent 330px),
    radial-gradient(860px 520px at 88% 0%, rgba(102,209,125,0.075), transparent 58%),
    radial-gradient(940px 620px at 10% 100%, rgba(212,169,62,0.07), transparent 60%),
    var(--admin-bg);
}

.admin-layout {
  width: min(1500px, 100%);
  min-height: calc(100vh - clamp(28px, 4.8vw, 56px));
  gap: 0;
  grid-template-columns: 274px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--admin-line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  box-shadow: 0 28px 80px rgba(0,0,0,0.36);
  overflow: clip;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  min-height: calc(100vh - clamp(28px, 4.8vw, 56px));
  border: 0;
  border-inline-end: 1px solid var(--admin-line);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(10,11,10,0.96), rgba(11,13,12,0.9));
  box-shadow: none;
  padding: 18px 14px;
}

.admin-sidebar-brand {
  border-bottom-color: var(--admin-line);
  padding-bottom: 16px;
}

.admin-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--admin-gold-soft), var(--admin-gold));
  box-shadow: 0 14px 30px rgba(212,169,62,0.16);
}

.admin-sidebar-brand strong {
  color: var(--admin-text);
  font-size: 16px;
  letter-spacing: 0;
}

.admin-kicker {
  color: var(--admin-gold-soft);
  letter-spacing: 0.1em;
}

.admin-nav {
  gap: 8px;
}

.admin-nav button {
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--admin-muted);
  background: transparent;
  transform: translateZ(0);
}

.admin-nav button:hover {
  background: rgba(255,255,255,0.045);
  color: var(--admin-text);
}

.admin-nav button.active {
  border-color: rgba(212,169,62,0.22);
  background:
    linear-gradient(90deg, rgba(212,169,62,0.22), rgba(212,169,62,0.045)),
    rgba(255,255,255,0.025);
  color: var(--admin-text);
  box-shadow: inset 3px 0 0 var(--admin-gold);
}

.admin-nav-icon {
  border-color: var(--admin-line);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
}

.admin-nav button.active .admin-nav-icon,
.admin-nav button:hover .admin-nav-icon {
  border-color: rgba(212,169,62,0.34);
  color: var(--admin-gold-soft);
  background: rgba(212,169,62,0.12);
}

.admin-nav-text strong {
  font-size: 13px;
  color: inherit;
}

.admin-nav-text small,
.admin-sidebar-foot span,
.admin-muted {
  color: var(--admin-muted);
}

.admin-nav-badge {
  background: rgba(255,255,255,0.07);
  color: var(--admin-gold-soft);
  border: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-foot {
  border-top-color: var(--admin-line);
}

.admin-main {
  gap: 16px;
  padding: 16px;
}

.admin-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: 16px;
  align-items: start;
  margin: 0;
  padding: 18px;
  border: 0;
  border-bottom: 1px solid var(--admin-line);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    rgba(10,11,10,0.45);
  box-shadow: none;
}

.admin-head-main {
  min-width: 0;
}

.admin-head h1 {
  margin-top: 3px;
  color: var(--admin-text);
  font-size: clamp(25px, 2.5vw, 38px);
  letter-spacing: 0;
}

.admin-head p {
  max-width: 760px;
  color: var(--admin-muted);
  font-size: 13px;
}

.admin-command-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--admin-faint);
  font-size: 12px;
  font-weight: 800;
}

.admin-sync-pill,
.admin-privacy-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(102,209,125,0.26);
  border-radius: 10px;
  padding: 0 11px;
  color: #a8ecb6;
  background: rgba(102,209,125,0.08);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-sync-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--admin-green);
  box-shadow: 0 0 0 5px rgba(102,209,125,0.12);
  animation: adminPulse 1.6s ease-in-out infinite;
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.admin-search-box {
  min-width: min(360px, 100%);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: rgba(0,0,0,0.24);
  color: var(--admin-faint);
  padding: 0 12px;
}

.admin-search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--admin-text);
  font: 700 13px/1 var(--font-ar);
}

.admin-search-box input::placeholder {
  color: var(--admin-faint);
}

.admin-refresh-btn {
  gap: 7px;
}

.admin-head-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--admin-line);
  padding-top: 14px;
}

.admin-head-metrics.is-context {
  grid-template-columns: minmax(220px, 360px);
  justify-content: start;
}

.admin-panel,
.admin-stat {
  border: 1px solid var(--admin-line);
  background: var(--admin-surface);
  box-shadow: 0 18px 54px rgba(0,0,0,0.23);
}

.admin-panel {
  border-radius: 14px;
  padding: 16px;
}

.admin-panel h2,
.admin-panel-head h2,
.admin-bars-panel h2 {
  margin: 0;
  color: var(--admin-text);
  font-size: 17px;
  line-height: 1.25;
}

.admin-panel-head {
  align-items: flex-start;
  margin-bottom: 15px;
}

.admin-stat {
  min-height: 102px;
  display: grid;
  gap: 8px;
  align-content: start;
  border-radius: 12px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.052), rgba(255,255,255,0.016)),
    rgba(0,0,0,0.12);
}

.admin-stat.is-compact {
  min-height: 88px;
  border-width: 0;
  border-inline-start: 1px solid var(--admin-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-stat-top span,
.admin-stat span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-stat-top i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  color: var(--admin-gold-soft);
  background: rgba(212,169,62,0.08);
  font-style: normal;
}

.admin-stat strong {
  color: var(--admin-text);
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1;
}

.admin-stat small {
  color: var(--admin-faint);
  font-size: 11px;
  line-height: 1.4;
}

.admin-stat.tone-success .admin-stat-top i,
.admin-stat.tone-success strong {
  color: #9be8ab;
}

.admin-stat.tone-danger .admin-stat-top i,
.admin-stat.tone-danger strong {
  color: #ff9d96;
}

.admin-stat.tone-gold .admin-stat-top i,
.admin-stat.tone-gold strong,
.admin-stat.tone-accent .admin-stat-top i,
.admin-stat.tone-accent strong {
  color: var(--admin-gold-soft);
}

.admin-storage-panel .admin-panel-head .btn {
  gap: 7px;
}

.admin-storage-table {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.admin-storage-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  background: rgba(0,0,0,0.16);
  padding: 10px 12px;
}

.admin-storage-row span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-storage-row code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--admin-text);
  font-family: var(--font-en);
  font-size: 12px;
  text-align: left;
}

.admin-storage-note {
  margin-top: 14px;
  line-height: 1.7;
}

.admin-section {
  gap: 16px;
}

.admin-ops-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
  gap: 16px;
  align-items: start;
}

.admin-live-board {
  min-height: 488px;
}

.admin-board-head .admin-muted {
  margin-top: 5px;
}

.admin-live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.78fr);
  gap: 14px;
  align-items: stretch;
}

.admin-live-table {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

.admin-live-pill {
  border-radius: 10px;
  animation: adminGlow 2.8s ease-in-out infinite;
}

.admin-online-list {
  display: grid;
  gap: 9px;
}

.admin-online-row {
  grid-template-columns: minmax(190px, 0.78fr) minmax(0, 1fr);
  border-color: rgba(255,255,255,0.075);
  border-radius: 10px;
  background: rgba(255,255,255,0.028);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.admin-online-row:hover {
  border-color: rgba(212,169,62,0.28);
  background: rgba(212,169,62,0.045);
  transform: translateY(-1px);
}

.admin-online-dot {
  background: var(--admin-green);
  box-shadow: 0 0 0 5px rgba(102,209,125,0.13), 0 0 16px rgba(102,209,125,0.35);
}

.admin-online-copy strong,
.admin-note-cell strong {
  color: var(--admin-text);
}

.admin-online-copy span,
.admin-note-cell span {
  color: var(--admin-muted);
}

.admin-online-meta {
  gap: 5px;
}

.admin-online-meta span,
.admin-ip-hash {
  color: var(--admin-muted);
}

.admin-online-meta span {
  border-color: rgba(255,255,255,0.07);
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
}

.admin-link-action {
  width: max-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--admin-gold-soft);
  font: 900 13px/1 var(--font-ar);
  padding: 0;
}

.admin-list-toggle {
  width: max-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  border: 1px solid rgba(212,169,62,0.26);
  border-radius: 9px;
  background: rgba(212,169,62,0.08);
  color: var(--admin-gold-soft);
  padding: 0 11px;
  font: 900 12px/1 var(--font-ar);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.admin-list-toggle:hover {
  border-color: rgba(212,169,62,0.42);
  background: rgba(212,169,62,0.13);
  transform: translateY(-1px);
}

.admin-presence-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(160px, 1fr) auto;
  gap: 14px;
  border-inline-start: 1px solid var(--admin-line);
  padding-inline-start: 14px;
}

.admin-signal-map {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.065);
  border-radius: 12px;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(102,209,125,0.14), transparent 22%),
    rgba(0,0,0,0.2);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.signal-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--admin-green);
  box-shadow: 0 0 0 8px rgba(102,209,125,0.12), 0 0 22px rgba(102,209,125,0.36);
}

.dot-a { top: 30%; inset-inline-start: 22%; }
.dot-b { top: 46%; inset-inline-start: 55%; }
.dot-c { top: 66%; inset-inline-start: 42%; }
.dot-d { top: 24%; inset-inline-start: 74%; }

.signal-line {
  position: absolute;
  height: 1px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(102,209,125,0.55), transparent);
}

.line-a { width: 38%; top: 36%; inset-inline-start: 24%; transform: rotate(12deg); }
.line-b { width: 32%; top: 51%; inset-inline-start: 43%; transform: rotate(-21deg); }
.line-c { width: 26%; top: 64%; inset-inline-start: 47%; transform: rotate(18deg); }

.admin-insight-rail {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.admin-flow-list,
.admin-top-list,
.admin-timeline {
  display: grid;
  gap: 9px;
}

.admin-flow-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 0 11px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.admin-flow-row:last-child {
  border-bottom: 0;
}

.admin-flow-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212,169,62,0.24);
  border-radius: 8px;
  color: var(--admin-gold-soft);
  background: rgba(212,169,62,0.08);
  font: 900 11px/1 var(--font-en);
}

.admin-flow-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.admin-flow-copy span,
.admin-top-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--admin-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.admin-flow-copy strong,
.admin-top-row strong {
  color: var(--admin-text);
  font: 900 13px/1 var(--font-en);
}

.admin-flow-track {
  grid-column: 2;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
}

.admin-flow-track span {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--admin-gold), var(--admin-green));
}

.admin-bars-panel.compact h2 {
  margin-bottom: 10px;
  font-size: 15px;
}

.admin-top-row {
  position: relative;
  min-height: 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.065);
  border-radius: 9px;
  background: rgba(255,255,255,0.026);
}

.admin-top-row::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--bar);
  background: linear-gradient(90deg, rgba(212,169,62,0.26), rgba(102,209,125,0.12));
  pointer-events: none;
}

.admin-top-row span,
.admin-top-row strong {
  position: relative;
}

.admin-overview-secondary,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

.admin-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.admin-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-funnel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-timeline {
  margin-bottom: 14px;
}

.admin-timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.admin-timeline-row:last-child {
  border-bottom: 0;
}

.admin-timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--admin-muted);
}

.admin-timeline-row.tone-success .admin-timeline-dot { background: var(--admin-green); box-shadow: 0 0 0 5px rgba(102,209,125,0.11); }
.admin-timeline-row.tone-danger .admin-timeline-dot { background: var(--admin-red); box-shadow: 0 0 0 5px rgba(239,107,98,0.12); }
.admin-timeline-row.tone-accent .admin-timeline-dot { background: var(--admin-gold); box-shadow: 0 0 0 5px rgba(212,169,62,0.12); }

.admin-timeline-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-timeline-copy strong {
  color: var(--admin-text);
  font-size: 13px;
}

.admin-timeline-copy span,
.admin-timeline-row time {
  min-width: 0;
  overflow: hidden;
  color: var(--admin-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.admin-table-wrap {
  border-color: var(--admin-line);
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
}

.admin-table {
  min-width: 860px;
}

.admin-table th,
.admin-table td {
  border-bottom-color: rgba(255,255,255,0.075);
  padding: 11px 10px;
  font-size: 12px;
}

.admin-table th {
  color: var(--admin-muted);
  background: #11120f;
}

.admin-table tr:hover td {
  background: rgba(212,169,62,0.035);
}

.admin-empty-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}

.admin-login {
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.018)),
    rgba(14,15,13,0.94);
}

.comment-submit-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(102,209,125,0.28);
  border-radius: 10px;
  background: rgba(102,209,125,0.08);
  color: #9be3ad;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.comment-submit-note.is-error {
  border-color: rgba(239,107,98,0.3);
  background: rgba(239,107,98,0.09);
  color: #ffb1aa;
}

@keyframes adminPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.25); opacity: 1; }
}

@keyframes adminGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(102,209,125,0); }
  50% { box-shadow: 0 0 26px rgba(102,209,125,0.14); }
}

@media (max-width: 1260px) {
  .admin-layout {
    grid-template-columns: 246px minmax(0, 1fr);
  }
  .admin-head {
    grid-template-columns: 1fr;
  }
  .admin-head-actions {
    justify-content: flex-start;
  }
  .admin-ops-shell,
  .admin-live-layout {
    grid-template-columns: 1fr;
  }
  .admin-presence-panel {
    border-inline-start: 0;
    border-top: 1px solid var(--admin-line);
    padding-inline-start: 0;
    padding-top: 14px;
  }
}

@media (max-width: 1040px) {
  .admin-layout {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
  .admin-sidebar {
    position: static;
    min-height: 0;
    border-inline-end: 0;
    border-bottom: 1px solid var(--admin-line);
  }
  .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-head-metrics,
  .admin-stat-grid,
  .admin-metric-grid,
  .admin-overview-secondary,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-page {
    padding: 10px;
  }
  .admin-layout {
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .admin-main {
    padding: 0;
  }
  .admin-head {
    padding: 14px;
    border: 1px solid var(--admin-line);
    border-radius: 14px;
  }
  .admin-head-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .admin-search-box {
    min-width: 0;
    width: 100%;
  }
  .admin-head-metrics,
  .admin-stat-grid,
  .admin-metric-grid,
  .admin-overview-secondary,
  .admin-grid,
  .admin-funnel {
    grid-template-columns: 1fr;
  }
  .admin-stat.is-compact {
    border-inline-start: 0;
    border-top: 1px solid var(--admin-line);
  }
  .admin-live-board {
    min-height: 0;
  }
  .admin-online-row {
    grid-template-columns: 1fr;
  }
  .admin-online-meta {
    justify-content: flex-start;
  }
  .admin-signal-map {
    min-height: 150px;
  }
  .admin-timeline-row {
    grid-template-columns: 12px minmax(0, 1fr);
  }
  .admin-timeline-row time {
    grid-column: 2;
  }
  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table {
    min-width: 0;
  }
}

/* === Compact page rhythm + fixed admin shell === */
@media (max-width: 640px) {
  .section {
    padding: 20px 12px;
  }
  .section-head {
    margin-bottom: 16px;
    gap: 12px;
  }
  .section-sub {
    margin-top: 5px;
  }
  .carousel {
    padding-bottom: 10px;
  }
}

@media (min-width: 1041px) {
  .admin-page {
    --admin-page-pad: clamp(14px, 2.4vw, 28px);
    height: 100vh;
    overflow: hidden;
    padding: var(--admin-page-pad);
  }
  .admin-layout {
    height: calc(100vh - var(--admin-page-pad) - var(--admin-page-pad));
    min-height: 0;
  }
  .admin-sidebar {
    position: sticky;
    top: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    align-self: stretch;
  }
  .admin-main {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,169,62,0.32) transparent;
  }
  .admin-main::-webkit-scrollbar {
    width: 6px;
  }
  .admin-main::-webkit-scrollbar-track {
    background: transparent;
  }
  .admin-main::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(212,169,62,0.32);
  }
}
