/* سرویوم — Design System
   Theme: Cypress (سرو) — minimal, modern, creative */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root {
  --sarv-900: #0d2818;
  --sarv-800: #1b4332;
  --sarv-700: #2d6a4f;
  --sarv-600: #40916c;
  --sarv-500: #52b788;
  --sarv-400: #74c69d;
  --sarv-200: #b7e4c7;
  --sarv-100: #d8f3dc;
  --sarv-50: #f0faf3;

  --bg: #fafcfb;
  --bg-elevated: #ffffff;
  --text: #0f1419;
  --text-secondary: #5c6b63;
  --text-muted: #8a9690;
  --border: #e4ebe7;
  --border-strong: #c8d5cc;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(13, 40, 24, 0.04);
  --shadow-md: 0 4px 24px rgba(13, 40, 24, 0.06);
  --shadow-lg: 0 12px 48px rgba(13, 40, 24, 0.08);

  --font: 'Vazirmatn', system-ui, sans-serif;
  --transition: 0.2s ease;
  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

/* ─── Logo ─── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  color: var(--sarv-700);
}

.logo-mark svg { width: 100%; height: 100%; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 252, 251, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--sarv-700); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--sarv-800);
  color: #fff;
}

.btn-primary:hover {
  background: var(--sarv-900);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--sarv-100);
  color: var(--sarv-800);
}

.btn-secondary:hover { background: var(--sarv-200); }

.btn-outline {
  background: transparent;
  color: var(--sarv-800);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--sarv-600);
  background: var(--sarv-50);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 14px;
}

.btn-ghost:hover { color: var(--sarv-700); }

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

.btn-block { width: 100%; }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--sarv-100) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--sarv-100);
  color: var(--sarv-800);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--sarv-600);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--sarv-700);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.hero-card-main { position: relative; z-index: 2; }

.hero-card-float {
  position: absolute;
  z-index: 3;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
}

.hero-card-float.top-left {
  top: -20px;
  right: -24px;
}

.hero-card-float.bottom-right {
  bottom: -16px;
  left: -20px;
}

.hero-stat-row {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sarv-800);
}

.hero-stat span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ─── Section ─── */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sarv-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: var(--sarv-200);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sarv-100);
  color: var(--sarv-700);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ─── Exam Cards ─── */
.exams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.exam-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.exam-card:hover {
  border-color: var(--sarv-300, var(--sarv-400));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.exam-card-header {
  padding: 24px 24px 0;
}

.exam-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  background: var(--sarv-100);
  color: var(--sarv-800);
  margin-bottom: 12px;
}

.exam-tag.popular {
  background: var(--sarv-800);
  color: #fff;
}

.exam-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.exam-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.exam-card-body {
  padding: 0 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.exam-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.exam-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.exam-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sarv-800);
}

.exam-price small {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ─── Steps ─── */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  background: var(--sarv-800);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 50%;
}

.step-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ─── CTA Banner ─── */
.cta-banner {
  background: var(--sarv-800);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-banner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-banner p {
  opacity: 0.85;
  font-size: 1rem;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--sarv-800);
}

.cta-banner .btn-primary:hover {
  background: var(--sarv-100);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--sarv-900);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo-mark { color: var(--sarv-400); }

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--sarv-400); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

/* ─── Auth Pages ─── */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  background: var(--sarv-800);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.auth-visual::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}

.auth-visual h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.auth-visual p {
  opacity: 0.8;
  font-size: 1.0625rem;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-form-wrap h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-form-wrap > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.9375rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  transition: border-color var(--transition);
  direction: rtl;
}

.form-input:focus {
  outline: none;
  border-color: var(--sarv-600);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.auth-divider {
  text-align: center;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border);
}

.auth-divider::before { right: 0; }
.auth-divider::after { left: 0; }

