/* SANJOSH Test Series — design system
   Army night-green + brass, with a thin tricolor thread. Rajdhani (headings) + Mukta (text). */
:root {
  --night: #0e170b;
  --olive-900: #17230f;
  --olive-800: #1f2e15;
  --olive-700: #2c3f1d;
  --olive-500: #4e6b30;
  --olive-100: #e8eedb;
  --brass: #d6a531;
  --brass-600: #b8891c;
  --brass-100: #f8edcc;
  --paper: #f5f3ec;
  --card: #ffffff;
  --ink: #141810;
  --ink-2: #3a4033;
  --muted: #6a7061;
  --line: #e4e0d2;
  --line-2: #d3cdb8;
  --saffron: #ff9933;
  --india-green: #138808;
  --ok: #1b7a37;
  --ok-100: #e2f3e6;
  --wait: #94600a;
  --wait-100: #fdf1d3;
  --bad: #b3261e;
  --bad-100: #fbe6e4;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 24, 16, .06), 0 8px 24px rgba(20, 24, 16, .08);
  --shadow-lg: 0 2px 6px rgba(20, 24, 16, .08), 0 24px 60px rgba(14, 23, 11, .22);
  --font: 'Mukta', 'Nirmala UI', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Rajdhani', 'Mukta', 'Nirmala UI', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--olive-500); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: .2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 680px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand .badge { width: 42px; height: 42px; flex: none; }
.brand img.badge { border-radius: 50%; background: #fff; }
.brand-text { line-height: 1; min-width: 0; }
.brand-text b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: 2.5px; font-weight: 700; }
.brand-text small { display: block; font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); margin-top: 3px; font-weight: 600; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(14, 23, 11, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); color: #fff; border-bottom: 1px solid rgba(214, 165, 49, .18); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.topbar nav { display: flex; gap: 6px; align-items: center; }
.topbar nav a { color: #e9ecdf; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.topbar nav a:hover { background: rgba(255, 255, 255, .08); }
.topbar nav a.pill { border: 1px solid rgba(214, 165, 49, .55); color: var(--brass); }
@media (max-width: 640px) { .topbar nav a.hide-sm { display: none; } }
.thread { height: 3px; background: linear-gradient(90deg, var(--saffron) 0 33.33%, #fff 33.33% 66.66%, var(--india-green) 66.66%); }

.demo-strip { background: var(--wait-100); color: var(--wait); font-size: 14px; border-bottom: 1px solid #f0d58a; }
.demo-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 6px; padding-bottom: 6px; }
.demo-strip button { background: none; border: 1px solid currentColor; border-radius: 999px; padding: 2px 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: inherit; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  min-height: 52px; padding: 12px 22px; border-radius: 14px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-brass { background: linear-gradient(180deg, #e3b545, var(--brass) 55%, var(--brass-600)); color: #1c1403; box-shadow: 0 6px 18px rgba(214, 165, 49, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-brass:hover { box-shadow: 0 8px 26px rgba(214, 165, 49, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-dark { background: var(--olive-800); color: #fff; }
.btn-dark:hover { background: var(--olive-700); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn-ghost-light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn-danger { background: #fff; border-color: #e5b4ae; color: var(--bad); }
.btn-sm { min-height: 40px; padding: 7px 14px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(214, 165, 49, .18), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(78, 107, 48, .45), transparent 70%),
    linear-gradient(180deg, var(--night), var(--olive-900));
}
.hero::before { /* faint camo */
  content: ''; position: absolute; inset: 0; opacity: .09; pointer-events: none;
  background:
    radial-gradient(38px 26px at 12% 22%, #4e6b30 98%, transparent),
    radial-gradient(54px 30px at 32% 64%, #3a5224 98%, transparent),
    radial-gradient(44px 34px at 58% 18%, #5d7a3a 98%, transparent),
    radial-gradient(60px 28px at 78% 70%, #3a5224 98%, transparent),
    radial-gradient(30px 22px at 90% 34%, #6b5a2c 98%, transparent),
    radial-gradient(36px 24px at 44% 88%, #6b5a2c 98%, transparent);
  background-size: 260px 220px;
}
.hero .wrap { position: relative; padding-top: 40px; padding-bottom: 120px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #e7e3cf; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); padding: 5px 12px 5px 10px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #5bd36f; box-shadow: 0 0 0 4px rgba(91, 211, 111, .2); }
.eyebrow.closed .dot { background: #e35d4f; box-shadow: 0 0 0 4px rgba(227, 93, 79, .2); }
.hero h1 { font-size: clamp(42px, 9vw, 76px); font-weight: 700; margin: 18px 0 6px; letter-spacing: .5px; }
.hero h1 .gold { color: var(--brass); }
.hero .lead { font-size: clamp(17px, 2.6vw, 20px); color: #cfd5c3; max-width: 560px; margin: 0 0 26px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .ctas .btn { flex: 1 1 220px; max-width: 320px; }
.salute { position: absolute; right: -10px; top: 40px; width: 300px; opacity: .12; pointer-events: none; }
@media (max-width: 760px) { .salute { width: 200px; top: auto; bottom: 140px; right: -40px; } }

.countdown { display: flex; gap: 10px; margin: 0 0 26px; }
.countdown div { min-width: 70px; text-align: center; background: rgba(0, 0, 0, .28); border: 1px solid rgba(214, 165, 49, .3); border-radius: 12px; padding: 8px 6px 6px; }
.countdown b { display: block; font-family: var(--display); font-size: 32px; line-height: 1; color: var(--brass); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12.5px; color: #c4cab7; }
.countdown-label { font-size: 14px; color: #aab29b; margin: 0 0 8px; font-weight: 600; }

/* ---------- exam ticket ---------- */
.ticket-wrap { margin-top: -84px; position: relative; z-index: 2; }
.ticket {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; position: relative;
}
.ticket .t-item { padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; border-right: 1px dashed var(--line-2); min-width: 0; }
.ticket .t-item:last-child { border-right: 0; }
.ticket .ico { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--olive-100); color: var(--olive-700); display: grid; place-items: center; }
.ticket .ico svg { width: 22px; height: 22px; }
.ticket small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.ticket b { display: block; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.ticket .t-center { grid-column: span 1; }
@media (max-width: 900px) {
  .ticket { grid-template-columns: 1fr 1fr; }
  .ticket .t-item { border-right: 0; border-bottom: 1px dashed var(--line-2); }
  .ticket .t-item:nth-child(odd) { border-right: 1px dashed var(--line-2); }
  .ticket .t-center, .ticket .t-fee { grid-column: 1 / -1; border-right: 0 !important; }
  .ticket .t-item:last-child { border-bottom: 0; }
}
@media (max-width: 420px) { .ticket .t-item { padding: 16px 14px; gap: 10px; } .ticket .ico { width: 36px; height: 36px; } }

/* ---------- sections ---------- */
.section { padding-top: 56px; padding-bottom: 8px; }
.section h2 { font-size: clamp(28px, 5vw, 38px); margin: 0 0 6px; }
.section .sub { color: var(--muted); margin: 0 0 24px; }
.kicker { font-size: 14px; font-weight: 700; color: var(--brass-600); margin: 0 0 6px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; counter-increment: s; position: relative; }
.steps li::before { content: '0' counter(s); font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--brass); line-height: 1; display: block; margin-bottom: 8px; }
.steps li b { display: block; font-size: 18px; margin-bottom: 4px; }
.steps li span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } .steps li { display: grid; grid-template-columns: 48px 1fr; } .steps li::before { grid-row: span 2; margin: 0; } }

.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.level { border-radius: var(--r); padding: 22px; color: #fff; background: linear-gradient(150deg, var(--olive-700), var(--olive-900)); position: relative; overflow: hidden; }
.level::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(214, 165, 49, .14); }
.level h3 { font-size: 30px; margin: 0 0 2px; color: var(--brass); }
.level p { margin: 0; color: #d3d9c7; }
.level .tags { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.level .tags span { font-size: 13px; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 2px 10px; }
@media (max-width: 560px) { .levels { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 0; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 26px; line-height: 1; color: var(--brass-600); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }

.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--brass); padding: 4px 12px; background: #fff; border-radius: 0 8px 8px 0; margin: 28px 0 0; }

/* ---------- footer ---------- */
.foot { margin-top: 64px; background: var(--night); color: #c8cebb; padding: 36px 0 28px; font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.foot a { color: #fff; }
.foot .brand-text b { color: #fff; }
.foot .contact-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.foot small { display: block; color: #8f977f; margin-top: 18px; grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; }
@media (max-width: 640px) { .foot .wrap { grid-template-columns: 1fr; } }

/* ---------- page shell for inner views ---------- */
.page-head { background: linear-gradient(180deg, var(--night), var(--olive-900)); color: #fff; padding: 26px 0 70px; }
.page-head h1 { font-size: clamp(30px, 6vw, 42px); margin: 6px 0 4px; }
.page-head p { margin: 0; color: #c5ccb8; }
.back { color: #d8dccb; text-decoration: none; font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.page-body { margin-top: -50px; padding-bottom: 20px; }

/* ---------- wizard ---------- */
.progress { background: var(--card); border-radius: var(--r) var(--r) 0 0; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 64px; z-index: 5; }
.progress ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.progress li { font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; }
.progress li::before { content: ''; display: block; height: 5px; border-radius: 999px; background: var(--line); margin-bottom: 6px; transition: background .2s; }
.progress li.done::before { background: var(--olive-500); }
.progress li.now::before { background: var(--brass); }
.progress li.now { color: var(--ink); }
.wizard { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.step { padding: 22px 20px 6px; }
.step h2 { font-size: 28px; margin: 0 0 2px; }
.step > .sub { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.wizard-nav { display: flex; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--line); margin-top: 18px; }
.wizard-nav .btn-brass, .wizard-nav .btn-dark { flex: 1; }
@media (max-width: 560px) {
  .wizard-nav { position: sticky; bottom: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-radius: 0 0 var(--r) var(--r); }
  .step { padding: 18px 16px 4px; }
}

.field { margin-bottom: 18px; }
.field > label, .field > .label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 16px; }
.field .en { color: var(--muted); font-weight: 500; font-size: 13.5px; margin-left: 4px; }
.hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
input[type=text], input[type=tel], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236a7061' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--olive-500); box-shadow: 0 0 0 4px rgba(78, 107, 48, .15); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
.err-msg { color: var(--bad); font-size: 14px; margin-top: 6px; font-weight: 600; }
.dob { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 8px; }
.with-prefix { position: relative; }
.with-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.with-prefix input { padding-left: 52px; letter-spacing: 1px; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .box { display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice .box::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; transition: all .15s; }
.choice .box b { display: block; font-size: 18px; line-height: 1.2; }
.choice .box small { display: block; color: var(--muted); font-size: 13.5px; }
.choice input:checked + .box { border-color: var(--olive-500); background: #f4f7ec; box-shadow: 0 0 0 3px rgba(78, 107, 48, .14); }
.choice input:checked + .box::before { border-color: var(--olive-500); background: radial-gradient(circle, var(--olive-500) 45%, #fff 50%); }
.choice input:focus-visible + .box { outline: 3px solid var(--brass); outline-offset: 2px; }
.choice.full { grid-column: 1 / -1; }
@media (max-width: 380px) { .choices.stack-xs { grid-template-columns: 1fr; } }

/* photo step */
.photo-step { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.photo-drop { width: 180px; aspect-ratio: 300 / 385; border: 2px dashed var(--line-2); border-radius: 14px; background: repeating-linear-gradient(45deg, #faf9f4, #faf9f4 10px, #f4f2ea 10px, #f4f2ea 20px); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; overflow: hidden; cursor: pointer; position: relative; }
.photo-drop svg { width: 64px; height: 64px; color: #b9b29a; }
.photo-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-drop.has { border-style: solid; border-color: var(--olive-500); }
.rules { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 15px; }
.rules li { display: flex; gap: 8px; align-items: flex-start; }
.rules .y { color: var(--ok); font-weight: 800; }
.rules .n { color: var(--bad); font-weight: 800; }
@media (max-width: 520px) { .photo-step { grid-template-columns: 1fr; justify-items: center; } .photo-step > div:last-child { justify-self: stretch; } }

/* fee */
.fee-card { border-radius: 16px; padding: 18px; background: linear-gradient(140deg, var(--olive-800), var(--night)); color: #fff; margin-bottom: 18px; position: relative; overflow: hidden; }
.fee-card .amt { font-family: var(--display); font-size: 44px; font-weight: 700; color: var(--brass); line-height: 1; }
.fee-card small { color: #c5ccb8; }
.fee-card .upi-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 15px; }
.fee-card code { background: rgba(255, 255, 255, .1); padding: 4px 10px; border-radius: 8px; font-size: 15px; }
.fee-card img.qr { display: block; width: 180px; background: #fff; border-radius: 10px; padding: 6px; margin-top: 12px; }

/* review */
.review { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.review .r-head { display: flex; justify-content: space-between; align-items: center; background: #faf9f4; padding: 8px 14px; font-weight: 700; font-size: 14px; color: var(--muted); letter-spacing: .5px; }
.review .r-head button { background: none; border: 0; color: var(--olive-500); font-weight: 700; cursor: pointer; padding: 4px; }
.review dl { margin: 0; padding: 10px 14px; display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 6px 12px; }
.review dt { color: var(--muted); font-size: 15px; }
.review dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.review .r-photo { display: flex; gap: 12px; align-items: center; padding: 10px 14px; }
.review .r-photo img { width: 64px; height: 82px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.check { display: flex; gap: 12px; align-items: flex-start; background: #faf9f4; border: 1px solid var(--line); padding: 14px; border-radius: 14px; cursor: pointer; }
.check input { width: 24px; height: 24px; flex: none; margin: 1px 0 0; accent-color: var(--olive-500); }

.alert { border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.alert.bad { background: var(--bad-100); color: var(--bad); }
.alert.info { background: var(--wait-100); color: var(--wait); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- success ---------- */
.success { text-align: center; padding: 30px 20px 26px; }
.success .seal { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #2f9a4c, var(--ok)); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px var(--ok-100); animation: pop .4s ease-out; }
.success .seal svg { width: 42px; height: 42px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success h2 { font-size: 32px; margin: 0 0 4px; }
.appno-ticket { display: inline-block; margin: 18px 0 8px; border: 2px dashed var(--brass); border-radius: 16px; padding: 10px 26px; background: var(--brass-100); }
.appno-ticket small { display: block; font-size: 13px; color: var(--brass-600); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.appno-ticket b { font-family: var(--display); font-size: 46px; letter-spacing: 3px; line-height: 1.05; }
.success .actions { justify-content: center; }

/* ---------- status ---------- */
.lookup { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.result { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; margin-top: 16px; }
.result .who { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.result .who b { font-size: 19px; }
.result .who small { display: block; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 18px 0 6px; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.timeline li { text-align: center; font-size: 13.5px; font-weight: 600; color: var(--muted); position: relative; padding-top: 34px; }
.timeline li::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); z-index: 1; }
.timeline li::after { content: ''; position: absolute; top: 12px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.timeline li:first-child::after { display: none; }
.timeline li.done { color: var(--ok); }
.timeline li.done::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--ok); }
.timeline li.done::after, .timeline li.now::after { background: var(--ok); }
.timeline li.now { color: var(--wait); }
.timeline li.now::before { border-color: var(--brass); background: var(--brass-100); box-shadow: 0 0 0 5px rgba(214, 165, 49, .2); }
.timeline li.bad { color: var(--bad); }
.timeline li.bad::before { border-color: var(--bad); background: var(--bad-100); }
.msg { border-radius: 12px; padding: 12px 14px; font-size: 15.5px; margin-top: 12px; }
.msg.wait { background: var(--wait-100); color: #5d3d05; }
.msg.bad { background: var(--bad-100); color: #6e1812; }
.msg.ok { background: var(--ok-100); color: #124d23; }

.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.Pending { background: var(--wait-100); color: var(--wait); }
.chip.Verified { background: var(--ok-100); color: var(--ok); }
.chip.Rejected { background: var(--bad-100); color: var(--bad); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.actions .btn { flex: 1 1 160px; }
.card-scroll { margin-top: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--night); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 80; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); border: 1px solid rgba(214, 165, 49, .35); }

/* ================= ADMIT CARD ================= */
.admit {
  --ac-ink: #111; --ac-line: #c9c3ad;
  width: 100%; max-width: 760px; background: #fff; color: var(--ac-ink); border: 1.5px solid #1f2e15; border-radius: 4px;
  font-family: var(--font); font-size: 13.5px; line-height: 1.35; position: relative; overflow: hidden;
}
.admit::before { /* guilloche-like border inset */
  content: ''; position: absolute; inset: 5px; border: 1px solid #b8891c; border-radius: 2px; pointer-events: none;
}
.admit .ac-wm { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.admit .ac-wm svg { width: 60%; opacity: .05; }
.admit .ac-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 18px 10px; }
.admit .ac-head .badge { width: 54px; height: 54px; flex: none; }
.admit .ac-head img.badge { border-radius: 50%; }
.admit .ac-org { flex: 1; min-width: 0; }
.admit .ac-org b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: 2px; line-height: 1; color: #17230f; }
.admit .ac-org span { display: block; font-size: 12px; color: #555; margin-top: 3px; }
.admit .ac-type { text-align: right; }
.admit .ac-type b { display: block; font-family: var(--display); font-size: 20px; letter-spacing: 1.5px; color: #17230f; line-height: 1; }
.admit .ac-type span { display: block; font-size: 15px; font-weight: 700; color: #b8891c; }
.admit .ac-thread { height: 4px; margin: 0 6px; background: linear-gradient(90deg, #ff9933 0 33.33%, #fff 33.33% 66.66%, #138808 66.66%); border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.admit .ac-exam { position: relative; text-align: center; font-weight: 700; padding: 6px 12px; background: #17230f; color: #fff; margin: 0 6px; font-size: 14px; letter-spacing: .3px; }
.admit .ac-body { position: relative; display: grid; grid-template-columns: 1fr 128px; gap: 12px 16px; padding: 14px 18px 6px; }
.admit .ac-roll { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1.5px solid #17230f; border-radius: 6px; padding: 6px 12px; margin-bottom: 10px; }
.admit .ac-roll small { display: block; font-size: 11px; color: #555; font-weight: 600; letter-spacing: .5px; }
.admit .ac-roll b { font-family: var(--display); font-size: 26px; letter-spacing: 2.5px; line-height: 1; }
.admit .ac-roll svg { height: 34px; width: auto; max-width: 52%; }
.admit table { width: 100%; border-collapse: collapse; }
.admit .ac-details td { border-bottom: 1px solid #ebe7da; padding: 5px 0; vertical-align: top; }
.admit .ac-details td:first-child { color: #555; width: 38%; padding-right: 10px; font-size: 12.5px; }
.admit .ac-details td:last-child { font-weight: 700; text-transform: uppercase; }
.admit .ac-details td.nocase { text-transform: none; }
.admit .ac-photo { width: 128px; }
.admit .ac-photo .ph { width: 128px; height: 164px; border: 1.5px solid #333; display: grid; place-items: center; text-align: center; font-size: 11px; color: #777; background: #fafafa; overflow: hidden; }
.admit .ac-photo .ph img { width: 100%; height: 100%; object-fit: cover; }
.admit .ac-photo .sg { height: 40px; border: 1px solid #999; border-top: 0; display: flex; align-items: flex-end; justify-content: center; font-size: 10px; color: #777; padding-bottom: 2px; }
.admit .ac-venue { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1.6fr; border: 1px solid var(--ac-line); border-radius: 6px; overflow: hidden; }
.admit .ac-venue div { padding: 7px 10px; border-right: 1px solid var(--ac-line); background: #faf8f1; }
.admit .ac-venue div:last-child { border-right: 0; }
.admit .ac-venue small { display: block; font-size: 11px; color: #666; font-weight: 600; }
.admit .ac-venue b { font-size: 13.5px; }
.admit .ac-ins { grid-column: 1 / -1; }
.admit .ac-ins h4 { margin: 2px 0 4px; font-size: 13px; letter-spacing: .5px; }
.admit .ac-ins ol { margin: 0; padding-left: 18px; }
.admit .ac-ins li { margin-bottom: 2px; }
.admit .ac-sign { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 26px; }
.admit .ac-sign div { border-top: 1px solid #333; text-align: center; font-size: 11.5px; color: #444; padding-top: 3px; }
.admit .ac-foot { position: relative; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 11px; color: #555; padding: 8px 18px 12px; }
@media (max-width: 560px) {
  .admit { font-size: 12.5px; }
  .admit .ac-head { padding: 12px 12px 8px; gap: 8px; }
  .admit .ac-head .badge { width: 42px; height: 42px; }
  .admit .ac-org b { font-size: 17px; letter-spacing: 1px; }
  .admit .ac-type b { font-size: 15px; } .admit .ac-type span { font-size: 13px; }
  .admit .ac-body { grid-template-columns: 1fr 92px; padding: 12px 12px 6px; gap: 10px; }
  .admit .ac-photo, .admit .ac-photo .ph { width: 92px; } .admit .ac-photo .ph { height: 118px; }
  .admit .ac-roll { grid-column: 1 / -1; }
  .admit .ac-roll b { font-size: 21px; }
  .admit .ac-venue { grid-template-columns: 1fr 1fr; }
  .admit .ac-venue div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--ac-line); }
  .admit .ac-venue div:nth-child(2) { border-right: 0; }
  .admit .ac-foot { padding: 8px 12px 12px; }
}

/* ---------- print ---------- */
#print-root { display: none; }
.print-page .admit { font-size: 11px; line-height: 1.28; max-width: none; margin-bottom: 5mm; break-inside: avoid; }
.print-page .admit .ac-head { padding: 8px 14px 5px; }
.print-page .admit .ac-head .badge { width: 38px; height: 38px; }
.print-page .admit .ac-org b { font-size: 19px; }
.print-page .admit .ac-type b { font-size: 17px; } .print-page .admit .ac-type span { font-size: 13px; }
.print-page .admit .ac-exam { padding: 3px 10px; font-size: 12.5px; }
.print-page .admit .ac-body { grid-template-columns: 1fr 100px; padding: 7px 14px 3px; gap: 6px 14px; }
.print-page .admit .ac-photo, .print-page .admit .ac-photo .ph { width: 100px; }
.print-page .admit .ac-photo .ph { height: 128px; }
.print-page .admit .ac-photo .sg { height: 22px; font-size: 9px; }
.print-page .admit .ac-details td { padding: 2px 0; }
.print-page .admit .ac-roll { margin-bottom: 4px; padding: 3px 10px; }
.print-page .admit .ac-roll b { font-size: 19px; }
.print-page .admit .ac-roll svg { height: 24px; }
.print-page .admit .ac-venue div { padding: 4px 8px; }
.print-page .admit .ac-venue b { font-size: 12px; }
.print-page .admit .ac-ins h4 { margin: 0 0 2px; font-size: 12px; }
.print-page .admit .ac-ins li { margin: 0; }
.print-page .admit .ac-sign { padding-top: 18px; }
.print-page .admit .ac-foot { padding: 3px 14px 8px; font-size: 10px; }
@media print {
  @page { size: A4; margin: 9mm; }
  body { background: #fff; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block; }
  .print-page { break-after: page; page-break-after: always; }
  .print-page:last-child { break-after: auto; page-break-after: auto; }
  .admit, .admit *, .att * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* attendance sheet */
.att h2 { font-family: var(--display); font-size: 20px; margin: 0 0 2px; }
.att p { margin: 0 0 8px; font-size: 12px; }
.att table { width: 100%; border-collapse: collapse; font-size: 12px; }
.att th, .att td { border: 1px solid #333; padding: 4px 6px; text-align: left; vertical-align: middle; }
.att th { background: #eee; }
.att thead { display: table-header-group; }
.att tr { break-inside: avoid; }
.att img { width: 40px; height: 51px; object-fit: cover; display: block; }
.att .sign { width: 28%; }
