/* ============================================================
   OpticClose — Liquid Chrome Design System
   chrome.css
   All components that depend on this token layer import or
   link this file. Do NOT add business logic here.
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ============================================================
   TOKEN LAYER — Liquid Chrome Design Tokens
   ============================================================ */
:root {
  /* ── Base backgrounds ── */
  --chrome-dark-0:   #050505;
  --chrome-dark-1:   #0a0a0a;
  --chrome-dark-2:   #111111;
  --chrome-dark-3:   #161616;
  --chrome-dark-4:   #1c1c1c;

  /* ── Luxury Gold gradients ── */
  --chrome-gradient:        linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(255,215,0,0.04) 50%, rgba(212,175,55,0.06) 100%);
  --chrome-metallic:        linear-gradient(135deg, #b8860b 0%, #ffd700 30%, #d4af37 60%, #b8860b 100%);
  --chrome-metallic-text:   linear-gradient(135deg, #d4af37 0%, #ffd700 25%, #f1c84b 55%, #d4af37 80%, #b8860b 100%);
  --chrome-metallic-hero:   linear-gradient(135deg, #ffffff 0%, #ffd700 20%, #d4af37 50%, #ffd700 80%, #b8860b 100%);
  --chrome-shimmer:         linear-gradient(105deg, transparent 40%, rgba(255,215,0,0.12) 50%, transparent 60%);
  --chrome-rim:             linear-gradient(135deg, rgba(255,215,0,0.3) 0%, rgba(212,175,55,0.15) 100%);
  --chrome-border-grad:     linear-gradient(135deg, rgba(255,215,0,0.2), rgba(212,175,55,0.12), rgba(255,215,0,0.08));

  /* ── Gold accent palette ── */
  --accent-cyan:    #d4af37;
  --accent-gold:    #d4af37;
  --accent-gold-bright: #ffd700;
  --accent-gold-deep: #b8860b;
  --accent-silver:  #c0c0c0;
  --accent-white:   #f5f5dc;
  --accent-blue:    #d4af37;
  --accent-green:   #00e5a0;
  --danger:         #ff4d6a;
  --warning:        #ffb84d;
  --success:        #00e5a0;

  /* ── Glass / glassmorphism ── */
  --glass-bg:       rgba(212,175,55,0.04);
  --glass-bg-hover: rgba(212,175,55,0.08);
  --glass-border:   rgba(212,175,55,0.15);
  --glass-border-active: rgba(212,175,55,0.4);
  --glass-blur:     blur(20px);

  /* ── Gold shadows / glows ── */
  --glow-cyan-sm:   0 0 12px rgba(212,175,55,0.25);
  --glow-cyan-md:   0 0 24px rgba(212,175,55,0.35), 0 0 60px rgba(212,175,55,0.12);
  --glow-chrome:    0 0 20px rgba(212,175,55,0.2), 0 0 60px rgba(212,175,55,0.08);
  --glow-gold:      0 4px 20px rgba(212,175,55,0.2), 0 0 40px rgba(212,175,55,0.08);
  --glow-card:      0 8px 48px rgba(0,0,0,0.5), 0 1px 0 rgba(212,175,55,0.08), 0 -1px 0 rgba(0,0,0,0.3);
  --shadow-deep:    0 24px 80px rgba(0,0,0,0.7);
  --shadow-card:    0 4px 24px rgba(0,0,0,0.5), 0 1px 0 rgba(212,175,55,0.08);

  /* ── Typography ── */
  --font-display:   'Space Grotesk', sans-serif;
  --font-body:      'DM Sans', sans-serif;

  /* ── Motion tokens ── */
  --ease-chrome:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:    cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:       150ms;
  --dur-mid:        300ms;
  --dur-slow:       500ms;
  --dur-ambient:    8s;
  --stagger:        80ms;

  /* ── Border radius ── */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

/* Chrome shimmer sweep — moves background-position left to right */
@keyframes chrome-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Ambient chrome drift — slow iridescent float */
@keyframes chrome-drift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* Entrance: fade + rise */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Chrome ripple spinner */
@keyframes chrome-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes chrome-ripple {
  0%   { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.5);  opacity: 0; }
}

/* Pulse for live indicators */
@keyframes chrome-pulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 0 0 rgba(212,175,55,0.5); }
  50%       { opacity: 1;   box-shadow: 0 0 0 6px rgba(212,175,55,0); }
}

