/* ============================================================
   YOUNG INDIA WRITES — MASTER STYLESHEET
   Apple-level design · India-scale thinking
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700;800&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Brand */
  --saffron:          #FF9933;
  --saffron-dark:     #E07A00;
  --saffron-light:    #FFB347;
  --saffron-pale:     #FFF5E6;
  --india-green:      #138808;
  --india-green-pale: #E8F5E1;
  --navy:             #000080;
  --chakra-blue:      #0047AB;
  --ink:              #1A1A2E;
  --ink-soft:         #16213E;

  /* Light mode semantics */
  --bg-primary:     #FAFAF8;
  --bg-secondary:   #F4F1EB;
  --bg-tertiary:    #EDE9E0;
  --bg-card:        #FFFFFF;
  --bg-glass:       rgba(255,255,255,0.88);
  --bg-glass-dark:  rgba(26,26,46,0.88);

  --text-primary:   #1A1A2E;
  --text-secondary: #5C5C7A;
  --text-muted:     #9999AA;
  --text-inverted:  #FFFFFF;

  --border:         #E4E0D8;
  --border-strong:  #CCC8C0;
  --border-focus:   #FF9933;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 0 3px rgba(255,153,51,0.15);

  /* Typography */
  --font-sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:      'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono:       'Courier Prime', 'Courier New', Courier, monospace;
  --font-active:     var(--font-sans);

  /* Spacing */
  --space-2xs: 2px;
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Layout */
  --nav-height:    64px;
  --max-width:     1240px;
  --content-width: 860px;
  --reading-width: 680px;

  /* Border radius */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --t-fast:   150ms;
  --t-mid:    280ms;
  --t-slow:   480ms;
}

/* ── Dark Mode ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg-primary:     #0C0C18;
  --bg-secondary:   #141425;
  --bg-tertiary:    #1C1C30;
  --bg-card:        #181828;
  --bg-glass:       rgba(20,20,37,0.92);

  --text-primary:   #EEEEF5;
  --text-secondary: #AAAABB;
  --text-muted:     #6666AA;

  --border:         #2A2A40;
  --border-strong:  #3A3A55;
  --border-focus:   #FFB347;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.30);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.55);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.65);
  --shadow-glow: 0 0 0 3px rgba(255,179,71,0.18);
}

/* ── Font Switcher ─────────────────────────────────────────── */
[data-font="serif"]      { --font-active: var(--font-serif); }
[data-font="typewriter"] { --font-active: var(--font-mono); }
[data-font="sans"]       { --font-active: var(--font-sans); }

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-active);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition:
    background var(--t-mid) var(--ease),
    color var(--t-mid) var(--ease);
  overflow-x: hidden;
  min-height: 100vh;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--saffron); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--saffron-light); }
button, input, select, textarea { font-family: var(--font-active); }
ul, ol { list-style: none; }

/* ── Utility ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.reading-container {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Section Tag ───────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: var(--space-md);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--saffron);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 22px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--saffron);
  color: #fff;
}
.btn-primary:hover {
  background: var(--saffron-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,153,51,0.35);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  background: var(--saffron-pale);
}
[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255,153,51,0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-secondary); }

.btn-lg { font-size: 16px; padding: 14px 32px; }
.btn-sm { font-size: 13px; padding: 7px 16px; }
.btn-block { width: 100%; }

/* ── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid var(--border);
  transition:
    background var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease),
    border-color var(--t-mid) var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  gap: var(--space-lg);
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-main {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: color var(--t-fast) var(--ease);
}
.nav-logo:hover .logo-main { color: var(--saffron); }
.logo-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron);
  opacity: 0.9;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-secondary); }
.nav-links a.active {
  color: var(--saffron);
  background: var(--saffron-pale);
  font-weight: 600;
}
[data-theme="dark"] .nav-links a.active {
  background: rgba(255,153,51,0.10);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Font switcher */
.font-switcher { position: relative; }

.font-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.font-trigger:hover { border-color: var(--saffron); color: var(--text-primary); }

.font-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: none;
  z-index: 200;
}
.font-dropdown.open {
  display: block;
  animation: popIn 0.15s var(--ease-spring);
}
.font-option {
  padding: 11px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--t-fast) var(--ease);
  border-bottom: 1px solid var(--border);
}
.font-option:last-child { border-bottom: none; }
.font-option:hover { background: var(--bg-secondary); color: var(--text-primary); }
.font-option.active { color: var(--saffron); font-weight: 600; }
.font-preview { font-size: 13px; opacity: 0.55; }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all var(--t-fast) var(--ease);
}
.theme-toggle:hover {
  border-color: var(--saffron);
  transform: rotate(15deg) scale(1.08);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 7px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease);
}
.hamburger:hover { border-color: var(--saffron); }
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--t-mid) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 998;
  backdrop-filter: blur(6px);
}
.mobile-overlay.active { display: block; animation: fadeIn 0.2s ease; }

