/* ═══════════════════════════════════════════════════════════════
   Exam Modules — Unified Design System
   Deneme Sınavları & Seviye Testi
   ═══════════════════════════════════════════════════════════════ */

:root {
  --em-red: #e63946;
  --em-red-dark: #c62b36;
  --em-red-light: rgba(230, 57, 70, 0.08);
  --em-red-mid: rgba(230, 57, 70, 0.16);
  --em-navy: #1a1a2e;
  --em-dark: #1a202c;
  --em-text: #374151;
  --em-muted: #6b7280;
  --em-border: rgba(0, 0, 0, 0.07);
  --em-surface: #f8fafc;
  --em-card: #ffffff;
  --em-radius: 14px;
  --em-radius-lg: 20px;
  --em-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --em-shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.12);
  --em-transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Animations ── */
@keyframes emFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes emFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes emScaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes emPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}
@keyframes emShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes emRingDraw {
  from { stroke-dashoffset: 283; }
  to   { stroke-dashoffset: var(--ring-offset, 0); }
}
@keyframes emSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.em-animate { animation: emFadeUp 0.55s ease both; }
.em-animate-d1 { animation-delay: 0.08s; }
.em-animate-d2 { animation-delay: 0.16s; }
.em-animate-d3 { animation-delay: 0.24s; }
.em-animate-d4 { animation-delay: 0.32s; }

/* ── Hero Banner ── */
.em-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.97) 0%, rgba(22, 33, 62, 0.98) 100%);
  color: #fff;
}
.em-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(230, 57, 70, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(230, 57, 70, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.em-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.4), transparent);
}
.em-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.em-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: #ff8a94;
  margin-bottom: 14px;
  animation: emFadeUp 0.5s ease both;
}
.em-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  color: #fff;
  animation: emFadeUp 0.55s 0.06s ease both;
}
.em-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 16px;
  animation: emFadeUp 0.55s 0.12s ease both;
}
.em-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  animation: emFadeUp 0.55s 0.18s ease both;
}
.em-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--em-transition);
}
.em-breadcrumb a:hover { color: #fff; }
.em-breadcrumb span { color: rgba(255, 255, 255, 0.35); }
.em-breadcrumb .active { color: rgba(255, 255, 255, 0.9); }

/* ── Page Body ── */
.em-page {
  background: var(--em-surface);
  padding: 40px 0 64px;
  min-height: 50vh;
}
.em-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--em-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.em-section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--em-red);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Cards Grid ── */
.em-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.em-card {
  background: var(--em-card);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  overflow: hidden;
  box-shadow: var(--em-shadow);
  transition: transform var(--em-transition), box-shadow var(--em-transition);
  display: flex;
  flex-direction: column;
  animation: emFadeUp 0.5s ease both;
}
.em-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--em-shadow-hover);
}
.em-card__media {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.em-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.em-card:hover .em-card__media img { transform: scale(1.05); }
.em-card__media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #cbd5e1;
  font-size: 2.5rem;
}
.em-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.em-card__badge--course { background: #10b981; color: #fff; }
.em-card__badge--free   { background: var(--em-red); color: #fff; }
.em-card__badge--paid   { background: var(--em-navy); color: #fff; }
.em-card__badge--owned  { background: #059669; color: #fff; }
.em-card__body {
  padding: 18px 18px 14px;
  flex: 1;
}
.em-card__body a { text-decoration: none; color: inherit; }
.em-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--em-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.em-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--em-muted);
}
.em-card__meta i { color: var(--em-red); font-size: 12px; }
.em-card__desc {
  font-size: 13px;
  color: var(--em-muted);
  margin-top: 8px;
  line-height: 1.5;
}
.em-card__footer {
  padding: 12px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--em-border);
}
.em-card__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--em-red);
}

/* ── Buttons ── */
.em-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--em-transition);
  white-space: nowrap;
}
.em-btn--primary {
  background: var(--em-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
}
.em-btn--primary:hover {
  background: var(--em-red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(230, 57, 70, 0.4);
}
.em-btn--outline {
  background: transparent;
  color: var(--em-red);
  border: 1.5px solid var(--em-red);
}
.em-btn--outline:hover {
  background: var(--em-red);
  color: #fff;
}
.em-btn--ghost {
  background: var(--em-red-light);
  color: var(--em-red);
}
.em-btn--ghost:hover { background: var(--em-red-mid); color: var(--em-red-dark); }
.em-btn--lg { padding: 13px 28px; font-size: 15px; }
.em-btn--block { width: 100%; }
.em-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ── Empty State ── */
.em-empty {
  text-align: center;
  padding: 64px 24px;
  animation: emFadeUp 0.5s ease both;
}
.em-empty__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--em-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--em-red);
}
.em-empty h4 { font-weight: 700; color: var(--em-dark); margin-bottom: 8px; }
.em-empty p  { color: var(--em-muted); font-size: 14px; }

