/* ==========================================================================
   LOVE LETTER STUDIO - BESPOKE ROMANTIC DESIGN SYSTEM
   Human-crafted luxury aesthetics: deckled parchment, real handwriting,
   wax seals, flickering candlelight, vintage polaroids, and subtle film grain.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Cinzel:wght@500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Dancing+Script:wght@500;600;700&family=DM+Mono:wght@400;500&family=Great+Vibes&family=Outfit:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Press+Start+2P&family=Space+Grotesk:wght@400;500;600;700&family=VT323&display=swap');

/* --- Root & Theme Tokens --- */
:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-hand: 'Caveat', cursive, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Default Theme: Rose (Soft edges & handwritten warmth) */
  --bg-main: #fbf6f3;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.82);
  --bg-elevated: #f4eae4;
  --text-main: #331f28;
  --text-muted: #7e606d;
  --text-subtle: #a58694;
  --accent-gold: #d4a373;
  --accent-gold-glow: rgba(212, 163, 115, 0.35);
  --primary: #b3566b;
  --primary-hover: #9b4458;
  --primary-glow: rgba(179, 86, 107, 0.25);
  --border-color: rgba(179, 86, 107, 0.16);
  --seal-color: #a3384c;
  --seal-shadow: rgba(163, 56, 76, 0.38);
  --shadow-warm: 0 20px 60px rgba(78, 33, 49, 0.09), 0 4px 16px rgba(78, 33, 49, 0.04);
  --shadow-float: 0 28px 70px rgba(50, 20, 32, 0.15);
  --polaroid-bg: #fffdfa;
  --washi-tape: rgba(230, 185, 175, 0.7);
}

/* Theme: Midnight (Velvet, candlelight & mystery) */
[data-theme="midnight"] {
  --bg-main: #140d18;
  --bg-card: #201526;
  --bg-card-glass: rgba(32, 21, 38, 0.85);
  --bg-elevated: #2d1e34;
  --text-main: #fdf5f8;
  --text-muted: #d0b8c4;
  --text-subtle: #967d8c;
  --accent-gold: #f0c384;
  --accent-gold-glow: rgba(240, 195, 132, 0.4);
  --primary: #e6738b;
  --primary-hover: #f0899f;
  --primary-glow: rgba(230, 115, 139, 0.3);
  --border-color: rgba(240, 195, 132, 0.18);
  --seal-color: #8c243a;
  --seal-shadow: rgba(230, 115, 139, 0.35);
  --shadow-warm: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-float: 0 32px 85px rgba(0, 0, 0, 0.75);
  --polaroid-bg: #f7eff3;
  --washi-tape: rgba(240, 195, 132, 0.45);
}

/* Theme: Starlight (Midnight sky full of bright moments) */
[data-theme="starlight"] {
  --bg-main: #0c1524;
  --bg-card: #142236;
  --bg-card-glass: rgba(20, 34, 54, 0.88);
  --bg-elevated: #1e314d;
  --text-main: #f3f7fd;
  --text-muted: #bad0ec;
  --text-subtle: #7997be;
  --accent-gold: #f5cf8e;
  --accent-gold-glow: rgba(245, 207, 142, 0.45);
  --primary: #6398d8;
  --primary-hover: #7db0ee;
  --primary-glow: rgba(99, 152, 216, 0.3);
  --border-color: rgba(245, 207, 142, 0.2);
  --seal-color: #274b77;
  --seal-shadow: rgba(99, 152, 216, 0.4);
  --shadow-warm: 0 24px 70px rgba(4, 11, 22, 0.65);
  --shadow-float: 0 32px 85px rgba(4, 11, 22, 0.85);
  --polaroid-bg: #f8fbfe;
  --washi-tape: rgba(245, 207, 142, 0.5);
}

/* Theme: Garden (Sun-warmed botanical warmth) */
[data-theme="garden"] {
  --bg-main: #18231c;
  --bg-card: #233229;
  --bg-card-glass: rgba(35, 50, 41, 0.88);
  --bg-elevated: #2f4337;
  --text-main: #fbfbf6;
  --text-muted: #cad8ce;
  --text-subtle: #8ea594;
  --accent-gold: #e2ba7d;
  --accent-gold-glow: rgba(226, 186, 125, 0.4);
  --primary: #6fa079;
  --primary-hover: #83b68d;
  --primary-glow: rgba(111, 160, 121, 0.3);
  --border-color: rgba(226, 186, 125, 0.2);
  --seal-color: #3b5742;
  --seal-shadow: rgba(111, 160, 121, 0.4);
  --shadow-warm: 0 24px 70px rgba(10, 18, 13, 0.6);
  --shadow-float: 0 32px 85px rgba(10, 18, 13, 0.8);
  --polaroid-bg: #fcfcf8;
  --washi-tape: rgba(226, 186, 125, 0.5);
}

/* Theme: Cinema (Dramatic golden amber film grain) */
[data-theme="cinema"] {
  --bg-main: #1c1417;
  --bg-card: #291d22;
  --bg-card-glass: rgba(41, 29, 34, 0.88);
  --bg-elevated: #3b2b32;
  --text-main: #fff6ee;
  --text-muted: #e0cac4;
  --text-subtle: #9e8580;
  --accent-gold: #e8a86a;
  --accent-gold-glow: rgba(232, 168, 106, 0.4);
  --primary: #c96d54;
  --primary-hover: #dc7e64;
  --primary-glow: rgba(201, 109, 84, 0.3);
  --border-color: rgba(232, 168, 106, 0.22);
  --seal-color: #702e24;
  --seal-shadow: rgba(201, 109, 84, 0.4);
  --shadow-warm: 0 24px 70px rgba(18, 10, 13, 0.65);
  --shadow-float: 0 32px 85px rgba(18, 10, 13, 0.85);
  --polaroid-bg: #faf4ee;
  --washi-tape: rgba(232, 168, 106, 0.5);
}

/* ==========================================================================
   THEME 1: SCRAPBOOK
   Vintage kraft paper, washi tape ribbons, hand-lettering, deckled paper, and stamps
   ========================================================================== */
[data-theme="scrapbook"] {
  --font-serif: 'Caveat', cursive, serif;
  --font-hand: 'Caveat', cursive, sans-serif;
  --bg-main: #f5ede0;
  --bg-card: #fdfaf3;
  --bg-card-glass: rgba(253, 250, 243, 0.94);
  --bg-elevated: #ebdcc6;
  --text-main: #382417;
  --text-muted: #745742;
  --text-subtle: #9c7b64;
  --accent-gold: #c68a4c;
  --accent-gold-glow: rgba(198, 138, 76, 0.35);
  --primary: #a84838;
  --primary-hover: #bf5443;
  --primary-glow: rgba(168, 72, 56, 0.25);
  --border-color: rgba(168, 72, 56, 0.22);
  --seal-color: #8c281f;
  --seal-shadow: rgba(140, 40, 31, 0.35);
  --shadow-warm: 0 16px 45px rgba(56, 36, 23, 0.12);
  --shadow-float: 0 24px 60px rgba(56, 36, 23, 0.18);
  --polaroid-bg: #fffdf9;
  --washi-tape: rgba(212, 140, 118, 0.75);
}
[data-theme="scrapbook"] .envelope-hero,
[data-theme="scrapbook"] .parchment-sheet,
[data-theme="scrapbook"] .reason-card-tactile,
[data-theme="scrapbook"] .celebration-banner {
  border: 2px dashed rgba(168, 72, 56, 0.28) !important;
  background-image: radial-gradient(#e8dac4 1px, transparent 1px);
  background-size: 18px 18px;
}
[data-theme="scrapbook"] .parchment-sheet::before {
  content: "✂ POLAROID MEMOIRE";
  position: absolute;
  top: -12px;
  right: 28px;
  background: #d48c76;
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  padding: 2px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
[data-theme="scrapbook"] .polaroid-item {
  transform: rotate(-2.5deg);
  box-shadow: 0 12px 28px rgba(56, 36, 23, 0.18);
  border: 4px solid #fffdf9;
}
[data-theme="scrapbook"] .polaroid-item:nth-child(even) {
  transform: rotate(3deg);
}

/* ==========================================================================
   THEME 2: NEOCLASSICAL
   Italian Renaissance luxury, imperial marble, burnished gold, Roman typography
   ========================================================================== */
[data-theme="neoclassical"] {
  --font-serif: 'Cinzel', 'Playfair Display', serif;
  --bg-main: #0c0d0f;
  --bg-card: #15161a;
  --bg-card-glass: rgba(21, 22, 26, 0.92);
  --bg-elevated: #202227;
  --text-main: #fbf9f4;
  --text-muted: #d5cfc2;
  --text-subtle: #968f82;
  --accent-gold: #e5b95c;
  --accent-gold-glow: rgba(229, 185, 92, 0.45);
  --primary: #c99e46;
  --primary-hover: #dfb256;
  --primary-glow: rgba(201, 158, 70, 0.35);
  --border-color: rgba(229, 185, 92, 0.3);
  --seal-color: #997327;
  --seal-shadow: rgba(229, 185, 92, 0.4);
  --shadow-warm: 0 24px 80px rgba(0, 0, 0, 0.7);
  --shadow-float: 0 32px 90px rgba(0, 0, 0, 0.85);
  --polaroid-bg: #f8f6f0;
  --washi-tape: rgba(229, 185, 92, 0.55);
}
[data-theme="neoclassical"] .envelope-hero,
[data-theme="neoclassical"] .parchment-sheet,
[data-theme="neoclassical"] .reason-card-tactile {
  border: 1px solid rgba(229, 185, 92, 0.35) !important;
  box-shadow: 0 0 35px rgba(229, 185, 92, 0.08), inset 0 0 20px rgba(0,0,0,0.5) !important;
}
[data-theme="neoclassical"] .envelope-recipient,
[data-theme="neoclassical"] .letter-heading,
[data-theme="neoclassical"] .reason-num-badge,
[data-theme="neoclassical"] .font-display {
  font-family: 'Cinzel', serif !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   THEME 3: BENTO GRID
   Apple-grade modular cards, ultra-crisp borders, frosted glass & cyan-indigo glow
   ========================================================================== */
[data-theme="bentogrid"] {
  --font-serif: 'Plus Jakarta Sans', system-ui, sans-serif;
  --bg-main: #090d16;
  --bg-card: #0f172a;
  --bg-card-glass: rgba(15, 23, 42, 0.84);
  --bg-elevated: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-subtle: #64748b;
  --accent-gold: #38bdf8;
  --accent-gold-glow: rgba(56, 189, 248, 0.4);
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --border-color: rgba(255, 255, 255, 0.14);
  --seal-color: #4f46e5;
  --seal-shadow: rgba(99, 102, 241, 0.5);
  --shadow-warm: 0 24px 60px rgba(0, 0, 0, 0.6);
  --shadow-float: 0 30px 80px rgba(0, 0, 0, 0.75);
  --polaroid-bg: #1e293b;
  --washi-tape: rgba(56, 189, 248, 0.45);
}
[data-theme="bentogrid"] .parchment-sheet,
[data-theme="bentogrid"] .reason-card-tactile,
[data-theme="bentogrid"] .envelope-hero,
[data-theme="bentogrid"] .celebration-banner {
  border-radius: 24px !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.92)) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1) !important;
}

/* ==========================================================================
   THEME 4: PIXEL ART
   8-bit & 16-bit arcade romance, chunky 4px retro borders, scanlines & neon cyan
   ========================================================================== */
[data-theme="pixelart"] {
  --font-serif: 'VT323', 'Press Start 2P', monospace;
  --font-sans: 'VT323', monospace;
  --font-hand: 'VT323', monospace;
  --bg-main: #10061e;
  --bg-card: #1c0d35;
  --bg-card-glass: rgba(28, 13, 53, 0.96);
  --bg-elevated: #2c1652;
  --text-main: #00ffcc;
  --text-muted: #ff99c8;
  --text-subtle: #a06cd5;
  --accent-gold: #ff007f;
  --accent-gold-glow: rgba(255, 0, 127, 0.5);
  --primary: #ff55aa;
  --primary-hover: #ff77bb;
  --primary-glow: rgba(255, 85, 170, 0.4);
  --border-color: #00ffcc;
  --seal-color: #ff007f;
  --seal-shadow: rgba(255, 0, 127, 0.6);
  --shadow-warm: 6px 6px 0px #000000;
  --shadow-float: 8px 8px 0px #000000;
  --polaroid-bg: #221240;
  --washi-tape: #00ffcc;
}
[data-theme="pixelart"] .envelope-hero,
[data-theme="pixelart"] .parchment-sheet,
[data-theme="pixelart"] .reason-card-tactile,
[data-theme="pixelart"] .btn-nav-next,
[data-theme="pixelart"] .btn-nav-prev,
[data-theme="pixelart"] .wax-seal-button,
[data-theme="pixelart"] .polaroid-item,
[data-theme="pixelart"] .celebration-banner {
  border: 3px solid #00ffcc !important;
  border-radius: 0px !important;
  box-shadow: 6px 6px 0px #000000 !important;
}
[data-theme="pixelart"] .envelope-recipient,
[data-theme="pixelart"] .letter-heading,
[data-theme="pixelart"] .letter-content,
[data-theme="pixelart"] .reason-quote-text {
  font-family: 'VT323', monospace !important;
  font-size: 1.65rem !important;
  letter-spacing: 0.07em;
}

/* ==========================================================================
   THEME 5: GOTHIC
   Dark Victorian romanticism, velvet blood crimson, antique silver & deep obsidian
   ========================================================================== */
[data-theme="gothic"] {
  --font-serif: 'Cinzel', 'Playfair Display', serif;
  --bg-main: #090508;
  --bg-card: #150912;
  --bg-card-glass: rgba(21, 9, 18, 0.94);
  --bg-elevated: #240e1f;
  --text-main: #f5e6ee;
  --text-muted: #d6b8c8;
  --text-subtle: #8a6479;
  --accent-gold: #c026d3;
  --accent-gold-glow: rgba(192, 38, 211, 0.45);
  --primary: #9f1239;
  --primary-hover: #be123c;
  --primary-glow: rgba(159, 18, 57, 0.4);
  --border-color: rgba(225, 29, 72, 0.32);
  --seal-color: #4c0519;
  --seal-shadow: rgba(225, 29, 72, 0.5);
  --shadow-warm: 0 24px 80px rgba(0, 0, 0, 0.85);
  --shadow-float: 0 32px 100px rgba(0, 0, 0, 0.95);
  --polaroid-bg: #1c0e18;
  --washi-tape: rgba(225, 29, 72, 0.55);
}
[data-theme="gothic"] .envelope-hero,
[data-theme="gothic"] .parchment-sheet,
[data-theme="gothic"] .reason-card-tactile {
  border: 1px solid rgba(225, 29, 72, 0.38) !important;
  box-shadow: 0 0 35px rgba(159, 18, 57, 0.22), inset 0 0 25px rgba(0, 0, 0, 0.75) !important;
}

/* ==========================================================================
   THEME 6: Y2K AESTHETIC
   Cyber-romantic millennium chrome, bubblegum pink, iridescent cyan & metallic shine
   ========================================================================== */
