/* ==========================================================================
   MADAM 168 (มาดาม 168 / madam168) — MAIN DESIGN SYSTEM (PROTOTYPE-FAITHFUL)
   Theme: Cosmic Glam Galaxy, Starlight 24K Gold & Prismatic Pearl White
   ========================================================================== */

:root {
  /* Core Palette: Deep Cosmic Galaxy Purple, 24K Gold & Prismatic Pearl White */
  --bg-obsidian: #0B0518;
  --bg-surface: #160B2E;
  --bg-elevated: #221045;
  --bg-glass: rgba(24, 11, 48, 0.86);

  /* High-Contrast Prismatic Pearl White Surfaces (Matches Approved Prototypes) */
  --pearl-white: #FFFFFF;
  --pearl-soft: #F6F2FF;
  --pearl-border: #E9D5FF;
  --pearl-text: #1A0B36;
  --pearl-muted: #4C3575;

  /* 24K Starlight Gold & Nebula Violet Accents */
  --gold-24k: #FFD700;
  --sun-yellow: #FDE047;
  --gold-amber: #F59E0B;
  --galaxy-purple: #9333EA;
  --nebula-violet: #C084FC;
  --cosmic-pink: #F472B6;

  /* Gradients */
  --grad-gold: linear-gradient(135deg, #FEF08A 0%, #FFD700 45%, #F59E0B 100%);
  --grad-galaxy: linear-gradient(135deg, #2E1065 0%, #581C87 50%, #7E22CE 100%);
  --grad-pearl: linear-gradient(180deg, #FFFFFF 0%, #F5F0FF 100%);
  --grad-cosmic-card: linear-gradient(160deg, rgba(46, 16, 101, 0.92) 0%, rgba(18, 8, 38, 0.96) 100%);

  /* Typography Colors on Dark */
  --text-ivory: #FFFFFF;
  --text-champagne: #E9D5FF;
  --text-muted: #B89CE0;

  /* Borders & Glows */
  --border-gold: rgba(255, 215, 0, 0.45);
  --border-gold-strong: #FFD700;
  --border-violet: rgba(192, 132, 252, 0.38);
  --shadow-gold-glow: 0 10px 30px rgba(255, 215, 0, 0.25);
  --shadow-violet-glow: 0 14px 36px rgba(147, 51, 234, 0.35);
  --shadow-card: 0 18px 42px rgba(5, 2, 12, 0.78);

  /* Fonts */
  --font-heading: 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii & Spacing */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --radius-pill: 999px;
  --container-max: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-ivory);
  font-family: var(--font-body);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 18% 10%, rgba(147, 51, 234, 0.28) 0%, transparent 42%),
    radial-gradient(circle at 82% 16%, rgba(255, 215, 0, 0.14) 0%, transparent 38%),
    radial-gradient(circle at 50% 62%, rgba(192, 132, 252, 0.14) 0%, transparent 50%);
  color: var(--text-ivory);
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--gold-24k);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--sun-yellow);
}

ul, ol {
  list-style-position: inside;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.28;
  color: var(--text-ivory);
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   FLOATING PILL-GLASS GALAXY HEADER (MATCHING PROTOTYPE 01, 02, 03)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 1000;
  padding: 0 16px;
  margin-bottom: 8px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
  padding: 8px 22px;
  background: rgba(20, 9, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 36px rgba(6, 2, 15, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mascot-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(255, 215, 0, 0.4));
  transition: transform 0.25s ease;
}

.brand-logo:hover .logo-mascot-img {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  color: var(--text-champagne);
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
  background: rgba(147, 51, 234, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.45);
}

.dropdown-arrow {
  font-size: 0.65rem;
  opacity: 0.75;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: #170B32;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
  z-index: 1100;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(192, 132, 252, 0.16);
}

.dropdown-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.91rem;
  font-weight: 600;
  color: var(--gold-24k);
}

.dropdown-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-champagne);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Pearl White Login Pill & 24K Gold Register Pill (Matches Prototype 01) */
.btn-header-login {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #FFFFFF;
  background: var(--grad-pearl);
  color: var(--pearl-text);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.22);
}

.btn-header-login:hover {
  background: #FFFFFF;
  color: #581C87;
  transform: translateY(-1px);
}