/* ── Detail Page ── */
.em-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.em-detail__main,
.em-detail__side {
  background: var(--em-card);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-lg);
  box-shadow: var(--em-shadow);
  overflow: hidden;
  animation: emFadeUp 0.5s ease both;
}
.em-detail__side { animation-delay: 0.1s; }
.em-detail__cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}
.em-detail__content { padding: 28px; }
.em-detail__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--em-dark);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}
.em-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.em-stat {
  padding: 16px;
  border-radius: 12px;
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  text-align: center;
  transition: transform var(--em-transition);
}
.em-stat:hover { transform: translateY(-3px); }
.em-stat__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--em-red-light);
  color: var(--em-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 14px;
}
.em-stat__label { font-size: 11px; color: var(--em-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.em-stat__value { font-size: 15px; font-weight: 700; color: var(--em-dark); margin-top: 2px; }
.em-detail__desc h4 { font-size: 14px; font-weight: 700; color: var(--em-dark); margin-bottom: 10px; }
.em-detail__desc-body {
  font-size: 14px;
  color: var(--em-text);
  line-height: 1.7;
  padding-left: 14px;
  border-left: 3px solid var(--em-red);
}
.em-detail__side-inner { padding: 28px; }
.em-detail__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--em-red);
  margin-bottom: 20px;
}
.em-detail__price--free { color: #059669; }

/* ── Test Taking Layout ── */
.em-test-wrap { background: var(--em-surface); padding: 24px 0 64px; }
.em-test-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.em-test-panel {
  background: var(--em-card);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-lg);
  box-shadow: var(--em-shadow);
  overflow: hidden;
}
.em-test-panel__head {
  padding: 20px 24px;
  background: var(--em-navy);
  color: #fff;
}
.em-test-panel__head h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}
.em-test-panel__head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}
.em-test-panel__body { padding: 24px; }

/* Timer bar */
.em-timer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  border-radius: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.em-timer-bar__clock {
  display: flex;
  align-items: center;
  gap: 12px;
}
.em-timer-bar__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--em-red-light);
  color: var(--em-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.em-timer-bar__label { font-size: 12px; color: var(--em-muted); font-weight: 500; }
.em-timer-bar__time {
  font-family: 'SF Mono', 'Roboto Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--em-dark);
  letter-spacing: 1px;
}
.em-timer-bar__time--warn { color: #d97706; }
.em-timer-bar__time--danger { color: var(--em-red); animation: emPulse 1s infinite; }
.em-progress-wrap { flex: 1; min-width: 160px; max-width: 240px; }
.em-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--em-muted);
  margin-bottom: 6px;
}
.em-progress-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
}
.em-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--em-red), #ff6b7a);
  border-radius: 20px;
  transition: width 0.4s ease;
  position: relative;
}
.em-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  background-size: 200% 100%;
  animation: emShimmer 2s linear infinite;
}

/* Question blocks */
.em-question {
  background: var(--em-card);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 20px;
  margin-bottom: 20px;
  transition: border-color var(--em-transition), box-shadow var(--em-transition);
  animation: emFadeUp 0.45s ease both;
}
.em-question.is-answered {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}
.em-question__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--em-border);
}
.em-question__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--em-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.em-question__zoom {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--em-border);
  background: #fff;
  color: var(--em-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--em-transition);
}
.em-question__zoom:hover { border-color: var(--em-red); color: var(--em-red); }
.em-question__image {
  text-align: center;
  padding: 16px;
  background: var(--em-surface);
  border-radius: 12px;
  margin-bottom: 16px;
}
.em-question__image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.em-question__image img:hover { transform: scale(1.02); }

/* Answer options — professional, no emojis */
.em-options-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--em-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.em-options-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.em-option { position: relative; }
.em-option input { position: absolute; opacity: 0; pointer-events: none; }
.em-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  color: var(--em-text);
  cursor: pointer;
  transition: all var(--em-transition);
  user-select: none;
}
.em-option label:hover {
  border-color: var(--em-red);
  color: var(--em-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.12);
}
.em-option input:checked + label {
  background: var(--em-red);
  border-color: var(--em-red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.3);
  transform: translateY(-2px);
}
.em-option--empty label { font-size: 13px; font-weight: 600; color: var(--em-muted); }
.em-option--empty input:checked + label { background: #6b7280; border-color: #6b7280; }

/* Text-based options (level test) */
.em-options-list { display: flex; flex-direction: column; gap: 8px; }
.em-option-text { position: relative; }
.em-option-text input { position: absolute; opacity: 0; pointer-events: none; }
.em-option-text label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: all var(--em-transition);
  font-size: 14px;
  color: var(--em-text);
  line-height: 1.5;
  margin: 0;
}
.em-option-text label:hover { border-color: var(--em-red); background: var(--em-red-light); }
.em-option-text input:checked + label {
  border-color: var(--em-red);
  background: var(--em-red-light);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}