[data-theme="y2k"] {
  --font-serif: 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --bg-main: #0e051c;
  --bg-card: #180a30;
  --bg-card-glass: rgba(24, 10, 48, 0.9);
  --bg-elevated: #27104d;
  --text-main: #ffffff;
  --text-muted: #e2c2ff;
  --text-subtle: #9875c7;
  --accent-gold: #ff70a6;
  --accent-gold-glow: rgba(255, 112, 166, 0.5);
  --primary: #70d6ff;
  --primary-hover: #9be2ff;
  --primary-glow: rgba(112, 214, 255, 0.45);
  --border-color: rgba(255, 112, 166, 0.4);
  --seal-color: #d90429;
  --seal-shadow: rgba(255, 112, 166, 0.55);
  --shadow-warm: 0 20px 60px rgba(112, 214, 255, 0.2);
  --shadow-float: 0 28px 70px rgba(255, 112, 166, 0.3);
  --polaroid-bg: #22103d;
  --washi-tape: rgba(255, 112, 166, 0.7);
}
[data-theme="y2k"] .envelope-hero,
[data-theme="y2k"] .parchment-sheet,
[data-theme="y2k"] .reason-card-tactile {
  border: 2px solid transparent !important;
  background: linear-gradient(135deg, #180a30, #27104d) padding-box,
              linear-gradient(135deg, #ff70a6, #70d6ff, #ffd670) border-box !important;
  border-radius: 20px !important;
}
[data-theme="y2k"] .wax-seal-button {
  background: linear-gradient(135deg, #ff70a6, #70d6ff) !important;
  box-shadow: 0 0 25px rgba(255, 112, 166, 0.7) !important;
}

/* ==========================================================================
   FLOATING THEME SWITCHER WIDGET (Surprise.html & Preview)
   ========================================================================== */
.floating-theme-switcher {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card-glass, rgba(32, 21, 38, 0.9));
  border: 1px solid var(--border-color, rgba(240, 195, 132, 0.25));
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.8rem;
  color: var(--text-main, #fff);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.floating-theme-switcher:hover {
  transform: translateY(-2px);
}
.floating-theme-switcher select {
  background: transparent;
  color: var(--text-main, #fff);
  border: none;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  font-weight: 500;
}
.floating-theme-switcher select option {
  background: #1a1222;
  color: #fff;
}

/* ==========================================================================
   MAINTENANCE MODE LUXURY OVERLAY & STYLING
   ========================================================================== */
.maintenance-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1b1224 0%, #0c0812 100%);
  color: #fdf5f8;
  padding: 1.5rem;
}
.maintenance-container {
  width: 100%;
  max-width: 580px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.maintenance-card {
  background: rgba(32, 21, 38, 0.88);
  border: 1px solid rgba(240, 195, 132, 0.25);
  border-radius: 24px;
  padding: 3rem 2.25rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.maintenance-heart-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(240, 195, 132, 0.12);
  border: 1px solid rgba(240, 195, 132, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  animation: pulseMaint 2.5s infinite ease-in-out;
}
@keyframes pulseMaint {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(240, 195, 132, 0); }
  50% { transform: scale(1.08); box-shadow: 0 0 25px rgba(240, 195, 132, 0.35); }
}
.maintenance-kicker {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-gold, #f0c384);
  margin-bottom: 0.75rem;
}
.maintenance-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: #fff;
}
.maintenance-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d0b8c4;
  margin-bottom: 2rem;
}
.maintenance-status-box {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(240, 195, 132, 0.2);
  font-size: 0.85rem;
  color: #f0c384;
  margin-bottom: 2rem;
}
.maintenance-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0c384;
  box-shadow: 0 0 10px #f0c384;
  animation: blinkDot 1.4s infinite;
}
@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.maintenance-footer {
  font-size: 0.8rem;
  color: #967d8c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}
.maintenance-footer a {
  color: #f0c384;
  text-decoration: none;
}

/* Admin Maintenance Banner & Toggle Control */
.admin-maint-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.admin-maint-card.active-maint {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.08);
}
.maint-text-wrap {
  max-width: 580px;
}
.maint-header-flex {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}
.maint-live-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-family: 'DM Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
}
.maint-live-badge.off {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.maint-live-badge.on {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}
.maint-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}
.maint-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.maint-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #382536;
  transition: 0.3s;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.15);
}
.maint-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
.maint-switch input:checked + .maint-slider {
  background-color: #f59e0b;
}
.maint-switch input:checked + .maint-slider:before {
  transform: translateX(24px);
}
.btn-action-purge {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.btn-action-purge:hover {
  background: #ef4444;
  color: #fff;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Authentic Film & Paper Grain Overlay */
.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ambient Canvas Particle Engine (Floating Petals & Stardust) */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Typography Helpers */
.font-display { font-family: var(--font-serif); }
.font-handwriting { font-family: var(--font-hand); }
.font-mono { font-family: var(--font-mono); }

/* --- Navigation / Top Bar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-card-glass);
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-logo i {
  font-style: italic;
  color: var(--primary);
  font-weight: 400;
}

.logo-heart {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--primary-glow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .logo-heart {
  transform: scale(1.15) rotate(5deg);
}

.brand-logo-seal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.45));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  vertical-align: middle;
  flex-shrink: 0;
}

.brand-logo:hover .brand-logo-seal {
  transform: scale(1.12) rotate(6deg);
  filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.7));
}

.brand-logo-horizontal {
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.35));
  transition: transform 0.35s ease, filter 0.35s ease;
  display: block;
}

.brand-logo:hover .brand-logo-horizontal {
  transform: scale(1.03);
  filter: drop-shadow(0 4px 16px rgba(212, 175, 55, 0.6));
}

.footer-brand-seal {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.4));
  vertical-align: middle;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  flex-shrink: 0;
}

.footer-brand-seal:hover {
  transform: scale(1.15) rotate(6deg);
  filter: drop-shadow(0 4px 16px rgba(212, 175, 55, 0.7));
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Desktop Header Photobooth Button */
.header-photobooth-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 1.05rem;
  background: linear-gradient(135deg, rgba(179, 86, 107, 0.14), rgba(234, 182, 118, 0.18));
  border: 1px solid rgba(179, 86, 107, 0.35);
  border-radius: 9999px;
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 2px 8px rgba(179, 86, 107, 0.12);
  backdrop-filter: blur(8px);
}

.header-photobooth-btn:hover {
  background: linear-gradient(135deg, var(--primary), #8a364a);
  color: #ffffff !important;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(179, 86, 107, 0.38);
}

.header-photobooth-btn .hpb-icon {
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.header-photobooth-btn:hover .hpb-icon {
  transform: scale(1.15) rotate(-6deg);
}

.header-photobooth-btn .hpb-pill {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.45rem;
  background: rgba(179, 86, 107, 0.22);
  color: var(--primary);
  border-radius: 9999px;
  border: 1px solid rgba(179, 86, 107, 0.3);
  transition: all 0.25s ease;
}

.header-photobooth-btn:hover .hpb-pill {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 900px) {
  .header-photobooth-btn {
    display: none !important;
  }
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold-glow);
  animation: pulse-dot 2.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* --- Layout Container --- */
.container-max {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

/* --- Hero Section & Split View --- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4rem 0 3rem;
}

@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 0;
  }
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hero-tagline::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--primary);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.hero-title i {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* --- Live Keepsake Preview Card (Tactile, Human-Crafted) --- */
.preview-stage {
  perspective: 1000px;
  display: flex;
  justify-content: center;
}

.keepsake-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  padding: 1rem;
  box-shadow: var(--shadow-float);
  transform: rotate(1.2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
  position: relative;
}

.keepsake-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: var(--shadow-float), 0 0 35px var(--accent-gold-glow);
}

.keepsake-card-inner {
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.keepsake-card-inner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--accent-gold-glow);
  filter: blur(24px);
  pointer-events: none;
}

.card-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-subtle);
  margin-bottom: 2.25rem;
}

.card-occasion-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.card-recipient-name {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.card-letter-snippet {
  font-family: var(--font-hand);
  font-size: 1.55rem;
  line-height: 1.45;
  color: var(--primary);
  margin-bottom: 2rem;
  min-height: 4.5rem;
}

.card-meta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px dashed var(--border-color);
  padding-top: 1.25rem;
}

.card-creator-sign {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-wax-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--seal-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--seal-shadow);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.card-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.85rem;
}

/* --- Creator Studio Workspace / Form Section --- */
.creator-section {
  padding: 4rem 0 6rem;
  border-top: 1px solid var(--border-color);
}

.studio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
}

.studio-sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: start;
}

@media (max-width: 980px) {
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .studio-sidebar {
    position: static !important;
    top: auto !important;
    align-self: auto !important;
    margin-bottom: 0.5rem;
  }
}

.sidebar-step-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.sidebar-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.sidebar-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.sidebar-card-info {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-warm);
}

.sidebar-card-info h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.sidebar-card-info p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Form Controls & Groups */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.75rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-warm);
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

@media (max-width: 640px) {
  .form-card {
    padding: 1.25rem 1rem;
    gap: 1.5rem;
    border-radius: 1.25rem;
  }
}

.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--text-muted);
}

.field-hint {
  font-family: var(--font-sans);
  text-transform: none;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.field-input, .field-textarea, .field-select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 0.85rem 1.15rem;
  outline: none;
  transition: all 0.25s ease;
}

.field-input:focus, .field-textarea:focus, .field-select:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.field-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.letter-textarea {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  line-height: 1.5;
  min-height: 180px;
}

/* Theme Selector Cards */
.theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
}

@media (max-width: 500px) {
  .theme-selector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .theme-pill-button {
    padding: 0.65rem 0.5rem;
  }
}

.theme-pill-button {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-color);
  border-radius: 1rem;
  padding: 0.85rem 0.75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  transition: all 0.25s ease;
}

.theme-pill-button:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.theme-pill-button.active {
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.theme-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.theme-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Occasion Pills */
.occasion-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.occasion-pill-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.occasion-pill-btn:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.occasion-pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Reasons List */
.reasons-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reason-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reason-index {
  width: 32px;
  height: 32px;
  border-radius: 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  font-family: var(--font-serif);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.btn-remove-reason {
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.btn-remove-reason:hover {
  color: #dc3545;
}

.btn-add-reason {
  align-self: flex-start;
  background: none;
  border: 1px dashed var(--border-color);
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-add-reason:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
}

/* --- Presets & Soundtracks Picker & Upload System --- */
.soundtrack-picker-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.soundtrack-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.preset-chip {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.preset-chip:hover {
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateY(-1px);
}

.preset-chip.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
  font-weight: 600;
}

/* Common Gallery / File Upload Dropzone */
.upload-dropzone,
.soundtrack-upload-box {
  background: var(--bg-elevated);
  border: 1.5px dashed var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.upload-dropzone:hover,
.soundtrack-upload-box:hover {
  border-color: var(--primary);
  background: var(--bg-card);
}

.btn-gallery-upload {
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: var(--font-sans);
}

.btn-gallery-upload:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-gallery-upload:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.song-upload-hint {
  font-size: 0.74rem;
  color: var(--text-subtle);
  margin: 0;
  max-width: 420px;
  line-height: 1.4;
}

/* Beautifully Aligned Uploaded Audio Card */
.uploaded-audio-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border: 1.5px solid var(--accent-gold);
  border-radius: 1.15rem;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 6px 22px var(--accent-gold-glow), 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeInAudioCard 0.35s ease-out;
}

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

.audio-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.65rem;
}

.active-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #27ae60;
  background: rgba(39, 174, 96, 0.12);
  border: 1px solid rgba(39, 174, 96, 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-remove-song {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove-song:hover {
  border-color: #e74c3c;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
}

.audio-card-middle {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.audio-vinyl-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #2c1a24 0%, #150b11 70%, #000 100%);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  animation: spinMiniVinyl 4s linear infinite;
}

@keyframes spinMiniVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.audio-details-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.uploaded-filename {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.uploaded-filesize-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
}

.audio-card-player {
  width: 100%;
  height: 36px;
  border-radius: 999px;
  outline: none;
  filter: sepia(20%) saturate(80%);
}

/* Photo Thumbnails Tray */
.photo-thumbnails-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.thumbnail-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  background: var(--bg-elevated);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-remove-thumb {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}

.btn-remove-thumb:hover {
  background: #e74c3c;
}

/* Submit Action Button */
.submit-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-create-surprise {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 1.15rem;
  padding: 1.15rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px var(--primary-glow);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-create-surprise:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--primary-glow);
}

.btn-create-surprise:active {
  transform: translateY(0);
}

/* --- Created Share Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 10, 16, 0.78);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.modal-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  padding: 2.75rem;
  max-width: 540px;
  width: 100%;
  text-align: center;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-icon-sparkle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-gold-glow);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 25px var(--accent-gold-glow);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.modal-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.share-link-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1.15rem;
  margin-bottom: 1rem;
}

.share-url-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.btn-copy-link {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
}

.btn-copy-link:hover {
  background: var(--primary-hover);
}

.btn-whatsapp-share {
  width: 100%;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 1rem;
  padding: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28);
  margin-bottom: 1.5rem;
}

.expiry-disclaimer {
  font-size: 0.78rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
}

/* ==========================================================================
   RECIPIENT JOURNEY EXPERIENCE (surprise.html)
   Acts 1 to 6: Wax seal envelope, handwritten letter, reasons, celebration
   cake blowout with realistic candles, vintage polaroids, and runaway button.
   ========================================================================== */

.recipient-journey-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(3.5rem, 8vh, 5rem) clamp(1rem, 4vw, 1.5rem) 6.5rem;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.journey-progress-bar {
  position: fixed;
  top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 60;
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-warm);
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: all 0.3s ease;
}

.progress-dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

/* Act Stage Container */
.act-stage {
  width: 100%;
  max-width: 680px;
  margin: auto 0;
  animation: fadeInStage 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInStage {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Act 1: The Wax Seal Envelope --- */
.envelope-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2.5rem;
  padding: 4rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-float);
  position: relative;
  overflow: hidden;
}

.envelope-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.envelope-recipient {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.envelope-whisper {
  font-family: var(--font-hand);
  font-size: 1.75rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 3rem;
  line-height: 1.4;
}

/* 3D Wax Seal Button */
.wax-seal-button {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ca445b, var(--seal-color, #a82e44), #5e1c29);
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 35px var(--seal-shadow, rgba(168, 46, 68, 0.4));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  position: relative;
  margin-bottom: 1rem;
  padding: 0;
  overflow: visible;
}

.wax-seal-medallion-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.5));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  pointer-events: none;
}

.wax-seal-button:hover {
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 18px 45px var(--seal-shadow, rgba(168, 46, 68, 0.5)), 0 0 25px var(--accent-gold-glow);
}

.wax-seal-button:hover .wax-seal-medallion-img {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 20px rgba(212, 175, 55, 0.75));
}

.seal-stamp-heart {
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.wax-seal-hint {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-subtle);
}

/* --- Act 2: Handwritten Love Letter Parchment --- */
.parchment-sheet {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-float);
  position: relative;
}

@media (max-width: 640px) {
  .parchment-sheet {
    padding: 2.25rem 1.5rem;
  }
}

.parchment-sheet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.letter-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-gold);
  margin-bottom: 2rem;
}

.letter-content {
  font-family: var(--font-hand);
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  line-height: 1.65;
  color: var(--text-main);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-bottom: 2.5rem;
}

