:root {
  /* Pearson VUE-style dark blue palette */
  --bar: #0b2a5b;
  --bar-dark: #061a3d;
  --strip: #1d4f91;
  --strip-dark: #163f77;
  --nav: #1d4f91;
  --nav-top: #3a76c0;
  --nav-hover: #2a63ad;
  --accent: #4f86cc;
  --text: #1a1a1a;
  --muted: #56657a;
  --line: #cfd8e3;
  --bg: #e7ecf3;
  --ok: #1e7b34;
  --ok-bg: #e6f4ea;
  --bad: #b3261e;
  --bad-bg: #fbe9e7;
  --warn-bg: #fff4d6;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: flex;
  flex-direction: column;
  font: 16px/1.55 Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}
.hidden { display: none !important; }
.icon { width: 18px; height: 18px; vertical-align: -3px; }

/* Title bar */
.titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: linear-gradient(var(--bar), var(--bar-dark));
  color: #fff;
  font-size: 15px;
  border-bottom: 1px solid var(--accent);
}
.titlebar-left { display: flex; align-items: center; gap: 14px; font-weight: bold; }
.brand { display: inline-flex; align-items: center; background: #fff; border-radius: 4px; padding: 2px 8px; }
.brand img { height: 30px; display: block; }

/* eGain watermark on the score report */
.watermarked { position: relative; overflow: hidden; isolation: isolate; }
.watermarked::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Pre-rotated tile (scripts/make_watermark.swift). Rotating the layer itself fails on a tall report. */
  background: url("assets/egain-watermark.png") repeat 0 0 / 300px 210px;
  opacity: 0.09;
  pointer-events: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.report-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.report-head h1 { margin: 0; }
.report-logo { height: 44px; }
/* Let the watermark show through the report's boxes */
.watermarked .stat, .watermarked .domains th, .watermarked .expl-body { background: rgba(255, 255, 255, 0.45); }
.watermarked .result-banner.pass { background: rgba(230, 244, 234, 0.75); }
.watermarked .result-banner.fail { background: rgba(251, 233, 231, 0.75); }
.watermarked .rq-opts li.is-correct { background: rgba(230, 244, 234, 0.75); }
.watermarked .rq-opts li.is-wrong { background: rgba(251, 233, 231, 0.75); }
.titlebar-right { display: flex; gap: 28px; white-space: nowrap; }
.tb-item { display: flex; align-items: center; gap: 6px; }
#tb-timer.warn strong { color: #ffd34d; }
#tb-timer.critical strong { color: #ff7a70; }

/* Screens */
.screen { flex: 1; overflow-y: auto; }
.panel {
  max-width: 1100px;
  margin: 24px auto;
  padding: 28px 36px;
  background: #fff;
  border: 1px solid var(--line);
}
.panel.narrow { max-width: 860px; }
h1 { font-size: 24px; margin: 0 0 16px; color: var(--bar); }
h2 { font-size: 18px; margin: 28px 0 10px; color: var(--bar); }
.muted { color: var(--muted); }
.error { color: var(--bad); font-weight: bold; }
.notice { margin-top: 18px; padding: 14px 16px; background: var(--warn-bg); border: 1px solid #e8cf7a; }
.notice button { margin: 8px 10px 0 0; }
kbd { border: 1px solid #aaa; border-bottom-width: 2px; border-radius: 3px; padding: 0 4px; font-size: 13px; background: #f7f7f7; }

.facts { border-collapse: collapse; width: 100%; }
.facts th, .facts td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 220px; color: var(--muted); font-weight: normal; }
.instructions li { margin-bottom: 6px; }
/* ===== Home page: AWS theme (squid ink + orange, with bright accent colours) ===== */
:root {
  --aws-ink: #232F3E;
  --aws-ink-deep: #131A22;
  --aws-orange: #FF9900;
  --aws-orange-dark: #EC7211;
}
body[data-screen="home"] .titlebar,
body[data-screen="landing"] .titlebar,
body[data-screen="courses"] .titlebar,
body[data-screen="admin"] .titlebar,
body[data-screen="history"] .titlebar {
  background: var(--aws-ink);
  border-bottom: 3px solid var(--aws-orange);
}
body[data-screen="home"] .navbar,
body[data-screen="landing"] .navbar,
body[data-screen="courses"] .navbar,
body[data-screen="admin"] .navbar,
body[data-screen="history"] .navbar { background: var(--aws-ink); border-top: 3px solid var(--aws-orange); }
#screen-home, #screen-landing, #screen-courses, #screen-admin, #screen-history {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(255, 153, 0, 0.10), transparent 60%),
    radial-gradient(800px 420px at 100% 10%, rgba(123, 79, 255, 0.09), transparent 60%),
    radial-gradient(900px 500px at 50% 100%, rgba(1, 168, 141, 0.08), transparent 60%),
    #f6f7fb;
}
.home { max-width: 1160px; margin: 0 auto; padding: 28px 24px 48px; }

.hero {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 34px 38px;
  color: #fff;
  border-radius: 18px;
  background:
    radial-gradient(520px 260px at 92% 20%, rgba(255, 153, 0, 0.35), transparent 70%),
    radial-gradient(420px 240px at 70% 110%, rgba(123, 79, 255, 0.35), transparent 70%),
    linear-gradient(135deg, var(--aws-ink) 0%, var(--aws-ink-deep) 100%);
  box-shadow: 0 18px 40px rgba(19, 26, 34, 0.28);
}
.hero::after { /* thin orange-to-pink accent line along the bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, #FF9900, #E7157B, #7B4FFF, #01A88D);
}
.hero-text { position: relative; z-index: 1; max-width: 700px; }
.hero-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-logo-wrap { display: inline-flex; background: #fff; border-radius: 10px; padding: 6px 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.hero-logo { height: 40px; display: block; }
.hero-chip {
  font-size: 12px; font-weight: bold; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--aws-orange); border: 1px solid rgba(255, 153, 0, 0.55); background: rgba(255, 153, 0, 0.10);
  padding: 5px 12px; border-radius: 999px;
}
.hero h1 { color: #fff; margin: 0 0 8px; font-size: 32px; line-height: 1.2; }
.hero .grad {
  background: linear-gradient(90deg, #FFB84D, #FF9900 40%, #FF6F91);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin: 0; color: #c9d3e0; font-size: 16px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-stat {
  min-width: 118px; padding: 10px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
}
.hero-stat b { display: block; font-size: 24px; color: #fff; line-height: 1.1; }
.hero-stat span { font-size: 12px; color: #aab7c8; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-stat:first-child b { color: var(--aws-orange); }
.hero-art { position: relative; z-index: 1; width: 300px; flex: none; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35)); }

.home h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 34px 0 4px; font-size: 21px; color: var(--aws-ink);
}
.home h2::before {
  content: ""; width: 6px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, var(--aws-orange), #E7157B);
}
.exam-section[data-category="section"] h2::before { background: linear-gradient(180deg, #01A88D, #7B4FFF); }
.exam-section[data-category="free"] h2::before { background: linear-gradient(180deg, #7AA116, #01A88D); }
/* Free Practice Exam card: green accent and a "FREE" ribbon */
.exam-card.free { --c1: #01A88D; --c2: #7AA116; border-color: color-mix(in srgb, #01A88D 30%, #e6e9f0); }
.exam-card.free .card-num { font-size: 0; }
.exam-card.free .card-num::after { content: "★"; font-size: 18px; }
.exam-card.free h3::after {
  content: "FREE"; margin-left: 10px; vertical-align: middle;
  font-size: 11px; font-weight: bold; letter-spacing: 0.08em;
  color: #fff; background: linear-gradient(90deg, #01A88D, #7AA116);
  padding: 3px 8px; border-radius: 999px;
}
/* Final Test: shown last in its own section, red-to-orange accent and a flag instead of a number */
.exam-section[data-category="final"] h2::before { background: linear-gradient(180deg, #DD344C, #FF9900); }
.exam-card.final { --c1: #DD344C; --c2: #FF9900; border-color: color-mix(in srgb, #DD344C 28%, #e6e9f0); }
.exam-card.final .card-num { font-size: 0; }
.exam-card.final .card-num::after { content: "⚑"; font-size: 19px; }
.section-intro { margin: 0 0 16px 16px; color: var(--muted); font-size: 14px; }
.exam-section + .exam-section { margin-top: 14px; }

.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.exam-card {
  --c1: var(--aws-orange); --c2: #FFB84D;
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e6e9f0;
  border-radius: 16px;
  padding: 22px 22px 20px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(35, 47, 62, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.exam-card::before { /* coloured top band */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}
.exam-card::after { /* soft colour glow in the corner */
  content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c1) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.exam-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c1) 40%, #e6e9f0);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--c1) 22%, transparent);
}
.card-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff; font-weight: bold;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--c1) 35%, transparent);
}
.exam-card h3 { font-size: 20px; color: var(--aws-ink); margin: 14px 0 2px; position: relative; z-index: 1; }
.card-sub { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.card-facts { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.card-facts li { background: #f3f5f9; color: #4a5566; border-radius: 999px; padding: 4px 10px; }
.card-facts b { color: var(--aws-ink); }
.card-detail { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
#screen-home .card-actions .btn {
  padding: 9px 18px; font-size: 14px; border-radius: 999px;
  background: linear-gradient(180deg, #FFAC31, var(--aws-orange));
  border: 1px solid var(--aws-orange-dark); color: var(--aws-ink-deep);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.30);
}
#screen-home .card-actions .btn:hover { background: linear-gradient(180deg, #FFB84D, var(--aws-orange-dark)); }
#screen-home .card-actions .btn.secondary {
  background: #fff; color: var(--aws-ink); border-color: #cfd6e0; box-shadow: none;
}
#screen-home .card-actions .btn.secondary:hover { border-color: var(--aws-orange); background: #fff8ec; }

/* "See AI Summary": the main action on a submitted exam card */
#screen-home .card-actions .btn.ai-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 800; font-size: 14.5px; letter-spacing: 0.01em; color: #fff;
  border: 0; padding: 10px 20px;
  background: linear-gradient(100deg, #7B4FFF 0%, #B23BE0 45%, #E7157B 100%);
  box-shadow: 0 6px 18px rgba(123, 79, 255, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 1px rgba(40, 0, 80, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#screen-home .card-actions .btn.ai-btn::after { /* light sweep across the button */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg); animation: ai-shine 3.2s ease-in-out infinite;
}
@keyframes ai-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
#screen-home .card-actions .btn.ai-btn:hover {
  background: linear-gradient(100deg, #6A3DF0 0%, #A22FD0 45%, #D10F6E 100%);
  transform: translateY(-1px); box-shadow: 0 10px 24px rgba(231, 21, 123, 0.40);
}
.ai-btn-spark { font-size: 15px; animation: ai-twinkle 1.8s ease-in-out infinite; }
@keyframes ai-twinkle { 50% { transform: scale(1.25) rotate(20deg); opacity: 0.8; } }
@media (prefers-reduced-motion: reduce) {
  #screen-home .card-actions .btn.ai-btn::after, .ai-btn-spark { animation: none; }
}
.status-badge { font-size: 12px; font-weight: bold; padding: 4px 11px; border-radius: 999px; position: relative; z-index: 1; }
.status-badge.new { background: #eef1f6; color: #4a5566; }
.status-badge.progress { background: #fff1cc; color: #7a5600; }
.status-badge.pass { background: var(--ok-bg); color: var(--ok); }
.status-badge.fail { background: var(--bad-bg); color: var(--bad); }

/* ----- Account controls in the title bar ----- */
.tb-user { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tb-email { color: #c9d3e0; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-link {
  font: bold 13px Arial, Helvetica, sans-serif; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px; padding: 5px 12px;
}
.tb-link:hover { border-color: var(--aws-orange); color: var(--aws-orange); }
#btn-admin { border-color: rgba(255, 153, 0, 0.6); color: var(--aws-orange); }

/* ----- Access state on the main page ----- */
.hero-access { margin-top: 16px; color: #c9d3e0; font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.access-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: bold; letter-spacing: 0.03em;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.access-pill .icon { width: 13px; height: 13px; }
.access-pill.full { background: #e6f7ee; color: #116b3a; }
.access-pill.free { background: #fff1cc; color: #7a5600; }
.hero .access-pill.full { background: rgba(1, 168, 141, 0.2); color: #7ff0d6; }
.hero .access-pill.free { background: rgba(255, 153, 0, 0.18); color: #FFB84D; }

.status-badge.locked { display: inline-flex; align-items: center; gap: 4px; background: #eceff4; color: #5b6676; }
.status-badge.locked .icon { width: 12px; height: 12px; }
.exam-card.is-locked { background: linear-gradient(180deg, #fbfcfe, #f4f6fa); }
.exam-card.is-locked h3, .exam-card.is-locked .card-facts { opacity: 0.72; }
.exam-card.is-locked::before { filter: grayscale(0.55); opacity: 0.75; }
#screen-home .card-actions .btn.locked-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--aws-ink); border: 1px dashed #9aa6b6; box-shadow: none;
}
#screen-home .card-actions .btn.locked-btn:hover { border-color: var(--aws-orange); border-style: solid; background: #fff8ec; }
.locked-btn .icon { width: 14px; height: 14px; }

/* ----- Sign in buttons (landing hero) ----- */
.signin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn.signin-primary, .btn.signin-secondary { padding: 9px 22px; font-size: 15px; border-radius: 999px; }
.btn.signin-primary {
  background: linear-gradient(180deg, #FFAC31, var(--aws-orange)); color: var(--aws-ink-deep);
  border: 1px solid var(--aws-orange-dark); box-shadow: 0 6px 16px rgba(255, 153, 0, 0.35);
}
.btn.signin-primary:hover { background: linear-gradient(180deg, #FFB84D, var(--aws-orange-dark)); }
.btn.signin-secondary { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }
.btn.signin-secondary:hover { border-color: var(--aws-orange); color: var(--aws-orange); background: transparent; }
.dev-signin {
  margin-top: 16px; display: grid; grid-template-columns: 1fr 150px auto; gap: 10px; align-items: end;
  background: rgba(255, 255, 255, 0.06); border: 1px dashed rgba(255, 255, 255, 0.3); border-radius: 10px; padding: 12px;
}
.dev-signin .dev-note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: #FFB84D; }
.dev-signin label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #c9d3e0; }
.dev-signin input, .dev-signin select {
  font: 14px Arial, sans-serif; padding: 7px 9px; border-radius: 7px; border: 1px solid #4a5a70;
  background: #0f1720; color: #fff;
}
.landing-hero .error { color: #ff9d94; margin-top: 14px; }

/* ----- Landing page (public) ----- */
.landing { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
/* Full-width banner, edge to edge under the title bar. Content sits in a centred 1080px column:
   exam practice and sign-in on the left, AI Study Coach panel on the right.
   Navy on the left fades into violet behind the AI panel. */
.landing-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 30px 0 32px;
  background:
    radial-gradient(600px 320px at 15% 0%, rgba(255, 153, 0, 0.20), transparent 70%),
    radial-gradient(520px 300px at 5% 100%, rgba(1, 168, 141, 0.18), transparent 70%),
    radial-gradient(700px 420px at 85% 0%, rgba(231, 21, 123, 0.36), transparent 70%),
    radial-gradient(700px 440px at 70% 100%, rgba(123, 79, 255, 0.45), transparent 70%),
    linear-gradient(90deg, var(--aws-ink) 0%, #1c1a3c 45%, #2a0f5e 75%, #3a0d55 100%);
}
.landing-hero-inner {
  position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: 40px;
}
.landing-hero::before { /* soft colour glows that drift slowly behind the content */
  content: ""; position: absolute; inset: -25%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(280px 280px at 22% 30%, rgba(255, 153, 0, 0.20), transparent 70%),
    radial-gradient(320px 320px at 78% 72%, rgba(231, 21, 123, 0.24), transparent 70%),
    radial-gradient(260px 260px at 55% 18%, rgba(1, 224, 184, 0.14), transparent 70%),
    radial-gradient(220px 220px at 38% 85%, rgba(123, 79, 255, 0.22), transparent 70%);
  animation: hero-drift 16s ease-in-out infinite alternate;
}
@keyframes hero-drift { to { transform: translate3d(5%, -4%, 0) scale(1.1); } }
.landing-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, #FF9900, #E7157B, #7B4FFF, #01A88D);
}
.landing-hero-text { position: relative; z-index: 1; min-width: 0; }
.landing-hero h1 { color: #fff; margin: 12px 0 8px; font-size: 29px; line-height: 1.15; }
.landing-hero .grad { /* shimmering gradient text */
  background: linear-gradient(90deg, #FFB84D, #FF9900 25%, #FF6F91 50%, #FF9900 75%, #FFB84D);
  background-size: 200% auto; animation: grad-shift 6s linear infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes grad-shift { to { background-position: 200% center; } }
.lead { margin: 0; color: #c9d3e0; font-size: 14.5px; line-height: 1.5; }

/* Continue with Google / LinkedIn */
.social-signin { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.social-signin + .signin-actions { margin-top: 10px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font: bold 14.5px Arial, Helvetica, sans-serif; color: #1f1f1f; background: #fff; border: 1px solid #dadce0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.social-btn svg { width: 18px; height: 18px; flex: none; }
.social-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.social-btn:focus-visible { outline: 2px solid #FFB84D; outline-offset: 2px; }
.social-or { font-size: 12px; color: #8fa0b5; text-transform: uppercase; letter-spacing: 0.08em; flex-basis: 100%; }

/* "Any exam only ₹299/-" price tag */
.price-tag {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; margin-top: 14px;
  padding: 7px 16px 7px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 211, 107, 0.16), rgba(255, 111, 181, 0.14));
  border: 1px solid rgba(255, 196, 92, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.07), 0 10px 26px rgba(255, 153, 0, 0.20);
}
.price-tag::after { /* light sweep */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg); animation: ai-shine 4s ease-in-out infinite;
}
.price-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2; color: #FFD36B; }
.price-amount {
  font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -0.01em;
  background: linear-gradient(90deg, #FFE7A8, #FFB020 45%, #FF6FB5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(255, 153, 0, 0.35));
}
.price-amount small { font-size: 17px; font-weight: 800; }
.price-sub { font-size: 12px; line-height: 1.35; color: #e6dcc5; padding-left: 12px; border-left: 1px solid rgba(255, 196, 92, 0.4); }
@media (prefers-reduced-motion: reduce) {
  .landing-hero::before, .landing-hero .grad, .price-tag::after { animation: none; }
}

/* ===== Banner: attention layer ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Faint grid + drifting sparkles behind the content */
.hero-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask: radial-gradient(ellipse 70% 90% at 35% 40%, #000, transparent 75%); mask: radial-gradient(ellipse 70% 90% at 35% 40%, #000, transparent 75%);
}
.hero-fx i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: 0;
  box-shadow: 0 0 10px 2px rgba(255, 184, 77, 0.8); animation: sparkle 7s ease-in-out infinite; }
.hero-fx i:nth-child(1) { left: 8%;  top: 22%; animation-delay: 0s; }
.hero-fx i:nth-child(2) { left: 30%; top: 78%; animation-delay: 1.2s; box-shadow: 0 0 10px 2px rgba(255, 111, 181, 0.8); }
.hero-fx i:nth-child(3) { left: 47%; top: 14%; animation-delay: 2.4s; box-shadow: 0 0 10px 2px rgba(1, 224, 184, 0.8); }
.hero-fx i:nth-child(4) { left: 62%; top: 86%; animation-delay: 3.6s; }
.hero-fx i:nth-child(5) { left: 88%; top: 30%; animation-delay: 4.8s; box-shadow: 0 0 10px 2px rgba(180, 156, 255, 0.9); }
.hero-fx i:nth-child(6) { left: 20%; top: 50%; animation-delay: 6s; box-shadow: 0 0 10px 2px rgba(1, 224, 184, 0.8); }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: translateY(0) scale(0.6); } 20% { opacity: 0.9; } 50% { opacity: 0.6; transform: translateY(-18px) scale(1); } 80% { opacity: 0; } }

/* Live dot in the top chip */
.hero-chip { display: inline-flex; align-items: center; gap: 7px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2EE59D; box-shadow: 0 0 0 0 rgba(46, 229, 157, 0.7); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(46, 229, 157, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0); } }

/* Headline: bigger, with rotating gradient words */
.landing-hero h1 { font-size: 34px; letter-spacing: -0.015em; margin: 14px 0 12px; }
.rotator { display: block; min-height: 1.15em; }
.rot-word { display: inline-block; transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease; }
.rot-word.out { opacity: 0; transform: translateY(10px); filter: blur(4px); }

/* Benefits */
.hero-benefits { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: #dfe6f0; }
.hero-benefits li { display: inline-flex; align-items: center; gap: 7px; }
.hero-benefits li span {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%;
  font-size: 11px; font-weight: 900; color: #0b2b22; background: linear-gradient(135deg, #2EE59D, #01A88D);
  box-shadow: 0 0 10px rgba(46, 229, 157, 0.45);
}

/* Offer card: START FREE badge + ₹299 */
.price-tag { margin-top: 16px; padding: 6px 16px 6px 6px; }
.price-free {
  font-size: 10px; line-height: 1.1; text-align: center; letter-spacing: 0.08em; text-transform: uppercase; color: #0b2b22;
  padding: 7px 10px; border-radius: 10px; background: linear-gradient(135deg, #2EE59D, #01C4A0); box-shadow: 0 4px 14px rgba(46, 229, 157, 0.4);
}
.price-free b { font-size: 15px; letter-spacing: 0.04em; }

/* Primary call to action: bigger, glowing, with a moving arrow */
.landing-hero .btn.signin-primary#btn-signup {
  position: relative; overflow: hidden; padding: 12px 26px; font-size: 16px; font-weight: 800;
  background: linear-gradient(90deg, #FFD36B, #FF9900 55%, #FF7A45); border: 0;
  box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.14), 0 12px 30px rgba(255, 153, 0, 0.45);
  animation: cta-pulse 2.6s ease-in-out infinite;
}
.landing-hero .btn.signin-primary#btn-signup::after { content: " →"; display: inline-block; margin-left: 4px; animation: cta-arrow 1.4s ease-in-out infinite; }
.landing-hero .btn.signin-primary#btn-signup:hover { transform: translateY(-2px); background: linear-gradient(90deg, #FFDE85, #FFA51F 55%, #FF8A5A); }
@keyframes cta-pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 153, 0, 0.05), 0 14px 34px rgba(255, 153, 0, 0.55); } }
@keyframes cta-arrow { 50% { transform: translateX(4px); } }
.landing-hero .signin-actions { margin-top: 16px; align-items: center; }

/* Real numbers strip */
.hero-stats-strip { display: flex; flex-wrap: wrap; gap: 0; margin: 20px 0 0; padding: 0; }
.hero-stats-strip div { padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, 0.15); }
.hero-stats-strip div:first-child { padding-left: 0; border-left: 0; }
.hero-stats-strip dt {
  font-size: 21px; font-weight: 900; line-height: 1.1;
  background: linear-gradient(90deg, #fff, #FFD9A0); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats-strip dt small { font-size: 12px; font-weight: 700; }
.hero-stats-strip dd { margin: 2px 0 0; font-size: 11.5px; color: #9fb0c6; }

@media (prefers-reduced-motion: reduce) {
  .hero-fx i, .live-dot, .landing-hero .btn.signin-primary#btn-signup, .landing-hero .btn.signin-primary#btn-signup::after { animation: none; }
  .rot-word { transition: none; }
}

.landing-section { margin-top: 32px; }

/* "NEW · AI Study Coach" pill in the hero */
.landing-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ai-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.03em; color: #fff; text-decoration: none;
  background: linear-gradient(90deg, #7B4FFF, #E7157B);
  border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 0 24px rgba(123, 79, 255, 0.65);
  animation: ai-glow 3s ease-in-out infinite;
}
.ai-pill b { background: #fff; color: #7B4FFF; border-radius: 999px; padding: 1px 7px; font-size: 10px; }
.ai-pill:hover { box-shadow: 0 0 34px rgba(231, 21, 123, 0.8); }
@keyframes ai-glow { 50% { box-shadow: 0 0 34px rgba(231, 21, 123, 0.75); } }

/* AI Study Coach: glass panel on the right of the banner */
.landing-ai {
  --ai1: #7B4FFF; --ai2: #E7157B; --ai3: #01E0B8;
  position: relative; z-index: 1; overflow: hidden; padding: 18px 18px 20px; border-radius: 14px;
  display: flex; flex-direction: column; gap: 12px; color: #fff;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(231, 21, 123, 0.30), transparent 70%),
    radial-gradient(420px 280px at 0% 100%, rgba(1, 224, 184, 0.16), transparent 70%),
    rgba(20, 8, 52, 0.45);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 40px rgba(10, 0, 40, 0.35);
  isolation: isolate;
}
.landing-ai::before { /* animated gradient border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: 2; pointer-events: none;
  background: linear-gradient(120deg, var(--ai1), var(--ai2), #FF9900, var(--ai3), var(--ai1));
  background-size: 300% 300%; animation: ai-border 6s ease infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.landing-ai::after { /* faint dot grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask: linear-gradient(90deg, #000, transparent 70%); mask: linear-gradient(90deg, #000, transparent 70%);
}
@keyframes ai-border { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.landing-ai h2 { margin: 0; font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; color: #fff; }
.ai-grad {
  background: linear-gradient(90deg, #B49CFF, #FF6FB5 55%, #FFB84D);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing-ai .lead { color: #e4dcff; font-size: 13px; margin-top: -6px; }
.btn.ai-cta {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; font-size: 14px; font-weight: 800; border-radius: 999px; border: 0; color: #2a0f5e;
  background: linear-gradient(90deg, #FFD36B, #FF9900 50%, #FF6FB5);
  box-shadow: 0 12px 30px rgba(255, 111, 181, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn.ai-cta::after { /* light sweep */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg); animation: ai-shine 3.2s ease-in-out infinite;
}
.btn.ai-cta:hover { background: linear-gradient(90deg, #FFDE85, #FFA51F 50%, #FF80BE); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(255, 111, 181, 0.55); }

/* Mock coach card */
.ai-preview { position: relative; z-index: 1; margin-top: 6px; }
.ai-preview::before { /* glow behind the card */
  content: ""; position: absolute; inset: 6% 2%; border-radius: 30px; z-index: -1;
  background: linear-gradient(135deg, var(--ai1), var(--ai2)); filter: blur(46px); opacity: 0.7;
}
.ai-card {
  background: #fff; color: var(--aws-ink); border-radius: 12px; padding: 4px 14px;
  box-shadow: 0 14px 32px rgba(10, 0, 40, 0.45);
}
.ai-area { display: flex; gap: 8px; padding: 8px 0; }
.ai-area + .ai-area { border-top: 1px solid #f0eef7; }
.ai-area > span {
  flex: none; width: 19px; height: 19px; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, var(--ai1), var(--ai2));
  font-size: 10px; font-weight: bold; display: inline-flex; align-items: center; justify-content: center;
}
.ai-area b { display: block; font-size: 12.5px; color: var(--aws-ink); }
.ai-area em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 1px; }
.ai-qs { display: flex; gap: 4px; margin-top: 4px; }
.ai-qs i { font-style: normal; font-size: 10px; font-weight: bold; color: #7B4FFF; border: 1px solid #cdbdff; border-radius: 8px; padding: 0 6px; }
.ai-float {
  position: absolute; z-index: 2; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 800;
  color: #2a0f5e; background: #fff; box-shadow: 0 8px 18px rgba(10, 0, 40, 0.35); animation: ai-bob 4s ease-in-out infinite;
}
.ai-float-1 { top: -12px; right: 10px; }
@keyframes ai-bob { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .landing-ai::before, .ai-pill, .ai-float, .btn.ai-cta::after { animation: none; }
}
.landing-h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px; font-size: 19px; color: var(--aws-ink);
}
.landing-h2::before {
  content: ""; width: 5px; height: 19px; border-radius: 3px;
  background: linear-gradient(180deg, var(--aws-orange), #E7157B);
}
.landing-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.landing-courses .course-card { padding: 18px 18px 16px; gap: 12px; }
.landing-courses .course-badge { width: 58px; height: 66px; }
.landing-courses .course-card h3 { font-size: 17px; }
.landing-courses .course-top p { font-size: 13px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.feature {
  background: #fff; border: 1px solid #e6e9f0; border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(35, 47, 62, 0.06);
}
.feature h3 { margin: 8px 0 4px; font-size: 15px; color: var(--aws-ink); }
.feature p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.f-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; font-size: 16px; color: #fff;
}
.f-icon.f1 { background: linear-gradient(135deg, #FF9900, #FFB84D); }
.f-icon.f2 { background: linear-gradient(135deg, #01A88D, #7AA116); }
.f-icon.f3 { background: linear-gradient(135deg, #7B4FFF, #C925D1); }
.f-icon.f4 { background: linear-gradient(135deg, #E7157B, #FF6F91); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; counter-reset: none; }
.steps li {
  position: relative; background: #fff; border: 1px solid #e6e9f0; border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(35, 47, 62, 0.06);
}
.steps li b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; font-size: 13px;
  background: var(--aws-ink); color: var(--aws-orange);
}
.steps h3 { margin: 8px 0 4px; font-size: 14.5px; color: var(--aws-ink); }
.steps p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

.landing-footer {
  display: flex; align-items: center; gap: 14px; margin-top: 36px; padding: 16px 0 22px;
  border-top: 1px solid #e1e5ec; font-size: 11.5px; color: var(--muted);
}
.landing-footer img { height: 22px; flex: none; }

/* "Create free account" button in the title bar */
.tb-link.tb-cta { background: var(--aws-orange); border-color: var(--aws-orange); color: var(--aws-ink-deep); font-weight: bold; }
.tb-link.tb-cta:hover { background: #FFB84D; border-color: #FFB84D; color: var(--aws-ink-deep); }

/* ----- My Courses ----- */
.courses-head h1 { margin: 0 0 6px; font-size: 30px; color: var(--aws-ink); }
.courses-head .muted { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.courses-hello { margin: 8px 0 2px; font-size: 14px; font-weight: bold; color: var(--aws-orange-dark); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 22px; margin-top: 24px; }
.course-card {
  --c1: var(--aws-orange); --c2: #FFB84D;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  background: #fff; border: 1px solid #e6e9f0; border-radius: 18px; padding: 24px 24px 20px;
  box-shadow: 0 2px 6px rgba(35, 47, 62, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.course-card::before { /* coloured band along the top */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}
.course-card[data-course] { cursor: pointer; }
.course-card[data-course]:hover, .course-card[data-course]:focus-visible {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--c1) 45%, #e6e9f0);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--c1) 22%, transparent); outline: none;
}
.course-card[data-course]:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }
.course-top { display: flex; gap: 18px; align-items: flex-start; }
.course-badge { width: 76px; height: 86px; flex: none; filter: drop-shadow(0 6px 10px rgba(35, 47, 62, 0.25)); }
.course-level { font-size: 12px; font-weight: bold; letter-spacing: 0.05em; text-transform: uppercase; color: var(--c1); }
.course-card h3 { margin: 4px 0 6px; font-size: 20px; line-height: 1.25; color: var(--aws-ink); }
.course-top p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.course-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.course-facts li { background: #f3f5f9; color: #4a5566; border-radius: 999px; padding: 4px 10px; }
.course-facts b { color: var(--aws-ink); }
.course-progress-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.course-bar { height: 8px; border-radius: 4px; background: #e9edf3; overflow: hidden; }
.course-bar > div { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.course-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid #eef1f5; padding-top: 14px; }
.course-open { font-weight: bold; color: var(--aws-ink); }
.course-card[data-course]:hover .course-open { color: var(--aws-orange-dark); }
.course-card .card-actions { margin-top: auto; }
.course-card .card-actions .btn {
  padding: 9px 22px; font-size: 14px; border-radius: 999px;
  background: linear-gradient(180deg, #FFAC31, var(--aws-orange));
  border: 1px solid var(--aws-orange-dark); color: var(--aws-ink-deep);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.30);
}
.course-card .card-actions .btn:hover { background: linear-gradient(180deg, #FFB84D, var(--aws-orange-dark)); }

/* Breadcrumb on the course page */
.crumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.crumb-link {
  font: bold 14px Arial, sans-serif; color: var(--aws-ink); background: none; border: 0; padding: 0; cursor: pointer;
}
.crumb-link:hover { color: var(--aws-orange-dark); text-decoration: underline; }

/* ----- Admin ----- */
.admin-panel { background: #fff; border: 1px solid #e6e9f0; border-radius: 16px; padding: 26px 28px; box-shadow: 0 2px 6px rgba(35, 47, 62, 0.06); }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.admin-head h1 { color: var(--aws-ink); margin: 0 0 6px; }
.admin-head p { margin: 0; max-width: 640px; }
#admin-search { font: 15px Arial, sans-serif; padding: 9px 14px; border: 1px solid #cfd6e0; border-radius: 999px; min-width: 260px; }
#admin-search:focus { outline: 2px solid var(--aws-orange); outline-offset: 1px; }
.admin-summary { display: flex; gap: 12px; margin: 20px 0 16px; flex-wrap: wrap; }
.admin-summary .hero-stat { background: #f6f7fb; border-color: #e6e9f0; }
.admin-summary .hero-stat b { color: var(--aws-ink); }
.admin-summary .hero-stat span { color: var(--muted); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; color: var(--muted); font-weight: bold; padding: 10px 12px; border-bottom: 2px solid #e6e9f0; }
.admin-table td { padding: 12px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.admin-table tr:hover td { background: #fafbfd; }
.admin-action { text-align: right; }
.admin-action .btn { border-radius: 999px; padding: 6px 18px; font-size: 13px; }
.admin-action .btn:not(.secondary) { background: linear-gradient(180deg, #FFAC31, var(--aws-orange)); color: var(--aws-ink-deep); border-color: var(--aws-orange-dark); }
.small { font-size: 12px; margin-top: 4px; }

/* Admin: add a student */
.add-student { margin: 18px 0 4px; padding: 14px 16px; border: 1px solid #e6e9f0; border-radius: 12px; background: #fafbfd; }
.add-student label { display: block; font-size: 14px; color: var(--aws-ink); margin-bottom: 8px; }
.add-student label .muted { font-size: 13px; margin-left: 6px; }
.add-student-row { display: flex; gap: 10px; flex-wrap: wrap; }
.add-student-row input {
  flex: 1 1 260px; font: 15px Arial, sans-serif; padding: 9px 14px; border: 1px solid #cfd6e0; border-radius: 999px;
}
.add-student-row input:focus { outline: 2px solid var(--aws-orange); outline-offset: 1px; }
.add-student-row .btn {
  border-radius: 999px; padding: 9px 20px; font-size: 14px;
  background: linear-gradient(180deg, #FFAC31, var(--aws-orange)); color: var(--aws-ink-deep); border-color: var(--aws-orange-dark);
}
.add-student-row .btn:disabled { opacity: 0.6; cursor: default; }
.add-student-msg { margin: 8px 0 0; font-size: 13px; }
.add-student-msg.ok { color: #116b3a; }
.add-student-msg.bad { color: #a4271b; }

/* ----- My Attempts ----- */
.hist-filter { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: bold; color: var(--muted); }
.hist-filter select {
  font: 14px Arial, sans-serif; padding: 8px 12px; border: 1px solid #cfd6e0; border-radius: 999px; min-width: 240px; background: #fff;
}
.hist-filter select:focus { outline: 2px solid var(--aws-orange); outline-offset: 1px; }
.hist-table td { white-space: nowrap; }
.hist-table td:first-child { white-space: normal; min-width: 150px; }
.hist-score {
  display: inline-block; min-width: 48px; text-align: center; font-size: 15px; font-weight: 800;
  padding: 3px 9px; border-radius: 8px;
}
.hist-score.pass { background: #e6f7ee; color: #116b3a; }
.hist-score.fail { background: #fdecea; color: #a4271b; }
.hist-result { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; }
.hist-result.pass { color: #1d8102; }
.hist-result.fail { color: #c0392b; }
.hist-best {
  display: inline-block; margin-left: 4px; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: #7a5600; background: #fff1cc; border-radius: 999px; padding: 2px 7px;
}
.hist-empty { padding: 26px 12px !important; color: var(--muted); white-space: normal !important; }
.admin-action .btn.hist-ai {
  display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: #fff; border: 0;
  background: linear-gradient(100deg, #7B4FFF, #B23BE0 45%, #E7157B); box-shadow: 0 4px 12px rgba(123, 79, 255, 0.35);
}
.admin-action .btn.hist-ai:hover { background: linear-gradient(100deg, #6A3DF0, #A22FD0 45%, #D10F6E); }
/* "3 attempts · best 812 · see all" link on exam cards */
.card-history {
  display: block; margin: -4px 0 10px; padding: 0; border: 0; background: none; cursor: pointer;
  font: bold 13px Arial, sans-serif; color: var(--aws-orange-dark); text-align: left;
}
.card-history:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .hero { padding: 26px 22px; }
  .dev-signin { grid-template-columns: 1fr; }
  .tb-email { display: none; }
  .hero-art { display: none; }
  .hero h1 { font-size: 26px; }
  .landing { padding: 0 14px; }
  .landing-hero-inner { grid-template-columns: 1fr; gap: 20px; padding: 0 14px; }
  .landing-hero { padding: 20px 0 22px;
    background:
      radial-gradient(360px 240px at 0% 0%, rgba(255, 153, 0, 0.22), transparent 70%),
      radial-gradient(420px 320px at 100% 100%, rgba(231, 21, 123, 0.38), transparent 70%),
      radial-gradient(420px 340px at 30% 85%, rgba(123, 79, 255, 0.45), transparent 70%),
      linear-gradient(180deg, var(--aws-ink) 0%, #1c1a3c 45%, #2a0f5e 80%, #3a0d55 100%); }
  .landing-hero h1 { font-size: 24px; }
  .price-tag { gap: 9px; padding: 6px 10px 6px 6px; }
  .price-label { display: none; }
  .hero-benefits { font-size: 13px; gap: 6px 14px; }
  .hero-stats-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-stats-strip div { padding: 0; border-left: 0; }
  .price-amount { font-size: 28px; }
  .price-sub { font-size: 11px; padding-left: 10px; }
  .landing-ai { padding: 16px 12px 18px; }
  .landing-ai h2 { font-size: 18px; }
  .btn.ai-cta { white-space: nowrap; }
  .landing-courses, .course-grid { grid-template-columns: 1fr; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; gap: 8px; }
  .feature, .steps li { padding: 12px; }
  .feature h3, .steps h3 { font-size: 13.5px; }
  .feature p, .steps p { font-size: 12px; }
  .landing-footer { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 861px) and (max-width: 1000px) {
  .landing-hero-inner { grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }
  .landing-hero h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .exam-card, .exam-card:hover, .course-card, .course-card:hover { transition: none; transform: none; }
}

/* Question */
.toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 7px 20px;
  background: linear-gradient(var(--strip), var(--strip-dark));
  border-bottom: 1px solid var(--bar-dark);
  color: #fff;
}
#screen-exam { background: #fff; }
.toolbar { height: 40px; }
.flag-status { display: inline-flex; align-items: center; gap: 6px; font-weight: bold; color: #ffcf66; }
.flag-status .flag-icon { color: #ffb020; stroke: #ffb020; }
/* Flag toggle in the bottom bar */
#btn-flag { display: inline-flex; align-items: center; gap: 6px; }
#btn-flag .flag-icon path { fill: none; stroke: #fff; }
#btn-flag.on { background: linear-gradient(#ffc24d, #f0a000); color: #1a1a1a; border-color: #ffe3a3; }
#btn-flag.on .flag-icon path { fill: #1a1a1a; stroke: #1a1a1a; }
#btn-flag.hidden { display: none !important; }
.review-mode { color: #dbe7f7; font-style: italic; }

.question { max-width: 1000px; margin: 0 auto; padding: 28px 36px 40px; }
.q-number { font-weight: bold; color: var(--bar); margin-bottom: 10px; }
.q-stem p { margin: 0 0 10px; }
pre.code {
  font: 14px/1.45 Menlo, Consolas, "Courier New", monospace;
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-left: 4px solid var(--strip);
  padding: 10px 14px;
  margin: 0 0 12px;
  overflow-x: auto;
}
.content-image { margin: 6px 0 14px; }
.content-image img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.table-wrap { overflow-x: auto; margin: 6px 0 12px; }
.content-table { border-collapse: collapse; width: 100%; font-size: 14px; background: rgba(255, 255, 255, 0.7); }
.content-table th, .content-table td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.content-table th { background: #e6edf6; color: var(--bar); }
.q-hint { color: var(--muted); font-style: italic; margin: 8px 0 14px; }
.options { list-style: none; padding: 0; margin: 16px 0 0; }
.option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
}
.option:hover { background: #f0f5fb; border-color: var(--line); }
.option.selected { background: #dce8f7; border-color: #7fa6d6; }
.option input { margin-top: 4px; width: 17px; height: 17px; flex: none; accent-color: var(--nav); }
.option .key { font-weight: bold; min-width: 18px; }

/* Bottom nav */
.navbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(var(--bar), var(--bar-dark));
  border-top: 1px solid var(--accent);
}
.nav-left, .nav-right { display: flex; gap: 10px; flex-wrap: wrap; }
.nav-btn, .btn {
  font: bold 15px Arial, Helvetica, sans-serif;
  color: #fff;
  background: linear-gradient(var(--nav-top), var(--nav));
  border: 1px solid #9fc0e8;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  padding: 8px 18px;
  cursor: pointer;
}
.nav-btn:hover, .btn:hover { background: linear-gradient(#4a87d2, var(--nav-hover)); }
.nav-btn:disabled { opacity: 0.4; cursor: default; }
.nav-btn:focus-visible, .btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn.secondary { background: #fff; color: var(--bar); border-color: var(--nav); box-shadow: none; }
.btn.secondary:hover { background: #eef3fa; }

/* Review screen */
.legend { display: flex; gap: 20px; margin: 10px 0; font-size: 14px; }
.sw { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border: 1px solid #999; }
.sw-answered { background: #fff; }
.sw-incomplete { background: #ffe08a; }
.sw-flagged { background: #fff; border: 2px solid #e07b00; }
.review-summary { font-weight: bold; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.review-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font: 14px Arial, Helvetica, sans-serif;
  text-align: left;
}
.review-cell:hover { border-color: var(--nav); }
.review-cell.incomplete { background: #ffe08a; }
.review-cell.flagged { outline: 2px solid #e07b00; outline-offset: -2px; }
.review-cell .tag { font-size: 12px; color: var(--muted); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 30, 0.55); display: flex; align-items: center; justify-content: center; z-index: 10; }
.modal { background: #fff; width: min(560px, 92vw); border: 1px solid #333; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.modal-title { background: var(--bar); color: #fff; font-weight: bold; padding: 10px 16px; }
.modal-body { padding: 18px 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 16px 16px; }

/* Results */
.result-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: 20px; border: 1px solid var(--line); }
.result-banner.pass { background: var(--ok-bg); border-color: #9fd3ac; }
.result-banner.fail { background: var(--bad-bg); border-color: #efb3ac; }
.badge { font-size: 30px; font-weight: bold; letter-spacing: 1px; padding: 8px 22px; color: #fff; border-radius: 3px; }
.pass .badge { background: var(--ok); }
.fail .badge { background: var(--bad); }
.score-big { font-size: 40px; font-weight: bold; line-height: 1; }
.score-sub { color: var(--muted); font-size: 14px; }
.scale { position: relative; height: 14px; background: #dfe5ea; border-radius: 7px; margin: 26px 0 30px; }
.scale-fill { position: absolute; inset: 0 auto 0 0; border-radius: 7px; }
.pass .scale-fill, .scale-fill.pass { background: var(--ok); }
.fail .scale-fill, .scale-fill.fail { background: var(--bad); }
.scale-mark { position: absolute; top: -6px; width: 2px; height: 26px; background: #222; }
.scale-mark span { position: absolute; top: 28px; left: -40px; width: 80px; text-align: center; font-size: 12px; }
.scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: -26px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.stat { border: 1px solid var(--line); padding: 12px; background: #fafbfc; }
.stat b { display: block; font-size: 22px; }
.disclaimer { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* AI study coach (score report) */
.coach {
  position: relative; margin: 24px 0 8px; padding: 20px 22px; border-radius: 8px;
  border: 1px solid #b9cde8; background: linear-gradient(180deg, #f3f8ff, #ffffff 70%);
  box-shadow: 0 2px 10px rgba(11, 42, 91, 0.08);
}
.coach::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, #7B4FFF, var(--nav));
}
.coach-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.coach-head h2 { margin: 0; color: var(--bar); }
.coach-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 10px; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, #7B4FFF, var(--nav));
}
.coach-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.coach-loading { display: flex; align-items: center; gap: 10px; color: var(--bar); font-weight: bold; padding: 8px 0; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 3px solid #c9d8ee; border-top-color: var(--nav);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.coach-summary { font-size: 16px; line-height: 1.5; margin: 0 0 14px; }
.coach-h { font-size: 15px; color: var(--bar); margin: 16px 0 8px; }
.coach-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.coach-area { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.coach-area-head { display: flex; gap: 10px; align-items: flex-start; }
.coach-area h3 { margin: 0; font-size: 16px; color: var(--bar); }
.coach-rank {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%; background: var(--bar); color: #fff; font-size: 13px; font-weight: bold;
}
.coach-domain { display: inline-block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.coach-area p { margin: 10px 0 6px; font-size: 14px; }
.coach-area ul, .coach-cols ul, .coach-cols ol { margin: 6px 0 0; padding-left: 20px; font-size: 14px; }
.coach-area li, .coach-cols li { margin-bottom: 4px; }
.coach-qs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.coach-q {
  font: bold 12px Arial, sans-serif; padding: 3px 9px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--nav); background: #fff; color: var(--bar);
}
.coach-q:hover { background: var(--nav); color: #fff; }
.coach-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; }
.rq-flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px #7B4FFF; } 100% { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) {
  .spinner, .rq-flash { animation: none; }
}

.domains { width: 100%; border-collapse: collapse; }
.domains th, .domains td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.domains th { background: #f3f6f9; font-size: 14px; }
.bar { height: 10px; background: #dfe5ea; border-radius: 5px; min-width: 120px; }
.bar > div { height: 100%; border-radius: 5px; }
.meets { color: var(--ok); font-weight: bold; }
.needs { color: var(--bad); font-weight: bold; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { font: 14px Arial, sans-serif; padding: 6px 14px; border: 1px solid var(--nav); background: #fff; color: var(--bar); border-radius: 16px; cursor: pointer; }
.chip.active { background: var(--nav); color: #fff; }
#toggle-expl { margin-left: auto; }

.rq { border: 1px solid var(--line); border-left: 5px solid #999; margin-bottom: 14px; padding: 14px 18px; }
.rq.correct { border-left-color: var(--ok); }
.rq.incorrect { border-left-color: var(--bad); }
.rq.unanswered { border-left-color: #c8a000; }
.rq-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.rq-head .status { font-weight: bold; }
.rq.correct .status { color: var(--ok); }
.rq.incorrect .status { color: var(--bad); }
.rq.unanswered .status { color: #8a6d00; }
.rq-domain { color: var(--muted); }
.rq .q-stem p { margin: 0 0 8px; }
.rq-opts { list-style: none; padding: 0; margin: 10px 0; }
.rq-opts li { padding: 6px 10px; margin-bottom: 4px; border: 1px solid transparent; border-radius: 3px; }
.rq-opts li.is-correct { background: var(--ok-bg); border-color: #9fd3ac; }
.rq-opts li.is-wrong { background: var(--bad-bg); border-color: #efb3ac; }
.rq-opts .tags { float: right; font-size: 12px; font-weight: bold; margin-left: 10px; }
.rq-opts .tags .t-correct { color: var(--ok); }
.rq-opts .tags .t-yours { color: #444; margin-left: 8px; }
details.expl { margin-top: 8px; }
details.expl summary { cursor: pointer; color: var(--nav); font-weight: bold; }
.expl-body { margin-top: 8px; padding: 12px 14px; background: #f7f9fb; border: 1px solid var(--line); }
.expl-body p { margin: 0 0 8px; }
.expl-body .answer-line { font-weight: bold; }
.expl-body ul { margin: 6px 0 0; padding-left: 20px; }
.expl-body a { color: var(--nav); word-break: break-all; }

@media (max-width: 700px) {
  .titlebar { flex-direction: column; align-items: flex-start; }
  .panel, .question { padding: 18px; margin: 0; }
  .facts th { width: 130px; }
}
