/* ===================================================
   TAROT MASTER - BENTO MOBILE APP DESIGN SYSTEM
   Modern, High-Contrast, Chunky Tactile Pills & Bento Cards
   Matching Reference Aesthetic (Coral, Periwinkle, Sunny Yellow)
   =================================================== */

/* 1. CSS VARIABLES & BENTO DESIGN TOKENS (SIGNATURE MIDNIGHT COSMIC VELVET) */
:root,
html,
html[data-theme="midnight-cosmic"],
html[data-theme="dark"],
html[data-theme="light"] {
  /* Canvas & Surfaces (Deep Midnight Navy & Charcoal Mystic Abyss) */
  --canvas-bg: #070a14;
  --canvas-bg-radial: radial-gradient(ellipse at 50% 0%, #111728 0%, #0a0e1c 50%, #060912 100%);
  --bento-card-bg: rgba(11, 15, 26, 0.74);
  --bento-card-inset: rgba(7, 10, 18, 0.78);
  --bento-card-hover: rgba(16, 22, 38, 0.88);
  --bento-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 1px rgba(197, 160, 89, 0.2);

  /* Accent Colors (Muted Gold & Subtle Holographic Shimmer) */
  --coral-primary: #c5a059;
  --coral-hover: #b8924b;
  --coral-glow: rgba(197, 160, 89, 0.25);

  --accent-gold: #c5a059;
  --accent-gold-hover: #dfb76c;
  --accent-gold-muted: rgba(197, 160, 89, 0.75);
  --accent-gold-glow: rgba(197, 160, 89, 0.22);
  --gold-foil: linear-gradient(135deg, #e6c887 0%, #c5a059 50%, #8e6c2f 100%);

  /* Subtle Iridescent / Holographic Sheen */
  --holo-shimmer: linear-gradient(135deg, rgba(197, 160, 89, 0.4) 0%, rgba(168, 85, 247, 0.25) 35%, rgba(56, 189, 248, 0.25) 70%, rgba(197, 160, 89, 0.4) 100%);
  --holo-border: linear-gradient(135deg, rgba(197, 160, 89, 0.55), rgba(192, 132, 252, 0.35), rgba(56, 189, 248, 0.4), rgba(197, 160, 89, 0.55));
  --holo-glow: 0 0 20px rgba(197, 160, 89, 0.18), 0 0 35px rgba(168, 85, 247, 0.12);

  --periwinkle-primary: #818cf8;
  --periwinkle-dark: #121528;
  --periwinkle-glow: rgba(129, 140, 248, 0.2);

  --amethyst-primary: #a855f7;
  --amethyst-glow: rgba(168, 85, 247, 0.22);

  --yellow-primary: #c5a059;
  --yellow-dark: #3a2a0d;

  --mint-primary: #34d399;
  --rose-primary: #f87171;

  /* Text Colors (High-Contrast Ivory, Starlight White & Soft Stardust) */
  --text-main: #f8fafc;
  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-dark: #070a14;

  /* Borders & Radii (Delicate Muted Gold Glassmorphism) */
  --border-subtle: rgba(197, 160, 89, 0.16);
  --border-medium: rgba(197, 160, 89, 0.28);
  --border-glow: rgba(197, 160, 89, 0.4);

  --radius-card: 24px;
  --radius-inner: 16px;
  --radius-pill: 9999px;

  /* Inputs & Modals (Frosted Glassmorphic Surfaces) */
  --input-bg: rgba(7, 10, 18, 0.85);
  --input-border: rgba(197, 160, 89, 0.2);
  --modal-bg: rgba(11, 15, 26, 0.88);
  --modal-backdrop: rgba(4, 6, 12, 0.88);

  /* Navigation */
  --nav-bg: rgba(9, 13, 23, 0.92);
  --nav-pill-active-bg: linear-gradient(135deg, #c5a059 0%, #9e7e46 100%);
  --nav-pill-active-text: #060912;
  --nav-pill-hover: rgba(255, 255, 255, 0.08);

  /* Paper Card / Flipbook Sanctuary */
  --paper-bg: rgba(11, 15, 26, 0.82);
  --paper-border: rgba(197, 160, 89, 0.22);
  --paper-text: #f8fafc;

  /* Typography: IBM Plex Sans Thai — Clean, Minimal, Native Thai */
  --font-main: 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 2. BASE & RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--canvas-bg);
  background-image: var(--canvas-bg-radial);
  color: var(--text-main);
  line-height: 1.62;
  letter-spacing: -0.01em;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0;
  margin: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Ambient Ethereal Nebula Smoke (Slow Drifting Cosmic Mist) */
body::before {
  content: '';
  position: fixed;
  inset: -15%;
  pointer-events: none;
  background: 
    radial-gradient(ellipse 650px 500px at 15% 25%, rgba(168, 85, 247, 0.09), transparent 70%),
    radial-gradient(ellipse 750px 550px at 85% 75%, rgba(14, 165, 233, 0.07), transparent 70%),
    radial-gradient(ellipse 550px 450px at 50% 50%, rgba(197, 160, 89, 0.06), transparent 70%),
    radial-gradient(ellipse 650px 500px at 70% 20%, rgba(129, 140, 248, 0.08), transparent 70%);
  filter: blur(45px);
  opacity: 0.85;
  z-index: 0;
  animation: cosmicSmokeDrift 40s ease-in-out infinite alternate;
}

/* Ambient Floating Stardust & Shimmering Celestial Particles */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(230, 200, 135, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 88% 22%, rgba(230, 200, 135, 0.45), transparent),
    radial-gradient(2px 2px at 48% 38%, rgba(192, 132, 252, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 28% 72%, rgba(230, 200, 135, 0.4), transparent),
    radial-gradient(2px 2px at 78% 82%, rgba(56, 189, 248, 0.4), transparent),
    radial-gradient(1px 1px at 32% 14%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 92% 64%, rgba(230, 200, 135, 0.45), transparent);
  background-size: 450px 450px;
  opacity: 0.75;
  z-index: 0;
  animation: ambientStardustFloat 50s linear infinite;
}

@keyframes cosmicSmokeDrift {
  0% { transform: scale(1) translate(0, 0) rotate(0deg); }
  50% { transform: scale(1.06) translate(-2%, 2%) rotate(1.5deg); }
  100% { transform: scale(1.02) translate(2%, -1.5%) rotate(-1deg); }
}

@keyframes ambientStardustFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-450px); }
}

/* ===================================================
   3. APP SHELL & ERGONOMIC LEFT SIDEBAR NAVIGATION
   =================================================== */

.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1;
  background-color: var(--canvas-bg);
  background-image: var(--canvas-bg-radial);
}

/* Sidebar Backdrop (for Mobile Drawer) */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 199;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.sidebar-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Left Sidebar Navigation (Floating Aesthetic - Permanent Float) */
.app-sidebar {
  width: 270px;
  height: calc(100vh - 2rem);
  position: fixed;
  top: 1rem;
  left: 1.25rem;
  margin: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: rgba(21, 24, 34, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 1.25rem 1rem 1.25rem;
  overflow-y: auto;
  z-index: 200;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
}

.app-sidebar::-webkit-scrollbar {
  width: 4px;
}
.app-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

/* 1. Sidebar Brand Row */
.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.25rem;
}

.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-group .brand-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bento-card-inset);
  border: 1px solid var(--border-subtle);
  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);
}

.brand-logo-group .brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-white);
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.brand-dot-life {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.brand-logo-group .brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: #fbbf24;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: block;
  opacity: 0.9;
}

.sidebar-collapse-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}
.sidebar-collapse-btn:hover {
  background: var(--bento-card-hover);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.2);
}

/* 2. User Profile Capsule */
.sidebar-user-capsule {
  background: var(--bento-card-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar-user-capsule:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: var(--bento-card-hover);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-capsule-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.capsule-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

.capsule-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.capsule-role {
  font-size: 0.68rem;
  font-weight: 600;
  color: #f59e0b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-capsule-stats {
  display: flex;
  gap: 0.4rem;
}

.capsule-stat-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.3rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}
.capsule-stat-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.capsule-stat-pill.coin-pill {
  color: #fbbf24;
}
.capsule-stat-pill.streak-pill {
  color: #f97316;
}
.pill-add-hint {
  font-size: 0.85rem;
  color: #10b981;
  margin-left: 0.15rem;
  font-weight: 800;
}

/* 3. Navigation Group */
.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.sidebar-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.2rem;
}

.sidebar-nav-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.sidebar-nav-item:hover {
  background: var(--bento-card-hover);
  color: var(--text-white);
  transform: translateX(2px);
}

.sidebar-nav-item.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(245, 158, 11, 0.08));
  color: #ffffff;
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.08);
}
.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #d4af37;
}

.nav-item-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.nav-item-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.nav-item-tag.free {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.nav-item-tag.paid {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.nav-count-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: #d4af37;
  color: #000;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

/* 4. Sidebar Bottom Actions */
.sidebar-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1rem;
}

.sidebar-util-btn {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar-util-btn:hover {
  background: var(--bento-card-hover);
  color: var(--text-white);
  border-color: var(--border-subtle);
}

.sidebar-util-btn.admin-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.25));
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-weight: 700;
}
.sidebar-util-btn.admin-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.4));
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.sidebar-toggles-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.sidebar-mini-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  background: var(--bento-card-inset);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar-mini-toggle:hover {
  background: var(--bento-card-hover);
  color: var(--text-white);
}

/* Collapsed Sidebar Mode (Desktop Focus Mode) */
.app-sidebar.collapsed {
  width: 78px;
  padding: 1.25rem 0.5rem 1.5rem;
}
.app-sidebar.collapsed .brand-info,
.app-sidebar.collapsed .capsule-info,
.app-sidebar.collapsed .user-capsule-stats,
.app-sidebar.collapsed .sidebar-group-label,
.app-sidebar.collapsed .nav-item-label,
.app-sidebar.collapsed .nav-item-tag,
.app-sidebar.collapsed .util-label,
.app-sidebar.collapsed .mini-label {
  display: none !important;
}
.app-sidebar.collapsed .sidebar-collapse-btn .collapse-icon {
  transform: rotate(180deg);
}
.app-sidebar.collapsed .sidebar-brand-row {
  justify-content: center;
}
.app-sidebar.collapsed .sidebar-user-capsule {
  padding: 0.4rem;
  display: flex;
  justify-content: center;
}
.app-sidebar.collapsed .sidebar-nav-item {
  justify-content: center;
  padding: 0.6rem 0;
}
.app-sidebar.collapsed .sidebar-util-btn {
  justify-content: center;
  padding: 0.5rem 0;
}

