/* ugcnet.org: calm blue, big rounded type, easy on tired eyes */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-ext.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #eef3fb;          /* misty blue page */
  --surface: #ffffff;
  --ink: #1c2b4a;         /* navy text, softer than black */
  --muted: #5d6b88;
  --blue: #2456c9;        /* primary */
  --blue-dark: #1b44a6;
  --blue-tint: #e2ebfb;
  --line: #d9e3f3;
  --green: #137a55;
  --green-tint: #e2f4ec;
  --red: #c23a3a;
  --red-tint: #fbe8e8;
  --amber-tint: #fff4dc;
  --amber-ink: #7a5300;

  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(28, 43, 74, .06), 0 8px 24px rgba(36, 86, 201, .07);
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
b { font-weight: 800; }
:focus-visible { outline: 3px solid #7aa5ff; outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Logo & top bar ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.logo:hover { color: var(--ink); }
.logo-dot { color: var(--blue); }
.logo-lg { font-size: 1.75rem; gap: 12px; }

.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 700; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav form { margin: 0; }
.nav-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.nav-btn:hover { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 28px;
  background: var(--blue); color: #fff; border: 0; border-radius: var(--r-md);
  font: 800 1.12rem var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #a9bce6; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-soft { background: var(--blue-tint); color: var(--blue); }
.btn-soft:hover { background: #d3e1fa; color: var(--blue-dark); }
.btn-sm { min-height: 46px; padding: 0 18px; font-size: 1rem; border-radius: var(--r-sm); }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 58px; border-radius: var(--r-md);
  background: #fff; border: 2px solid var(--line); color: var(--ink);
  font-weight: 800; font-size: 1.1rem; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.btn-google:hover { border-color: #b7c9ea; background: #f8fbff; color: var(--ink); }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 20px; }
.field > span:first-child { display: block; font-weight: 800; margin-bottom: 8px; }
input[type=email], input[type=password], input[type=text], input[type=search], input[type=tel], select {
  width: 100%; min-height: 58px; padding: 0 18px;
  font: 600 1.12rem var(--font); color: var(--ink);
  background: #f7f9fe; border: 2px solid var(--line); border-radius: var(--r-md);
  transition: border-color .15s, background .15s;
}
input:hover, select:hover { border-color: #bccdec; }
input:focus, select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(36, 86, 201, .14); }
.pw { position: relative; display: block; }
.pw input { padding-right: 84px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  height: 42px; padding: 0 14px; border: 0; border-radius: 10px;
  background: transparent; color: var(--blue); font: 800 .98rem var(--font); cursor: pointer;
}
.pw-toggle:hover { background: var(--blue-tint); }
.hint { display: block; color: var(--muted); font-size: .95rem; margin-top: 6px; }
.err { display: block; color: var(--red); font-style: normal; font-weight: 700; font-size: .98rem; margin-top: 8px; }

.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -2px 0 22px; }
.row-between a { font-weight: 700; }

/* ---------- Alerts ---------- */
.flash-wrap { padding-top: 18px; }
.alert { padding: 14px 18px; border-radius: var(--r-md); margin: 0 0 18px; font-weight: 700; }
.alert-success { background: var(--green-tint); color: var(--green); }
.alert-error   { background: var(--red-tint); color: var(--red); }
.alert-info    { background: var(--blue-tint); color: var(--blue-dark); }
.page-home .flash-wrap { max-width: 480px; }

/* ---------- Home: one centred card ---------- */
.page-home main {
  background:
    radial-gradient(1100px 520px at 50% -180px, #cfdffb 0%, rgba(207, 223, 251, 0) 70%),
    var(--bg);
}
.home { width: 100%; max-width: 480px; margin: 0 auto; padding: 48px 18px 40px; }
.home-intro { text-align: center; margin-bottom: 26px; }
.home-lead { font-size: 1.15rem; color: var(--muted); margin: 14px auto 0; max-width: 30ch; line-height: 1.5; }
.auth-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px 26px 30px; }
.card-title { font-size: 1.6rem; font-weight: 800; line-height: 1.25; margin: 4px 0 12px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg); padding: 6px; border-radius: var(--r-md); margin-bottom: 24px; }
.tab { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-weight: 800; font-size: 1.08rem; }
.tab:hover { color: var(--ink); }
.tab.is-on { background: var(--surface); color: var(--blue); box-shadow: 0 1px 3px rgba(28, 43, 74, .12); }

.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .98rem; margin: 22px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.home-foot { text-align: center; margin: 24px 0 0; color: var(--muted); }
.home-foot a { font-weight: 800; }

/* ---------- App pages ---------- */
.app { padding-top: 32px; padding-bottom: 56px; }
.app.narrow { max-width: 560px; }
.page-title { font-size: clamp(1.9rem, 5vw, 2.4rem); font-weight: 800; line-height: 1.2; margin: 0 0 22px; letter-spacing: -.01em; }
.section-title { font-size: 1.35rem; font-weight: 800; margin: 34px 0 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; margin-bottom: 16px; }

.notice { background: var(--amber-tint); color: var(--amber-ink); border-radius: var(--r-md); padding: 18px 20px; margin: 0 0 8px; }
.notice p { margin: 0 0 12px; }
.notice form { margin: 0; }

.empty { background: var(--surface); border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--shadow); }
.empty p { margin: 0; color: var(--muted); }
.empty .empty-title { color: var(--ink); font-weight: 800; font-size: 1.25rem; margin-bottom: 6px; }

/* My subjects */
.my-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.my-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 14px;
  background: var(--surface); color: var(--blue); text-decoration: none;
  border: 3px solid var(--blue); border-radius: var(--r-lg); padding: 18px 20px;
  transition: background .15s;
}
.my-item:hover { background: var(--blue-tint); color: var(--blue-dark); }
.my-name { font-weight: 800; font-size: 1.2rem; line-height: 1.3; }
.my-meta { grid-column: 1; font-size: .95rem; color: var(--muted); }
.my-go { grid-column: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }

/* Subject picker */
.my-list + .pick { margin-top: 22px; }
.pick { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px 24px 26px; }
.field-label { display: block; font-weight: 800; margin-bottom: 8px; }
.pick-native { margin-bottom: 20px; }
.pick .err { margin: -12px 0 16px; }

/* Searchable dropdown that stays inside the card */
.combo { position: relative; margin-bottom: 20px; }
.combo-input { padding-right: 52px !important; cursor: pointer; text-overflow: ellipsis; }
.combo-input:focus { cursor: text; }
.combo-arrow { position: absolute; right: 18px; top: 18px; color: var(--muted); pointer-events: none; transition: transform .15s; }
.combo.is-open .combo-arrow { transform: rotate(180deg); color: var(--blue); }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  max-height: min(340px, 55vh); overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(28, 43, 74, .16);
}
.combo-list li { padding: 12px 14px; border-radius: 10px; cursor: pointer; line-height: 1.35; font-weight: 700; }
.combo-list li.is-active { background: var(--blue-tint); color: var(--blue-dark); }
.combo-list li[aria-selected="true"] { color: var(--blue); }
.combo-list .combo-empty { color: var(--muted); cursor: default; font-weight: 600; }
.nav-email { color: var(--muted); font-weight: 700; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* All subjects */
.search { position: relative; margin-bottom: 14px; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 52px; background: var(--surface); }
.sub-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.sub-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px 14px 22px; border-top: 1px solid var(--line); }
.sub-list li:first-child { border-top: 0; }
.sub-name { font-weight: 700; line-height: 1.35; }
.pill {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  min-width: 84px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--blue-tint); color: var(--blue); font-weight: 800; text-decoration: none;
}
.pill:hover { background: var(--blue); color: #fff; }
.pill-on { background: var(--green-tint); color: var(--green); }
.pill-on:hover { background: var(--green); color: #fff; }
.none { color: var(--muted); text-align: center; margin: 18px 0; }

/* Buy page */
.buy-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px 26px 30px; }
.buy-title { font-size: 1.7rem; font-weight: 800; line-height: 1.25; margin: 0 0 10px; }
.buy-price { font-size: 2.6rem; font-weight: 900; color: var(--blue); margin: 0 0 18px; line-height: 1.1; }
.buy-price span { font-size: 1.1rem; font-weight: 700; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 38px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137a55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.buy-dates { background: var(--bg); border-radius: var(--r-md); padding: 14px 18px; margin: 0 0 22px; }
.small-note { font-size: .98rem; margin: 12px 0 0; }

/* Subject page: three ways to study */
.modes { display: grid; gap: 14px; }
.mode { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 24px; }
.mode h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 10px; }
.mode p { margin: 0 0 12px; color: var(--muted); }
.soon { display: inline-block; background: var(--bg); color: var(--muted); border-radius: 999px; padding: 4px 14px; font-size: .92rem; font-weight: 700; }

/* ---------- Admin ---------- */
.app.wide { max-width: 960px; }
.admin-nav { display: flex; gap: 6px; background: var(--surface); padding: 6px; border-radius: var(--r-md); box-shadow: var(--shadow); margin: 0 0 24px; overflow-x: auto; }
.admin-nav a { padding: 10px 18px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-weight: 800; white-space: nowrap; }
.admin-nav a:hover { color: var(--ink); }
.admin-nav a.is-on { background: var(--blue); color: #fff; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; }
.stat-num { font-size: 1.8rem; font-weight: 900; color: var(--blue); line-height: 1.2; }
.stat-label { color: var(--muted); font-size: .95rem; }

.panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 24px 4px; margin: 20px 0 30px; }
.panel-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 14px; }
.all-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.all-row .btn { margin-bottom: 20px; }

