/* Collegeskart — "admission desk" look: warm paper, deep indigo ink, logo blue for actions,
   sunflower for highlights, mint for money/ROI. Ticket-style cards with a perforated edge. */
:root {
  /* light, clean "payments app" look in the logo colours: logo blue + logo yellow on white */
  --ink: #1F2430; --ink-2: #474E5E; --muted: #6B7280;
  --paper: #F3F5FB; --card: #FFFFFF; --tint: #EEF1FA; --line: #E4E8F2;
  --blue: #4F5DE4; --blue-ink: #3C4AD0; --blue-soft: #EDEFFE;
  --sun: #FFD60A; --sun-soft: #FFF8D6;
  --mint: #0E9F6E; --mint-soft: #E3F7EF;
  --coral: #E5484D; --coral-soft: #FDECEC;
  --night: #4F5DE4;
  --shadow: 0 4px 18px rgba(31, 36, 48, 0.08);
  --soft: 0 1px 2px rgba(31,36,48,.04), 0 2px 10px rgba(31,36,48,.05);
  --f-display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --f-body: 'Hind', 'Segoe UI', system-ui, sans-serif;
  --r: 14px; --r-lg: 18px;
  --tabs-h: 66px;
  --c-pgdm: #4F5DE4; --c-mba: #0B8FD8; --c-btech: #F2760C; --c-bba: #0E9F6E; --c-law: #E5484D; --c-bca: #0AA5B8; --c-mca: #2F6FE0; --c-llb: #C2410C; --c-bcom: #C99A06;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue-ink); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 760px) { .wrap { padding-inline: 28px; } }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.xs { font-size: 13.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-ink); }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo img { height: 40px; width: auto; display: block; border-radius: 9px; }
.topnav { display: none; gap: 2px; flex: 1; }
.topnav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 11px; border-radius: 10px; font-size: 16px; white-space: nowrap; }
.topnav a:hover { background: var(--tint); }
.topnav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-ink); }
.top-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.iconbtn, .lang { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; }
@media (min-width: 1100px) { .topnav { display: flex; } .logo img { height: 46px; } }

/* ---------- bottom tabs (phone/tablet) ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-top: 1px solid var(--line); padding: 4px 2px calc(6px + env(safe-area-inset-bottom, 0px)); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 54px; justify-content: center; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.tabs a svg { width: 23px; height: 23px; }
.tabs a[aria-current="page"] { color: var(--blue-ink); }
main { min-height: 70vh; padding-bottom: calc(var(--tabs-h) + 40px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1100px) { .tabs { display: none; } main { padding-bottom: 56px; } }
.callfab { position: fixed; right: 16px; bottom: calc(var(--tabs-h) + 14px + env(safe-area-inset-bottom, 0px)); z-index: 44; display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--night); color: #fff; font-weight: 700; box-shadow: var(--shadow); cursor: pointer; }
.callfab svg { color: var(--sun); }
@media (min-width: 1100px) { .callfab { bottom: 24px; } }
body.has-bar .callfab { display: none; }

/* ---------- buttons, chips, tags ---------- */
.btn { min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--blue); color: #fff; font-weight: 700; font-size: 16.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn.sm { min-height: 44px; padding: 0 14px; font-size: 15.5px; }
.btn.ghost { background: var(--card); color: var(--blue-ink); border: 1.5px solid var(--blue); }
.btn.ghost.on { background: var(--blue-soft); }
.btn.dark { background: var(--night); color: #fff; }
.btn.sun { background: var(--sun); color: #171A45; }
.btn.wa { background: #1E8E55; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--blue-ink); text-decoration: underline; cursor: pointer; font-weight: 600; min-height: 40px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrapall { flex-wrap: wrap; overflow: visible; }
.chip { flex-shrink: 0; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 15.5px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px; font-size: 13.5px; font-weight: 700; background: var(--tint); color: var(--ink-2); white-space: nowrap; }
.tag.blue { background: var(--blue-soft); color: var(--blue-ink); }
.tag.sun { background: var(--sun); color: #171A45; }
.tag.mint { background: var(--mint-soft); color: var(--mint); }
.tag.coral { background: var(--coral-soft); color: var(--coral); }
.ctag { color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 28px 30px; background:
  radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--sun) 30%, transparent), transparent 60%),
  radial-gradient(900px 400px at -10% 120%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 60%); }
.hero-grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.hero-copy { flex: 999 1 520px; min-width: 0; }
.hero h1 { font-size: clamp(34px, 6.4vw, 64px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .hl { background: linear-gradient(transparent 60%, var(--sun) 60%); padding-inline: 2px; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 36em; margin: 14px 0 20px; }
.hero-art { flex: 1 1 300px; max-width: 420px; margin-inline: auto; }
.searchbox { position: relative; max-width: 700px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 6px 6px 6px 16px; box-shadow: 6px 6px 0 var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; height: 50px; font-size: 18px; background: transparent; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); z-index: 30; max-height: 60vh; overflow: auto; padding: 6px; }
.suggest a, .suggest button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer; min-height: 48px; }
.suggest a:hover, .suggest a.act, .suggest button:hover { background: var(--tint); }
.suggest .k { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 12px 2px; }
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); }
.ticker-track { display: flex; gap: 40px; padding: 10px 0; width: max-content; animation: tick 40s linear infinite; }
.ticker-track span { white-space: nowrap; font-weight: 600; }
.ticker-track b { color: var(--blue-ink); }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }
.floaty { animation: floaty 6s ease-in-out infinite; transform-origin: center; }
.floaty.d2 { animation-delay: -2s; } .floaty.d3 { animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(-3deg); } }
.spin-slow { animation: spin 30s linear infinite; transform-origin: 200px 200px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ticker-track, .floaty, .spin-slow, .gauge-arc { animation: none !important; } }