/* Main App Layout */
.app-main-layout {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  margin-left: 295px;
  transition: margin-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-sidebar.collapsed ~ .app-main-layout {
  margin-left: 100px;
}

/* Mobile Header: Visible only on < 860px */
.mobile-top-header {
  display: none;
}

@media (max-width: 859px) {
  .app-main-layout {
    margin-left: 0 !important;
  }

  .app-sidebar {
    position: fixed;
    top: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    height: calc(100vh - 1.5rem);
    margin: 0;
    transform: translateX(calc(-100% - 1.5rem));
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12);
  }
  .app-sidebar.drawer-open {
    transform: translateX(0);
  }
  .sidebar-collapse-btn {
    display: none;
  }

  .mobile-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(15, 17, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
  }

  .mobile-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .mobile-hamburger-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bento-card-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-white);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  .brand-avatar-sm {
    font-size: 1.15rem;
  }
  .mobile-brand-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-white);
  }

  .mobile-header-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .bento-bottom-nav {
    display: flex !important;
  }
}

@media (min-width: 860px) {
  .bento-bottom-nav {
    display: none !important;
  }
}

/* Main Content Canvas (Clean, Expansive, Minimalist) */
.app-content-canvas {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
  flex: 1;
}

@media (max-width: 859px) {
  .app-content-canvas {
    padding: 1rem 0.75rem 6.5rem;
  }
}

/* 3.1 BENTO MAIN & TAB SYSTEM */
.bento-main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tab-content {
  display: none !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tab-content.active {
  display: block !important;
  animation: fadeInTab 0.22s ease-out;
}

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

.bento-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bento-card-inset);
  border: 1px solid var(--border-subtle);
  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.15);
  transition: all 0.2s ease;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-white);
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--coral-primary);
  letter-spacing: 0.3px;
  display: block;
}

.bento-header-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.bento-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bento-card-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bento-icon-btn:hover {
  background: var(--bento-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

/* Theme Switcher Button Icon Animation */
.theme-toggle-btn {
  position: relative;
  overflow: hidden;
}
.theme-toggle-btn span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-toggle-btn:hover span {
  transform: rotate(20deg) scale(1.15);
}

/* 5. TOP SEGMENTED NAVIGATION TABS (Categorized Free vs Paid) */
.bento-nav-tabs {
  background: var(--nav-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 5px;
  display: flex;
  gap: 5px;
  margin-bottom: 1.25rem;
  box-shadow: var(--bento-shadow);
  overflow-x: auto;
  scrollbar-width: none;
}
.bento-nav-tabs::-webkit-scrollbar {
  display: none;
}

.bento-nav-pill {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.6rem 0.65rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 42px;
  white-space: nowrap;
}

.bento-nav-pill:hover {
  color: var(--text-white);
  background: var(--nav-pill-hover);
}

.bento-nav-pill.active {
  background: var(--nav-pill-active-bg);
  color: var(--nav-pill-active-text);
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

/* Nav Category Badges */
.nav-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  letter-spacing: 0.2px;
  display: inline-block;
  line-height: 1.2;
}
.nav-tag.free {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.nav-tag.paid {
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.bento-nav-pill.active .nav-tag.free {
  background: rgba(16, 185, 129, 0.25);
  color: #059669;
}
.bento-nav-pill.active .nav-tag.paid {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

/* 6. BENTO CARDS ARCHITECTURE (28px Rounded) */
.bento-card {
  background: var(--bento-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.eyebrow-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--coral-primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.card-headline {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

/* 7. CHUNKY TACTILE PILL BUTTONS ("แก้ปุ่มเห่ย") */
.btn-coral-pill {
  width: 100%;
  background: var(--coral-primary);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px var(--coral-glow);
  min-height: 52px;
  text-decoration: none;
  user-select: none;
}

.btn-coral-pill:hover {
  background: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 100, 72, 0.5);
}

.btn-coral-pill:active {
  transform: scale(0.97);
}

.btn-coral-pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(80%);
}

.btn-coral-pill.btn-xl {
  padding: 1.1rem 2rem;
  font-size: 1.12rem;
}

.btn-coral-pill.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.02rem;
}

.btn-coral-pill.btn-md {
  width: auto;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
}

.btn-coral-pill.btn-sm {
  width: auto;
  min-height: 38px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
}

/* Secondary Tactile Pill Buttons */
.btn-secondary-pill {
  width: auto;
  background: var(--bento-card-inset);
  color: var(--text-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  text-decoration: none;
  min-height: 46px;
}

.btn-secondary-pill:hover {
  background: var(--bento-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.btn-secondary-pill:active {
  transform: scale(0.98);
}

.btn-block {
  width: 100% !important;
  display: flex;
}

/* Streak Orange Flame Buttons */
.streak-btn,
#dailyTabStreakCheckinBtn,
#modalStreakCheckinBtn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(249, 115, 22, 0.4) !important;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35) !important;
  font-weight: 800;
  min-height: 48px;
}

.streak-btn:hover,
#dailyTabStreakCheckinBtn:hover,
#modalStreakCheckinBtn:hover {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.55) !important;
}

/* Free Daily Guidance Emerald CTA Button */
.free-daily-cta-btn {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35) !important;
  border: 1px solid rgba(52, 211, 153, 0.3) !important;
  font-weight: 800;
}

.free-daily-cta-btn:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.5) !important;
}

/* Secondary Small Pill Buttons */
.pill-btn-sm {
  background: var(--bento-card-inset);
  color: var(--text-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.45rem 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 36px;
  user-select: none;
  text-decoration: none;
}

.pill-btn-sm:hover {
  background: var(--bento-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

}

/* Gold Pill Buttons */
.btn-gold,
.pill-btn-sm.btn-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.28)) !important;
  color: #fbbf24 !important;
  border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15) !important;
  font-weight: 700;
}

.btn-gold:hover,
.pill-btn-sm.btn-gold:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32), rgba(217, 119, 6, 0.42)) !important;
  border-color: #fbbf24 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3) !important;
}

/* Purple Shuffle Pill Button */
.pill-btn-shuffle {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #d8b4fe !important;
  border: 1.5px solid rgba(168, 85, 247, 0.35) !important;
}

.pill-btn-shuffle:hover {
  background: rgba(168, 85, 247, 0.3) !important;
  border-color: #c084fc !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25) !important;
}

/* Quick Topic Pills */
.quick-topic-btn {
  background: var(--bento-card-inset);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-main);
  font-weight: 700;
}

.quick-topic-btn:hover {
  border-color: var(--coral-primary);
  color: var(--text-white);
  background: rgba(255, 100, 72, 0.12);
  transform: translateY(-1px);
}

/* 8. INPUTS & SELECTS AS DARK PILLS */
.bento-field-group {
  margin-bottom: 1rem;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.45rem;
}

.input-pill-wrapper {
  position: relative;
  width: 100%;
}

.input-pill-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.7;
  pointer-events: none;
}

.bento-input-pill {
  width: 100%;
  background: var(--bento-card-inset);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 0.95rem 1.4rem;
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s;
}

.input-pill-wrapper .bento-input-pill {
  padding-left: 2.8rem;
}

.input-pill-wrapper .bento-input-pill.with-voice {
  padding-right: 3.4rem;
}

.bento-input-pill:focus {
  border-color: var(--coral-primary);
  background: #171a22;
  box-shadow: 0 0 0 3px rgba(255, 100, 72, 0.2);
}

/* =================================================== */
/* CATEGORIZED QUICK PROMPTS SYSTEM                    */
/* =================================================== */
.quick-prompts-container {
  background: rgba(14, 20, 36, 0.7);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.quick-prompts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.quick-prompts-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-prompts-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.quick-prompts-hint {
  font-size: 0.75rem;
  color: #94a3b8;
}

.quick-surprise-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.18), rgba(245, 158, 11, 0.12));
  border: 1px solid rgba(197, 160, 89, 0.4);
  color: #f3e5ab;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.quick-surprise-btn:hover {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.32), rgba(245, 158, 11, 0.24));
  border-color: #f3e5ab;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
}

.quick-category-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
  scrollbar-width: none;
}
.quick-category-tabs::-webkit-scrollbar {
  display: none;
}

.quick-cat-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.quick-cat-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.quick-cat-tab.active {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.25), rgba(180, 140, 60, 0.15));
  border-color: rgba(197, 160, 89, 0.6);
  color: #f3e5ab;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.15);
}

.quick-questions-wrapper {
  display: flex;
  flex-direction: column;
}

.quick-questions-pane {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.5rem;
  animation: fadeIn 0.25s ease-out;
}

.quick-question-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  color: #cbd5e1;
  font-family: inherit;
  width: 100%;
}

.quick-question-chip:hover {
  background: rgba(197, 160, 89, 0.1);
  border-color: rgba(197, 160, 89, 0.4);
  color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.quick-question-chip:active {
  transform: translateY(0);
}

.quick-question-chip.selected {
  background: rgba(197, 160, 89, 0.18);
  border-color: #f3e5ab;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.3);
}

.chip-q-text {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.chip-spread-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #f3e5ab;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.25);
  padding: 0.12rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.2px;
}

/* =================================================== */
/* VOICE INPUT SYSTEM & MICROPHONE BUTTON              */
/* =================================================== */
.voice-hint-badge {
  font-size: 0.75rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.voice-input-btn {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1rem;
  z-index: 3;
}

.voice-input-btn:hover {
  background: rgba(197, 160, 89, 0.22);
  border-color: rgba(197, 160, 89, 0.55);
  transform: translateY(-50%) scale(1.08);
}

.voice-input-btn.is-listening {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #fca5a5;
  color: #ffffff;
  animation: pulseMicBtn 1.5s infinite;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.65);
}

@keyframes pulseMicBtn {
  0% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  60% {
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.voice-status-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
  animation: fadeIn 0.25s ease-out;
}

.voice-status-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #ef4444;
  display: inline-block;
  animation: pulseDot 1.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 8px #ef4444;
  }
}

.voice-status-msg {
  flex: 1;
  font-size: 0.8rem;
  color: #fee2e2;
}

.voice-status-stop-btn {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ffffff;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.voice-status-stop-btn:hover {
  background: rgba(239, 68, 68, 0.45);
}

/* =================================================== */
/* GLOBAL MODERN MYSTIC TOAST NOTIFICATIONS            */
/* =================================================== */
#toastContainer {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
  max-width: 360px;
  width: calc(100% - 2.5rem);
}

.app-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(197, 160, 89, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.app-toast.success {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(34, 197, 94, 0.2);
}

.app-toast.error {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(239, 68, 68, 0.2);
}

.app-toast.info {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.2);
}

