:root {
  --bg: #f7f6f2;
  --bg2: #efeee9;
  --bg3: #e6e4dc;
  --surface: #ffffff;
  --surface2: #f2f1ec;
  --ink: #1a1916;
  --ink2: #3d3c38;
  --ink3: #6b6a65;
  --ink4: #9b9a94;
  --accent: #2563eb;
  --accent2: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-mid: #bfdbfe;
  --green: #16a34a;
  --green-light: #dcfce7;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --purple: #7c3aed;
  --purple-light: #ede9fe;
  --border: #e2e1db;
  --border2: #d0cfc8;
  --shadow-sm: 0 1px 3px rgba(26, 25, 22, 0.06), 0 1px 2px rgba(26, 25, 22, 0.04);
  --shadow: 0 4px 12px rgba(26, 25, 22, 0.08), 0 2px 4px rgba(26, 25, 22, 0.04);
  --shadow-lg: 0 12px 32px rgba(26, 25, 22, 0.1), 0 4px 8px rgba(26, 25, 22, 0.06);
  --shadow-xl: 0 24px 64px rgba(26, 25, 22, 0.12), 0 8px 16px rgba(26, 25, 22, 0.06);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "DM Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.tag,
.badge,
.ftag,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
}

.tag,
.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink3);
}

.badge {
  font-size: 11px;
  padding: 4px 9px;
  font-weight: 600;
}

.badge.green { background: var(--green-light); color: var(--green); }
.badge.blue { background: var(--accent-light); color: var(--accent2); }
.badge.amber { background: var(--amber-light); color: var(--amber); }
.badge.purple { background: var(--purple-light); color: var(--purple); }
.badge.red { background: var(--red-light); color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--surface);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink2);
  border: 1px solid var(--border);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

.btn-lg { padding: 14px 28px; }
.btn-xl { padding: 16px 34px; font-size: 15px; }

#site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark,
.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--surface);
  font-size: 14px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--ink3);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--r-sm);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--bg2);
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-stack {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 0 24px;
}

.flash {
  padding: 12px 14px;
  border-radius: var(--r);
  margin-bottom: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}

.flash.success { border-color: #b7ebc7; background: #f1fcf4; }
.flash.error { border-color: #f8c0c0; background: #fff5f5; }
.flash.info { border-color: #cbd9ff; background: #f5f8ff; }

.hero,
.submit-section,
.exams-section,
.features-section,
.result-section,
.how-section,
.page-shell,
.ops-shell {
  padding: 72px 0;
}

.hero {
  padding-top: 92px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(37, 99, 235, 0.09), transparent 32%),
    radial-gradient(circle at 10% 80%, rgba(124, 58, 237, 0.06), transparent 26%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow,
.hero-actions,
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.live-dot {
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.12);
}

.hero-title,
.section-title,
.page-title,
.ops-title {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 18px 0;
}

.hero-title .accent-word {
  color: var(--accent);
}

.hero-subtitle,
.section-sub,
.page-subtitle {
  font-size: 17px;
  color: var(--ink3);
  max-width: 640px;
}

.trust-stat {
  min-width: 92px;
}

.trust-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.trust-label {
  font-size: 12px;
  color: var(--ink4);
}

.trust-divider {
  width: 1px;
  height: 34px;
  background: var(--border);
}

.hero-card,
.submit-card,
.exam-card,
.feature-card,
.result-demo,
.step,
.page-card,
.ops-card,
.ops-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
}

.card-header,
.card-body,
.card-footer,
.submit-body,
.result-analysis,
.result-footer-bar,
.ops-card-body {
  padding: 22px 24px;
}

.card-header,
.result-header,
.submit-footer,
.exam-card-footer,
.result-footer-bar,
.ops-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-header {
  border-bottom: 1px solid var(--border);
}

.card-header-left,
.result-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-avatar,
.result-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.card-name,
.result-name {
  font-weight: 700;
  font-size: 16px;
}

.card-meta,
.result-exam,
.card-footer-text,
.updated-at,
.muted {
  font-size: 13px;
  color: var(--ink4);
}

.exam-title-card,
.exam-card-name,
.feature-title,
.analysis-title,
.step-title,
.page-card-title,
.ops-card-title {
  font-weight: 700;
  font-size: 20px;
}

.exam-sub,
.exam-card-full,
.feature-desc,
.step-desc,
.page-card-subtitle {
  color: var(--ink3);
  font-size: 14px;
}

.score-row,
.result-ranks,
.features-grid,
.exam-grid,
.steps-grid,
.section-breakdown,
.stats-grid,
.ops-stats {
  display: grid;
  gap: 18px;
}

.score-row { grid-template-columns: repeat(3, 1fr); margin: 18px 0; }
.result-ranks { grid-template-columns: repeat(4, 1fr); }
.features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.exam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-grid,
.section-breakdown,
.stats-grid,
.ops-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.score-box,
.rank-block,
.section-box,
.stats-card,
.ops-stat {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface2);
  padding: 16px;
}

.score-val,
.rank-num,
.section-score,
.result-score-num,
.stats-value,
.ops-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.score-val.rank,
.rank-num.overall { color: var(--accent); }
.score-val.norm,
.rank-num.zone { color: var(--green); }
.rank-num.category { color: var(--purple); }
.rank-num.paper { color: var(--amber); }

.score-lbl,
.rank-lbl,
.result-score-lbl,
.stats-label,
.ops-stat-label {
  font-size: 11px;
  color: var(--ink4);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-section { margin-top: 16px; }
.progress-row,
.section-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}

.progress-bar {
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg2);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
}