.letter-signoff {
  font-family: var(--font-hand);
  font-size: 2.2rem;
  color: var(--primary);
  text-align: right;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

/* Floating Vinyl Record Player */
.vinyl-player-widget {
  margin-top: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.vinyl-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #2d2426 30%, #150f11 35%, #2d2426 60%, #150f11 90%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.vinyl-disc.spinning {
  animation: spinRecord 3s linear infinite;
}

@keyframes spinRecord {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-center-hole {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.vinyl-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.vinyl-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.vinyl-artist {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  margin-top: 2px;
}

.btn-vinyl-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* --- Act 3: Little Truths / Reasons --- */
.reasons-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.reason-card-tactile {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-warm);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card-tactile:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-float);
  border-color: var(--primary);
}

.reason-num-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-gold);
  background: var(--bg-elevated);
  padding: 0.4rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.reason-quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--text-main);
  flex: 1;
}

/* --- Act 4: Interactive Celebration Cake & Blowout Candles --- */
.cake-celebration-stage {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2.5rem;
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-float);
  position: relative;
}

.cake-visual-wrap {
  margin: 1.5rem auto 2.5rem;
  max-width: 320px;
  position: relative;
}

/* Tiered Cake CSS Art */
.cake-stand {
  width: 260px;
  height: 16px;
  background: linear-gradient(90deg, #d8d0c8, #ffffff, #d8d0c8);
  border-radius: 8px;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  position: relative;
}

.cake-tier-bottom {
  width: 220px;
  height: 60px;
  background: linear-gradient(180deg, #f8dfdf, #f1c7c7);
  border-radius: 12px 12px 6px 6px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.6);
  position: relative;
  box-shadow: inset 0 -6px 12px rgba(179, 86, 107, 0.15);
}

.cake-frosting-swirls {
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 12px;
  background: radial-gradient(circle, #ffffff 65%, transparent 70%) 0 0/20px 12px repeat-x;
}

.cake-tier-top {
  width: 150px;
  height: 52px;
  background: linear-gradient(180deg, #fff2f2, #fad2d2);
  border-radius: 12px 12px 6px 6px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.6);
  position: relative;
  box-shadow: inset 0 -4px 10px rgba(179, 86, 107, 0.12);
}

/* Multi-Candles Row */
.candles-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: -4px;
}

.candle-stick {
  width: 10px;
  height: 38px;
  background: repeating-linear-gradient(45deg, #fff, #fff 4px, #e87b92 4px, #e87b92 8px);
  border-radius: 3px 3px 0 0;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}

.candle-stick:hover {
  transform: scale(1.1);
}

.candle-wick {
  width: 2px;
  height: 6px;
  background: #333;
  position: absolute;
  top: -6px;
  left: 4px;
}

/* Flickering Flame */
.candle-flame {
  width: 14px;
  height: 22px;
  background: radial-gradient(ellipse at 50% 80%, #fff7b3 20%, #ff8c42 70%, transparent 95%);
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  position: absolute;
  top: -24px;
  left: -2px;
  filter: drop-shadow(0 0 10px rgba(255, 170, 0, 0.8));
  animation: flickerFlame 0.12s infinite alternate ease-in-out;
  transform-origin: 50% 90%;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes flickerFlame {
  0% { transform: scale(1) rotate(-2deg); opacity: 0.95; }
  100% { transform: scale(1.08) rotate(2deg); opacity: 1; filter: drop-shadow(0 0 14px rgba(255, 200, 50, 0.95)); }
}

/* Extinguished Candle Flame & Realistic Rising Smoke */
.candle-flame.blown-out {
  animation: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(0) translateY(-14px) !important;
  filter: none !important;
  pointer-events: none !important;
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.smoke-puff {
  position: absolute;
  top: -24px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 160, 160, 0.65) 0%, rgba(200, 200, 200, 0.25) 60%, transparent 100%);
  filter: blur(3px);
  opacity: 0;
  pointer-events: none;
}

.smoke-puff.active {
  animation: floatSmoke 1.6s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatSmoke {
  0% {
    opacity: 0.85;
    transform: translateY(0) scale(0.6) rotate(0deg);
  }
  40% {
    opacity: 0.6;
    transform: translateY(-18px) scale(1.6) rotate(12deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-44px) scale(2.8) rotate(-15deg);
  }
}

.btn-blow-candles {
  background: var(--accent-gold);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 25px var(--accent-gold-glow);
  transition: all 0.3s ease;
}

.btn-blow-candles:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px var(--accent-gold-glow);
}

/* Festive Celebration Streamer Banner */
.celebration-streamer-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(240, 195, 132, 0.22), rgba(230, 115, 139, 0.18));
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  margin: 0 auto 1.5rem;
  width: fit-content;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
  animation: slideDownFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.celebration-streamer-banner.active {
  display: inline-flex;
}

@keyframes slideDownFade {
  0% { opacity: 0; transform: translateY(-16px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Cake Celebrating Aura & Sparkle Stars */
.cake-halo-glow {
  position: absolute;
  inset: -30px -40px;
  background: radial-gradient(ellipse at 50% 60%, rgba(240, 195, 132, 0.45) 0%, rgba(230, 115, 139, 0.2) 45%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 0;
}

.cake-visual-wrap.celebrating .cake-halo-glow {
  opacity: 1;
  transform: scale(1);
  animation: cakeAuraPulse 2.4s infinite alternate ease-in-out;
}

@keyframes cakeAuraPulse {
  0% { transform: scale(0.95); opacity: 0.75; filter: blur(0px); }
  100% { transform: scale(1.08); opacity: 1; filter: blur(2px); }
}

.cake-visual-wrap.celebrating {
  animation: cakeCelebrateBounce 2.5s infinite ease-in-out;
}

@keyframes cakeCelebrateBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.cake-sparkle-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 4;
}

.cake-visual-wrap.celebrating .cake-sparkle-stars {
  opacity: 1;
}

.cake-star {
  position: absolute;
  font-size: 1.25rem;
  animation: starTwinkle 2s infinite ease-in-out;
}

.cake-star.s1 { top: 10px; left: 10px; animation-delay: 0s; }
.cake-star.s2 { top: -15px; right: 25px; animation-delay: 0.5s; font-size: 1rem; }
.cake-star.s3 { bottom: 35px; left: -10px; animation-delay: 1s; font-size: 1.1rem; }
.cake-star.s4 { bottom: 20px; right: 5px; animation-delay: 1.5s; font-size: 1.3rem; }

@keyframes starTwinkle {
  0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.4; }
  50% { transform: scale(1.3) rotate(25deg); opacity: 1; }
}

/* Floating Celebration Balloons, Hearts & Stars */
.celebration-balloons-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 10;
}

.celebration-floating-item {
  position: absolute;
  pointer-events: none;
  user-select: none;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  will-change: transform, opacity;
  animation: floatCelebrationUp var(--dur, 3.2s) cubic-bezier(0.2, 0.6, 0.35, 1) forwards;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

@keyframes floatCelebrationUp {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4) rotate(0deg);
  }
  15% {
    opacity: 1;
    transform: translate(calc(var(--sway, 15px) * 0.4), -50px) scale(1.15) rotate(var(--rot1, 8deg));
  }
  65% {
    opacity: 0.95;
    transform: translate(calc(var(--sway, 15px) * -0.8), -260px) scale(1) rotate(var(--rot2, -10deg));
  }
  100% {
    opacity: 0;
    transform: translate(var(--sway, 20px), -480px) scale(0.85) rotate(var(--rot3, 15deg));
  }
}

/* Luxury Wish Revealed Card */
.wish-revealed-box {
  display: none;
  margin-top: 2.2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 246, 0.98));
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 2rem;
  padding: 2.4rem 1.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(212, 175, 55, 0.18), 0 6px 20px rgba(0, 0, 0, 0.05);
  animation: wishCardReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wish-revealed-box.active {
  display: block;
}

@keyframes wishCardReveal {
  0% { opacity: 0; transform: translateY(24px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.celebration-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: #946914;
  padding: 0.4rem 1.15rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}

.celebration-sparkle-icon {
  font-size: 0.95rem;
}

.wish-revealed-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 0.85rem;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(179, 86, 107, 0.18);
}

.wish-revealed-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.wish-toast-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--bg-body);
  border: 1px dashed var(--accent-gold);
  padding: 0.85rem 1.35rem;
  border-radius: 1.1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
}

.toast-clink {
  font-size: 1.35rem;
  font-style: normal;
}

.wish-next-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wish-down-arrow {
  display: inline-block;
  animation: bounceArrow 1.5s infinite ease-in-out;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Pulsing highlight for next act button */
.btn-nav-next.glow-highlight {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.7), 0 6px 20px var(--primary-glow);
  animation: btnGlowPulse 1.8s infinite alternate ease-in-out;
}

@keyframes btnGlowPulse {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
  100% { transform: scale(1.04); box-shadow: 0 0 30px rgba(212, 175, 55, 0.85), 0 8px 24px var(--primary-glow); }
}

/* --- Act 5: Vintage Polaroid Scrapbook --- */
.polaroid-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.polaroid-frame {
  background: var(--polaroid-bg);
  padding: 0.85rem 0.85rem 2rem;
  border-radius: 0.4rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.polaroid-frame:nth-child(1) { transform: rotate(-3deg); }
.polaroid-frame:nth-child(2) { transform: rotate(2deg); }
.polaroid-frame:nth-child(3) { transform: rotate(-1.5deg); }
.polaroid-frame:nth-child(4) { transform: rotate(2.5deg); }

.polaroid-frame:hover {
  transform: scale(1.06) rotate(0deg) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

/* Washi Tape Accent */
.washi-tape-strip {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 75px;
  height: 22px;
  background: var(--washi-tape);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  opacity: 0.85;
  clip-path: polygon(4% 0%, 96% 0%, 100% 100%, 0% 100%);
}

.polaroid-photo-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ece4db;
  border-radius: 0.2rem;
}

.polaroid-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: #38242e;
  text-align: center;
  margin-top: 0.85rem;
}

/* --- Act 6: The Question & The Playful Runaway Button --- */
.proposal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(2.2rem, 5vw, 3.8rem) clamp(1.2rem, 4vw, 2.5rem);
  text-align: center;
  box-shadow: var(--shadow-float);
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.proposal-pre-celebration {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.proposal-question {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.proposal-subtext {
  font-family: var(--font-hand);
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 2rem;
  line-height: 1.35;
}

.proposal-buttons-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.btn-answer-yes {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 1.15rem;
  padding: 1rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px var(--primary-glow);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
  flex: 1 1 0;
  min-height: 52px;
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-answer-yes:hover {
  transform: scale(1.05);
  background: var(--primary-hover);
  box-shadow: 0 14px 38px var(--primary-glow);
}

/* The Infamous Runaway "No / Let Me Think" Button */
.btn-runaway-no {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 1.15rem;
  padding: 1rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  z-index: 5;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 52px;
  box-sizing: border-box;
  white-space: nowrap;
}

.celebration-success-banner {
  display: none;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0.5rem 0 0;
  text-align: center;
  animation: fadeInStage 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.celebration-success-banner.active {
  display: block;
}

/* End Celebration Sharing Options */
.end-share-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  width: 100%;
}

.btn-generate-story {
  background: linear-gradient(135deg, #c45772 0%, #8e364f 55%, #d4af37 100%);
  color: #ffffff;
  border: none;
  border-radius: 1.25rem;
  padding: 1rem 1.4rem;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 0 8px 24px rgba(196, 87, 114, 0.35), 0 0 15px rgba(212, 175, 55, 0.25);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
}

.btn-generate-story::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: rotate(25deg);
  animation: shimmerStoryBtn 3.5s infinite;
}

@keyframes shimmerStoryBtn {
  0% { transform: translateX(-100%) rotate(25deg); }
  25%, 100% { transform: translateX(100%) rotate(25deg); }
}

.btn-generate-story:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 12px 32px rgba(196, 87, 114, 0.5), 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-generate-story:active {
  transform: scale(0.98);
}

.story-btn-sparkle {
  font-size: 1.25rem;
  animation: pulseSparkle 1.8s infinite ease-in-out;
}

@keyframes pulseSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.25) rotate(12deg); }
}

.secondary-share-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 360px;
}

@media (min-width: 480px) {
  .secondary-share-row {
    flex-direction: row;
  }
  .secondary-share-row .btn-whatsapp-status,
  .secondary-share-row .btn-copy-status-link {
    flex: 1 1 0;
  }
}

.btn-whatsapp-status {
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 1rem;
  padding: 0.85rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-whatsapp-status:hover {
  background: #20bd5a;
  transform: translateY(-1px);
}

.btn-copy-status-link {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 1rem;
  padding: 0.85rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-copy-status-link:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Story Keepsake & Template Studio styles consolidated at end of stylesheet */


.story-share-hint {
  font-size: 0.72rem;
  color: var(--text-subtle);
  text-align: center;
  margin: 0;
  padding: 0.25rem 1.5rem 1rem;
}

/* --- Floating Sassy Toast for Runaway Button --- */
.sassy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  color: var(--primary);
  font-family: var(--font-hand);
  font-size: 1.6rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2000;
}

.sassy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- Navigation Buttons between acts --- */
.acts-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 680px;
  margin-top: 2rem;
}

.btn-nav-prev, .btn-nav-next {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-nav-prev:hover, .btn-nav-next:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* --- Expired 410 State --- */
.expired-stage {
  max-width: 520px;
  margin: 4rem auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2.5rem;
  padding: 4rem 2.5rem;
  box-shadow: var(--shadow-float);
}

.expired-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   DIRECT GALLERY UPLOADS & MEDIA STYLES
   ========================================================================== */
.upload-dropzone {
  background: var(--bg-elevated);
  border: 1.5px dashed var(--border-color);
  border-radius: 1.25rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.25s ease;
}

.upload-dropzone:hover {
  border-color: var(--primary);
  background: var(--bg-card);
}

.btn-gallery-upload {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 0.85rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.btn-gallery-upload:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.photo-thumbnails-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.thumbnail-item {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  background: var(--bg-elevated);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  animation: fadeInStage 0.3s ease;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-thumb {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-remove-thumb:hover {
  background: #dc3545;
}

.uploaded-audio-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.85rem;
  background: var(--bg-card);
  border-radius: 0.85rem;
  border: 1px solid var(--border-color);
}

.uploaded-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-main);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-remove-upload {
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}

.btn-remove-upload:hover {
  color: #dc3545;
}

/* ==========================================================================
   FLOATING "WANNA CREATE YOURS?" PILL ICON
   ========================================================================== */
.floating-create-yours {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  background: var(--bg-card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  padding: 0.55rem 1.15rem 0.55rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-float), 0 0 20px var(--primary-glow);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: floatPill 3s infinite ease-in-out;
}

@keyframes floatPill {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes floatPillMobile {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -5px); }
}

.floating-create-yours:hover {
  transform: translateY(-7px) scale(1.05);
  border-color: var(--primary);
  box-shadow: var(--shadow-float), 0 0 28px var(--primary-glow);
}

.floating-heart-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.floating-badge-text {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.floating-badge-text i {
  font-style: italic;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 640px) {
  .floating-create-yours {
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    right: auto;
    left: 50%;
    transform: translate(-50%, 0);
    animation: floatPillMobile 3s infinite ease-in-out;
    padding: 0.5rem 1rem 0.5rem 0.65rem;
    white-space: nowrap;
    max-width: calc(100vw - 2rem);
    box-sizing: border-box;
    z-index: 99;
  }
  .floating-create-yours:hover {
    transform: translate(-50%, -3px) scale(1.03);
  }
  .act-stage {
    padding-bottom: 6rem !important;
  }
  .proposal-box {
    margin-bottom: 1.5rem;
  }
}

/* ==========================================================================
   UNIVERSAL LUXURY STUDIO FOOTER (ALL PAGES)
   ========================================================================== */
.site-studio-footer {
  width: 100%;
  margin-top: 5rem;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, transparent 0%, rgba(10, 8, 12, 0.4) 100%);
  padding: 3rem 1.5rem 3.5rem;
  position: relative;
  z-index: 10;
}

.site-studio-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0.6;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-heart {
  color: var(--primary);
  font-size: 1.1rem;
  animation: heartPulse 2.4s infinite ease-in-out;
}

.footer-crafted {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 400;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.6;
}

.footer-link-highlight {
  color: var(--accent-gold);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.25s ease;
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
}

.footer-link-highlight:hover {
  color: #fff;
  background: rgba(230, 185, 128, 0.15);
  text-shadow: 0 0 10px var(--accent-gold-glow);
}

.footer-sub-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
}