/* Mobile nav panel */
.mobile-nav-panel {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: var(--space-md) var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-xl);
}
.mobile-nav-panel.open { display: block; animation: slideDown 0.2s var(--ease); }
.mobile-nav-panel .nav-links {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.mobile-nav-panel .nav-links a {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 15px;
}
.mobile-nav-font-row {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.mobile-font-btn {
  flex: 1;
  padding: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--t-fast) var(--ease);
}
.mobile-font-btn.active { border-color: var(--saffron); color: var(--saffron); }

/* ── Progress Bar ──────────────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--india-green), var(--navy));
  z-index: 9999;
  transition: width 80ms linear;
  box-shadow: 0 0 10px rgba(255,153,51,0.5);
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-3xl);
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg-gradient {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%,  rgba(255,153,51,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 70%,  rgba(19,136,8,0.07) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 15% 85%,  rgba(0,0,128,0.06) 0%, transparent 50%);
}

.hero-grid-pattern {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  width: 100%;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.hero-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--saffron);
  animation: pulse 2.2s ease-in-out infinite;
}
.hero-pill-flag { font-size: 16px; }

.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}
.hero-h1 .accent { color: var(--saffron); }
.hero-h1 .accent-green { color: var(--india-green); }
.hero-h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto var(--space-xl);
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-launch-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: var(--space-xl);
}
.hero-launch-badge::before, .hero-launch-badge::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: var(--space-xl);
}

.hero-stat {
  padding: var(--space-md) var(--space-xl);
  text-align: center;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }

.hero-stat-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  display: block;
}
.hero-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 5px;
  display: block;
}

/* ── Section Layouts ───────────────────────────────────────── */
.section {
  padding: var(--space-3xl) 0;
}
.section-sm { padding: var(--space-2xl) 0; }
.section-lg { padding: calc(var(--space-3xl) * 1.3) 0; }

.section-header { margin-bottom: var(--space-2xl); }
.section-header.centered { text-align: center; }
.section-header.centered .section-desc { margin: 0 auto; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

.section-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

/* ── Featured Poems Grid ───────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 480px;
  gap: var(--space-md);
}

.feat-card {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.feat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.feat-card-img {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.feat-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.feat-card:hover .feat-card-img img { transform: scale(1.06); }

.feat-card:nth-child(1) .feat-card-img { height: 260px; }
.feat-card:not(:nth-child(1)) .feat-card-img { height: 180px; }

.feat-rank-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(8px);
}
.feat-rank-badge.rank-1 { background: rgba(255,153,51,0.85); }
.feat-rank-badge.rank-2 { background: rgba(19,136,8,0.85); }
.feat-rank-badge.rank-3 { background: rgba(0,0,128,0.80); }

.feat-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feat-card-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 6px;
}

.feat-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.feat-card-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feat-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 12.5px;
  color: var(--text-muted);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-weight: 500;
}

.avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--india-green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.avatar.lg { width: 36px; height: 36px; font-size: 13px; }

/* ── Poem Cards ────────────────────────────────────────────── */
.poems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: var(--space-lg);
}

.poem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  cursor: pointer;
  transition: all var(--t-mid) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.poem-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(180deg, var(--saffron), var(--india-green));
  border-radius: 0 0 0 0;
  transition: width var(--t-mid) var(--ease);
}
.poem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.poem-card:hover::after { width: 3px; }

.poem-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.poem-card-lines {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poem-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 4px;
}

.lang-chip {
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: var(--saffron-pale);
  color: var(--saffron);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
[data-theme="dark"] .lang-chip { background: rgba(255,153,51,0.12); }

/* ── Carousel ──────────────────────────────────────────────── */
.carousel-outer {
  background: var(--bg-secondary);
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.carousel-viewport { overflow: hidden; border-radius: var(--r-xl); }

.carousel-track {
  display: flex;
  gap: var(--space-md);
  transition: transform var(--t-slow) var(--ease);
  will-change: transform;
}

.c-slide {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-mid) var(--ease);
}
.c-slide:hover { box-shadow: var(--shadow-lg); }

.c-slide-img {
  height: 180px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.c-slide-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.c-slide:hover .c-slide-img img { transform: scale(1.05); }

.c-slide-body { padding: var(--space-md) var(--space-lg) var(--space-lg); }
.c-slide-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.c-slide-author { font-size: 12.5px; color: var(--text-muted); margin-bottom: var(--space-sm); }
.c-slide-preview {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.carousel-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--text-primary);
  transition: all var(--t-fast) var(--ease);
  box-shadow: var(--shadow-sm);
}
.carousel-arrow:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  box-shadow: var(--shadow-glow);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.c-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
  cursor: pointer;
  border: none;
  transition: all var(--t-fast) var(--ease);
}
.c-dot.active {
  background: var(--saffron);
  width: 22px;
  border-radius: 4px;
}