.progress-fill.blue { background: var(--accent); }
.progress-fill.green { background: var(--green); }
.progress-fill.amber { background: var(--amber); }
.progress-fill.purple { background: var(--purple); }

.section-header {
  margin-bottom: 28px;
}

.section-title,
.page-title,
.ops-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0 10px;
}

.submit-tabs,
.exams-filter,
.ops-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.submit-tab,
.filter-btn,
.ops-nav a {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink3);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.submit-tab.active,
.filter-btn.active,
.ops-nav a.active,
.submit-tab:hover,
.filter-btn:hover,
.ops-nav a:hover {
  border-color: var(--accent-mid);
  background: var(--accent-light);
  color: var(--accent2);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 13px;
  color: var(--ink2);
  font-weight: 600;
}

.req { color: var(--red); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--r);
  border: 1px solid var(--border2);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09);
}

.url-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.url-paste-btn {
  border: 1px solid var(--border2);
  background: var(--surface2);
  border-radius: var(--r);
  padding: 0 14px;
  cursor: pointer;
}

.candidate-details,
.upload-zone,
.ai-insights,
.info-strip,
.offline-sticky,
.ops-panel {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface2);
}

.candidate-details-title,
.ai-insights-title,
.ops-section-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.submit-footer {
  padding: 18px 24px 24px;
}

.submit-note {
  font-size: 13px;
  color: var(--ink3);
}

.upload-zone {
  border-style: dashed;
  text-align: center;
  background: var(--bg);
}

.upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.upload-title {
  font-weight: 700;
}

.upload-sub {
  color: var(--ink3);
  font-size: 14px;
}

.upload-formats,
.feature-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.ftag {
  background: var(--bg2);
  color: var(--ink3);
  font-size: 12px;
  padding: 5px 10px;
}

.exam-card {
  padding: 20px;
}

.exam-card-top,
.exam-stats,
.feature-icon,
.how-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exam-org-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--surface2);
}

.exam-stats {
  flex-wrap: wrap;
  margin: 14px 0 18px;
  font-size: 13px;
  color: var(--ink3);
}

.exam-stat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border2);
}

.check-rank-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.feature-card {
  padding: 22px;
}

.feature-icon {
  width: 54px;
  height: 54px;
  justify-content: center;
  border-radius: 18px;
  font-size: 22px;
  margin-bottom: 16px;
}