.em-option-text__letter {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--em-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: background var(--em-transition);
}
.em-option-text input:checked + label .em-option-text__letter { background: var(--em-red); }

/* Sidebar panel */
.em-sidebar-panel {
  position: sticky;
  top: 90px;
  background: var(--em-card);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-lg);
  box-shadow: var(--em-shadow);
  overflow: hidden;
}
.em-sidebar-panel__head {
  padding: 16px 20px;
  background: var(--em-surface);
  border-bottom: 1px solid var(--em-border);
  font-size: 14px;
  font-weight: 700;
  color: var(--em-dark);
}
.em-sidebar-panel__body { padding: 16px 20px; }
.em-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.em-nav-dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  color: var(--em-muted);
  cursor: pointer;
  transition: all var(--em-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.em-nav-dot:hover { border-color: var(--em-red); color: var(--em-red); }
.em-nav-dot.is-answered { background: #d1fae5; border-color: #10b981; color: #059669; }
.em-nav-dot.is-current { background: var(--em-red); border-color: var(--em-red); color: #fff; }

/* Solution videos */
.em-video-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--em-border);
}
.em-video-item:last-child { border-bottom: none; }
.em-video-item h6 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.em-video-lock {
  text-align: center;
  padding: 20px;
  background: var(--em-surface);
  border-radius: 12px;
  border: 1px dashed #d1d5db;
}
.em-video-lock i { font-size: 28px; color: #9ca3af; margin-bottom: 10px; display: block; }
.em-video-lock p { font-size: 13px; color: var(--em-muted); margin-bottom: 12px; }

/* ── Result Page ── */
.em-result-hero {
  text-align: center;
  padding: 40px 24px;
  background: var(--em-card);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-lg);
  box-shadow: var(--em-shadow);
  margin-bottom: 24px;
  animation: emScaleIn 0.5s ease both;
}
.em-score-ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
}
.em-score-ring svg { transform: rotate(-90deg); }
.em-score-ring__bg { fill: none; stroke: #e5e7eb; stroke-width: 8; }
.em-score-ring__fill {
  fill: none;
  stroke: var(--em-red);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  animation: emRingDraw 1.2s ease forwards;
}
.em-score-ring__value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.em-score-ring__value strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--em-dark);
  line-height: 1;
}
.em-score-ring__value span { font-size: 12px; color: var(--em-muted); margin-top: 2px; }
.em-result-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.em-result-stat {
  padding: 18px;
  background: var(--em-card);
  border: 1px solid var(--em-border);
  border-radius: 12px;
  text-align: center;
  transition: transform var(--em-transition);
  animation: emFadeUp 0.5s ease both;
}
.em-result-stat:hover { transform: translateY(-4px); }
.em-result-stat i { font-size: 20px; margin-bottom: 8px; display: block; }
.em-result-stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--em-dark); }
.em-result-stat span { font-size: 12px; color: var(--em-muted); }
.em-result-stat--success i { color: #10b981; }
.em-result-stat--danger  i { color: var(--em-red); }
.em-result-stat--info    i { color: #3b82f6; }
.em-result-stat--time    i { color: #8b5cf6; }

.em-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.em-result-badge--pass { background: #d1fae5; color: #059669; }
.em-result-badge--fail { background: #fee2e2; color: #dc2626; }

/* Package cards */
.em-packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.em-package {
  background: var(--em-card);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  overflow: hidden;
  transition: transform var(--em-transition), box-shadow var(--em-transition);
  animation: emFadeUp 0.5s ease both;
}
.em-package:hover { transform: translateY(-5px); box-shadow: var(--em-shadow-hover); }
.em-package--featured { border-color: var(--em-red); box-shadow: 0 0 0 3px var(--em-red-light); }
.em-package__tag {
  padding: 6px;
  text-align: center;
  background: var(--em-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.em-package__body { padding: 20px; text-align: center; }
.em-package__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
}
.em-package h5 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.em-package p  { font-size: 13px; color: var(--em-muted); margin-bottom: 16px; }

/* ── Level Test Landing ── */
.em-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.em-feature {
  padding: 20px 16px;
  background: var(--em-card);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  text-align: center;
  transition: transform var(--em-transition), box-shadow var(--em-transition);
  animation: emFadeUp 0.5s ease both;
}
.em-feature:hover { transform: translateY(-4px); box-shadow: var(--em-shadow); }
.em-feature i { font-size: 24px; color: var(--em-red); margin-bottom: 10px; display: block; }
.em-feature span { font-size: 13px; font-weight: 600; color: var(--em-text); }
.em-form-card {
  background: var(--em-card);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-lg);
  box-shadow: var(--em-shadow);
  overflow: hidden;
  margin-bottom: 24px;
  animation: emFadeUp 0.5s 0.1s ease both;
}
.em-form-card__head {
  padding: 18px 24px;
  background: var(--em-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.em-form-card__body { padding: 28px; }
.em-form-card .form-label { font-size: 13px; font-weight: 600; color: var(--em-dark); }
.em-form-card .form-control {
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  padding: 11px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.em-form-card .form-control:focus {
  border-color: var(--em-red);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}
.em-info-card {
  background: var(--em-card);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-lg);
  padding: 24px;
  animation: emFadeUp 0.5s 0.2s ease both;
}
.em-info-card h5 { font-weight: 700; color: var(--em-dark); margin-bottom: 16px; }
.em-info-card h6 { font-size: 13px; font-weight: 700; color: var(--em-text); margin-bottom: 8px; }
.em-info-card li { font-size: 13px; color: var(--em-muted); margin-bottom: 6px; list-style: none; }
.em-info-card li i { width: 18px; }

/* ── My Tests (profile) ── */
.em-profile-section {
  background: var(--em-card);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-lg);
  box-shadow: var(--em-shadow);
  margin-bottom: 24px;
  overflow: hidden;
  animation: emFadeUp 0.5s ease both;
}
.em-profile-section__head {
  padding: 16px 20px;
  background: var(--em-surface);
  border-bottom: 1px solid var(--em-border);
  font-size: 14px;
  font-weight: 700;
  color: var(--em-dark);
}
.em-test-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--em-border);
  transition: background var(--em-transition);
}
.em-test-row:last-child { border-bottom: none; }
.em-test-row:hover { background: var(--em-surface); }
.em-test-row__thumb {
  width: 72px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.em-test-row__info { flex: 1; min-width: 0; }
.em-test-row__title { font-size: 14px; font-weight: 600; color: var(--em-dark); }
.em-test-row__desc  { font-size: 12px; color: var(--em-muted); margin-top: 2px; }
.em-test-row__actions { display: flex; gap: 8px; flex-shrink: 0; }
.em-score-pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.em-score-pill--high { background: #d1fae5; color: #059669; }
.em-score-pill--mid  { background: #fef3c7; color: #d97706; }
.em-score-pill--low  { background: #fee2e2; color: #dc2626; }

/* ── Modal overrides ── */
.em-modal .modal-content { border: none; border-radius: var(--em-radius-lg); overflow: hidden; }
.em-modal .modal-header { background: var(--em-navy); color: #fff; border: none; padding: 18px 24px; }
.em-modal .modal-body { padding: 24px; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .em-detail { grid-template-columns: 1fr; }
  .em-test-layout { grid-template-columns: 1fr; }
  .em-sidebar-panel { position: static; }
  .em-stats { grid-template-columns: repeat(3, 1fr); }
  .em-result-stats { grid-template-columns: repeat(2, 1fr); }
  .em-options-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .em-page { padding: 28px 0 48px; }
  .em-hero { padding: 40px 0 32px; }
  .em-features { grid-template-columns: 1fr; }
  .em-stats { grid-template-columns: 1fr 1fr; }
  .em-result-stats { grid-template-columns: 1fr 1fr; }
  .em-options-grid { grid-template-columns: repeat(3, 1fr); }
  .em-test-row { flex-wrap: wrap; }
  .em-test-row__actions { width: 100%; }
  .em-nav-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .em-options-grid { grid-template-columns: repeat(2, 1fr); }
  .em-stats { grid-template-columns: 1fr; }
}

/* ═══ Exam Take Mode ═══ */
.em-exam-app { min-height: calc(100vh - 80px); background: var(--em-surface); }
.em-exam-toolbar {
  position: sticky; top: 0; z-index: 1030;
  background: linear-gradient(135deg, var(--em-navy) 0%, #16213e 100%);
  color: #fff; padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  border-bottom: 1px solid rgba(230,57,70,.3);
}
.em-exam-toolbar__inner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.em-exam-toolbar__title { flex: 1; min-width: 180px; }
.em-exam-toolbar__title h1 { font-size: 1rem; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.em-exam-toolbar__badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  background: rgba(230,57,70,.2); padding: 3px 10px; border-radius: 12px; margin-bottom: 4px;
}
.em-exam-toolbar__center { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.em-exam-timer { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.em-exam-timer i { color: #ff8a94; }
.em-exam-progress-mini { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.em-progress-track--sm { width: 80px; height: 6px; }
.em-exam-toolbar__actions { display: flex; gap: 8px; flex-shrink: 0; }
.em-test-wrap--take { padding: 20px 0 40px; }
.em-test-layout--take {
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-areas: "main side" "videos side";
  gap: 20px;
  align-items: start;
}
.em-test-panel--take { grid-area: main; background: #fff; border-radius: var(--em-radius-lg); border: 1px solid var(--em-border); box-shadow: var(--em-shadow); overflow: hidden; }
.em-take-sidebar { grid-area: side; position: sticky; top: 100px; }
.em-videos-below--outside { grid-area: videos; margin: 0; }
.em-take-question { padding: 24px; animation: emFadeUp .35s ease both; position: relative; overflow: hidden; }
.em-q-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}
.em-q-watermark img {
  width: min(220px, 55%);
  height: auto;
  max-height: 70%;
  object-fit: contain;
  opacity: 0.1;
}
.em-take-question > *:not(.em-q-watermark) { position: relative; z-index: 1; }
.em-options-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.em-options-row .em-take-option { flex: 1; min-width: 56px; max-width: 90px; }
.em-options-row .em-option label { width: 100%; }
.em-take-nav { display: flex; justify-content: space-between; padding: 0 24px 24px; gap: 12px; }
.em-sidebar-panel__body--scroll { max-height: 280px; overflow-y: auto; }
.em-take-option.is-selected label,
.em-take-option input:checked + label { background: var(--em-red); border-color: var(--em-red); color: #fff; }

/* ═══ Dashboard Stats ═══ */
.em-dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.em-dash-stat {
  background: #fff; border: 1px solid var(--em-border); border-radius: var(--em-radius);
  padding: 20px; text-align: center; box-shadow: var(--em-shadow);
  transition: transform var(--em-transition), box-shadow var(--em-transition);
  animation: emFadeUp .5s ease both;
}
.em-dash-stat:hover { transform: translateY(-4px); box-shadow: var(--em-shadow-hover); }
.em-dash-stat i { font-size: 24px; color: var(--em-red); margin-bottom: 8px; }
.em-dash-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--em-dark); }
.em-dash-stat span { font-size: 12px; color: var(--em-muted); font-weight: 600; }
.em-dash-card {
  background: #fff; border: 1px solid var(--em-border); border-radius: var(--em-radius-lg);
  box-shadow: var(--em-shadow); margin-bottom: 24px; overflow: hidden;
}
.em-dash-card__head {
  padding: 16px 20px; background: var(--em-surface); border-bottom: 1px solid var(--em-border);
  font-weight: 700; font-size: 15px; color: var(--em-dark);
}
.em-dash-card__body { padding: 0; }
.em-results-table { width: 100%; border-collapse: collapse; }
.em-results-table th, .em-results-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--em-border); font-size: 14px; }
.em-results-table th { background: var(--em-surface); font-weight: 700; color: var(--em-muted); font-size: 12px; text-transform: uppercase; }
.em-results-table tr:hover td { background: rgba(230,57,70,.03); }
.em-all-tests-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 28px; background: linear-gradient(135deg, var(--em-navy), #16213e);
  color: #fff; border-radius: var(--em-radius-lg); cursor: pointer;
  transition: transform var(--em-transition), box-shadow var(--em-transition);
  border: 1px solid rgba(230,57,70,.25);
}
.em-all-tests-banner:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.em-all-tests-banner h5 { margin: 0; font-weight: 700; }
.em-all-tests-banner p { margin: 4px 0 0; opacity: .75; font-size: 13px; }
.em-status-pill { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.em-status-pill--done { background: #d1fae5; color: #065f46; }
.em-status-pill--progress { background: #fef3c7; color: #92400e; }

/* ═══ Result Page v2 ═══ */
.em-result-top-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; }
.em-result-chart-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-bottom: 24px; }
.em-chart-card, .em-weak-card, .em-ai-card {
  background: #fff; border: 1px solid var(--em-border); border-radius: var(--em-radius-lg);
  padding: 24px; box-shadow: var(--em-shadow);
}
.em-chart-card h5, .em-weak-card h5, .em-ai-card h5 { font-weight: 700; margin-bottom: 16px; color: var(--em-dark); }
.em-chart-wrap { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.em-weak-list { list-style: none; padding: 0; margin: 0; }
.em-weak-list li {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--em-border);
}
.em-weak-list li:last-child { border-bottom: none; }
.em-weak-rank {
  width: 32px; height: 32px; border-radius: 50%; background: var(--em-red-light);
  color: var(--em-red); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.em-ai-card { background: linear-gradient(135deg, #f8fafc, #fff); border-color: rgba(230,57,70,.15); }
.em-ai-card__content { font-size: 14px; line-height: 1.7; color: var(--em-text); white-space: pre-line; }
.em-hero--v2::before {
  background:
    radial-gradient(ellipse 50% 70% at 80% 10%, rgba(230,57,70,.22) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 20% 90%, rgba(99,102,241,.12) 0%, transparent 50%);
}
.em-breadcrumb--fancy a { transition: color .2s; color: rgba(255, 255, 255, 0.65); }
.em-breadcrumb--fancy a:hover { color: #ff8a94; }
.em-breadcrumb--fancy span { color: rgba(255, 255, 255, 0.35); }
.em-breadcrumb--fancy .active { color: #fff; font-weight: 600; }

/* ── Dark surfaces: override global theme heading/link colors ── */
.em-hero h1, .em-hero h2, .em-hero h3, .em-hero h4, .em-hero h5, .em-hero h6,
.em-hero p, .em-hero li, .em-hero label {
  color: inherit;
}
.em-hero h1, .em-hero h2, .em-hero h3 { color: #fff; }
.em-hero p { color: rgba(255, 255, 255, 0.72); }
.em-hero .em-breadcrumb a { color: rgba(255, 255, 255, 0.6); }
.em-hero .em-breadcrumb a:hover { color: #fff; }
.em-hero .em-breadcrumb span { color: rgba(255, 255, 255, 0.35); }
.em-hero .em-breadcrumb .active { color: rgba(255, 255, 255, 0.9); }

.em-exam-toolbar,
.em-exam-toolbar h1, .em-exam-toolbar h2, .em-exam-toolbar p,
.em-exam-toolbar span, .em-exam-toolbar strong {
  color: #fff;
}
.em-exam-toolbar .em-exam-timer,
.em-exam-toolbar .em-exam-progress-mini,
.em-exam-toolbar .em-exam-progress-mini span,
.em-exam-toolbar .em-exam-progress-mini strong {
  color: rgba(255, 255, 255, 0.9);
}
.em-exam-toolbar .em-timer-bar__time { color: #fff; }
.em-exam-toolbar .em-timer-bar__time--warn { color: #fbbf24; }
.em-exam-toolbar .em-timer-bar__time--danger { color: #ff8a94; }

.em-exam-toolbar .em-btn--ghost {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}
.em-exam-toolbar .em-btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

.em-test-panel__head,
.em-test-panel__head h2, .em-test-panel__head h3,
.em-test-panel__head span, .em-test-panel__head p {
  color: #fff;
}
.em-test-panel__head-meta,
.em-test-panel__head-meta span {
  color: rgba(255, 255, 255, 0.65);
}

.em-modal .modal-header .modal-title,
.em-modal .modal-header h5 {
  color: #fff;
}

.em-all-tests-banner h5,
.em-all-tests-banner p,
.em-all-tests-banner i {
  color: #fff;
}
.em-all-tests-banner p { color: rgba(255, 255, 255, 0.75); }

@media (max-width: 991px) {
  .em-test-layout--take {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "videos" "side";
  }
  .em-take-sidebar { position: static; }
  .em-dash-stats { grid-template-columns: repeat(2, 1fr); }
  .em-result-top-stats { grid-template-columns: repeat(3, 1fr); }
  .em-result-chart-row { grid-template-columns: 1fr; }
  .em-chart-wrap { grid-template-columns: 1fr; }
  .em-exam-toolbar__inner { flex-direction: column; align-items: stretch; }
  .em-exam-toolbar__actions { justify-content: stretch; }
  .em-exam-toolbar__actions .em-btn { flex: 1; }
}
@media (max-width: 480px) {
  .em-dash-stats { grid-template-columns: 1fr; }
  .em-result-top-stats { grid-template-columns: 1fr; }
  .em-options-row--compact { flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .em-options-row--compact .em-take-option { flex: 0 0 42px; min-width: 42px; max-width: 42px; }
  .em-options-row--compact .em-option label { height: 42px; font-size: 14px; border-radius: 8px; }
}

/* ═══ Result loading ═══ */
.em-result-loading {
  text-align: center; padding: 60px 20px; color: var(--em-muted);
}
.em-result-loading__spinner {
  width: 44px; height: 44px; margin: 0 auto 16px;
  border: 3px solid var(--em-border); border-top-color: var(--em-red);
  border-radius: 50%; animation: emSpin .8s linear infinite;
}
@keyframes emSpin { to { transform: rotate(360deg); } }

.em-result-chart-row--compact { grid-template-columns: 1fr 1fr; gap: 16px; }
.em-chart-card--compact, .em-weak-card--compact { padding: 16px; }
.em-chart-card--compact h5, .em-weak-card--compact h5 { font-size: 14px; margin-bottom: 12px; }
.em-chart-compact { height: 180px; position: relative; }
.em-type-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.em-type-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--em-border); }
.em-weak-list--compact li { padding: 8px 0; }
.em-muted-small { font-size: 12px; color: var(--em-muted); }
.em-result-heading { font-weight: 800; color: var(--em-dark); }
.em-result-duration { font-size: 13px; color: var(--em-muted); margin-top: 4px; }
.em-result-duration i { color: var(--em-red); margin-right: 4px; }

.em-ai-card--minimal {
  padding: 14px 16px; margin-bottom: 20px;
  background: #fff; border: 1px solid var(--em-border); border-radius: var(--em-radius);
  box-shadow: none;
}
.em-ai-card__head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--em-dark); margin-bottom: 8px;
}
.em-ai-card__head i { color: var(--em-red); }
.em-ai-card__loader { margin-left: auto; font-size: 12px; color: var(--em-muted); }
.em-ai-card--minimal .em-ai-card__content { font-size: 13px; line-height: 1.6; color: var(--em-text); white-space: pre-line; }

/* AI recommendations grid */
.em-ai-section { margin-bottom: 24px; }
.em-ai-section__head {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--em-dark); margin-bottom: 14px;
}
.em-ai-section__head i { color: var(--em-red); }
.em-ai-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.em-ai-grid__item {
  flex: 0 0 calc(33.333% - 10px);
  max-width: calc(33.333% - 10px);
  background: #fff;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 16px;
  box-shadow: var(--em-shadow);
  position: relative;
}
.em-ai-grid__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(230,57,70,.1);
  color: var(--em-red);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}
.em-ai-grid__item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--em-text);
}
@media (max-width: 991px) {
  .em-ai-grid__item {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}
@media (max-width: 575px) {
  .em-ai-grid__item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Submit overlay */
.em-submit-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center;
}
.em-submit-overlay__box { text-align: center; color: var(--em-muted); }

/* Videos below question */
.em-videos-below {
  margin: 0 20px 20px; padding: 16px;
  background: var(--em-surface); border-radius: var(--em-radius);
  border: 1px solid var(--em-border);
}
.em-videos-below__head { font-size: 13px; font-weight: 700; color: var(--em-dark); margin-bottom: 12px; }
.em-video-item--compact { margin-bottom: 12px; }
.em-video-item--compact:last-child { margin-bottom: 0; }
.em-video-item--compact h6 { font-size: 12px; margin-bottom: 6px; }

/* Compact options desktop */
.em-options-row--compact { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.em-options-row--compact .em-take-option { flex: 1; min-width: 48px; max-width: 72px; }
.em-options-row--compact .em-option label { height: 44px; font-size: 15px; }

.em-take-nav { display: flex; justify-content: center; gap: 10px; padding: 0 20px 20px; }

/* Light modals */
.em-modal-light { background: #fff; border: none; border-radius: var(--em-radius-lg); }
.em-modal-light .modal-header { background: #fff; color: var(--em-dark); border-bottom: 1px solid var(--em-border); }
.em-modal-light .modal-title { color: var(--em-dark); font-weight: 700; }
.em-modal-light .modal-body { color: var(--em-text); }
.em-modal-light .modal-footer { border-top: 1px solid var(--em-border); position: relative; z-index: 2; }
.em-modal-light .modal-footer .em-btn { pointer-events: auto; position: relative; z-index: 3; }

.em-page-title { font-weight: 800; color: var(--em-dark); margin-bottom: 4px; }
.em-page-subtitle { color: var(--em-muted); font-size: 14px; margin: 0; }
.em-dash-stat__text { font-size: 1rem !important; }
.em-detail-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.em-detail-grid div {
  background: var(--em-surface); border-radius: 8px; padding: 12px; text-align: center;
}
.em-detail-grid strong { display: block; font-size: 1.2rem; color: var(--em-dark); }
.em-detail-grid span { font-size: 11px; color: var(--em-muted); text-transform: uppercase; }

@media (max-width: 767px) {
  .em-result-top-stats { grid-template-columns: repeat(2, 1fr); }
  .em-result-chart-row--compact { grid-template-columns: 1fr; }
}

/* Modal body padding */
.em-modal-light .modal-body,
.em-modal-body-padded { padding: 20px 24px !important; }

/* Videos outside question panel */
.em-videos-below--outside {
  margin: 0;
  max-width: 100%;
}

/* Mobile question map — compact */
@media (max-width: 991px) {
  .em-take-sidebar .em-sidebar-panel { border-radius: var(--em-radius); }
  .em-take-sidebar .em-sidebar-panel__head { padding: 10px 14px; font-size: 12px; }
  .em-take-sidebar .em-sidebar-panel__body { padding: 10px 12px; }
  .em-take-sidebar .em-nav-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    margin-top: 0;
  }
  .em-take-sidebar .em-nav-dot {
    aspect-ratio: auto;
    min-height: 30px;
    font-size: 10px;
    border-radius: 6px;
    border-width: 1px;
  }
}
@media (max-width: 480px) {
  .em-take-sidebar .em-nav-grid { grid-template-columns: repeat(10, 1fr); gap: 3px; }
  .em-take-sidebar .em-nav-dot { min-height: 26px; font-size: 9px; }
}

/* PDF export (off-screen render) */
.em-pdf-export {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 794px;
  display: none;
  z-index: -1;
}
.em-pdf-sheet {
  width: 794px;
  padding: 32px;
  background: #fff;
  color: #1a202c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  box-sizing: border-box;
}
.em-pdf-header { margin-bottom: 24px; border-bottom: 2px solid #e63946; padding-bottom: 16px; }
.em-pdf-header h1 { font-size: 22px; font-weight: 800; margin: 0 0 6px; color: #1a202c; }
.em-pdf-header p { margin: 0; color: #6b7280; font-size: 12px; }
.em-pdf-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.em-pdf-stat {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  background: #f9fafb;
}
.em-pdf-stat strong { display: block; font-size: 18px; color: #1a202c; }
.em-pdf-stat span { font-size: 11px; color: #6b7280; text-transform: uppercase; }
.em-pdf-section { margin-bottom: 20px; page-break-inside: avoid; }
.em-pdf-section h2 { font-size: 14px; font-weight: 700; margin: 0 0 10px; color: #1a202c; }
.em-pdf-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.em-pdf-table th, .em-pdf-table td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; }
.em-pdf-table th { background: #f3f4f6; font-weight: 700; }
.em-pdf-list { margin: 0; padding-left: 18px; }
.em-pdf-list li { margin-bottom: 6px; }
.em-pdf-text { margin: 0; white-space: pre-line; }
.em-pdf-muted { color: #6b7280; margin: 0; }

/* About page */
.em-about-intro { font-size: 1.05rem; line-height: 1.8; color: var(--em-text); margin-bottom: 32px; }
.em-about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 32px; }
.em-about-card {
  background: #fff; border: 1px solid var(--em-border); border-radius: var(--em-radius);
  padding: 20px; box-shadow: var(--em-shadow);
}
.em-about-card i { color: var(--em-red); font-size: 22px; margin-bottom: 10px; }
.em-about-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--em-dark); }
.em-about-card p { font-size: 13px; color: var(--em-muted); margin: 0; line-height: 1.6; }
.em-about-table-wrap { overflow-x: auto; margin-bottom: 28px; }
.em-about-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: var(--em-radius); overflow: hidden; border: 1px solid var(--em-border); }
.em-about-table th, .em-about-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--em-border); }
.em-about-table th { background: var(--em-surface); font-weight: 700; color: var(--em-dark); font-size: 12px; text-transform: uppercase; }
.em-about-table tr:last-child td { border-bottom: none; }
.em-about-table tr:nth-child(even) td { background: #fafafa; }
.em-about-bullets { list-style: none; padding: 0; margin: 0 0 28px; }
.em-about-bullets li {
  padding: 10px 0 10px 28px; position: relative;
  border-bottom: 1px solid var(--em-border); font-size: 15px; color: var(--em-text);
}
.em-about-bullets li::before {
  content: '✓'; position: absolute; left: 0; color: var(--em-red); font-weight: 700;
}
.em-about-cta {
  background: linear-gradient(135deg, var(--em-navy), #16213e);
  color: #fff; border-radius: var(--em-radius-lg); padding: 28px 32px; text-align: center;
}
.em-about-cta h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; color: #fff; }
.em-about-cta p { margin: 0; opacity: .85; font-size: 14px; color: #fff; }