.bento-select-pill {
  width: 100%;
  background: var(--bento-card-inset) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1.25rem center;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 0.95rem 3rem 0.95rem 1.4rem;
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.bento-select-pill:focus {
  border-color: var(--coral-primary);
  background-color: #171a22;
  box-shadow: 0 0 0 3px rgba(255, 100, 72, 0.2);
}

.question-closed-hint {
  margin-top: 0.6rem;
  background: rgba(254, 200, 75, 0.1);
  border-left: 3px solid var(--yellow-primary);
  border-radius: 0 12px 12px 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  color: #fef08a;
  line-height: 1.5;
}

/* Bento Checkbox & Toggle */
.bento-toggle-row {
  margin: 1.2rem 0;
}

.bento-checkbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.bento-checkbox input {
  display: none;
}

.checkbox-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bento-card-inset);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: transparent;
  transition: all 0.18s;
  flex-shrink: 0;
}

.bento-checkbox input:checked + .checkbox-box {
  background: var(--coral-primary);
  border-color: var(--coral-primary);
  color: #ffffff;
}

.checkbox-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* ===================================================
   DIVINATION 3-STEP WIZARD SYSTEM
   =================================================== */
.wizard-stepper-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bento-card-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  flex-wrap: wrap;
}

.wizard-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.wizard-step-chip .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  transition: all 0.25s ease;
}

.wizard-step-chip:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.wizard-step-chip.active {
  background: var(--coral-primary);
  border-color: var(--coral-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--coral-glow);
}

.wizard-step-chip.active .step-num {
  background: #ffffff;
  color: var(--coral-primary);
}

.wizard-step-chip.completed {
  color: var(--mint-primary);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.wizard-step-chip.completed .step-num {
  background: var(--mint-primary);
  color: #ffffff;
}

.wizard-step-connector {
  width: 18px;
  height: 2px;
  background: var(--border-subtle);
  border-radius: 2px;
}

.wizard-step-pane {
  animation: fadeInStep 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step-pane.hidden {
  display: none !important;
}

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

/* Step 2 Summary Bar */
.step-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bento-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.step-summary-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  min-width: 0;
}

.step-summary-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--coral-primary);
  background: rgba(255, 100, 72, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.step-summary-q {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white);
  max-width: 450px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-summary-spread {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.step-edit-btn {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Step 3 Top Toolbar */
.step3-top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

/* 9. DECK RIBBON & PICKER CARD */
.card-deck {
  background: #15171f;
  padding: 1.25rem 1rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  min-width: 0;
}

.deck-header-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

@media (min-width: 500px) {
  .deck-header-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.deck-status-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral-primary);
  box-shadow: 0 0 10px var(--coral-primary);
  animation: pulseDot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.deck-status-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
}

.pos-highlight {
  color: var(--yellow-primary);
  font-weight: 800;
}

.deck-action-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Mobile Live Slots Tracker (Horizontal Chips) */
.mobile-slots-tracker {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.35rem 0.2rem;
  margin-bottom: 0.65rem;
  scrollbar-width: none;
}
.mobile-slots-tracker::-webkit-scrollbar {
  display: none;
}

.slot-tracker-chip {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #1d202c;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.slot-tracker-chip.active {
  border-color: var(--coral-primary);
  background: rgba(255, 100, 72, 0.18);
  color: var(--coral-primary);
  box-shadow: 0 0 12px rgba(255, 100, 72, 0.3);
}

.slot-tracker-chip.filled {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.12);
  color: var(--mint-primary);
}

/* Deck View Switcher (Wheel vs Matrix) */
.deck-view-switcher {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.deck-view-pill {
  background: #1e2230;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.deck-view-pill:hover {
  color: var(--text-white);
  background: #272d3e;
}

.deck-view-pill.active {
  background: var(--coral-primary);
  border-color: var(--coral-primary);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 12px var(--coral-glow);
}

.deck-scroll-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ===================================================
   TAROT DUAL SEMICIRCLE FAN (2 ROWS / 2 TIERS)
   =================================================== */
.deck-wheel-wrapper {
  background: radial-gradient(circle at 50% 95%, #171b29 0%, #0d0f15 80%);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 1rem 0.5rem 1.25rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.deck-wheel-container {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 360px;
  margin: 0.5rem auto 0;
  --arc-outer-radius: 225px;
  --arc-inner-radius: 135px;
  --card-w: 36px;
  --card-h: 62px;
}

@media (min-width: 768px) {
  .deck-wheel-container {
    max-width: 700px;
    height: 390px;
    --arc-outer-radius: 250px;
    --arc-inner-radius: 155px;
    --card-w: 40px;
    --card-h: 68px;
  }
}

@media (max-width: 520px) {
  .deck-wheel-container {
    max-width: 100%;
    height: 290px;
    --arc-outer-radius: 165px;
    --arc-inner-radius: 100px;
    --card-w: 28px;
    --card-h: 48px;
  }
}

@media (max-width: 360px) {
  .deck-wheel-container {
    height: 250px;
    --arc-outer-radius: 140px;
    --arc-inner-radius: 85px;
    --card-w: 24px;
    --card-h: 42px;
  }
}

/* 78 Cards in 2 Semicircular Rows */
.wheel-fan-card {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: 7px;
  border: 1px solid rgba(197, 160, 89, 0.45);
  box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  overflow: hidden;
  transform-origin: center bottom;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.35, 1.2), box-shadow 0.2s, border-color 0.2s, opacity 0.2s;
  user-select: none;
  background: #070a14;
}

.wheel-fan-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.15) 45%, rgba(197, 160, 89, 0.3) 50%, rgba(168, 85, 247, 0.25) 55%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 2;
}

.wheel-fan-card:hover::after {
  transform: translateX(120%);
}

/* Outer Row (Top Arc) */
.wheel-fan-card.arc-outer {
  z-index: var(--row-z, 10);
  transform: translate(-50%, 0) rotate(var(--angle)) translateY(calc(-1 * var(--arc-outer-radius)));
}

/* Inner Row (Bottom Arc) */
.wheel-fan-card.arc-inner {
  z-index: var(--row-z, 35);
  transform: translate(-50%, 0) rotate(var(--angle)) translateY(calc(-1 * var(--arc-inner-radius)));
}

.wheel-fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  filter: contrast(106%) saturate(98%);
}

/* Hover & Active Card Elevation */
.wheel-fan-card.arc-outer:hover,
.wheel-fan-card.arc-outer:active {
  z-index: 100 !important;
  border-color: #dfb76c;
  box-shadow: 0 0 24px rgba(197, 160, 89, 0.45), 0 8px 25px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, 0) rotate(var(--angle)) translateY(calc(-1 * (var(--arc-outer-radius) + 26px))) scale(1.35);
}

.wheel-fan-card.arc-inner:hover,
.wheel-fan-card.arc-inner:active {
  z-index: 100 !important;
  border-color: #dfb76c;
  box-shadow: 0 0 24px rgba(197, 160, 89, 0.45), 0 8px 25px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, 0) rotate(var(--angle)) translateY(calc(-1 * (var(--arc-inner-radius) + 26px))) scale(1.35);
}

/* Picked Card State */
.wheel-fan-card.is-picked {
  opacity: 0.12;
  filter: grayscale(100%);
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.wheel-fan-card.arc-outer.is-picked {
  transform: translate(-50%, 0) rotate(var(--angle)) translateY(calc(-1 * (var(--arc-outer-radius) - 10px))) scale(0.85);
}

.wheel-fan-card.arc-inner.is-picked {
  transform: translate(-50%, 0) rotate(var(--angle)) translateY(calc(-1 * (var(--arc-inner-radius) - 10px))) scale(0.85);
}

/* Center Cosmic Hub (Oracle Core at the origin of the fan) */
.wheel-center-hub {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #1f2333 0%, #10121a 80%);
  border: 2px solid rgba(255, 100, 72, 0.35);
  box-shadow: 0 0 25px rgba(255, 100, 72, 0.2), inset 0 0 15px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 60;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.25rem;
}

.wheel-center-hub:hover {
  transform: translateX(-50%) scale(1.06);
  border-color: var(--coral-primary);
  box-shadow: 0 0 30px var(--coral-glow);
}

.wheel-center-hub .hub-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.2rem;
  animation: pulseHubIcon 2.5s infinite ease-in-out;
}

@keyframes pulseHubIcon {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); filter: drop-shadow(0 0 8px #fec84b); }
  100% { transform: scale(1); }
}

.wheel-center-hub .hub-text {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.15;
}

.wheel-center-hub .hub-sub {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--coral-primary);
  margin-top: 0.15rem;
}

/* ===================================================
   TAROT FULL MATRIX GRID (13x6 ZERO SCROLL)
   =================================================== */
.deck-grid-wrapper {
  background: var(--bento-card-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.85rem 0.6rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.deck-matrix-grid {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
}

.matrix-card {
  position: relative;
  aspect-ratio: 2 / 3.2;
  border-radius: 6px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease-out;
  background: #070a14;
}

.matrix-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.15) 45%, rgba(197, 160, 89, 0.3) 50%, rgba(168, 85, 247, 0.25) 55%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
  pointer-events: none;
}

.matrix-card:hover::after {
  transform: translateX(120%);
}

.matrix-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(106%) saturate(98%);
}

.matrix-card:hover {
  transform: translateY(-4px) scale(1.22);
  z-index: 25;
  border-color: #dfb76c;
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.4), 0 8px 20px rgba(0, 0, 0, 0.6);
}

.matrix-card.is-picked {
  opacity: 0.15;
  filter: grayscale(100%);
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.05);
}

/* 10. SPREAD SLOTS FELT MAT (Periwinkle Accent Bento Card) */
.card-spread-mat {
  background: var(--periwinkle-dark);
  border: 1.5px solid rgba(99, 102, 241, 0.4);
}

.spread-mat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  gap: 0.5rem;
}

.card-eyebrow-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--periwinkle-primary);
  display: block;
  margin-bottom: 0.2rem;
}

.spread-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
}

.completion-pill {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(99, 102, 241, 0.4);
  white-space: nowrap;
}

/* Slots Grid */
.spread-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 0.85rem;
  justify-items: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 500px) {
  .spread-slots-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1.1rem;
  }
}

.spread-slot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 120px;
}

.slot-box {
  width: 95px;
  height: 152px;
  border-radius: 14px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 500px) {
  .slot-box {
    width: 110px;
    height: 176px;
    border-radius: 16px;
  }
}