.fi-blue { background: var(--accent-light); color: var(--accent2); }
.fi-green { background: var(--green-light); color: var(--green); }
.fi-purple { background: var(--purple-light); color: var(--purple); }
.fi-amber { background: var(--amber-light); color: var(--amber); }
.fi-red { background: var(--red-light); color: var(--red); }
.fi-gray { background: var(--bg2); color: var(--ink2); }

.result-section {
  background: var(--bg2);
}

.result-header {
  padding: 28px 30px;
  border-bottom: 1px solid var(--border);
}

.result-score-big {
  text-align: right;
}

.result-analysis {
  border-top: 1px solid var(--border);
}

.section-box.s1 { background: #f7f2ff; }
.section-box.s2 { background: #eefbf1; }
.section-box.s3 { background: #fff6ee; }
.section-detail {
  font-size: 12px;
  color: var(--ink3);
}

.ai-insights {
  margin-top: 22px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(37, 99, 235, 0.06));
}

.ai-insights-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.page-shell,
.ops-shell {
  min-height: calc(100vh - 120px);
}

.page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.ops-header {
  margin-bottom: 28px;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.ops-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.ops-grid {
  grid-template-columns: 1fr;
}

.ops-table table {
  width: 100%;
  border-collapse: collapse;
}

.ops-table th,
.ops-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.ops-table th {
  color: var(--ink3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ops-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ops-form-grid .full {
  grid-column: 1 / -1;
}

.form-error {
  margin-top: 6px;
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea,
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.result-summary-list,
.detail-list {
  display: grid;
  gap: 12px;
}

.detail-item {
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--surface2);
  border: 1px solid var(--border);
}

.offline-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}

.question-card {
  padding: 20px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--ink4);
}

.question-prompt {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface2);
}

.offline-sticky {
  position: sticky;
  top: 88px;
}

footer {
  background: #091E52;
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 14px;
  color: #fff;
}

.footer-brand .logo-mark,
.footer-brand .logo-icon {
  background: rgba(255, 255, 255, 0.12);
}

.footer-tagline {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.75;
  max-width: 260px;
  margin-bottom: 20px;
  font-weight: 400;
}

.footer-col-title {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #FF6B2B;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1100px) {
  .hero-grid,
  .page-grid,
  .offline-layout {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .exam-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-ranks,
  .steps-grid,
  .section-breakdown,
  .stats-grid,
  .ops-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .result-header,
  .submit-footer,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .features-grid,
  .exam-grid,
  .footer-grid,
  .form-grid,
  .form-grid-3,
  .score-row,
  .result-ranks,
  .steps-grid,
  .section-breakdown,
  .stats-grid,
  .ops-stats,
  .ops-form-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 18px;
  }

  .hero,
  .submit-section,
  .exams-section,
  .features-section,
  .result-section,
  .how-section,
  .page-shell,
  .ops-shell {
    padding: 54px 0;
  }
}

/* V3 Admin Theme Override (Rankoogle moodle inspired) */
:root {
  --bg: #f4f7ff;
  --bg2: #eef3ff;
  --bg3: #e6ecff;
  --surface: #ffffff;
  --surface2: #f8faff;
  --ink: #142249;
  --ink2: #22356a;
  --ink3: #4b5f8f;
  --ink4: #7f91ba;
  --accent: #ff6b2b;
  --accent2: #e85520;
  --accent-light: #fff3ee;
  --accent-mid: #ffc9b3;
  --green: #2ecc8a;
  --green-light: #e0f9ee;
  --amber: #f59e0b;
  --amber-light: #fff7e2;
  --red: #ef4444;
  --red-light: #fff1f2;
  --purple: #6d5ef7;
  --purple-light: #f0eeff;
  --border: #e4eaf8;
  --border2: #cbd5ef;
  --shadow-sm: 0 2px 8px rgba(13, 43, 110, 0.08);
  --shadow: 0 8px 24px rgba(13, 43, 110, 0.1);
  --shadow-lg: 0 16px 48px rgba(13, 43, 110, 0.14);
  --shadow-xl: 0 30px 72px rgba(13, 43, 110, 0.18);
  --font-display: "Poppins", sans-serif;
  --font-body: "Nunito", sans-serif;
  --font-mono: "Poppins", sans-serif;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #f9fbff 0%, #f2f6ff 100%);
  color: var(--ink);
}

#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 220;
  background: rgba(9, 30, 82, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-inner {
  min-height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.logo-mark,
.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6b2b, #ff8c5a);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 43, 0.35);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.01em;
}

.logo-text span {
  color: var(--accent);
}

#site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

#site-nav .nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none;
  padding: 8px 16px !important;
  border-radius: var(--r-sm);
  transition: all 0.15s;
}

#site-nav .nav-links a:hover,
#site-nav .nav-links a.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

#site-nav .nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Ensure buttons in navbar are not overridden by page-level .btn styles */
#site-nav .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}

#site-nav .btn-sm {
  padding: 9px 20px !important;
}

#site-nav .btn-outline-white {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.45) !important;
}

