/* ============================================================
   KEY VN â€” STARK INDUSTRIES / ARC REACTOR 2026 DESIGN SYSTEM
   Mature â€¢ Minimal â€¢ Enterprise â€¢ Futuristic â€¢ High-Tech SaaS
   ============================================================ */

/* ---------------- 01. DESIGN TOKENS & SYSTEM VARIABLES (LIGHT MODE DEFAULT) ---------------- */
:root {
  /* Surfaces: Light Mode (Crisp, Modern Enterprise Minimalism) */
  --stark-bg: #f8fafc;
  --stark-surface: #ffffff;
  --stark-surface-elevated: #ffffff;
  --stark-surface-hover: #f1f5f9;
  --stark-surface-active: #e2e8f0;
  --stark-card: #ffffff;
  --stark-card-hover: #ffffff;

  /* Aliases for legacy compatibility */
  --bg: #f8fafc;
  --bg-2: #ffffff;
  --bg-3: #f1f5f9;
  --card: #ffffff;
  --card-hover: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-scrolled: rgba(255, 255, 255, 0.98);
  --modal-bg: #ffffff;

  /* Borders: Hairline Borders */
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-bright: #cbd5e1;
  --border-arc: rgba(2, 132, 199, 0.25);
  --border-arc-hover: rgba(2, 132, 199, 0.5);

  /* Primary Accent: Refined Sky Blue / Enterprise Cobalt */
  --arc-cyan: #0284c7;
  --arc-cyan-hover: #0369a1;
  --arc-cyan-glow: rgba(2, 132, 199, 0.12);
  --arc-cyan-subtle: rgba(2, 132, 199, 0.08);
  --arc-blue: #0284c7;

  /* Accent aliases */
  --accent: #0284c7;
  --accent-2: #0ea5e9;
  --accent-glow: rgba(2, 132, 199, 0.12);
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-text: #ffffff;

  /* Secondary & Feedback Colors */
  --stark-gold: #d97706;
  --stark-gold-glow: rgba(217, 119, 6, 0.15);
  --warning: #d97706;
  --tech-green: #059669;
  --success: #059669;
  --crimson: #dc2626;
  --danger: #dc2626;
  --info: #0284c7;

  /* Typography Colors (High Contrast, Perfect Legibility) */
  --text: #0f172a;
  --text-dim: #475569;
  --text-secondary: #334155;
  --muted: #64748b;
  --text-inverse: #ffffff;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-arc: 0 4px 20px rgba(2, 132, 199, 0.12);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Gradients */
  --grad-arc: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --grad-metallic: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%);
  --grad-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

  /* Typography */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transition Curve */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  /* Tab Bar Tokens (iOS UITabBar & Material 3 NavigationBar) */
  --tabbar-bg: rgba(255, 255, 255, 0.52);
  --tabbar-border: rgba(0, 0, 0, 0.08);
  --tabbar-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  --tabbar-tint: #0284c7;
  --tabbar-muted: #64748b;
  --tabbar-glow: rgba(2, 132, 199, 0.35);
  --tabbar-badge-border: #ffffff;

  /* Frosted Glass Pill Tokens (Light Mode - Clean uniform translucency like mobile tabbar) */
  --apple-glass-bg: rgba(255, 255, 255, 0.52);
  --apple-glass-border: rgba(0, 0, 0, 0.08);
  --apple-glass-shadow: 0 10px 30px -6px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.03);
  --apple-glass-shadow-scrolled: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
  --apple-glass-hover: rgba(0, 0, 0, 0.05);
  --apple-glass-active-bg: rgba(2, 132, 199, 0.1);
  --apple-glass-active-color: #0284c7;
  --apple-glass-active-border: rgba(2, 132, 199, 0.22);
  --apple-glass-active-shadow: 0 1px 3px rgba(2, 132, 199, 0.15);
  --apple-glass-divider: rgba(0, 0, 0, 0.08);
  --apple-glass-btn-bg: #0f172a;
  --apple-glass-btn-color: #ffffff;

  /* Drawer Frosted Glass Tokens (Light Mode) */
  --drawer-glass-bg: rgba(255, 255, 255, 0.68);
  --drawer-glass-border: rgba(0, 0, 0, 0.08);
  --drawer-backdrop: rgba(15, 23, 42, 0.25);
}

/* ---------------- DARK THEME TOKENS ---------------- */
[data-theme="dark"] {
  --stark-bg: #0b0f17;
  --stark-surface: #111827;
  --stark-surface-elevated: #162032;
  --stark-surface-hover: #1c283f;
  --stark-surface-active: #22314d;
  --stark-card: #111827;
  --stark-card-hover: #162032;

  --bg: #0b0f17;
  --bg-2: #111827;
  --bg-3: #162032;
  --card: #111827;
  --card-hover: #162032;
  --surface: #111827;
  --surface-hover: #1c283f;
  --header-bg: rgba(11, 15, 23, 0.85);
  --header-scrolled: rgba(17, 24, 39, 0.95);
  --modal-bg: #111827;

  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-bright: rgba(255, 255, 255, 0.16);
  --border-arc: rgba(56, 189, 248, 0.3);
  --border-arc-hover: rgba(56, 189, 248, 0.55);

  --arc-cyan: #38bdf8;
  --arc-cyan-hover: #7dd3fc;
  --arc-cyan-glow: rgba(56, 189, 248, 0.16);
  --arc-cyan-subtle: rgba(56, 189, 248, 0.08);
  --arc-blue: #0284c7;

  --accent: #38bdf8;
  --accent-2: #7dd3fc;
  --accent-glow: rgba(56, 189, 248, 0.16);
  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --primary-text: #0b0f17;

  --stark-gold: #f59e0b;
  --stark-gold-glow: rgba(245, 158, 11, 0.15);
  --warning: #f59e0b;
  --tech-green: #10b981;
  --success: #10b981;
  --crimson: #ef4444;
  --danger: #ef4444;
  --info: #38bdf8;

  --text: #f8fafc;
  --text-dim: #94a3b8;
  --text-secondary: #cbd5e1;
  --muted: #64748b;
  --text-inverse: #0f172a;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.75);
  --shadow-arc: 0 0 30px rgba(56, 189, 248, 0.12);
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(56, 189, 248, 0.08);

  --grad-arc: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  --grad-metallic: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  --grad-card: linear-gradient(180deg, rgba(22, 32, 50, 0.7) 0%, rgba(17, 24, 39, 0.9) 100%);

  /* Tab Bar Tokens Dark */
  --tabbar-bg: rgba(13, 17, 24, 0.45);
  --tabbar-border: rgba(255, 255, 255, 0.12);
  --tabbar-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
  --tabbar-tint: #38bdf8;
  --tabbar-muted: rgba(255, 255, 255, 0.55);
  --tabbar-glow: rgba(56, 189, 248, 0.5);
  --tabbar-badge-border: #161b22;

  /* Frosted Glass Pill Tokens (Obsidian Dark Mode - Clean uniform translucency like mobile tabbar) */
  --apple-glass-bg: rgba(13, 17, 24, 0.45);
  --apple-glass-border: rgba(255, 255, 255, 0.12);
  --apple-glass-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --apple-glass-shadow-scrolled: 0 20px 44px -8px rgba(0, 0, 0, 0.65), 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --apple-glass-hover: rgba(255, 255, 255, 0.08);
  --apple-glass-active-bg: rgba(255, 255, 255, 0.14);
  --apple-glass-active-color: #ffffff;
  --apple-glass-active-border: rgba(255, 255, 255, 0.22);
  --apple-glass-active-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  --apple-glass-divider: rgba(255, 255, 255, 0.12);
  --apple-glass-btn-bg: #ffffff;
  --apple-glass-btn-color: #0b0f17;

  /* Drawer Frosted Glass Tokens (Dark Mode) */
  --drawer-glass-bg: rgba(13, 17, 24, 0.65);
  --drawer-glass-border: rgba(255, 255, 255, 0.12);
  --drawer-backdrop: rgba(0, 0, 0, 0.42);
}

/* ---------------- 02. RESET & BASE ---------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font);
  background-color: var(--stark-bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  background-image: radial-gradient(1000px 600px at 50% -50px, rgba(2, 132, 199, 0.04), transparent 70%);
  background-attachment: fixed;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(1000px 600px at 50% -50px, rgba(56, 189, 248, 0.06), transparent 70%),
    radial-gradient(800px 500px at 90% 400px, rgba(2, 132, 199, 0.04), transparent 60%);
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--stark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--arc-cyan);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------------- 03. CONTAINER & LAYOUT ---------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

main.page {
  padding-top: 88px;
  padding-bottom: 72px;
  min-height: calc(100vh - 180px);
}

/* ---------------- 04. HUD & ACCENTS ---------------- */
.hud-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--arc-cyan);
  background: var(--arc-cyan-subtle);
  border: 1px solid var(--border-arc);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--arc-cyan);
  box-shadow: 0 0 6px var(--arc-cyan);
  display: inline-block;
  animation: hudPulse 2.4s infinite ease-in-out;
}

