/* MarketUni · Vault design layer
   ---------------------------------------------------------------------------
   Loaded after styles.css. styles.css keeps the approved structure, layouts
   and tokens (and its tests); this file re-skins them in the tactile "vault"
   language: Space Grotesk, near-black surfaces, MarketUni orange, buttons with
   a solid pressed edge, a floating header bar and pill-shaped chips.
   Plain, solid colours only: no gradients, shadows, glows or tinted blends. */

:root {
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: var(--font);
  --serif: var(--font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shared across both themes */
  --brand: #F97316; --brand-hover: #FB8A32; --on-brand: #0A0A0A;
  --brand-deep: #C2410C;        /* solid bottom edge under orange buttons */
  --tick: #22C55E; --tick-edge: #15803D;
  --focus: #F97316;
  --shadow-pop: none; --shadow-modal: none;
  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-xl: 22px;
}

/* Two plain palettes. The page takes one; cards, modals and every other
   component take the opposite one, so a component always stands out from the
   page: black cards on a white page in light mode, white cards on a black page
   in dark mode. The header bar, category pills and footer stay page-coloured. */
:root, [data-theme="light"],
[data-theme="dark"] .panel,
[data-theme="dark"] .card,
[data-theme="dark"] .cat,
[data-theme="dark"] .stat,
[data-theme="dark"] .istats,
[data-theme="dark"] .empty,
[data-theme="dark"] .gal,
[data-theme="dark"] .dbuy,
[data-theme="dark"] .trust,
[data-theme="dark"] table.tbl,
[data-theme="dark"] .steps,
[data-theme="dark"] .seller-progress-compact,
[data-theme="dark"] .upload-choice,
[data-theme="dark"] dialog,
[data-theme="dark"] .bal,
[data-theme="dark"] .plan,
[data-theme="dark"] .campuspick,
[data-theme="dark"] .instpop,
[data-theme="dark"] .notice,
[data-theme="dark"] .safety,
[data-theme="dark"] .report-alert-popup,
[data-theme="dark"] .trust-bar,
[data-theme="dark"] .hero-widget,
[data-theme="dark"] .flash,
[data-theme="dark"] .skel-card,
[data-theme="dark"] .checklist {
  --paper: #FFFFFF; --surface: #FFFFFF; --sunken: #FFFFFF; --hover: #F4F4F4;
  --line: #E5E5E5; --line-strong: #D0D0D0; --btn-edge: #D0D0D0; --btn-hi: transparent;
  --ink-900: #0A0A0A; --ink-700: #262626; --ink-500: #525252; --ink-400: #6B6B6B;
  --brand-text: #EA580C; --brand-text-hover: #F97316; --brand-soft: transparent;
  --success: #16A34A; --success-soft: transparent; --success-line: #16A34A;
  --danger: #DC2626; --danger-50: transparent;
  --warn: #EA580C; --warn-50: transparent;
  --info: #0A0A0A; --info-50: transparent;
  --skel-bg: #EFEFEF;
  color-scheme: light;
}
[data-theme="dark"],
:root:not([data-theme="dark"]) .panel,
:root:not([data-theme="dark"]) .card,
:root:not([data-theme="dark"]) .cat,
:root:not([data-theme="dark"]) .stat,
:root:not([data-theme="dark"]) .istats,
:root:not([data-theme="dark"]) .empty,
:root:not([data-theme="dark"]) .gal,
:root:not([data-theme="dark"]) .dbuy,
:root:not([data-theme="dark"]) .trust,
:root:not([data-theme="dark"]) table.tbl,
:root:not([data-theme="dark"]) .steps,
:root:not([data-theme="dark"]) .seller-progress-compact,
:root:not([data-theme="dark"]) .upload-choice,
:root:not([data-theme="dark"]) dialog,
:root:not([data-theme="dark"]) .bal,
:root:not([data-theme="dark"]) .plan,
:root:not([data-theme="dark"]) .campuspick,
:root:not([data-theme="dark"]) .instpop,
:root:not([data-theme="dark"]) .notice,
:root:not([data-theme="dark"]) .safety,
:root:not([data-theme="dark"]) .report-alert-popup,
:root:not([data-theme="dark"]) .trust-bar,
:root:not([data-theme="dark"]) .hero-widget,
:root:not([data-theme="dark"]) .flash,
:root:not([data-theme="dark"]) .skel-card,
:root:not([data-theme="dark"]) .checklist {
  --paper: #000000; --surface: #000000; --sunken: #000000; --hover: #161616;
  --line: #2A2A2A; --line-strong: #404040; --btn-edge: #404040; --btn-hi: transparent;
  --ink-900: #FAFAFA; --ink-700: #E5E5E5; --ink-500: #A3A3A3; --ink-400: #8A8A8A;
  --brand-text: #F97316; --brand-text-hover: #FB923C; --brand-soft: transparent;
  --success: #22C55E; --success-soft: transparent; --success-line: #22C55E;
  --danger: #F87171; --danger-50: transparent;
  --warn: #F97316; --warn-50: transparent;
  --info: #FAFAFA; --info-50: transparent;
  --skel-bg: #1C1C1C;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
body { font-family: var(--font); background: var(--paper); color: var(--ink-900);
  letter-spacing: -.003em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: 34px; line-height: 1.08; }
h2 { letter-spacing: -.02em; }
.prose, .lede { font-family: var(--font); }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: var(--brand-text); }
.muted { color: var(--ink-500); }
.mono, code { font-family: var(--mono); }

/* Small monospace label above a hero heading: the one place it is used. */
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--brand-text);
  letter-spacing: .02em; margin: 0 0 14px; }