/* Page-transition crossfade */
@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Slide-right entrance */
@keyframes slide-right {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0);     }
}

/* Stagger entrance helper */
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ============================================================
   CHROME LOADING SPINNER
   ============================================================ */
.chrome-spinner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
.chrome-spinner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #d4af37;
  border-right-color: rgba(192,192,192,0.5);
  animation: chrome-spin 0.8s linear infinite;
}
.chrome-spinner::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-bottom-color: rgba(212,175,55,0.4);
  animation: chrome-spin 1.2s linear infinite reverse;
}
.chrome-ripple-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.3);
  animation: chrome-ripple 1.5s ease-out infinite;
}

/* Full-page loading overlay */
.chrome-loading {
  position: fixed;
  inset: 0;
  background: var(--chrome-dark-1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fade-in 0.2s ease;
}

/* ============================================================
   CHROME METALLIC TEXT
   ============================================================ */
.chrome-text {
  background: var(--chrome-metallic-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: chrome-drift var(--dur-ambient) ease-in-out infinite;
}
.chrome-text-hero {
  background: var(--chrome-metallic-hero);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: chrome-drift calc(var(--dur-ambient) * 1.5) ease-in-out infinite;
}
.chrome-text-static {
  background: var(--chrome-metallic-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   CHROME GLASS CARD
   ============================================================ */
.chrome-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-mid) var(--ease-smooth),
              box-shadow var(--dur-mid) var(--ease-smooth),
              transform var(--dur-mid) var(--ease-smooth);
}
/* Chrome rim-light at top edge */
.chrome-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5), rgba(255,215,0,0.4), rgba(212,175,55,0.5), transparent);
  pointer-events: none;
}
/* Hover shimmer sweep */
.chrome-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,215,0,0.08) 50%, transparent 60%);
  background-size: 200% 100%;
  background-position: -200% 0;
  pointer-events: none;
  transition: background-position 0.6s var(--ease-smooth);
}
.chrome-card:hover {
  border-color: rgba(212,175,55,0.25);
  box-shadow: var(--shadow-card), var(--glow-gold);
  transform: translateY(-1px);
}
.chrome-card:hover::after {
  background-position: 200% 0;
}

/* ============================================================
   CHROME BUTTONS
   ============================================================ */
/* ── Gold Luxury Buttons ── */
.btn-chrome {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-mid) var(--ease-smooth);
  background: linear-gradient(135deg, #1a1a1a 0%, #0e0e0e 100%);
  border: 1px solid rgba(212,175,55,0.35);
  color: #d4af37;
}
.btn-chrome::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(255,215,0,0.04) 50%, rgba(212,175,55,0.08) 100%);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-smooth);
}
/* Shimmer sweep on hover */
.btn-chrome::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,215,0,0.15) 50%, transparent 65%);
  background-size: 200% 100%;
  background-position: -200% 0;
  transition: background-position 0.5s var(--ease-smooth);
}
.btn-chrome:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212,175,55,0.3), 0 0 0 1px rgba(212,175,55,0.25), inset 0 1px 0 rgba(255,215,0,0.1);
  border-color: rgba(212,175,55,0.6);
}
.btn-chrome:hover::before { opacity: 1; }
.btn-chrome:hover::after  { background-position: 200% 0; }
.btn-chrome:active        { transform: translateY(0); }