.slot-box.empty {
  border: 1.5px dashed rgba(197, 160, 89, 0.35);
  background: rgba(7, 10, 18, 0.6);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-muted);
  text-align: center;
  padding: 0.5rem;
  cursor: pointer;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.slot-box.empty:hover {
  border-color: rgba(197, 160, 89, 0.7);
  background: rgba(197, 160, 89, 0.08);
  color: #dfb76c;
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.slot-empty-icon {
  font-size: 1.5rem;
  opacity: 0.65;
  margin-bottom: 0.2rem;
  color: #c5a059;
}

.slot-empty-text {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
}

.slot-box.active-target {
  border-color: #c5a059;
  border-style: solid;
  box-shadow: 0 0 25px rgba(197, 160, 89, 0.35), inset 0 0 15px rgba(197, 160, 89, 0.15);
  background: rgba(197, 160, 89, 0.1);
  transform: scale(1.04);
}

.slot-box.filled {
  border: 1.5px solid rgba(197, 160, 89, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(197, 160, 89, 0.35);
  overflow: hidden;
  background: #060810;
  animation: cardLand 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cardLand {
  from { opacity: 0; transform: translateY(-20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(107%) saturate(98%);
  transition: transform 0.3s ease;
}

.slot-img.is-reversed {
  transform: rotate(180deg);
}

.remove-slot-card-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s;
  z-index: 10;
}

.slot-box:hover .remove-slot-card-btn,
.slot-box:active .remove-slot-card-btn {
  opacity: 1;
}

.remove-slot-card-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.15);
}

.slot-meta {
  text-align: center;
  margin-top: 0.5rem;
  width: 100%;
}

.slot-pos-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--yellow-primary);
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-card-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-orient-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  margin-top: 0.2rem;
  display: inline-block;
}
.slot-orient-tag.upright {
  background: rgba(52, 211, 153, 0.2);
  color: var(--mint-primary);
}
.slot-orient-tag.reversed {
  background: rgba(248, 113, 113, 0.2);
  color: var(--rose-primary);
}

/* 11. EXECUTIVE VERDICT BENTO CARD (MODERN MYSTIC GLASSMORPHISM) */
.executive-verdict-card {
  background: rgba(11, 15, 26, 0.82);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  color: var(--text-main);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(197, 160, 89, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.exec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.exec-badge-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exec-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
}

.exec-tag.verdict {
  background: var(--gold-foil);
  color: #070a14;
  font-weight: 800;
}

.exec-tag.prob {
  background: rgba(197, 160, 89, 0.15);
  color: #dfb76c;
  border: 1px solid rgba(197, 160, 89, 0.35);
  font-weight: 700;
}

.exec-question {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

.exec-verdict-banner {
  background: linear-gradient(145deg, rgba(20, 26, 44, 0.85) 0%, rgba(10, 14, 24, 0.95) 100%);
  border: 1.5px solid rgba(197, 160, 89, 0.45);
  border-radius: var(--radius-inner);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 0 20px rgba(197, 160, 89, 0.06);
  position: relative;
}

.exec-verdict-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #dfb76c;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.exec-verdict-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.6;
}

.exec-momentum-text {
  font-size: 0.9rem;
  color: #e6c887;
  margin-top: 0.65rem;
  font-weight: 600;
}

.exec-other-card {
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-inner);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.15rem;
}

.exec-clues-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.exec-clue-box {
  background: var(--bento-card-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-inner);
  padding: 1rem 1.15rem;
}

.exec-clue-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 0.3rem;
}

.exec-clue-desc {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
}

.exec-flags-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 500px) {
  .exec-flags-row {
    grid-template-columns: 1fr 1fr;
  }
}

.exec-flag-card {
  border-radius: var(--radius-inner);
  padding: 1rem 1.15rem;
}

.exec-flag-card.green {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.exec-flag-card.red {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.exec-flag-header {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.exec-flag-card.green .exec-flag-header {
  color: #34d399;
}

.exec-flag-card.red .exec-flag-header {
  color: #f87171;
}

.exec-flag-text {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.55;
}

.exec-golden-rule {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-inner);
  padding: 1.15rem 1.25rem;
  text-align: center;
}

.exec-golden-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fbbf24;
  margin-bottom: 0.35rem;
}

.exec-golden-quote {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.55;
}

/* Segmented View Mode */
.result-mode-segmented {
  background: var(--bento-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 5px;
  display: flex;
  gap: 5px;
  margin-bottom: 1.25rem;
}

.result-mode-pill {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.result-mode-pill.active {
  background: var(--coral-primary);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 12px var(--coral-glow);
}

/* 12. ELEMENTAL BANNER & CARDS ROW */
.elemental-meters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

@media (min-width: 500px) {
  .elemental-meters {
    grid-template-columns: repeat(4, 1fr);
  }
}

.meter-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.meter-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}
.meter-fill.fire { background: var(--coral-primary); }
.meter-fill.water { background: var(--periwinkle-primary); }
.meter-fill.air { background: #c084fc; }
.meter-fill.earth { background: var(--mint-primary); }

.reading-cards-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.reading-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
  text-align: center;
}

.reading-card-img {
  width: 84px;
  height: 134px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,0.65), inset 0 0 0 1px rgba(197, 160, 89, 0.35);
  border: 1.5px solid rgba(197, 160, 89, 0.45);
  filter: contrast(106%) saturate(98%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.reading-card-img:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: #dfb76c;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.75), 0 0 15px rgba(197, 160, 89, 0.3);
}

.reading-card-img.is-reversed {
  transform: rotate(180deg);
}

/* 13. EDITORIAL PROPHECY BODY */
.paper-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  gap: 0.75rem;
}

.paper-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
}

.paper-actions {
  display: flex;
  gap: 0.4rem;
}

.reading-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.reading-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--yellow-primary);
  margin: 1.6rem 0 0.6rem;
  border-bottom: 1px solid rgba(254, 200, 75, 0.2);
  padding-bottom: 0.3rem;
}

.reading-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 1.1rem 0 0.35rem;
}

.reading-body ul, .reading-body ol {
  padding-left: 1.3rem;
  margin-bottom: 0.85rem;
}
.reading-body li {
  margin-bottom: 0.35rem;
}

.reading-body blockquote {
  border-left: 3px solid var(--coral-primary);
  background: rgba(255, 100, 72, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 0 12px 12px 0;
  margin: 1rem 0;
  color: #fef08a;
  font-style: italic;
}

.reading-body strong {
  color: var(--yellow-primary);
  font-weight: 700;
}

/* 14. FOLLOW-UP SECTION */
.followup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.followup-avatar {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.followup-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-white);
}

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

.followup-thread-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
  max-height: 420px;
  overflow-y: auto;
}

.followup-q-bubble {
  align-self: flex-end;
  max-width: 85%;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #111111;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 18px 18px 4px 18px;
  padding: 0.75rem 1rem;
}

.followup-a-bubble {
  align-self: flex-start;
  max-width: 90%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #1f2937;
  font-size: 0.88rem;
  line-height: 1.6;
  border-radius: 18px 18px 18px 4px;
  padding: 0.95rem 1.1rem;
}

.followup-a-bubble .a-header {
  font-size: 0.75rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 0.35rem;
}

.followup-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

.followup-input-wrapper .bento-input-pill {
  flex: 1;
}

/* 15. CODEX BENTO GRID */
.codex-search-box {
  position: relative;
  margin-bottom: 1rem;
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  font-size: 0.95rem;
}

.codex-search-box .bento-input-pill {
  padding-left: 2.8rem;
}

.codex-filter-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.codex-filter-tabs::-webkit-scrollbar {
  display: none;
}

.codex-filter-pill {
  flex-shrink: 0;
  background: #232733;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s;
  min-height: 38px;
}

.codex-filter-pill:hover {
  color: var(--text-white);
  background: #2d3242;
}

.codex-filter-pill.active {
  background: var(--coral-primary);
  border-color: var(--coral-primary);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 12px var(--coral-glow);
}

.bento-codex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 500px) {
  .bento-codex-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.codex-card {
  background: var(--bento-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.codex-card:hover {
  transform: translateY(-4px);
  border-color: var(--coral-primary);
  box-shadow: 0 8px 24px rgba(255, 100, 72, 0.25);
}

.codex-card-thumb {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 3.2;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-subtle);
  display: block;
}

.codex-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-white);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codex-card-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 16. MOBILE BOTTOM FLOATING NAVIGATION */
.bento-bottom-nav {
  position: fixed;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  right: 12px;
  max-width: 440px;
  margin: 0 auto;
  height: 58px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-pill);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  padding: 0 6px;
}

.bottom-nav-item {
  flex: 1;
  background: transparent;
  border: none;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  height: 46px;
  border-radius: var(--radius-pill);
  transition: all 0.18s ease;
}

.bottom-nav-item .nav-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.bottom-nav-item .nav-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

.bottom-nav-item.active {
  color: #111111;
  background: #f3f4f6;
}
.bottom-nav-item.active .nav-label {
  color: #111111;
  font-weight: 700;
}
.bottom-nav-item.active .nav-icon {
  transform: translateY(-1px);
}

/* 17. MODALS & BOTTOM SHEETS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@media (min-width: 600px) {
  .modal-backdrop {
    align-items: center;
    padding: 1.5rem;
  }
}

.modal-backdrop.hidden {
  display: none !important;
}

.bento-modal-card {
  background: #181a22;
  border: 1px solid var(--border-medium);
  border-radius: 28px 28px 0 0;
  padding: 1.5rem;
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

@media (min-width: 600px) {
  .bento-modal-card {
    border-radius: 28px;
    animation: fadeIn 0.25s ease;
  }
}

.sheet-drag-handle {
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  margin: -0.5rem auto 1rem;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bento-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: #242836;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
  z-index: 10;
}

.bento-modal-close:hover {
  background: var(--coral-primary);
}

.modal-headline {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-white);
  margin-top: 0.25rem;
}

/* Modal Content Details */
.modal-body-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 500px) {
  .modal-body-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.modal-card-img {
  width: 140px;
  aspect-ratio: 2 / 3.2;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 auto;
  display: block;
  border: 1px solid var(--border-medium);
}

@media (min-width: 500px) {
  .modal-card-img {
    width: 170px;
  }
}

.modal-info-col h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
}

.modal-archetype {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--coral-primary);
  margin-bottom: 0.75rem;
}

.modal-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 0.85rem 0 0.3rem;
}

/* Chat Drawer */
.chat-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 540px;
  margin: 0 auto;
  height: 520px;
  max-height: 85vh;
  background: #181a22;
  border-radius: 28px 28px 0 0;
  border: 1.5px solid var(--border-medium);
  z-index: 95;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.3s ease;
}

.chat-drawer.hidden {
  display: none !important;
}

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

.chat-mentor-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mentor-avatar {
  font-size: 1.6rem;
}

.mentor-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-white);
}

.mentor-status {
  font-size: 0.72rem;
  color: var(--coral-primary);
  font-weight: 600;
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  border-radius: 18px;
}

.chat-bubble.mentor {
  align-self: flex-start;
  background: var(--bento-card-inset);
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--coral-primary);
  color: #ffffff;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

.chat-input-row {
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.5rem;
}

/* 17.5 MISSING BENTO COMPONENTS & READING PAPER */
.brand-info {
  display: flex;
  flex-direction: column;
}

.pill-icon {
  font-size: 1rem;
  line-height: 1;
}

.eyebrow-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-left: auto;
}

.select-pill-wrapper {
  position: relative;
  width: 100%;
}

.m-icon {
  font-size: 1.05rem;
}