.hud-dot.green {
  background-color: var(--tech-green);
  box-shadow: 0 0 6px var(--tech-green);
}

.hud-dot.amber {
  background-color: var(--stark-gold);
  box-shadow: 0 0 6px var(--stark-gold);
}

@keyframes hudPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.telemetry-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ---------------- 05. ANNOUNCEMENT BAR ---------------- */
.announce-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 50;
}

.announce-track {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.announce-item {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.announce-item.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.announce-item.exit {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.announce-item b {
  color: var(--arc-cyan);
}

/* ---------------- 06. APPLE visionOS LIQUID GLASS PILL HEADER ---------------- */
.header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 500;
  pointer-events: none;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1260px;
  height: 58px;
  border-radius: var(--radius-pill);
  padding: 0 14px;
  background: transparent;
  box-sizing: border-box;
}

/* Apple visionOS Multi-Layer Optical Substrate */
.apple-glass-substrate {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: var(--apple-glass-bg);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--apple-glass-border);
  box-shadow: var(--apple-glass-shadow);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled .apple-glass-substrate {
  box-shadow: var(--apple-glass-shadow-scrolled);
  border-color: var(--apple-glass-border);
}

/* Glare & caustic flare overlays disabled per user request: uniform translucent frosted glass like mobile tabbar */
.apple-glass-caustic,
.apple-glass-specular-beam,
.apple-glass-chromatic-rim {
  display: none !important;
}

/* Sleek Apple VisionOS Segmented Divider */
.pill-divider {
  width: 1px;
  height: 20px;
  background: var(--apple-glass-divider);
  flex-shrink: 0;
  margin: 0 4px;
  border-radius: 1px;
}

/* Enterprise Logo */
.logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 17px;
  color: var(--text);
  user-select: none;
  padding-left: 2px;
}

.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--arc-cyan-subtle);
  border: 1px solid var(--border-arc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arc-cyan);
  transition: all var(--transition-fast);
}

.logo:hover .logo-badge {
  border-color: var(--arc-cyan);
  transform: scale(1.05);
}

.logo-badge svg {
  width: 18px;
  height: 18px;
}

.logo-w {
  font-style: normal;
  color: var(--text);
  font-weight: 800;
}

.logo-g {
  font-style: normal;
  color: var(--arc-cyan);
  font-weight: 800;
}

/* Nav links (Apple visionOS Pill Style) */
.nav-links {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.nav-item:hover {
  color: var(--text);
  background: var(--apple-glass-hover);
}

.nav-item.active {
  color: var(--apple-glass-active-color);
  background: var(--apple-glass-active-bg);
  border-color: var(--apple-glass-active-border);
  box-shadow: var(--apple-glass-active-shadow);
}

.nav-item .ic {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}

.nav-item.active .ic,
.nav-item:hover .ic {
  opacity: 1;
  color: var(--apple-glass-active-color);
}

/* Header Actions */
.nav-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Command Palette / Search Trigger (Pill Shape) */
.cmd-search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--apple-glass-hover);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-size: 13px;
  transition: all var(--transition-fast);
  cursor: pointer;
  min-width: 175px;
}

.cmd-search-trigger:hover {
  border-color: var(--border-bright);
  background: var(--surface-hover);
  color: var(--text);
}

.cmd-search-trigger .cmd-icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.cmd-search-trigger:hover .cmd-icon {
  color: var(--arc-cyan);
}

.cmd-key-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  margin-left: auto;
}

/* Theme Switcher Toggle Button (Pill/Circle) */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--apple-glass-hover);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--arc-cyan);
  border-color: var(--border-bright);
  background: var(--surface-hover);
}

.theme-toggle-btn svg {
  width: 17px;
  height: 17px;
}

[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

:root:not([data-theme="dark"]) .sun-icon {
  display: none;
}

:root:not([data-theme="dark"]) .moon-icon {
  display: block;
}

/* Drawer Theme Switcher Row (Frosted Glass Pill) */
.drawer-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: var(--apple-glass-hover);
  border: 1px solid var(--drawer-glass-border);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.drawer-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--apple-glass-bg);
  border: 1px solid var(--drawer-glass-border);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drawer-theme-toggle:hover {
  background: var(--surface-hover);
  color: var(--arc-cyan);
}

[data-theme="dark"] .theme-opt-light {
  display: inline-flex;
}

[data-theme="dark"] .theme-opt-dark {
  display: none;
}

:root:not([data-theme="dark"]) .theme-opt-light {
  display: none;
}

:root:not([data-theme="dark"]) .theme-opt-dark {
  display: inline-flex;
}

/* ---------------- 06. SEARCH & DROPDOWNS ---------------- */
.header-search {
  position: relative;
}

.h-search-input {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 36px 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  width: 220px;
  transition: all var(--transition-fast);
}

.h-search-input:focus {
  outline: none;
  border-color: var(--arc-cyan);
  background: var(--surface-hover);
  box-shadow: 0 0 0 3px var(--arc-cyan-glow);
  width: 270px;
}

.h-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 120;
}

.sd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.sd-item:hover {
  background: var(--surface-hover);
}

.sd-img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  border: 1px solid var(--border);
}

.sd-info {
  flex: 1;
  min-width: 0;
}

.sd-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-price {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--arc-cyan);
  margin-top: 2px;
}

.sd-empty {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Icon button (Apple visionOS Pill/Circle) */
.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--apple-glass-hover);
  color: var(--text-dim);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-bright);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--arc-cyan);
  color: #0b0f17;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  box-shadow: 0 2px 8px var(--arc-cyan-glow);
  border: 1.5px solid var(--apple-glass-bg);
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
}

:root:not([data-theme="dark"]) .icon-btn .badge {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
  border-color: #ffffff;
}

.icon-btn .bell-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: var(--arc-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--arc-cyan);
}

/* Enterprise User Balance Chip (Apple visionOS Pill Shape) */
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 5px;
  border-radius: var(--radius-pill);
  background: var(--apple-glass-hover);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-chip:hover {
  background: var(--surface-hover);
  border-color: var(--arc-cyan);
  box-shadow: 0 2px 10px var(--arc-cyan-glow);
}

.user-chip .avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--arc-cyan-subtle);
  border: 1px solid var(--border-arc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11.5px;
  color: var(--arc-cyan);
  object-fit: cover;
}

.user-chip .u-info {
  display: flex;
  flex-direction: column;
}

.user-chip .u-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.user-chip .u-bal {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--arc-cyan);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* User Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 120;
  animation: dropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu a,
.dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.dropdown-menu .sep {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.dropdown-menu button.logout {
  color: var(--crimson);
}

.dropdown-menu button.logout:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--crimson);
}

/* Guest Actions (Apple visionOS Pill Action Buttons) */
.guest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guest-actions .btn-ghost {
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

.guest-actions .btn-primary {
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  background: var(--apple-glass-btn-bg);
  color: var(--apple-glass-btn-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.guest-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Hamburger */
.hamburger {
  display: none;
}

/* Mobile Drawer & Backdrop: completely hidden on desktop */
.nav-drawer,
.nav-backdrop {
  display: none !important;
}

/* ---------------- 07. GLOBAL COMMAND PALETTE (CTRL + K) ---------------- */
.cmd-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.cmd-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cmd-palette {
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 25px var(--arc-cyan-glow);
  overflow: hidden;
  transform: scale(0.97) translateY(-8px);
  transition: transform var(--transition-normal);
}

.cmd-modal-overlay.open .cmd-palette {
  transform: scale(1) translateY(0);
}

.cmd-header {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.cmd-search-ic {
  width: 18px;
  height: 18px;
  color: var(--arc-cyan);
  flex-shrink: 0;
  margin-right: 12px;
}

.cmd-input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  outline: none;
}

.cmd-input::placeholder {
  color: var(--muted);
}

.cmd-esc-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
}

.cmd-body {
  max-height: 420px;
  overflow-y: auto;
  padding: 10px;
}

.cmd-group {
  margin-bottom: 10px;
}

.cmd-group-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  padding: 6px 12px;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-item:hover,
.cmd-item.selected {
  background: var(--surface-hover);
  color: var(--arc-cyan);
  border: 1px solid var(--border-arc);
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmd-item-ic {
  width: 16px;
  height: 16px;
  color: var(--arc-cyan);
}

.cmd-item-arrow {
  font-size: 11px;
  color: var(--muted);
}

.cmd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------------- 08. BUTTONS & CONTROLS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), box-shadow var(--transition-fast),
    transform var(--transition-fast), opacity var(--transition-fast);
  user-select: none;
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  cursor: pointer;
}

.btn .ic {
  width: 16px;
  height: 16px;
}

/* Primary Button: 2026 Enterprise */
.btn-primary {
  background: var(--arc-cyan);
  color: var(--primary-text);
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px var(--arc-cyan-glow);
}

.btn-primary:hover:not(:disabled) {
  background: var(--arc-cyan-hover);
  box-shadow: 0 4px 14px var(--arc-cyan-glow);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Outline Button */
.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  color: var(--text);
}

.btn-outline:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--arc-cyan);
  color: var(--arc-cyan);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
}