/* ── Story Cards ───────────────────────────────────────────── */
.stories-stack { display: flex; flex-direction: column; gap: var(--space-md); }

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px 1fr;
  transition: all var(--t-mid) var(--ease);
  text-decoration: none;
  color: inherit;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.story-card-img {
  height: 220px;
  overflow: hidden;
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.story-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.story-card:hover .story-card-img img { transform: scale(1.05); }

.story-card-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: var(--space-sm);
}

.story-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.story-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 12.5px;
  color: var(--text-muted);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ── Filter Bar ────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--space-2xl);
}

.filter-search {
  flex: 1;
  min-width: 200px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-fast) var(--ease);
}
.filter-search:focus { border-color: var(--saffron); box-shadow: var(--shadow-glow); }
.filter-search::placeholder { color: var(--text-muted); }

.filter-select {
  padding: 9px 32px 9px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239999AA' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color var(--t-fast) var(--ease);
}
.filter-select:focus { border-color: var(--saffron); }

/* ── Page Header ───────────────────────────────────────────── */
.page-hero {
  background: var(--bg-secondary);
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--saffron); }
.breadcrumb-sep { opacity: 0.5; }

/* ── Submission Form ───────────────────────────────────────── */
.submit-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.submit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

/* Step progress */
.step-bar {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-sm);
}
.step-segment {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background var(--t-mid) var(--ease);
}
.step-segment.done { background: var(--saffron); }

.step-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
}
.step-labels .active { color: var(--saffron); font-weight: 600; }

/* Form elements */
.form-section-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

.form-group { margin-bottom: var(--space-lg); }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-label .req { color: var(--saffron); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: all var(--t-fast) var(--ease);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--saffron);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-textarea { min-height: 220px; resize: vertical; line-height: 1.7; }

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.5;
}

/* File upload */
.file-drop {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  background: var(--bg-primary);
}
.file-drop:hover, .file-drop.over {
  border-color: var(--saffron);
  background: var(--saffron-pale);
}
[data-theme="dark"] .file-drop:hover,
[data-theme="dark"] .file-drop.over {
  background: rgba(255,153,51,0.07);
}
.file-drop-icon { font-size: 2.2rem; margin-bottom: var(--space-sm); }
.file-drop-text { font-size: 14px; color: var(--text-muted); }
.file-drop-text strong { color: var(--saffron); }

/* Plagiarism panel */
.plagiarism-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}
.plagiarism-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.check-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.check-row:last-of-type { border-bottom: none; }
.check-icon-wrap {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: all var(--t-mid) var(--ease);
}
.check-icon-wrap.pending { background: rgba(255,153,51,0.12); color: var(--saffron); }
.check-icon-wrap.pass    { background: var(--india-green-pale); color: var(--india-green); }
.check-icon-wrap.fail    { background: rgba(220,38,38,0.10);   color: #dc2626; }

.check-label { font-weight: 600; color: var(--text-primary); font-size: 13.5px; }
.check-sub   { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

.plagiarism-result-banner {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: var(--space-sm);
}
.plagiarism-result-banner.pass {
  display: flex;
  background: var(--india-green-pale);
  border: 1px solid rgba(19,136,8,0.2);
  color: var(--india-green);
}
.plagiarism-result-banner.fail {
  display: flex;
  background: rgba(220,38,38,0.07);
  border: 1px solid rgba(220,38,38,0.2);
  color: #dc2626;
}

/* Fee box */
.fee-box {
  background: linear-gradient(135deg, rgba(255,153,51,0.06) 0%, rgba(19,136,8,0.04) 100%);
  border: 1.5px solid var(--saffron);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}
.fee-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}
.fee-amount {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--saffron);
  line-height: 1;
}
.fee-amount span { font-size: 1.5rem; }
.fee-desc { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.fee-icon { font-size: 3rem; }
.fee-list { list-style: none; }
.fee-list li {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.fee-list li::before { content: '✓'; color: var(--india-green); font-weight: 700; font-size: 11px; }

/* Submission summary card */
.summary-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.summary-card h3 { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-md); }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .key { color: var(--text-muted); }
.summary-row .val { font-weight: 600; color: var(--text-primary); }

/* Terms checkbox */
.terms-row {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin: var(--space-lg) 0;
}
.terms-row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--saffron);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.terms-row label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  cursor: pointer;
}

