/* GoalGraph — light educational e-commerce design system (v2, Nov 2026)
   Primary #1769F5 · Navy #14213D · Body #475569 · Section #F5F8FF · Border #E5EAF2 — light theme only. */
:root {
  --surface: #ffffff; --surface-alt: #f5f8ff; --surface-2: #eef3fd;
  --ink: #14213d; --ink-body: #475569; --ink-muted: #64748b;
  --hairline: #e5eaf2; --border-control: #cbd5e1;
  --brand: #1769f5; --brand-strong: #0f55d1; --on-brand: #ffffff; --brand-tint: #e8f0fe;
  --accent: #f5a524; --accent-tint: #fff4dc; --success: #12805c; --success-tint: #e3f6ee; --danger: #d92d20; --danger-tint: #fdecea;
  /* soft pastel tones for exam / category tiles: [background, icon colour] */
  --t1: #e6f7ef; --t1i: #12805c;  --t2: #e8f0fe; --t2i: #1769f5;  --t3: #f1ebff; --t3i: #6d43d9;
  --t4: #fff1e2; --t4i: #c2620a;  --t5: #fde9ef; --t5i: #c2255c;  --t6: #e3f4fb; --t6i: #0b7aa8;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 56px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-pill: 9999px;
  --font-sans: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, .05);
  --shadow-card: 0 1px 3px rgba(20, 33, 61, .06), 0 1px 2px rgba(20, 33, 61, .04);
  --shadow-lift: 0 10px 24px -8px rgba(20, 33, 61, .16);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--surface); color: var(--ink-body); font: 400 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { margin: 0 0 var(--space-4); line-height: 1.25; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 24px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
@media (min-width: 900px) { h1 { font-size: 34px; } h2 { font-size: 26px; } }
p { margin: 0 0 var(--space-4); }
strong { color: var(--ink); }
.display { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.display .hl { color: var(--brand); display: block; }
.small { font-size: 14px; line-height: 1.55; }
.caption { font-size: 12px; line-height: 18px; font-weight: 600; }
.muted { color: var(--ink-muted); }
:focus-visible { outline: 3px solid rgba(23, 105, 245, .45); outline-offset: 2px; border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--on-brand); padding: 8px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 900px) { .container { padding: 0 var(--space-6); } }
.section { padding: var(--space-10) 0; }
@media (min-width: 900px) { .section { padding: var(--space-12) 0; } }
.section-alt { background: var(--surface-alt); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 15px; text-decoration: none; }
.link-more svg { width: 16px; height: 16px; }
.stack > * + * { margin-top: var(--space-4); }
.row { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 10px 20px; white-space: nowrap;
  border-radius: var(--radius-sm); border: 1px solid transparent; font: 700 15px/20px var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background .15s ease-out, color .15s ease-out, border-color .15s ease-out, box-shadow .15s ease-out; background: transparent; color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 2px rgba(23, 105, 245, .25); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-secondary, .btn-outline { border-color: var(--brand); color: var(--brand); background: var(--surface); }
.btn-secondary:hover, .btn-outline:hover { background: var(--brand-tint); color: var(--brand-strong); }
.btn-ghost { color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-light { background: var(--surface); border-color: var(--hairline); color: var(--ink); }
.btn-light:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-whatsapp { background: #128c4b; color: #fff; }
.btn-whatsapp:hover { background: #0e7a40; color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; padding-left: 22px; padding-right: 22px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--hairline); backdrop-filter: saturate(1.4) blur(6px); }
.header-bar { display: flex; align-items: center; gap: var(--space-4); min-height: 68px; }
.wordmark { font-weight: 800; font-size: 24px; letter-spacing: -.03em; color: var(--ink); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.wordmark span { color: var(--brand); }
.wordmark:hover { color: var(--ink); }
.wordmark img { height: 34px; width: auto; }
.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a { display: block; padding: 8px 12px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: var(--radius-sm); }
.main-nav a:hover { color: var(--brand); background: var(--brand-tint); }
.main-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }
@media (min-width: 1100px) { .main-nav { display: block; margin-left: var(--space-4); } }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; font: inherit; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { background: var(--surface-alt); color: var(--brand); }
.icon-btn svg { width: 22px; height: 22px; }
.count-badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill);
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.hdr-btn { display: none; }
@media (min-width: 640px) { .hdr-btn { display: inline-flex; } }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift); padding: 6px; z-index: 70; }
.dropdown-menu button, .dropdown-menu a { display: flex; width: 100%; align-items: center; gap: 8px; padding: 10px 12px; border: 0; background: none; border-radius: var(--radius-sm);
  font: 600 15px var(--font-sans); color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.dropdown-menu button:hover, .dropdown-menu a:hover, .dropdown-menu [aria-current="true"] { background: var(--brand-tint); color: var(--brand); }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--ink); font: 600 14px var(--font-sans); }
.lang-btn:hover { background: var(--surface-alt); color: var(--brand); }
.lang-btn svg { width: 18px; height: 18px; }
.lang-btn .chev { width: 14px; height: 14px; }
.search-pop { position: absolute; right: 0; top: calc(100% + 6px); width: min(440px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lift); padding: 10px; z-index: 70; }
.nav-toggle { display: inline-flex; }
@media (max-width: 479px) { .header-actions { gap: 0; } .lang-btn > span:not(.chev) { display: none; } .lang-btn { padding: 6px 6px; } .header-bar { gap: var(--space-2); } }
@media (min-width: 1100px) { .nav-toggle { display: none; } }
.js .mobile-nav:not(.open) { display: none; }
.mobile-nav { border-top: 1px solid var(--hairline); background: var(--surface); padding: var(--space-2) 0 var(--space-4); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--hairline); }
.mobile-nav a[aria-current="page"] { color: var(--brand); }
.mobile-nav .row { margin-top: var(--space-4); }
.mobile-nav .row .btn { flex: 1; }
@media (min-width: 1100px) { .mobile-nav { display: none !important; } }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: var(--space-4); }
.field > span, .label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-control); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: 400 16px/22px var(--font-sans); transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 120px; resize: vertical; }
.input::placeholder { color: #94a3b8; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 105, 245, .18); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; margin-top: 4px; display: flex; gap: 4px; }
.field-error::before { content: "!"; font-weight: 800; }
.help { color: var(--ink-muted); font-size: 14px; margin-top: 4px; }
.check { display: flex; gap: var(--space-2); align-items: flex-start; font-size: 15px; color: var(--ink-body); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.search-box { display: flex; align-items: center; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); padding: 4px; }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 105, 245, .15); }
.search-box .s-ic { color: var(--ink-muted); display: flex; padding-left: 10px; }
.search-box .s-ic svg { width: 20px; height: 20px; }
.search-box input { flex: 1; border: 0; padding: 10px 12px; min-height: 44px; font: 400 15px var(--font-sans); background: transparent; color: var(--ink); min-width: 0; }
.search-box input:focus { outline: none; }
.search-box button { border: 0; background: var(--brand); color: var(--on-brand); min-width: 48px; min-height: 44px; padding: 0 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.search-box button:hover { background: var(--brand-strong); }
.search-box button svg { width: 20px; height: 20px; }
.search-box.lg { padding: 6px; border-radius: var(--radius-md); }
.search-box.lg input { min-height: 50px; font-size: 16px; }
.search-box.lg button { min-height: 50px; min-width: 56px; }

/* ---------- Alerts ---------- */
.flash-wrap { padding-top: var(--space-4); }
.alert { padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--hairline); background: var(--surface-alt); margin-bottom: var(--space-2); font-size: 15px; color: var(--ink); }
.alert-success { border-color: #a6e3c8; background: var(--success-tint); }
.alert-success::before { content: "✓ "; color: var(--success); font-weight: 800; }
.alert-error { border-color: #f5b3ad; background: var(--danger-tint); }
.alert-error::before { content: "! "; color: var(--danger); font-weight: 800; }
.alert-info { border-color: #bcd3fb; background: var(--brand-tint); }

/* ---------- Chips, tabs & badges ---------- */
.chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 16px; border-radius: var(--radius-pill); border: 1px solid var(--hairline);
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; background: var(--surface); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"], .chip.active, .chip[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tabs { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: var(--space-6); }
.tabs::-webkit-scrollbar { display: none; }
.tabs .chip { flex: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; line-height: 16px; }
.badge-accent { background: var(--accent); color: #3b2500; }
.badge-sale { background: #e8432f; color: #fff; }
.badge-brand { background: var(--brand-tint); color: var(--brand); }
.badge-success { background: var(--success-tint); color: var(--success); }
.badge-danger { background: var(--danger-tint); color: var(--danger); }
.badge-muted { background: var(--surface-alt); color: var(--ink-muted); }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; background: var(--surface-alt); color: var(--ink-muted); }
.st-paid, .st-completed, .st-delivered, .st-published, .st-closed { background: var(--success-tint); color: var(--success); }
.st-shipped, .st-processing, .st-packed, .st-in_progress { background: var(--accent-tint); color: #9a5b00; }
.st-pending_payment, .st-open, .st-draft { background: var(--brand-tint); color: var(--brand); }
.st-cancelled, .st-failed, .st-refunded, .st-partially_refunded, .st-refund_pending, .st-archived { background: var(--danger-tint); color: var(--danger); }
.stars { display: inline-flex; gap: 1px; color: var(--accent); vertical-align: -2px; }
.stars svg { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; }
.stars .off { color: #d7dde8; }

/* ---------- Cards & grids ---------- */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-card); }
@media (min-width: 900px) { .card { padding: var(--space-6); } }
.grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); } }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.grid-1 { grid-template-columns: 1fr; }
.grid.grid-2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Product card */
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .18s ease-out, transform .18s ease-out, border-color .18s; position: relative; box-shadow: var(--shadow-card); }
.product-card:hover { box-shadow: var(--shadow-lift); border-color: #cfdcf3; }
.product-card .cover { aspect-ratio: 4 / 3.6; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 12px; }
.product-card .cover img { width: 100%; height: 100%; object-fit: contain; }
.cover-fallback { width: 70%; aspect-ratio: 3 / 4; max-height: 100%; border-radius: 6px; background: linear-gradient(160deg, #2f7bf7, #1450c9); color: #fff; padding: 12px;
  display: flex; flex-direction: column; justify-content: space-between; font-weight: 800; font-size: 14px; line-height: 1.2; text-align: left; box-shadow: 4px 6px 0 rgba(20, 33, 61, .12); }
.cover-fallback small { font-size: 10px; font-weight: 700; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.product-card .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .meta { font-size: 12px; line-height: 18px; color: var(--ink-muted); font-weight: 600; }
.product-card h3 { font-size: 15px; line-height: 1.35; margin: 0; font-weight: 700; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 4px; z-index: 1; flex-wrap: wrap; }
.product-card .rating { font-size: 13px; color: var(--ink-muted); display: flex; align-items: center; gap: 6px; }
.product-card .card-cta { position: relative; z-index: 2; margin-top: 8px; }
.product-card .card-cta .btn { width: 100%; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.price .now { font-weight: 800; font-size: 18px; color: var(--ink); }
.price .mrp { color: var(--ink-muted); text-decoration: line-through; font-size: 14px; }
.price .off { color: var(--success); font-size: 13px; font-weight: 700; }

/* Product row (listing pages) */
.product-list { display: grid; gap: var(--space-4); }
.product-row { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: var(--space-4); padding: var(--space-4); background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); transition: box-shadow .18s, border-color .18s; }
.product-row:hover { box-shadow: var(--shadow-lift); border-color: #cfdcf3; }
.product-row .thumb { width: 96px; aspect-ratio: 3 / 4; border-radius: var(--radius-sm); background: var(--surface-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-row .thumb .cover-fallback { width: 100%; font-size: 11px; padding: 8px; box-shadow: none; border-radius: var(--radius-sm); }
.product-row h3 { font-size: 16px; margin: 0 0 6px; }
.product-row h3 a { color: var(--ink); text-decoration: none; }
.product-row h3 a::after { content: ""; position: absolute; inset: 0; }
.product-row .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.product-row .tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface-alt); color: var(--ink-body); }
.product-row .side { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; grid-column: 1 / -1; }
.product-row .side .price { margin: 0; padding: 0; }
.product-row .side form, .product-row .side .btn { position: relative; z-index: 2; }
@media (min-width: 760px) {
  .product-row { grid-template-columns: 110px 1fr auto; align-items: center; }
  .product-row .thumb { width: 110px; }
  .product-row .side { grid-column: auto; flex-direction: column; align-items: flex-end; justify-content: center; min-width: 170px; }
}

/* Exam & category tiles (pastel) */
.exam-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .exam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .exam-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); } }
.exam-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px, 1fr); gap: var(--space-4); overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
@media (min-width: 1040px) { .exam-scroll { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; } }
.exam-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: var(--space-4); border-radius: var(--radius-lg); text-decoration: none;
  color: var(--ink); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-card); transition: box-shadow .18s, transform .18s, border-color .18s; }