.card-setup {
  margin-bottom: 1.25rem;
}

.picker-section {
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 100%;
}

/* Auto Draw Bento Card */
.card-auto-draw {
  text-align: center;
  padding: 2.25rem 1.5rem;
}

.auto-draw-icon {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.card-auto-draw h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.card-auto-draw p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

/* Auto Draw Actions Row & Shuffle Elements */
.auto-draw-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-shuffle-pulse {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%) !important;
  color: #e9d5ff !important;
  border: 1.5px solid rgba(168, 85, 247, 0.55) !important;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-shuffle-pulse:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(99, 102, 241, 0.4) 100%) !important;
  border-color: #c084fc !important;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
  transform: translateY(-2px);
}

.btn-shuffle-pulse:active {
  transform: scale(0.96);
}

.pill-btn-shuffle {
  background: rgba(168, 85, 247, 0.18) !important;
  color: #d8b4fe !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  font-weight: 700;
}

.pill-btn-shuffle:hover {
  background: rgba(168, 85, 247, 0.35) !important;
  color: #ffffff !important;
  border-color: #c084fc !important;
}

.shuffle-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.8rem;
  color: #e9d5ff;
  margin-top: 1rem;
  animation: fadeInDown 0.3s ease-out;
}

.shuffle-counter-badge strong {
  color: #fef08a;
}

/* Card Shuffle & Wheel Animations */
@keyframes cardShuffleShake {
  0%, 100% { transform: scale(1) rotate(0deg); }
  20% { transform: scale(1.15) rotate(-10deg); }
  40% { transform: scale(0.92) rotate(10deg); }
  60% { transform: scale(1.1) rotate(-6deg); }
  80% { transform: scale(1) rotate(4deg); }
}

.is-shuffling {
  animation: cardShuffleShake 0.55s ease-in-out;
}

@keyframes spinWheelQuick {
  0% { transform: rotate(0deg) scale(0.95); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

.wheel-shuffling {
  animation: spinWheelQuick 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Spread Info & CTA */
.spread-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.divination-cta-container {
  margin: 1.25rem 0 0.5rem;
  width: 100%;
}

/* Reading Result Wrapper */
.reading-result-wrapper {
  width: 100%;
  max-width: 100%;
  margin-top: 1.5rem;
  animation: slideUpFade 0.35s ease-out;
}

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

/* Reading Paper Card & Editorial Typography */
.reading-paper-card {
  background: var(--bento-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.paper-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.paper-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.paper-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
}

.paper-actions {
  display: flex;
  gap: 0.4rem;
}

/* Elemental Banner */
.elemental-banner {
  background: var(--bento-card-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-inner);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  color: #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Markdown Reading Body */
.markdown-body {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
  color: var(--text-white);
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
  font-weight: 800;
}

.markdown-body h2 {
  font-size: 1.15rem;
  color: var(--yellow-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.4rem;
}

.markdown-body h3 {
  font-size: 1.05rem;
  color: #c7d2fe;
}

.markdown-body p {
  margin-bottom: 0.85rem;
}

.markdown-body strong {
  color: #ffffff;
  font-weight: 700;
}

.markdown-body ul, .markdown-body ol {
  padding-left: 1.4rem;
  margin-bottom: 0.85rem;
}

.markdown-body li {
  margin-bottom: 0.35rem;
}

.markdown-body hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 1.25rem 0;
}

.markdown-body blockquote {
  border-left: 3px solid var(--coral-primary);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Follow-up Section & Conversation Thread */
.followup-section {
  background: var(--bento-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-top: 1.25rem;
}

.followup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.followup-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1e212d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.followup-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-white);
}

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

.followup-thread-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  max-height: 400px;
  overflow-y: auto;
}

.followup-thread-item {
  background: var(--bento-card-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-inner);
  padding: 1rem 1.15rem;
}

.followup-thread-item.user-q {
  border-left: 3px solid var(--coral-primary);
}

.followup-thread-item.master-a {
  border-left: 3px solid var(--periwinkle-primary);
}

.followup-thread-item .q-label,
.followup-thread-item .a-label {
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  display: block;
}

.followup-thread-item .q-label { color: var(--coral-primary); }
.followup-thread-item .a-label { color: var(--periwinkle-primary); }

.followup-input-wrapper {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

/* Pulse Glow & Loading State */
.glow-trigger {
  animation: bentoGlowPulse 1.2s ease-out;
}

@keyframes bentoGlowPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 100, 72, 0.7); }
  70% { box-shadow: 0 0 0 16px rgba(255, 100, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 100, 72, 0); }
}

.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

/* Modal Headers & Footers */
.modal-header {
  margin-bottom: 1.25rem;
}

.modal-headline {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-white);
  margin-top: 0.35rem;
}

.modal-footer {
  margin-top: 1.5rem;
}

.bento-modal-card.modal-sm {
  max-width: 440px;
}

.btn-coral-pill.btn-lg {
  min-height: 52px;
  font-size: 1.05rem;
  padding: 0.9rem 1.75rem;
}

/* 18. UTILITY CLASSES */
.hidden {
  display: none !important;
}

.bento-divider {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 1.1rem 0;
}

.field-help {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  display: block;
}

.bento-range {
  width: 100%;
  accent-color: var(--coral-primary);
  cursor: pointer;
}

.btn-block {
  width: 100%;
}

.status-msg {
  font-size: 0.8rem;
  display: block;
  margin-top: 0.35rem;
  font-weight: 600;
}
.status-msg.success { color: var(--mint-primary); }
.status-msg.error { color: var(--rose-primary); }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }

/* ==========================================================================
   19. BIRTH CHART & COSMIC SYNERGY COMPONENT STYLES
   ========================================================================== */

.birthchart-toggle-row {
  margin-top: 0.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
}

.birthchart-drawer {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(139, 92, 246, 0.1);
  padding: 1rem;
  animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.birthchart-drawer-header {
  margin-bottom: 0.75rem;
}

.birthchart-drawer-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #c4b5fd;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.birthchart-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .birthchart-inputs-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.req-star {
  color: var(--coral-primary);
  font-weight: bold;
}