.section { padding-top: 44px; }
.shead { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.shead h2 { font-size: clamp(24px, 3.4vw, 34px); }
.shead p { color: var(--muted); margin-top: 4px; }
.shead a { font-weight: 700; }

/* course tiles */
.ctiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .ctiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ctiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ctile { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 16px; min-height: 128px; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; background: var(--tc, var(--blue)); }
.ctile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,0.14); transition: transform .3s; }
.ctile:hover::after { transform: scale(1.3); }
.ctile b { font-family: var(--f-display); font-size: 24px; position: relative; z-index: 1; }
.ctile span { font-size: 14px; opacity: 0.92; position: relative; z-index: 1; }
.ctile.big { grid-column: span 2; min-height: 150px; }
.ctile.big b { font-size: 30px; }

/* browse tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; text-align: left; cursor: pointer; }
.tile:hover { border-color: var(--ink); }
.tile small { color: var(--muted); font-weight: 500; font-size: 14px; }

/* ---------- college card (ticket) ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 680px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; min-width: 0; position: relative; }
.ticket-top { padding: 16px 16px 12px; display: flex; gap: 12px; align-items: flex-start; }
.mono { width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; letter-spacing: 0.02em; }
.ticket h3 { font-size: 19px; }
.ticket h3 a { color: var(--ink); text-decoration: none; }
.ticket h3 a:hover { color: var(--blue-ink); }
.meta { color: var(--muted); font-size: 15px; margin-top: 3px; }
.perf { border-top: 2px dashed var(--line); margin-inline: 14px; position: relative; }
.perf::before, .perf::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.perf::before { left: -24px; } .perf::after { right: -24px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 16px; }
.kpis .k { font-size: 13px; color: var(--muted); }
.kpis .v { font-weight: 700; font-size: 16.5px; }
.roi-chip { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--mint); }
.ticket-actions { display: flex; gap: 8px; padding: 0 16px 16px; margin-top: auto; }
.ticket-actions .btn { min-height: 46px; font-size: 15.5px; }
.featured-flag { position: absolute; top: -10px; right: 14px; }

/* ---------- list page ---------- */
.ptitle { padding-block: 22px 12px; }
.ptitle h1 { font-size: clamp(28px, 4.4vw, 44px); }
.ptitle p { color: var(--muted); margin-top: 6px; max-width: 48em; }
.layout { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.rail { flex: 1 1 100%; min-width: 0; }
.results { flex: 999 1 560px; min-width: 0; }
.filterbar { display: flex; gap: 8px; margin-top: 10px; }
.filterbar .btn { flex: 1; }
.filterbar select { flex: 1; min-width: 0; }
.fcount { background: var(--ink); color: var(--paper); border-radius: 999px; min-width: 24px; height: 24px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.filters { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.flabel { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.select, .input { min-height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); padding: 0 14px; font-size: 16.5px; width: 100%; max-width: 100%; outline: none; }
.input:focus, .select:focus { border-color: var(--blue); }
textarea.input { padding: 12px 14px; min-height: 110px; resize: vertical; }
.filters-head, .filters-foot { display: none; }
@media (max-width: 1099px) {
  .rail .filters { display: none; }
  .rail.open .filters { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 86vh; overflow-y: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px)); margin: 0; }
  .rail.open::before { content: ""; position: fixed; inset: 0; background: rgba(10,12,30,0.5); z-index: 69; }
  .rail.open .filters-head { display: flex; justify-content: space-between; align-items: center; }
  .rail.open .filters-foot { display: flex; gap: 8px; position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom, 0px)); background: var(--card); padding-block: 10px 4px; }
  .rail.open .chips { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1100px) {
  .rail { flex: 0 0 290px; position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; max-height: calc(100vh - 100px); overflow-y: auto; }
  .rail .chips { flex-wrap: wrap; overflow: visible; }
  .filterbar { display: none; }
}
.resbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.more { display: flex; justify-content: center; margin-top: 18px; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 28px 20px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty h3 { font-size: 21px; }
.empty p { color: var(--muted); max-width: 34em; }

/* ---------- college detail ---------- */
.chero { padding-block: 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.crumb { color: var(--muted); font-size: 15px; display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chero h1 { font-size: clamp(28px, 4.6vw, 46px); font-weight: 800; }
.cbody { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; padding-top: 20px; }
.cmain { flex: 999 1 580px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1000px) { .cside { position: sticky; top: 84px; } }
.ctabs { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.ctabs .chips { padding-block: 8px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; min-width: 0; scroll-margin-top: 140px; }
.panel h2 { font-size: 22px; margin-bottom: 12px; }
.panel.accent { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.panel.soft { background: var(--tint); border-color: transparent; }
.statgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .statgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.stat .k { font-size: 13.5px; color: var(--muted); }
.stat .v { font-family: var(--f-display); font-weight: 800; font-size: 23px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; }
.ticks svg { flex-shrink: 0; margin-top: 4px; color: var(--mint); }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 10px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.note { background: var(--coral-soft); color: var(--coral); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.ask { background: var(--sun-soft); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; box-shadow: 0 -8px 24px rgba(23,26,69,0.08); }
.actionbar .btn { min-height: 52px; }
@media (min-width: 1000px) { .actionbar { display: none; } }
body.has-bar .tabs { display: none; }

/* shorts cards */
.shorts { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; }
.shorts::-webkit-scrollbar { display: none; }
.short { flex: 0 0 min(78%, 300px); scroll-snap-align: start; border-radius: 22px; padding: 20px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: var(--sc, var(--night)); position: relative; overflow: hidden; }
.short::before { content: ""; position: absolute; inset: auto -40px -60px auto; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.short .s-k { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.short .s-v { font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1.05; position: relative; }
.short .s-d { font-size: 15.5px; opacity: 0.92; position: relative; }

/* ROI gauge */
.gauge { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.gauge svg { width: 170px; height: auto; flex-shrink: 0; }
.gauge-arc { stroke-dasharray: 0 999; animation: gfill 1.2s ease-out forwards; }
@keyframes gfill { to { stroke-dasharray: var(--len) 999; } }

/* compare */
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cmp { border-collapse: collapse; width: 100%; min-width: 680px; }
.cmp th, .cmp td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; font-size: 15.5px; }
.cmp thead th { border-top: 0; background: var(--tint); }
.cmp .sticky { position: sticky; left: 0; background: var(--card); z-index: 1; min-width: 130px; color: var(--muted); font-weight: 600; }
.cmp thead .sticky { background: var(--tint); }
.cmp tr.grp th { background: var(--ink); color: var(--paper); font-family: var(--f-display); font-size: 15px; position: static; }
.best { display: inline-block; margin-left: 6px; font-size: 12px; background: var(--mint-soft); color: var(--mint); padding: 1px 8px; border-radius: 999px; font-weight: 700; }
.cmp-card { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.cmp-card a { font-weight: 700; color: var(--ink); text-decoration: none; }
.xbtn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; }
.scorebar { display: grid; grid-template-columns: minmax(80px, 30%) 1fr 40px; gap: 10px; align-items: center; font-size: 15px; }
.scorebar i { height: 10px; border-radius: 5px; background: var(--tint); overflow: hidden; display: block; }
.scorebar b { display: block; height: 100%; background: var(--blue); border-radius: 5px; }
.tray { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + 76px + env(safe-area-inset-bottom, 0px)); z-index: 43; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 6px 6px 6px 18px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); white-space: nowrap; }
@media (min-width: 1100px) { .tray { bottom: 24px; } }

/* FAQ */
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; }
details.faq + details.faq { margin-top: 8px; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 52px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--f-display); font-size: 24px; color: var(--blue-ink); line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq .a { padding-bottom: 16px; color: var(--ink-2); }
details.faq .a ul { margin: 6px 0 0; padding-left: 20px; }

/* exams */
.exam { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.exam h3 { font-size: 21px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline .d { font-weight: 700; font-variant-numeric: tabular-nums; }
.badge-off { color: var(--mint); font-size: 12px; font-weight: 700; }
.badge-exp { color: var(--muted); font-size: 12px; font-weight: 700; }

/* forms + sheets */
.scrim { position: fixed; inset: 0; background: rgba(10, 12, 30, 0.55); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-width: 560px; max-height: 94vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 760px) { .scrim { align-items: center; } .sheet { border-radius: 24px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h2 { font-size: 23px; }
.x { width: 46px; height: 46px; border: 0; background: var(--tint); border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .lab { font-weight: 700; font-size: 15.5px; }
.hint { font-size: 13.5px; color: var(--muted); font-weight: 400; }
.fgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .fgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prefix { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding-left: 14px; gap: 8px; background: var(--card); }
.prefix:focus-within { border-color: var(--blue); }
.prefix .input { border: 0; padding-left: 0; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.seg button { min-height: 64px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; padding: 8px 10px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.seg button small { font-weight: 500; color: var(--muted); font-size: 13.5px; }
.seg button[aria-pressed="true"] { border-color: var(--ink); background: var(--sun-soft); box-shadow: 3px 3px 0 var(--ink); }
.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--tint); border-radius: 12px; padding: 12px; cursor: pointer; font-size: 15.5px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.err { color: var(--coral); font-size: 15px; font-weight: 700; }
.bars { display: flex; gap: 6px; }
.bars span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.bars span.on { background: var(--ink); }
.done-ic { width: 66px; height: 66px; border-radius: 50%; background: var(--mint-soft); color: var(--mint); display: flex; align-items: center; justify-content: center; align-self: center; }
.exrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 48px; gap: 8px; align-items: end; }
.icon-sm { width: 48px; height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* hostels, jobs, learn */
.hcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.hphoto { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--blue-soft), var(--sun-soft)); display: flex; align-items: center; justify-content: center; position: relative; max-width: 100%; }
.hphoto img { width: 100%; height: 100%; object-fit: cover; }
.hbody { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.job { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.job h3 { font-size: 19px; }
.course { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.course .band { height: 90px; display: flex; align-items: center; justify-content: center; color: #fff; }
.course .cb { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.resume-sheet { background: #fff; color: #111; border-radius: 12px; border: 1px solid var(--line); padding: 26px; font-family: var(--f-body); min-height: 300px; }
.resume-sheet h2 { font-size: 26px; color: #111; }
.resume-sheet h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: #3442C6; border-bottom: 1px solid #ddd; padding-bottom: 4px; margin: 16px 0 6px; font-family: var(--f-body); }
.score-ring { width: 120px; height: 120px; }
.me-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 960px) { .me-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.me-grid > * { min-width: 0; }
.news { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.newsitem { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.newsitem:hover { border-color: var(--ink); }
.newsitem b { font-size: 17px; line-height: 1.35; }
.pagebar { background: var(--card); border-bottom: 1px solid var(--line); }
.pagebar .wrap { display: flex; align-items: center; gap: 8px; min-height: 52px; }
.pb { display: inline-flex; align-items: center; gap: 4px; min-height: 46px; min-width: 46px; justify-content: center; border: 0; background: transparent; color: var(--ink); font-weight: 700; cursor: pointer; border-radius: 10px; text-decoration: none; padding: 0 6px; }
.pb-title { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
@media (min-width: 1100px) { .pagebar { display: none; } }

/* footer, toast, install */
.foot { background: var(--night); color: #D9DBF5; margin-top: 60px; padding-bottom: calc(var(--tabs-h) + 20px); }
@media (min-width: 1100px) { .foot { padding-bottom: 0; } }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-block: 36px 24px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.foot h4 { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun); margin-bottom: 10px; font-family: var(--f-body); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot ul a { text-decoration: none; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 90; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.install { display: flex; gap: 12px; align-items: center; background: var(--sun-soft); border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: 14px 16px; }
@media (max-width: 420px) { body { font-size: 16.5px; } .kpis .v { font-size: 15.5px; } }
/* print: only the resume */
@media print {
  body.print-resume * { visibility: hidden; }
  body.print-resume .resume-sheet, body.print-resume .resume-sheet * { visibility: visible; }
  body.print-resume .resume-sheet { position: absolute; left: 0; top: 0; width: 100%; border: 0; padding: 0; }
  body.print-resume .top, body.print-resume .tabs, body.print-resume .callfab { display: none; }
}
@media (max-width: 759px) { .hero-art { display: none; } .hero { padding-block: 22px 24px; } }

/* ---------- light theme overrides ---------- */
.top { background: var(--blue); border-bottom: 0; backdrop-filter: none; }
.top .iconbtn, .top .lang { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; }
.top #accountBtn { background: var(--sun); color: #1F2430; }
.topnav a { color: rgba(255,255,255,.9); }
.topnav a:hover { background: rgba(255,255,255,.14); }
.topnav a[aria-current="page"] { background: #fff; color: var(--blue-ink); }
.logo img { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.tabs { box-shadow: 0 -2px 12px rgba(31,36,48,.06); border-top: 0; }
.tabs a[aria-current="page"] { color: var(--blue); position: relative; }
.tabs a[aria-current="page"]::before { content: ""; position: absolute; top: -4px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
.callfab { background: var(--blue); }
.callfab svg { color: var(--sun); }
.hero { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.search { border: 1.5px solid var(--line); box-shadow: var(--shadow); border-radius: 16px; }
.search:focus-within { border-color: var(--blue); }
.chip { border: 1px solid var(--line); box-shadow: var(--soft); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.dark { background: var(--blue); }
.btn.ghost { border: 1.5px solid color-mix(in srgb, var(--blue) 45%, var(--line)); }
.ticket, .panel, .exam, .job, .hcard, .course, .stat, .tile, .newsitem, details.faq, .empty { border: 0; box-shadow: var(--soft); }
.panel.accent { border: 0; box-shadow: var(--shadow); border-top: 4px solid var(--blue); }
.perf { border-top-color: var(--line); }
.perf::before, .perf::after { border: 0; background: var(--paper); }
/* course tiles: white cards with a coloured icon, like a payments-app grid */
.ctile { background: var(--card); color: var(--ink); box-shadow: var(--soft); min-height: 118px; padding: 14px; justify-content: flex-start; gap: 8px; }
.ctile::after { display: none; }
.cic { width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--tc) 13%, #fff); color: var(--tc); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.ctile:hover .cic { transform: scale(1.08); }
.ctile b { color: var(--tc); font-size: 19px; }
.ctile.big b { font-size: 22px; }
.ctile span { color: var(--muted); opacity: 1; font-size: 13.5px; line-height: 1.35; }
.ctile:hover::after { transform: scale(1.08); }
.ctile.big { min-height: 118px; }
.tile:hover { box-shadow: var(--shadow); }
/* shorts: light cards with coloured value */
.short { background: color-mix(in srgb, var(--sc) 10%, #fff); color: var(--ink); box-shadow: var(--soft); border-top: 4px solid var(--sc); }
.short::before { background: color-mix(in srgb, var(--sc) 12%, transparent); }
.short .s-k { color: var(--sc); opacity: 1; }
.short .s-v { color: var(--ink); }
.short .s-d { color: var(--ink-2); opacity: 1; }
.seg button { border: 1px solid var(--line); box-shadow: var(--soft); }
.seg button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 2px var(--blue) inset; }
.cmp tr.grp th { background: var(--blue-soft); color: var(--blue-ink); }
.cmp thead th, .cmp thead .sticky { background: #F7F8FC; }
.tray { background: var(--blue); }
.tray .btn.sun { color: #1F2430; }
.install { border: 0; background: var(--sun-soft); box-shadow: var(--soft); }
.foot { background: #fff; color: var(--ink-2); border-top: 1px solid var(--line); }
.foot a { color: var(--ink); }
.foot h4 { color: var(--blue-ink); }
.foot .linkbtn { color: var(--ink) !important; }
.chero { border-bottom: 0; box-shadow: var(--soft); }
.ctabs { background: var(--paper); }
.pagebar { border-bottom: 0; box-shadow: var(--soft); }
.ticker { background: var(--blue-soft); border: 0; }
.ticker-track b { color: var(--blue-ink); }
.eyebrow { color: var(--blue); }
.toast { background: #1F2430; }
.scrim { background: rgba(20, 24, 40, 0.45); }
.fcount { background: var(--blue); color: #fff; }
.badge-exp { color: var(--muted); }

/* ================= engagement layer ================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-soft); color: var(--blue-ink); border-radius: 999px; padding: 5px 12px 5px 8px; font-weight: 700; font-size: 13.5px; }
.pill svg { width: 18px; height: 18px; }
.pill.light { background: rgba(255,255,255,.18); color: #fff; }
/* hero */
.hero2 { position: relative; overflow: hidden; padding: 24px 0 8px; background:
  radial-gradient(600px 300px at 100% 0%, rgba(255,214,10,.22), transparent 60%),
  radial-gradient(700px 360px at 0% 100%, rgba(79,93,228,.14), transparent 60%), linear-gradient(180deg, #fff, var(--paper)); }
.hero2 h1 { font-size: clamp(32px, 6vw, 60px); font-weight: 800; letter-spacing: -0.035em; margin-top: 12px; }
.hero2 h1 .hl { background: linear-gradient(transparent 62%, var(--sun) 62%); }
.hero2 .lead { font-size: clamp(16.5px, 2vw, 19px); color: var(--ink-2); margin: 12px 0 18px; max-width: 36em; }
.hero2 .hero-art { max-width: 460px; }
/* stories */
.stories { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 22px 2px 10px; scroll-snap-type: x proximity; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: 0 0 auto; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; scroll-snap-align: start; font: inherit; }
.sring { width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--sc), var(--sun), var(--sc)); display: flex; transition: transform .2s; }
.story:hover .sring, .story:focus-visible .sring { transform: scale(1.06); }
.sic { flex: 1; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: inset 0 0 0 40px color-mix(in srgb, currentColor 10%, #fff); }
.slab { font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.2; }
@media (min-width: 1100px) { .stories { justify-content: center; } }
/* counters */
.counters { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--soft); padding: 16px 10px; margin-top: 18px; text-align: center; }
.counters b { font-family: var(--f-display); font-size: clamp(24px, 4vw, 36px); color: var(--blue); }
.counters span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
/* finder banner */
.finder { margin-top: 26px; border-radius: 24px; padding: 24px 20px; background: linear-gradient(135deg, #4F5DE4, #2F3BB8); color: #fff; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; position: relative; overflow: hidden; }
.finder::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -60px; top: -80px; background: rgba(255,214,10,.18); }
.finder-copy { flex: 999 1 300px; position: relative; z-index: 1; }
.finder h2 { font-size: clamp(24px, 3.6vw, 34px); margin: 10px 0 6px; }
.finder p { opacity: .92; margin-bottom: 14px; }
.finder-art { flex: 1 1 180px; max-width: 240px; position: relative; z-index: 1; }
/* carousel of banner cards */
.carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.carousel > * { flex: 0 0 min(86%, 330px); scroll-snap-align: start; }
.ccard { position: relative; background: var(--card); border-radius: 20px; box-shadow: var(--soft); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .2s, box-shadow .2s; }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cban { display: block; height: 112px; position: relative; text-decoration: none; color: #fff; }
.cmono { position: absolute; left: 16px; bottom: -22px; width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.cflag { position: absolute; left: 14px; top: 12px; }
.ccity { position: absolute; right: 14px; bottom: 10px; font-size: 13.5px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; background: rgba(0,0,0,.18); padding: 2px 10px; border-radius: 999px; }
.cheart { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s; }
.cheart:active { transform: scale(.88); }
.cheart.on { color: var(--coral); }
.cheart.on svg { fill: currentColor; }
.cin { padding: 30px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cin h3 { font-size: 18.5px; }
.cin h3 a { color: var(--ink); text-decoration: none; }
.cstats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; background: var(--paper); border-radius: 12px; padding: 10px; margin-top: auto; }
.cstats span { display: block; font-size: 12px; color: var(--muted); }
.cstats b { font-size: 15.5px; }
.roi-excellent, .roi-good { color: var(--mint); } .roi-fair { color: #B07A00; } .roi-low { color: var(--coral); }
/* duo: countdown + calculator */
.duo { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.countdown { border-radius: 22px; padding: 22px 20px; background: linear-gradient(135deg, #1F2A8A, #4F5DE4); color: #fff; display: flex; flex-direction: column; gap: 10px; }
.countdown h2 { font-size: 26px; }
.countdown p { opacity: .9; }
.cd { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin: 4px 0 6px; }
.cd div { background: rgba(255,255,255,.14); border-radius: 14px; padding: 10px 4px; text-align: center; }
.cd b { display: block; font-family: var(--f-display); font-size: 28px; font-variant-numeric: tabular-nums; }
.cd span { font-size: 12px; opacity: .85; }
.btn.ghost.light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.calc { background: var(--card); border-radius: 22px; box-shadow: var(--soft); padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.calc h2 { font-size: 24px; }
.rng { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.rng > span { display: flex; justify-content: space-between; }
.rng b { color: var(--blue); }
.rng input { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--blue) var(--p, 30%), var(--tint) var(--p, 30%)); outline: none; }
.rng input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: var(--soft); cursor: pointer; }
.rng input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); cursor: pointer; }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; background: var(--paper); border-radius: 14px; padding: 12px; }
.calc-out span { display: block; font-size: 12px; color: var(--muted); }
.calc-out b { font-family: var(--f-display); font-size: 18px; }
.calc .btn { align-self: flex-start; }
/* ROI leaderboard */
.roilist { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 900px) { .roilist { grid-template-columns: 1fr 1fr; } }
.roirow { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; box-shadow: var(--soft); padding: 12px 14px; text-decoration: none; color: var(--ink); }
.rk { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--sun-soft); color: #8A6A00; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rn { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rn small { color: var(--muted); font-size: 13px; }
.rn i { height: 6px; border-radius: 3px; background: var(--tint); display: block; margin-top: 4px; overflow: hidden; }
.rn em { display: block; height: 100%; background: var(--mint); border-radius: 3px; }
.ry { text-align: center; flex-shrink: 0; }
.ry b { font-family: var(--f-display); font-size: 22px; color: var(--mint); display: block; line-height: 1; }
.ry small { font-size: 12px; color: var(--muted); }
/* why */
.why { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (min-width: 900px) { .why { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.whyc { background: var(--card); border-radius: 18px; box-shadow: var(--soft); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.whyc p { font-size: 14.5px; color: var(--muted); }
.whyi { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: var(--wc); background: color-mix(in srgb, var(--wc) 12%, #fff); flex-shrink: 0; }
/* marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mtrack { display: flex; gap: 10px; width: max-content; animation: tick 45s linear infinite; }
.marquee:hover .mtrack { animation-play-state: paused; }
.mq { white-space: nowrap; background: var(--card); box-shadow: var(--soft); border-radius: 12px; padding: 10px 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .mtrack { animation: none; } }
/* CTA */
.cta { border-radius: 24px; padding: 24px 20px; background: linear-gradient(135deg, #4F5DE4, #2F3BB8); color: #fff; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.cta h2 { font-size: clamp(22px, 3vw, 30px); }
.cta p { opacity: .9; margin-top: 4px; }
/* finder results */
.match { display: flex; gap: 12px; align-items: center; background: var(--paper); border-radius: 14px; padding: 10px 12px; }
.mpct { width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; background: conic-gradient(var(--mint) calc(var(--v, 90) * 1%), var(--tint) 0); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: var(--mint); background: var(--mint-soft); line-height: 1; }
.mpct small { font-size: 10px; font-weight: 600; color: var(--muted); }
/* nudge */
.nudge { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabs-h) + 14px + env(safe-area-inset-bottom, 0px)); z-index: 47; background: var(--card); border-radius: 18px; box-shadow: 0 10px 34px rgba(31,36,48,.2); padding: 12px; display: flex; gap: 10px; align-items: center; animation: nudgein .45s cubic-bezier(.2,.8,.2,1); max-width: 520px; margin-inline: auto; }
@keyframes nudgein { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 1100px) { .nudge { bottom: 24px; left: 24px; right: auto; } }
/* college grid now uses banner cards */
.grid > .ccard { height: 100%; }
@media (max-width: 599px) {
  .ctiles { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
  .ctile, .ctile.big { grid-column: auto; min-height: 0; padding: 12px 6px; align-items: center; text-align: center; gap: 6px; }
  .ctile span { display: none; }
  .ctile b, .ctile.big b { font-size: 15px; }
}
@media (max-width: 1099px) { #sortD { display: none; } }

/* ================= AI ================= */
.orb { position: relative; display: inline-block; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(from 0deg, #4F5DE4, #0B8FD8, #FFD60A, #4F5DE4); animation: orbspin 6s linear infinite; box-shadow: 0 0 0 0 rgba(79,93,228,.4); }
.orb i { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #E9ECFF 45%, #C7CEFF); animation: orbbreath 2.8s ease-in-out infinite; }
.orb.xs { width: 26px; height: 26px; vertical-align: middle; }
.orb.sm { width: 38px; height: 38px; }
.orb.lg { width: 64px; height: 64px; box-shadow: 0 0 0 10px rgba(255,255,255,.12), 0 0 0 22px rgba(255,255,255,.06); }
.orb.think { animation-duration: 1.2s; }
.orb.think i { animation-duration: .9s; }
@keyframes orbspin { to { transform: rotate(360deg); } }
@keyframes orbbreath { 50% { transform: scale(.82); } }
@media (prefers-reduced-motion: reduce) { .orb, .orb i { animation: none; } }
.aifab { padding: 0 18px 0 10px; gap: 10px; }
.aifab .orb { animation-duration: 4s; }
.btn .orb.xs { width: 22px; height: 22px; }
/* home AI card */
.aihero { margin-top: 22px; border-radius: 26px; padding: 22px 18px; color: #fff; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
  background: radial-gradient(500px 220px at 100% 0%, rgba(255,214,10,.28), transparent 60%), linear-gradient(135deg, #3442C6, #4F5DE4 55%, #0B8FD8); }
.aihero::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; left: -120px; bottom: -180px; background: rgba(255,255,255,.08); }
.aihero-top { display: flex; gap: 14px; align-items: center; position: relative; z-index: 1; }
.aihero h2 { font-size: clamp(24px, 3.4vw, 32px); margin-top: 6px; }
.aihero p { opacity: .9; }
.aiask { display: flex; gap: 8px; background: #fff; border-radius: 16px; padding: 6px; position: relative; z-index: 1; box-shadow: 0 10px 30px rgba(10,20,80,.25); }
.aiask .input { border: 0; min-height: 48px; }
.aihero .chips { position: relative; z-index: 1; }
.chip.glass { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; box-shadow: none; }
.chip.glass:hover { background: rgba(255,255,255,.24); }
/* chat window */
.aiwrap { position: fixed; inset: 0; z-index: 85; background: rgba(20,24,40,.4); display: flex; align-items: flex-end; justify-content: center; animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.aipanel { background: var(--paper); width: 100%; max-width: 520px; height: min(92vh, 760px); border-radius: 24px 24px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: panelup .35s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 40px rgba(20,24,40,.25); }
@keyframes panelup { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 760px) { .aiwrap { align-items: flex-end; justify-content: flex-end; padding: 20px; } .aipanel { border-radius: 24px; height: min(86vh, 740px); } }
.aihead { display: flex; gap: 10px; align-items: center; padding: 12px 12px 12px 16px; background: linear-gradient(135deg, #3442C6, #4F5DE4); color: #fff; }
.aihead .x { background: rgba(255,255,255,.16); color: #fff; font-size: 20px; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; margin-right: 4px; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: livep 2s infinite; }
@keyframes livep { 70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } }
.aibody { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.msg.in { animation: msgin .3s cubic-bezier(.2,.8,.2,1); }
@keyframes msgin { from { transform: translateY(10px); opacity: 0; } }
.msg.me { justify-content: flex-end; }
.msg .bubble { background: var(--card); border-radius: 18px 18px 18px 6px; padding: 10px 14px; box-shadow: var(--soft); max-width: 88%; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.msg.me .bubble { background: var(--blue); color: #fff; border-radius: 18px 18px 6px 18px; }
.bubble ul { margin: 6px 0; padding-left: 18px; }
.typing { display: inline-flex; gap: 4px; padding: 6px 2px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); opacity: .4; animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { opacity: 1; transform: translateY(-4px); } }
.starters { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 34px; }
.starters .chip { min-height: 40px; font-size: 14.5px; white-space: normal; text-align: left; }
.aicards { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.aicard { display: flex; gap: 10px; align-items: center; background: var(--paper); border-radius: 14px; padding: 8px 10px; animation: msgin .35s both; }
.aicard:nth-child(2) { animation-delay: .08s; } .aicard:nth-child(3) { animation-delay: .16s; } .aicard:nth-child(4) { animation-delay: .24s; }
.aicard a { color: var(--ink); text-decoration: none; }
.aimono { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; color: #fff !important; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.aiacts { margin-top: 10px; }
.aiacts .chip { min-height: 38px; font-size: 14px; }
.aiacts .chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.fb { display: flex; gap: 4px; margin-top: 6px; justify-content: flex-end; }
.fb button { border: 0; background: transparent; cursor: pointer; font-size: 15px; opacity: .45; padding: 4px 6px; border-radius: 8px; min-height: 32px; }
.fb button:hover, .fb button.on { opacity: 1; background: var(--tint); }
.aiform { display: flex; gap: 8px; padding: 10px 12px 4px; background: var(--card); border-top: 1px solid var(--line); }
.aiform .btn { width: 52px; padding: 0; flex-shrink: 0; }
.aifoot { text-align: center; padding: 2px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--card); }
/* page change: soft fade */
#app > * { animation: fadein .28s ease; }
.cmono img, .mono img { width: 100%; height: 100%; object-fit: contain; padding: 6px; border-radius: inherit; }
.mono.haslogo { box-shadow: var(--soft); color: var(--ink); }
.ccover { height: clamp(140px, 28vw, 260px); background-size: cover; background-position: center; }

/* ================= reviews ================= */
.stars { display: inline-flex; gap: 1px; line-height: 1; }
.st { background: linear-gradient(90deg, #F5B301 var(--f), #D9DDE8 var(--f)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rchip { display: inline-flex; align-items: center; gap: 4px; background: var(--sun-soft); color: #7A5A00; font-weight: 800; font-size: 14px; border-radius: 999px; padding: 2px 10px; width: fit-content; }
.rchip small { font-weight: 600; color: var(--muted); }
.spick { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.spick button { border: 0; background: none; font-size: 28px; line-height: 1; color: #D9DDE8; cursor: pointer; padding: 4px; min-width: 40px; min-height: 40px; transition: transform .12s, color .12s; }
.spick.big button { font-size: 36px; }
.spick button.on { color: #F5B301; }
.spick button:active { transform: scale(1.25); }
.spl { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.rsum { display: grid; grid-template-columns: auto auto 1fr; gap: 18px; align-items: center; background: var(--paper); border-radius: 16px; padding: 14px; }
@media (max-width: 640px) { .rsum { grid-template-columns: auto 1fr; } .rareas { grid-column: 1 / -1; } }
.rbig { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rbig b { font-family: var(--f-display); font-size: 40px; line-height: 1; }
.rring { width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--mint) calc(var(--p) * 1%), var(--tint) 0); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; }
.rring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--paper); }
.rring b, .rring span { position: relative; }
.rring b { font-family: var(--f-display); font-size: 20px; color: var(--mint); }
.rring span { font-size: 10.5px; color: var(--muted); line-height: 1.1; max-width: 64px; }
.rareas { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rareas .scorebar { grid-template-columns: minmax(110px, 42%) 1fr 32px; font-size: 14px; }
.rareas .scorebar b { background: #F5B301; }
.offers { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.rlist { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; position: relative; }
.rcard { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--card); }
.rcard h4 { font-size: 17px; margin-top: 4px; }
.rcard.locked { filter: blur(5px); user-select: none; pointer-events: none; max-height: 150px; overflow: hidden; }
.pc { color: var(--mint); } .cc { color: var(--coral); }
.rgate { margin-top: -60px; position: relative; background: linear-gradient(180deg, transparent, var(--card) 40%); padding: 60px 4px 4px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.popular { padding-bottom: 18px; }
.popular .chip { min-height: 36px; font-size: 13.5px; box-shadow: none; }
.pgrp { margin-top: 14px; }
.pgrp h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.pdot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.pdot.g { background: var(--mint); } .pdot.y { background: #E8A600; } .pdot.r { background: var(--coral); }
.appc { border-top: 1px solid var(--line); padding: 12px 0; }
.stages { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 4px; }
.stages li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; position: relative; }
.stages li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: var(--tint); z-index: 0; }
.stages li:first-child::before { display: none; }
.stages li.done::before, .stages li.now::before { background: var(--mint); }
.stages i { width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--muted); font-style: normal; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.stages li.done i { background: var(--mint); color: #fff; }
.stages li.now i { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.stages span { font-size: 11px; line-height: 1.2; color: var(--muted); }
.stages li.now span { color: var(--ink); font-weight: 700; }
/* nearby stays */
.staycta { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #EEF0FF, #FFF8D6); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s; }
.staycta:active { transform: scale(.98); }
.staycta .sic { font-size: 26px; } .staycta b { display: block; font-size: 17px; } .staycta .sgo { font-size: 22px; color: var(--blue); font-weight: 800; }
.staycta .grow { flex: 1; min-width: 0; }
.sh { font-size: 20px; margin: 18px 0 10px; }
.stays { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .stays { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .stays { grid-template-columns: 1fr 1fr 1fr; } }
.stay { display: flex; gap: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--card); text-decoration: none; color: var(--ink); min-width: 0; }
.stay .sph { flex: 0 0 96px; height: 96px; border-radius: 14px; overflow: hidden; background: #EEF0FF; display: grid; place-items: center; font-weight: 800; color: var(--blue); }
.stay .sph img { width: 100%; height: 100%; object-fit: cover; }
.stay .sbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.stay .sbody b { font-size: 16.5px; line-height: 1.25; overflow-wrap: anywhere; }
.stay .sadr { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.srate { font-weight: 700; font-size: 14.5px; color: #B7791F; }
.vstay { border-color: #0E9F6E; background: linear-gradient(180deg, #F0FBF6, var(--card)); }
.vbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: #0E9F6E; }
.gattr { font-size: 11px; color: var(--muted); } .gattr a { color: inherit; }
.gfoot { font-size: 12.5px; color: var(--muted); margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gmark { font-family: Roboto, Arial, sans-serif; font-weight: 500; font-size: 13px; color: #5E5E5E; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: #fff; }
.smap { border-radius: 18px; overflow: hidden; border: 1.5px solid var(--line); height: 420px; background: #EEF0FF; }
.smap iframe { width: 100%; height: 100%; border: 0; }
.stay.skel .sph { animation: pulse 1.2s infinite; } .stay.skel i { display: block; height: 12px; border-radius: 6px; background: #EEF0FF; margin: 4px 0; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
/* home: grow grid */
.growgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .growgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.growtile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; min-width: 0; }
.growtile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(79,93,228,.12); }
.growtile .gi { font-size: 26px; } .growtile b { font-size: 16px; line-height: 1.25; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr repeat(6, 1fr); } }
/* hero: 3 clear actions */
.hero3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.h3a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 6px; min-height: 76px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; text-align: center; transition: transform .15s; }
.h3a:active { transform: scale(.97); } .h3a span { font-size: 24px; } .h3a b { font-size: 14.5px; line-height: 1.2; }
.growtile { position: relative; } .growtile.hot { border-color: #F2760C; background: linear-gradient(180deg, #FFF4EA, var(--card)); }
.hotb { position: absolute; top: 10px; right: 10px; font-size: 11.5px; font-weight: 700; color: #C2410C; }