/* Primary gold — filled button */
.btn-chrome-primary {
  background: linear-gradient(135deg, #d4af37 0%, #ffd700 40%, #b8860b 100%);
  border-color: rgba(255,215,0,0.6);
  color: #0a0a0a;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(212,175,55,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-chrome-primary:hover {
  box-shadow: 0 6px 28px rgba(212,175,55,0.5), 0 0 0 1px rgba(212,175,55,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
  background: linear-gradient(135deg, #ffd700 0%, #f1c84b 40%, #d4af37 100%);
  transform: translateY(-1px);
}

/* Ghost gold */
.btn-chrome-ghost {
  background: transparent;
  border: 1px solid rgba(212,175,55,0.25);
  color: #d4af37;
}
.btn-chrome-ghost:hover {
  border-color: rgba(212,175,55,0.5);
  color: #ffd700;
  box-shadow: 0 0 16px rgba(212,175,55,0.15), inset 0 1px 0 rgba(255,215,0,0.08);
}

/* ============================================================
   CHROME BADGE / PILL
   ============================================================ */
.chrome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.2);
  color: #d4af37;
}
.chrome-badge .badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd700;
  animation: chrome-pulse 2s ease-in-out infinite;
}

/* ============================================================
   PAGE TRANSITION WRAPPER
   ============================================================ */
.page-enter {
  animation: page-in var(--dur-mid) var(--ease-chrome) both;
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  animation: stagger-in var(--dur-slow) var(--ease-chrome) forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 80ms; }
.stagger-children > *:nth-child(3) { animation-delay: 160ms; }
.stagger-children > *:nth-child(4) { animation-delay: 240ms; }
.stagger-children > *:nth-child(5) { animation-delay: 320ms; }
.stagger-children > *:nth-child(6) { animation-delay: 400ms; }

/* ============================================================
   CHROME DIVIDER
   ============================================================ */
.chrome-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,192,192,0.2), rgba(212,175,55,0.15), rgba(192,192,192,0.2), transparent);
  border: none;
  margin: 0;
}

/* ============================================================
   AMBIENT BACKGROUND ORBS (decorative)
   ============================================================ */
.chrome-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.35;
}
.chrome-orb-cyan  { background: radial-gradient(circle, rgba(212,175,55,0.4) 0%, transparent 70%); }
.chrome-orb-silver{ background: radial-gradient(circle, rgba(192,192,192,0.25) 0%, transparent 70%); }
.chrome-orb-blue  { background: radial-gradient(circle, rgba(0,80,220,0.35) 0%, transparent 70%); }

/* ============================================================
   UTILITY HELPERS
   ============================================================ */
.fade-up { animation: fade-up var(--dur-slow) var(--ease-chrome) both; }
.fade-in  { animation: fade-in var(--dur-mid) var(--ease-smooth) both; }

/* Intersection observer hook — add .revealed via JS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-chrome),
              transform var(--dur-slow) var(--ease-chrome);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Chrome input */
.chrome-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: #e8f4ff;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color var(--dur-mid) var(--ease-smooth),
              box-shadow var(--dur-mid) var(--ease-smooth);
  outline: none;
  width: 100%;
}
.chrome-input:focus {
  border-color: rgba(212,175,55,0.35);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}
.chrome-input::placeholder { color: rgba(255,255,255,0.2); }

/* Chrome stat number */
.chrome-stat {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--chrome-metallic-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: chrome-drift var(--dur-ambient) ease-in-out infinite;
  line-height: 1;
}

/* ============================================================
   CHROME GLOBAL APPLICATION LAYER
   Auto-applies chrome styling to common elements when chrome.css
   is linked. These are low-specificity rules that existing inline
   styles can override without conflict.
   ============================================================ */

/* --- Global Chrome Panels (Gold Luxury) --- */
.chrome-panel {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(212,175,55,0.06);
  transition: border-color var(--dur-mid) var(--ease-smooth),
              box-shadow var(--dur-mid) var(--ease-smooth);
}
.chrome-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5), rgba(255,215,0,0.4), rgba(212,175,55,0.5), transparent);
  pointer-events: none;
}
.chrome-panel:hover {
  border-color: rgba(212,175,55,0.35);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5), 0 0 20px rgba(212,175,55,0.12), 0 0 0 1px rgba(212,175,55,0.08);
}