.exam-tile:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: #cfdcf3; color: var(--ink); }
.exam-tile .mark { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; overflow: hidden; }
.exam-tile .mark svg { width: 26px; height: 26px; }
.exam-tile .mark img { width: 100%; height: 100%; object-fit: cover; }
.exam-tile strong { font-size: 16px; line-height: 1.3; }
.exam-tile small { color: var(--ink-muted); font-size: 13px; line-height: 1.4; }
.exam-tile .go { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }
.exam-tile .go svg { width: 14px; height: 14px; }
.exam-tile.compact { align-items: center; text-align: center; padding: var(--space-4) var(--space-2); }
.exam-tile.compact .mark { margin-bottom: 6px; }
.tone-1 .mark { background: var(--t1); color: var(--t1i); } .tone-2 .mark { background: var(--t2); color: var(--t2i); } .tone-3 .mark { background: var(--t3); color: var(--t3i); }
.tone-4 .mark { background: var(--t4); color: var(--t4i); } .tone-5 .mark { background: var(--t5); color: var(--t5i); } .tone-6 .mark { background: var(--t6); color: var(--t6i); }
.exam-tile.compact.tone-1 { background: var(--t1); border-color: transparent; } .exam-tile.compact.tone-2 { background: var(--t2); border-color: transparent; }
.exam-tile.compact.tone-3 { background: var(--t3); border-color: transparent; } .exam-tile.compact.tone-4 { background: var(--t4); border-color: transparent; }
.exam-tile.compact.tone-5 { background: var(--t5); border-color: transparent; } .exam-tile.compact.tone-6 { background: var(--t6); border-color: transparent; }
.exam-tile.compact .mark { background: #fff; }
.cat-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: var(--space-5) var(--space-3); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: box-shadow .18s, transform .18s; }
.cat-tile:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); color: var(--ink); }
.cat-tile .ic { width: 56px; height: 56px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.cat-tile .ic svg { width: 28px; height: 28px; }
.cat-tile strong { font-size: 16px; }
.cat-tile small { color: var(--ink-muted); font-size: 13px; }
.cat-tile.tone-1 { background: var(--t1); } .cat-tile.tone-1 .ic { color: var(--t1i); } .cat-tile.tone-2 { background: var(--t2); } .cat-tile.tone-2 .ic { color: var(--t2i); }
.cat-tile.tone-3 { background: var(--t3); } .cat-tile.tone-3 .ic { color: var(--t3i); } .cat-tile.tone-4 { background: var(--t4); } .cat-tile.tone-4 .ic { color: var(--t4i); }
.cat-tile.tone-5 { background: var(--t5); } .cat-tile.tone-5 .ic { color: var(--t5i); } .cat-tile.tone-6 { background: var(--t6); } .cat-tile.tone-6 .ic { color: var(--t6i); }
/* legacy names kept for other views */
.exam-card { display: flex; gap: 12px; align-items: center; padding: var(--space-4); border: 1px solid var(--hairline); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink);
  background: var(--surface); box-shadow: var(--shadow-card); }