/* Sizes */
.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 14.5px;
}

.btn-block {
  width: 100%;
}

/* Form Inputs */
.input,
.select,
textarea.input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus,
.select:focus,
textarea.input:focus {
  outline: none;
  border-color: var(--arc-cyan);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--arc-cyan-glow);
}

.input:disabled,
.select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-error {
  display: none;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--crimson);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

.form-error.show {
  display: block;
}

/* ---------------- 09. LANDING PAGE: 2026 ENTERPRISE HERO ---------------- */
.hero-enterprise {
  padding: 48px 0 36px;
  text-align: center;
  position: relative;
}

.hero-stark-wrap {
  padding: 40px 0 32px;
}

.hero-header-center {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--arc-cyan-subtle);
  border: 1px solid var(--border-arc);
  color: var(--arc-cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
}

.hero-title-stark {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-title-stark .grad-arc {
  background: linear-gradient(135deg, var(--arc-cyan) 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-sub-stark {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 28px;
}

/* Slogan Monospace Scramble / Decrypt Engine Styling */
.hero-sub-stark.hero-scramble-wrap {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "zero" 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
  display: inline-block;
  min-height: 1.6em;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
  color: var(--text-dim);
}

.scramble-inner {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variant-numeric: tabular-nums;
  display: inline;
}

/* Hero Search & Quick Category Filtering */
.hero-search-container {
  width: 100%;
  max-width: 660px;
  margin: 0 auto 22px;
}

.hero-search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 6px 5px 16px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-search-box:focus-within {
  border-color: var(--arc-cyan);
  box-shadow: 0 0 0 4px var(--arc-cyan-glow), var(--shadow-md);
}

.hero-search-box .search-ic {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
  margin-right: 10px;
}

.hero-search-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  font-size: 14.5px;
  color: var(--text);
  outline: none;
}

.hero-search-box input::placeholder {
  color: var(--muted);
}

.hero-search-box .btn-search {
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* Quick Category Filter Chips */
.hero-quick-cats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cat-chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cat-chip:hover {
  border-color: var(--border-bright);
  color: var(--text);
  background: var(--surface-hover);
}

.cat-chip.active {
  background: var(--arc-cyan-subtle);
  border-color: var(--arc-cyan);
  color: var(--arc-cyan);
  font-weight: 700;
}

/* Trust Signals Strip */
.hero-guarantee-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
}

.hero-guarantee-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-guarantee-item .ic {
  color: var(--arc-cyan);
  width: 15px;
  height: 15px;
}

/* ---------------- 10. SECTION HEADINGS ---------------- */
.section {
  margin-bottom: 56px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-subtitle {
  font-size: 13.5px;
  color: var(--text-dim);
}

.section-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--arc-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.section-more:hover {
  gap: 9px;
  color: var(--arc-cyan-hover);
}

/* ---------------- 11. PRODUCT CARDS & GRID ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

/* Modern Product Card */
.product-card-wrapper {
  height: 100%;
}

.product-card-v2 {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: all var(--transition-fast);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.product-card-v2:hover {
  border-color: var(--arc-cyan);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.pc-head-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.tag-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--arc-cyan);
  background: var(--arc-cyan-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-arc);
}

.stock-status,
.stock-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stock-status.in-stock,
.stock-badge.in-stock {
  color: var(--tech-green);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.stock-status.out-stock,
.stock-badge.out-stock {
  color: var(--muted);
  background: var(--bg-3);
  border: 1px solid var(--border);
}

.stock-badge.custom-order {
  color: var(--stark-gold);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.pc-thumb-v2 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.pc-thumb-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card-v2:hover .pc-thumb-v2 img {
  transform: scale(1.04);
}

.thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--bg-3);
}

.thumb-fallback svg {
  width: 32px;
  height: 32px;
}

.pc-body-v2 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pc-title-v2 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}

.pc-seller-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  width: fit-content;
}

.pc-feature-list {
  list-style: none;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pc-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.tick-ic {
  color: var(--tech-green);
  font-weight: 800;
}

.pc-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.pc-stats-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pc-stats-row b {
  color: var(--text-secondary);
}

.pc-footer-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.pc-price-wrap {
  display: flex;
  flex-direction: column;
}

.pc-price-wrap .p-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.pc-price-wrap .p-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--arc-cyan);
}

.pc-price-wrap .pc-old {
  font-size: 12px;
  text-decoration: line-through;
  color: var(--muted);
  margin-left: 4px;
}

.pc-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-buy-mc {
  background: var(--arc-cyan);
  color: var(--primary-text);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-buy-mc:hover {
  background: var(--arc-cyan-hover);
  box-shadow: 0 2px 10px var(--arc-cyan-glow);
  transform: translateY(-1px);
}

.btn-cart-mc {
  background: var(--surface);
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-cart-mc:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-bright);
}

/* ---------------- 12. QUICK DEPOSIT GRID ---------------- */
.quick-deposit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.qd-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  box-shadow: var(--card-shadow);
}

.qd-card:hover {
  border-color: var(--arc-cyan);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.qd-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qd-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--arc-cyan-subtle);
  border: 1px solid var(--border-arc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arc-cyan);
  flex-shrink: 0;
}

.qd-icon svg {
  width: 22px;
  height: 22px;
}

.qd-badge-row {
  margin-bottom: 4px;
}

.qd-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}

.qd-badge-green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--tech-green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.qd-badge-orange {
  background: rgba(245, 158, 11, 0.12);
  color: var(--stark-gold);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.qd-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.qd-desc {
  font-size: 12.5px;
  color: var(--text-dim);
}

.qd-arrow {
  font-size: 18px;
  color: var(--arc-cyan);
  transition: transform var(--transition-fast);
}

.qd-card:hover .qd-arrow {
  transform: translateX(4px);
}

/* ---------------- 13. WORKFLOW (HOW IT WORKS) ---------------- */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.workflow-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--card-shadow);
}

.workflow-step:hover {
  border-color: var(--arc-cyan);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.workflow-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: var(--arc-cyan);
  line-height: 1;
  margin-bottom: 14px;
}

.workflow-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.workflow-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ---------------- 14. FAQ ACCORDION ---------------- */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition-fast);
  box-shadow: var(--card-shadow);
}

.faq-item.active {
  border-color: var(--border-arc);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  width: 18px;
  height: 18px;
  color: var(--arc-cyan);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ---------------- 15. FINAL CTA BANNER ---------------- */
.final-cta-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.final-cta-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 10px;
}

.final-cta-card p {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 24px;
}

/* ---------------- 16. MARKETPLACE TABS ---------------- */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.crumbs a {
  color: var(--text-dim);
}

.crumbs a:hover {
  color: var(--arc-cyan);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}

.tab-btn:hover {
  color: var(--text);
  border-color: var(--border-bright);
}

.tab-btn.active {
  background: var(--arc-cyan-subtle);
  border-color: var(--arc-cyan);
  color: var(--arc-cyan);
  font-weight: 700;
}

/* ---------------- 17. CHECKOUT COCKPIT MODAL ---------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 760px;
  background: var(--modal-bg);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  transform: scale(0.97);
  transition: transform var(--transition-normal);
}

.modal::-webkit-scrollbar,
.notif-dd-list::-webkit-scrollbar,
.cmd-results::-webkit-scrollbar,
.nav-drawer::-webkit-scrollbar,
.tabs::-webkit-scrollbar,
#legalContent::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.notif-dd-list,
.cmd-results,
.nav-drawer,
.tabs,
#legalContent {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-overlay.open .modal {
  transform: scale(1);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-head h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.mc-checkout-2col {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  padding: 24px;
}

.mc-prod-banner {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-3);
  margin-bottom: 16px;
}

.mc-prod-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mc-head-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.mc-desc-section h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 8px;
}

.mc-top-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.mc-main-price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--arc-cyan);
}

.mc-stock-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tech-green);
}

.mc-group-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Variant List */
.mc-variant-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.cc-variant-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cc-variant-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-bright);
}

.cc-variant-card.sel {
  background: var(--arc-cyan-subtle);
  border-color: var(--arc-cyan);
}

.cc-variant-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.v-card-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.v-card-sub {
  font-size: 11px;
  color: var(--muted);
}

.v-card-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--arc-cyan);
  margin-top: 4px;
}

/* Quantity Control */
.mc-qty-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.qty-ctl {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.qty-ctl button {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-dim);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.qty-ctl button:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
}