/* --- Chrome Section Header --- */
.chrome-section-header {
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--chrome-metallic-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: chrome-drift var(--dur-ambient) ease-in-out infinite;
}

/* --- Gold KPI Card --- */
.chrome-kpi {
  background: rgba(17,17,17,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,175,55,0.05), inset 0 1px 0 rgba(255,215,0,0.06);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.chrome-kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.5), rgba(212,175,55,0.4), transparent);
  pointer-events: none;
}
.chrome-kpi::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,215,0,0.06) 50%, transparent 60%);
  background-size: 200% 100%;
  background-position: -200% 0;
  pointer-events: none;
  transition: background-position 0.6s cubic-bezier(0.4,0,0.2,1);
}
.chrome-kpi:hover {
  border-color: rgba(212,175,55,0.35);
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 30px rgba(212,175,55,0.12), 0 0 0 1px rgba(212,175,55,0.08);
  transform: translateY(-3px);
}
.chrome-kpi:hover::after {
  background-position: 200% 0;
}

/* --- Chrome Table --- */
.chrome-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  position: relative;
}
.chrome-table-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,192,192,0.3), rgba(212,175,55,0.2), transparent);
  pointer-events: none;
  z-index: 1;
}

/* --- Gold Modal --- */
.chrome-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.chrome-modal {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-xl);
  padding: 28px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(212,175,55,0.06), 0 0 40px rgba(212,175,55,0.05);
}
.chrome-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.4), rgba(212,175,55,0.3), transparent);
  border-radius: 24px 24px 0 0;
  pointer-events: none;
}

/* --- Gold Nav Item --- */
.chrome-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(200,200,200,0.7);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
}
.chrome-nav-item:hover {
  background: rgba(212,175,55,0.06);
  color: #ffd700;
  border-color: rgba(212,175,55,0.15);
}
.chrome-nav-item.active {
  background: linear-gradient(135deg, rgba(212,175,55,0.1) 0%, rgba(255,215,0,0.06) 50%, rgba(212,175,55,0.08) 100%);
  color: #ffd700;
  border-color: rgba(212,175,55,0.25);
  box-shadow: 0 0 16px rgba(212,175,55,0.12), inset 0 1px 0 rgba(255,215,0,0.08);
}

/* --- Gold Tab Bar --- */
.chrome-tabs {
  display: flex;
  gap: 2px;
  padding: 12px 24px 0;
  border-bottom: 1px solid rgba(212,175,55,0.12);
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
}
.chrome-tabs::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.15), transparent);
  pointer-events: none;
}
.chrome-tab {
  padding: 9px 18px;
  background: none;
  border: none;
  color: rgba(200,200,200,0.6);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.chrome-tab:hover {
  color: #ffd700;
  background: rgba(212,175,55,0.04);
}
.chrome-tab.active {
  color: #ffd700;
  border-bottom-color: #d4af37;
  background: rgba(212,175,55,0.08);
  box-shadow: 0 2px 12px rgba(212,175,55,0.15);
}

/* --- Gold Topbar --- */
.chrome-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(212,175,55,0.12);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5), 0 1px 0 rgba(212,175,55,0.05);
}
.chrome-topbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), rgba(255,215,0,0.2), rgba(212,175,55,0.3), transparent);
  pointer-events: none;
}

/* --- Chrome Page Title --- */
.chrome-page-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: var(--chrome-metallic-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: chrome-drift var(--dur-ambient) ease-in-out infinite;
}

/* --- Auto-apply: page-title and page-header chrome treatment --- */
.page-title {
  font-family: var(--font-display);
  background: var(--chrome-metallic-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: chrome-drift var(--dur-ambient) ease-in-out infinite;
}

/* --- Gold Sidebar Glass --- */
.chrome-sidebar {
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-right: 1px solid rgba(212,175,55,0.12);
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.6), inset -1px 0 0 rgba(212,175,55,0.06);
}
.chrome-sidebar::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,215,0,0.25) 30%, rgba(212,175,55,0.2) 70%, transparent 100%);
  pointer-events: none;
}