/* --------------------------------------------------------------- header */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--paper); border: 0;
  padding: 10px 16px 0; }
.hrow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  height: 62px; padding: 0 10px 0 16px; max-width: 1240px; gap: 12px; }
.logo { color: var(--ink-900); letter-spacing: -.04em; }
.brand-wordmark { color: var(--ink-900); }
.instsel, .srch { border-color: var(--line); background: var(--sunken); border-radius: 12px; }
.instsel:hover { border-color: var(--line-strong); }
.srch:focus-within { border-color: var(--brand); }
.srch input { color: var(--ink-900); }
.srch input::placeholder { color: var(--ink-400); }
.srch button { background: transparent; border-left-color: var(--line); color: var(--ink-700); }
.srch button:hover { background: var(--brand); color: var(--on-brand); }
.iconbtn { border-radius: 10px; color: var(--ink-700); }
.iconbtn:hover { background: var(--sunken); color: var(--ink-900); }
.dot { border-color: var(--surface); }
#theme-toggle-btn .icon-moon { display: none; }
[data-theme="dark"] #theme-toggle-btn .icon-sun { display: none; }
[data-theme="dark"] #theme-toggle-btn .icon-moon { display: block; }

/* Categories: a row of pills under the bar instead of an underlined strip. */
.catbar { background: transparent; border: 0; }
.catrow { height: auto; padding: 12px 16px 4px; gap: 8px; align-items: center; }
.catrow a { height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--surface); color: var(--ink-500); font-size: 13.5px; font-weight: 500; }
.catrow a:hover { color: var(--ink-900); border-color: var(--line-strong); }
.catrow a[aria-current] { background: var(--ink-900); border-color: var(--ink-900); color: var(--paper);
  font-weight: 600; }

/* -------------------------------------------------------------- buttons
   Flat, solid colours. The only depth is a solid darker bottom border, so a
   button still reads as a key; pressing moves it down onto that edge. */
.btn { height: 44px; border-radius: 12px; font-family: var(--font); font-weight: 600; font-size: 15px;
  letter-spacing: -.005em; border-bottom-width: 4px; padding-top: 3px;
  transition: transform .08s ease, border-bottom-width .08s ease, background-color .15s ease; }
.btn-p, .btn-a { background: var(--brand); border-color: var(--brand); border-bottom-color: var(--brand-deep);
  color: var(--on-brand); }
.btn-p:hover, .btn-a:hover { background: var(--brand-hover); border-color: var(--brand-hover);
  border-bottom-color: var(--brand-deep); }
