/* SmartWill India - Design System & Modern CSS Framework */
/* Self-hosted GDPR/DPDP privacy-safe fonts loaded via HTML <link> */

:root, [data-theme="light"] {
  color-scheme: light;
  /* Dayos Brutalist Editorial Showroom — Color System */
  --color-carbon-black: #000000;
  --color-paper-white: #ffffff;
  --color-warm-canvas: #e5e5e5;
  --color-mist-gray: #f3f3f3;
  --color-ash: #c6c6c6;
  --color-smoke: #979797;
  --color-slate: #444444;
  --color-graphite: #2f2f2f;
  --color-mint-chip: #d1ffca;
  --color-voltage-yellow: #fff100;

  /* Surfaces & Canvas */
  --bg-dark: #e5e5e5;               /* Warm Canvas page background */
  --bg-card: #ffffff;               /* Flat paper white cards */
  --bg-card-hover: #ffffff;
  --bg-glass: #ffffff;
  --bg-surface: #f3f3f3;            /* Mist gray */
  --bg-input: #ffffff;
  --bg-inverted: #000000;           /* Carbon black inverted blocks */
  --card-inverted-bg: #000000;
  --card-inverted-text: #ffffff;
  --footer-bg: #000000;
  --footer-text: #ffffff;
  --footer-border: #222222;
  
  /* Primary & Accent Colors */
  --primary: #000000;
  --primary-hover: #222222;
  --primary-glow: rgba(0, 0, 0, 0.08);
  --primary-contrast: #ffffff;
  --accent-gold: #000000;           /* High-contrast carbon black CTA */
  --accent-gold-hover: #222222;
  --accent-gold-glow: none;
  --btn-gold-bg: #000000;
  --btn-gold-text: #ffffff;
  --btn-gold-border: #000000;
  --btn-gold-hover: #222222;
  --accent-mint: #d1ffca;           /* Signature mint chip tag */
  --accent-yellow: #fff100;         /* Voltage yellow highlight */
  --accent-emerald: #059669;
  --accent-rose: #e11d48;
  
  /* Neutral Typography — Maximum Contrast (WCAG AAA) */
  --text-main: #000000;
  --text-muted: #444444;            /* 7.1:1 on #e5e5e5 (WCAG AAA) */
  --text-subtle: #767676;           /* 4.54:1 on #e5e5e5 (WCAG AA) */
  --border-light: #d8d8d8;
  --border-focus: #000000;
  
  /* Typography — Condensed Display & Workhorse Neo-Grotesque */
  --font-display: 'Barlow Condensed', 'Bebas Neue', sans-serif;
  --font-heading: 'Barlow Condensed', 'Bebas Neue', 'Nirmala UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', ui-monospace, monospace;
  --headline-transform: uppercase;
  --headline-line-height: 0.92;

  /* Atmospheric & Surface FX */
  --shadow-glass: none;
  --shadow-glow: none;
  --backdrop-blur: none;
  --glow-display: none;
  --navbar-bg: #ffffff;
  --navbar-border: #d8d8d8;
  --navbar-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --card-border: 1px solid var(--border-light);

  /* Typography Scale */
  --text-caption: 12px;
  --leading-caption: 1.6;
  --text-body-sm: 14px;
  --leading-body-sm: 1.3;
  --text-body: 16px;
  --leading-body: 1.25;
  --text-subheading: 18px;
  --leading-subheading: 1.33;
  --text-subheading-lg: 20px;
  --leading-subheading-lg: 1.2;
  --text-heading-sm: 28px;
  --leading-heading-sm: 1.3;
  --text-heading: 40px;
  --leading-heading: 1.1;
  --text-heading-lg: 48px;
  --leading-heading-lg: 0.9;
  --text-display: 80px;
  --leading-display: 0.9;
  --text-display-xl: 130px;
  --leading-display-xl: 0.9;

  /* Spacing Scale (8px base) */
  --spacing-8: 8px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-40: 40px;
  --spacing-64: 64px;
  --spacing-80: 80px;
  --spacing-96: 96px;

  /* Border Radii — Large & Deliberate (Brutalist Showroom) */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-pill: 48px;
  --radius-tag: 64px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   THEME TOKENS: DARK (Editorial Luxury / Obsidian Navy & Champagne Brass)
   ========================================================================== */
[data-theme="dark"] {
  color-scheme: dark;
  /* Surfaces & Canvas */
  --bg-dark: #080C1A;               /* Obsidian Navy page background */
  --bg-card: rgba(13, 19, 43, 0.75);/* Translucent executive card */
  --bg-card-hover: rgba(20, 29, 64, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.035);
  --bg-surface: #0D132B;
  --bg-input: rgba(10, 15, 36, 0.85);
  --bg-inverted: #ffffff;           /* White inverted blocks in dark mode */
  --card-inverted-bg: #0D132B;
  --card-inverted-text: #F8FAFC;
  --footer-bg: #040711;
  --footer-text: #F8FAFC;
  --footer-border: rgba(223, 183, 108, 0.16);

  /* Primary & Accent Colors — Warm Champagne Brass */
  --primary: #DFB76C;
  --primary-hover: #ECD093;
  --primary-glow: rgba(223, 183, 108, 0.28);
  --primary-contrast: #080C1A;
  --accent-gold: #DFB76C;
  --accent-gold-hover: #ECD093;
  --accent-gold-glow: rgba(223, 183, 108, 0.28);
  --btn-gold-bg: #DFB76C;
  --btn-gold-text: #080C1A;
  --btn-gold-border: #DFB76C;
  --btn-gold-hover: #ECD093;
  --accent-mint: #10B981;
  --accent-yellow: #DFB76C;
  --accent-emerald: #10B981;
  --accent-rose: #F43F5E;

  /* Neutral Typography — WCAG AAA / AA compliant */
  --text-main: #F8FAFC;
  --text-muted: #A6B4C9;            /* 9.27:1 contrast on #080C1A (WCAG AAA) */
  --text-subtle: #8393A8;           /* 6.22:1 contrast on #080C1A (WCAG AA) */
  --border-light: rgba(223, 183, 108, 0.16);
  --border-focus: rgba(223, 183, 108, 0.55);

  /* Typography — Editorial Serif Display */
  --font-display: 'Newsreader', Georgia, serif;
  --font-heading: 'Newsreader', 'Nirmala UI', 'Gautami', 'Mandali', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', ui-monospace, monospace;
  --headline-transform: none;
  --headline-line-height: 1.2;

  /* Atmospheric & Surface FX */
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px var(--accent-gold-glow);
  --backdrop-blur: blur(16px);
  --glow-display: block;
  --navbar-bg: rgba(8, 12, 26, 0.85);
  --navbar-border: rgba(223, 183, 108, 0.16);
  --navbar-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --card-border: 1px solid var(--border-light);
}

/* Smooth Theme Transitions */
html {
  transition: background-color 0.25s ease, color 0.25s ease;
}
body, .glass-card, .navbar, .nav-container, .wizard-card, .stepper-wrapper, .legal-card, .legal-sidebar, .footer {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  html, body, .glass-card, .navbar, .nav-container, .wizard-card, .stepper-wrapper, .legal-card, .legal-sidebar, .footer {
    transition: none !important;
  }
}

/* Global High-Contrast Footer Styling (ensures readability in all themes) */
.footer {
  background: var(--footer-bg, #040711) !important;
  color: #f8fafc !important;
}
.footer h4, .footer .footer-col h4 {
  color: #ffffff !important;
}
.footer-desc {
  color: #cbd5e1 !important;
}
.footer-links a {
  color: #e2e8f0 !important;
}
.footer-links a:hover {
  color: #dfb76c !important;
}
.footer-disclaimer {
  color: #94a3b8 !important;
}
.footer-bottom {
  color: #cbd5e1 !important;
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

/* Theme Switcher Pill Component */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}
.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}
.theme-toggle-btn:active {
  transform: scale(0.97);
}
.theme-toggle-btn .toggle-icon {
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Global Hamburger Button — accessible 44px tap target */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  cursor: pointer;
  z-index: 101;
  pointer-events: auto !important;
  transition: all 0.2s ease;
}
.nav-hamburger:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
  position: relative;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--headline-line-height);
  letter-spacing: -0.025em;
  text-transform: var(--headline-transform);
  color: var(--text-main);
  text-wrap: balance;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