.exam-card:hover { border-color: var(--brand); color: var(--ink); }
.exam-card .mark { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.exam-card .mark svg { width: 22px; height: 22px; }
.exam-card strong { display: block; font-size: 15px; } .exam-card small { color: var(--ink-muted); font-size: 13px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f2f7ff 0%, #e9f1ff 100%); padding: var(--space-10) 0 var(--space-8); }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(23, 105, 245, .10), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .hero { padding: var(--space-12) 0 var(--space-10); } .hero-grid { grid-template-columns: 1.25fr 1fr; gap: var(--space-8); } }
.hero .lead { font-size: 18px; line-height: 1.6; color: var(--ink-body); max-width: 560px; margin: var(--space-4) 0 0; }
.hero .lead b { color: var(--ink); font-weight: 700; }
.hero-search { max-width: 560px; margin-top: var(--space-6); }
.trust { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-5); max-width: 600px; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.trust .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: var(--shadow-sm); }
.trust .ic svg { width: 18px; height: 18px; }
.trust li:nth-child(1) .ic { color: var(--t1i); } .trust li:nth-child(2) .ic { color: var(--t2i); } .trust li:nth-child(3) .ic { color: var(--t3i); } .trust li:nth-child(4) .ic { color: var(--t4i); }
.hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
.hero-art svg, .hero-art img { width: 100%; height: auto; }
@media (max-width: 899px) { .hero-art { max-width: 380px; } }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface); margin-bottom: 10px; padding: 0 var(--space-4); }
.faq summary { cursor: pointer; padding: var(--space-4) 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding-bottom: var(--space-4); color: var(--ink-body); }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .why-list { grid-template-columns: repeat(4, 1fr); } }
.why-list li { display: flex; gap: 12px; align-items: flex-start; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--hairline);
  font-weight: 600; color: var(--ink); box-shadow: var(--shadow-card); }