.footer-admin-pill {
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  background: var(--bg-card-glass);
  transition: all 0.2s ease;
}

.footer-admin-pill:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: rgba(230, 185, 128, 0.1);
}

.header-admin-link {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-admin-link:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ==========================================================================
   FLEET ADMIN PANEL (admin.html) STYLES
   ========================================================================== */
.admin-body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.admin-header {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  background: rgba(14, 11, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 1.5rem;
}

.admin-nav-container {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-badge-fleet {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(230, 185, 128, 0.12);
  border: 1px solid rgba(230, 185, 128, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-admin-refresh {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin-refresh:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-admin-refresh.spinning svg {
  animation: spin 0.8s linear infinite;
}

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

.btn-admin-home {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.2s ease;
}

.btn-admin-home:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.admin-main {
  max-width: 1350px;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

/* Admin Hero */
.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.admin-tagline {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.4rem;
}

.admin-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.admin-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.5;
}

.admin-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.live-pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #5be7a9;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 10px #2ecc71;
  animation: pulseDot 1.8s infinite ease-in-out;
}

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

.btn-export-json {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.95rem;
  border-radius: 0.75rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-export-json:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* 4 Metrics Cards Grid */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1.4rem;
  padding: 1.6rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
  border-color: rgba(255, 255, 255, 0.18);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

.metric-card-running::before { background: linear-gradient(90deg, #2ecc71, #5be7a9); }
.metric-card-expired::before { background: linear-gradient(90deg, #e74c3c, #f39c12); }
.metric-card-total::before { background: linear-gradient(90deg, var(--primary), var(--accent-gold)); }
.metric-card-media::before { background: linear-gradient(90deg, #9b59b6, #3498db); }

.metric-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  flex-shrink: 0;
}

.metric-card-running .metric-icon-wrap { color: #5be7a9; border-color: rgba(46, 204, 113, 0.3); }
.metric-card-expired .metric-icon-wrap { color: #e74c3c; border-color: rgba(231, 76, 60, 0.3); }
.metric-card-total .metric-icon-wrap { color: var(--accent-gold); border-color: rgba(230, 185, 128, 0.3); }
.metric-card-media .metric-icon-wrap { color: #bb86fc; border-color: rgba(187, 134, 252, 0.3); }

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
}

.metric-value {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.metric-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Toolbar: Search & Filter */
.admin-toolbar {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.admin-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 260px;
  color: var(--text-subtle);
}

.admin-search-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-main);
}

.admin-search-field::placeholder {
  color: var(--text-subtle);
}

.admin-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-filter-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-filter-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.btn-export-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent-gold);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-export-toolbar:hover {
  background: var(--accent-gold);
  color: #070709;
  border-color: var(--accent-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.btn-export-toolbar svg {
  flex-shrink: 0;
}

/* Fleet Data Table (Desktop) */
.table-container-responsive {
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  overflow-x: auto;
  box-shadow: var(--shadow-float);
  scrollbar-width: thin;
}

.table-container-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-container-responsive::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 999px;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.admin-data-table th {
  padding: 0.95rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.admin-data-table td {
  padding: 0.95rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.admin-data-table tr:last-child td {
  border-bottom: none;
}

.admin-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

/* Table Cells */
.cell-id-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.link-id-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-gold);
  background: rgba(230, 185, 128, 0.1);
  border: 1px solid rgba(230, 185, 128, 0.25);
  padding: 0.25rem 0.55rem;
  border-radius: 0.45rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-id-badge:hover {
  background: rgba(230, 185, 128, 0.2);
  color: #fff;
}

.btn-table-copy {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.btn-table-copy:hover {
  opacity: 1;
}

.cell-recipient-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.recipient-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.96rem;
}

.recipient-rel {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-style: italic;
}

.cell-creator-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.creator-name {
  font-weight: 500;
  color: var(--text-main);
}

.creator-contact {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cell-meta-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meta-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: capitalize;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: fit-content;
}

.cell-status-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  width: fit-content;
  white-space: nowrap;
}

.badge-active {
  background: rgba(46, 204, 113, 0.12);
  color: #5be7a9;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-dot-active {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 6px #2ecc71;
}

.badge-expired {
  background: rgba(231, 76, 60, 0.12);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.status-dot-expired {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e74c3c;
}

.created-timestamp {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-subtle);
}

.cell-actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.btn-action-inspect {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-action-inspect:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-action-view {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 0.55rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-action-view:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Dedicated Launch Control Buttons (Full text, no truncation, responsive grid) */
.admin-launch-actions-grid {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.65rem;
}

.btn-launch-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.52rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #f8f7f4;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-sizing: border-box;
  min-height: 38px;
}

.btn-launch-tool:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: #d4af37;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-launch-tool-gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(212, 175, 55, 0.08));
  border-color: rgba(212, 175, 55, 0.6);
  color: #f5dfa8;
}

.btn-launch-tool-gold:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(212, 175, 55, 0.15));
  color: #ffffff;
}

@media (max-width: 768px) {
  .admin-launch-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .btn-launch-tool {
    width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    padding: 0.65rem 0.4rem !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 480px) {
  .admin-launch-actions-grid {
    grid-template-columns: 1fr !important;
  }
}

.btn-action-del, .btn-action-purge {
  padding: 0.4rem 0.65rem;
  border-radius: 0.55rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: #e74c3c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-action-del:hover, .btn-action-purge:hover {
  border-color: #e74c3c;
  color: #ff6b6b;
  background: rgba(231, 76, 60, 0.15);
}

.btn-action-expire {
  padding: 0.4rem 0.65rem;
  border-radius: 0.55rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: #f39c12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-action-expire:hover {
  border-color: #f39c12;
  color: #f1c40f;
  background: rgba(243, 156, 18, 0.15);
}

.btn-action-expire.is-expired {
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.3);
}

.btn-action-expire.is-expired:hover {
  border-color: #2ecc71;
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.15);
}

.loading-cell, .error-cell, .empty-cell {
  text-align: center;
  padding: 3.5rem 1rem !important;
  color: var(--text-muted);
}

.table-loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 0.75rem;
}

/* Mobile Fleet Cards View */
.admin-mobile-cards-grid {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.admin-mobile-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease;
}

.admin-mobile-card.card-active {
  border-left: 3px solid #2ecc71;
}

.admin-mobile-card.card-expired {
  border-left: 3px solid #e74c3c;
  opacity: 0.82;
}

.mobile-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-card-id {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
}

.mobile-card-recipient {
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
  color: var(--text-main);
  font-family: var(--font-serif);
}

.mobile-card-creator {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin: 0;
}

.mobile-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Two-tier Mobile Card Actions Layout */
.mobile-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-color);
}

.mobile-btn-full {
  width: 100%;
  padding: 0.7rem 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--accent-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.mobile-btn-full:hover, .mobile-btn-full:active {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--accent-gold);
}

.mobile-card-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  width: 100%;
  box-sizing: border-box;
}

.mobile-grid-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0.5rem 0.2rem !important;
  min-height: 38px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 0.6rem !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.mobile-grid-btn span {
  display: inline-block;
  white-space: nowrap;
}

.mobile-grid-btn:hover {
  border-color: var(--accent-gold) !important;
}

.mobile-grid-btn.mobile-btn-view {
  color: var(--accent-gold) !important;
  border-color: rgba(212, 175, 55, 0.25) !important;
}
.mobile-grid-btn.mobile-btn-view:hover {
  background: rgba(212, 175, 55, 0.12) !important;
}

.mobile-grid-btn.mobile-btn-copy {
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}
.mobile-grid-btn.mobile-btn-copy:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.mobile-grid-btn.mobile-btn-expire {
  color: #f39c12 !important;
  border-color: rgba(243, 156, 18, 0.25) !important;
}
.mobile-grid-btn.mobile-btn-expire:hover {
  border-color: #f39c12 !important;
  background: rgba(243, 156, 18, 0.15) !important;
  color: #f1c40f !important;
}

.mobile-grid-btn.mobile-btn-expire.is-expired {
  color: #2ecc71 !important;
  border-color: rgba(46, 204, 113, 0.3) !important;
}
.mobile-grid-btn.mobile-btn-expire.is-expired:hover {
  border-color: #2ecc71 !important;
  background: rgba(46, 204, 113, 0.15) !important;
  color: #2ecc71 !important;
}

.mobile-grid-btn.mobile-btn-purge {
  color: #e74c3c !important;
  border-color: rgba(231, 76, 60, 0.25) !important;
}
.mobile-grid-btn.mobile-btn-purge:hover {
  border-color: #e74c3c !important;
  background: rgba(231, 76, 60, 0.15) !important;
  color: #ff6b6b !important;
}

/* Full Data Inspector Modal */
.modal-box-large {
  max-width: 900px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.2rem;
  text-align: left;
}

.inspect-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
}

.inspect-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.35rem;
}

.inspect-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--text-main);
}

.btn-close-inspect {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-subtle);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.btn-close-inspect:hover {
  color: #fff;
}

.inspect-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
}

.inspect-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.inspect-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 1.1rem;
  padding: 1.25rem;
}

.inspect-section-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  margin-bottom: 0.85rem;
}

.inspect-letter-box {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.2);
  padding: 1.2rem;
  border-radius: 0.75rem;
  border: 1px dashed var(--border-color);
  max-height: 240px;
  overflow-y: auto;
}

.inspect-reasons-list {
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
}

.inspect-box-sub {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-main);
}

.inspect-details-table {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-row span:first-child {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.inspect-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.inspect-photo-thumb {
  aspect-ratio: 1;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: block;
}

.inspect-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.inspect-photo-thumb:hover img {
  transform: scale(1.08);
}

.inspect-muted {
  font-size: 0.82rem;
  color: var(--text-subtle);
  font-style: italic;
}

.inspect-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.inspect-footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.tab-label-short {
  display: none;
}

.tab-label-full {
  display: inline;
}

.admin-mobile-tab-bar {
  display: none;
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(14, 8, 22, 0.96);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  align-items: center;
  gap: 0.6rem;
}

.mobile-tab-bar-icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  white-space: nowrap;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-mobile-tab-select {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--text-main);
  border-radius: 0.65rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.admin-mobile-tab-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.btn-action-copy, .btn-action-open {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 1.1rem;
  border-radius: 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-action-copy:hover, .btn-action-open:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-modal-close-simple {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Responsive Media Queries for All Devices */
@media (max-width: 1100px) {
  .admin-header {
    padding: 0.75rem 1.25rem;
  }

  .admin-nav-container {
    flex-wrap: wrap;
    row-gap: 0.75rem;
    column-gap: 1rem;
    align-items: center;
  }

  .admin-brand-wrap {
    order: 1;
    flex: 0 1 auto;
  }

  .admin-nav-actions {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .admin-nav-tabs {
    order: 3;
    width: 100%;
    flex: 1 1 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 0.35rem 0.5rem;
    border-radius: 0.85rem;
    justify-content: flex-start;
  }

  .admin-nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tab-btn {
    flex-shrink: 0;
  }
}

@media (max-width: 1024px) {
  .admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .admin-mobile-tab-bar {
    display: flex;
  }
  .tab-label-short {
    display: inline;
  }
  .tab-label-full {
    display: none;
  }
  .inspect-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .inspect-footer-left {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }
  .inspect-footer-left button,
  .inspect-footer-left a {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    font-size: 0.86rem;
  }
  .btn-modal-close-simple {
    width: 100%;
    padding: 0.75rem;
  }
  #tab-overview .table-container-responsive,
  #tab-fleet .table-container-responsive {
    display: none !important;
  }
  .table-container-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-mobile-cards-grid {
    display: flex !important;
  }
  .inspect-grid {
    grid-template-columns: 1fr;
  }
  .admin-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .admin-hero-meta {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem;
  }
}

@media (max-width: 580px) {
  .admin-header {
    padding: 0.6rem 0.75rem;
  }

  .admin-nav-container {
    row-gap: 0.6rem;
  }

  .admin-brand-wrap {
    gap: 0.5rem;
  }

  .admin-brand-wrap .brand-logo {
    font-size: 1.12rem;
    gap: 0.4rem;
  }

  .admin-brand-wrap .logo-heart {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  .admin-badge-fleet {
    display: none;
  }

  .admin-nav-actions {
    gap: 0.4rem;
  }

  .admin-user-tag {
    font-size: 0.68rem;
    padding: 0.25rem 0.55rem;
  }

  .btn-admin-refresh {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  .btn-admin-logout {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  .admin-nav-tabs {
    gap: 0.35rem;
    padding: 0.25rem 0.35rem;
  }

  .nav-tab-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.76rem;
  }

  .admin-main {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }

  .admin-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    line-height: 1.15;
  }

  .admin-hero {
    margin-bottom: 1.5rem;
    gap: 0.85rem;
  }

  .admin-maint-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .maint-toggle-wrap {
    justify-content: space-between;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .admin-metrics-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-filter-pills {
    justify-content: flex-start;
  }

  .footer-sub-bar {
    flex-direction: column;
    gap: 0.75rem;
  }

  .modal-box-large {
    padding: 1.25rem 1rem !important;
    max-height: 92vh !important;
    width: 96% !important;
    border-radius: 1rem !important;
  }

  .inspect-title {
    font-size: 1.35rem !important;
  }

  .inspect-header {
    margin-bottom: 1rem !important;
    padding-bottom: 0.85rem !important;
  }

  .inspect-letter-box {
    font-size: 1.15rem !important;
    padding: 0.85rem !important;
  }
}
/* ==========================================================================
   ADMIN LOGIN OVERLAY & AUTHENTICATION MODAL
   ========================================================================== */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #1b121e 0%, #0a070c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-login-card {
  width: 100%;
  max-width: 460px;
  background: #18111c;
  border: 1.5px solid rgba(230, 185, 128, 0.35);
  border-radius: 2rem;
  padding: 3rem 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(230, 185, 128, 0.15);
  animation: fadeInStage 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.admin-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold), var(--primary));
}

.login-brand-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-brand-header .logo-heart-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(230, 75, 100, 0.15);
  border: 1px solid rgba(230, 75, 100, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.login-brand-header .logo-heart {
  font-size: 1.5rem;
  color: var(--primary);
  animation: heartPulse 2.4s infinite ease-in-out;
}

.login-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.login-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.login-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.login-error-banner {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #ff7675;
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
  text-align: center;
  animation: fadeInStage 0.3s ease;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
}

.login-field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap .field-input {
  width: 100%;
  padding-right: 3rem;
}

.btn-toggle-pwd {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.65;
  color: var(--text-main);
  transition: opacity 0.2s;
  padding: 0.25rem;
}

.btn-toggle-pwd:hover {
  opacity: 1;
}

.btn-submit-login {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 1rem;
  padding: 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 25px var(--primary-glow);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-top: 0.5rem;
}

.btn-submit-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--primary-glow);
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

.btn-submit-login:active {
  transform: translateY(0);
}

.btn-submit-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-footer-note {
  text-align: center;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   ADMIN HEADER TABS & USER CONTROLS
   ========================================================================== */
.admin-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-elevated);
  padding: 0.3rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: var(--text-main);
}

.nav-tab-btn.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.admin-user-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
  background: rgba(230, 185, 128, 0.1);
  border: 1px solid rgba(230, 185, 128, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.btn-admin-logout {
  background: var(--bg-elevated);
  border: 1px solid rgba(231, 76, 60, 0.35);
  color: #ff7675;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin-logout:hover {
  background: rgba(231, 76, 60, 0.15);
  border-color: #e74c3c;
  color: #fff;
}

.badge-purged {
  background: rgba(243, 156, 18, 0.12);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.3);
}

/* ==========================================================================
   LIFETIME MEDIA VAULT (TAB 2) STYLES
   ========================================================================== */
.media-count-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-gold);
  background: rgba(230, 185, 128, 0.12);
  border: 1px solid rgba(230, 185, 128, 0.3);
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

.vault-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 0.85rem 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.vault-note-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.vault-group-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vault-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.vault-photo-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.vault-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  border-color: rgba(230, 185, 128, 0.4);
}

