/**
 * IASClassroom.com - Master Stylesheet
 * Prof S.P. Goyal's IAS Classroom
 * Premium Academic Editorial Design System
 */

/* ==========================================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Theme: Light (DEFAULT) */
  --bg-page: #fbf9f5;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #f5f1e9;
  --bg-accent-subtle: #faf5eb;
  
  --border-color: #e6dfd3;
  --border-color-subtle: #ede7dd;
  --border-color-strong: #c8bead;

  --text-primary: #18202b;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-inverse: #ffffff;

  --gold-primary: #b8860b;
  --gold-hover: #9c7207;
  --gold-subtle: #fdf6e7;
  --gold-border: #e6cb85;
  --gold-text: #8c6304;

  --accent-navy: #182838;
  --accent-navy-light: #243b53;

  --success-color: #1b8754;
  --warning-color: #c05621;
  --error-color: #c53030;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(24, 32, 43, 0.05), 0 1px 2px rgba(24, 32, 43, 0.03);
  --shadow-md: 0 4px 12px rgba(24, 32, 43, 0.06), 0 2px 4px rgba(24, 32, 43, 0.04);
  --shadow-lg: 0 12px 32px rgba(24, 32, 43, 0.08), 0 4px 12px rgba(24, 32, 43, 0.04);
  --shadow-hover: 0 16px 40px rgba(24, 32, 43, 0.12), 0 6px 16px rgba(24, 32, 43, 0.06);

  /* Typography */
  --font-serif: 'Newsreader', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout & Spacing */
  --container-max: 1200px;
  --container-narrow: 840px;
  --header-height: 80px;
  --header-height-compact: 68px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-page: #0f141c;
  --bg-surface: #171f2b;
  --bg-surface-elevated: #1e2837;
  --bg-surface-subtle: #131a24;
  --bg-accent-subtle: #212c3d;

  --border-color: #273445;
  --border-color-subtle: #1e2938;
  --border-color-strong: #3b4d63;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8494a8;
  --text-inverse: #0f141c;

  --gold-primary: #e6b94d;
  --gold-hover: #f3cb69;
  --gold-subtle: #2b2619;
  --gold-border: #635021;
  --gold-text: #f0cf7e;

  --accent-navy: #0d1722;
  --accent-navy-light: #1e334a;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 16px 44px rgba(0, 0, 0, 0.6);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   3. TYPOGRAPHY & HEADINGS
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.text-gold {
  color: var(--gold-primary);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background-color: var(--gold-primary);
}

.eyebrow-light {
  color: #f0cf7e;
}
.eyebrow-light::before {
  background-color: #f0cf7e;
}

.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   4. LAYOUT & CONTAINERS
   ========================================================================== */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

section {
  padding: 5rem 0;
  position: relative;
}

.section-subtle {
  background-color: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   5. BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.65rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background-color: var(--accent-navy);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(24, 40, 56, 0.18);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: #243b53;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 40, 56, 0.25);
  color: #ffffff;
}

[data-theme="dark"] .btn-primary {
  background-color: var(--gold-primary);
  color: #0f141c;
  box-shadow: 0 2px 6px rgba(230, 185, 77, 0.2);
}

[data-theme="dark"] .btn-primary:hover {
  background-color: var(--gold-hover);
  color: #0f141c;
}

.btn-gold {
  background: linear-gradient(135deg, #c59b27 0%, #a17706 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(184, 134, 11, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d4a933 0%, #b38507 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.35);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-subtle);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--border-color-strong);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-cta-primary {
  background-color: #ffffff;
  color: #141c24;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
  background-color: #f7fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #141c24;
}

.btn-cta-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

.btn-cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-2px);
  color: #ffffff;
}

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
.top-announcement-bar {
  background-color: var(--accent-navy);
  color: #ffffff;
  font-size: 0.84rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  text-align: center;
}