.why-list li svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 1px; }

/* ---------- Store layout ---------- */
.breadcrumbs { font-size: 14px; color: var(--ink-muted); padding-top: var(--space-5); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.page-head { padding-top: var(--space-4); padding-bottom: var(--space-5); }
.page-head h1 { margin-bottom: var(--space-2); }
.page-head p { max-width: 720px; }
.page-band { background: var(--surface-alt); border-bottom: 1px solid var(--hairline); padding-bottom: var(--space-6); margin-bottom: var(--space-6); }
.store-layout { display: grid; gap: var(--space-6); padding-bottom: var(--space-12); }
@media (min-width: 1000px) { .store-layout { grid-template-columns: 270px minmax(0, 1fr); } }
.filters { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--space-5); align-self: start; box-shadow: var(--shadow-card); }
/* filters scroll with the page (a sticky panel taller than the viewport cut off its Apply button) */
.filters h2 { font-size: 17px; margin-bottom: var(--space-3); }
.filters fieldset { border: 0; border-top: 1px solid var(--hairline); padding: var(--space-4) 0 0; margin: 0 0 var(--space-4); }
.filters legend { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 8px; padding: 0; float: left; width: 100%; }
.filters legend + * { clear: both; }
.filters .check { margin-bottom: 8px; font-size: 14px; }
.filters .field { margin-bottom: var(--space-3); }
.hide-sm { display: none; }
@media (min-width: 1000px) { .hide-sm { display: block; } }
details.filters-toggle > summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.filters-toggle > summary::-webkit-details-marker { display: none; }
details.filters-toggle > summary svg { width: 18px; height: 18px; }
details.filters-toggle[open] > summary { margin-bottom: var(--space-4); }
@media (min-width: 1000px) { details.filters-toggle > summary { display: none; } }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); flex-wrap: wrap; }
.toolbar select { width: auto; min-height: 40px; }
.empty { text-align: center; padding: var(--space-10) var(--space-5); border: 1px dashed #c9d6ee; border-radius: var(--radius-lg); color: var(--ink-body); background: var(--surface-alt); }
.empty .ic { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto var(--space-4); background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.empty .ic svg { width: 28px; height: 28px; }
.empty h2, .empty h3 { color: var(--ink); font-size: 20px; margin-bottom: 8px; }
.empty p { max-width: 520px; margin-left: auto; margin-right: auto; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: var(--space-8); flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm);
  border: 1px solid var(--hairline); text-decoration: none; color: var(--ink); font-weight: 600; padding: 0 10px; background: var(--surface); }
.pagination [aria-current="page"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* ---------- Product page ---------- */
.product-layout { display: grid; gap: var(--space-6); padding-top: var(--space-5); padding-bottom: var(--space-8); }
@media (min-width: 900px) { .product-layout { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: var(--space-10); } }
.gallery .main { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; border: 1px solid var(--hairline); padding: 18px; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .main .cover-fallback { width: 58%; font-size: 20px; padding: 20px; }
.thumbs { display: flex; gap: var(--space-2); margin-top: var(--space-3); overflow-x: auto; }
.thumbs button { flex: none; width: 68px; height: 68px; padding: 4px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); cursor: pointer; }
.thumbs button[aria-current="true"] { border: 2px solid var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.buy-box h1 { font-size: 28px; margin-bottom: var(--space-2); }
.buy-box .price .now { font-size: 30px; }
.buy-box .price .mrp { font-size: 17px; }
.buy-box .price .off { font-size: 14px; background: var(--success-tint); padding: 2px 8px; border-radius: var(--radius-pill); }
.feature-list { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; gap: 8px; }
.feature-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.feature-list svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 3px; }
.buy-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; margin-top: var(--space-5); }
.buy-actions .btn { flex: 1 1 160px; min-height: 50px; font-size: 16px; }
.assure { display: flex; gap: var(--space-5); flex-wrap: wrap; padding: var(--space-4) 0; margin-top: var(--space-5); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.assure span { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-body); }
.assure svg { width: 18px; height: 18px; color: var(--brand); }
.spec-list { display: grid; grid-template-columns: auto 1fr; gap: 8px var(--space-5); font-size: 15px; margin: var(--space-4) 0; }
.spec-list dt { color: var(--ink-muted); }
.spec-list dd { margin: 0; font-weight: 600; color: var(--ink); }
.qty { display: inline-flex; border: 1px solid var(--border-control); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.qty button { width: 42px; min-height: 44px; border: 0; background: var(--surface); font-size: 18px; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--surface-alt); }
.qty input { width: 48px; text-align: center; border: 0; border-left: 1px solid var(--hairline); border-right: 1px solid var(--hairline); font: 700 16px var(--font-sans); background: var(--surface); color: var(--ink); }
.ptabs { border-bottom: 1px solid var(--hairline); display: flex; gap: var(--space-6); overflow-x: auto; scrollbar-width: none; margin-bottom: var(--space-6); }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs a, .ptabs button { flex: none; padding: 12px 2px; border: 0; background: none; font: 700 15px var(--font-sans); color: var(--ink-muted); text-decoration: none; border-bottom: 3px solid transparent; cursor: pointer; }
.ptabs [aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.ptab-panel { margin-bottom: var(--space-8); }
.js .ptab-panel[data-inactive] { display: none; }
.prose { max-width: 780px; color: var(--ink-body); }
.prose h2 { margin-top: var(--space-6); font-size: 22px; }
.prose h3 { margin-top: var(--space-5); }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: var(--space-4); font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--hairline); padding: 8px 10px; text-align: left; }
.prose ul, .prose ol { padding-left: 22px; }
.note { font-size: 14px; color: var(--ink-muted); border-top: 1px solid var(--hairline); padding-top: var(--space-2); }
.review { padding: var(--space-4) 0; border-bottom: 1px solid var(--hairline); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; background: var(--surface-alt); color: var(--ink); font-weight: 700; padding: 11px 14px; white-space: nowrap; }
.table td { padding: 11px 14px; border-top: 1px solid var(--hairline); vertical-align: top; color: var(--ink-body); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-alt); color: var(--ink-body); padding: var(--space-12) 0 var(--space-6); margin-top: var(--space-12); font-size: 15px; border-top: 1px solid var(--hairline); }
.site-footer a { color: var(--ink-body); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-grid { display: grid; gap: var(--space-8) var(--space-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; } .footer-brand { grid-column: auto; } }
.footer-grid h2 { font-size: 15px; color: var(--ink); margin-bottom: var(--space-3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand p { max-width: 320px; margin-top: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.contact-list li > a, .contact-list li > span { min-width: 0; overflow-wrap: anywhere; }
.contact-list svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 3px; }
.contact-list .wa svg { color: #128c4b; }
.social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-4); }
.social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--hairline);
  color: var(--ink); transition: background .15s, color .15s, border-color .15s; }
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-news { margin-top: var(--space-8); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--hairline);
  display: flex; gap: var(--space-4); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.footer-news h2 { font-size: 17px; margin: 0; }