.qty-ctl button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-ctl span[data-qty] {
  min-width: 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.mc-stock-avail {
  font-size: 12px;
  color: var(--muted);
}

/* Coupon Row */
.mc-coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.mc-coupon-input {
  flex: 1;
  min-width: 0;
}

.discount-msg {
  font-size: 12.5px;
  margin-bottom: 12px;
}

.discount-msg.ok {
  color: var(--tech-green);
}

.discount-msg.bad {
  color: var(--crimson);
}

/* Bill Table */
.mc-bill-table {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mc-bill-table .b-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

.mc-bill-table .b-row.highlight {
  border-top: 1px solid var(--border);
  padding-top: 6px;
  margin-top: 2px;
}

.mc-bill-table .b-row b {
  font-family: var(--font-mono);
  color: var(--text);
}

.mc-policy-box {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 16px;
}

.mc-policy-box h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 6px;
}

.mc-policy-box ul {
  list-style: none;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---------------- 18. WALLET DASHBOARD ---------------- */
.wallet-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 32px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.balance-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 4px;
}

.balance-value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.wallet-stats-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  font-size: 14px;
  color: var(--text-dim);
}

.wallet-stats-side b {
  font-family: var(--font-mono);
  color: var(--text);
}

.deposit-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.warn-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--stark-gold);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tip-banner {
  background: var(--arc-cyan-subtle);
  border: 1px solid var(--border-arc);
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.amount-chip {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.amount-chip:hover {
  border-color: var(--border-bright);
}

.amount-chip.active {
  background: var(--arc-cyan-subtle);
  border-color: var(--arc-cyan);
  color: var(--arc-cyan);
}

.card-net-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--arc-cyan-subtle);
  border: 1px solid var(--border-arc);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 13.5px;
}

.net-val {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--arc-cyan);
}

.fee-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--stark-gold);
}

/* ---------------- 19. TABLES & DATA LEDGERS ---------------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

th {
  background: var(--bg-3);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--surface-hover);
}

/* Status Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
}

.pill-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--tech-green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pill-warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--stark-gold);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.pill-danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--crimson);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ---------------- 19B. GUIDE, SUPPORT & PORTAL BENTO CARDS ---------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.bento-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
}

.bento-card:hover {
  border-color: var(--border-arc-hover);
  background: var(--surface-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--arc-cyan-subtle);
  border: 1px solid var(--border-arc);
  color: var(--arc-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.bento-card:hover .bento-icon {
  background: var(--arc-cyan);
  color: var(--primary-text);
  transform: scale(1.04);
}

.bento-icon svg {
  width: 20px;
  height: 20px;
}

.bento-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
  line-height: 1.4;
}

.bento-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
  word-break: break-word;
}

/* Guide Cards & Media Specifics */
.guide-posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.guide-card-content {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
  white-space: pre-line;
}

.guide-media-wrap {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-3);
  margin-bottom: 14px;
}

.guide-media-wrap img,
.guide-media-wrap video,
.guide-media-wrap iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

/* Support & Contact Channels */
.contact-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.contact-card,
.support-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.contact-card:hover,
.support-card:hover {
  border-color: var(--arc-cyan);
  background: var(--surface-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}

/* ---------------- 20. USER ACCOUNT & PROFILE ---------------- */
.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}

.profile-side {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.big-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--arc-cyan-subtle);
  border: 2px solid var(--border-arc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--arc-cyan);
  object-fit: cover;
  margin-bottom: 16px;
}

.profile-side h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.p-mail {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.stat-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

.stat-row b,
.stat-row span:last-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
}

/* ---------------- 21. CART & CHECKOUT ---------------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: flex-start;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
}

.ci-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xs);
  background: var(--bg-3);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.ci-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ci-info {
  flex: 1;
  min-width: 0;
}

.ci-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.ci-variant {
  display: inline-block;
  font-size: 11.5px;
  color: var(--arc-cyan);
  margin-left: 6px;
}

.ci-price {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--arc-cyan);
  margin-top: 4px;
  margin-bottom: 8px;
}

.ci-remove {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ci-remove:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--crimson);
}

.summary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.summary-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.sum-row b,
.sum-row span:last-child {
  font-family: var(--font-mono);
  color: var(--text);
}

.sum-row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 14px;
}

.sum-row.total span:last-child {
  font-size: 18px;
  color: var(--arc-cyan);
}

/* ---------------- 22. AUTH (LOGIN / REGISTER) ---------------- */
.auth-wrap {
  max-width: 440px;
  margin: 40px auto;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.auth-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-card .sub {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.switch-link {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 20px;
}

.switch-link a {
  color: var(--arc-cyan);
  font-weight: 600;
}

/* ---------------- 23. NOTIFICATIONS ---------------- */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: all var(--transition-fast);
  box-shadow: var(--card-shadow);
}

.notif-item.unread {
  background: var(--arc-cyan-subtle);
  border-color: var(--border-arc);
}

.notif-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--arc-cyan-subtle);
  border: 1px solid var(--border-arc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arc-cyan);
  flex-shrink: 0;
}

.ni-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.ni-content {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 2px;
}

.ni-time {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------------- 24. TOASTS & EMPTY STATES ---------------- */
#toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
  max-width: 380px;
}

.toast.hide {
  opacity: 0;
  transform: translateY(10px);
}

.toast.success {
  border-left: 4px solid var(--tech-green);
}

.toast.error {
  border-left: 4px solid var(--crimson);
}

.toast.info {
  border-left: 4px solid var(--arc-cyan);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.e-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-bottom: 16px;
}

.e-icon svg {
  width: 28px;
  height: 28px;
}

.empty-state h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13.5px;
  color: var(--muted);
}

/* Page Loader */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

#page-loader.active {
  opacity: 1;
  visibility: visible;
}

.loader-ring {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--arc-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------- 25. FOOTER ---------------- */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 56px 0 24px;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 320px;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--arc-cyan);
}

.copyright {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}

/* ================================================================
   MOBILE-FIRST LAYER â€” KEY VN 2026
   iOS Safari Â· Chrome Android Â· Samsung Internet
   Approach: progressive enhancement from mobile up
   ================================================================ */

/* ---- Viewport Height Fix (iOS Safari address bar) ---- */
:root {
  --vh: 1vh;
  /* overridden by JS: window.innerHeight * 0.01 */
  /* Safe area tokens */
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
}

/* ---- Prevent iOS tap highlight ---- */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ---- Touch feedback â€” only on touch devices, handled by JS .touching class ---- */
/* (desktop uses :hover states defined elsewhere â€” no scale on desktop :active) */
.touching {
  transform: scale(0.97);
  opacity: 0.9;
}

/* ---- Mobile nav dock: hidden on desktop ---- */
.mobile-nav {
  display: none;
}


/* ============================================================
   2026 FUTURISTIC BANKING & DEPOSIT HUD DESIGN SYSTEM
   ============================================================ */
.mbbank-checkout-hud {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  animation: hudFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mbbank-checkout-hud::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--arc-cyan), #38bdf8, transparent);
  animation: hudGlowSweep 3s infinite linear;
}

@keyframes hudFadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hudGlowSweep {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.hud-checkout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 320px) 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .hud-checkout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --- QR Code Futuristic Scanner Frame --- */
.qr-scanner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  position: relative;
}

.qr-scanner-frame {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.qr-scanner-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* Scanner Laser Line */
.qr-scan-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--arc-cyan), #38f5ff, transparent);
  box-shadow: 0 0 12px var(--arc-cyan), 0 0 24px var(--arc-cyan);
  pointer-events: none;
  z-index: 5;
  animation: qrLaserScan 2.4s ease-in-out infinite;
}

@keyframes qrLaserScan {
  0% {
    top: 4%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    top: 94%;
    opacity: 0;
  }
}

/* Corner HUD Target Accents */
.qr-scanner-frame::before,
.qr-scanner-frame::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 4;
}

.qr-scanner-frame::before {
  top: 6px;
  left: 6px;
  border-top: 3px solid var(--arc-cyan);
  border-left: 3px solid var(--arc-cyan);
  border-top-left-radius: 6px;
}

.qr-scanner-frame::after {
  bottom: 6px;
  right: 6px;
  border-bottom: 3px solid var(--arc-cyan);
  border-right: 3px solid var(--arc-cyan);
  border-bottom-right-radius: 6px;
}

.qr-countdown-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--arc-cyan-subtle);
  border: 1px solid var(--border-arc);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--arc-cyan);
  font-family: var(--font-mono);
}

/* --- Transaction Details & Action Panel --- */
.hud-details-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hud-panel-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.hud-panel-header p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.5;
}

.hud-info-box {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hud-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.hud-info-row:hover {
  background: var(--surface-hover);
  border-color: var(--border-bright);
}

.hud-info-row.highlight-gold {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.08);
}