.btn-s { background: var(--surface); border-color: var(--line); border-bottom-color: var(--btn-edge); color: var(--ink-900); }
.btn-s:hover { border-color: var(--line-strong); border-bottom-color: var(--line-strong); }
.btn-d { border-bottom-color: #7A1D1D; }
.btn-g { border-bottom-width: 1px; padding-top: 0; }
.btn-p:active, .btn-a:active, .btn-s:active, .btn-d:active { transform: translateY(3px); border-bottom-width: 1px; }
.btn-sm { height: 36px; border-radius: 10px; font-size: 13.5px; border-bottom-width: 3px; padding-top: 2px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn[disabled], .btn[aria-disabled=true] { background: var(--sunken); border-color: var(--line);
  border-bottom-width: 1px; color: var(--ink-400); transform: none; }

/* ----------------------------------------------------------- surfaces */
.panel, .card, .cat, .stat { background: var(--surface); border-color: var(--line); border-radius: var(--r-lg); }
.panel-h { background: var(--sunken); color: var(--ink-500); font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .04em; border-color: var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.card { transition: border-color .15s ease; }
.card:hover, .cat:hover { border-color: var(--line-strong); }
.c-img { background: var(--sunken); border-bottom: 1px solid var(--line); }
.c-img svg { color: var(--ink-400); }
.c-t { color: var(--ink-900); font-weight: 600; letter-spacing: -.01em; }
.c-price { font-family: var(--font); font-weight: 700; letter-spacing: -.02em; }
.c-tag { background: var(--surface); color: var(--ink-900); border: 1px solid var(--line);
  border-radius: 99px; font-family: var(--mono); font-size: 11px; font-weight: 600; }
.card[data-kind="SERVICE"] .c-tag { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.c-fav { background: var(--surface); border: 1px solid var(--line); color: var(--ink-700); }
.cat .ic { background: var(--brand-soft); color: var(--brand-text); border-radius: 12px; }
.cat, .c-sell, a.c-t { color: var(--ink-900); }
.c-sell .nm { color: var(--ink-700); }
.cat b { font-family: var(--font); font-weight: 600; letter-spacing: -.01em; }
.stat > span { font-family: var(--mono); letter-spacing: .03em; color: var(--ink-500); }
.stat b { font-family: var(--font); letter-spacing: -.03em; }

.avatar { background: var(--brand-soft); color: var(--brand-text); font-family: var(--font); }
.badge { border-radius: 99px; font-family: var(--font); }
.b-accent { background: var(--brand); color: var(--on-brand); border-color: var(--brand-deep); }
.chip { border-radius: 99px; background: var(--sunken); border-color: var(--line); color: var(--ink-500); }
.notice { border-radius: 12px; }
.flash { background: var(--ink-900); color: var(--paper); border-radius: 14px;
  border: 1px solid var(--line-strong); font-family: var(--font); }

/* ------------------------------------------------------------- forms */
.field > label { font-family: var(--font); font-weight: 600; color: var(--ink-900); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number],
.field input[type=search], .field input[type=date], .field select, .field textarea {
  background-color: var(--sunken); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink-900); font-family: var(--font); height: 48px; }
.field textarea { height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { background-color: var(--surface);
  border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 1px; }
.field .hint { color: var(--ink-500); }
.fbox, .upload-zone, .kycopt, .choice { border-color: var(--line); border-radius: 14px; background: var(--surface); }

/* ------------------------------------------------------------ tables & tabs */
.tbl th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; color: var(--ink-500);
  background: var(--sunken); }
.tbl td, .tbl th { border-color: var(--line); }
.tabs { background: transparent; border-bottom-color: var(--line); }
.tabs a, .tabs button { color: var(--ink-500); font-family: var(--font); }
.tabs a[aria-current], .tabs button[aria-selected=true] { color: var(--ink-900); border-bottom-color: var(--brand); }

/* -------------------------------------------------------------- home hero */
.hero { background: transparent; border-bottom: 0; }
.hero-in { padding: 56px 24px 48px; gap: 48px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: .98; letter-spacing: -.035em; margin-bottom: 20px; }
.hero h1 span { color: var(--brand) !important; }
.hero .lede { font-family: var(--font); color: var(--ink-500); font-size: 18px; max-width: 46ch; }
.hero-badge { margin-bottom: 18px; }
.hero-live { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 600;
  color: var(--ink-900); letter-spacing: -.01em; }
/* The tick is two plain colours: a green disc on a darker green base edge. */
.tick3d { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none;
  border-radius: 50%; background: var(--tick); border-bottom: 3px solid var(--tick-edge); color: #FFFFFF; }
.tick3d svg { width: 15px; height: 15px; margin-top: 1px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.trust-bar { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); max-width: 560px; }
.trust-item b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.trust-item span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-500); }
.trust-divider { width: 1px; align-self: stretch; background: var(--line); }
.hero-widget { padding: 22px; border-radius: var(--r-xl); }
.widget-header { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px;
  font-weight: 600; color: var(--brand-text); margin-bottom: 16px; }
.hero-widget .campuspick-current { display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--sunken); }
.hero-widget .campuspick-copy b { display: block; font-size: 16px; letter-spacing: -.01em; }
.hero-widget .campuspick-copy small { color: var(--ink-500); }
.widget-hint { color: var(--ink-500); font-size: 14px; margin: 14px 0 16px; }

/* Cart and checkout: the order is the main column, the summary sits beside it.
   (.cols on its own is the 250px filter-sidebar layout used by search.) */
.cols.cols-main { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 1023px) { .cols.cols-main { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- footer */
.ftr { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-500); }
.ftr a { color: var(--ink-700); }
.ftr a:hover { color: var(--ink-900); }
.ftr .logo, .ftr .brand-wordmark { color: var(--ink-900); }
.ftr .brand-uni { color: var(--brand); }
.ftr h4 { color: var(--ink-900); }
.ftr p { color: var(--ink-500); }
.ftr .wrap:last-child { display: block; }
.ftr .btm { display: block; border-top-color: var(--line); color: var(--ink-500); }

@media (max-width: 719px) {
  .hdr { position: relative; padding: 8px 10px 0; }
  .hrow { height: auto; min-height: 56px; padding: 8px 8px 8px 12px; row-gap: 8px; }
  .hero-in { padding: 32px 16px; }
  .trust-divider { display: none; }
}
/* Phone type scale: everything one step down so a screen holds more. */
@media (max-width: 719px) {
  body { font-size: 14px; line-height: 1.55; }
  h1 { font-size: 24px; }
  h2, .sec-h h2 { font-size: 18px; }
  h3 { font-size: 15px; }
  .hero h1 { font-size: 34px; line-height: 1.02; letter-spacing: -.03em; margin-bottom: 14px; }
  .hero .lede { font-size: 15px; line-height: 1.55; }
  .hero-live { font-size: 14.5px; } .tick3d { width: 23px; height: 23px; } .tick3d svg { width: 13px; height: 13px; }
  .hero-actions { margin: 20px 0 22px; gap: 10px; }
  .trust-bar { padding: 14px 16px; gap: 14px 20px; }
  .trust-item b { font-size: 20px; }
  .trust-item span { font-size: 10.5px; }
  .btn { height: 42px; font-size: 14px; padding: 0 16px; }
  .btn-lg { height: 46px; font-size: 15px; padding: 0 18px; }
  .btn-sm { height: 34px; font-size: 13px; }
  .logo { font-size: 19px; }
  .catrow a { height: 30px; padding: 0 12px; font-size: 12.5px; }
  .field > label { font-size: 13.5px; }
  .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number],
  .field input[type=search], .field input[type=date], .field select { height: 44px; font-size: 16px; } /* 16px stops iOS zooming on focus */
  .field .hint, .field .emsg { font-size: 12.5px; }
  .c-t { font-size: 13.5px; }
  .c-price { font-size: 16px; }
  .cat b { font-size: 13.5px; }
  .panel-p { padding: 16px; }
  .prose, .notice { font-size: 14px; }
  .tbl { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}

/* ===================================================== Loading states
   Shimmer placeholders, page progress and button spinners (public/loading.js).
   Pattern after a grey block with a light wave sweeping across it. */
[data-theme="dark"] .skel-card { border-color: rgba(255, 255, 255, 0.1); }

.skel,
.img-skel {
  position: relative;
  overflow: hidden;
  background: var(--skel-bg);
  border-radius: 8px;
}
.skel, .img-skel { animation: skel-pulse 1.4s ease-in-out infinite; }
@keyframes skel-pulse { 50% { opacity: .55; } }

/* Photos: placeholder underneath (with a faint MarketUni mark), photo fades in on load */
.img-skel-host { position: relative; }
.img-skel {
  position: absolute;
  inset: 0;
  border-radius: 0;
}
.img-skel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/brand/mark.svg?v=marketuni-1") center / 28% auto no-repeat;
  opacity: 0.18;
}
[data-theme="dark"] .img-skel::before { background-image: url("/brand/mark-inverse.svg?v=marketuni-1"); opacity: 0.12; }
.js-loading-ready main img[src^="/api/"] { transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.js-loading-ready main img.img-pending { opacity: 0; }
.img-skel-host > img { position: relative; } /* above the placeholder, below badges that follow it */

/* Page change: thin progress bar along the top */
.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--brand);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
}
.page-progress.active {
  opacity: 1;
  width: 85%;
  transition: width 8s cubic-bezier(0.1, 0.7, 0.2, 1), opacity 0.15s;
}
.page-progress.done {
  width: 100%;
  opacity: 0;
  transition: width 0.2s ease, opacity 0.3s ease 0.2s;
}