.newsletter-form { display: flex; gap: var(--space-2); flex-wrap: wrap; flex: 1; max-width: 480px; }
.newsletter-form .input { flex: 1; min-width: 200px; }
.footer-bottom { border-top: 1px solid var(--hairline); margin-top: var(--space-8); padding-top: var(--space-5); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: 14px; color: var(--ink-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-6); align-items: start; padding-bottom: var(--space-10); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 360px minmax(0, 1fr); } }
.contact-card { display: flex; gap: 14px; align-items: center; padding: var(--space-4); border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--surface);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-card); margin-bottom: var(--space-3); }
.contact-card:hover { border-color: var(--brand); color: var(--ink); }
.contact-card .ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card small { display: block; color: var(--ink-muted); font-size: 13px; font-weight: 600; }
.contact-card strong { font-size: 16px; }

/* ---------- Error page ---------- */
.error-page { text-align: center; padding: var(--space-12) var(--space-4); }
.error-code { font-size: 80px; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: var(--space-4); letter-spacing: -.04em; }

/* ---------- Student dashboard ---------- */
.shell { display: grid; gap: var(--space-6); padding-top: var(--space-6); padding-bottom: var(--space-12); }
@media (min-width: 1000px) { .shell { grid-template-columns: 250px minmax(0, 1fr); } }
.shell > * { min-width: 0; }
.side-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--space-3); box-shadow: var(--shadow-card); align-self: start; }
@media (min-width: 1000px) { .side-card { position: sticky; top: 90px; } }
.side-user { display: flex; gap: 10px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--hairline); margin-bottom: 8px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.side-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.side-nav::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .side-nav { flex-direction: column; overflow: visible; } }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-body);
  font-weight: 600; white-space: nowrap; font-size: 15px; border: 0; background: none; font-family: var(--font-sans); cursor: pointer; width: 100%; }
