/* ============================================================
   MicroBioLab — Premium Black & Gold Modern Storefront Stylesheet
   Luxury Obsidian & Metallic Gold Overhaul
   ============================================================ */

/* ============================================================
   DESIGN TOKENS — BLACK & GOLD LUXURY PALETTE
   ============================================================ */
:root {
  /* Metallic Gold Palette */
  --color-primary:       #d4af37; /* Classic Radiant Metallic Gold */
  --color-primary-dark:  #aa7c11; /* Deep Burnished Gold */
  --color-primary-light: #f3e5ab; /* Soft Champagne Gold */
  --color-primary-pale:  rgba(212, 175, 55, 0.12); /* Translucent Gold Tint */
  --color-accent:        #ffd700; /* Pure Radiant Gold */
  --color-accent-light:  #fff5cc; /* Light Gold Highlight */
  --color-accent-dark:   #c5a059; /* Antique Gold */

  /* Obsidian & Onyx Dark Neutrals */
  --color-brown:         #c5a059; /* Warm Muted Gold */
  --color-beige:         #181a20; /* Dark Surface Charcoal */
  --color-beige-dark:    #21252f; /* Elevated Dark Surface */
  --color-cream:         #0b0c0f; /* Rich Deep Obsidian Page Background */
  --color-white:         #12141a; /* Card / Container Onyx Background */
  --color-text:          #f4f1ea; /* Soft Warm Ivory / Off-White Text */
  --color-text-secondary:#c5beaf; /* Elegant Secondary Text */
  --color-text-muted:    #8a8275; /* Muted Gold-Grey Text */
  --color-border:        rgba(212, 175, 55, 0.22); /* Subtle Metallic Gold Border */
  --color-border-light:  rgba(212, 175, 55, 0.12); /* Translucent Faint Gold Border */

  /* Status Colors (Tailored for Dark Gold aesthetic) */
  --color-danger:        #ff4d4d;
  --color-danger-light:  rgba(255, 77, 77, 0.15);
  --color-success:       #2ecc71;
  --color-success-light: rgba(46, 204, 113, 0.15);
  --color-warning:       #f39c12;
  --color-warning-light: rgba(243, 156, 18, 0.15);
  --color-info:          #3498db;
  --color-info-light:    rgba(52, 152, 219, 0.15);

  /* Typography */
  --font-serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:   "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:   "JetBrains Mono", "Fira Code", monospace;

  /* Modern Radii */
  --container:       1240px;
  --container-narrow: 880px;
  --radius-sm:       8px;
  --radius:          14px;
  --radius-lg:       20px;
  --radius-xl:       28px;

  /* Layered Shadows & Gold Metallic Glows */
  --shadow-sm:   0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow:      0 4px 18px rgba(0, 0, 0, 0.6), 0 0 1px rgba(212, 175, 55, 0.2);
  --shadow-md:   0 8px 24px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.18);
  --shadow-lg:   0 12px 36px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.25);
  --shadow-xl:   0 20px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.35);
  --shadow-glow: 0 0 15px rgba(212, 175, 55, 0.4);

  /* Transitions */
  --ease-out:       cubic-bezier(.16,1,.3,1);
  --ease-in-out:    cubic-bezier(.4,0,.2,1);
  --ease-bounce:    cubic-bezier(.34,1.56,.64,1);
  --transition:     .25s var(--ease-out);
  --transition-lg:  .4s var(--ease-out);
  --transition-xl:  .6s var(--ease-out);

  --z-base:      1;
  --z-dropdown:  50;
  --z-sticky:    100;
  --z-overlay:   200;
  --z-modal:     300;
  --z-toast:     400;
}

/* ============================================================
   THEME PALETTE OVERRIDES
   ============================================================ */
[data-theme="black-gold"] {
  --color-primary:       #d4af37;
  --color-primary-dark:  #aa7c11;
  --color-primary-light: #f3e5ab;
  --color-primary-pale:  rgba(212, 175, 55, 0.12);
  --color-accent:        #ffd700;
  --color-accent-light:  #fff5cc;
  --color-accent-dark:   #c5a059;

  --color-brown:         #c5a059;
  --color-beige:         #181a20;
  --color-beige-dark:    #21252f;
  --color-cream:         #0b0c0f;
  --color-white:         #12141a;
  --color-text:          #f4f1ea;
  --color-text-secondary:#c5beaf;
  --color-text-muted:    #8a8275;
  --color-border:        rgba(212, 175, 55, 0.22);
  --color-border-light:  rgba(212, 175, 55, 0.12);
}

[data-theme="emerald"] {
  --color-primary:       #2ecc71;
  --color-primary-dark:  #1e8449;
  --color-primary-light: #a3e4d7;
  --color-primary-pale:  rgba(46, 204, 113, 0.14);
  --color-accent:        #f1c40f;
  --color-accent-light:  #f9e79f;
  --color-accent-dark:   #d4ac0d;

  --color-brown:         #52be80;
  --color-beige:         #102219;
  --color-beige-dark:    #162f23;
  --color-cream:         #09140e;
  --color-white:         #0d1d16;
  --color-text:          #e8f8f5;
  --color-text-secondary:#a2d9ce;
  --color-text-muted:    #73c6b6;
  --color-border:        rgba(46, 204, 113, 0.25);
  --color-border-light:  rgba(46, 204, 113, 0.12);
}