/* --- Gold Select (dropdown) --- */
.chrome-select {
  background: rgba(17,17,17,0.9);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-md);
  color: #f5f5dc;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color var(--dur-mid) var(--ease-smooth),
              box-shadow var(--dur-mid) var(--ease-smooth);
  outline: none;
  cursor: pointer;
}
.chrome-select:focus {
  border-color: rgba(212,175,55,0.35);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}
.chrome-select option {
  background: #0a0a0a;
  color: #f5f5dc;
}

/* --- Gold Toggle Switch --- */
.chrome-toggle {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.15);
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease-smooth);
}
.chrome-toggle.on {
  background: rgba(212,175,55,0.2);
  border-color: rgba(212,175,55,0.45);
  box-shadow: 0 0 12px rgba(212,175,55,0.25);
}
.chrome-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c0c0c0;
  transition: transform var(--dur-mid) var(--ease-chrome);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.chrome-toggle.on::after {
  transform: translateX(20px);
  background: #d4af37;
}

/* --- Chrome Empty State --- */
.chrome-empty {
  text-align: center;
  padding: 48px 24px;
  color: rgba(136,153,176,0.6);
  font-size: 14px;
}
.chrome-empty-icon {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* --- Chrome Alert/Toast --- */
.chrome-alert {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.chrome-alert.success { border-color: rgba(0,229,160,0.25); color: var(--success); }
.chrome-alert.danger { border-color: rgba(255,77,106,0.25); color: var(--danger); }
.chrome-alert.warning { border-color: rgba(255,184,77,0.25); color: var(--warning); }
.chrome-alert.info { border-color: rgba(212,175,55,0.25); color: var(--accent-cyan); }

/* ============================================================
   ELITE VISUAL LAYER — Premium Depth & Motion Enhancements
   Phase 7 — Cinematic Upgrade Pass
   ============================================================ */

/* ── New keyframes ── */
@keyframes float-y {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes glow-breathe {
  0%, 100% { box-shadow: 0 0 20px rgba(212,175,55,0.12), 0 0 60px rgba(212,175,55,0.04); }
  50%       { box-shadow: 0 0 35px rgba(212,175,55,0.22), 0 0 80px rgba(212,175,55,0.1); }
}
@keyframes border-dance {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes particle-drift {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.4; }
  33%  { transform: translateY(-24px) translateX(12px) scale(1.1); opacity: 0.7; }
  66%  { transform: translateY(-12px) translateX(-8px) scale(0.9); opacity: 0.5; }
  100% { transform: translateY(-40px) translateX(4px) scale(0.8); opacity: 0; }
}
@keyframes scan-line {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
@keyframes card-lift {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-6px) scale(1.01); }
}
@keyframes success-burst {
  0%   { transform: scale(0.6); opacity: 0; box-shadow: 0 0 0 0 rgba(0,229,160,0.5); }
  50%  { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 20px rgba(0,229,160,0); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 20px rgba(0,229,160,0.2); }
}
@keyframes toast-in {
  from { transform: translateX(100%) scale(0.9); opacity: 0; }
  to   { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes toast-out {
  from { transform: translateX(0) scale(1); opacity: 1; max-height: 80px; }
  to   { transform: translateX(100%) scale(0.9); opacity: 0; max-height: 0; }
}
@keyframes shimmer-fast {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50%       { transform: scale(1.15); opacity: 0.35; }
}

/* ── Premium Card Hover System ── */
.chrome-card-elite {
  background: rgba(10,10,20,0.65);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s var(--ease-smooth),
    border-color 0.3s var(--ease-smooth);
  box-shadow: 0 4px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
  transform-style: preserve-3d;
  will-change: transform;
}
.chrome-card-elite::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(192,192,192,0.5) 30%, rgba(212,175,55,0.4) 60%, transparent 100%);
  pointer-events: none;
}
.chrome-card-elite::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212,175,55,0.05) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.chrome-card-elite:hover {
  border-color: rgba(212,175,55,0.22);
  box-shadow:
    0 16px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(212,175,55,0.12),
    0 0 40px rgba(212,175,55,0.06);
}
.chrome-card-elite:hover::after { opacity: 1; }

/* ── Gold Luxury Orbs (enhanced) ── */
.elite-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  animation: orb-pulse 6s ease-in-out infinite;
}
.elite-orb-cyan {
  background: radial-gradient(circle, rgba(212,175,55,0.35) 0%, transparent 70%);
}
.elite-orb-blue {
  background: radial-gradient(circle, rgba(255,215,0,0.25) 0%, transparent 70%);
}
.elite-orb-silver {
  background: radial-gradient(circle, rgba(184,134,11,0.25) 0%, transparent 70%);
  animation-delay: -3s;
}
.elite-orb-green {
  background: radial-gradient(circle, rgba(0,229,160,0.2) 0%, transparent 70%);
  animation-delay: -1.5s;
}