.hud-label {
  color: var(--text-dim);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-value-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-value {
  font-weight: 700;
  color: var(--text);
}

.hud-value.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.hud-value.cyan {
  color: var(--arc-cyan);
  font-size: 15px;
}

.hud-value.green {
  color: var(--tech-green);
  font-size: 16px;
}

.hud-value.gold {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 1px;
}

/* Modern Copy Button */
.btn-copy-2026 {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-copy-2026:hover {
  background: var(--arc-cyan-subtle);
  border-color: var(--arc-cyan);
  color: var(--arc-cyan);
  transform: translateY(-1px);
}

.btn-copy-2026.copied {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: var(--tech-green) !important;
  color: #6ee7b7 !important;
  transform: scale(0.96);
}

/* --- Live Radar Listener Bar --- */
.radar-listener-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--arc-cyan-subtle);
  border: 1px solid var(--border-arc);
  border-radius: 12px;
  padding: 14px 18px;
}

.radar-spinner-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.radar-spinner-ring {
  position: absolute;
  inset: 0;
  border: 2.5px solid transparent;
  border-top-color: var(--arc-cyan);
  border-right-color: var(--arc-cyan);
  border-radius: 50%;
  animation: radarSpin 1.1s linear infinite;
}

.radar-spinner-core {
  position: absolute;
  inset: 6px;
  background: var(--tech-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--tech-green);
  animation: radarPulse 1.6s ease-in-out infinite;
}

@keyframes radarSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes radarPulse {

  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 16px var(--tech-green);
  }
}

.radar-listener-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

.radar-listener-text b {
  color: var(--arc-cyan);
}

/* --- SUCCESS SCREEN 2026 ANIMATION --- */
.deposit-success-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: successModalPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}

@keyframes successModalPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Animated SVG Checkmark */
.success-checkmark-svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: block;
}

.success-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #10b981;
  fill: rgba(16, 185, 129, 0.12);
  animation: checkCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 4;
  stroke: #10b981;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: checkStroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes checkCircle {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes checkStroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.success-amount-pill {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 26px;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 9999px;
  margin: 14px 0 20px;
  font-family: var(--font-mono);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
  animation: pulseAmount 2s infinite ease-in-out;
}

@keyframes pulseAmount {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.35);
  }
}

.success-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 28px;
  text-align: left;
}

.success-meta-item {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 10px;
}

.success-meta-item .label {
  font-size: 11.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.success-meta-item .val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}


/* ============================================================
   KEY DELIVERY SUCCESS MODAL & LICENSE KEY DISPLAY (2026 PRO)
   ============================================================ */
.key-delivery-modal {
  padding: 20px 24px 24px;
}

.key-success-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm, 10px);
  padding: 12px 16px;
  margin-bottom: 18px;
}

.key-success-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

.key-success-icon svg {
  width: 20px;
  height: 20px;
}

.key-success-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin-bottom: 2px;
}

.key-success-text p {
  font-size: 12.5px;
  color: var(--text-dim, #64748b);
  margin: 0;
  line-height: 1.4;
}

.key-card-item {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 14px);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: border-color var(--transition-fast, 0.2s);
}

.key-card-item:hover {
  border-color: var(--arc-cyan, #0284c7);
}

.key-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.key-card-prod {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text, #0f172a);
  line-height: 1.35;
}

.key-card-variant {
  font-size: 12px;
  font-weight: 600;
  color: var(--arc-cyan, #0284c7);
  background: var(--arc-cyan-subtle, rgba(2, 132, 199, 0.08));
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 3px;
}

.key-card-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #64748b);
  background: var(--surface2, #f1f5f9);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* --- THE TERMINAL KEY BOX --- */
.key-box-container {
  display: flex;
  align-items: stretch;
  background: #090d16; /* Clean deep slate terminal background */
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-sm, 10px);
  overflow: hidden;
  margin: 10px 0;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.08);
  position: relative;
}

.key-box-content {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.key-box-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.key-box-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.key-box-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: #38bdf8; /* Crisp sky cyan */
  letter-spacing: 0.5px;
  word-break: break-all;
  user-select: all;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
  line-height: 1.3;
}

.key-box-copy-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.key-box-copy-btn svg {
  width: 15px;
  height: 15px;
}

.key-box-copy-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.key-box-copy-btn:active {
  transform: scale(0.96);
}

.key-box-copy-btn.copied {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.key-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.key-card-actions .btn {
  font-size: 12.5px;
  padding: 8px 14px;
}

.key-modal-footer {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ============================================================
   UNIFIED UTILITY & COMPONENT CLASSES (DESKTOP + MOBILE SYNC)
   ============================================================ */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.notif-bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 24px);
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.22), 0 8px 20px -6px rgba(15, 23, 42, 0.12);
  padding: 0;
  z-index: 1200;
  overflow: hidden;
}

[data-theme="dark"] .notif-dropdown {
  background: #111827;
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 240, 255, 0.08);
}

.notif-dd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.notif-dd-head-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}

.notif-dd-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--arc-cyan);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

[data-theme="dark"] .notif-dd-count {
  color: #0b0f17;
}

.dropdown-menu button.notif-dd-mark {
  width: auto;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--arc-cyan);
  background: transparent;
}

.dropdown-menu button.notif-dd-mark:hover {
  background: var(--arc-cyan-subtle);
  color: var(--arc-cyan-hover);
}

.notif-dd-list {
  max-height: 360px;
  overflow-y: auto;
  background: var(--surface);
}

.dropdown-menu a.notif-dd-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.dropdown-menu a.notif-dd-item:last-child {
  border-bottom: none;
}

.dropdown-menu a.notif-dd-item.unread {
  background: rgba(2, 132, 199, 0.04);
}

[data-theme="dark"] .dropdown-menu a.notif-dd-item.unread {
  background: rgba(0, 240, 255, 0.05);
}

.dropdown-menu a.notif-dd-item:hover {
  background: var(--surface-hover);
}

.notif-dd-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--arc-cyan-subtle);
  border: 1px solid var(--border-arc);
  color: var(--arc-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-dd-icon svg {
  width: 16px;
  height: 16px;
}

.notif-dd-body {
  flex: 1;
  min-width: 0;
}

.notif-dd-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.notif-dd-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.notif-dd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--arc-cyan);
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 6px var(--arc-cyan-glow);
}

.notif-dd-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  margin-bottom: 5px;
}

.notif-dd-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  display: block;
}

.dropdown-menu a.notif-dd-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 0;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--arc-cyan);
  text-align: center;
}

.dropdown-menu a.notif-dd-foot:hover {
  background: var(--arc-cyan-subtle);
  color: var(--arc-cyan-hover);
}

.drawer-group-label {
  display: none;
}

.drawer-online-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.api-seller-badge {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff !important;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  margin-left: 4px;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
  line-height: 1.2;
}

.skeleton-box {
  background: var(--bg-3);
  border-radius: 6px;
}

.key-box-container.account-box {
  background: #0f0a1c;
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 16px rgba(168, 85, 247, 0.1);
}

.key-box-container.account-box .key-box-label {
  color: #c084fc;
}

.key-box-container.account-box .key-box-label::before {
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}

.key-box-container.account-box .key-box-value {
  color: #f3e8ff;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
}



/* ================================================================
   LAPTOP / SMALL DESKTOP 1025–1200px
   ================================================================ */
@media (min-width: 1025px) and (max-width: 1200px) {
  .container {
    padding: 0 24px;
  }

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

  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-card.span-2 {
    grid-column: span 1;
  }
}



/* ================================================================
   TABLET 769–1024px
   ================================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

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

  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero-stark-right {
    display: none;
  }

  .hero-stark-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-telemetry-row,
  .hero-cta-group,
  .hero-guarantee-strip {
    justify-content: center;
  }
}



/* ================================================================
   MOBILE <= 768px — Unified Responsive Mobile Layer
   ================================================================ */