/* Page change: the MarketUni mark tracing itself */
.mu-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 0 26px;
  color: var(--ink-900);
}
.mu-loader-mark { width: 76px; height: auto; }
.mu-loader-mark .mu-ink { stroke: currentColor; opacity: 0.85; }
.mu-loader-mark .mu-track { stroke: var(--brand); opacity: 0.18; }
.mu-loader-mark .mu-draw {
  stroke: var(--brand);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: mu-draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes mu-draw {
  0% { stroke-dashoffset: 100; }
  55% { stroke-dashoffset: 0; }
  80% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.mu-loader-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}
.page-skel > .mu-loader:only-child { padding: 18vh 0; }

/* Page change: skeleton of the next page */
main.is-navigating { display: none; }
.page-skel { padding: 28px 0 60px; }
.page-skel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 18px;
}
.skel-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}
.skel-card .skel-img { aspect-ratio: 4/3; border-radius: 0; }
.skel-body { padding: 14px 16px 18px; display: grid; gap: 10px; }
.skel-line { height: 12px; }
.skel-line.lg { height: 22px; margin-bottom: 6px; }
.skel-line.w30 { width: 30%; } .skel-line.w40 { width: 40%; } .skel-line.w60 { width: 60%; }
.skel-line.w80 { width: 80%; } .skel-line.w90 { width: 90%; } .skel-line.w100 { width: 100%; }
.page-skel-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.page-skel-detail > div:last-child { display: grid; gap: 12px; padding-top: 8px; }
.skel-hero { aspect-ratio: 4/3; border-radius: 20px; }
.skel-btn { height: 48px; width: 100%; border-radius: 12px; margin-top: 12px; }
@media (max-width: 719px) {
  .page-skel-detail { grid-template-columns: 1fr; }
  .page-skel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Buttons: spinner while a form is submitting */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  cursor: progress;
}
.btn-loading > * { visibility: hidden; }
.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid var(--on-brand, currentColor);
  border-right-color: transparent;
  animation: btn-spin 0.7s linear infinite;
}
.btn-loading:not(.btn-p):not(.btn-a)::after { border-color: var(--ink-900); border-right-color: transparent; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .skel::after, .img-skel::after { animation: none; }
  .mu-loader-mark .mu-draw { animation: none; stroke-dashoffset: 0; }
  .page-progress.active { transition: opacity 0.15s; }
  .js-loading-ready main img[src^="/api/"] { transition: none; }
  .btn-loading::after { animation-duration: 1.6s; }
}