[data-theme="sapphire"] {
  --color-primary:       #3498db;
  --color-primary-dark:  #1f618d;
  --color-primary-light: #a9cce3;
  --color-primary-pale:  rgba(52, 152, 219, 0.14);
  --color-accent:        #00d2ff;
  --color-accent-light:  #e0f7fa;
  --color-accent-dark:   #0097a7;

  --color-brown:         #5499c7;
  --color-beige:         #111927;
  --color-beige-dark:    #182335;
  --color-cream:         #0a0f19;
  --color-white:         #0f1724;
  --color-text:          #ebf5fb;
  --color-text-secondary:#a9cce3;
  --color-text-muted:    #7fb3d5;
  --color-border:        rgba(52, 152, 219, 0.25);
  --color-border-light:  rgba(52, 152, 219, 0.12);
}

[data-theme="amethyst"] {
  --color-primary:       #9b59b6;
  --color-primary-dark:  #6c3483;
  --color-primary-light: #e8daef;
  --color-primary-pale:  rgba(155, 89, 182, 0.14);
  --color-accent:        #f368e0;
  --color-accent-light:  #f8efba;
  --color-accent-dark:   #e056fd;

  --color-brown:         #af7ac5;
  --color-beige:         #1e1424;
  --color-beige-dark:    #2a1b33;
  --color-cream:         #120b17;
  --color-white:         #191020;
  --color-text:          #f5eeef;
  --color-text-secondary:#d7bde2;
  --color-text-muted:    #bb8fce;
  --color-border:        rgba(155, 89, 182, 0.25);
  --color-border-light:  rgba(155, 89, 182, 0.12);
}

[data-theme="ivory"] {
  --color-primary:       #c8852a;
  --color-primary-dark:  #8c5814;
  --color-primary-light: #f6e7cd;
  --color-primary-pale:  rgba(200, 133, 42, 0.12);
  --color-accent:        #1f7a54;
  --color-accent-light:  #e8f4ee;
  --color-accent-dark:   #14503a;

  --color-brown:         #8c5814;
  --color-beige:         #f5f2eb;
  --color-beige-dark:    #eae5da;
  --color-cream:         #faf8f5;
  --color-white:         #ffffff;
  --color-text:          #1a1917;
  --color-text-secondary:#59544c;
  --color-text-muted:    #8c8477;
  --color-border:        rgba(200, 133, 42, 0.25);
  --color-border-light:  rgba(200, 133, 42, 0.12);
}