.btn-header-register {
  display: inline-flex;
  align-items: center;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: #1A0B36;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.42);
}

.btn-header-register:hover {
  filter: brightness(1.08);
  color: #0B0518;
  transform: translateY(-1px);
}

/* Mobile Drawer */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  cursor: pointer;
  padding: 8px;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background: var(--gold-24k);
  border-radius: 2px;
}

.mobile-nav-drawer {
  display: none;
  background: #14082C;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  margin-top: 8px;
  padding: 18px 20px;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.mobile-brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold-24k);
}

.mobile-drawer-close {
  background: none;
  border: none;
  color: var(--text-ivory);
  font-size: 1.6rem;
  cursor: pointer;
}

.mobile-drawer-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.mobile-nav-list {
  list-style: none;
}

.mobile-nav-link {
  display: block;
  padding: 10px 0;
  color: var(--text-ivory);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-heading);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn-gold-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--grad-gold);
  color: #1A0B36;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.96rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(255, 215, 0, 0.38);
  transition: all 0.25s ease;
}

.btn-gold-solid:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: #0B0518;
}

.btn-pearl-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--grad-pearl);
  color: var(--pearl-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.96rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.22);
  transition: all 0.25s ease;
}

.btn-pearl-solid:hover {
  background: #FFFFFF;
  color: #6B21A8;
  transform: translateY(-2px);
}

/* ==========================================================================
   PROTOTYPE 01: SPLIT-PORTAL COSMIC HERO + 2x2 CRYSTAL STAT POD
   ========================================================================== */
.madam-hero-section {
  padding: 18px 0 28px;
}

.madam-hero-portal-grid {
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.madam-portal-showcase {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  background: radial-gradient(circle at 30% 50%, rgba(147, 51, 234, 0.42), rgba(11, 5, 24, 0.95));
  box-shadow: var(--shadow-card), 0 0 36px rgba(147, 51, 234, 0.32);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  min-height: 390px;
}

.madam-portal-visual-col {
  position: relative;
  height: 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.madam-portal-ring {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 8px;
  background: conic-gradient(from 45deg, #FFD700, #C084FC, #FFFFFF, #9333EA, #FFD700);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.35), 0 0 60px rgba(147, 51, 234, 0.45);
}

.madam-portal-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #0B0518;
}

.madam-portal-copy-col {
  padding: 28px 28px 28px 10px;
  z-index: 2;
}

.madam-cosmic-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--gold-24k);
  color: var(--sun-yellow);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.madam-portal-copy-col h1 {
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  color: #FFFFFF;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.8);
  margin-bottom: 12px;
}

.madam-portal-copy-col h1 span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.madam-portal-copy-col p {
  font-size: 0.95rem;
  color: var(--text-champagne);
  margin-bottom: 20px;
}

/* Right 40%: 2x2 Crystal Stat Pod (Matches Prototype 01 Right Side) */
.madam-crystal-pod {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.madam-crystal-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, rgba(34, 16, 69, 0.82) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 28px rgba(7, 3, 18, 0.65);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.madam-crystal-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-24k);
}

.madam-crystal-val {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  font-weight: 800;
  color: var(--gold-24k);
  line-height: 1.15;
  margin-bottom: 6px;
}

.madam-crystal-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #FFFFFF;
}

.madam-crystal-sub {
  font-size: 0.75rem;
  color: var(--text-champagne);
  margin-top: 3px;
}

/* ==========================================================================
   PROTOTYPE 01: PRISMATIC PEARL WHITE & GOLD PILL DOCK BAR
   ========================================================================== */
.madam-pill-dock-wrap {
  margin-top: 22px;
}

.madam-pill-dock {
  background: var(--grad-pearl);
  border: 2.5px solid var(--gold-24k);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 215, 0, 0.22);
}

.madam-dock-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--pearl-text);
  background: transparent;
  transition: all 0.22s ease;
}

.madam-dock-item:hover,
.madam-dock-item.active {
  background: var(--grad-galaxy);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(88, 28, 135, 0.38);
}

.madam-dock-icon {
  font-size: 1.05rem;
}