.side-nav svg { width: 19px; height: 19px; flex: none; }
.side-nav a:hover, .side-nav button:hover { background: var(--surface-alt); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand); }
.side-nav form { flex: none; }
.dash-head { margin-bottom: var(--space-5); }
.dash-head h1 { font-size: 26px; margin-bottom: 4px; }
.dash-head p { margin: 0; color: var(--ink-muted); }
.stat-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { display: flex; gap: 12px; align-items: center; padding: var(--space-4); border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow-card); text-decoration: none; color: inherit; }
a.stat:hover { border-color: #cfdcf3; box-shadow: var(--shadow-lift); }
.stat .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--brand-tint); color: var(--brand); }
.stat .ic svg { width: 22px; height: 22px; }
.stat .v { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.stat .k { display: block; color: var(--ink-muted); font-size: 13px; font-weight: 600; }
.stat .d { font-size: 12px; font-weight: 700; color: var(--success); }
.stat.tone-1 .ic { background: var(--t1); color: var(--t1i); } .stat.tone-2 .ic { background: var(--t2); color: var(--t2i); }
.stat.tone-3 .ic { background: var(--t3); color: var(--t3i); } .stat.tone-4 .ic { background: var(--t4); color: var(--t4i); } .stat.tone-5 .ic { background: var(--t5); color: var(--t5i); }
.list-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.list-card > header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--hairline); gap: 12px; }
.list-card > header h2 { font-size: 17px; margin: 0; }
.list-item { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.list-item:last-child { border-bottom: 0; }
.list-item .li-main { flex: 1; min-width: 180px; }
.list-item .li-main strong { display: block; font-size: 15px; }
.list-item .li-main small { color: var(--ink-muted); font-size: 13px; }
.mini-thumb { width: 44px; height: 56px; border-radius: 6px; background: var(--surface-alt); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--brand); flex: none; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; } .mini-thumb svg { width: 22px; height: 22px; }
.quick-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.quick { display: flex; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface); text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-card); }
.quick:hover { border-color: var(--brand); color: var(--brand); }
.quick .ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand); flex: none; }
.quick .ic svg { width: 19px; height: 19px; }