.vault-thumb-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-elevated);
  display: block;
}

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

.vault-thumb-wrap:hover img {
  transform: scale(1.06);
}

.vault-photo-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.vault-photo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-subtle);
}

.vault-file-size {
  color: var(--accent-gold);
  background: rgba(230, 185, 128, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
}

.vault-association {
  font-size: 0.78rem;
  color: var(--text-main);
  line-height: 1.4;
}

.vault-association strong {
  color: var(--accent-gold);
  font-family: var(--font-mono);
}

.vault-photo-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-vault-download, .btn-vault-view {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  font-size: 0.74rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.btn-vault-download:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(230, 185, 128, 0.1);
}

.btn-vault-view:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Audio Vault Rows */
.vault-audio-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.vault-audio-row {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transition: border-color 0.2s ease;
}

.vault-audio-row:hover {
  border-color: rgba(230, 185, 128, 0.35);
}

.audio-info-col {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 240px;
}

.audio-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(230, 185, 128, 0.12);
  border: 1px solid rgba(230, 185, 128, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.audio-meta-text .audio-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  word-break: break-all;
}

.audio-meta-text .audio-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.audio-player-col {
  flex: 1;
  min-width: 260px;
}

.audio-player-col audio {
  width: 100%;
  height: 38px;
  outline: none;
}

.audio-action-col .btn-vault-download {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ==========================================================================
   SECURITY & RETENTION SETTINGS (TAB 3)
   ========================================================================== */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.settings-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.settings-card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.settings-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pwd-feedback-msg {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.82rem;
  text-align: center;
}

.pwd-feedback-msg.msg-success {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #5be7a9;
}

.pwd-feedback-msg.msg-error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #ff7675;
}

.btn-change-pwd {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  padding: 0.95rem 1.5rem;
  border-radius: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.btn-change-pwd:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--primary-glow);
}