/* Plain colours only: no shadows or glows anywhere. Focus is shown with an
   outline, which stays visible for keyboard users. */
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
:where(input, select, textarea, summary, .signup-inst, .upload-zone):focus-visible,
.upload-zone:focus-within, .otp1-wrap:focus-within .otp1-cells i:first-child {
  outline: 2px solid var(--brand); outline-offset: 1px; }
.pkgtabs a[aria-current] { border-bottom: 2px solid var(--brand-text); }
.signup-inst:has(input:checked) { border-color: var(--brand); outline: 1px solid var(--brand); }

/* ------------------------------------------------- components: base colour */
.panel, .card, .cat, .stat, .istats, .empty, .gal, .dbuy, .trust, table.tbl, .steps,
.seller-progress-compact, .upload-choice, dialog, .bal, .plan, .campuspick, .instpop,
.notice, .safety, .report-alert-popup, .trust-bar, .hero-widget, .flash, .skel-card, .checklist {
  background-color: var(--surface); color: var(--ink-900); border-color: var(--line); }
.panel-h, .tbl th, dialog .mf, .instpop-h, .instpop-types, .instpop-s, .instpop-f, .trust .vlist,
.setting-row .src, .gal .main, .gal-strip img, .listing-photo > img { background: var(--surface); }
.widget-header, .eyebrow { color: var(--brand); }