/* Form nav buttons */
.form-nav {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* ── Payment Page ───────────────────────────────────────────── */
.payment-page {
  min-height: 100vh;
  background: var(--bg-primary);
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-width: 520px;
  width: 100%;
}

.payment-card-header {
  padding: var(--space-2xl) var(--space-xl);
  background: linear-gradient(135deg, #FF7A00 0%, var(--saffron) 50%, #FFB347 100%);
  color: #fff;
  text-align: center;
}
.payment-logo { font-size: 3.5rem; margin-bottom: var(--space-md); }
.payment-card-header h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.payment-card-header p { opacity: 0.88; font-size: 14px; }

.payment-card-body { padding: var(--space-xl); }

.payment-order-info {
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  padding: var(--space-md);
  margin-bottom: var(--space-xl);
  font-size: 13.5px;
  color: var(--text-secondary);
}
.payment-order-info strong { color: var(--text-primary); }

.payment-breakdown {
  margin-bottom: var(--space-xl);
}
.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.pay-row:last-child { border-bottom: none; font-weight: 700; font-size: 15px; color: var(--text-primary); }
.pay-row .amount { color: var(--saffron); font-weight: 600; }

.razorpay-cta {
  width: 100%;
  padding: 16px;
  background: #2d6be4;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all var(--t-fast) var(--ease);
  letter-spacing: 0.01em;
}
.razorpay-cta:hover {
  background: #1d54c9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(45,107,228,0.35);
}
.razorpay-cta:active { transform: translateY(0); }

.pay-methods {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-md);
}
.pay-method-chip {
  padding: 4px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.pay-secure-note {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* ── Success Page ───────────────────────────────────────────── */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--bg-primary);
}
.success-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-2xl);
  text-align: center;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-xl);
}
.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--india-green-pale);
  border: 2px solid rgba(19,136,8,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto var(--space-xl);
}
.success-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.success-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}
.success-id {
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  padding: var(--space-md);
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: var(--space-xl);
}

/* ── About / Portfolio ──────────────────────────────────────── */
.profile-hero { background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.profile-hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.profile-photo {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--india-green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  box-shadow: 0 0 0 5px var(--bg-card), 0 0 0 7px var(--saffron);
  flex-shrink: 0;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.profile-role {
  font-size: 15px;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: 0.01em;
}
.profile-bio {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: var(--space-lg);
}
.profile-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* Timeline */
.timeline { padding-left: 36px; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 8px; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--saffron), var(--india-green), var(--navy));
  border-radius: 1px;
}
.tl-item { position: relative; margin-bottom: var(--space-xl); }
.tl-item::before {
  content: '';
  position: absolute;
  left: -30px; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--saffron);
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--saffron);
}
.tl-year {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 3px;
}
.tl-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.tl-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Mission cards */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  transition: all var(--t-mid) var(--ease);
}
.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.mission-icon { font-size: 2.5rem; margin-bottom: var(--space-md); }
.mission-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}
.mission-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── Admin Dashboard ────────────────────────────────────────── */
.admin-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
}

.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: var(--space-xl) 0;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.admin-sidebar-header {
  padding: 0 var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}
.admin-sidebar-header h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-lg);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  border-left: 3px solid transparent;
  text-decoration: none;
}
.admin-nav-item:hover { background: var(--bg-primary); color: var(--text-primary); }
.admin-nav-item.active {
  background: var(--bg-primary);
  color: var(--saffron);
  border-left-color: var(--saffron);
  font-weight: 600;
}
.admin-nav-item .icon { font-size: 16px; width: 22px; text-align: center; }

.admin-main { padding: var(--space-xl); background: var(--bg-primary); }

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: var(--space-md);
}
.admin-header h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Stats cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  transition: box-shadow var(--t-mid) var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-card-label { font-size: 12.5px; color: var(--text-muted); }
.stat-card-trend {
  font-size: 11.5px;
  font-weight: 600;
  margin-top: var(--space-sm);
}
.stat-card-trend.up { color: var(--india-green); }
.stat-card-trend.neutral { color: var(--saffron); }