p {
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1 { font-size: clamp(2.8rem, 6.5vw, 5.5rem); line-height: var(--headline-line-height); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: var(--headline-line-height); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.05; }
h4 { font-size: 1.25rem; line-height: 1.15; }

a {
  color: inherit;
  text-decoration: none;
}

/* Brutalist Content Card — Flat Paper White on Warm Gray Canvas (Light) / Obsidian Navy (Dark) */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: none;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

/* Inverted High-Contrast Surface */
.card-inverted {
  background: var(--card-inverted-bg);
  color: var(--card-inverted-text);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

/* Monochromatic Text Utility — No Gradients */
.gradient-text, .gradient-gold {
  color: var(--primary);
  background: none;
  -webkit-text-fill-color: initial;
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-tag);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.badge-mint, .badge-gold {
  background: var(--accent-mint);
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.badge-yellow {
  background: var(--accent-yellow);
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.badge-blue {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.badge-emerald {
  background: var(--accent-mint);
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Buttons — Flat, High-Contrast Editorial Controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  outline: none;
  position: relative;
  overflow: hidden;
}

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

.btn-primary, .btn-gold {
  background: var(--btn-gold-bg);
  color: var(--btn-gold-text);
  border: 1px solid var(--btn-gold-border);
  box-shadow: none;
}

.btn-primary:hover, .btn-gold:hover {
  background: var(--btn-gold-hover);
  color: var(--btn-gold-text);
  border-color: var(--btn-gold-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  color: var(--text-main);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--border-focus);
  color: var(--primary);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: var(--accent-rose);
  margin-left: 2px;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
  color: var(--text-subtle);
}

.form-select option {
  background: var(--bg-surface);
  color: var(--text-main);
}

/* Native Date Picker & Form Controls — Crisp Cross-Theme Contrast */
input[type="date"] {
  color-scheme: light;
}

[data-theme="dark"] input[type="date"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Text Alignment Utilities */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* Brand Logo — Dynamic Dual-Theme Support */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

[data-theme="light"] .logo-dark-theme {
  display: none !important;
}
[data-theme="light"] .logo-light-theme {
  display: block !important;
}

[data-theme="dark"] .logo-light-theme {
  display: none !important;
}
[data-theme="dark"] .logo-dark-theme {
  display: block !important;
}

/* Language Switcher Component */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 2px 3px;
}

.lang-pills-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.3;
}

.lang-btn:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
  background: var(--text-main);
  color: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-dropdown-mobile {
  display: none !important;
}

.lang-select-mobile {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 767px) {
  .lang-pills-desktop {
    display: flex;
  }
  .lang-dropdown-mobile {
    display: none !important;
  }
}

/* Non-blocking i18n transition classes */
.i18n-transition-out {
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}

.i18n-transition-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 150ms ease-in, transform 150ms ease-in;
}

/* Notice & Tip Alert Box System (Accessible Dual-Theme) */
.notice-box-blue {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.notice-box-blue .notice-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.notice-box-blue .notice-title {
  font-weight: 700;
  color: #1d4ed8;
  margin-right: 4px;
}

.notice-box-blue .notice-desc {
  color: #1e293b;
  line-height: 1.5;
}

[data-theme="dark"] .notice-box-blue {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.35);
}

[data-theme="dark"] .notice-box-blue .notice-title {
  color: #93c5fd;
}

[data-theme="dark"] .notice-box-blue .notice-desc {
  color: #e2e8f0;
}

/* Grid & Utilities */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Background Glow Effects
   FIXED: Changed to position:fixed so they never affect document layout/width.
   position:absolute with negative coords caused horizontal overflow in Android WebView. */
.bg-glow-blue {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
  top: -80px;
  right: 0;
  pointer-events: none;
  z-index: 0;
  display: var(--glow-display);
}

.bg-glow-gold {
  position: fixed;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  display: var(--glow-display);
}

/* Modal Overlay & Card System (Global) */
.payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.payment-modal-card {
  width: 100%;
  max-width: 440px;
  padding: 1.75rem;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .payment-modal-card {
  background: #0d132b !important;
  color: #F8FAFC !important;
  border-color: rgba(223, 183, 108, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

[data-theme="light"] .payment-modal-card {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: var(--border-light);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

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

/* ==========================================================================
   Session Inactivity Security Warning Modal
   ========================================================================== */
.session-warning-card {
  max-width: 420px;
  text-align: center;
  padding: 2rem 1.75rem;
}

.session-warning-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.15rem;
}

.session-warning-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.6rem 0;
  letter-spacing: -0.01em;
}

.session-warning-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
}

.session-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-gold);
  margin: 0 4px;
}

.session-progress-track {
  width: 100%;
  height: 5px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.session-progress-fill {
  height: 100%;
  background: var(--accent-gold);
  transition: width 1s linear;
}

.session-warning-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

.modal-header .brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

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

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

.payment-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.pay-tab {
  flex: 1;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

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

.pay-tab.active {
  background: var(--btn-gold-bg);
  color: var(--btn-gold-text);
  border-color: var(--btn-gold-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .pay-tab.active {
  background: #000000;
  color: #ffffff;
}

[data-theme="dark"] .pay-tab.active {
  background: #DFB76C;
  color: #080C1A;
}

/* User Profile Header Dropdown */
.user-profile-menu {
  position: relative;
  display: inline-block;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  padding: 4px 10px 4px 6px;
  border-radius: 30px;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.user-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.user-dropdown-menu {
  position: absolute;
  right: 0;
  top: 120%;
  width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  padding: 8px;
  overflow: hidden;
}

.dropdown-header {
  padding: 8px 12px;
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 6px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: var(--bg-surface);
  border-color: var(--border-light);
  color: var(--primary);
}

.dropdown-item.text-rose:hover {
  background: rgba(244, 63, 94, 0.12);
  color: #ef4444;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

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

.auth-divider span {
  padding: 0 12px;
}

.auth-modal-card {
  max-width: 440px !important;
}

.auth-modal-card .form-label {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 0.4rem;
}

.auth-modal-card .form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.auth-modal-card .form-control:focus {
  border-color: var(--border-focus);
}

#googleSignInBtn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

#googleSignInBtn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

/* Toast Notification System (Global) */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(15, 20, 50, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 99999;
  min-width: 320px;
  max-width: 480px;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.toast-show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
  margin: 0;
}

.toast-message {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 3px 0 0 0;
  line-height: 1.35;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
}

.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #f43f5e; }
.toast-info { border-left: 4px solid #3b82f6; }

.hidden { display: none !important; }
.w-full { width: 100%; }
.flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

/* ==========================================================================
   Modern Clean Dashboard Modal (Linear / Stripe / Vercel Grade)
   ========================================================================== */
.dashboard-modal-card {
  width: 92%;
  max-width: 720px;
  max-height: min(92vh, 740px);
  height: auto;
  overflow: hidden !important;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  padding: 0;
  display: flex;
  flex-direction: column;
  animation: dashboardPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.dashboard-modal-header {
  flex-shrink: 0;
  padding: 1.25rem 1.75rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.dashboard-user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-contrast);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  flex-shrink: 0;
}

[data-theme="dark"] .dashboard-avatar {
  background: var(--accent-gold);
  color: #080C1A;
}

.dashboard-user-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.dashboard-user-info p {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 0;
}

.dashboard-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #065F46;
  background: #D1FAE5;
  border: 1px solid #A7F3D0;
  padding: 2px 8px;
  border-radius: 999px;
}

[data-theme="dark"] .dashboard-badge-verified {
  color: #34D399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.dashboard-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.dashboard-modal-close:hover {
  background: var(--border-focus);
  border-color: var(--border-focus);
  color: var(--bg-card);
  transform: rotate(90deg);
}

.dashboard-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

.dashboard-modal-body::-webkit-scrollbar {
  width: 6px;
}

.dashboard-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-modal-body::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 999px;
}

/* Stats Row */
.dashboard-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.dashboard-stat-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s;
}

.dashboard-stat-pill:hover {
  border-color: var(--border-focus);
}

.dashboard-stat-pill .label {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-stat-pill .val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.dashboard-stat-pill .val.gold { color: var(--accent-gold); }
.dashboard-stat-pill .val.emerald { color: var(--accent-emerald); }

/* Will Card */
.dashboard-will-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: none;
  transition: all 0.25s ease;
}

.dashboard-will-card:hover {
  border-color: var(--border-focus);
  box-shadow: none;
}

.dashboard-will-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.dashboard-will-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-will-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.dashboard-will-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.dashboard-will-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  font-size: 0.775rem;
  color: var(--text-muted);
}

.dashboard-will-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.dashboard-will-actions .btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.dashboard-will-actions .btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  color: var(--primary);
}

.dashboard-badge-active-draft {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-weight: 700;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

[data-theme="dark"] .dashboard-badge-active-draft {
  background: rgba(223, 183, 108, 0.15);
  color: var(--accent-gold);
  border-color: rgba(223, 183, 108, 0.35);
}

.dashboard-badge-paid {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  font-weight: 700;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

[data-theme="dark"] .dashboard-badge-paid {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.35);
}

.dashboard-discount-note {
  font-size: 0.78rem;
  color: #065F46;
  background: #D1FAE5;
  border: 1px solid #A7F3D0;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

[data-theme="dark"] .dashboard-discount-note {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34D399;
}

/* Referral Box */
.dashboard-referral-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.dashboard-referral-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.dashboard-referral-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-referral-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.dashboard-referral-credit-pill {
  text-align: right;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.dashboard-referral-credit-pill .amt {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

[data-theme="light"] .dashboard-referral-credit-pill {
  background: var(--color-mint-chip);
  border: 1px solid #000000;
}

[data-theme="light"] .dashboard-referral-credit-pill .amt {
  color: #000000;
}

[data-theme="dark"] .dashboard-referral-credit-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .dashboard-referral-credit-pill .amt {
  color: #34D399;
}

.dashboard-referral-sharebar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.dashboard-referral-input {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-main);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  flex: 1;
  min-width: 0;
}

.dashboard-referral-sharebar .btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.dashboard-referral-sharebar .btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.dashboard-btn-whatsapp {
  background: #25D366;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.825rem;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #25D366;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  transition: all 0.2s ease;
}

.dashboard-btn-whatsapp:hover {
  background: #20BA5A;
  border-color: #20BA5A;
  box-shadow: none;
}

/* Modal Footer / Actions */
.dashboard-modal-footer {
  flex-shrink: 0;
  padding: 1.25rem 0 0.25rem;
  background: transparent;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-data-rights {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dashboard-data-rights .btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.dashboard-data-rights .btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  color: var(--primary);
}

.dashboard-modal-footer .btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.dashboard-modal-footer .btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

@media (max-width: 640px) {
  .dashboard-modal-card {
    width: 95%;
    max-height: 90vh;
    border-radius: var(--radius-md);
  }
  .dashboard-modal-header {
    padding: 0.85rem 1.15rem;
  }
  .dashboard-modal-header .brand {
    font-size: 1rem !important;
  }
  .dashboard-modal-close {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .dashboard-modal-body {
    padding: 1rem 0.85rem;
    gap: 1rem;
  }
  .dashboard-user-profile {
    gap: 10px;
  }
  .dashboard-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .dashboard-user-info h3 {
    font-size: 1.05rem;
    flex-wrap: wrap;
    gap: 6px;
  }
  /* Stats Strip: 3-column compact horizontal grid */
  .dashboard-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .dashboard-stat-pill {
    padding: 0.6rem 0.35rem;
    align-items: center;
    text-align: center;
    gap: 2px;
  }
  .dashboard-stat-pill .label {
    font-size: 0.625rem;
    justify-content: center;
    gap: 3px;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dashboard-stat-pill .val {
    font-size: 0.9rem;
  }
  /* Will Card Header: Stack badge & title, let tags flow naturally */
  .dashboard-will-card {
    padding: 1.15rem 1rem;
  }
  .dashboard-will-header {
    gap: 0.65rem;
  }
  .dashboard-will-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .dashboard-will-title {
    font-size: 1.15rem;
    line-height: 1.35;
  }
  .dashboard-will-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
  }
  .dashboard-will-meta-tag {
    padding: 3px 8px;
    font-size: 0.725rem;
    white-space: nowrap;
  }
  .dashboard-badge-paid,
  .dashboard-badge-active-draft {
    align-self: flex-start;
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  .dashboard-will-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    margin-top: 1rem;
    padding-top: 1rem;
  }
  .dashboard-will-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  /* Referral Program Card */
  .dashboard-referral-box {
    padding: 1.15rem 1rem;
  }
  .dashboard-referral-header {
    flex-direction: column;
    gap: 0.65rem;
  }
  .dashboard-referral-credit-pill {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
  }
  .dashboard-referral-credit-pill .amt {
    font-size: 1.1rem;
  }
  .dashboard-referral-sharebar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .dashboard-referral-sharebar .btn,
  .dashboard-referral-sharebar .dashboard-btn-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }
  /* Footer: Compact 2-column data rights + full-width sign out */
  .dashboard-modal-footer {
    padding: 1rem 0 0.25rem;
    margin-top: 0.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .dashboard-data-rights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .dashboard-data-rights .btn {
    font-size: 0.72rem !important;
    padding: 8px 4px !important;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
  }
  .dashboard-modal-footer > button {
    width: 100%;
    justify-content: center;
    padding: 9px !important;
  }
}

/* ==========================================================================
   Notice Box Blue — Dual-Theme Accessible Information Callout
   ========================================================================== */
.notice-box-blue {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.28);
  font-size: 0.86rem;
  line-height: 1.5;
  color: #1e293b; /* Slate text in Light Mode: > 10:1 WCAG AAA contrast */
}

.notice-box-blue .notice-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.notice-box-blue .notice-title {
  color: #1d4ed8; /* Royal Blue in Light Mode: > 6:1 WCAG AA contrast */
  font-weight: 700;
  margin-right: 0.35rem;
}

.notice-box-blue .notice-desc {
  color: inherit;
}

/* Dark Mode Overrides */
[data-theme="dark"] .notice-box-blue {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(96, 165, 250, 0.3);
  color: #f1f5f9; /* Bright Slate text in Dark Mode: > 12:1 WCAG AAA contrast */
}

[data-theme="dark"] .notice-box-blue .notice-title {
  color: #93c5fd; /* Soft Sky Blue in Dark Mode: > 8:1 WCAG AAA contrast */
}

/* ==========================================================================
   User Profile & Authentication Dropdown System (Desktop & Mobile Drawer)
   ========================================================================== */
.user-profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.user-profile-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.user-name-text {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 250px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 12px;
  z-index: 99999;
  box-sizing: border-box;
  animation: dropdownFadeIn 0.18s ease-out;
}

.user-dropdown-menu.hidden {
  display: none !important;
}

[data-theme="dark"] .user-dropdown-menu {
  background: #0d132b;
  border-color: rgba(223, 183, 108, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}

[data-theme="light"] .user-dropdown-menu {
  background: #ffffff;
  border-color: var(--border-light);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Mobile Navigation Drawer: Accordion Full-Width Behavior */
.auth-nav-box-mobile {
  width: 100%;
}

.auth-nav-box-mobile .user-profile-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: static;
  gap: 0.5rem;
}

.auth-nav-box-mobile .user-profile-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  box-sizing: border-box;
}

.auth-nav-box-mobile .user-name-text {
  max-width: none;
}

.auth-nav-box-mobile .user-dropdown-menu {
  position: static !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin-top: 6px;
  box-shadow: none !important;
  border: 1px solid var(--border-light) !important;
  background: var(--bg-surface) !important;
  border-radius: var(--radius-md) !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  animation: none !important;
}

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

/* ── Core Layout & Spacing Utilities (Self-contained, non-blocking) ── */
.container {
  width: 100%;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.d-none { display: none !important; }
.d-flex { display: flex !important; }
@media (min-width: 768px) {
  .d-md-flex { display: flex !important; }
  .d-md-none { display: none !important; }
}
.m-0 { margin: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.p-4 { padding: 1.5rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

/* ── Universal High-Impact Visual UI Components ── */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 2.5rem;
}
.stat-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md, 14px);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold, #dfb76c);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0.35rem 0;
  font-family: var(--font-heading, inherit);
}
.stat-gold { color: #dfb76c; }
[data-theme="light"] .stat-gold { color: #b45309; }
.stat-red { color: #ef4444; }
.stat-green { color: #10b981; }
.stat-blue { color: #3b82f6; }
.stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.doc-showcase-box {
  background: var(--bg-card);
  border: 1px solid rgba(223, 183, 108, 0.35);
  border-radius: var(--radius-md, 16px);
  padding: 1.75rem;
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
}
.doc-showcase-info h3 {
  margin-top: 0 !important;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}
.doc-showcase-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.doc-preview-paper {
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 12px 28px -6px rgba(0,0,0,0.25);
  font-family: 'Times New Roman', serif;
  font-size: 0.7rem;
  line-height: 1.45;
  position: relative;
  user-select: none;
  transition: transform 0.25s ease;
}
.doc-preview-paper:hover {
  transform: scale(1.02);
}
.doc-stamp {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 1px solid #b45309;
  background: #fef3c7;
  color: #92400e;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  text-align: center;
  line-height: 1;
}
.doc-title-line {
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #9ca3af;
  padding-bottom: 0.35rem;
  margin-bottom: 0.6rem;
  color: #111827;
}
.doc-clause-title {
  font-weight: 700;
  font-size: 0.68rem;
  color: #1f2937;
  margin-top: 0.4rem;
}
.doc-clause-text {
  color: #4b5563;
  font-size: 0.62rem;
}
.doc-witness-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #9ca3af;
  font-family: sans-serif;
  font-size: 0.58rem;
}
.doc-witness-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.35rem;
  color: #374151;
}
.doc-court-badge {
  margin-top: 0.6rem;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 4px;
  padding: 0.25rem;
  text-align: center;
  font-family: sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
}

.stepper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.25rem 0;
}
.stepper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md, 14px);
  padding: 1.5rem 1.25rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stepper-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold, #dfb76c);
}
.stepper-num {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--btn-gold-bg, #000000);
  color: var(--btn-gold-text, #ffffff);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
[data-theme="dark"] .stepper-num {
  background: var(--btn-gold-bg, #dfb76c);
  color: var(--btn-gold-text, #080c1a);
}
.stepper-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}
.stepper-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.dos-donts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.25rem 0;
}
.dos-card {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md, 14px);
  padding: 1.5rem;
}
.donts-card {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md, 14px);
  padding: 1.5rem;
}
.dos-title {
  color: #10b981;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.donts-title {
  color: #ef4444;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dos-card ul, .donts-card ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}
.dos-card li, .donts-card li {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Comparison Matrix Cards */
.vs-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.vs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md, 16px);
  padding: 1.75rem;
  position: relative;
}
.vs-card.highlight {
  border: 2px solid var(--accent-gold, #dfb76c);
  background: linear-gradient(180deg, rgba(223, 183, 108, 0.08) 0%, var(--bg-card) 100%);
}
.vs-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}
.vs-card-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}
.vs-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.vs-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}
.vs-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

@media (max-width: 768px) {
  .stat-cards-grid,
  .stepper-grid,
  .dos-donts-grid,
  .vs-matrix-grid {
    grid-template-columns: 1fr;
  }
  .doc-showcase-box {
    grid-template-columns: 1fr;
  }
}

/* ── Universal Navbar Scrolled Glassmorphism & Alignment ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  padding: 0.75rem 1rem;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease, padding 0.2s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid var(--border-light) !important;
  padding: 0.5rem 1rem !important;
  pointer-events: auto !important;
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(8, 12, 26, 0.94) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

.navbar.scrolled .nav-container {
  border-color: transparent !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0.25rem 0.5rem !important;
}

/* Universal Content Scroll Offset */
h1, h2, h3, h4, section, article {
  scroll-margin-top: 100px;
}

/* Universal Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}
.lang-badge {
  background: rgba(223, 183, 108, 0.12);
  color: var(--accent-gold, #dfb76c) !important;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.82rem;
}

/* Universal Hamburger Button for responsive headers */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  z-index: 200;
  border-radius: var(--radius-sm, 6px);
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 991px) {
  .nav-links {
    display: none !important;
  }
  .hamburger-btn {
    display: flex !important;
  }
}

.mobile-menu.active,
.mobile-menu.open,
.nav-mobile-menu.active,
.nav-mobile-menu.open {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}