/* ── Animated Gradient Border ── */
.chrome-border-animated {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(var(--chrome-dark-1), var(--chrome-dark-1)) padding-box,
              linear-gradient(135deg, rgba(212,175,55,0.4), rgba(192,192,192,0.3), rgba(212,175,55,0.2), rgba(192,192,192,0.4)) border-box;
  border: 1px solid transparent;
}

/* ── Premium Button States ── */
.btn-chrome-primary.loading {
  pointer-events: none;
  position: relative;
  color: transparent;
}
.btn-chrome-primary.loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: chrome-spin 0.7s linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* ── Floating Elements ── */
.float-gentle {
  animation: float-y 4s ease-in-out infinite;
}
.float-gentle-slow {
  animation: float-y 6s ease-in-out infinite;
  animation-delay: -2s;
}

/* ── Glow Breathing ── */
.glow-breathe {
  animation: glow-breathe 3s ease-in-out infinite;
}

/* ── Premium Toast Notification ── */
.chrome-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.chrome-toast {
  background: rgba(10,10,24,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #e8f4ff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  animation: toast-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: all;
  max-width: 320px;
  position: relative;
  overflow: hidden;
}
.chrome-toast::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.chrome-toast.success { border-color: rgba(0,229,160,0.3); }
.chrome-toast.success .toast-icon { color: #00e5a0; }
.chrome-toast.error { border-color: rgba(255,77,106,0.3); }
.chrome-toast.error .toast-icon { color: #ff4d6a; }
.chrome-toast.info { border-color: rgba(212,175,55,0.3); }
.chrome-toast.info .toast-icon { color: #d4af37; }
.chrome-toast.exiting { animation: toast-out 0.35s ease forwards; }
.toast-icon { flex-shrink: 0; font-size: 16px; }
.toast-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--accent-cyan);
  animation: scan-bar 3s linear forwards;
}
@keyframes scan-bar {
  from { width: 100%; }
  to   { width: 0%; }
}

/* ── Premium Step Progress ── */
.chrome-step-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.chrome-step-node {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chrome-step-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(10,10,22,0.8);
  color: rgba(136,153,176,0.6);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  flex-shrink: 0;
}
.chrome-step-circle.active {
  background: rgba(184,134,11,0.2);
  border-color: rgba(184,134,11,0.6);
  color: #fff;
  box-shadow: 0 0 20px rgba(184,134,11,0.4), 0 0 0 4px rgba(184,134,11,0.08);
}
.chrome-step-circle.done {
  background: rgba(212,175,55,0.2);
  border-color: rgba(212,175,55,0.6);
  color: #d4af37;
  box-shadow: 0 0 16px rgba(212,175,55,0.3);
}
.chrome-step-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(136,153,176,0.5);
  transition: color 0.3s ease;
  white-space: nowrap;
}
.chrome-step-label.active { color: #e8f4ff; }
.chrome-step-label.done { color: var(--accent-cyan); }
.chrome-step-line {
  height: 2px;
  width: 48px;
  background: rgba(255,255,255,0.06);
  margin: 0 4px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.chrome-step-line::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(212,175,55,0.6), rgba(212,175,55,0.3));
  transition: width 0.5s var(--ease-chrome);
  border-radius: 2px;
}
.chrome-step-line.done::after { width: 100%; }

/* ── Cinematic Page Background ── */
.chrome-bg-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.chrome-bg-scene .scene-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-pulse 8s ease-in-out infinite;
}
.chrome-bg-scene .orb-1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, rgba(184,134,11,0.18) 0%, transparent 70%);
  animation-delay: 0s;
}
.chrome-bg-scene .orb-2 {
  width: 500px; height: 500px;
  top: 40%; right: -150px;
  background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
  animation-delay: -3s;
}
.chrome-bg-scene .orb-3 {
  width: 400px; height: 400px;
  bottom: -100px; left: 30%;
  background: radial-gradient(circle, rgba(192,192,192,0.08) 0%, transparent 70%);
  animation-delay: -6s;
}