[data-theme="ivory"] .site-header { background: #ffffff; }
[data-theme="ivory"] .site-header.is-scrolled { background: rgba(255, 255, 255, 0.95); }
[data-theme="ivory"] .site-footer { background: #1a1917; color: rgba(255,255,255,.8); }
[data-theme="ivory"] .topbar { background: #26231e; color: #e8e3d8; }
[data-theme="ivory"] .card,
[data-theme="ivory"] .summary-box,
[data-theme="ivory"] .quick-link,
[data-theme="ivory"] .auth-card,
[data-theme="ivory"] .partner-card,
[data-theme="ivory"] .table { background: #ffffff; }
[data-theme="ivory"] input,
[data-theme="ivory"] select,
[data-theme="ivory"] textarea { background: #ffffff; color: #1a1917; }
[data-theme="ivory"] .page-banner { background: #f5f2eb; }
[data-theme="ivory"] .page-banner h1 { color: var(--color-primary-dark) !important; text-shadow: none; -webkit-text-fill-color: initial !important; }
[data-theme="ivory"] .section-head h2 { color: var(--color-primary-dark); background: none; -webkit-text-fill-color: initial !important; }
[data-theme="ivory"] .brand__name { color: var(--color-primary-dark); }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (min-width: 768px) { body { font-size: 16px; } }

/* Metallic Gold Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-primary-light);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); font-weight: 600; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 600; }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 600; }
p  { margin: 0 0 1.25rem; font-size: 1.02rem; line-height: 1.7; color: var(--color-text-secondary); }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition), text-shadow .2s;
}
a:hover {
  color: var(--color-primary-light);
  -webkit-text-fill-color: initial;
  text-decoration: underline;
}

/* Mailto, Tel, & Contact Info Links */
a[href^="mailto:"],
a[href^="tel:"] {
  color: var(--color-primary-light) !important;
  font-weight: 600;
  transition: color .2s, text-shadow .2s;
}
a[href^="mailto:"]:hover,
a[href^="tel:"]:hover {
  color: var(--color-accent) !important;
  -webkit-text-fill-color: initial !important;
  text-decoration: underline;
  text-shadow: none;
}

/* Summary Box & Card Links */
.summary-box a,
.card a,
.partner-card a {
  color: var(--color-primary);
  font-weight: 600;
  transition: color .2s, text-shadow .2s;
}
.summary-box a:hover,
.card a:hover,
.partner-card a:hover {
  color: var(--color-accent) !important;
  -webkit-text-fill-color: initial !important;
  text-decoration: underline;
}
a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--color-primary); color: #0d0e12; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.container--narrow { max-width: var(--container-narrow); }

/* ---------- Section ---------- */
.section {
  padding: 3.5rem 0;
  position: relative;
}
@media (min-width: 768px) { .section { padding: 4.5rem 0; } }
@media (min-width: 1200px) { .section { padding: 5.5rem 0; } }

.section--beige { background: var(--color-beige); }
.section--dark {
  background: linear-gradient(135deg, #07080a 0%, #161822 50%, #07080a 100%);
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark .section-head h2 { color: var(--color-primary-light); }
.section--dark .eyebrow { color: var(--color-primary); }

/* Subtle pattern overlay for dark sections */
.section--dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(212,175,55,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Fluid Animations */
@keyframes soft-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

@keyframes slide-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-pulse { animation: soft-pulse 6s infinite ease-in-out; }
.animate-float { animation: float 8s infinite ease-in-out; }
.animate-slide-up { animation: slide-in-up .8s var(--ease-in-out) forwards; }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head { text-align: center; margin-bottom: 3rem; position: relative; animation: slide-in-up .7s var(--ease-out); }
.section-head h2 {
  margin-bottom: .75rem;
  background: linear-gradient(135deg, #f5e6c8 0%, #d4af37 60%, #aa7c11 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  position: relative;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: '';
  width: 22px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--color-primary));
  display: inline-block;
}
.section-head .eyebrow::after {
  background: linear-gradient(90deg, var(--color-primary), transparent);
}
.section-head p {
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-sm     { font-size: .85rem; }
.text-lg     { font-size: 1.1rem; }
.muted       { color: var(--color-text-muted); }
.flex        { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-wrap    { flex-wrap: wrap; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hide { display: none !important; }
.block { display: block; }
.w-full { width: 100%; }
.max-w-760 { max-width: 760px; margin-inline: auto; }
.max-w-600 { max-width: 600px; margin-inline: auto; }
.max-w-500 { max-width: 500px; margin-inline: auto; }
.max-w-820 { max-width: 820px; margin-inline: auto; }
.prewrap { white-space: pre-wrap; }
.align-self-start { align-self: flex-start; }
.lead { font-size: 1.1rem; line-height: 1.7; color: var(--color-text-secondary); }
.opacity-90 { opacity: .9; }

/* ============================================================
   BUTTONS — LUXURY METALLIC GOLD & DARK SLATES
   ============================================================ */
.btn {
  --btn-bg: linear-gradient(135deg, #dfb749 0%, #d4af37 50%, #aa7c11 100%);
  --btn-color: #0d0e12;
  --btn-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: var(--btn-height);
  padding: 0 1.6rem;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-color);
  text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), filter .2s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn:hover {
  background: linear-gradient(135deg, #ffe57f 0%, #dfb749 50%, #c5a059 100%);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
  text-decoration: none;
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.btn--accent {
  --btn-bg: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  --btn-color: #000;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}
.btn--accent:hover {
  background: linear-gradient(135deg, #fff099 0%, #ffd700 100%);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.45);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  box-shadow: none;
}
.btn--outline:hover {
  --btn-bg: var(--color-primary-pale);
  --btn-color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-color: var(--color-text);
  border: none;
  box-shadow: none;
}
.btn--ghost:hover {
  --btn-bg: var(--color-primary-pale);
  --btn-color: var(--color-primary);
  box-shadow: none;
  transform: none;
}

.btn--ghost-light {
  --btn-bg: rgba(10, 12, 16, 0.85);
  --btn-color: #ffffff;
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.btn--ghost-light:hover {
  --btn-bg: var(--color-primary);
  --btn-color: #000000;
  border-color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn--lg  { --btn-height: 54px; padding: 0 2rem; font-size: 1rem; }
.btn--sm  { --btn-height: 38px; padding: 0 1.1rem; font-size: .84rem; border-radius: var(--radius-sm); }
.btn--block { width: 100%; }
.btn--round { border-radius: 999px; }

.btn[disabled], .btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: #07080a;
  color: var(--color-text-secondary);
  font-size: .8rem;
  padding: .45rem 0;
  position: relative;
  z-index: calc(var(--z-sticky) + 1);
  border-bottom: 1px solid var(--color-border);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar a { color: var(--color-text-secondary); transition: color .2s; text-decoration: none; }
.topbar a:hover { color: var(--color-primary-light) !important; text-decoration: underline; }
.topbar a:hover i { color: var(--color-accent) !important; opacity: 1; }
.topbar__contact, .topbar__auth { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__item i { color: var(--color-primary); opacity: .9; transition: color .2s; }
.topbar__item--admin { opacity: .9; color: var(--color-primary); }
.topbar__divider { opacity: .3; color: var(--color-primary); }
@media (max-width: 767px) {
  .topbar { display: none; }
}

/* ============================================================
   ANNOUNCEMENTS BAR
   ============================================================ */
.announcements {
  background: linear-gradient(90deg, #aa7c11 0%, #d4af37 50%, #aa7c11 100%);
  color: #0d0e12;
  font-size: .82rem;
  font-weight: 600;
  position: relative;
  z-index: calc(var(--z-sticky) + 1);
}
.announcements__inner {
  display: flex;
  align-items: center;
  padding: .4rem 1rem;
}
.announcements__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.announcements__list::-webkit-scrollbar { display: none; }
.announcement {
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
  padding: .1rem 0;
  animation: announce-fade-in .4s var(--ease-out) both;
}
.announcement__icon { font-size: .85rem; opacity: .9; flex-shrink: 0; }
.announcement__msg  { font-weight: 600; }
.announcement__link {
  color: #0d0e12;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.announcement__close {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0 0 .3rem;
  opacity: .7;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
  line-height: 1;
}
.announcement__close:hover { opacity: 1; transform: scale(1.15); }

.announcements[data-tone="info"]    { background: linear-gradient(90deg, #b8860b, #d4af37); }
.announcements[data-tone="success"] { background: linear-gradient(90deg, #27ae60, #2ecc71); color: #fff; }
.announcements[data-tone="warning"] { background: linear-gradient(90deg, #e67e22, #f39c12); color: #fff; }
.announcements[data-tone="promo"]   { background: linear-gradient(90deg, #dfb749, #ffd700); color: #000; }

.announcement.is-dismissed {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition: max-height .3s ease, opacity .2s ease;
}
.announcements.is-empty { display: none; }

@keyframes announce-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .announcement { white-space: normal; }
  .announcements__list { flex-wrap: wrap; gap: .3rem .75rem; }
}

/* ============================================================
   HEADER / NAV — STICKY OBSIDIAN HEADER
   ============================================================ */
.site-header {
  background: #12141a;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-bottom: 1px solid var(--color-border);
  transition:
    background .3s var(--ease-out),
    box-shadow .3s var(--ease-out),
    padding .25s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(18, 20, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
  transition: padding var(--transition);
}
.site-header.is-scrolled .container {
  padding-top: .55rem;
  padding-bottom: .55rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand__logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #dfb749 0%, #d4af37 50%, #aa7c11 100%);
  color: #0d0e12;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}
.brand__logo i { font-size: 1.15rem; color: #0d0e12; }
.brand__logo--img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}
.brand__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary-light);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.brand__tag {
  font-size: .68rem;
  color: var(--color-primary);
  display: block;
  margin-top: -1px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
}
.main-nav a {
  padding: .5rem 1rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: .92rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.main-nav a:hover {
  background: var(--color-primary-pale);
  color: var(--color-primary);
  text-decoration: none;
}
.main-nav a:active {
  background: var(--color-beige-dark);
}
/* Active pill state */
.main-nav a.active {
  background: linear-gradient(135deg, #dfb749 0%, #d4af37 50%, #aa7c11 100%);
  color: #0d0e12;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}
.main-nav a.active:hover {
  color: #000;
  background: linear-gradient(135deg, #ffe57f, #dfb749);
}

/* Nav Actions (Cart + Hamburger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* Body scroll lock */
body.nav-locked {
  overflow: hidden;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
}

/* Cart Link */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary-pale);
  color: var(--color-primary-light);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: .88rem;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s;
}
.cart-link--mobile {
  display: none !important;
}
.cart-link i { font-size: 1rem; color: var(--color-primary); }
.cart-link:hover {
  background: var(--color-primary);
  color: #0d0e12;
  border-color: var(--color-primary);
  text-decoration: none;
}
.cart-link:hover i { color: #0d0e12; }
.cart-badge {
  background: var(--color-accent);
  color: #000;
  font-size: .68rem;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .3rem;
  font-weight: 800;
  transition: transform .2s var(--ease-bounce);
}
.cart-link:hover .cart-badge { background: #000; color: var(--color-accent); }

/* ---------- Mobile Nav Drawer ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background .2s;
}
.nav-toggle:hover { background: var(--color-beige-dark); }
.nav-toggle__bar,
.nav-toggle__icon {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    top: 4.5rem;
    right: 0;
    width: min(310px, 80vw);
    height: calc(100vh - 4.5rem);
    height: calc(100dvh - 4.5rem);
    background: #12141a;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.9);
    border-left: 1px solid var(--color-border);
    z-index: calc(var(--z-overlay) + 1);
    overflow-y: auto;
    gap: 0;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s var(--ease-out), opacity .3s ease, visibility 0s linear .35s;
  }
  .main-nav.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform .35s var(--ease-out), opacity .3s ease .05s, visibility 0s linear;
  }
  .main-nav a.main-nav__link {
    padding: .85rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: 0;
    border-bottom: 1px solid var(--color-border-light);
    transition: background .2s, color .2s;
  }
  .main-nav a.main-nav__link:hover { background: var(--color-beige-dark); color: var(--color-primary); }
  .main-nav a.main-nav__link.active { background: var(--color-primary-pale); color: var(--color-primary-light); font-weight: 700; }

  .cart-link--desktop {
    display: none !important;
  }
  .cart-link--mobile {
    display: flex !important;
    margin-top: auto;
    background: linear-gradient(135deg, #dfb749, #d4af37);
    color: #0d0e12;
    justify-content: center;
    gap: .5rem;
    padding: 1rem;
    font-size: .95rem;
    font-weight: 700;
    border-radius: 0;
  }
}

/* Nav Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}

.nav-close {
  position: absolute;
  top: .75rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-beige-dark);
  color: var(--color-primary);
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  transition: background .2s, transform .2s;
}
.nav-close:hover { background: var(--color-primary); color: #000; transform: rotate(90deg); }

/* ============================================================
   HERO — METALLIC GOLD & OBSIDIAN GLAMOUR
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  align-items: center;
  background: #0b0c0f;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11, 12, 15, 0.96) 0%, rgba(18, 20, 26, 0.82) 45%, rgba(11, 12, 15, 0.6) 100%);
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 1;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  animation: float 12s infinite ease-in-out;
}
.hero-glow--1 { top: 8%; left: 8%; }
.hero-glow--2 { bottom: 12%; right: 8%; animation-delay: -4s; }

.hero__track {
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero__slide {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 4rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease-in-out), visibility 0s linear 1s;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-image: var(--slide-bg);
}
.hero__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 9, 0.75) 0%, rgba(10, 12, 16, 0.60) 50%, rgba(5, 6, 9, 0.80) 100%);
  z-index: 1;
}
.hero__slide .container {
  position: relative;
  z-index: 2;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s var(--ease-in-out) .1s, visibility 0s linear;
  z-index: 2;
}

.hero__inner {
  max-width: 820px;
  animation: hero-content-in 1.2s var(--ease-in-out) both;
  position: relative;
  text-align: center;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

@keyframes hero-content-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  color: #ffffff !important;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: .85rem;
  text-shadow: 0 3px 15px rgba(0,0,0,0.95);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  -webkit-text-fill-color: #ffffff !important;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 1.85rem;
  line-height: 1.65;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: #f4f1ea !important;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0,0,0,0.95);
}
.hero__actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(18, 20, 26, 0.7);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .3s var(--ease-in-out), transform .3s var(--ease-in-out);
}
.hero__nav:hover {
  background: var(--color-primary);
  color: #000;
  transform: translateY(-50%) scale(1.08);
}
.hero__nav--prev { left: 16px; }
.hero__nav--next { right: 16px; }

.hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: .5rem;
  z-index: 5;
}
.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.3);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .4s var(--ease-in-out);
  padding: 0;
}
.hero__dot.is-active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.hero--static {
  padding: 3.5rem 0;
  min-height: auto;
}

@media (max-width: 640px) {
  .hero, .hero__slide { min-height: 380px; }
  .hero__slide, .hero--static { padding: 2rem 0; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   QUICK LINKS (Overlapping Onyx Cards)
   ============================================================ */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .quick-links {
    padding: 0 2rem;
    margin-top: -4rem;
  }
}
@media (max-width: 640px) {
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -2.5rem;
  }
}

.quick-link {
  background: #12141a;
  border: 1px solid var(--color-border);
  padding: 2.25rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
  color: var(--color-text);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 210px;
}
.quick-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-accent), var(--color-primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.quick-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.25);
  border-color: var(--color-primary);
  text-decoration: none;
  color: var(--color-text);
}
.quick-link:hover::before { transform: scaleX(1); }

.quick-link__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--color-primary);
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background: var(--color-primary-pale);
  border: 1px solid var(--color-border);
  transition: background .3s, color .3s, border-color .3s;
}
.quick-link:hover .quick-link__icon {
  background: var(--color-primary);
  color: #0d0e12;
  border-color: var(--color-primary);
}

.quick-link__title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-primary-light);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.quick-link p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* ============================================================
   CARDS & GRIDS
   ============================================================ */
.grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .grid { gap: 2rem; } }

.grid--products  { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--services  { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--trainings { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid--gallery   { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--blog      { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid--partners  { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

@media (max-width: 640px) {
  .grid--products  { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .grid--gallery   { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .grid--partners  { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
}

.card {
  background: #12141a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition:
    transform .3s var(--ease-out),
    box-shadow .3s var(--ease-out),
    border-color .3s var(--ease-out);
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.2);
  border-color: var(--color-primary);
}

.card__media {
  aspect-ratio: 4/3;
  background: #1c1f28 center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.card:hover .card__media img,
.card__media {
  transition: transform .5s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.05); }

.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 12, 15, 0.6));
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover .card__media::after { opacity: 1; }

.card__body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: .4rem;
  line-height: 1.25;
  font-weight: 600;
}
.card__title a { color: var(--color-primary-light); }
.card__title a:hover { color: var(--color-accent); }

.card__meta {
  font-size: .74rem;
  color: var(--color-primary);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.card__price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: .75rem;
}
.card__price .old {
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-weight: 400;
  font-size: .9rem;
  margin-right: .45rem;
}

.card__footer {
  margin-top: auto;
  padding-top: .6rem;
}

.card__media[data-bg],
.cart-item__media[data-bg],
.product-gallery__main[data-bg],
.product-gallery__thumb[data-bg],
.gallery-item[data-bg] {
  background-image: var(--bg-image, none);
}

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner {
  background-color: #0b0c0f;
  background-size: cover;
  background-position: center;
  color: var(--color-text);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 9, 0.85) 0%, rgba(10, 12, 16, 0.70) 50%, rgba(5, 6, 9, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}
.page-banner .container {
  position: relative;
  z-index: 2;
}
.page-banner h1 {
  color: #ffd700 !important;
  margin: 0;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  -webkit-text-fill-color: #ffd700 !important;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.95);
}
.page-banner p {
  margin: .65rem 0 0;
  color: #ffffff !important;
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.breadcrumb {
  font-size: .88rem;
  margin-top: .85rem;
  color: #e5e0d8 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}
.breadcrumb a {
  color: var(--color-primary) !important;
  font-weight: 600;
  text-decoration: underline;
  transition: color .2s;
}
.breadcrumb a:hover { color: var(--color-accent) !important; }

@media (max-width: 640px) {
  .page-banner { padding: 2.75rem 0; }
}

/* ============================================================
   FORM ELEMENTS — DARK OBSIDIAN WITH GOLD ACCENTS
   ============================================================ */
.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
  font-size: .88rem;
  color: var(--color-text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: .72rem .9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .92rem;
  background: #181a22;
  color: var(--color-text);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}
textarea { resize: vertical; min-height: 100px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 8.825L1.175 4l.825-.825L6 7.175 9.175 3.175 10 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.2rem;
}

.field-error {
  color: var(--color-danger);
  font-size: .8rem;
  margin-top: .25rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  animation: alert-in .4s var(--ease-in-out);
  box-shadow: var(--shadow-sm);
}
.alert--success { background: var(--color-success-light); color: #2ecc71; border-left: 4px solid var(--color-success); }
.alert--error   { background: var(--color-danger-light);  color: #ff4d4d; border-left: 4px solid var(--color-danger); }
.alert--info    { background: var(--color-info-light);    color: var(--color-primary-light); border-left: 4px solid var(--color-primary); }
.alert--warning { background: var(--color-warning-light); color: #f39c12; border-left: 4px solid var(--color-warning); }

@keyframes alert-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
}
.badge--instock { background: var(--color-success-light); color: #2ecc71; }
.badge--low     { background: var(--color-warning-light); color: #f39c12; }
.badge--out     { background: var(--color-danger-light);  color: #ff4d4d; }
.badge--beige   { background: var(--color-beige-dark); color: var(--color-primary-light); }
.badge--accent  { background: var(--color-primary-pale); color: var(--color-primary); border: 1px solid var(--color-border); }

/* Status badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
}
.status--pending     { background: var(--color-warning-light); color: #f39c12; }
.status--paid        { background: var(--color-primary-pale); color: var(--color-primary); }
.status--processing  { background: rgba(155, 89, 182, 0.2); color: #9b59b6; }
.status--shipped     { background: rgba(52, 152, 219, 0.2); color: #3498db; }
.status--completed   { background: var(--color-success-light); color: #2ecc71; }
.status--cancelled,
.status--failed      { background: var(--color-danger-light);  color: #ff4d4d; }
.status--refunded    { background: rgba(149, 165, 166, 0.2); color: #95a5a6; }
.status--confirmed   { background: var(--color-success-light); color: #2ecc71; }

/* ============================================================
   CART LAYOUT
   ============================================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--color-border);
  animation: cart-item-in .35s var(--ease-out) both;
}
.cart-item:first-child { border-top: 1px solid var(--color-border); }

@keyframes cart-item-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.cart-item__media {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--color-beige-dark) center/cover no-repeat;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #181a22;
}
.qty-control button {
  background: var(--color-beige-dark);
  border: none;
  padding: .4rem .75rem;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: background .15s, color .15s;
  line-height: 1;
}
.qty-control button:hover { background: var(--color-primary); color: #000; }
.qty-control input {
  border: none;
  width: 44px;
  text-align: center;
  padding: .4rem 0;
  font-weight: 700;
  font-size: .9rem;
  background: transparent;
  color: var(--color-text);
  -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ============================================================
   SUMMARY BOX
   ============================================================ */
.summary-box {
  background: #12141a;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.summary-box h3 {
  margin-top: 0;
  margin-bottom: .9rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--color-border);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-primary-light);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  font-size: .9rem;
  color: var(--color-text-secondary);
}
.summary-row--total {
  font-weight: 700;
  font-size: 1.15rem;
  border-top: 1.5px solid var(--color-border);
  margin-top: .6rem;
  padding-top: .9rem;
  color: var(--color-primary);
}
.summary-row--plain { border: none; padding: .2rem 0; }
.summary-row--flush { border-top: none; margin-top: 0; padding-top: 0; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: #12141a;
}
.table th,
.table td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: .88rem;
  color: var(--color-text-secondary);
}
.table th {
  background: rgba(212, 175, 55, 0.12);
  color: var(--color-primary-light);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--color-beige); color: var(--color-text); }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 700px) {
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
}

.product-gallery__main {
  aspect-ratio: 1;
  background: var(--color-beige-dark) center/cover no-repeat;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.product-gallery__thumbs {
  display: flex;
  gap: .6rem;
  margin-top: .6rem;
  flex-wrap: wrap;
}
.product-gallery__thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--color-beige-dark) center/cover no-repeat;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s;
}
.product-gallery__thumb:hover { transform: scale(1.05); }
.product-gallery__thumb.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.label-box {
  border: 1.5px dashed var(--color-border);
  background: var(--color-beige);
  padding: .8rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  color: var(--color-text-secondary);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-item {
  aspect-ratio: 1;
  background: var(--color-beige-dark) center/cover no-repeat;
  border-radius: var(--radius-lg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), opacity .3s ease;
  box-shadow: var(--shadow);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.25);
  border-color: var(--color-primary);
}
.gallery-item.is-filtered-out {
  opacity: 0;
  transform: scale(.88);
  pointer-events: none;
}

.gallery-item__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2;
  background: linear-gradient(135deg, #dfb749, #d4af37);
  color: #000;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .3rem .75rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.gallery-item__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 0%, rgba(11,12,15,0.92) 100%);
  padding: 2.2rem .95rem .95rem;
  pointer-events: none;
  transition: padding .3s var(--ease-out);
}
.gallery-item__title {
  color: var(--color-primary-light);
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .2rem;
}
.gallery-item__caption {
  color: var(--color-text-secondary);
  font-size: .75rem;
  line-height: 1.4;
}

.filter-pills {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-pill {
  padding: .45rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: #12141a;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  transition: all .2s var(--ease-out);
  color: var(--color-text-secondary);
  text-decoration: none;
}
.filter-pill:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-pale);
  color: var(--color-primary);
  text-decoration: none;
}
.filter-pill.active {
  background: linear-gradient(135deg, #dfb749, #d4af37);
  color: #000;
  border-color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: 1rem;
  animation: lightbox-in .4s ease;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--color-primary);
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  transition: background .2s, transform .2s;
}
.lightbox__close:hover { background: var(--color-primary); color: #000; transform: rotate(90deg); }

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

/* ============================================================
   PARTNER CARDS
   ============================================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.partner-card {
  background: #12141a;
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--color-primary);
}
.partner-card__name {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-primary-light);
  font-size: 1.1rem;
  margin-bottom: .25rem;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-wrap {
  max-width: 440px;
  margin: 3rem auto;
  padding: 0 1rem;
}
.auth-card {
  background: #12141a;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.auth-card h1 {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary-light);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
}
.empty-state--lg { padding: 6.5rem 1rem; }
.empty-state__icon {
  font-size: 3rem;
  margin-bottom: .75rem;
  color: var(--color-primary);
  display: block;
}
.empty-state h3 { margin-bottom: .5rem; font-weight: 400; color: var(--color-primary-light); }

/* ============================================================
   FOOTER — ONYX BLACK & GOLD STRIP
   ============================================================ */
.site-footer {
  background: #07080a;
  color: var(--color-text-secondary);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #aa7c11, #ffd700, #aa7c11);
}
.site-footer h4 {
  color: var(--color-primary-light);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.site-footer a { color: var(--color-text-secondary); transition: color .2s; }
.site-footer a:hover { color: var(--color-primary); }
.site-footer p { color: var(--color-text-muted); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: .82rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--color-text-muted);
}

.allergy-note {
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--color-primary);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  margin-top: 1.5rem;
  color: var(--color-text-secondary);
}
.allergy-note strong { color: var(--color-primary); }

.social-links {
  display: flex;
  gap: .6rem;
  margin-top: .75rem;
}
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: var(--color-primary) !important;
  transition: background .2s var(--ease-out), transform .2s var(--ease-out), color .2s;
}
.social-links a i {
  color: inherit;
  transition: color .2s;
}
.social-links a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  color: #000000 !important;
}
.social-links a:hover i {
  color: #000000 !important;
}

/* Inline WhatsApp Links */
a[href*="wa.me"],
a[href*="whatsapp"] {
  color: #25d366 !important;
  font-weight: 600;
  transition: color .2s, opacity .2s;
}
a[href*="wa.me"] i,
a[href*="whatsapp"] i {
  color: #25d366 !important;
  transition: color .2s;
}
a[href*="wa.me"]:hover,
a[href*="whatsapp"]:hover {
  color: #34e775 !important;
  text-decoration: underline;
  opacity: 1;
}
a[href*="wa.me"]:hover i,
a[href*="whatsapp"]:hover i {
  color: #34e775 !important;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  z-index: 90;
  transition: transform .3s var(--ease-bounce), box-shadow .3s var(--ease-out), background .2s;
}
.whatsapp-float i,
.whatsapp-float span {
  color: #ffffff !important;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #20ba5a, #0e7065);
  box-shadow: 0 8px 32px rgba(37,211,102,.6);
  color: #ffffff !important;
  text-decoration: none;
}
.whatsapp-float:hover i,
.whatsapp-float:hover span {
  color: #ffffff !important;
}
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float {
    animation: wa-float 4s var(--ease-in-out) infinite;
  }
  @keyframes wa-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
  }
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-region {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column-reverse;
  gap: .6rem;
  max-width: 340px;
  pointer-events: none;
}
.toast {
  position: relative;
  padding: .85rem 1.15rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .6rem;
  animation: toast-in .35s var(--ease-out);
  pointer-events: auto;
  background: #12141a;
  border: 1px solid var(--color-border);
}
.toast__msg { flex: 1; }
.toast__close {
  background: none;
  border: 0;
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 .1rem;
  transition: color .15s, transform .15s;
  line-height: 1;
}
.toast__close:hover { color: var(--color-primary); transform: scale(1.15); }
.toast.is-leaving { animation: toast-out .25s ease forwards; }

.toast--success { border-left: 4px solid var(--color-success); }
.toast--error   { border-left: 4px solid var(--color-danger); }
.toast--info    { border-left: 4px solid var(--color-primary); }
.toast--warning { border-left: 4px solid var(--color-warning); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(12px) scale(.98); }
}

@media (max-width: 640px) {
  .toast-region {
    left: 16px;
    right: 16px;
    max-width: none;
    bottom: 84px;
  }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s var(--ease-in-out), transform .8s var(--ease-in-out);
    will-change: opacity, transform;
  }
  [data-reveal="left"]  { transform: translateX(-20px); }
  [data-reveal="right"] { transform: translateX(20px); }
  [data-reveal="zoom"]  { transform: scale(.92); opacity: 0; }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  [data-reveal-group] {
    opacity: 1;
  }
  [data-reveal-group] > * {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity .65s var(--ease-in-out), transform .65s var(--ease-in-out);
  }
  [data-reveal-group].is-visible > * { opacity: 1; transform: none; }
  [data-reveal-group].is-visible > *:nth-child(1) { transition-delay: .05s; }
  [data-reveal-group].is-visible > *:nth-child(2) { transition-delay: .12s; }
  [data-reveal-group].is-visible > *:nth-child(3) { transition-delay: .19s; }
  [data-reveal-group].is-visible > *:nth-child(4) { transition-delay: .26s; }
  [data-reveal-group].is-visible > *:nth-child(5) { transition-delay: .33s; }
  [data-reveal-group].is-visible > *:nth-child(6) { transition-delay: .40s; }
  [data-reveal-group].is-visible > *:nth-child(n+7) { transition-delay: .47s; }
}

/* ============================================================
   ANIMATED COUNTERS
   ============================================================ */
.counter {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  font-size: 2.4rem;
  line-height: 1.1;
}

/* ============================================================
   PARALLAX SECTION
   ============================================================ */
.parallax-section {
  position: relative;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-beige) 25%, var(--color-beige-dark) 50%, var(--color-beige) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.8s ease-in-out infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   PRICE HELPERS
   ============================================================ */
.price-lg { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
.price-primary { color: var(--color-primary); }
.price-danger  { color: var(--color-danger); }
.price-success { color: var(--color-success); }

/* ============================================================
   MISC HELPERS
   ============================================================ */
.detail-icon { font-size: 2.5rem; margin-bottom: .5rem; display: block; color: var(--color-primary); }
.icon-lg { font-size: 2rem; display: inline-block; margin-bottom: .3rem; color: var(--color-primary); }
.icon-xl { font-size: 3rem; display: inline-block; margin-bottom: .5rem; color: var(--color-primary); }
.ratio-16x9 { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; }
.media-iframe { border: 0; border-radius: var(--radius); display: block; width: 100%; }
.search-row { min-width: 240px; }

/* ============================================================
   RESPONSIVE FORM FACTORS
   ============================================================ */
@media (max-width: 480px) {
  .grid--products  { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .grid--services  { grid-template-columns: 1fr; }
  .grid--trainings { grid-template-columns: 1fr; }
  .grid--blog      { grid-template-columns: 1fr; }

  .card__body { padding: 1rem; }
  .card__title { font-size: 1.05rem; }
  .card__price { font-size: 1rem; }
  .btn { font-size: .85rem; }
  .btn--lg { font-size: .92rem; }

  .summary-box { padding: 1.25rem; }
  .auth-card { padding: 1.75rem; }
  .quick-links { margin-top: -2rem; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header, .site-footer, .topbar, .announcements,
  .whatsapp-float, .theme-float, .toast-region, .nav-overlay,
  .btn, .qty-control button, .cart-link--mobile { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .card, .summary-box { box-shadow: none; border: 1px solid #ddd; }
}

/* ============================================================
   FLOATING THEME SWITCHER & THEME MODAL STYLES
   ============================================================ */
.theme-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #000;
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 15px rgba(212, 175, 55, 0.35);
  z-index: 9999;
  cursor: pointer;
  pointer-events: auto;
  transition: transform .3s var(--ease-bounce), box-shadow .3s var(--ease-out);
}
.theme-float * { pointer-events: none; }
.theme-float i { color: #000; transition: transform .4s ease; }
.theme-float:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 8px 25px rgba(0,0,0,0.8), 0 0 25px rgba(212, 175, 55, 0.5);
}

.theme-float__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  opacity: 0.6;
  animation: theme-pulse 3s infinite ease-in-out;
  pointer-events: none;
}
@keyframes theme-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* Theme Selector Modal */
.theme-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.theme-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .3s ease, visibility 0s linear;
}

.theme-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.theme-modal__card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(88vh - 2rem);
  max-height: calc(88dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
  background: #12141a;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
  z-index: 2;
  transform: translateY(20px) scale(0.95);
  transition: transform .35s var(--ease-out);
}
.theme-modal__card::-webkit-scrollbar {
  width: 6px;
}
.theme-modal__card::-webkit-scrollbar-track {
  background: transparent;
}
.theme-modal__card::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 999px;
}
.theme-modal__card::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}
[data-theme="ivory"] .theme-modal__card { background: #ffffff; }

.theme-modal.is-open .theme-modal__card {
  transform: translateY(0) scale(1);
}

.theme-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
}
.theme-modal__header h3 {
  font-size: 1.3rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--color-primary-light);
}
.theme-modal__close {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background .2s, color .2s, transform .2s;
}
.theme-modal__close:hover {
  background: var(--color-primary);
  color: #000;
  transform: rotate(90deg);
}

.theme-modal__subtitle {
  font-size: .88rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

/* Theme Option Items */
.theme-options {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: .85rem 1rem;
  background: #181a22;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--color-text);
  text-align: left;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
[data-theme="ivory"] .theme-option { background: #f5f2eb; color: #1a1917; }

.theme-option:hover {
  background: var(--color-beige-dark);
  border-color: var(--color-primary);
  transform: translateX(4px);
}

.theme-option.is-active {
  background: var(--color-primary-pale);
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.theme-swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.theme-swatch--black-gold { background: linear-gradient(135deg, #0b0c0f 50%, #d4af37 50%); }
.theme-swatch--emerald    { background: linear-gradient(135deg, #09140e 50%, #2ecc71 50%); }
.theme-swatch--sapphire   { background: linear-gradient(135deg, #0a0f19 50%, #3498db 50%); }
.theme-swatch--amethyst   { background: linear-gradient(135deg, #120b17 50%, #9b59b6 50%); }
.theme-swatch--ivory      { background: linear-gradient(135deg, #faf8f5 50%, #c8852a 50%); }
.theme-swatch--custom     { background: linear-gradient(135deg, #ff007f 0%, #7928ca 50%, #00dfd8 100%); }

.theme-option__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.theme-option__name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--color-text);
}
.theme-option__desc {
  font-size: .78rem;
  color: var(--color-text-secondary);
}

.theme-option__check {
  font-size: 1.1rem;
  color: var(--color-primary);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .2s, transform .2s;
}
.theme-option.is-active .theme-option__check {
  opacity: 1;
  transform: scale(1);
}

/* Custom Theme Builder Panel */
.custom-theme-builder {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
  display: none;
}
.custom-theme-builder.is-visible {
  display: block;
  animation: slide-in-up .3s ease;
}
.custom-theme-builder__title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.custom-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
}

.custom-color-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  padding: .4rem .7rem;
  border-radius: var(--radius-sm);
}
.custom-color-item label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin: 0;
}
.color-picker-input {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  -webkit-appearance: none;
}
.color-picker-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker-input::-webkit-color-swatch { border: none; border-radius: 4px; }

/* Font Selection Section */
.font-selection-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
}

.theme-modal__section-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.font-options {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.font-option {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  padding: .65rem .85rem;
  background: #181a22;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text);
  text-align: left;
  transition: background .2s, border-color .2s, transform .2s;
}
[data-theme="ivory"] .font-option { background: #f5f2eb; color: #1a1917; }

.font-option:hover {
  background: var(--color-beige-dark);
  border-color: var(--color-primary);
  transform: translateX(4px);
}

.font-option.is-active {
  background: var(--color-primary-pale);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.font-option__preview {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-pale);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 600;
  flex-shrink: 0;
}

.font-option__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.font-option__name {
  font-weight: 700;
  font-size: .88rem;
  color: var(--color-text);
}

.font-option__style {
  font-size: .75rem;
  color: var(--color-text-secondary);
}

.font-option__check {
  font-size: 1rem;
  color: var(--color-primary);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .2s, transform .2s;
}

.font-option.is-active .font-option__check {
  opacity: 1;
  transform: scale(1);
}