/* Admin table */
.admin-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: var(--space-md);
}
.admin-table-header h2 { font-size: 15px; font-weight: 700; color: var(--text-primary); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.admin-table thead th {
  padding: 10px 14px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 12px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--bg-secondary); }
.admin-table td strong { color: var(--text-primary); font-weight: 600; }

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-pending  { background: rgba(255,153,51,0.12); color: var(--saffron); }
.badge-approved { background: var(--india-green-pale); color: var(--india-green); }
.badge-rejected { background: rgba(220,38,38,0.10);   color: #dc2626; }
.badge-featured { background: rgba(0,0,128,0.08);     color: var(--navy); }

/* Action buttons */
.action-btns { display: flex; gap: 5px; flex-wrap: wrap; }

.act-btn {
  padding: 4px 10px;
  border-radius: var(--r-xs);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--t-fast) var(--ease);
  letter-spacing: 0.03em;
}
.act-btn.approve  { background: var(--india-green-pale); color: var(--india-green); }
.act-btn.approve:hover { background: var(--india-green); color: #fff; }
.act-btn.reject   { background: rgba(220,38,38,0.08); color: #dc2626; }
.act-btn.reject:hover  { background: #dc2626; color: #fff; }
.act-btn.feature  { background: rgba(0,0,128,0.08); color: var(--navy); }
.act-btn.feature:hover { background: var(--navy); color: #fff; }

/* ── Newsletter Banner ──────────────────────────────────────── */
.newsletter-banner {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 60%, #0F3460 100%);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  color: #fff;
}
[data-theme="dark"] .newsletter-banner {
  background: linear-gradient(135deg, var(--saffron-dark) 0%, #cc6600 100%);
}
.newsletter-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.newsletter-banner p { opacity: 0.8; font-size: 16px; margin-bottom: var(--space-xl); }
.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--r-full);
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 15px;
  outline: none;
  backdrop-filter: blur(8px);
  transition: background var(--t-fast) var(--ease);
}
.newsletter-input:focus { background: rgba(255,255,255,0.18); }
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }

/* ── Mission Strip ──────────────────────────────────────────── */
.mission-strip {
  background: linear-gradient(120deg, var(--saffron) 0%, #E87000 45%, var(--india-green) 100%);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  color: #fff;
}
.mission-strip blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  font-style: italic;
}
.mission-strip p {
  font-size: 15px;
  opacity: 0.85;
  max-width: 580px;
  margin: 0 auto var(--space-xl);
  line-height: 1.75;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo-main { font-size: 18px; }
.footer-brand-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.social-btn {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
}
.social-btn:hover { border-color: var(--saffron); transform: translateY(-2px); }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}
.footer-col ul li { margin-bottom: var(--space-sm); }
.footer-col ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.footer-col ul li a:hover { color: var(--saffron); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer-made-in {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Scroll Top ─────────────────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--saffron);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-lg);
  transition: all var(--t-fast) var(--ease);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  z-index: 500;
}
.scroll-top-btn.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.scroll-top-btn:hover { transform: translateY(-3px) scale(1.07); }

/* ── Toasts ─────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px var(--space-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  animation: slideRight 0.25s var(--ease);
  pointer-events: all;
}
.toast.success { border-left: 3px solid var(--india-green); }
.toast.error   { border-left: 3px solid #dc2626; }
.toast.info    { border-left: 3px solid var(--saffron); }
.toast.warning { border-left: 3px solid #f59e0b; }

/* ── Loader ─────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes popIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .feat-card:nth-child(1) { grid-column: 1 / -1; }
  .feat-card:nth-child(1) .feat-card-img { height: 280px; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .admin-wrap { grid-template-columns: 200px 1fr; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .story-card { grid-template-columns: 1fr; }
  .story-card-img { height: 220px; }
  .profile-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .profile-photo { margin: 0 auto; }
  .profile-actions { justify-content: center; }
  .hero-stats { border-top: 1px solid var(--border); }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); padding: var(--space-md); }
  .hero-stat:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  .nav-links, .font-switcher, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .featured-grid { grid-template-columns: 1fr; }
  .feat-card:nth-child(1) { grid-column: 1; }

  .hero-stat { flex: 1 1 calc(50% - var(--space-md)); }

  .submit-card { padding: var(--space-lg); }
  .form-row { grid-template-columns: 1fr; }

  .admin-wrap { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }

  .newsletter-form { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .payment-page { padding-top: calc(var(--nav-height) + var(--space-md)); align-items: flex-start; }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 16px;
    --space-xl: 28px;
    --space-2xl: 48px;
    --space-3xl: 72px;
  }
  .stats-row { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas a { text-align: center; }
}