/* ---------- Cart & checkout ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 var(--space-6); display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.steps li { display: inline-flex; align-items: center; gap: 8px; }
.steps li + li::before { content: ""; width: 28px; height: 2px; background: var(--hairline); margin-right: 4px; }
.steps .n { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-alt); border: 1px solid var(--hairline); font-size: 12px; }
.steps [aria-current="step"] { color: var(--brand); }
.steps [aria-current="step"] .n { background: var(--brand); color: #fff; border-color: var(--brand); }
.steps .done .n { background: var(--success); color: #fff; border-color: var(--success); }
.checkout-grid { display: grid; gap: var(--space-6); align-items: start; padding-bottom: var(--space-10); }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: minmax(0, 1fr) 360px; } .summary { position: sticky; top: 90px; } }
.cart-line { display: flex; gap: var(--space-4); align-items: flex-start; }
.cart-thumb { flex: none; width: 72px; height: 92px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; } .cart-thumb svg { width: 28px; height: 28px; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-size: 15px; }
.sum dt { color: var(--ink-body); }
.sum dd { margin: 0; text-align: right; color: var(--ink); font-weight: 600; } .sum .total { font-weight: 800; font-size: 19px; border-top: 1px solid var(--hairline); padding-top: 10px; color: var(--ink); }
.sum dd.total { color: var(--brand); }
.addr-opt { padding: 12px; border: 1px solid var(--hairline); border-radius: var(--radius-md); margin-bottom: 8px; }
.addr-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }

/* ---------- Mock tests ---------- */
.mock-bar { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 10px var(--space-4); margin-bottom: var(--space-4); box-shadow: var(--shadow-lift); }
#mock-timer { font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--ink); }
.mock-q { margin-bottom: var(--space-4); }
.mock-opt { padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); margin-bottom: 6px; cursor: pointer; }
.mock-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }

/* ---------- AI solver (module currently off; styles kept) ---------- */
.ai-drop { border: 2px dashed var(--border-control); border-radius: var(--radius-md); padding: var(--space-4); background: var(--surface-alt); }
.ai-drop-label { display: flex; gap: 12px; align-items: center; cursor: pointer; color: var(--ink); }
.ai-drop-label svg { width: 32px; height: 32px; color: var(--brand); flex: none; }
.ai-drop input[type=file] { margin-top: 12px; max-width: 100%; }
#ai-preview img { max-height: 260px; border-radius: var(--radius-sm); margin-top: 12px; border: 1px solid var(--hairline); }
.ai-loading { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-weight: 600; }
.spinner { width: 20px; height: 20px; border: 3px solid var(--brand-tint); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-qimg { max-height: 360px; border-radius: var(--radius-md); border: 1px solid var(--hairline); margin: 8px 0 16px; }
.ai-msg { margin-bottom: var(--space-4); }
.ai-user { padding: 12px var(--space-4); background: var(--brand-tint); border-radius: var(--radius-md); }
.ai-prose h3 { font-size: 17px; margin: 16px 0 8px; color: var(--brand); }
.ai-prose h3:first-child { margin-top: 0; }
.ai-prose code { background: var(--surface-alt); padding: 1px 4px; border-radius: 4px; }

/* ---------- Search suggestions ---------- */
.suggest { position: absolute; left: 0; right: 0; top: 100%; margin: 6px 0 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lift); z-index: 60; }
.suggest a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: 15px; }
.suggest small { color: var(--ink-muted); }
.suggest [aria-selected="true"] a, .suggest a:hover { background: var(--brand-tint); }
.error-page svg, .card svg { max-width: 24px; max-height: 24px; }

/* ---------- Sign in / sign up ---------- */
.auth-wrap { display: grid; gap: var(--space-8); max-width: 1000px; padding-top: var(--space-8); padding-bottom: var(--space-12); align-items: start; }
.auth-main { width: 100%; max-width: 480px; margin: 0 auto; }
.auth-main h1 { font-size: 28px; }
.auth-side { display: none; }
@media (min-width: 900px) {
  .auth-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: var(--space-12); padding-top: var(--space-12); }
  .auth-side { display: block; background: linear-gradient(160deg, #eef4ff, #f7faff); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--space-8); }
  .auth-side h2 { font-size: 26px; margin: var(--space-6) 0 var(--space-5); }
  .auth-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
  .auth-side li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--ink); }
  .auth-side .ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); flex: none; }
  .auth-side .ic svg { width: 20px; height: 20px; }
}

/* ---------- Tracking history ---------- */
.track-list { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--hairline); display: grid; gap: 10px; }
.track-list li { position: relative; font-size: 14px; }
.track-list li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px #fff; }
.track-list li + li::before { background: #b8c6dd; }

/* Product gallery: zoom button, counter, captions, DEMO ribbon */
.gallery .main { position: relative; }
.gallery .zoom-btn { all: unset; display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; cursor: zoom-in; touch-action: pan-y; }
.gallery .zoom-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: var(--radius-sm); }
.gallery-count { position: absolute; right: 10px; bottom: 10px; background: rgba(15, 27, 51, .72); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); pointer-events: none; }
.gallery-caption { min-height: 1.4em; margin: 6px 0 0; text-align: center; }
.thumbs button { position: relative; }
.demo-ribbon { position: absolute; left: 10px; top: 10px; background: #0f1b33; color: #fff; font-weight: 800; letter-spacing: .08em; font-size: 12px; padding: 3px 10px; border-radius: var(--radius-pill); }
.badge-demo { background: #0f1b33; color: #fff; }
.demo-note { margin: 4px 0 8px; padding: 8px 12px; border-radius: var(--radius-sm); background: #fff6e0; border: 1px solid #f2d48a; font-size: 14px; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(10, 16, 30, .94); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(10, 16, 30, .7); }
.lb-stage { margin: 0; max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); overflow: hidden; display: flex; flex-direction: column; align-items: center; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; cursor: zoom-in; transition: transform .2s ease; background: #fff; border-radius: 6px; }
.lb-stage.zoomed img { transform: scale(2.2); cursor: zoom-out; }
.lb-cap { margin-top: 10px; font-size: 14px; color: #dfe6f5; text-align: center; }
.lb-close, .lb-nav { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-nav:hover, .lb-close:focus-visible, .lb-nav:focus-visible { background: rgba(255, 255, 255, .25); outline: 2px solid #fff; }
@media (max-width: 640px) {
  .lb-stage { max-width: 100vw; }
  .lb-nav { top: auto; bottom: 14px; transform: none; }
}

/* Sample PDF viewer */
.pdf-viewer { width: min(960px, 100vw); height: min(92vh, 100%); max-height: 100vh; padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); }
.pdf-viewer[open] { display: flex; flex-direction: column; }
.pdf-viewer::backdrop { background: rgba(10, 16, 30, .6); }
.pv-head, .pv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.pv-foot { border-bottom: 0; border-top: 1px solid var(--hairline); }
.pv-body { flex: 1; overflow: auto; background: var(--surface-alt); padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pv-page { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); max-width: 100%; height: auto; }
@media (max-width: 640px) { .pdf-viewer { height: 100vh; border-radius: 0; } }