/* ==========================================================================
   PROTOTYPE 01: 3-COLUMN CENTER-ELEVATED ARCH SHOWCASE (WHITE CENTER CARD)
   ========================================================================== */
.madam-arch-section {
  padding: 44px 0 36px;
}

.madam-arch-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.madam-arch-side-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.madam-nebula-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border-violet);
  background: var(--grad-cosmic-card);
  min-height: 215px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.madam-nebula-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-24k);
  box-shadow: var(--shadow-violet-glow);
}

.madam-nebula-copy {
  padding: 22px 16px 22px 22px;
  z-index: 2;
}

.madam-nebula-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 215, 0, 0.16);
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: var(--gold-24k);
  font-size: 0.73rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.madam-nebula-copy h3 {
  font-size: 1.24rem;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.madam-nebula-copy p {
  font-size: 0.83rem;
  color: var(--text-champagne);
  margin-bottom: 12px;
}

.madam-nebula-visual {
  height: 100%;
  min-height: 195px;
  overflow: hidden;
}

.madam-nebula-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.madam-nebula-card:hover .madam-nebula-visual img {
  transform: scale(1.07);
}

/* CENTER COLUMN: Prismatic Pearl White & 24K Gold Tall Flagship Card */
.madam-center-flagship-card {
  background: var(--grad-pearl);
  color: var(--pearl-text);
  border: 3px solid var(--gold-24k);
  border-radius: var(--radius-xl);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.8), 0 0 38px rgba(255, 215, 0, 0.32);
  position: relative;
  transform: translateY(-8px);
}

.madam-center-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  background: var(--grad-galaxy);
  color: var(--gold-24k);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.madam-center-flagship-card h2 {
  color: var(--pearl-text);
  font-size: 1.75rem;
  margin-top: 10px;
}

.madam-center-rtp {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #7E22CE;
  margin-bottom: 14px;
}

.madam-center-visual {
  width: 100%;
  max-width: 310px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gold-24k);
  box-shadow: 0 12px 26px rgba(26, 11, 54, 0.22);
  margin-bottom: 16px;
}

.madam-center-desc {
  font-size: 0.9rem;
  color: var(--pearl-muted);
  margin-bottom: 18px;
}

/* ==========================================================================
   PROTOTYPE 01: DUAL-SURFACE STARLIGHT TURNOVER & BONUS ORB SIMULATOR
   ========================================================================== */
.madam-simulator-section {
  padding: 36px 0;
}

.madam-dual-simulator {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2.5px solid var(--gold-24k);
  box-shadow: var(--shadow-card), 0 0 36px rgba(147, 51, 234, 0.3);
}