.money { position: relative; display: block; }
.money > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 800; pointer-events: none; }
.money input { padding-left: 36px; }

.price-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.price-head .panel-title { margin: 0; }
.search-sm { margin: 0; flex: 0 1 300px; }
.search-sm input { min-height: 48px; }
.search-sm svg { left: 14px; }
.search-sm input { padding-left: 44px; }

.price-table { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.price-row { display: grid; grid-template-columns: 1fr 140px 160px; gap: 12px; align-items: center; padding: 10px 16px 10px 20px; border-top: 1px solid var(--line); }
.price-row:first-child { border-top: 0; }
.price-row-head { color: var(--muted); font-size: .92rem; font-weight: 800; padding-top: 14px; padding-bottom: 6px; }
.price-row input, .price-row select { min-height: 48px; font-size: 1.05rem; }
.price-name { font-weight: 700; line-height: 1.35; }
.price-name small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.price-row.is-changed { background: #f4f8ff; box-shadow: inset 4px 0 0 var(--blue); }

.save-bar {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(238, 243, 251, .94); backdrop-filter: blur(6px); padding: 14px 0; margin-top: 8px;
}

@media (max-width: 760px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .all-row { grid-template-columns: 1fr 1fr; }
  .all-row .btn { grid-column: 1 / -1; }
  .price-row { grid-template-columns: 1fr 1fr; padding: 14px 16px; }
  .price-row-head { display: none; }
  .price-name { grid-column: 1 / -1; }
  .search-sm { flex-basis: 100%; }
}

/* ---------- WhatsApp help button ---------- */
.wa-help {
  position: fixed; right: 18px; bottom: 18px; z-index: 20;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #1fa855; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(20, 110, 60, .3);
}
.wa-help:hover { background: #178c46; color: #fff; }
body:has(.save-bar) .wa-help { bottom: 90px; }

/* ---------- Practice ---------- */
.q-progress { display: flex; justify-content: space-between; color: var(--muted); font-weight: 700; margin: 4px 0 8px; }
.q-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.q-bar span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.q-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px 22px; }
.q-text { font-size: 1.25rem; font-weight: 700; line-height: 1.55; margin: 0 0 20px; }
.q-img { max-width: 100%; border-radius: var(--r-sm); margin-bottom: 14px; }
.q-options { display: grid; gap: 12px; margin: 0; }
.q-opt {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left;
  padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--r-md);
  background: #fff; color: var(--ink); font: 600 1.12rem/1.5 var(--font); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.q-opt:hover:not(:disabled) { border-color: var(--blue); background: #f6f9ff; }
.q-opt:disabled { cursor: default; }
.q-letter { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); font-weight: 800; }
.q-opt-text { padding-top: 2px; }
.q-opt.is-right { border-color: var(--green); background: var(--green-tint); }
.q-opt.is-right .q-letter { background: var(--green); color: #fff; }
.q-opt.is-wrong { border-color: var(--red); background: var(--red-tint); }
.q-opt.is-wrong .q-letter { background: var(--red); color: #fff; }
.q-opt.is-dim { opacity: .6; }
.q-feedback { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-md); }
.q-feedback p { margin: 0; line-height: 1.6; }
.q-feedback.ok { background: var(--green-tint); }
.q-feedback.no { background: var(--red-tint); }
.q-verdict { font-weight: 800; margin-bottom: 6px !important; }
.q-feedback.ok .q-verdict { color: var(--green); }
.q-feedback.no .q-verdict { color: var(--red); }
.q-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.q-nav .btn { min-width: 130px; }
.mode .btn { margin-top: 2px; }

.result-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 30px 26px; text-align: center; display: grid; gap: 12px; }
.result-label { margin: 0; color: var(--muted); font-weight: 800; }
.result-score { margin: 0; font-size: 3.4rem; font-weight: 900; color: var(--blue); line-height: 1.1; }
.result-score span { font-size: 1.6rem; color: var(--muted); }
.result-sub { margin: 0 0 10px; font-weight: 700; }

/* ---------- Menu (hamburger) ---------- */
.menu { position: relative; }
.menu-btn {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 270px;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 14px 34px rgba(28, 43, 74, .16); padding: 8px;
}
.menu-panel a, .menu-panel button {
  display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font: 700 1.02rem var(--font); background: none; border: 0; cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--blue-tint); color: var(--blue-dark); }