#site-nav .btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  transform: translateY(-1px) !important;
}

#site-nav .btn-accent {
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
}

#site-nav .btn-accent:hover {
  background: var(--accent2) !important;
  box-shadow: 0 8px 32px rgba(255, 107, 43, 0.3) !important;
  transform: translateY(-1px) !important;
}


.btn {
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: #0d2b6e;
  color: #fff;
}

.btn-primary:hover {
  background: #091e52;
  box-shadow: 0 12px 30px rgba(13, 43, 110, 0.28);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent2);
  box-shadow: 0 10px 28px rgba(255, 107, 43, 0.33);
}

.btn-ghost {
  border: 1px solid var(--border2);
  color: var(--ink2);
  background: var(--surface);
}

.nav-cta .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.nav-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.64);
}

.page-shell,
.ops-shell {
  min-height: calc(100vh - 120px);
  padding: 112px 0 72px;
}

.flash-stack {
  margin: 86px auto 0;
}

.flash {
  border-color: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.pill {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 107, 43, 0.14);
  border: 1px solid rgba(255, 107, 43, 0.32);
  padding: 6px 13px;
}

.page-title,
.ops-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: #122458;
}

.page-subtitle {
  color: var(--ink3);
}

.page-card,
.ops-card,
.ops-table,
.question-card,
.offline-sticky,
.detail-item {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.ops-card {
  overflow: hidden;
}

.ops-card-body,
.result-analysis,
.result-footer-bar,
.offline-sticky {
  padding: 22px 24px;
}

.ops-card-title,
.page-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #15285f;
  letter-spacing: -0.01em;
}

.ops-header {
  margin-bottom: 24px;
}

.ops-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ops-nav a {
  font-family: var(--font-display);
  border: 1px solid var(--border2);
  background: #fff;
  color: var(--ink3);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.ops-nav a:hover,
.ops-nav a.active {
  border-color: rgba(255, 107, 43, 0.36);
  color: var(--accent);
  background: var(--accent-light);
}

.ops-stats {
  gap: 14px;
}

.ops-stat {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: var(--shadow-sm);
}

.ops-stat-value {
  color: #123074;
}

.ops-table {
  padding: 0 12px 10px;
}

.ops-table table {
  width: 100%;
  border-collapse: collapse;
}

.ops-table th,
.ops-table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  padding: 13px 12px;
}

.ops-table th {
  font-family: var(--font-display);
  color: var(--ink3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ops-table tbody tr:hover td {
  background: #f7faff;
}

.ops-form-grid {
  gap: 16px;
}

.form-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #2e4276;
  font-weight: 700;
}

.form-input,
.form-select,
.form-textarea,
.ops-form-grid input[type="file"],
.ops-form-grid input[type="text"],
.ops-form-grid input[type="number"],
.ops-form-grid input[type="password"],
.ops-form-grid input[type="url"],
.ops-form-grid textarea,
.ops-form-grid select,
.form-grid input[type="text"],
.form-grid input[type="password"],
.form-grid input[type="url"],
.form-grid input[type="file"],
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid var(--border2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 11px 13px;
  font: inherit;
}

.form-textarea,
.ops-form-grid textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.ops-form-grid input:focus,
.ops-form-grid textarea:focus,
.ops-form-grid select:focus,
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: none;
  border-color: #ff9a6e;
  box-shadow: 0 0 0 4px rgba(255, 107, 43, 0.14);
}