.retention-info-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 1.1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.retention-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.retention-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.retention-row span {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.retention-row strong {
  color: var(--text-main);
}

.btn-view-terms {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border-radius: 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-view-terms:hover {
  background: rgba(230, 185, 128, 0.15);
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   TERMS & PRIVACY RETENTION PAGE (terms.html) STYLES
   ========================================================================== */
.legal-body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.legal-main-container {
  max-width: 900px;
  margin: 3rem auto 6rem;
  padding: 0 1.5rem;
}

.legal-paper-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 2.25rem;
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-float);
  position: relative;
}

.legal-header-box {
  text-align: center;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.6rem;
}

.legal-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.legal-effective {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.legal-heading {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: -0.01em;
}

.legal-section p, .legal-section li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
}

.legal-section ul {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legal-section strong {
  color: var(--text-main);
  font-weight: 700;
}

.highlight-retention-box {
  background: linear-gradient(135deg, rgba(230, 75, 100, 0.08), rgba(230, 185, 128, 0.08));
  border: 1.5px solid rgba(230, 185, 128, 0.35);
  border-radius: 1.5rem;
  padding: 2rem;
}

.policy-callout-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  background: rgba(230, 185, 128, 0.15);
  border: 1px solid rgba(230, 185, 128, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 0.5rem;
}

.timeline-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-card-grace {
  border-color: rgba(230, 185, 128, 0.4);
  background: rgba(230, 185, 128, 0.05);
}

.timeline-card-purged {
  border-color: rgba(231, 76, 60, 0.35);
  background: rgba(231, 76, 60, 0.05);
}

.timeline-step {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.2;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.retention-summary-note {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--accent-gold);
  padding: 0.85rem 1.15rem;
  border-radius: 0.4rem;
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

.legal-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.legal-contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 1.1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-contact-card h4 {
  font-size: 1.05rem;
  color: var(--text-main);
}

.legal-contact-card p {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.legal-contact-card a {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.legal-contact-card a:hover {
  color: #fff;
}

.footer-legal-link {
  color: var(--text-subtle);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .timeline-visual-grid {
    grid-template-columns: 1fr;
  }
  .legal-contact-grid {
    grid-template-columns: 1fr;
  }
  .legal-paper-card {
    padding: 2.25rem 1.5rem;
  }
  .admin-nav-tabs {
    overflow-x: auto;
    max-width: 100%;
  }
}

/* ==========================================================================
   KEEPSAKE STORY & TEMPLATE STUDIO (HIGH-RES 9:16 SUITE)
   Friskysoftsell Luxury Gold & Obsidian Studio Architecture
   ========================================================================== */
.story-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 3, 10, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.story-modal-card.story-studio-card {
  width: 95vw !important;
  max-width: 1260px !important;
  height: 92vh !important;
  max-height: 940px !important;
  background: linear-gradient(165deg, #130a1c 0%, #0a040e 100%) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.4) !important;
  border-radius: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.85), 0 0 50px rgba(212, 175, 55, 0.18) !important;
  overflow: hidden !important;
  animation: studioZoomIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes studioZoomIn {
  from { opacity: 0; transform: scale(0.94) translateY(24px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Studio Header */
.story-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(90deg, rgba(26, 12, 32, 0.95), rgba(14, 5, 18, 0.98));
}

.story-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.story-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-gold, #d4af37);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.story-modal-title {
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0;
}

.story-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-studio-toggle-view {
  display: none; /* Shown on mobile screens < 880px */
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-studio-toggle-view:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--accent-gold);
}

.story-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.story-modal-close:hover {
  background: #e11d48;
  border-color: #e11d48;
  transform: rotate(90deg);
}

/* Image Design Styles Picker Bar */
.story-style-picker-bar {
  padding: 0.75rem 1.75rem;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.style-picker-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-gold, #d4af37);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.story-style-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.story-style-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2d3df;
  border-radius: 999px;
  padding: 0.38rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  user-select: none;
}

.story-style-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.story-style-chip.active {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  border-color: #f7e0a3;
  color: #0b050d;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.6);
  transform: translateY(-1px);
}

.story-style-chip.chip-random {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.12);
  color: #f7e0a3;
}

.story-style-chip.chip-random:hover {
  background: rgba(212, 175, 55, 0.25);
  color: #fff;
}

/* Studio Workspace Body: 2-Column Split Grid */
.story-studio-body {
  display: grid;
  grid-template-columns: 460px 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #170b1c 0%, #07030a 100%);
}

/* Left Column: High-Res 9:16 Canvas Preview */
.story-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  position: relative;
}

.story-preview-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 340px;
  margin-bottom: 0.75rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.preview-dim-badge {
  font-family: var(--font-mono, monospace);
  background: rgba(255, 255, 255, 0.07);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2d3df;
}

.preview-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--accent-gold, #d4af37);
  font-size: 0.74rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: livePulse 1.6s infinite;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.story-rendered-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 60vh;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(212, 175, 55, 0.25);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.story-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 3rem 1.5rem;
}

.story-spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-gold, #d4af37);
  border-radius: 50%;
  animation: spinMiniVinyl 0.85s linear infinite;
}

.story-loading-text {
  font-size: 0.86rem;
  color: var(--text-muted, #d0b8c4);
  max-width: 280px;
  line-height: 1.55;
}

/* Right Column: Editable Template Inspector */
.template-customizer-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: rgba(18, 8, 22, 0.7);
}

.tmpl-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tmpl-panel-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tmpl-panel-title {
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.tmpl-panel-sub {
  font-size: 0.74rem;
  color: var(--text-muted, #b399a8);
}

.tmpl-panel-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-tmpl-tool {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f3e8f1;
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tmpl-tool:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #fff;
  border-color: var(--accent-gold);
}

.tmpl-form-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Custom Gold Scrollbar for Template Inspector */
.tmpl-form-scroll::-webkit-scrollbar {
  width: 6px;
}
.tmpl-form-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.tmpl-form-scroll::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 999px;
}
.tmpl-form-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold, #d4af37);
}

/* Form Groups & Inputs */
.tmpl-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tmpl-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.tmpl-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold, #d4af37);
}

.tmpl-input, .tmpl-textarea {
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.tmpl-input:focus, .tmpl-textarea:focus {
  border-color: var(--accent-gold, #d4af37);
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.tmpl-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

/* Stickers / Stamps Grid */
.tmpl-sticker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tmpl-sticker-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2d3df;
  border-radius: 10px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tmpl-sticker-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-1px);
}

.tmpl-sticker-btn.active {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--accent-gold, #d4af37);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

/* Color Swatches Grid */
.tmpl-color-grid {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.tmpl-color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.tmpl-color-swatch:hover {
  transform: scale(1.2);
  border-color: #fff;
}

.tmpl-color-swatch.active {
  transform: scale(1.24);
  border-color: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.8), 0 0 8px var(--accent-gold);
}

/* --- Creative Image Collage & Composition Mood Grid --- */
.tmpl-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 480px) {
  .tmpl-layout-grid {
    grid-template-columns: 1fr;
  }
}

.tmpl-layout-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  text-align: left;
  cursor: pointer;
  color: #e2d3df;
  font-family: inherit;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tmpl-layout-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.tmpl-layout-card.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--accent-gold, #d4af37);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.22), inset 0 0 12px rgba(212, 175, 55, 0.08);
}

.tmpl-layout-card.active::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.75rem;
  color: var(--accent-gold, #d4af37);
  font-weight: 800;
}

.tmpl-layout-card .layout-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.tmpl-layout-card .layout-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tmpl-layout-card .layout-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.tmpl-layout-card .layout-desc {
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--text-subtle, #a58694);
}

.tmpl-layout-card[data-layout="aura_gradient"]::before,
.tmpl-layout-card[data-layout="wrapped_moment"]::before {
  content: "🔥 Trending";
  position: absolute;
  top: -8px;
  right: 8px;
  background: linear-gradient(135deg, #ff2d55, #ff9f0a);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(255, 45, 85, 0.4);
  pointer-events: none;
  z-index: 2;
}

.tmpl-layout-card[data-layout="aura_gradient"].active::before,
.tmpl-layout-card[data-layout="wrapped_moment"].active::before {
  background: linear-gradient(135deg, #ff0844, #ffb199);
  box-shadow: 0 2px 10px rgba(255, 8, 68, 0.6);
}

/* --- Interactive Visual Photo Tray --- */
.tmpl-visual-photo-tray {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.6rem 0.2rem 0.8rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.tmpl-visual-photo-tray::-webkit-scrollbar {
  height: 4px;
}

.tmpl-visual-photo-tray::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}

.tmpl-photo-thumb-card {
  flex-shrink: 0;
  width: 96px;
  height: 120px;
  background: #fffdfa;
  border-radius: 8px;
  padding: 5px 5px 18px 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  position: relative;
  transition: all 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
}

.tmpl-photo-thumb-card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.tmpl-photo-thumb-card.active {
  border: 2px solid var(--accent-gold, #d4af37);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.45), 0 8px 24px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

.tmpl-photo-thumb-card .thumb-img-wrap {
  width: 100%;
  height: 82px;
  background: #201526;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.tmpl-photo-thumb-card .thumb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tmpl-photo-thumb-card .thumb-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #331f28;
  font-weight: 700;
  text-align: center;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tmpl-photo-thumb-card.active .thumb-tag {
  color: #8b1e2d;
}

.tmpl-photo-thumb-card .hero-star-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #d4af37;
  color: #120904;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 2px;
  left: -6px;
  right: auto;
}

.tmpl-photo-thumb-card .btn-remove-tray-photo {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  padding: 0;
  line-height: 1;
}

.tmpl-photo-thumb-card .btn-remove-tray-photo:hover {
  background: #991b1b;
  transform: scale(1.22);
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.65);
}

/* Upload Card Placeholder in Tray */
.tmpl-photo-upload-slot {
  flex-shrink: 0;
  width: 96px;
  height: 120px;
  border: 2px dashed rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  color: var(--accent-gold, #d4af37);
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tmpl-photo-upload-slot:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent-gold, #d4af37);
  transform: translateY(-2px);
  color: #fff;
}

.tmpl-photo-upload-slot .slot-icon {
  font-size: 1.4rem;
  line-height: 1;
}

/* Legacy Fallback pills */
.tmpl-photo-pills {
  display: none;
}

.btn-tmpl-add-photo {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tmpl-add-photo:hover {
  background: rgba(212, 175, 55, 0.25) !important;
  border-color: var(--accent-gold, #d4af37) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.btn-tmpl-add-photo:active {
  transform: translateY(0);
}

/* Modal Customizer Editable Letter Headlines */
.tmpl-edit-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.tmpl-field-row {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.tmpl-field-sub {
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(240, 195, 132, 0.9);
  letter-spacing: 0.02em;
}

.tmpl-input-text {
  width: 100%;
  padding: 0.52rem 0.8rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1.2px solid rgba(212, 175, 55, 0.35);
  border-radius: 9px;
  color: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.tmpl-input-text:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: #f7e0a3;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

/* Studio Bottom Actions Bar */
.story-modal-actions {
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(10, 4, 13, 0.96);
}

.btn-download-story, .btn-copy-story-img, .btn-share-story {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.22s ease;
  text-decoration: none;
}

.btn-download-story {
  flex: 1.3;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  border: 1.5px solid #f7e0a3;
  color: #0c0510;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-download-story:hover {
  background: linear-gradient(135deg, #f7e0a3 0%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.55);
}

.btn-copy-story-img {
  flex: 0.9;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-copy-story-img:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-share-story {
  flex: 1.1;
  background: #25d366;
  border: 1.5px solid #4ade80;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.btn-share-story:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

.story-share-hint {
  padding: 0.2rem 1.75rem 0.85rem;
  font-size: 0.74rem;
  color: var(--text-subtle, #967d8c);
  text-align: center;
  background: rgba(10, 4, 13, 0.96);
  margin: 0;
}

/* Mobile Responsive Studio Switch */
@media (max-width: 880px) {
  .btn-studio-toggle-view {
    display: inline-flex;
  }
  .story-modal-card.story-studio-card {
    width: 98vw !important;
    height: 96vh !important;
    max-height: 96vh !important;
    border-radius: 16px !important;
  }
  .story-studio-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .template-customizer-panel {
    display: none; /* Toggled by mobile button */
  }
  .template-customizer-panel.mobile-active {
    display: flex;
    flex: 1;
  }
  .story-preview-wrapper.mobile-hidden {
    display: none;
  }
  .story-preview-wrapper {
    padding: 0.75rem 1rem;
  }
  .story-rendered-img {
    max-height: 52vh;
  }
  .story-modal-actions {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
  }
  .btn-download-story, .btn-copy-story-img, .btn-share-story {
    flex: 1 1 100%;
    padding: 0.75rem 1rem;
  }
}

/* --- Media Vault Delete Action Button --- */
.btn-vault-delete {
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  font-size: 0.74rem;
  font-weight: 500;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.btn-vault-delete:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: translateY(-1px);
}

/* --- Mobile Viewport Polish (320px - 640px) --- */
@media (max-width: 640px) {
  .site-header {
    padding: 0.75rem 1rem !important;
  }
  .brand-logo {
    font-size: 1.15rem !important;
    gap: 0.5rem !important;
  }
  .logo-heart {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }
  .header-badges {
    gap: 0.5rem !important;
  }
  .badge-tag:not(.header-admin-link) {
    display: none !important;
  }
  .container-max {
    padding: 0 1rem !important;
  }
  .journey-progress-bar {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .envelope-hero {
    padding: 2.5rem 1.25rem !important;
    border-radius: 1.75rem !important;
  }
  .envelope-recipient {
    font-size: clamp(2rem, 8vw, 2.75rem) !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .envelope-whisper {
    font-size: 1.35rem !important;
    margin-bottom: 2rem !important;
  }
  .admin-login-card {
    padding: 2rem 1.25rem !important;
    border-radius: 1.5rem !important;
  }
  .admin-hero {
    padding: 1.25rem 0.5rem !important;
  }
  .hero-pills {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  .hero-pill {
    width: 100% !important;
  }
}

/* ==========================================================================
   ADMIN SEO & MARKETING SUITE & AI STUDIO STYLES
   ========================================================================== */
.seo-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .seo-layout-grid {
    grid-template-columns: 1fr;
  }
}

.seo-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(230, 185, 128, 0.22);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.seo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(230, 75, 100, 0.4), rgba(230, 185, 128, 0.7), rgba(230, 75, 100, 0.4));
}

.seo-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-card-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.seo-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.seo-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.seo-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.seo-field-group:last-child {
  margin-bottom: 0;
}

.seo-label-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seo-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(230, 185, 128, 0.95);
}

.seo-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.seo-input, .seo-select, .seo-textarea {
  width: 100%;
  background: rgba(12, 10, 14, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.seo-input:focus, .seo-select:focus, .seo-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(20, 16, 24, 0.9);
  box-shadow: 0 0 0 3px rgba(230, 185, 128, 0.2);
}

.seo-code-textarea {
  font-family: 'JetBrains Mono', Consolas, monospace !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
  background: #080709 !important;
  border-color: rgba(230, 185, 128, 0.2) !important;
  color: #e6b980 !important;
}

/* Tool Toggles */
.tool-toggle-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.15rem;
  margin-bottom: 1rem;
  transition: all 0.25s ease;
}

.tool-toggle-item:hover {
  border-color: rgba(230, 185, 128, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.tool-toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.tool-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tool-icon {
  font-size: 1.3rem;
}

.tool-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

/* Social Preview Simulator */
.social-preview-simulator {
  background: #0d0b10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.social-sim-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.social-card-img-preview {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #1a1622;
  position: relative;
}

.social-card-content {
  padding: 1rem;
}

.social-card-domain {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.social-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.social-card-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Floating Save Bar */
.seo-save-bar {
  position: sticky;
  bottom: 1.5rem;
  z-index: 100;
  background: rgba(14, 11, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(230, 185, 128, 0.4);
  border-radius: 1.25rem;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(230, 185, 128, 0.15);
  margin-top: 2rem;
}

.seo-save-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.75rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(230, 75, 100, 0.35);
}

.seo-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 75, 100, 0.5);
  filter: brightness(1.1);
}

.btn-ai-render {
  background: linear-gradient(135deg, #7928ca, #ff0080);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(121, 40, 202, 0.35);
}

.btn-ai-render:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 128, 0.4);
  filter: brightness(1.1);
}

.ai-output-box {
  background: #09080c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.25rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 160px;
  white-space: pre-wrap;
  margin-top: 1rem;
}

/* ==========================================================================
   HAMBURGER NAVIGATION, MOBILE SIDE DRAWERS & RESPONSIVE POLISH
   ========================================================================== */

/* 1. Public Hamburger & Mobile Drawer */
.btn-hamburger {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 0.65rem;
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  transition: all 0.25s ease;
}

.btn-hamburger .ham-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.btn-hamburger:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 10, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 340px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
}

.mobile-side-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

.btn-drawer-close {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-drawer-close:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  text-decoration: none;
  background: var(--bg-elevated);
  border: 1px solid transparent;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.drawer-nav-item:hover,
.drawer-nav-item.highlight-photobooth {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.drawer-nav-item.highlight-photobooth {
  border-color: rgba(179, 86, 107, 0.4);
  background: linear-gradient(135deg, rgba(179,86,107,0.12), rgba(212,163,115,0.12));
}

.drawer-item-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.drawer-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.drawer-item-text strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.drawer-item-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-color);
  font-size: 0.75rem;
  color: var(--text-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* 2. Admin Hamburger & Mobile Drawer */
.btn-admin-hamburger {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.65rem;
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  transition: all 0.25s ease;
}

.btn-admin-hamburger .ham-line {
  display: block;
  width: 17px;
  height: 2px;
  background: #fdf5f8;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.btn-admin-hamburger:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.18);
}

.admin-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 5, 10, 0.72) !important;
  z-index: 1100 !important;
  opacity: 0;
  pointer-events: none;
  display: none !important;
  visibility: hidden !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: opacity 0.25s ease;
}

.admin-drawer-backdrop.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.admin-side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  background: #140e18;
  border-left: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.65);
  z-index: 1099;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
}

.admin-side-drawer.active {
  transform: translateX(0);
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1.5px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.drawer-username {
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
}

.drawer-user-role {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-side-drawer .drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.drawer-nav-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.drawer-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
  color: #fff;
}

.drawer-nav-btn.active {
  background: linear-gradient(135deg, rgba(179,86,107,0.3), rgba(212,175,55,0.25));
  border-color: var(--accent-gold);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.drawer-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.drawer-label {
  flex: 1;
}

.drawer-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--accent-gold);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.drawer-footer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.btn-drawer-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-drawer-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
}

.btn-drawer-logout {
  color: #ff6b81;
  border-color: rgba(255, 107, 129, 0.25);
  background: rgba(255, 107, 129, 0.08);
}

.btn-drawer-logout:hover {
  background: rgba(255, 107, 129, 0.2);
  border-color: #ff6b81;
}

/* 3. Vintage Photobooth Pill in Header */
.nav-photobooth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(179,86,107,0.12), rgba(212,163,115,0.15));
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-photobooth-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* 4. Creative Font Style Selector Chips */
.font-style-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.font-style-chip {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex;
  align-items: center;
}

.font-style-chip:hover {
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateY(-1px);
}

.font-style-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
  font-weight: 600;
}

/* Font Style Utility Classes */
.font-style-caveat {
  font-family: 'Caveat', cursive, sans-serif !important;
}

.font-style-playfair {
  font-family: 'Playfair Display', Georgia, serif !important;
}

.font-style-great-vibes {
  font-family: 'Great Vibes', cursive !important;
  font-size: 1.7rem !important;
}

.font-style-dancing {
  font-family: 'Dancing Script', cursive !important;
  font-size: 1.5rem !important;
}

.font-style-cormorant {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.3rem !important;
}

.font-style-cinzel {
  font-family: 'Cinzel', serif !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.05em !important;
}

.font-style-outfit {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.15rem !important;
}

/* 5. Responsive Mobile Anti-Stuffing & Touch Optimizations */
@media (max-width: 768px) {
  .btn-hamburger {
    display: inline-flex;
  }

  .site-header {
    padding: 0.75rem 1rem;
  }

  .field-label {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
  }

  .field-hint {
    margin-top: 0.15rem;
  }

  .reason-row {
    width: 100%;
    gap: 0.5rem;
  }

  .reason-row .field-input {
    flex: 1;
    min-width: 0;
    width: auto;
    font-size: 0.88rem;
    padding: 0.75rem 0.85rem;
  }

  .form-card {
    padding: 1.5rem 1.15rem;
    gap: 1.75rem;
  }

  .upload-dropzone,
  .soundtrack-upload-box {
    padding: 1.25rem 0.85rem;
  }

  .btn-gallery-upload {
    padding: 0.65rem 1.1rem;
    font-size: 0.82rem;
  }

  .btn-admin-hamburger {
    display: inline-flex;
  }

  .admin-nav-tabs {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .site-header .badge-tag {
    display: none;
  }

  .nav-photobooth-pill {
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .container-max {
    padding: 0 0.85rem;
  }

  .form-card {
    padding: 1.25rem 0.85rem;
    border-radius: 1.15rem;
  }

  .occasion-pills {
    gap: 0.45rem;
  }

  .occasion-pill-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }

  .theme-selector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .theme-pill-button {
    padding: 0.65rem 0.4rem;
  }

  .font-style-chip {
    padding: 0.35rem 0.7rem;
    font-size: 0.76rem;
  }

  .reason-index {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .btn-add-reason {
    padding: 0.45rem 0.8rem;
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   PHOTOBOOTH FLEET & SESSIONS TAB IN ADMIN PANEL
   ========================================================================== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1.4rem;
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
  border-color: rgba(255, 255, 255, 0.22);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.stat-card-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.stat-card-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.stat-card-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
}

.stat-card-desc {
  font-size: 0.78rem;
  color: var(--text-subtle);
  line-height: 1.4;
}

.admin-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-hero-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-hero-action.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-gold));
  color: #fff;
  border: none;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-hero-action.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  opacity: 0.95;
}

.table-filter-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.table-filter-pill:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.table-filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

@media (max-width: 1024px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .admin-stats-grid {
    grid-template-columns: 1fr !important;
  }
  .admin-hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .btn-hero-action {
    justify-content: center;
  }
}

/* ==========================================================================
   NAVIGATION DRAWERS (PUBLIC DESK & ADMIN OVERSEER)
   Strictly hidden on desktop (>=992px) to prevent layout bleeding.
   ========================================================================== */

/* 1. Desktop Guards: NEVER show drawers, backdrops, or hamburger on desktop (>=1024px) */
@media (min-width: 1024px) {
  .mobile-side-drawer,
  .mobile-drawer-backdrop,
  .btn-hamburger,
  .admin-side-drawer,
  .admin-drawer-backdrop,
  .btn-admin-hamburger,
  .admin-mobile-topbar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* 2. Hamburger Buttons (Shown on mobile & tablet <1024px) */
.btn-hamburger,
.btn-admin-hamburger {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color, rgba(212, 175, 55, 0.25));
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

@media (max-width: 1023px) {
  .btn-hamburger,
  .btn-admin-hamburger {
    display: inline-flex;
  }
  .admin-nav-tabs {
    display: none !important;
  }
}

.ham-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main, #f8f7f4);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* 3. Backdrop Overlays */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 5, 10, 0.75) !important;
  z-index: 9990 !important;
  opacity: 0;
  pointer-events: none;
  display: none !important;
  visibility: hidden !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-backdrop.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 4. Public Creator Desk Drawer (index.html) */
.mobile-side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 310px;
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-card, #ffffff);
  border-right: 1px solid var(--border-color, rgba(179, 86, 107, 0.18));
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
  box-sizing: border-box;
}

.mobile-side-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  margin-bottom: 1.25rem;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.15rem;
  color: var(--text-main);
}

.btn-drawer-close {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-drawer-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  color: var(--text-main);
}

.drawer-nav-item:hover,
.drawer-nav-item:focus {
  background: rgba(179, 86, 107, 0.08);
  border-color: rgba(179, 86, 107, 0.25);
  transform: translateX(4px);
}

.drawer-nav-item.highlight-photobooth {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(179, 86, 107, 0.08));
  border-color: rgba(212, 175, 55, 0.35);
}

.drawer-item-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.drawer-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.drawer-item-text strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.drawer-item-text span {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.drawer-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* 5. Admin Panel Side Drawer (admin.html) */
.admin-side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  background: #0f0d14;
  border-right: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 16px 0 50px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
  box-sizing: border-box;
}

.admin-side-drawer.active {
  transform: translateX(0);
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--accent-gold, #d4af37);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.drawer-username {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8f7f4;
}

.drawer-user-role {
  font-size: 0.72rem;
  color: var(--accent-gold, #d4af37);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.drawer-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: #d1c7bd;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.drawer-nav-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #fff;
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateX(4px);
}

.drawer-nav-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
  border-color: var(--accent-gold, #d4af37);
  color: #fff;
  font-weight: 600;
}

.drawer-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.drawer-label {
  flex: 1;
}

.drawer-counter {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent-gold, #d4af37);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
}

.drawer-admin-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1.25rem;
}

.btn-drawer-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8f7f4;
  transition: all 0.2s ease;
}

.btn-drawer-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-drawer-action.logout {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.btn-drawer-action.logout:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

/* ==========================================================================
   UNIVERSAL LUXURY ATELIER FOOTER
   Warm blush parchment, multi-column navigation, gold seal crest, trust badges,
   and delicate romantic typography.
   ========================================================================== */
.site-studio-footer {
  position: relative;
  z-index: 20;
  background: linear-gradient(180deg, rgba(251, 246, 243, 0.6) 0%, rgba(246, 237, 232, 0.95) 25%, rgba(238, 224, 217, 0.98) 100%);
  border-top: 1.5px solid var(--border-color, rgba(179, 86, 107, 0.2));
  padding: 5rem 1.5rem 2.5rem;
  color: var(--text-main, #331f28);
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
  box-shadow: 0 -15px 40px rgba(78, 33, 49, 0.04);
}

[data-theme="midnight"] .site-studio-footer,
[data-theme="gothic"] .site-studio-footer,
[data-theme="cinema"] .site-studio-footer,
[data-theme="neoclassical"] .site-studio-footer,
[data-theme="bentogrid"] .site-studio-footer,
[data-theme="pixelart"] .site-studio-footer,
[data-theme="starlight"] .site-studio-footer,
[data-theme="garden"] .site-studio-footer,
[data-theme="y2k"] .site-studio-footer,
.site-studio-footer.footer-midnight,
body.dark-mode .site-studio-footer {
  background: linear-gradient(180deg, rgba(16, 10, 20, 0.85) 0%, rgba(13, 8, 17, 0.98) 35%, #08040b 100%) !important;
  border-top: 1.5px solid rgba(240, 195, 132, 0.28) !important;
  color: #fdf5f8 !important;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.55) !important;
}

[data-theme="scrapbook"] .site-studio-footer {
  background: linear-gradient(180deg, rgba(253, 250, 245, 0.75) 0%, #faf4ea 30%, #f4eae0 100%);
  border-top: 1.5px solid rgba(198, 138, 76, 0.3);
  color: #3d2a1d;
  box-shadow: 0 -15px 35px rgba(60, 35, 15, 0.05);
}

[data-theme="rose"] .site-studio-footer {
  background: linear-gradient(180deg, rgba(255, 245, 247, 0.6) 0%, rgba(255, 240, 243, 0.95) 25%, #fcecee 100%);
  border-top: 1.5px solid rgba(179, 86, 107, 0.22);
  color: #331f28;
}

.studio-footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.studio-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.25fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 991px) {
  .studio-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .site-studio-footer {
    padding: 3.5rem 1.25rem 2rem;
  }
  .studio-footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  text-decoration: none;
  color: var(--text-main, #331f28);
  transition: transform 0.2s ease;
}

.footer-brand-header:hover {
  transform: translateY(-1px);
}

.brand-logo-seal {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(179, 86, 107, 0.25);
  box-shadow: 0 3px 10px rgba(179, 86, 107, 0.16);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-brand-header:hover .brand-logo-seal {
  transform: rotate(12deg) scale(1.08);
}

.footer-brand-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-brand-title i {
  font-style: italic;
  color: var(--primary, #b3566b);
  font-weight: 400;
}

[data-theme="midnight"] .site-studio-footer .footer-brand-title,
[data-theme="gothic"] .site-studio-footer .footer-brand-title,
[data-theme="cinema"] .site-studio-footer .footer-brand-title,
[data-theme="neoclassical"] .site-studio-footer .footer-brand-title,
[data-theme="bentogrid"] .site-studio-footer .footer-brand-title,
[data-theme="pixelart"] .site-studio-footer .footer-brand-title,
[data-theme="starlight"] .site-studio-footer .footer-brand-title,
[data-theme="garden"] .site-studio-footer .footer-brand-title,
[data-theme="y2k"] .site-studio-footer .footer-brand-title,
.site-studio-footer.footer-midnight .footer-brand-title {
  color: #fff4f6;
}

[data-theme="midnight"] .site-studio-footer .footer-brand-title i,
[data-theme="gothic"] .site-studio-footer .footer-brand-title i,
[data-theme="cinema"] .site-studio-footer .footer-brand-title i,
[data-theme="neoclassical"] .site-studio-footer .footer-brand-title i,
[data-theme="bentogrid"] .site-studio-footer .footer-brand-title i,
[data-theme="pixelart"] .site-studio-footer .footer-brand-title i,
[data-theme="starlight"] .site-studio-footer .footer-brand-title i,
[data-theme="garden"] .site-studio-footer .footer-brand-title i,
[data-theme="y2k"] .site-studio-footer .footer-brand-title i,
.site-studio-footer.footer-midnight .footer-brand-title i {
  color: #f0c384;
}

.footer-brand-desc {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-muted, #7e606d);
  max-width: 390px;
  margin: 0 0 1.5rem;
}

[data-theme="midnight"] .site-studio-footer .footer-brand-desc,
[data-theme="gothic"] .site-studio-footer .footer-brand-desc,
[data-theme="cinema"] .site-studio-footer .footer-brand-desc,
[data-theme="neoclassical"] .site-studio-footer .footer-brand-desc,
[data-theme="bentogrid"] .site-studio-footer .footer-brand-desc,
[data-theme="pixelart"] .site-studio-footer .footer-brand-desc,
[data-theme="starlight"] .site-studio-footer .footer-brand-desc,
[data-theme="garden"] .site-studio-footer .footer-brand-desc,
[data-theme="y2k"] .site-studio-footer .footer-brand-desc,
.site-studio-footer.footer-midnight .footer-brand-desc {
  color: #c9b4c0;
}

.footer-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, rgba(179, 86, 107, 0.2));
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary, #b3566b);
  box-shadow: 0 2px 6px rgba(78, 33, 49, 0.04);
  transition: all 0.22s ease;
  user-select: none;
}

.footer-trust-chip:hover {
  transform: translateY(-2px);
  border-color: var(--primary, #b3566b);
  box-shadow: 0 4px 12px rgba(179, 86, 107, 0.16);
}

[data-theme="midnight"] .site-studio-footer .footer-trust-chip,
[data-theme="gothic"] .site-studio-footer .footer-trust-chip,
[data-theme="cinema"] .site-studio-footer .footer-trust-chip,
[data-theme="neoclassical"] .site-studio-footer .footer-trust-chip,
[data-theme="bentogrid"] .site-studio-footer .footer-trust-chip,
[data-theme="pixelart"] .site-studio-footer .footer-trust-chip,
[data-theme="starlight"] .site-studio-footer .footer-trust-chip,
[data-theme="garden"] .site-studio-footer .footer-trust-chip,
[data-theme="y2k"] .site-studio-footer .footer-trust-chip,
.site-studio-footer.footer-midnight .footer-trust-chip {
  background: rgba(30, 20, 36, 0.85);
  border-color: rgba(240, 195, 132, 0.25);
  color: #f0c384;
}

[data-theme="midnight"] .site-studio-footer .footer-trust-chip:hover,
[data-theme="gothic"] .site-studio-footer .footer-trust-chip:hover,
[data-theme="cinema"] .site-studio-footer .footer-trust-chip:hover,
[data-theme="neoclassical"] .site-studio-footer .footer-trust-chip:hover,
[data-theme="bentogrid"] .site-studio-footer .footer-trust-chip:hover,
[data-theme="pixelart"] .site-studio-footer .footer-trust-chip:hover,
[data-theme="starlight"] .site-studio-footer .footer-trust-chip:hover,
[data-theme="garden"] .site-studio-footer .footer-trust-chip:hover,
[data-theme="y2k"] .site-studio-footer .footer-trust-chip:hover,
.site-studio-footer.footer-midnight .footer-trust-chip:hover {
  border-color: #f0c384;
  box-shadow: 0 4px 12px rgba(240, 195, 132, 0.2);
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
}

.footer-col-heading {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main, #331f28);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

[data-theme="midnight"] .site-studio-footer .footer-col-heading,
[data-theme="gothic"] .site-studio-footer .footer-col-heading,
[data-theme="cinema"] .site-studio-footer .footer-col-heading,
[data-theme="neoclassical"] .site-studio-footer .footer-col-heading,
[data-theme="bentogrid"] .site-studio-footer .footer-col-heading,
[data-theme="pixelart"] .site-studio-footer .footer-col-heading,
[data-theme="starlight"] .site-studio-footer .footer-col-heading,
[data-theme="garden"] .site-studio-footer .footer-col-heading,
[data-theme="y2k"] .site-studio-footer .footer-col-heading,
.site-studio-footer.footer-midnight .footer-col-heading {
  color: #fff2f5;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-anchor {
  color: var(--text-muted, #7e606d);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-link-anchor:hover {
  color: var(--primary, #b3566b);
  transform: translateX(3px);
}

[data-theme="midnight"] .site-studio-footer .footer-link-anchor,
[data-theme="gothic"] .site-studio-footer .footer-link-anchor,
[data-theme="cinema"] .site-studio-footer .footer-link-anchor,
[data-theme="neoclassical"] .site-studio-footer .footer-link-anchor,
[data-theme="bentogrid"] .site-studio-footer .footer-link-anchor,
[data-theme="pixelart"] .site-studio-footer .footer-link-anchor,
[data-theme="starlight"] .site-studio-footer .footer-link-anchor,
[data-theme="garden"] .site-studio-footer .footer-link-anchor,
[data-theme="y2k"] .site-studio-footer .footer-link-anchor,
.site-studio-footer.footer-midnight .footer-link-anchor {
  color: #c9b4c0;
}

[data-theme="midnight"] .site-studio-footer .footer-link-anchor:hover,
[data-theme="gothic"] .site-studio-footer .footer-link-anchor:hover,
[data-theme="cinema"] .site-studio-footer .footer-link-anchor:hover,
[data-theme="neoclassical"] .site-studio-footer .footer-link-anchor:hover,
[data-theme="bentogrid"] .site-studio-footer .footer-link-anchor:hover,
[data-theme="pixelart"] .site-studio-footer .footer-link-anchor:hover,
[data-theme="starlight"] .site-studio-footer .footer-link-anchor:hover,
[data-theme="garden"] .site-studio-footer .footer-link-anchor:hover,
[data-theme="y2k"] .site-studio-footer .footer-link-anchor:hover,
.site-studio-footer.footer-midnight .footer-link-anchor:hover {
  color: #f0c384;
}

.footer-link-badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 9999px;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(179, 86, 107, 0.14);
  color: var(--primary, #b3566b);
}

[data-theme="midnight"] .site-studio-footer .footer-link-badge,
[data-theme="gothic"] .site-studio-footer .footer-link-badge,
[data-theme="cinema"] .site-studio-footer .footer-link-badge,
[data-theme="neoclassical"] .site-studio-footer .footer-link-badge,
[data-theme="bentogrid"] .site-studio-footer .footer-link-badge,
[data-theme="pixelart"] .site-studio-footer .footer-link-badge,
[data-theme="starlight"] .site-studio-footer .footer-link-badge,
[data-theme="garden"] .site-studio-footer .footer-link-badge,
[data-theme="y2k"] .site-studio-footer .footer-link-badge,
.site-studio-footer.footer-midnight .footer-link-badge {
  background: rgba(240, 195, 132, 0.16);
  color: #f0c384;
}

.footer-atelier-status {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, rgba(179, 86, 107, 0.2));
  border-radius: 0.85rem;
  box-shadow: 0 2px 8px rgba(78, 33, 49, 0.04);
}

[data-theme="midnight"] .site-studio-footer .footer-atelier-status,
[data-theme="gothic"] .site-studio-footer .footer-atelier-status,
[data-theme="cinema"] .site-studio-footer .footer-atelier-status,
[data-theme="neoclassical"] .site-studio-footer .footer-atelier-status,
[data-theme="bentogrid"] .site-studio-footer .footer-atelier-status,
[data-theme="pixelart"] .site-studio-footer .footer-atelier-status,
[data-theme="starlight"] .site-studio-footer .footer-atelier-status,
[data-theme="garden"] .site-studio-footer .footer-atelier-status,
[data-theme="y2k"] .site-studio-footer .footer-atelier-status,
.site-studio-footer.footer-midnight .footer-atelier-status {
  background: rgba(30, 20, 36, 0.85);
  border-color: rgba(240, 195, 132, 0.22);
}

.status-dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.6);
  margin-right: 0.4rem;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

.footer-quote-strip {
  border-top: 1px dashed var(--border-color, rgba(179, 86, 107, 0.25));
  border-bottom: 1px dashed var(--border-color, rgba(179, 86, 107, 0.25));
  padding: 1.6rem 1.25rem;
  text-align: center;
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0.85rem;
  position: relative;
}

[data-theme="midnight"] .site-studio-footer .footer-quote-strip,
[data-theme="gothic"] .site-studio-footer .footer-quote-strip,
[data-theme="cinema"] .site-studio-footer .footer-quote-strip,
[data-theme="neoclassical"] .site-studio-footer .footer-quote-strip,
[data-theme="bentogrid"] .site-studio-footer .footer-quote-strip,
[data-theme="pixelart"] .site-studio-footer .footer-quote-strip,
[data-theme="starlight"] .site-studio-footer .footer-quote-strip,
[data-theme="garden"] .site-studio-footer .footer-quote-strip,
[data-theme="y2k"] .site-studio-footer .footer-quote-strip,
.site-studio-footer.footer-midnight .footer-quote-strip {
  background: rgba(26, 17, 32, 0.65);
  border-color: rgba(240, 195, 132, 0.2);
}

.footer-quote-text {
  font-family: var(--font-hand, 'Caveat', cursive);
  font-size: 1.65rem;
  color: var(--primary, #b3566b);
  margin: 0;
  line-height: 1.35;
}

[data-theme="midnight"] .site-studio-footer .footer-quote-text,
[data-theme="gothic"] .site-studio-footer .footer-quote-text,
[data-theme="cinema"] .site-studio-footer .footer-quote-text,
[data-theme="neoclassical"] .site-studio-footer .footer-quote-text,
[data-theme="bentogrid"] .site-studio-footer .footer-quote-text,
[data-theme="pixelart"] .site-studio-footer .footer-quote-text,
[data-theme="starlight"] .site-studio-footer .footer-quote-text,
[data-theme="garden"] .site-studio-footer .footer-quote-text,
[data-theme="y2k"] .site-studio-footer .footer-quote-text,
.site-studio-footer.footer-midnight .footer-quote-text {
  color: #f0c384;
}

.studio-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted, #7e606d);
}

[data-theme="midnight"] .site-studio-footer .studio-footer-bottom,
[data-theme="gothic"] .site-studio-footer .studio-footer-bottom,
[data-theme="cinema"] .site-studio-footer .studio-footer-bottom,
[data-theme="neoclassical"] .site-studio-footer .studio-footer-bottom,
[data-theme="bentogrid"] .site-studio-footer .studio-footer-bottom,
[data-theme="pixelart"] .site-studio-footer .studio-footer-bottom,
[data-theme="starlight"] .site-studio-footer .studio-footer-bottom,
[data-theme="garden"] .site-studio-footer .studio-footer-bottom,
[data-theme="y2k"] .site-studio-footer .studio-footer-bottom,
.site-studio-footer.footer-midnight .studio-footer-bottom {
  color: #c9b4c0;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.footer-bottom-link {
  color: var(--text-muted, #7e606d);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-link:hover {
  color: var(--primary, #b3566b);
}

[data-theme="midnight"] .site-studio-footer .footer-bottom-link,
[data-theme="gothic"] .site-studio-footer .footer-bottom-link,
[data-theme="cinema"] .site-studio-footer .footer-bottom-link,
[data-theme="neoclassical"] .site-studio-footer .footer-bottom-link,
[data-theme="bentogrid"] .site-studio-footer .footer-bottom-link,
[data-theme="pixelart"] .site-studio-footer .footer-bottom-link,
[data-theme="starlight"] .site-studio-footer .footer-bottom-link,
[data-theme="garden"] .site-studio-footer .footer-bottom-link,
[data-theme="y2k"] .site-studio-footer .footer-bottom-link,
.site-studio-footer.footer-midnight .footer-bottom-link {
  color: #c9b4c0;
}

[data-theme="midnight"] .site-studio-footer .footer-bottom-link:hover,
[data-theme="gothic"] .site-studio-footer .footer-bottom-link:hover,
[data-theme="cinema"] .site-studio-footer .footer-bottom-link:hover,
[data-theme="neoclassical"] .site-studio-footer .footer-bottom-link:hover,
[data-theme="bentogrid"] .site-studio-footer .footer-bottom-link:hover,
[data-theme="pixelart"] .site-studio-footer .footer-bottom-link:hover,
[data-theme="starlight"] .site-studio-footer .footer-bottom-link:hover,
[data-theme="garden"] .site-studio-footer .footer-bottom-link:hover,
[data-theme="y2k"] .site-studio-footer .footer-bottom-link:hover,
.site-studio-footer.footer-midnight .footer-bottom-link:hover {
  color: #f0c384;
}

/* ==========================================================================
   ADMIN BATCH SELECTION & HORIZONTAL FLOATING ACTION BAR
   ========================================================================== */
.admin-floating-batch-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 9999;
  max-width: 95vw;
  animation: batchSlideUpDock 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

@keyframes batchSlideUpDock {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.batch-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(22, 18, 30, 0.94), rgba(14, 12, 20, 0.97));
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 28px rgba(212, 175, 55, 0.22);
  white-space: nowrap;
}

.batch-bar-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.85rem;
  color: #fff;
  padding-left: 0.35rem;
}

.batch-sparkle {
  color: #f3d790;
  font-size: 1rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.batch-count {
  font-weight: 700;
  color: #0b0a10;
  background: linear-gradient(135deg, #f5dfa0, #d4af37);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  min-width: 22px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.batch-label {
  color: rgba(248, 247, 244, 0.92);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.batch-divider {
  width: 1px;
  height: 24px;
  background: rgba(212, 175, 55, 0.28);
}

.batch-actions-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-batch-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f8f7f4;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-batch-action:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.6);
  color: #f3d790;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.btn-batch-action:active {
  transform: translateY(0);
}

.btn-batch-action.btn-batch-danger {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.btn-batch-action.btn-batch-danger:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.8);
  color: #fee2e2;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.35);
}

.btn-batch-dismiss {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #b5a4af;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-batch-dismiss:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}

/* Custom Checkbox Design for Admin Table & Cards */
.batch-select-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  background: rgba(18, 14, 24, 0.7);
  cursor: pointer;
  position: relative;
  transition: all 0.18s ease;
  display: inline-block;
  vertical-align: middle;
  outline: none;
}

.batch-select-checkbox:hover {
  border-color: #f3d790;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
  transform: scale(1.05);
}

.batch-select-checkbox:checked {
  background: linear-gradient(135deg, #e5c365, #aa820a);
  border-color: #fcedbb;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.batch-select-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 800;
  color: #0b0a10;
  line-height: 1;
}

/* Selected Row & Card Visual Highlighting */
.admin-data-table tr.is-selected {
  background: rgba(212, 175, 55, 0.08) !important;
}

.admin-data-table tr.is-selected td {
  border-top-color: rgba(212, 175, 55, 0.35);
  border-bottom-color: rgba(212, 175, 55, 0.35);
}

.admin-mobile-card.is-selected {
  border-color: rgba(212, 175, 55, 0.6) !important;
  background: linear-gradient(135deg, rgba(32, 26, 42, 0.95), rgba(20, 16, 28, 0.95)) !important;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.18) !important;
}

/* Media Vault Photo Card Selection */
.vault-photo-card {
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.vault-photo-card.is-selected {
  border-color: rgba(212, 175, 55, 0.85) !important;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.45) !important;
  transform: translateY(-2px);
}

.photo-select-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 8;
  background: rgba(14, 12, 18, 0.82);
  backdrop-filter: blur(10px);
  padding: 5px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.btn-vault-action-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
  color: #f3d790;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-vault-action-tool:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-1px);
}

/* Responsive Floating Dock for Tablets & Mobile */
@media (max-width: 860px) {
  .admin-floating-batch-bar {
    bottom: 12px;
    left: 10px;
    right: 10px;
    transform: none;
    max-width: none;
    width: calc(100% - 20px);
    animation: batchSlideUpMobile 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes batchSlideUpMobile {
    from {
      opacity: 0;
      transform: translateY(28px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .batch-bar-inner {
    border-radius: 16px;
    padding: 0.55rem 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .batch-bar-inner::-webkit-scrollbar {
    display: none;
  }

  .batch-bar-info {
    font-size: 0.78rem;
    gap: 0.35rem;
  }

  .btn-batch-action {
    padding: 0.42rem 0.7rem;
    font-size: 0.78rem;
  }
}

/* --- Modal Backdrop Leak Prevention --- */
.modal-backdrop:not(.active) {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.modal-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  z-index: 9999 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* ==========================================================================
   ATELIER ADMIN: VERTICAL LEFT SIDEBAR LAYOUT
   ========================================================================== */
.admin-dashboard-app {
  display: flex !important;
  min-height: 100vh;
  background: var(--bg-main, #070709);
  color: var(--text-main, #f8f7f4);
}

.admin-left-sidebar {
  width: 280px;
  min-width: 280px;
  background: linear-gradient(180deg, #100b14 0%, #0a060d 100%);
  border-right: 1px solid rgba(212, 175, 55, 0.16);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-brand-header {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-brand-header .brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.sidebar-brand-header .brand-name {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  display: block;
}

.sidebar-brand-header .brand-sub {
  font-size: 0.78rem;
  color: #d4af37;
  font-weight: 500;
  display: block;
  letter-spacing: 0.05em;
}

.sidebar-brand-header .admin-badge-fleet {
  align-self: flex-start;
  font-size: 0.68rem;
}

/* Sidebar Navigation Items */
.sidebar-nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.2) transparent;
}

.sidebar-nav-menu::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav-menu::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.2);
  border-radius: 4px;
}

.sidebar-nav-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(243, 215, 144, 0.5);
  padding: 0.85rem 0.65rem 0.35rem;
}

.admin-left-sidebar .nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #c9b4c0;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.admin-left-sidebar .nav-tab-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  color: #f3d790;
  border-color: rgba(212, 175, 55, 0.15);
  transform: translateX(3px);
}

.admin-left-sidebar .nav-tab-btn.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.05) 100%);
  color: #f3d790;
  font-weight: 600;
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: inset 3px 0 0 #d4af37, 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-left-sidebar .nav-tab-btn .nav-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.admin-left-sidebar .nav-tab-btn .nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-left-sidebar .nav-tab-btn .nav-counter {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #c9b4c0;
  font-weight: 600;
}

.admin-left-sidebar .nav-tab-btn.active .nav-counter {
  background: rgba(212, 175, 55, 0.25);
  color: #f3d790;
}

.admin-left-sidebar .nav-tab-btn .nav-badge-new {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #aa820a);
  color: #000;
  font-weight: 700;
}

/* Sidebar Footer */
.sidebar-footer-controls {
  padding: 1rem 0.85rem;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: #f3d790;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f8f7f4;
}

.sidebar-user-role {
  font-size: 0.68rem;
  color: var(--text-muted, #9c9aa8);
}

.sidebar-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.4rem;
}

.btn-sidebar-action {
  padding: 0.45rem 0.5rem;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c9b4c0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-sidebar-action:hover {
  background: rgba(212, 175, 55, 0.12);
  color: #f3d790;
  border-color: rgba(212, 175, 55, 0.3);
}

.btn-sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Right Main Workspace Wrap */
.admin-workspace-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: calc(100% - 280px);
}

.admin-mobile-topbar {
  display: none;
}

.admin-workspace-wrap .admin-main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .admin-left-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    z-index: 1200;
  }

  .admin-left-sidebar.active {
    transform: translateX(0);
  }

  .admin-workspace-wrap {
    width: 100%;
  }

  .admin-workspace-wrap .admin-main {
    padding: 1.25rem 0.85rem 4rem;
  }

  .admin-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: #100b14;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    position: sticky;
    top: 0;
    z-index: 800;
  }

  .mobile-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: #f3d790;
  }
}

/* ==========================================================================
   ATELIER FOOTER ARCHITECT: LUXURY EDITOR & INTERACTIVE SIMULATOR
   ========================================================================== */

/* 1. Header & Sub-Nav Pills */
.atelier-hero-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(30, 20, 36, 0.8) 0%, rgba(16, 11, 20, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(212, 175, 55, 0.2);
}

.atelier-subnav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.5rem;
  background: rgba(14, 9, 18, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 10px;
  z-index: 100;
}

.atelier-nav-pill {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c9b4c0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.atelier-nav-pill:hover {
  background: rgba(212, 175, 55, 0.08);
  color: #f3d790;
  border-color: rgba(212, 175, 55, 0.2);
}

.atelier-nav-pill.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.08));
  color: #f3d790;
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* 2. Grid & Cards */
.atelier-architect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

@media (max-width: 1080px) {
  .atelier-architect-grid {
    grid-template-columns: 1fr;
  }
}

.atelier-card {
  background: linear-gradient(145deg, rgba(26, 18, 30, 0.78) 0%, rgba(14, 10, 17, 0.94) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(212, 175, 55, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.atelier-card:hover {
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(212, 175, 55, 0.4);
}

.atelier-card.full-width {
  grid-column: 1 / -1;
}

.atelier-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.atelier-card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.atelier-card-title-wrap {
  flex: 1;
}

.atelier-card-title {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff4f6;
  margin: 0 0 0.2rem 0;
  letter-spacing: -0.01em;
}

.atelier-card-sub {
  font-size: 0.78rem;
  color: #c9b4c0;
  margin: 0;
  line-height: 1.4;
}

/* 3. Inputs & Field Groups */
.atelier-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.atelier-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .atelier-field-row {
    grid-template-columns: 1fr;
  }
}

.atelier-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f3d790;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.atelier-label-meta {
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted, #9c9aa8);
}

.atelier-input,
.atelier-textarea {
  width: 100%;
  background: rgba(8, 5, 10, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 9px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body, system-ui, -apple-system, sans-serif);
  font-size: 0.88rem;
  color: #f8f7f4;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.atelier-input:focus,
.atelier-textarea:focus {
  border-color: #d4af37;
  background: rgba(14, 8, 18, 0.95);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.atelier-textarea {
  line-height: 1.55;
  resize: vertical;
}

/* 4. Quick Presets Strip */
.quick-presets-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.quick-preset-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
}

.btn-preset-chip {
  padding: 0.25rem 0.65rem;
  font-size: 0.74rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: #f3d790;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-preset-chip:hover {
  background: rgba(212, 175, 55, 0.22);
  color: #fff;
  border-color: #d4af37;
  transform: translateY(-1px);
}

/* 5. Trust Chips Editable Grid */
.atelier-chips-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-chip-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.footer-chip-row:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.footer-chip-row .footer-chip-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f8f7f4;
  font-size: 0.85rem;
  outline: none;
}

.footer-chip-row .btn-del-chip {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.18s ease;
}

.footer-chip-row .btn-del-chip:hover {
  background: rgba(239, 68, 68, 0.28);
  color: #fff;
}

/* 6. Link Cardlets */
.atelier-links-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link-edit-row {
  display: grid;
  grid-template-columns: 36px 1.5fr 2fr 1fr 100px 32px;
  gap: 0.5rem;
  align-items: center;
  background: rgba(10, 6, 12, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.16);
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .footer-link-edit-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
}

.footer-link-edit-row:hover {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(16, 10, 20, 0.8);
}

.link-row-index {
  font-size: 0.72rem;
  font-weight: 700;
  color: #d4af37;
  text-align: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 4px;
  padding: 2px 0;
}

.footer-link-edit-row .btn-del-link {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.18s ease;
}

.footer-link-edit-row .btn-del-link:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

/* 7. Live Quote Preview Banner */
.atelier-quote-preview-box {
  margin-top: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(179, 86, 107, 0.08) 100%);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  text-align: center;
}

.atelier-quote-preview-text {
  font-family: var(--font-hand, "Caveat", cursive);
  font-size: 1.6rem;
  color: #f3d790;
  line-height: 1.35;
  margin: 0;
}

/* 8. Interactive Live Simulator Box */
.atelier-simulator-wrapper {
  background: #000;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
}

.atelier-simulator-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: #140d18;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.simulator-title-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f3d790;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.simulator-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-sim-toggle {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c9b4c0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-sim-toggle.active {
  background: #d4af37;
  color: #000;
  font-weight: 700;
  border-color: #d4af37;
}

.atelier-simulator-canvas {
  padding: 2.5rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 auto;
}

.atelier-simulator-canvas.mode-mobile {
  max-width: 410px;
  border-left: 1px dashed rgba(212, 175, 55, 0.3);
  border-right: 1px dashed rgba(212, 175, 55, 0.3);
  padding: 1.5rem 0.75rem;
}

/* 9. Floating Sticky Actions Bar */
.atelier-floating-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(16, 10, 20, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  margin-top: 1.5rem;
}

.atelier-floating-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #c9b4c0;
}

.atelier-btn-save-glow {
  background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%) !important;
  color: #000 !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 0.75rem 1.6rem !important;
  font-size: 0.92rem !important;
  border-radius: 9px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.45) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.atelier-btn-save-glow:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.65) !important;
}

@media (max-width: 768px) {
  .footer-link-edit-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .footer-link-edit-row .link-row-index {
    grid-column: 1 / -1;
    text-align: left;
    padding-left: 0.5rem;
  }
}

@media (max-width: 480px) {
  .footer-link-edit-row {
    grid-template-columns: 1fr;
  }
  .atelier-hero-bar {
    padding: 1.15rem 1rem !important;
    gap: 1rem !important;
  }
  .atelier-card {
    padding: 1.25rem 0.95rem !important;
  }
  .atelier-subnav-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0.4rem;
  }
  .atelier-nav-pill {
    flex-shrink: 0;
    font-size: 0.76rem;
    padding: 0.4rem 0.75rem;
  }
}

/* ==========================================================================
   VIRAL K-FACTOR RETURN THE LOVE & DUO PHOTOBOOTH BUTTONS
   ========================================================================== */
.return-the-love-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.btn-create-surprise {
  background: linear-gradient(135deg, var(--primary, #b3566b), #8e3a4e) !important;
  color: #ffffff !important;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 0.84rem !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.62rem 1.3rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(179, 86, 107, 0.35);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  line-height: 1.2;
}

.btn-create-surprise:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(179, 86, 107, 0.5);
  color: #ffffff !important;
  filter: brightness(1.08);
}

.btn-create-surprise:active {
  transform: translateY(0);
}

.btn-booth-secondary {
  background: var(--bg-card, #ffffff) !important;
  color: var(--primary, #b3566b) !important;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 0.84rem !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.62rem 1.3rem !important;
  border-radius: 999px !important;
  border: 1.5px solid var(--primary, #b3566b) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  line-height: 1.2;
}

.btn-booth-secondary:hover {
  background: var(--primary, #b3566b) !important;
  color: #ffffff !important;
  border-color: var(--primary, #b3566b) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(179, 86, 107, 0.4);
}

.btn-booth-secondary:active {
  transform: translateY(0);
}

[data-theme="midnight"] .btn-booth-secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f7e7ce !important;
  border: 1.5px solid rgba(212, 175, 55, 0.6) !important;
}

[data-theme="midnight"] .btn-booth-secondary:hover {
  background: #d4af37 !important;
  color: #120a10 !important;
  border-color: #d4af37 !important;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}