.menu-panel hr { border: 0; border-top: 2px solid var(--line); margin: 6px 4px; }
.menu-panel form { margin: 0; }
.corner-menu { position: absolute; top: 16px; right: 16px; z-index: 40; }

/* ---------- Info & policy pages ---------- */
.doc { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px 28px 30px; }
.doc h1 { font-size: clamp(1.7rem, 4.5vw, 2.1rem); font-weight: 800; line-height: 1.2; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: .95rem; margin: 0 0 20px; }
.doc h2 { font-size: 1.2rem; font-weight: 800; margin: 26px 0 8px; }
.doc p, .doc li { line-height: 1.7; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc li { margin-bottom: 6px; }
.contact-list { list-style: none; padding: 0 !important; display: grid; gap: 14px; margin: 18px 0 0 !important; }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { color: var(--muted); }
.addr { white-space: pre-line; }

/* ---------- Footer ---------- */
.footer { color: var(--muted); font-size: .95rem; padding: 22px 0 28px; text-align: center; }

/* ---------- Small screens ---------- */
@media (max-width: 520px) {
  body { font-size: 17.5px; }
  .home { padding-top: 32px; }
  .auth-card, .buy-card { padding: 20px 18px 24px; border-radius: 20px; }
  .nav { gap: 14px; font-size: 1rem; min-width: 0; }
  .nav-email { max-width: 150px; font-size: .92rem; }
  .nav-wide { display: none; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .doc { padding: 22px 18px 24px; }
  .topbar .logo span { display: none; }
  .topbar .logo span { font-size: 1.15rem; }
  .sub-list li { padding: 12px 12px 12px 18px; }
  .buy-price { font-size: 2.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