/* Live Birth Chart Preview Badge */
.birthchart-preview-chip {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bc-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bc-badge-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.bc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.bc-badge-sun {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.bc-badge-asc {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.bc-badge-element {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.bc-birthcards-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.bc-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: rgba(254, 200, 75, 0.15);
  border: 1px solid rgba(254, 200, 75, 0.35);
  color: #fef08a;
  font-weight: 600;
}

/* Cosmic Birth Chart Synergy Bento Card */
.birthchart-synergy-card {
  background: linear-gradient(145deg, #17162e 0%, #0d1222 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.birthchart-synergy-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.synergy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  padding-bottom: 0.65rem;
}

.synergy-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.synergy-cosmic-icon {
  font-size: 1.5rem;
}

.synergy-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #e9d5ff;
}

.synergy-subtitle {
  font-size: 0.75rem;
  color: #a855f7;
  font-weight: 600;
}

.synergy-avatar-callout {
  margin-bottom: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.synergy-avatar-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.synergy-avatar-text {
  font-size: 0.85rem;
  color: #fef08a;
  line-height: 1.5;
}

.synergy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.synergy-cell {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem;
}

.synergy-cell-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.synergy-cell-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.synergy-cell-sub {
  font-size: 0.76rem;
  color: #cbd5e1;
  margin-top: 0.25rem;
  line-height: 1.4;
}

.synergy-advice-box {
  background: rgba(139, 92, 246, 0.12);
  border-left: 3px solid #a855f7;
  padding: 0.75rem 1rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.synergy-advice-box strong {
  color: #fef08a;
}

/* ==========================================================================
   20. PARTNER BIRTH CHART & LOVE SYNASTRY STYLES
   ========================================================================== */

.partner-chart-drawer-section {
  margin-top: 1rem;
  border-top: 1px dashed rgba(244, 114, 182, 0.35);
  padding-top: 0.85rem;
}

.partner-toggle-row {
  margin-bottom: 0.5rem;
}

.partner-chart-fields {
  margin-top: 0.5rem;
  animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-preview-chip {
  border-color: rgba(244, 114, 182, 0.4) !important;
  background: rgba(30, 16, 40, 0.75) !important;
}

.partner-preview-chip .bc-badge-sun {
  background: rgba(244, 114, 182, 0.18);
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.4);
}

/* Dual Synastry Bento Layout */
.synastry-dual-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.synastry-dual-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 640px) {
  .synastry-dual-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .synastry-heart-center {
    order: -1;
    margin-bottom: 0.5rem;
  }
}

.synastry-person-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.85rem;
}

.synastry-person-card.querent {
  border-left: 3px solid #a855f7;
}

.synastry-person-card.partner {
  border-right: 3px solid #f472b6;
}

.synastry-person-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.synastry-person-title.querent { color: #c084fc; }
.synastry-person-title.partner { color: #f472b6; }

.synastry-person-sign {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.synastry-person-detail {
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.synastry-heart-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-align: center;
}

.synastry-score-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  border: 2px solid #f472b6;
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.synastry-score-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.synastry-score-unit {
  font-size: 0.65rem;
  color: #f472b6;
  font-weight: 700;
}

.synastry-score-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fbcfe8;
}

.synastry-crossover-box {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid rgba(244, 114, 182, 0.45);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.synastry-crossover-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.synastry-crossover-text {
  font-size: 0.85rem;
  color: #fef08a;
  line-height: 1.5;
}

.synastry-chemistry-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem;
}

.synastry-chemistry-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f472b6;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.synastry-chemistry-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ==========================================================================
   19. COMMERCIAL INFRASTRUCTURE & RETENTION STYLES
   ========================================================================== */

/* Header Coin & Streak Badges */
.bento-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.bento-badge-pill:hover {
  transform: translateY(-1px);
}

.bento-badge-pill .badge-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.bento-badge-pill .badge-unit {
  font-size: 0.72rem;
  opacity: 0.85;
}

.streak-pill {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.streak-pill:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.coin-pill {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.coin-pill:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Daily Fortune Bento Card */
.daily-fortune-bento {
  background: linear-gradient(145deg, #111827 0%, #1e1b4b 60%, #31102b 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fortune-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fortune-date-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fortune-day-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.fortune-day-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.fortune-day-sub {
  font-size: 0.8rem;
  color: #fde68a;
  display: block;
  margin-top: 0.2rem;
}

.fortune-planet-badge {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* 4 Lucky Color Bento Cards */
.fortune-colors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 620px) {
  .fortune-colors-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fortune-color-chip {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.fortune-color-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.color-type-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.color-type-tag.work { color: #60a5fa; }
.color-type-tag.wealth { color: #f59e0b; }
.color-type-tag.love { color: #f472b6; }
.color-type-tag.forbidden { color: #ef4444; }

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.color-name-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.color-desc-text {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* Auspicious Numbers & Timing Bento Box */
.fortune-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .fortune-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fortune-numbers-box,
.fortune-timing-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fortune-box-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lucky-numbers-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.lucky-num-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  color: #fde68a;
  font-weight: 800;
  font-size: 1rem;
}

.lucky-num-badge.primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 1.25rem;
  padding: 0.3rem 0.8rem;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.timing-detail-item {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.timing-detail-item strong {
  color: #ffffff;
}

/* Tarot Synergy & Affirmation in Daily Fortune */
.fortune-synergy-box {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  border: 1px solid rgba(147, 51, 234, 0.35);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.synergy-spark-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.synergy-text-body {
  font-size: 0.84rem;
  color: #e9d5ff;
  line-height: 1.5;
}

.fortune-affirmation-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: #a7f3d0;
  font-style: italic;
  line-height: 1.5;
}

/* ==========================================================================
   20. WALLET MODAL & 7-DAY STREAK STYLES
   ========================================================================== */

.modal-md {
  max-width: 580px;
}

.wallet-balance-box {
  background: linear-gradient(135deg, #1e1b4b 0%, #31102b 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.wallet-balance-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wallet-coin-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.5));
}

.wallet-balance-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wallet-balance-num {
  font-size: 2rem;
  font-weight: 800;
  color: #fde68a;
  line-height: 1;
  margin-top: 0.15rem;
}

.wallet-balance-num small {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
}

.wallet-user-badge {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-role-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.user-id-text {
  font-size: 0.72rem;
  color: #64748b;
  font-family: monospace;
}

/* 7-Day Streak Subcard */
.bento-subcard {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.15rem;
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.streak-subcard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.streak-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.streak-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0.2rem 0 0;
}

.streak-count-pill {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* 7 Steps Tracker */
.streak-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.streak-day-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: all 0.2s;
}

.streak-day-item.checked {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.streak-day-item.today {
  border-color: #ef4444;
  animation: pulse-border 1.5s infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2); }
}

.streak-day-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
}

.streak-day-icon {
  font-size: 1rem;
}

.streak-day-bonus {
  font-size: 0.62rem;
  font-weight: 800;
  color: #fbbf24;
}

.streak-status-msg {
  font-size: 0.8rem;
  color: #34d399;
  text-align: center;
  margin-top: 0.4rem;
}

/* Top-up Packages Grid */
.topup-subcard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topup-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.topup-note {
  font-size: 0.72rem;
  color: #34d399;
  font-weight: 700;
}

.topup-packages-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.75rem;
}

@media (min-width: 500px) {
  .topup-packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.topup-pkg-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  position: relative;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.topup-pkg-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.topup-pkg-card.popular {
  border: 1.5px solid #f59e0b;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(245, 158, 11, 0.12) 100%);
}

.pkg-badge-tag {
  position: absolute;
  top: -8px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
}

.pkg-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.pkg-coins-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pkg-total-coins {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fde68a;
}

.pkg-coins-label {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.pkg-bonus-tag {
  font-size: 0.68rem;
  color: #34d399;
  font-weight: 700;
}

.pkg-buy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.topup-pkg-card:hover .pkg-buy-btn,
.topup-pkg-card.popular .pkg-buy-btn {
  background: var(--coral-primary);
  border-color: transparent;
  box-shadow: 0 2px 8px var(--coral-glow);
}

.topup-notification {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

/* Viral Referral Card */
.referral-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.referral-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.referral-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0.2rem 0 0.5rem;
  line-height: 1.4;
}

.referral-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.referral-code-badge strong {
  color: #fde68a;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: none !important;
}

/* ==========================================================================
   21. ALTAR DAILY COSMIC WIDGET, WALLPAPER & VIRAL SHARE
   ========================================================================== */

/* Daily Altar Widget (Top of Divination Altar) */
.daily-altar-widget {
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #2e1065 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.daily-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.daily-widget-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.eyebrow-pill.gold {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.daily-widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.daily-widget-sub {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.daily-widget-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.streak-btn {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3) !important;
}

.free-card-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3) !important;
}

/* 4 Colors Strip (Cosmic Crystal Spheres) */
.altar-colors-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 600px) {
  .altar-colors-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.altar-color-pill {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.altar-color-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(245, 158, 11, 0.15);
  background: rgba(26, 32, 53, 0.85);
}

.altar-color-pill:active {
  transform: scale(0.97);
}

.altar-color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
  box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.4), inset 2px 2px 4px rgba(255, 255, 255, 0.6), 0 0 10px rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease;
}

.altar-color-pill:hover .altar-color-dot {
  transform: scale(1.15);
}

.altar-color-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.altar-color-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.altar-color-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Numbers & Directions Strip */
.altar-numbers-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.75rem 1.15rem;
}

.altar-num-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.altar-num-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fbbf24;
}

.altar-num-pill {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.15) 100%);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.altar-time-text {
  font-size: 0.78rem;
  color: #cbd5e1;
}

/* Digital Products: Wallpaper Tab */
.wallpaper-hero-card {
  background: linear-gradient(145deg, #111827 0%, #1e1b4b 60%, #31102b 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.wallpaper-setup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

@media (min-width: 580px) {
  .wallpaper-setup-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wallpaper-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.wallpaper-cost-hint {
  font-size: 0.85rem;
  color: #94a3b8;
}

.wallpaper-cost-hint strong {
  color: #fbbf24;
}

.wallpaper-preview-bento {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preview-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

/* Smartphone Hardware Frame Mockup */
.phone-mockup-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: #0f172a;
  border-radius: 42px;
  padding: 12px;
  border: 3px solid #334155;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 35px rgba(245, 158, 11, 0.2);
}

.phone-mockup-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.phone-mockup-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid #334155;
}

.wallpaper-canvas-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 240px;
  border-radius: 32px;
  overflow: hidden;
  background: #000000;
}

/* AI-generated wallpaper image */
.wallpaper-ai-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 32px;
}

/* Loading overlay while Gemini generates */
.wallpaper-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(10, 12, 20, 0.94);
  border-radius: 32px;
  padding: 2rem;
  text-align: center;
  min-height: 240px;
}

.wallpaper-loading-overlay p {
  font-size: 0.85rem;
  color: #fde68a;
  line-height: 1.5;
}

.wallpaper-loading-overlay.hidden {
  display: none;
}

/* Spinner ring */
.loading-spinner-ring {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(245, 158, 11, 0.2);
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: spinner-rotate 0.9s linear infinite;
}

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

.wallpaper-mantra-box {
  width: 100%;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-align: center;
}

.mantra-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 0.25rem;
}

.mantra-body {
  font-size: 0.88rem;
  color: #fde68a;
  font-style: italic;
  line-height: 1.5;
}

/* ===================================================
   14. SPREAD SELECTION CARDS & TRANSPARENT PRICING GRID
   =================================================== */
.spread-picker-group {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.spread-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.spread-picker-hint {
  font-size: 0.75rem;
  color: var(--muted-gold);
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.spread-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 820px) {
  .spread-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spread-card-item {
  position: relative;
  background: rgba(11, 15, 26, 0.74);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: 16px;
  padding: 0.95rem 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  user-select: none;
  min-height: 120px;
}

.spread-card-item:hover {
  border-color: rgba(197, 160, 89, 0.55);
  transform: translateY(-2px);
  background: rgba(17, 23, 40, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(197, 160, 89, 0.16);
}

.spread-card-item.active {
  background: linear-gradient(145deg, rgba(28, 36, 58, 0.94) 0%, rgba(13, 18, 32, 0.95) 100%);
  border-color: var(--muted-gold);
  box-shadow: 0 0 0 1px var(--muted-gold), 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 24px rgba(197, 160, 89, 0.3);
}

.spread-card-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--muted-gold), transparent);
}

/* Card Top Row */
.spread-card-item .sc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
  gap: 0.35rem;
}

.spread-card-item .sc-icon-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.spread-card-item .sc-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
  line-height: 1;
}

.spread-card-item:hover .sc-icon {
  transform: scale(1.12);
}

.spread-card-item .sc-cost-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted-gold);
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.32);
  padding: 0.22rem 0.55rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.spread-card-item.active .sc-cost-badge {
  background: rgba(197, 160, 89, 0.24);
  border-color: var(--muted-gold);
  color: #F8E7B4;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.25);
}

/* Mini Tag Badges */
.spread-card-item .sc-tag-mini {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.spread-card-item .sc-tag-mini.pink {
  background: rgba(244, 114, 182, 0.16);
  border: 1px solid rgba(244, 114, 182, 0.4);
  color: #F472B6;
}

.spread-card-item .sc-tag-mini.gold {
  background: rgba(197, 160, 89, 0.16);
  border: 1px solid rgba(197, 160, 89, 0.4);
  color: var(--muted-gold);
}

/* Card Body */
.spread-card-item .sc-body {
  flex: 1;
  margin-bottom: 0.45rem;
}

.spread-card-item .sc-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}

.spread-card-item.active .sc-name {
  color: #FFFFFF;
  text-shadow: 0 0 12px rgba(197, 160, 89, 0.3);
}

.spread-card-item .sc-sub {
  font-size: 0.74rem;
  color: #94A3B8;
  line-height: 1.4;
}

/* Selected Indicator */
.spread-card-item .sc-indicator {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 18px;
}

.spread-card-item .sc-check {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted-gold);
  opacity: 0;
  transform: translateY(3px);
  transition: all 0.22s ease;
}

.spread-card-item.active .sc-check {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   15. DAILY HABIT & FREE TAB STYLING (หมวดฟรีประจำวัน)
   =================================================== */
.daily-banner-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--bento-card-bg) 70%);
  border: 1.5px solid rgba(16, 185, 129, 0.25);
}

.eyebrow-pill.emerald {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.daily-free-draw-card {
  background: linear-gradient(135deg, var(--bento-card-bg) 0%, var(--bento-card-inset) 100%);
  border: 1.5px dashed rgba(16, 185, 129, 0.45);
}

.daily-free-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.daily-free-headline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
}

.daily-free-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.free-daily-cta-btn {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  margin-top: 0.35rem;
  border-radius: var(--radius-pill);
}

.free-daily-cta-btn:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45);
}

/* In-place Daily Reading Result Box (Same Page!) */
.daily-reading-result-box {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  animation: fadeIn 0.35s ease-out;
}

.daily-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.daily-card-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  background: var(--bento-card-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-inner);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

@media (min-width: 480px) {
  .daily-card-showcase {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
}

.daily-card-img-wrap {
  width: 130px;
  height: 215px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(197, 160, 89, 0.45);
  border: 1.5px solid rgba(197, 160, 89, 0.55);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  position: relative;
  background: #070a14;
}

.daily-card-img-wrap:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(197, 160, 89, 0.25);
  border-color: #dfb76c;
}