/* ── Grid texture overlay ── */
.chrome-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* ── Success animation (premium) ── */
.success-icon-elite {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(0,229,160,0.1);
  border: 2px solid rgba(0,229,160,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: success-burst 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
}
.success-icon-elite::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,160,0.15);
  animation: chrome-ripple 2s ease-out infinite;
}
.success-icon-elite::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,160,0.08);
  animation: chrome-ripple 2s ease-out 0.5s infinite;
}

/* ── KPI stat glow number ── */
.chrome-stat-glow {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--chrome-metallic-hero);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: chrome-drift calc(var(--dur-ambient) * 1.2) ease-in-out infinite;
  line-height: 1;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(212,175,55,0.25));
}

/* ── Premium input focus ring ── */
.chrome-input-elite {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: #e8f4ff;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  outline: none;
  width: 100%;
}
.chrome-input-elite:focus {
  border-color: rgba(212,175,55,0.45);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.08), inset 0 1px 0 rgba(212,175,55,0.05);
  background: rgba(212,175,55,0.03);
}
.chrome-input-elite::placeholder { color: rgba(255,255,255,0.18); }
.chrome-input-elite:hover:not(:focus) {
  border-color: rgba(255,255,255,0.14);
}

/* ── Hover tilt utility (applied via JS) ── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.3s ease;
  will-change: transform;
}

/* ── Scan line decorative effect ── */
.chrome-scan {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.6), transparent);
  animation: scan-line 3s linear infinite;
  pointer-events: none;
  opacity: 0;
}
.chrome-card:hover .chrome-scan,
.chrome-panel:hover .chrome-scan {
  opacity: 1;
}

/* ── Chrome product card premium ── */
.chrome-product-premium {
  background: rgba(10,10,22,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
  position: relative;
  cursor: pointer;
}
.chrome-product-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,192,192,0.3), rgba(212,175,55,0.25), transparent);
  z-index: 2;
}
.chrome-product-premium:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(212,175,55,0.2);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(212,175,55,0.1),
    0 0 30px rgba(212,175,55,0.06);
}
.chrome-product-premium .product-img img {
  transition: transform 0.5s ease, filter 0.3s ease;
}
.chrome-product-premium:hover .product-img img {
  transform: scale(1.06);
  filter: brightness(1.05) saturate(1.1);
}

/* ── Hero section premium ── */
.chrome-hero-premium {
  background: linear-gradient(135deg, rgba(184,134,11,0.12) 0%, rgba(212,175,55,0.06) 50%, rgba(192,192,192,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.chrome-hero-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,192,192,0.4), rgba(212,175,55,0.3), rgba(192,192,192,0.4), transparent);
}
.chrome-hero-premium::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: orb-pulse 6s ease-in-out infinite;
}

/* ── Animated badge ── */
.chrome-badge-animated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--accent-cyan);
  position: relative;
  overflow: hidden;
}
.chrome-badge-animated::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer-fast 2.5s ease-in-out infinite;
}
.chrome-badge-animated .badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: chrome-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Global toast helper ── */
/* Usage: showChromeToast('Message', 'success'|'error'|'info') */