/* ─── Dashboard ─── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--header-h));
}

.sidebar {
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  padding: 32px 20px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--sarv-50);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.sidebar-avatar {
  width: 44px;
  height: 44px;
  background: var(--sarv-700);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.sidebar-user strong { display: block; font-size: 0.9375rem; }
.sidebar-user span { font-size: 0.8125rem; color: var(--text-muted); }

.sidebar-nav { list-style: none; }

.sidebar-nav li { margin-bottom: 4px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--sarv-100);
  color: var(--sarv-800);
}

.dashboard-main {
  padding: 40px 48px;
}

.dashboard-header {
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.dashboard-header p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.stat-card-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sarv-800);
}

.stat-card-change {
  font-size: 0.8125rem;
  color: var(--sarv-600);
  margin-top: 4px;
}

/* ─── Tables / Lists ─── */
.data-table {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 16px 20px;
  text-align: right;
  font-size: 0.9375rem;
}

.data-table th {
  background: var(--sarv-50);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.data-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--border);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
}

.status-badge.success { background: var(--sarv-100); color: var(--sarv-800); }
.status-badge.pending { background: #fef3c7; color: #92400e; }
.status-badge.new { background: #dbeafe; color: #1e40af; }

/* ─── Exam Taking ─── */
.exam-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.exam-topbar {
  height: 64px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.exam-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--sarv-800);
  background: var(--sarv-100);
  padding: 8px 16px;
  border-radius: var(--radius-md);
}

.exam-progress-bar {
  flex: 1;
  max-width: 400px;
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  margin: 0 32px;
  overflow: hidden;
}

.exam-progress-fill {
  height: 100%;
  background: var(--sarv-600);
  border-radius: 100px;
  transition: width 0.3s ease;
}

.exam-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
}

.exam-question-panel {
  padding: 48px;
  max-width: 800px;
}

.question-number {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sarv-700);
  margin-bottom: 12px;
}

.question-text {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 32px;
}

.options-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.option-item:hover { border-color: var(--sarv-400); }

.option-item.selected {
  border-color: var(--sarv-700);
  background: var(--sarv-50);
}

.option-marker {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.option-item.selected .option-marker {
  background: var(--sarv-800);
  border-color: var(--sarv-800);
  color: #fff;
}

.exam-nav-panel {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 24px;
}

.exam-nav-panel h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.q-btn {
  width: 100%;
  aspect-ratio: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.q-btn.answered {
  background: var(--sarv-100);
  border-color: var(--sarv-400);
  color: var(--sarv-800);
}

.q-btn.current {
  background: var(--sarv-800);
  border-color: var(--sarv-800);
  color: #fff;
}

.exam-actions-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ─── Results / Analysis ─── */
.results-hero {
  background: var(--sarv-800);
  color: #fff;
  padding: 48px;
  border-radius: var(--radius-xl);
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
}

.score-circle strong {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.score-circle span {
  font-size: 0.8125rem;
  opacity: 0.8;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.analysis-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.analysis-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.weakness-list {
  list-style: none;
}

.weakness-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.weakness-bar {
  width: 80px;
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.weakness-bar-fill {
  height: 100%;
  background: #ef4444;
  border-radius: 100px;
}

.study-plan {
  grid-column: 1 / -1;
}

.study-plan ol {
  padding-right: 20px;
  color: var(--text-secondary);
}

.study-plan li {
  margin-bottom: 12px;
  font-size: 0.9375rem;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--sarv-100);
  color: var(--sarv-800);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
}

/* ─── Detail Page ─── */
.page-hero-sm {
  background: var(--sarv-50);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a:hover { color: var(--sarv-700); }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  padding: 48px 0 80px;
}

.detail-main h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.detail-section {
  margin-bottom: 32px;
}

.detail-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.detail-section p,
.detail-section li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.detail-section ul {
  padding-right: 20px;
}

.purchase-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.purchase-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sarv-800);
  margin-bottom: 4px;
}

.purchase-card ul {
  list-style: none;
  margin: 24px 0;
}

.purchase-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.purchase-card li::before {
  content: '✓';
  color: var(--sarv-600);
  font-weight: 700;
}

/* ─── Filters ─── */
.filters-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--bg-elevated);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--sarv-700);
  background: var(--sarv-100);
  color: var(--sarv-800);
}

/* ─── Mobile ─── */
@media (max-width: 1024px) {
  .hero-grid,
  .features-grid,
  .exams-grid,
  .footer-grid,
  .analysis-grid,
  .detail-layout { grid-template-columns: 1fr; }

  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .exam-body { grid-template-columns: 1fr; }
  .exam-nav-panel { display: none; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 64px; }
  .steps-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}