.daily-card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.15) 45%, rgba(197, 160, 89, 0.3) 50%, rgba(168, 85, 247, 0.25) 55%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 2;
}

.daily-card-img-wrap:hover::after {
  transform: translateX(120%);
}

.daily-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(107%) saturate(98%);
}

.daily-card-img-wrap.reversed img {
  transform: rotate(180deg);
}

.daily-card-meta {
  flex: 1;
}

.daily-card-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.daily-card-name-th {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.3;
}

.daily-card-name-en {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yellow-primary);
  margin-bottom: 0.75rem;
}

.daily-card-keywords {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.keyword-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
}

.daily-guidance-content {
  background: var(--bento-card-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-inner);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.guidance-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #10b981;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.guidance-body-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.guidance-advice-box {
  background: rgba(16, 185, 129, 0.1);
  border-left: 3px solid #10b981;
  border-radius: 0 12px 12px 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.55;
}

.daily-result-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.daily-result-actions button {
  flex: 1;
  min-width: 140px;
}

.free-pill {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.reversed-pill {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.streak-daily-preview-card {
  border: 1px solid var(--border-subtle);
}

/* ===================================================
   16. MODERN MYSTIC GLASSMORPHIC POLISH
   Deep Midnight Navy, Muted Gold & Subtle Holographic Sheen
   =================================================== */

.bento-card {
  background: var(--bento-card-bg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.bento-card:hover {
  border-color: rgba(197, 160, 89, 0.38);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 20px rgba(197, 160, 89, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-headline,
.brand-title,
.paper-title,
.modal-headline {
  color: var(--text-white);
  letter-spacing: -0.015em;
}

.card-subhead,
.field-label,
.paper-sub,
.streak-subtitle {
  color: var(--text-muted);
}

.bento-input-pill,
.bento-select-pill,
.bento-textarea {
  background: var(--input-bg);
  color: var(--text-white);
  border: 1.5px solid rgba(197, 160, 89, 0.25);
  transition: all 0.2s ease;
}

.bento-input-pill:focus,
.bento-select-pill:focus,
.bento-textarea:focus {
  border-color: #c5a059;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
  outline: none;
}

/* Altar Widget Modern Mystic Glassmorphism */
.daily-altar-widget {
  background: radial-gradient(circle at 50% 0%, rgba(20, 26, 46, 0.85) 0%, rgba(9, 13, 23, 0.95) 100%);
  border: 1.5px solid rgba(197, 160, 89, 0.3);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(197, 160, 89, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.altar-num-pill {
  background: rgba(197, 160, 89, 0.14);
  color: #dfb76c;
  border: 1px solid rgba(197, 160, 89, 0.35);
  font-weight: 800;
}

/* Reading Paper & Flipbook Sanctuary */
.reading-paper-card {
  background: var(--paper-bg);
  border: 1.5px solid rgba(197, 160, 89, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(197, 160, 89, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.reading-body h3 {
  color: #dfb76c;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
  padding-bottom: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.85rem;
}

.reading-body h4 {
  color: #f8fafc;
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
}

.reading-body p,
.reading-body li {
  color: #cbd5e1;
  line-height: 1.75;
}

.reading-body strong {
  color: #e6c887;
}

/* Daily Guidance & Showcase */
.daily-card-showcase,
.daily-guidance-content {
  background: rgba(18, 22, 38, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.guidance-advice-box {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border-left: 3px solid #10b981;
}

.reversed-pill {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

/* ===================================================
   24. PROMPTPAY PAYMENT & SLIP VERIFICATION
   =================================================== */

.payment-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.promptpay-qr-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.promptpay-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.promptpay-logo-text {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #003764;
}

.promptpay-sub {
  font-size: 0.75rem;
  font-weight: 600;
  background: #003764;
  color: #ffffff;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.promptpay-qr-svg-wrap {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid #003764;
  border-radius: 12px;
  padding: 0.5rem;
}

.promptpay-qr-svg-wrap svg {
  width: 100%;
  height: 100%;
}

.promptpay-amount-box {
  margin-top: 0.75rem;
  text-align: center;
}

.amount-label {
  font-size: 0.8rem;
  color: #64748b;
  margin-right: 0.35rem;
}

.amount-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

/* Bank Account Box */
.bank-details-box {
  background: var(--bento-card-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-inner);
  padding: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
}

.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.bank-label {
  color: var(--text-muted);
}

.bank-value {
  color: var(--text-main);
  font-weight: 600;
}

.acc-num-row {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-subtle);
}

.bank-acc-no {
  font-family: 'IBM Plex Sans Thai', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

.copy-acc-btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}

/* Slip Upload Area */
.slip-upload-area {
  margin-top: 1rem;
}

.slip-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.6rem;
}

.slip-dropzone-box {
  border: 2px dashed rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.04);
  border-radius: var(--radius-inner);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slip-dropzone-box:hover,
.slip-dropzone-box.dragover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  transform: translateY(-1px);
}

.dropzone-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.dropzone-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

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

/* Slip Preview Wrap & Scanning Laser */
.slip-preview-wrap {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.slip-preview-box {
  position: relative;
  width: 140px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #10b981;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.slip-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slip-scanning-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #10b981, #34d399, transparent);
  box-shadow: 0 0 12px #10b981, 0 0 20px #34d399;
  animation: scanLaser 1.5s infinite ease-in-out;
}

@keyframes scanLaser {
  0% { top: 0%; opacity: 0.8; }
  50% { top: 96%; opacity: 1; }
  100% { top: 0%; opacity: 0.8; }
}

.slip-file-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.slip-filename {
  color: var(--text-muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-remove-slip {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* Slip Alert Box */
.slip-alert-box {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

.slip-alert-box.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
}

.slip-alert-box.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #f87171;
}

/* Sandbox Mode Helper */
.sandbox-test-row {
  margin-top: 1.25rem;
  text-align: center;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
}

.sandbox-mock-link {
  background: none;
  border: none;
  color: #f59e0b;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.sandbox-mock-link:hover {
  opacity: 1;
}

/* =================================================== */
/* 21. AUTHENTICATION & USER PROFILE STYLES */
/* =================================================== */
.user-auth-btn {
  position: relative;
  transition: all 0.25s ease;
}

.user-auth-btn.logged-in {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.12);
}

.user-auth-btn.logged-in::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid var(--bento-card-bg);
}

.auth-tabs-row {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  padding: 4px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.auth-tab-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.auth-tab-btn:hover {
  color: var(--text-white);
}

.auth-tab-btn.active {
  background: var(--coral-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 100, 72, 0.35);
}

.social-login-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.btn-social-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-line-auth {
  background: #06C755;
  color: #ffffff;
}

.btn-line-auth:hover {
  background: #05b34c;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
}

.btn-google-auth {
  background: #ffffff;
  color: #1f2937;
  border-color: rgba(0, 0, 0, 0.12);
}

.btn-google-auth:hover {
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.social-icon {
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-divider span {
  padding: 0 0.75rem;
  letter-spacing: 0.02em;
}

.guest-merge-notice {
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #fde68a;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

/* User Profile Modal Styling */
.profile-hero-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin-bottom: 1rem;
}

.profile-avatar-big {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 100, 72, 0.2), rgba(245, 158, 11, 0.3));
  border: 2px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

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

.profile-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 0 0 0.2rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-email {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-tags-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.profile-stat-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.p-stat-icon {
  font-size: 1.6rem;
}

.p-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.p-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  margin-top: 0.1rem;
}

/* =================================================== */
/* 22. READING HISTORY & BOOKMARKING STYLES */
/* =================================================== */
.history-hero-card {
  margin-bottom: 1.25rem;
}

.history-guest-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  margin: 1rem 0;
}

.h-guest-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.h-guest-text {
  flex: 1;
}

.h-guest-text strong {
  display: block;
  font-size: 0.88rem;
  color: #fbbf24;
  margin-bottom: 0.15rem;
}

.h-guest-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.history-filter-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin: 1rem 0 0.85rem;
  scrollbar-width: none;
}

.history-filter-row::-webkit-scrollbar {
  display: none;
}

.history-filter-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.history-filter-pill:hover {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.history-filter-pill.active {
  background: var(--coral-primary);
  color: #ffffff;
  border-color: var(--coral-primary);
  box-shadow: 0 4px 12px rgba(255, 100, 72, 0.3);
}

.history-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.history-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.history-card {
  background: var(--bento-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.25s ease;
  position: relative;
}

.history-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.history-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.history-meta-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.history-date-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bookmark-icon-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-muted);
}

.bookmark-icon-btn:hover {
  transform: scale(1.2);
}

.bookmark-icon-btn.active {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.history-question {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-cards-preview {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  scrollbar-width: none;
}

.history-cards-preview::-webkit-scrollbar {
  display: none;
}

.history-card-thumb-wrap {
  position: relative;
  width: 48px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
}

.history-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.history-card-thumb.reversed {
  transform: rotate(180deg);
}

.thumb-reversed-badge {
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 800;
  text-align: center;
  border-radius: 3px;
  padding: 1px 0;
}

.history-verdict-snippet {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid #f59e0b;
  padding: 0.5rem 0.75rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #fef3c7;
}

.history-notes-badge {
  font-size: 0.75rem;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.history-actions-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.history-icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.history-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.history-icon-btn.delete:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.history-empty-card {
  text-align: center;
  padding: 3rem 1.5rem;
  margin-top: 1.5rem;
}

.history-empty-card .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 0.85rem;
  opacity: 0.7;
}

/* Reading Detail Modal Customizations */
.modal-lg {
  max-width: 680px;
}

.detail-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.detail-date-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
  margin-right: 0.5rem;
}

.detail-cards-section {
  margin-bottom: 1.25rem;
}

.section-mini-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--yellow-primary);
  margin: 0 0 0.65rem 0;
}

.detail-cards-grid {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
}

.detail-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  width: 90px;
}

.detail-card-img-wrap {
  position: relative;
  width: 80px;
  height: 133px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.detail-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-card-pos {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}

.detail-card-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
}

.detail-followup-section {
  border-top: 1px dashed var(--border-subtle);
  padding-top: 1rem;
}

.notes-subcard {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.notes-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #34d399;
  margin: 0;
}

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

.bento-textarea {
  width: 100%;
  min-height: 70px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

.bento-textarea:focus {
  outline: none;
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

.notes-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.notes-status-msg {
  font-size: 0.78rem;
  color: #34d399;
}

.detail-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   23. ADMIN CMS DASHBOARD & SYSTEM CONTROL CENTER
   ========================================================================== */

.modal-xl {
  max-width: 1040px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.admin-modal-header {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-header-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  margin-bottom: 0.35rem;
}

.admin-nav-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.admin-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.25));
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.admin-modal-body {
  overflow-y: auto;
  padding-right: 0.35rem;
  flex: 1;
}

/* Metric Cards Grid */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.admin-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.admin-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-metric-card.revenue-card {
  border-left: 4px solid #10b981;
}

.admin-metric-card.coins-card {
  border-left: 4px solid #f59e0b;
}

.admin-metric-card.users-card {
  border-left: 4px solid #3b82f6;
}

.admin-metric-card.readings-card {
  border-left: 4px solid #a855f7;
}

.metric-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 0.25rem 0;
  font-family: monospace;
}

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

.admin-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.category-stat-bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stat-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.stat-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-bar-fill.pink { background: #ec4899; }
.stat-bar-fill.gold { background: #f59e0b; }
.stat-bar-fill.purple { background: #a855f7; }
.stat-bar-fill.blue { background: #3b82f6; }

.admin-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
}

.admin-mini-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.6rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 0.78rem;
}

/* Tables */
.admin-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
}

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

.admin-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  vertical-align: middle;
}

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

/* Status Badges */
.admin-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-approved { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-pending { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-rejected { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-admin { background: rgba(168, 85, 247, 0.18); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-user { background: rgba(100, 116, 139, 0.18); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.3); }

/* Tarot CMS 78 Cards Grid */
.admin-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.85rem;
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.25rem;
}

.admin-card-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.2s;
  cursor: pointer;
}

.admin-card-cell:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.admin-card-cell.is-customized {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.05);
}

.card-custom-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #10b981;
  color: white;
  font-size: 0.6rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-weight: 700;
}

.admin-card-img {
  width: 65px;
  height: 110px;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-card-name-th {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.admin-card-name-en {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* ===================================================
   MINIMALIST MONOCHROME SVG ICON SYSTEM
   =================================================== */

.brand-svg, .nav-svg, .collapse-svg, .avatar-svg, .pill-svg, .mini-svg, .svg-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.brand-avatar .brand-svg {
  width: 22px;
  height: 22px;
  stroke: #d4af37;
}

.avatar-svg {
  width: 18px;
  height: 18px;
  stroke: #d4af37;
}

.pill-svg {
  width: 14px;
  height: 14px;
}

.mini-svg {
  width: 14px;
  height: 14px;
}

.collapse-svg {
  width: 14px;
  height: 14px;
}

/* ===================================================
   HORIZONTAL SPLIT CARD COMPONENT (Card-by-Card Divination)
   =================================================== */

.card-split-container {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin: 1.5rem 0;
}

.card-split-item {
  display: flex;
  flex-direction: row;
  background: rgba(11, 15, 26, 0.76);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-split-item:hover {
  border-color: rgba(197, 160, 89, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65), 0 0 20px rgba(197, 160, 89, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.card-split-media {
  width: 175px;
  min-width: 175px;
  background: #f9fafb;
  padding: 1.35rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  border-right: 1px solid #e5e7eb;
  text-align: center;
  position: relative;
}

.card-split-img-wrap {
  width: 128px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(197, 160, 89, 0.4);
  border: 1px solid rgba(197, 160, 89, 0.5);
  background: #060810;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.card-split-item:hover .card-split-img-wrap {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(197, 160, 89, 0.25);
  border-color: rgba(223, 183, 108, 0.8);
}

/* Geometric Gold Hairline & Corner Diamonds */
.card-geometric-frame {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 9px;
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
  transition: border-color 0.3s ease;
}

.card-split-item:hover .card-geometric-frame {
  border-color: rgba(223, 183, 108, 0.65);
}

.card-geometric-frame .geo-corner {
  position: absolute;
  font-size: 7px;
  color: #c5a059;
  line-height: 1;
  opacity: 0.85;
}
.card-geometric-frame .geo-corner.tl { top: -4px; left: -3px; }
.card-geometric-frame .geo-corner.tr { top: -4px; right: -3px; }
.card-geometric-frame .geo-corner.bl { bottom: -4px; left: -3px; }
.card-geometric-frame .geo-corner.br { bottom: -4px; right: -3px; }

/* Subtle Holographic Light Sweep */
.card-split-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.15) 45%, rgba(197, 160, 89, 0.3) 50%, rgba(168, 85, 247, 0.25) 55%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  border-radius: inherit;
  z-index: 3;
}

.card-split-item:hover .card-split-img-wrap::after {
  transform: translateX(120%);
}

/* Contemporary Digital Art Grade */
.card-split-img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(107%) saturate(98%) brightness(96%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.card-split-item:hover .card-split-img {
  filter: contrast(110%) saturate(102%) brightness(100%);
}

.card-split-img.is-reversed {
  transform: rotate(180deg);
}

.card-split-position-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #4b5563;
  padding: 0.28rem 0.55rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

.card-split-status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-split-status-badge.upright {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.32);
}

.card-split-status-badge.reversed {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.card-split-content {
  flex: 1;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-split-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-split-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-main);
}

.card-split-body p {
  margin-bottom: 0.5rem;
}

.card-split-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 680px) {
  .card-split-item {
    flex-direction: column;
  }
  .card-split-media {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 1rem;
    flex-direction: row;
    justify-content: center;
    gap: 1.25rem;
  }
  .card-split-img-wrap {
    width: 85px;
  }
}

/* ===================================================
   DUANG.LIFE PROFESSIONAL APP FOOTER
   =================================================== */
.app-footer-bar {
  margin-top: 3.5rem;
  padding: 2.25rem 1.5rem 3rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

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

.footer-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-white);
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-pills-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-pill-item {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background: var(--bento-card-inset);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.footer-pill-item:hover {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .app-footer-bar {
    padding-bottom: 6rem; /* Extra padding for mobile bottom floating nav */
  }
}

/* ===================================================
   INSTANT AUTO-REVEAL FLOATING BANNER (STEP 2 UX)
   =================================================== */
.instant-auto-reveal-banner {
  margin-top: 1.25rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 27, 75, 0.95) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  border-radius: var(--radius-inner);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.25);
  animation: pulseGlow 2s infinite ease-in-out;
  position: relative;
  overflow: hidden;
}

.reveal-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal-spinner-ring {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(245, 158, 11, 0.2);
  border-top-color: #fbbf24;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.reveal-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.reveal-banner-text strong {
  font-size: 0.98rem;
  color: #fbbf24;
  font-weight: 800;
}

.reveal-banner-text span {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.reveal-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.reveal-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ec4899);
  transition: width 0.4s linear;
}

/* ===================================================
   READING VIEW MODE TOGGLE (FLIPBOOK VS CONTINUOUS)
   =================================================== */
.reading-view-mode-toggle {
  display: inline-flex;
  background: var(--bento-card-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 3px;
}

.view-mode-btn {
  background: transparent;
  border: none;
  outline: none;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.view-mode-btn.active {
  background: var(--coral-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ===================================================
   DESTINY FLIPBOOK CONTAINER & 3D PAGES (STEP 3 UX)
   =================================================== */
.destiny-flipbook-container {
  position: relative;
  width: 100%;
  min-height: 480px;
}

/* Page Badge Indicator */
.flipbook-page-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  letter-spacing: 0.4px;
}

/* Flipbook Mode (Single Chapter Focused Page) */
.destiny-flipbook-container.mode-flipbook .flipbook-page {
  display: none;
  opacity: 0;
  transform: translateY(12px) scale(0.99);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.destiny-flipbook-container.mode-flipbook .flipbook-page.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: flipPageFadeIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes flipPageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Continuous Scroll Mode */
.destiny-flipbook-container.mode-continuous .flipbook-page {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 1.5rem;
}

.destiny-flipbook-container.mode-continuous .flipbook-page-badge {
  display: inline-flex;
}

.destiny-flipbook-container.mode-continuous + #flipbookNavBar {
  display: none !important;
}

/* ===================================================
   FLIPBOOK BOTTOM NAVIGATION BAR
   =================================================== */
.flipbook-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--bento-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--bento-shadow);
  position: sticky;
  bottom: 1rem;
  z-index: 40;
  backdrop-filter: blur(12px);
}

.flipbook-nav-btn {
  background: var(--coral-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.flipbook-nav-btn:hover:not(:disabled) {
  background: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.flipbook-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.flipbook-nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.flipbook-page-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.flipbook-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bento-card-inset);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.flipbook-dot:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

.flipbook-dot.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-color: #f59e0b;
  transform: scale(1.15);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.flipbook-page-title-hint {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .flipbook-nav-bar {
    padding: 0.75rem 0.85rem;
    gap: 0.5rem;
    bottom: 4.5rem; /* Above bottom mobile bar */
  }
  .flipbook-nav-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
  }
  .flipbook-dot {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
  }
}

/* Golden Advice Page Card */
.reading-advice-page-card {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.06) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

/* ===================================================
   FULLSCREEN COSMIC ASTRAL LOADING SCREEN (VORTEX FX)
   =================================================== */
.divination-fullscreen-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(20, 24, 38, 0.96) 0%, rgba(9, 10, 15, 0.98) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: modalFadeIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  padding: 1.5rem;
  box-sizing: border-box;
}

.divination-fullscreen-loading.hidden {
  display: none !important;
}

.loading-cosmic-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 520px;
  width: 100%;
}

/* 3D Concentric Spinning Vortex Rings */
.loading-vortex-ring {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.vortex-core-seal {
  font-size: 2.8rem;
  z-index: 10;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.8));
  animation: pulseCore 2s ease-in-out infinite alternate;
}

@keyframes pulseCore {
  0% { transform: scale(0.92); filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.5)); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.9)); }
}

.vortex-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed transparent;
  pointer-events: none;
}

.vortex-orbit-ring.ring-1 {
  width: 100px;
  height: 100px;
  border-top-color: #f59e0b;
  border-bottom-color: #d97706;
  animation: spinRing 2.5s linear infinite;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.vortex-orbit-ring.ring-2 {
  width: 125px;
  height: 125px;
  border-left-color: #a855f7;
  border-right-color: #ec4899;
  animation: spinRingRev 3.5s linear infinite;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.vortex-orbit-ring.ring-3 {
  width: 150px;
  height: 150px;
  border-top-color: rgba(245, 158, 11, 0.5);
  border-right-color: rgba(99, 102, 241, 0.6);
  animation: spinRing 5s linear infinite;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinRingRev {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

/* Status Text Group */
.loading-status-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.loading-brand-pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  text-transform: uppercase;
}

.loading-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeTitle 0.4s ease;
}

@keyframes fadeTitle {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.loading-sub-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.6;
  max-width: 440px;
}

.loading-progress-track {
  width: 100%;
  max-width: 340px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 1.25rem;
  position: relative;
}

.loading-progress-glow {
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
  border-radius: 6px;
  position: absolute;
  top: 0;
  left: 0;
  animation: cosmicProgressBar 2.2s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.8);
}

@keyframes cosmicProgressBar {
  0% { left: 0%; width: 15%; }
  50% { left: 35%; width: 65%; }
  100% { left: 85%; width: 20%; }
}