/* Left Half: Deep Cosmic Purple with Glowing Starlight Progress Orb */
.madam-sim-left-cosmic {
  background: linear-gradient(145deg, #1E0B3E 0%, #0D051D 100%);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  position: relative;
}

.madam-sim-left-cosmic h2 {
  font-size: 1.65rem;
  color: #FFFFFF;
}

.madam-sim-left-cosmic p {
  font-size: 0.92rem;
  color: var(--text-champagne);
}

.madam-orb-display-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.madam-starlight-orb {
  width: 158px;
  height: 158px;
  border-radius: 50%;
  padding: 10px;
  background: conic-gradient(var(--gold-24k) 0% 85%, rgba(255, 255, 255, 0.14) 85% 100%);
  box-shadow: 0 0 32px rgba(255, 215, 0, 0.38), inset 0 0 20px rgba(147, 51, 234, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.madam-orb-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #14082C;
  border: 2px solid rgba(255, 215, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}

.madam-orb-pct {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gold-24k);
  line-height: 1.1;
}

.madam-orb-sub {
  font-size: 0.76rem;
  color: var(--text-champagne);
}

.madam-orb-metrics {
  flex: 1;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.madam-orb-metric-row {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
}

.madam-orb-metric-row strong {
  color: var(--gold-24k);
  font-family: var(--font-mono);
  font-size: 0.96rem;
}

/* Right Half: Prismatic Pearl White Panel with 3 Bonus Tier Cards */
.madam-sim-right-pearl {
  background: var(--grad-pearl);
  color: var(--pearl-text);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.madam-sim-right-pearl h3 {
  color: var(--pearl-text);
  font-size: 1.28rem;
}

.madam-tier-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.madam-tier-card {
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  border: 2px solid #D8B4FE;
  background: #FFFFFF;
  color: var(--pearl-text);
  transition: all 0.22s ease;
}

.madam-tier-card.tier-silver {
  background: linear-gradient(180deg, #F8FAFC 0%, #E2E8F0 100%);
  border-color: #CBD5E1;
}

.madam-tier-card.tier-gold {
  background: var(--grad-gold);
  border-color: #B45309;
  color: #1A0B36;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.28);
}

.madam-tier-card.tier-cosmic {
  background: var(--grad-galaxy);
  border-color: var(--gold-24k);
  color: #FFFFFF;
}

.madam-tier-card.active {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(88, 28, 135, 0.32);
  outline: 3px solid var(--gold-24k);
}

.madam-tier-crown {
  font-size: 1.45rem;
  display: block;
  margin-bottom: 4px;
}

.madam-tier-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  display: block;
}

.madam-tier-desc {
  font-size: 0.74rem;
  opacity: 0.88;
  display: block;
  margin-top: 2px;
}

.madam-deposit-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.madam-dep-chip {
  flex: 1;
  min-width: 85px;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #C084FC;
  background: #FFFFFF;
  color: var(--pearl-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.madam-dep-chip.active,
.madam-dep-chip:hover {
  background: #581C87;
  color: #FFFFFF;
  border-color: var(--gold-24k);
}

/* ==========================================================================
   TABLES, EDITORIAL SECTIONS & FAQ
   ========================================================================== */
.madam-white-table-wrap {
  background: var(--grad-pearl);
  color: var(--pearl-text);
  border: 2.5px solid var(--gold-24k);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
  padding: 6px;
}

.madam-white-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  color: var(--pearl-text);
}

.madam-white-table thead th {
  background: var(--grad-galaxy);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 14px 16px;
}

.madam-white-table thead th:first-child {
  border-top-left-radius: 12px;
}

.madam-white-table thead th:last-child {
  border-top-right-radius: 12px;
}

.madam-white-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #E9D5FF;
  color: var(--pearl-text);
  font-weight: 500;
}

.madam-white-table tbody tr:last-child td {
  border-bottom: none;
}

.madam-white-table tbody tr:hover td {
  background: #EFE7FF;
}

.madam-table-btn {
  display: inline-block;
  padding: 6px 16px;
  background: var(--grad-gold);
  color: #1A0B36;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
}

/* Editorial Content Card */
.madam-editorial-section {
  padding: 36px 0;
}

.madam-editorial-card {
  background: linear-gradient(165deg, rgba(30, 11, 62, 0.92), rgba(14, 6, 30, 0.96));
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-card);
}

.madam-editorial-card h2 {
  font-size: 1.58rem;
  color: var(--gold-24k);
  margin-bottom: 14px;
}

.madam-editorial-card h3 {
  font-size: 1.22rem;
  color: var(--sun-yellow);
  margin: 22px 0 10px;
}

.madam-editorial-card p {
  color: var(--text-champagne);
  margin-bottom: 14px;
}

/* 2-Column FAQ Grid (Matches Prototype 01 Bottom) */
.madam-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faq-item {
  background: rgba(24, 11, 48, 0.9);
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--gold-24k);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #FFFFFF;
}

.faq-toggle-icon {
  color: var(--gold-24k);
  font-weight: 700;
}

.faq-answer {
  padding: 0 20px 16px;
  color: var(--text-champagne);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

/* ==========================================================================
   DEEP COSMIC GALAXY FOOTER
   ========================================================================== */
.site-footer {
  background: #070310;
  border-top: 2px solid var(--border-gold);
  padding: 54px 0 30px;
  margin-top: 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-desc {
  color: var(--text-champagne);
  font-size: 0.88rem;
  margin: 14px 0;
}

.footer-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold-24k);
  font-size: 0.75rem;
  font-weight: 600;
}

.footer-col-title {
  font-size: 1.05rem;
  color: var(--gold-24k);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-champagne);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--gold-24k);
}

.footer-disclaimer {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 22px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.82rem;
}