@media (max-width: 768px) {

  /* ---- Base ---- */
  html {
    font-size: 14px;
    /* Prevent layout shift from iOS address bar */
    height: -webkit-fill-available;
    overflow-x: hidden;
    max-width: 100vw;
  }

  body {
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    /* Disable heavy background decorations on mobile for perf */
    background-attachment: scroll;
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Disable the grid texture on mobile â€” perf */
  body::before {
    display: none;
  }

  .container {
    padding: 0 14px;
  }

  main.page {
    padding-top: calc(70px + var(--sat, 0px));
    /* leave space for bottom nav + safe area */
    padding-bottom: calc(72px + var(--sab) + 16px);
    min-height: 100dvh;
  }

  /* Hide announce bar on mobile — space saving */
  .announce-bar {
    display: none !important;
  }

  /* ---- Utility helpers ---- */
  .hide-m {
    display: none !important;
  }

  .hide-d {
    display: block !important;
  }

  /* ---- HEADER (Apple visionOS Mobile Floating Pill - Fixed Sticky) ---- */
  .header {
    position: fixed;
    top: calc(8px + var(--sat, 0px));
    left: 0;
    right: 0;
    padding: 0 10px;
    z-index: 500;
  }

  /* Mobile nav: flexbox [LOGO(flex:1 center)] [ACTIONS(hamburger rightmost)] */
  .nav {
    height: 52px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  /* Logo left, flex-auto (shrinks if needed) */
  .logo {
    font-size: 15px;
    gap: 7px;
    flex: 0 0 auto;
    /* don't stretch */
    justify-content: flex-start;
    /* Logo takes left slot */
  }

  .logo-badge {
    width: 32px;
    height: 32px;
  }

  .logo-badge svg {
    width: 17px;
    height: 17px;
  }

  /* Nav actions â€” compact, right-aligned */
  .nav-actions {
    gap: 4px;
    flex: 0 0 auto;
    align-items: center;
  }

  .guest-actions {
    display: none !important;
  }

  /* Command search trigger â€” icon-only on mobile */
  .cmd-search-trigger {
    min-width: unset;
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-sm);
  }

  .cmd-search-trigger span:not(.cmd-icon),
  .cmd-key-badge {
    display: none;
  }

  .cmd-search-trigger .cmd-icon {
    width: 17px;
    height: 17px;
    margin: 0;
  }

  /* Icon buttons on mobile — sleek pill capsule aesthetic */
  .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
  }

  .cart-btn {
    display: inline-flex !important;
  }

  /* Hamburger — show on mobile */
  .hamburger {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
  }

  /* Desktop nav bar hidden on mobile */
  .nav-links {
    display: none !important;
  }

  /* ---- MOBILE DRAWER (slide-in from right - Frosted Glass Aesthetic) ---- */
  .nav-backdrop {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--drawer-backdrop);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--drawer-glass-bg);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-left: 1px solid var(--drawer-glass-border);
    box-shadow: -10px 0 35px -5px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    z-index: 1001;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
    overflow: hidden;
    display: flex !important;
  }

  .nav-drawer.open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Drawer header */
  .drawer-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: calc(16px + var(--sat)) 16px 16px;
    border-bottom: 1px solid var(--drawer-glass-border);
    flex-shrink: 0;
  }

  .drawer-close-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 18px;
    border-radius: var(--radius-pill);
    background: var(--apple-glass-hover);
    border: 1px solid var(--drawer-glass-border);
    transition: background-color var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
  }

  .drawer-close-btn:hover,
  .drawer-close-btn:active {
    background: var(--surface-hover);
    color: var(--text);
  }

  .drawer-user-wrap {
    display: block !important;
    padding: 4px 6px 10px;
    border-bottom: 1px solid var(--drawer-glass-border);
    margin-bottom: 10px;
    flex-shrink: 0;
  }

  .drawer-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--apple-glass-hover);
    border: 1px solid var(--drawer-glass-border);
    border-radius: 16px;
    margin-bottom: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .drawer-scroll-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 10px calc(28px + var(--sab, 0px));
  }

  .drawer-scroll-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .drawer-theme-row {
    flex-shrink: 0;
  }

  .drawer-nav-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px;
    margin-bottom: 8px;
    flex-shrink: 0;
  }

  /* Drawer nav items — sleek pill capsule aesthetic */
  .nav-drawer .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    min-height: 44px;
    border-radius: var(--radius-pill);
    color: var(--text-dim);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    text-decoration: none;
  }

  .nav-drawer .nav-item:hover {
    color: var(--text);
    background: var(--apple-glass-hover);
  }

  /* Remove desktop horizontal bottom-line indicator on vertical drawer items */
  .nav-item::after,
  .nav-drawer .nav-item::after {
    display: none !important;
  }

  /* Selected Drawer Item — Frosted Glass Pill Active Indicator */
  .nav-drawer .nav-item.active {
    color: var(--apple-glass-active-color);
    background: var(--apple-glass-active-bg);
    border: 1px solid var(--apple-glass-active-border);
    box-shadow: var(--apple-glass-active-shadow);
  }

  .nav-drawer .nav-item.active .ic {
    color: var(--apple-glass-active-color);
    opacity: 1;
  }

  .nav-drawer .nav-item .ic {
    width: 18px;
    height: 18px;
  }

  .drawer-sys-footer {
    display: flex !important;
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid var(--drawer-glass-border);
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
    flex-shrink: 0;
  }

  #drawerAdminLinkWrap,
  #drawerFooterActions {
    display: block !important;
    flex-shrink: 0;
  }

  #drawerFooterActions {
    margin-top: 8px;
    padding: 0 4px;
  }

  #drawerFooterActions .btn {
    border-radius: var(--radius-pill);
  }

  /* ---- BOTTOM NAVIGATION BAR (iOS UITabBar & Material 3 NavigationBar) ---- */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 280;
    pointer-events: none;
    justify-content: center;
    align-items: flex-end;
    box-sizing: border-box;
    padding: 0 12px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  /* Subtle bottom gradient to ensure home indicator contrast without obstructing transparency */
  .mobile-nav::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(20px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(0, 0, 0, 0.12) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
  }

  .mobile-nav-bar {
    pointer-events: auto;
    width: 100%;
    max-width: 460px;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: var(--tabbar-bg);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--tabbar-border);
    border-radius: 36px;
    box-shadow: var(--tabbar-shadow);
    padding: 6px 4px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* Tab Item (column is tappable, equal importance) */
  .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    min-height: 52px;
    min-width: 48px;
    color: var(--tabbar-muted);
    text-decoration: none;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: color 0.18s ease, transform 0.14s ease, filter 0.18s ease;
  }

  .tab-item:active {
    transform: scale(0.94);
  }

  .tab-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    overflow: visible;
  }

  .tab-icon {
    width: 23px;
    height: 23px;
    stroke-width: 2;
    stroke: currentColor;
    transition: stroke 0.18s ease, transform 0.18s ease;
  }

  .tab-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.1px;
    line-height: 1.1;
    white-space: nowrap;
    color: currentColor;
    transition: color 0.18s ease, font-weight 0.18s ease;
  }

  /* Selected Tab - Tinted vibrant, others muted */
  .tab-item.active,
  .tab-item[aria-current="page"] {
    color: var(--tabbar-tint);
  }

  .tab-item.active .tab-icon {
    stroke: var(--tabbar-tint);
    transform: scale(1.06);
  }

  .tab-item.active .tab-label {
    font-weight: 700;
  }

  .tab-item.active .tab-icon-wrap {
    filter: drop-shadow(0 0 8px var(--tabbar-glow));
  }

  /* Count Badge on Tab (Inbox) - Pinned top-right, NEVER clipped */
  .tab-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: #ff3b30;
    color: #ffffff;
    font-family: var(--font-sans, system-ui);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--tabbar-badge-border);
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.45);
    pointer-events: none;
    z-index: 10;
    transform-origin: center;
    animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  @keyframes badgePop {
    0% {
      transform: scale(0.6);
      opacity: 0;
    }

    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  /* ---- TYPOGRAPHY â€” MOBILE SCALE ---- */
  h1 {
    font-size: clamp(22px, 7vw, 32px);
    line-height: 1.2;
  }

  h2 {
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.3;
  }

  h3 {
    font-size: clamp(15px, 4vw, 19px);
    line-height: 1.4;
  }

  h4 {
    font-size: 14px;
    line-height: 1.4;
  }

  p {
    font-size: 14px;
    line-height: 1.55;
  }

  /* ---- HERO SECTION (2026 ENTERPRISE & LEGACY) ---- */
  .hero-enterprise {
    padding: 20px 0 16px;
  }

  .hero-badge-tag {
    font-size: 10.5px;
    padding: 4px 10px;
    letter-spacing: 0.2px;
    white-space: normal;
    text-align: center;
    max-width: 100%;
    margin-bottom: 14px;
  }

  .hero-title-stark {
    font-size: clamp(22px, 7vw, 29px) !important;
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .hero-sub-stark {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 18px;
    padding: 0 4px;
  }

  .hero-search-box {
    padding: 4px 6px 4px 12px;
  }

  .hero-search-box input {
    font-size: 13px;
  }

  .hero-search-box .btn-search {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero-guarantee-strip {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 10px;
    font-size: 11.5px;
    text-align: left;
    margin-top: 14px;
  }

  .hero-guarantee-item {
    justify-content: flex-start;
  }

  .hero-stark-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
    padding: 28px 0 20px;
  }

  .hero-stark-right {
    display: none;
  }

  .hero-telemetry-row,
  .hero-cta-group {
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(24px, 8vw, 36px) !important;
    letter-spacing: -0.5px;
    line-height: 1.15;
  }

  .hero-sub {
    font-size: 14px;
    max-width: 100%;
  }

  .hero-cta-group {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* CTA buttons â€” minimum 44px height, full-ish width on mobile */
  .hero-cta-group .btn {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 14px;
    flex: 1;
    min-width: 130px;
  }

  .hero-guarantee-strip {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
  }

  .hero-telemetry-row {
    gap: 12px;
    flex-wrap: wrap;
  }

  /* ---- METRICS STRIP ---- */
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .metric-value {
    font-size: 22px !important;
  }

  /* ---- PRODUCT GRID ---- */
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* ---- BENTO GRID ---- */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .bento-card {
    padding: 16px;
  }

  /* ---- SECTION HEADERS ---- */
  .section-header {
    margin-bottom: 16px;
  }

  .section-title {
    font-size: 18px !important;
  }

  .section-desc {
    font-size: 13px;
  }

  /* ---- 3D COVERFLOW â€” mobile: 3 cards, smaller ---- */
  .coverflow-viewport {
    height: 470px;
    perspective: 850px;
    overflow: hidden;
  }

  .coverflow-item-3d {
    width: 260px;
    max-width: 76vw;
  }

  .coverflow-item-3d .product-card-v2 {
    padding: 12px;
  }

  /* ---- WORKFLOW / FEATURE GRID ---- */
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* ---- QUICK DEPOSIT GRID ---- */
  .quick-deposit-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* ---- WALLET PAGE ---- */
  .wallet-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .wallet-stats-side {
    text-align: center;
  }

  .wallet-balance-val {
    font-size: 30px !important;
  }

  /* Deposit method tabs â€” swipeable horizontal */
  .deposit-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
  }

  .deposit-tabs::-webkit-scrollbar {
    display: none;
  }

  .deposit-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 40px;
  }

  /* Copy button â€” full width */
  .copy-btn,
  button[data-copy] {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    justify-content: center;
  }

  /* ---- CART LAYOUT ---- */
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ---- AUTH (Login / Register) ---- */
  .auth-wrap {
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    padding: calc(16px + var(--sat)) 14px calc(80px + var(--sab));
    display: flex;
    align-items: flex-start;
    /* top-align so keyboard push doesn't cut content */
    justify-content: center;
    padding-top: max(calc(16px + var(--sat)), 10vh);
  }

  .auth-card {
    width: 100%;
    max-width: 100%;
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  .auth-logo {
    margin-bottom: 20px;
  }

  .auth-title {
    font-size: 20px;
  }

  /* ---- FORMS & INPUTS ---- */
  /* CRITICAL: min 16px prevents iOS auto-zoom */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="search"],
  .input,
  /* catches div.input and styled elements */
  select,
  textarea {
    font-size: 16px !important;
    min-height: 46px;
    border-radius: var(--radius-sm);
    /* Add padding for comfortable tapping */
    padding: 11px 14px;
  }

  /* Inputs full-width on mobile */
  .form-group input,
  .form-group select,
  .form-group textarea,
  .field input,
  .field select,
  .field textarea {
    width: 100%;
  }

  /* Form labels */
  .form-label,
  label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  /* Buttons in forms */
  .form-group .btn,
  .field .btn,
  form .btn {
    min-height: 46px;
    font-size: 15px;
    width: 100%;
  }

  /* ---- GLOBAL BUTTON SIZING ---- */
  .btn {
    min-height: 40px;
    font-size: 13.5px;
    padding: 9px 18px;
  }

  /* Disable hover translateY on touch devices â€” no hover on mobile */
  .btn-primary:hover:not(:disabled) {
    transform: none;
  }

  .btn-sm {
    min-height: 34px;
    font-size: 12px;
    padding: 6px 12px;
  }

  .btn-lg {
    min-height: 48px;
    font-size: 15px;
  }


  /* ---- MODALS â†’ BOTTOM SHEETS on mobile ---- */
  .modal-overlay {
    position: fixed;
    /* ensure fixed even if overridden by desktop styles */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: flex-end;
    padding-top: 0;
    /* Use dvh so iOS toolbar doesn't mess up height */
    height: 100dvh;
    height: -webkit-fill-available;
  }

  .modal {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    /* Space for sticky drag handle */
    padding-top: 18px;
    /* Extend into safe area */
    padding-bottom: calc(20px + var(--sab));
    max-height: 85dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Slide up animation */
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .modal-overlay.open .modal {
    transform: translateY(0);
  }

  /* Drag handle for bottom sheets */
  .modal::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    z-index: 100;
  }

  .modal-header {
    padding: 0 16px 12px;
  }

  .modal-body {
    padding: 0 16px;
  }

  .modal-footer {
    padding: 12px 16px 0;
  }

  /* ---- MOBILE CHECKOUT SHEET (Sleek, Compact, Native E-commerce feel) ---- */
  .modal-head {
    padding: 12px 16px;
  }

  .modal-head h3 {
    font-size: 15px;
  }

  .mc-head-title {
    font-size: 14px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75vw;
  }

  .mc-checkout-2col {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 14px;
  }

  /* Compact product banner on mobile (no 200px+ monster) */
  .mc-prod-banner {
    max-height: 100px;
    aspect-ratio: 16 / 9;
    margin-bottom: 6px;
    border-radius: var(--radius-sm);
  }

  /* Hide long redundant description in quick checkout bottom sheet */
  .mc-desc-section {
    display: none;
  }

  .mc-top-info {
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  .mc-main-price {
    font-size: 18px;
  }

  .mc-group-label {
    font-size: 11px;
    margin-bottom: 6px;
  }

  /* Compact variant list */
  .mc-variant-list {
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }

  .cc-variant-card {
    padding: 7px 8px;
  }

  .v-card-name {
    font-size: 11px;
  }

  .v-card-sub {
    font-size: 10px;
  }

  .v-card-price {
    font-size: 12px;
    margin-top: 2px;
  }

  /* Compact quantity box */
  .mc-qty-box {
    margin-bottom: 10px;
  }

  .qty-ctl button {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .qty-ctl span[data-qty] {
    min-width: 26px;
    font-size: 13px;
  }

  /* Compact coupon row */
  .mc-coupon-row {
    margin-bottom: 6px;
  }

  .mc-coupon-row .input {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 13px !important;
  }

  .mc-coupon-row .btn {
    min-height: 38px;
    padding: 6px 14px;
    font-size: 13px;
  }

  /* Compact bill summary table */
  .mc-bill-table {
    padding: 8px 12px;
    margin-bottom: 10px;
    gap: 3px;
    font-size: 12px;
  }

  .mc-bill-table .b-row {
    font-size: 12px;
  }

  /* Full-width primary CTA button */
  #ccSubmit {
    min-height: 44px;
    font-size: 14.5px;
    font-weight: 700;
  }

  /* Hide redundant policy text in mobile quick checkout sheet */
  .mc-policy-box {
    display: none;
  }


  /* ---- COMMAND PALETTE â€” full screen on mobile ---- */
  .cmd-modal-overlay {
    padding-top: 0;
    align-items: flex-start;
  }

  .cmd-palette {
    width: 100%;
    max-width: 100%;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-top: calc(56px + var(--sat));
    max-height: calc(80dvh - 56px);
  }

  .cmd-input {
    font-size: 16px !important;
    /* prevent zoom */
  }

  /* ---- PROFILE / ACCOUNT ---- */
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    overflow: hidden;
    max-width: 100%;
  }

  .profile-grid>* {
    min-width: 0;
    overflow: hidden;
  }

  .profile-side {
    padding: 20px 16px;
    max-width: 100%;
    overflow: hidden;
  }

  .big-avatar {
    width: 76px;
    height: 76px;
    font-size: 28px;
    margin-bottom: 12px;
  }

  .stat-row {
    padding: 8px 0;
    font-size: 13px;
    gap: 8px;
  }

  .stat-row span:first-child {
    min-width: 0;
    white-space: nowrap;
  }

  .stat-row b,
  .stat-row span:last-child {
    max-width: 50%;
  }

  .tabs {
    overflow-x: auto;
    max-width: 100%;
  }

  /* ---- DATA LEDGERS & TABLES ON MOBILE ---- */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }

  .table-wrap table {
    min-width: 520px;
  }

  .table-wrap th,
  .table-wrap td {
    padding: 10px 12px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  /* ---- GUIDE / DOCS PAGE ---- */
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    display: none;
    /* hidden on mobile â€” use accordion / tab nav */
  }

  .guide-content {
    padding: 0;
    font-size: 14px;
    line-height: 1.65;
  }

  .guide-content h2 {
    font-size: 18px;
  }

  .guide-content h3 {
    font-size: 15px;
  }

  .guide-content pre,
  .guide-content code {
    font-size: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ---- CONTACT / SUPPORT PAGE ---- */
  .contact-grid,
  .support-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-card,
  .support-card {
    padding: 16px;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  /* ---- CATEGORY / FILTER TABS ---- */
  .category-tabs,
  .filter-tabs,
  .tab-group {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
    padding-left: 2px;
    /* prevent first item clipping */
    padding-right: 2px;
    /* Scroll snap for natural swipe feel */
    scroll-snap-type: x proximity;
    /* Allow horizontal pan without capturing vertical scroll */
    touch-action: pan-x;
  }

  .tab-btn,
  .filter-tab {
    scroll-snap-align: start;
  }

  .category-tabs::-webkit-scrollbar,
  .filter-tabs::-webkit-scrollbar,
  .tab-group::-webkit-scrollbar {
    display: none;
  }

  .tab-btn,
  .filter-tab {
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 36px;
    padding: 7px 14px;
    font-size: 13px;
  }

  /* ---- NOTIFICATION ITEMS ---- */
  .notification-item {
    padding: 12px 14px;
    gap: 12px;
  }

  /* ---- HISTORY / ORDER ITEMS ---- */
  .order-row,
  .history-row {
    padding: 12px 0;
    font-size: 13px;
  }

  /* ---- FOOTER ---- */
  footer {
    padding: calc(32px + var(--sat)) 0 calc(16px + var(--sab) + 72px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-desc {
    max-width: 100%;
    font-size: 13px;
  }

  .copyright {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 12px;
  }

  /* ---- TABLES â€” horizontal scroll instead of overflow ---- */
  .table-wrap table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: thin;
    font-size: 13px;
  }

  /* ---- TOAST NOTIFICATIONS ---- */
  /* Note: real element is #toast-wrap not .toast-container */
  #toast-wrap {
    bottom: calc(76px + var(--sab));
    left: 14px;
    right: 14px;
    top: auto;
    align-items: stretch;
  }

  .toast {
    width: 100%;
    max-width: 100%;
    font-size: 13.5px;
  }

  /* ---- HUD decorative accents â€” reduced on mobile ---- */
  .hud-corner-box::before,
  .hud-corner-box::after {
    display: none;
  }

  /* ---- CARD base ---- */
  .card {
    padding: 14px;
    border-radius: var(--radius);
  }

  /* ---- USER CHIP in header â€” compact ---- */
  .user-chip {
    padding: 4px 8px 4px 4px;
    gap: 6px;
  }

  .user-chip .u-info {
    display: none;
    /* Just show avatar on mobile */
  }

  .user-chip .avatar {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  /* ---- SEARCH DROPDOWN ---- */
  .search-dropdown {
    width: calc(100vw - 28px);
    right: auto;
    left: 0;
  }

  /* ---- DROPDOWN MENU ---- */
  .dropdown-menu {
    position: fixed;
    bottom: calc(72px + var(--sab));
    right: 14px;
    left: 14px;
    top: auto;
    width: auto;
    min-width: unset;
    border-radius: var(--radius-lg);
    max-height: 60dvh;
    overflow-y: auto;
  }

  .dropdown-menu a,
  .dropdown-menu button {
    min-height: 44px;
    font-size: 14px;
  }

  /* ---- PAGE TRANSITION ---- */
  #app {
    animation: none;
    /* disable heavy fade on mobile */
  }


  /* ---- Deposit, Wallet & Fintech HUD Mobile ---- */

  /* Wallet Top Hero Card */
  .wallet-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 18px;
    text-align: center;
    border-radius: 16px;
  }

  .wallet-hero>div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .balance-value {
    font-size: clamp(2rem, 8vw, 2.4rem);
  }

  .wallet-stats-side {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    width: 100%;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    gap: 6px;
  }

  /* Tabs Switcher */
  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-bottom: 20px;
  }

  .tabs .tab-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 10px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Deposit Panels & Amount Chips */
  .deposit-panel {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .amount-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
  }

  .amount-chip {
    width: 100%;
    padding: 10px 4px;
    font-size: 12.5px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #submitBank,
  #submitCard {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
  }

  /* HUD Checkout Card */
  .mbbank-checkout-hud {
    padding: 20px 14px;
    border-radius: 16px;
    margin-top: 20px;
  }

  .hud-checkout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .qr-scanner-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 16px;
  }

  .qr-scanner-frame {
    width: 210px;
    height: 210px;
    max-width: 100%;
    margin: 0 auto;
  }

  .hud-details-panel {
    width: 100%;
  }

  .hud-panel-header {
    text-align: center;
  }

  .hud-panel-header h3 {
    justify-content: center;
    font-size: 17px;
  }

  .hud-panel-header p {
    font-size: 12.5px;
    text-align: center;
  }

  .hud-info-box {
    padding: 10px;
    gap: 8px;
  }

  .hud-info-row {
    padding: 10px 12px;
    font-size: 13px;
  }

  .hud-label {
    font-size: 12px;
    flex-shrink: 0;
  }

  .hud-value-group {
    gap: 6px;
  }

  .hud-value {
    font-size: 13.5px;
  }

  .hud-value.mono.cyan {
    font-size: 14px;
  }

  .hud-value.gold {
    font-size: 14px;
    word-break: break-all;
  }

  .btn-copy-2026 {
    padding: 5px 10px;
    font-size: 11.5px;
    white-space: nowrap;
  }

  .radar-listener-bar {
    padding: 12px 14px;
    gap: 12px;
  }

  .radar-listener-text {
    font-size: 12px;
  }

  /* Success Screen on Mobile */
  .deposit-success-card {
    padding: 28px 16px;
    border-radius: 16px;
  }

  .deposit-success-card h2 {
    font-size: 20px !important;
  }

  .success-amount-pill {
    font-size: 22px;
    padding: 8px 20px;
    margin: 10px 0 16px;
  }

  .success-meta-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 20px;
  }

  .deposit-success-card .btn {
    width: 100%;
    justify-content: center;
  }

  /* ---- Unified Mobile Grid, Header & Drawer Sync ---- */
  .grid-2col {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .key-delivery-modal {
    padding: 16px;
  }

  /* Keep Command Palette Search button accessible as an icon button on Mobile */
  #openCommandPalette {
    display: inline-flex !important;
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
  }

  #openCommandPalette span,
  #openCommandPalette kbd {
    display: none !important;
  }

  .notif-dropdown {
    position: fixed;
    top: calc(var(--safe-top) + 64px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }

  .drawer-group-label {
    display: block;
    padding: 14px 14px 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
}



/* ================================================================
   SMALL PHONES <= 480px — Unified Small Screen Layer
   ================================================================ */
@media (max-width: 480px) {

  .container {
    padding: 0 12px;
  }

  /* Single column product grid on very small screens */
  .grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Hero even tighter */
  .hero-title {
    font-size: clamp(20px, 9vw, 28px) !important;
  }

  .hero-cta-group .btn {
    flex: 0 0 100%;
  }

  /* Metrics â€” 2 col, but smaller numbers */
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-value {
    font-size: 19px !important;
  }

  /* Bottom nav label â€” even smaller */
  .mnav-item {
    font-size: 9px;
    padding: 10px 2px;
  }

  /* 5-tab bottom bar (Home / Search / Inbox / Profile / Download) â€” keep
     every label on one line without overflowing the pill. */
  .tab-label {
    font-size: 10px;
    letter-spacing: -0.3px;
  }

  .tab-icon {
    width: 21px;
    height: 21px;
  }

  .tab-item {
    min-width: 44px;
    padding: 6px 1px;
  }

  .mnav-ic svg {
    width: 19px;
    height: 19px;
  }

  /* Section title */
  .section-title {
    font-size: 17px !important;
  }

  /* Auth card */
  .auth-card {
    padding: 20px 14px;
  }

  .tabs {
    grid-template-columns: 1fr;
  }

  .amount-chips {
    grid-template-columns: repeat(2, 1fr);
  }

  .qr-scanner-card {
    max-width: 100%;
  }

  .qr-scanner-frame {
    width: 190px;
    height: 190px;
  }

  .hud-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hud-value-group {
    width: 100%;
    justify-content: space-between;
  }
}


/* ================================================================
   VERY SMALL PHONES â‰¤ 400px â€” 5-tab bar needs extra breathing room
   ================================================================ */
@media (max-width: 400px) {

  .tab-label {
    font-size: 9px;
    letter-spacing: -0.4px;
  }

  .tab-item {
    min-width: 40px;
    padding: 6px 0;
  }

  .tab-icon {
    width: 20px;
    height: 20px;
  }
}

/* ================================================================
   REDUCED MOTION â€” respect user accessibility preferences
   ================================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Keep essential transitions but make them instant */
  .nav-links,
  .modal,
  .nav-backdrop,
  .cmd-modal-overlay,
  .cmd-palette {
    transition-duration: 0.1ms !important;
  }

  /* Disable decorative animations */
  .hud-dot {
    animation: none;
  }

  .announce-item {
    animation: none;
  }

  .coverflow-item-3d {
    transition: none !important;
  }
}

/* ================================================================
   PRINT â€” minimal print stylesheet
   ================================================================ */
@media print {

  .header,
  .mobile-nav,
  .announce-bar,
  footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

@media (max-width: 900px) { #openCommandPalette, #userMenu, .cmd-search-trigger { display: none !important; } }
.hero-sub-stark.hero-scramble-wrap { display: block !important; width: 100% !important; text-align: center !important; white-space: normal !important; margin-left: auto !important; margin-right: auto !important; }