.announcement-tag {
  background-color: var(--gold-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.announcement-text {
  opacity: 0.92;
}

.announcement-link {
  color: var(--gold-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="dark"] .announcement-link {
  color: var(--gold-primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.site-header.is-compact {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  transition: height var(--transition-normal);
}

.site-header.is-compact .header-inner {
  height: var(--header-height-compact);
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

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

.emblem-svg {
  width: 28px;
  height: 28px;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Desktop Navigation */
.desktop-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link-premium {
  color: var(--gold-text);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

[data-theme="dark"] .nav-link-premium {
  color: var(--gold-primary);
}

.premium-sparkle {
  color: var(--gold-primary);
  font-size: 0.85rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-color-strong);
  background-color: var(--bg-page);
}

.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Light Theme shows Moon icon; Dark Theme shows Sun icon */
[data-theme="light"] .sun-icon {
  display: none;
}
[data-theme="light"] .moon-icon {
  display: block;
}
[data-theme="dark"] .sun-icon {
  display: block;
}
[data-theme="dark"] .moon-icon {
  display: none;
}

.btn-login, .btn-account {
  font-size: 0.88rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color-strong);
  background-color: var(--bg-surface-subtle);
  color: var(--text-primary);
  font-weight: 600;
}

.btn-login:hover, .btn-account:hover {
  background-color: var(--bg-page);
  border-color: var(--gold-primary);
}

.badge-mini-gold {
  background: var(--gold-primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Hamburger Menu Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 38px;
  height: 38px;
  padding: 8px 6px;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 28, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-drawer-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

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

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

.drawer-brand .brand-title {
  font-size: 1.25rem;
  display: block;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.drawer-nav {
  padding: 1.5rem;
  flex: 1;
}

.drawer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-surface-subtle);
  border: 1px solid transparent;
}

.drawer-link:hover, .drawer-link.active {
  border-color: var(--gold-border);
  background-color: var(--gold-subtle);
  color: var(--gold-text);
}

[data-theme="dark"] .drawer-link:hover, [data-theme="dark"] .drawer-link.active {
  color: var(--gold-primary);
}

.drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-surface-subtle);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.user-greeting {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.drawer-user-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-socials {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
}

.drawer-social-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */
.section-hero {
  padding: 4.5rem 0 5rem;
  background: radial-gradient(circle at 80% 20%, var(--bg-accent-subtle) 0%, var(--bg-page) 65%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-number {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1.1;
}

.proof-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hero Portrait Frame */
.hero-visual {
  display: flex;
  justify-content: center;
}

.portrait-card {
  position: relative;
  max-width: 440px;
  width: 100%;
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color-strong);
  background-color: var(--bg-surface);
  aspect-ratio: 1 / 1;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}

.portrait-card:hover .portrait-img {
  transform: scale(1.02);
}

.portrait-badge-overlay {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(24, 32, 43, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-mentor-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

.badge-mentor-desc {
  font-size: 0.75rem;
  color: #e5c066;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.badge-years {
  text-align: right;
}

.badge-years-val {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #f0cf7e;
  line-height: 1;
}

.badge-years-lbl {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
}

/* ==========================================================================
   8. STATS STRIP SECTION
   ========================================================================== */
.section-stats-strip {
  padding: 3rem 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-color-subtle);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--gold-border);
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--gold-subtle);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

/* ==========================================================================
   9. ABOUT SECTION / PROFILE
   ========================================================================== */
.section-about {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-portrait-wrap {
  position: relative;
}

.about-portrait-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color-strong);
  aspect-ratio: 1 / 1;
  background: var(--bg-surface-subtle);
}

.about-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge-floating {
  position: absolute;
  top: -1.25rem;
  right: -1.25rem;
  background: var(--accent-navy);
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

[data-theme="dark"] .about-badge-floating {
  background: var(--bg-surface-elevated);
  border-color: var(--gold-border);
}

.floating-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-primary);
  display: block;
  line-height: 1;
}

.floating-txt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-title {
  margin-bottom: 1.25rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2.25rem;
}

.about-highlight-box {
  background-color: var(--gold-subtle);
  border-left: 3px solid var(--gold-primary);
  padding: 1.15rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.pillar-bullet {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--gold-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.pillar-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   10. WHY PROF. GOYAL / METHODOLOGY SECTION
   ========================================================================== */
.section-methodology {
  background-color: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.method-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.method-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-border);
}

.method-card-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.method-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.method-card-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   11. CONTENT ECOSYSTEM SECTION
   ========================================================================== */
.section-ecosystem {
  padding: 6rem 0;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.eco-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.eco-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-color-strong);
}

.eco-card-top {
  margin-bottom: 1.5rem;
}

.eco-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
}

.eco-title {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}

.eco-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

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

.eco-stat-lbl {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.eco-card-yt {
  border-color: rgba(255, 0, 0, 0.2);
}

.eco-card-yt:hover {
  border-color: #ff0000;
}

.eco-card-tg {
  border-color: rgba(0, 136, 204, 0.2);
}

.eco-card-tg:hover {
  border-color: #0088cc;
}

/* ==========================================================================
   12. ZINNIA AURORA TESTIMONIAL SECTION
   ========================================================================== */
.section-testimonial {
  background: radial-gradient(circle at 20% 50%, var(--bg-accent-subtle) 0%, var(--bg-page) 70%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 6rem 0;
}

.testimonial-card-editorial {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.testimonial-card-editorial::before {
  content: '“';
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-family: var(--font-serif);
  font-size: 10rem;
  color: var(--gold-primary);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.testimonial-quote-block {
  display: flex;
  flex-direction: column;
}

.testimonial-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  color: var(--gold-text);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  width: fit-content;
}

[data-theme="dark"] .testimonial-rank-badge {
  color: var(--gold-primary);
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1.75rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.author-avatar-initials {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  border: 2px solid var(--gold-primary);
}

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

.author-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.author-ranks {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Responsive YouTube Video Container */
.testimonial-video-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-responsive-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: #000000;
  border: 1px solid var(--border-color-strong);
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ==========================================================================
   13. CURRENT AFFAIRS & MCQS PREVIEW
   ========================================================================== */
.section-ca-preview {
  padding: 6rem 0;
}

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

.ca-preview-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.ca-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-border);
}

.ca-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.ca-card-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.ca-card-excerpt {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.ca-question-box {
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-color-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.mcq-stem {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.mcq-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   14. PREMIUM SECTION & PRICING
   ========================================================================== */
.section-premium-spotlight {
  background: linear-gradient(180deg, var(--bg-surface-subtle) 0%, var(--bg-page) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 6rem 0;
}

.premium-card-spotlight {
  background-color: var(--bg-surface);
  border: 2px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.premium-glow-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--gold-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-spotlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.premium-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.prem-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.feat-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--gold-subtle);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feat-desc strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.feat-desc span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.premium-box-action {
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.box-action-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.box-action-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.box-action-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.razorpay-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ==========================================================================
   15. CTA & FOOTER
   ========================================================================== */
.section-cta {
  padding: 5rem 0;
}

.cta-card {
  background: linear-gradient(135deg, #182838 0%, #0d1722 100%);
  border-radius: var(--radius-lg);
  padding: 4rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cta-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.cta-title {
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-accent-graphic {
  position: relative;
  z-index: 2;
}

.stat-badge-float {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  padding: 2rem 2.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
}

/* Site Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-top {
  padding: 5rem 0 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-col-brand .footer-logo .brand-title {
  font-size: 1.4rem;
  display: block;
}

.footer-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
}

.footer-social-strip {
  display: flex;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background-color: var(--bg-page);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color-subtle);
  padding: 1.75rem 0;
  background-color: var(--bg-surface-subtle);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.copyright-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.disclaimer-mini {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 540px;
}

/* ==========================================================================
   16. AUTHENTICATION & LOGIN FORMS
   ========================================================================== */
.auth-page-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.auth-card {
  max-width: 460px;
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-lg);
}

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

.auth-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.input-with-prefix {
  display: flex;
  align-items: center;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-with-prefix:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.input-prefix {
  padding: 0.85rem 1rem;
  background-color: var(--border-color-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  border-right: 1px solid var(--border-color);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
}

.otp-inputs-wrapper {
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
}

.otp-digit-input {
  width: 52px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-sans);
  background-color: var(--bg-surface-subtle);
  border: 1.5px solid var(--border-color-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.otp-digit-input:focus {
  border-color: var(--gold-primary);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.18);
  outline: none;
}

.auth-resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.84rem;
}

.resend-btn {
  color: var(--gold-primary);
  font-weight: 600;
  text-decoration: underline;
}

.resend-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
}

.dev-mock-toast {
  background-color: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.82rem;
  margin-top: 1.25rem;
  color: var(--text-primary);
}

/* ==========================================================================
   17. STUDENT ACCOUNT & PROTECTED VIEWER
   ========================================================================== */
.account-dashboard {
  padding: 4rem 0 6rem;
}

.account-header-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.account-user-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--accent-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  border: 2px solid var(--gold-primary);
}

.account-title {
  font-size: 1.6rem;
  line-height: 1.2;
}

.account-mobile-num {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.account-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge-free {
  background-color: var(--bg-surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color-strong);
}

.status-badge-premium {
  background: linear-gradient(135deg, #c59b27 0%, #a17706 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
}

.account-docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.doc-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.doc-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md);
}

.doc-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.doc-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.doc-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.doc-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   18. PROTECTED PDF VIEWER & WATERMARK OVERLAY
   ========================================================================== */
.viewer-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #1a202c;
  color: #ffffff;
  overflow: hidden;
  user-select: none;
}

.viewer-topbar {
  height: 60px;
  background-color: #0f141c;
  border-bottom: 1px solid #2d3748;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  flex-shrink: 0;
}

.viewer-doc-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.viewer-doc-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
}

.viewer-notice-pill {
  background: rgba(230, 185, 77, 0.15);
  border: 1px solid rgba(230, 185, 77, 0.4);
  color: #f0cf7e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.viewer-viewport-wrap {
  position: relative;
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  padding: 2rem;
  background-color: #2d3748;
}

.viewer-pdf-frame {
  width: 100%;
  max-width: 900px;
  min-height: 100%;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  position: relative;
}

/* Dynamic Repetitive Watermark Overlay */
.viewer-watermark-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 1fr);
  opacity: 0.16;
}

.watermark-unit {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-25deg);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: #000000;
  text-align: center;
  line-height: 1.3;
}

/* Anti-Print CSS Guard */
@media print {
  body {
    display: none !important;
  }
}

/* ==========================================================================
   19. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  width: 100%;
}

.toast {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.toast-success {
  border-left: 4px solid var(--success-color);
}

.toast-error {
  border-left: 4px solid var(--error-color);
}

.toast-info {
  border-left: 4px solid var(--gold-primary);
}

.toast-msg {
  font-size: 0.9rem;
  color: var(--text-primary);
  flex: 1;
}

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