/* Notices and the "never pay outside" band: the band takes the component
   colours; the icon carries the meaning in a single solid colour. */
.notice, .notice.ok, .notice.bad, .notice.info { background: var(--surface); color: var(--ink-900);
  border: 1px solid var(--line); }
.notice svg, .safety svg { color: var(--brand); }
.notice.ok svg { color: var(--success); }
.notice.bad svg { color: var(--danger); }
.notice.info svg { color: var(--ink-900); }
.notice strong, .safety strong { color: var(--ink-900); }
.safety { background: var(--surface); color: var(--ink-700); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }

/* Status badges: outlined, one solid colour each. */
.b-ok, .b-warn, .b-bad, .b-info, .b-none { background: transparent; border-color: currentColor; }
.b-ok { color: var(--success); } .b-warn { color: var(--warn); } .b-bad { color: var(--danger); }
.b-info { color: var(--ink-900); } .b-none { color: var(--ink-500); border-color: var(--line); }
.b-accent { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* Solid orange tiles for icons; black glyph on top. */
.cat .ic, .upload-zone-icon, .kycopt.choice .ic, .kycopt.choice:last-child .ic {
  background: var(--brand); color: var(--on-brand); border: 0; }
.avatar { background: var(--brand); color: var(--on-brand); }
.pill, .instpop .yours, .seller-quick > span { background: transparent; color: var(--brand-text);
  border: 1px solid var(--brand); }

/* Selected options: an orange border, no tinted fill. */
.fbox:has(input:checked), .kycopt:has(input:checked), .signup-inst:has(input:checked),
.choice:has(input:checked), .bal.primary { background: var(--surface); border-color: var(--brand);
  outline: 1px solid var(--brand); }
.steps > div[data-s=now], .steps > li[data-s=now] { background: transparent; color: var(--brand-text); }
.instpop-l a:hover, .instpop-l a:focus-visible, .instpop-l button:hover, .instpop-l button:focus-visible,
.instpop-l [aria-current], .signup-inst:hover, .signup-inst:focus-within { background: var(--hover); }
.campuspick select, .upload-preview { background: var(--surface); }
.field.err input, .field.err select, .field.err textarea, .field.err .upload-zone,
.field.err .otp1-cells i { background: var(--surface); border-color: var(--danger); }

/* ------------------------------------------------------ hover and motion
   Movement and a colour change only; never a glow or shadow. */
.card, .cat, .stat, .bal, .plan, .kycopt, .choice, .fbox, .signup-inst, .upload-choice,
.trust-bar, .hero-widget, .campuspick, .notice, .panel {
  transition: transform .22s cubic-bezier(.2,.7,.2,1), border-color .18s ease, background-color .18s ease; }
a.card:hover, .card:hover, a.cat:hover, .cat:hover, a.stat:hover, .bal:hover, .plan:hover,
.kycopt:hover, .choice:hover, .fbox:hover, .upload-choice:hover {
  transform: translateY(-4px); border-color: var(--brand); }
.card .c-img { overflow: hidden; }
.card .c-img img { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.card:hover .c-img img { transform: scale(1.05); }
.cat .ic { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.cat:hover .ic { transform: rotate(-8deg) scale(1.1); }
.btn:hover { transform: translateY(-1px); }
.btn-p:active, .btn-a:active, .btn-s:active, .btn-d:active { transform: translateY(3px); }
.tick3d { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.hero-live:hover .tick3d { transform: rotate(-10deg) scale(1.12); }
table.tbl tbody tr { transition: background-color .15s ease; }
table.tbl tbody tr:hover { background: var(--hover); }
.catrow a, .chip, .dirfilters a { transition: border-color .15s ease, color .15s ease, transform .15s ease; }
.catrow a:hover, .chip:hover, .dirfilters a:hover { border-color: var(--brand); transform: translateY(-1px); }
.ftr a { transition: color .15s ease, transform .15s ease; }
.ftr a:hover { color: var(--brand-text); transform: translateX(3px); }
.iconbtn { transition: transform .15s ease, color .15s ease; }
.iconbtn:hover { transform: translateY(-1px); color: var(--brand-text); }

/* One entrance per page: components rise in, staggered across a grid. */
@keyframes mu-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mu-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .mu-ready main :is(.card, .cat, .stat, .bal, .panel, .trust-bar, .hero-widget, .plan) {
    animation: mu-rise .5s cubic-bezier(.2,.7,.2,1) backwards; }
  .mu-ready main :is(.card, .cat, .stat, .bal, .plan):nth-child(2) { animation-delay: .04s; }
  .mu-ready main :is(.card, .cat, .stat, .bal, .plan):nth-child(3) { animation-delay: .08s; }
  .mu-ready main :is(.card, .cat, .stat, .bal, .plan):nth-child(4) { animation-delay: .12s; }
  .mu-ready main :is(.card, .cat, .stat, .bal, .plan):nth-child(5) { animation-delay: .16s; }
  .mu-ready main :is(.card, .cat, .stat, .bal, .plan):nth-child(6) { animation-delay: .2s; }
  .mu-ready main :is(.card, .cat, .stat, .bal, .plan):nth-child(n+7) { animation-delay: .24s; }
  .mu-ready :is(.hero-live, .hero h1, .hero .lede, .hero-actions) { animation: mu-rise .55s cubic-bezier(.2,.7,.2,1) backwards; }
  .mu-ready .hero h1 { animation-delay: .05s; } .mu-ready .hero .lede { animation-delay: .1s; } .mu-ready .hero-actions { animation-delay: .15s; }
  dialog[open], .instpop, details[open] > .instpop { animation: mu-pop .18s cubic-bezier(.2,.7,.2,1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------- card frame line
   A thin line drawn just inside each component, in the page's colour:
   white inside black cards (light mode), black inside white cards (dark). */
:root, [data-theme="light"] { --frame: #FFFFFF; }
[data-theme="dark"] { --frame: #0A0A0A; }
:root:not([data-theme="dark"]) :is(.card, .cat, .stat, .panel, .bal, .plan, .trust-bar, .hero-widget,
  .campuspick, dialog, .kycopt, .choice, .fbox, .empty) { --frame: #FFFFFF; }
[data-theme="dark"] :is(.card, .cat, .stat, .panel, .bal, .plan, .trust-bar, .hero-widget,
  .campuspick, dialog, .kycopt, .choice, .fbox, .empty) { --frame: #0A0A0A; }
.card, .cat, .stat, .panel, .bal, .plan, .trust-bar, .hero-widget, .campuspick, dialog, .kycopt,
.choice, .fbox, .empty { outline: 1px solid var(--frame); outline-offset: -6px; }
:is(.fbox, .kycopt, .choice, .bal):is(:has(input:checked), .primary) { outline-color: var(--brand); }
.widget-header, .widget-header svg { color: var(--ink-900); }
/* Listing cards: the photo would cover an outline, so the frame is drawn above it. */
.card { position: relative; outline: 0; }
.card::after { content: ""; position: absolute; inset: 6px; z-index: 3; pointer-events: none;
  border: 1px solid var(--frame); border-radius: calc(var(--r-lg) - 5px); }

/* ------------------------------------------------- full-page preloader
   Shown from the first frame (critical style in the page head) until the page
   and fonts are ready, and again as soon as the visitor leaves the page. */
.mu-boot { transition: opacity .3s ease; }
html.mu-boot-out .mu-boot { opacity: 0; pointer-events: none; }
.mu-boot-in { display: grid; place-items: center; animation: mu-boot-in .35s ease both; }
.mu-boot .mu-loader-mark { width: 104px; }
.mu-boot .mu-loader-mark .mu-ink { opacity: 1; }
.mu-boot .mu-loader-mark .mu-track { opacity: .22; }
@keyframes mu-boot-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
html.mu-booting:not(.mu-boot-out) body { overflow: hidden; }

/* University tiles: plain colours that follow the surface they sit on (a white
   tile on a black card, a black tile on a white card), never a campus tint. */
.mono-tile { background: var(--ink-900); color: var(--surface); border: 0; }
.iband .rule { background: var(--ink-900); }

/* While a box shows an error, its hint steps aside so only one line speaks. */
.field.err .hint { display: none; }

/* Order status tabs (My orders, Orders received) */
.otabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.otabs a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--ink-700); font-size: 14px; font-weight: 600;
  transition: border-color .15s ease, transform .15s ease; }
.otabs a:hover { border-color: var(--brand); transform: translateY(-1px); }
.otabs a[aria-current] { background: var(--ink-900); border-color: var(--ink-900); color: var(--paper); }
.otabs-n { font-size: 12px; font-weight: 600; min-width: 20px; padding: 1px 7px; border-radius: 99px;
  border: 1px solid currentColor; text-align: center; }
.need-action { color: var(--brand-text); }

/* Bank accounts list (seller area) */
.banklist { list-style: none; margin: 0; padding: 0; }
.banklist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 14px 20px; border-top: 1px solid var(--line); }
.banklist li:first-child { border-top: 0; }
.banklist b { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.bankacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-basis: 100%; }
.bankacts form { margin: 0; }

/* Anything marked hidden stays hidden, whatever display a class gives it
   (upload previews, remove buttons, the identity-method blocks). */
[hidden] { display: none !important; }
/* Step labels wrap onto two lines instead of running into the next step. */
.steps .txt { min-width: 0; }
.steps b { white-space: normal; line-height: 1.25; }

/* Messages: inbox and conversation */
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox li + li { border-top: 1px solid var(--line); }
.inbox a { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; color: inherit; text-decoration: none;
  transition: background-color .15s ease; }
.inbox a:hover { background: var(--hover); }
.inbox-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inbox-top { display: flex; align-items: baseline; gap: 8px; }
.inbox-when { margin-left: auto; white-space: nowrap; }
.inbox-listing, .inbox-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-last { color: var(--ink-500); }
.inbox a.unread .inbox-last { color: var(--ink-900); font-weight: 600; }
.inbox-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--brand);
  color: var(--on-brand); font: 700 12px/22px var(--sans); text-align: center; align-self: center; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-about { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-safety { display: flex; gap: 8px; align-items: flex-start; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.chat { list-style: none; margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 10px;
  max-height: 58vh; min-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
.bubble { max-width: min(78%, 520px); padding: 10px 14px; border-radius: 16px; display: flex; flex-direction: column; gap: 4px;
  animation: mu-bubble .18s ease-out both; }
.bubble.mine { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 4px; }
.bubble.theirs { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.bubble-when { opacity: .7; }
.bubble.mine .bubble-when { align-self: flex-end; }
.chat-empty { align-self: center; margin: auto 0; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 160px; resize: vertical; }
.chat-form .chat-note, .chat-form > div:first-child { flex-basis: 100%; }
.chat-note { color: var(--ink-500); }
@keyframes mu-bubble { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chat-form textarea { background-color: var(--sunken); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink-900); font: inherit; padding: 12px 14px; line-height: 1.4; }
.chat-form textarea::placeholder { color: var(--ink-400); opacity: 1; }
.chat-form textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 1px; }
.chat-form .btn { height: 48px; }

/* ---- Seller site ---- */
.logo .seller-tag {
  margin-left: 8px; padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--brand); color: var(--brand);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1; align-self: center;
}
.hdr-seller .hrow { gap: 12px; }
.seller-land {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px;
}
.seller-land h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -.02em; max-width: 14ch; }
.seller-land .prose { margin-top: 16px; max-width: 52ch; }
.seller-land-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.seller-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 18px; }
.seller-steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 2px; }
.seller-steps li::before {
  content: counter(step); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
}
@media (max-width: 760px) {
  .seller-land { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; padding-bottom: 28px; }
}