.muted {
  color: var(--ink4);
}

.detail-item {
  border-radius: 14px;
  background: #f8faff;
}

.option-item {
  border: 1px solid var(--border);
  background: #f8faff;
}

.question-card {
  box-shadow: var(--shadow);
}

footer {
  background: linear-gradient(135deg, #091e52 0%, #0d2b6e 58%, #1a4fb0 100%);
  color: rgba(255, 255, 255, 0.84);
}

.footer-brand .logo {
  color: #fff;
}

.footer-brand .logo-mark,
.footer-brand .logo-icon {
  background: linear-gradient(135deg, #ff6b2b, #ff8c5a);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
}

.footer-tagline,
.footer-links a,
.footer-copy,
.footer-legal a {
  color: rgba(255, 255, 255, 0.68);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .ops-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell,
  .ops-shell {
    padding: 96px 0 54px;
  }

  .nav-cta {
    display: none;
  }

  .ops-stats,
  .ops-form-grid {
    grid-template-columns: 1fr;
  }
}


/* RRB Result Styles */
.rrb-card {
  background: #ffffff;
  border: 4px solid #0D2B6E;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(13, 43, 110, 0.12);
  margin-bottom: 24px;
}

.rrb-card-header {
  background: linear-gradient(135deg, #0D2B6E, #1A3D8F);
  padding: 20px;
  text-align: center;
  border-bottom: none;
}

.rrb-card-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.rrb-candidate-table {
  width: 100%;
  border-collapse: collapse;
}

.rrb-candidate-table td {
  padding: 12px 18px;
  border-bottom: 1.5px solid #d1d5db;
  font-size: 14px;
  color: #1f2937;
  vertical-align: middle;
}

.rrb-candidate-table tr:last-child td {
  border-bottom: none;
}

.rrb-candidate-table td.label-col {
  width: 35%;
  font-weight: 700;
  color: #111827;
  background: #f9fafb;
  border-right: 1.5px solid #d1d5db;
}

.rrb-candidate-table td.value-col {
  font-weight: 500;
  color: #374151;
}

.rrb-section-table {
  width: 100%;
  border-collapse: collapse;
}

.rrb-section-table th {
  background: linear-gradient(135deg, #0D2B6E, #1A3D8F);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  text-align: center;
  border-right: 1.5px solid rgba(255, 255, 255, 0.2);
}

.rrb-section-table th:last-child {
  border-right: none;
}

.rrb-section-table td {
  padding: 12px 16px;
  border-bottom: 1.5px solid #d1d5db;
  border-right: 1.5px solid #d1d5db;
  font-size: 14px;
  color: #374151;
  text-align: center;
}

.rrb-section-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #111827;
}

.rrb-section-table td:last-child {
  border-right: none;
}

.rrb-section-table tr.total-row td {
  background: rgba(255, 107, 43, 0.1);
  color: #0D2B6E;
  font-weight: 700;
  font-size: 15px;
  border-bottom: none;
}

.rrb-table-footer {
  padding: 12px 20px;
  font-size: 13px;
  color: #4b5563;
  background: #f9fafb;
  border-top: 1.5px solid #d1d5db;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Full-width top result card (candidate details + section-wise scores) */
.rrb-result-head {
  margin-bottom: 28px;
}

/* ── Scorecard Block ─────────────────────────────────── */
.scorecard-block {
  background: linear-gradient(135deg, rgba(13,43,110,0.03), rgba(255,107,43,0.03));
  border: 1.5px solid rgba(13,43,110,0.15);
  border-radius: 12px;
  padding: 28px 32px 20px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(13,43,110,0.08);
}

.scorecard-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: space-around;
  padding: 12px 0;
}

.sc-stat {
  flex: 1 1 120px;
  text-align: center;
  padding: 8px 16px;
}

.sc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sc-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.sc-value.blue   { color: #2196f3; }
.sc-value.green  { color: #4caf50; }
.sc-value.red    { color: #f44336; }
.sc-value.amber  { color: #f59e0b; }
.sc-value.muted  { color: #9ca3af; }

.sc-divider {
  border: none;
  border-top: 1px solid #f3f4f6;
  margin: 4px 0;
}

/* Section donut charts */
.sc-charts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}

.sc-chart-card {
  flex: 1 1 240px;
  text-align: center;
}

.sc-chart-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
  text-align: center;
}

.sc-legend {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.sc-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 3px;
}
.sc-dot.green { background: #4caf50; }
.sc-dot.red   { background: #f44336; }
.sc-dot.grey  { background: #e0e0e0; }

.sc-donut-wrap {
  display: flex;
  justify-content: center;
}

/* ── Candidate Response Sheet ───────────────────────── */
.response-sheet-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.rs-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 16px;
}

.rs-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.rs-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.rs-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rs-tab-btn:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.rs-tab-btn.active {
  background: #3b82f6;
  color: #ffffff;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 9999px;
}

.badge-success {
  background-color: #22c55e;
  color: #ffffff;
}

.badge-danger {
  background-color: #ef4444;
  color: #ffffff;
}

.rs-tab-btn.active .badge-success {
  background-color: #ffffff;
  color: #22c55e;
}

.rs-tab-btn.active .badge-danger {
  background-color: #ffffff;
  color: #ef4444;
}

.rs-panel {
  display: none;
}

.rs-panel.active {
  display: block;
}

.rs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.q-item-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.q-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
}

.q-item-card.right-card {
  border-left: 4px solid #22c55e;
}

.q-item-card.wrong-card {
  border-left: 4px solid #ef4444;
}

.q-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.q-num {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

.q-sec-lbl {
  font-size: 11px;
  font-weight: 500;
  color: #4b5563;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
}

.q-options-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
}

.opt-box {
  display: flex;
  flex-direction: column;
}

.opt-lbl {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.opt-val {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.q-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.q-status-badge svg {
  width: 14px;
  height: 14px;
}

.q-status-badge.success {
  color: #22c55e;
}

.q-status-badge.danger {
  color: #ef4444;
}

.rs-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #6b7280;
  font-size: 15px;
}

/* ── Question Details Inside Cards ─────────────────── */
.q-id-lbl {
  font-size: 11px;
  font-weight: normal;
  color: #9ca3af;
  margin-left: 8px;
}

.q-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

.q-text-content {
  font-size: 14px;
  color: #1f2937;
  line-height: 1.5;
  font-weight: 500;
  text-align: left;
}

.q-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.q-option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  text-align: left;
}

.q-option-item.chosen-opt {
  border-color: #fca5a5;
  background-color: #fef2f2;
  color: #b91c1c;
}

.q-option-item.chosen-opt .opt-text {
  color: #b91c1c;
}

.q-option-item.correct-opt {
  border-color: #86efac;
  background-color: #f0fdf4;
  color: #15803d;
}

.q-option-item.correct-opt .opt-text {
  color: #15803d;
}

.opt-key {
  font-weight: 700;
  color: #4b5563;
  min-width: 16px;
}

.opt-text {
  color: #4b5563;
  flex: 1;
}

.opt-id {
  font-size: 10px;
  color: #9ca3af;
  margin-left: auto;
}

/* ── Section & Status Tabs layout ──────────────────── */
.rs-sections-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.rs-sec-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rs-sec-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

.rs-sec-btn.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.rs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.q-item-card.unattempted-card {
  border-left: 4px solid #9ca3af;
}

.badge-neutral {
  background-color: #6b7280;
  color: #ffffff;
}

.rs-tab-btn.active .badge-neutral {
  background-color: #ffffff;
  color: #6b7280;
}

.q-status-badge.neutral {
  color: #6b7280;
}

/* Responsive Table Wrapper */
.rrb-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .rrb-section-table {
    min-width: 600px;
  }
  .rrb-candidate-table {
    min-width: 500px;
  }
}
