/* =========================================================
   UM CONNECTS — Design System v3 · Editorial White Edition
   Pure-white surfaces · indigo→violet→rose contrast gradients
   Soft amber accents · refined micro-typography
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- 2. Design Tokens ---------- */
:root {
  /* Surface — pure white system */
  --white:           #FFFFFF;
  --paper:           #FDFDFE;        /* faintly tinted off-white panel */
  --paper-2:         #F8F9FC;        /* subtle elevation surface */
  --paper-3:         #F2F4FA;        /* hover / strip */
  --tint:            #EEF1F8;        /* tint for filled chips */

  /* Ink — deep, sophisticated navy */
  --ink:             #0B1E3F;        /* primary text */
  --ink-2:           #2D3A5C;        /* secondary text */
  --ink-3:           #5A6A8A;        /* body muted */
  --muted:           #8A95B0;        /* labels / meta */
  --subtle:          #B8C1D5;        /* placeholders */
  --hairline:        #E5E9F2;        /* 1px dividers */
  --border:          #DDE3EF;        /* subtle borders */
  --border-strong:   #C5CDDD;        /* hover borders */

  /* Accent — indigo → violet → rose gradient family */
  --accent-50:       #EEF2FF;
  --accent-100:      #E0E7FF;
  --accent-200:      #C7D2FE;
  --accent-300:      #A5B4FC;
  --accent-400:      #818CF8;
  --accent-500:      #6366F1;        /* primary brand action */
  --accent-600:      #4F46E5;
  --accent-700:      #4338CA;
  --accent-violet:   #8B5CF6;
  --accent-rose:     #EC4899;
  --accent-rose-soft:#F9A8D4;

  /* Warm — amber/gold for premium accents */
  --warm-50:         #FFFBEB;
  --warm-100:        #FEF3C7;
  --warm-300:        #FCD34D;
  --warm-400:        #FBBF24;
  --warm-500:        #F59E0B;
  --warm-600:        #D97706;
  --warm-terra:      #DC2626;

  /* Semantic */
  --success:         #059669;
  --success-soft:    #D1FAE5;
  --danger:          #DC2626;
  --danger-soft:     #FEE2E2;
  --info:            #0EA5E9;
  --info-soft:       #DBEAFE;
  --warn:            #F59E0B;
  --warn-soft:       #FEF3C7;

  /* Gradients (the heart of the new visual language) */
  --grad-primary:    linear-gradient(135deg, #6366F1 0%, #8B5CF6 45%, #EC4899 100%);
  --grad-primary-soft: linear-gradient(135deg, rgba(99,102,241,0.10) 0%, rgba(139,92,246,0.08) 50%, rgba(236,72,153,0.10) 100%);
  --grad-warm:       linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #DC2626 100%);
  --grad-warm-soft:  linear-gradient(135deg, rgba(251,191,36,0.10) 0%, rgba(245,158,11,0.08) 50%, rgba(220,38,38,0.08) 100%);
  --grad-ink:        linear-gradient(135deg, #0B1E3F 0%, #1E2E55 50%, #4F46E5 100%);
  --grad-mesh:
    radial-gradient(at 18% 14%, rgba(99,102,241,0.08) 0%, transparent 38%),
    radial-gradient(at 86% 22%, rgba(236,72,153,0.07) 0%, transparent 42%),
    radial-gradient(at 28% 88%, rgba(245,158,11,0.06) 0%, transparent 36%),
    radial-gradient(at 92% 90%, rgba(139,92,246,0.07) 0%, transparent 40%);

  /* Typography */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-sans:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  /* Radius scale */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Shadows — refined, layered, soft */
  --shadow-xs:  0 1px 2px rgba(11, 30, 63, 0.04);
  --shadow-sm:  0 2px 6px rgba(11, 30, 63, 0.05), 0 1px 2px rgba(11, 30, 63, 0.03);
  --shadow-md:  0 8px 24px rgba(11, 30, 63, 0.06), 0 2px 6px rgba(11, 30, 63, 0.04);
  --shadow-lg:  0 22px 50px rgba(11, 30, 63, 0.08), 0 6px 14px rgba(11, 30, 63, 0.05);
  --shadow-xl:  0 36px 80px rgba(11, 30, 63, 0.10), 0 10px 24px rgba(11, 30, 63, 0.06);
  --shadow-glow: 0 0 0 4px rgba(99, 102, 241, 0.10);
  --shadow-glow-rose: 0 12px 32px rgba(236, 72, 153, 0.18);

  /* Layout */
  --container: 1240px;
  --gutter: 24px;
  --nav-h: 70px;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 140ms;
  --t-base: 220ms;
  --t-slow: 380ms;
}

/* ---------- 3. Back-compat aliases (legacy variable names used in HTML inline styles) ---------- */
:root {
  --um-navy: var(--ink);
  --um-navy-deep: var(--accent-700);
  --um-navy-soft: var(--accent-300);
  --um-gold: var(--warm-500);
  --um-gold-light: var(--warm-300);
  --um-gold-deep: var(--warm-600);
  --cream: var(--paper);
  --cream-deep: var(--paper-2);
  --border-light: var(--hairline);
  --bg-tint: var(--paper-2);
}

/* ---------- 4. Base typography ---------- */
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  font-weight: 400;
  /* Subtle global mesh — adds depth without dominating */
  background-image: var(--grad-mesh);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 400; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { color: var(--ink-3); }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--tint); padding: 1px 6px; border-radius: 4px; color: var(--ink-2); }

.serif { font-family: var(--font-display); }
.italic { font-style: italic; }

/* Gradient text utility */
.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text-warm {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 5. Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
}

/* Decorative gradient strip (for section dividers) */
.grad-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-300) 50%, transparent 100%);
  border: none;
  margin: 40px 0;
}

/* ---------- 6. Brand mark ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--grad-primary);
  color: white;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 11px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(99,102,241,0.30);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.30) 0%, transparent 50%);
}
.brand-name { font-weight: 500; }
.brand-name::first-letter { font-style: italic; }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
  white-space: nowrap;
  letter-spacing: -0.005em;
  position: relative;
  isolation: isolate;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.38), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--accent-500);
  color: var(--accent-600);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  padding: 8px 14px;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--paper-3);
  color: var(--ink);
}

.btn-gold {
  background: var(--grad-warm);
  color: white;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.30), inset 0 1px 0 rgba(255,255,255,0.20);
}
.btn-gold:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.40);
}

.btn-danger {
  background: var(--danger);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.22);
}
.btn-danger:hover:not(:disabled) { background: #B91C1C; transform: translateY(-1px); }

.btn-buy {
  background: var(--grad-primary);
  color: white;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.32);
}
.btn-buy:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(99, 102, 241, 0.42); }

.btn-cart {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-cart:hover:not(:disabled) { border-color: var(--accent-500); color: var(--accent-600); }
.btn-cart.in-cart { background: var(--success-soft); color: var(--success); border-color: rgba(5,150,105,0.30); }

.btn-chat {
  background: var(--warm-50);
  color: var(--warm-600);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
}
.btn-chat:hover:not(:disabled) { background: var(--warm-100); border-color: rgba(245, 158, 11, 0.50); }

.btn-sm { padding: 7px 14px; font-size: 0.84rem; border-radius: var(--r-sm); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--r-md); }
.btn-block { width: 100%; }

/* ---------- 8. Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
  height: var(--nav-h);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
  border-radius: 1px;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Icon buttons in nav */
.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--ink-2);
  transition: all var(--t-fast);
  background: transparent;
}
.icon-btn:hover {
  background: var(--paper-2);
  color: var(--accent-600);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.active { background: var(--accent-50); color: var(--accent-600); }

.badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  background: var(--grad-primary);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 9px;
  border: 2px solid var(--white);
  letter-spacing: 0;
  line-height: 1;
}
.badge-dot-gold { background: var(--grad-warm); }
.badge-dot-red { background: var(--danger); }

/* User dropdown */
.user-menu { position: relative; }
.user-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: white;
  font-size: 0.78rem;
  background: var(--grad-primary);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  overflow: hidden;
}
.user-avatar-btn:hover { transform: scale(1.06); box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 50;
  animation: dropdown-in 200ms var(--ease-out) both;
}
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.user-dropdown[hidden] { display: none; }
.user-dropdown-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 12px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--hairline);
}
.user-avatar-lg {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  overflow: hidden;
}
.user-name { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.user-sub { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

.dropdown-item-link, .user-dropdown-danger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  color: var(--ink-2);
  font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
  width: 100%;
  text-align: left;
}
.dropdown-item-link:hover { background: var(--paper-2); color: var(--ink); }
.dropdown-item-link.active { background: var(--accent-50); color: var(--accent-700); }
.dropdown-item-link.active svg { stroke: var(--accent-600); }
.dropdown-count {
  margin-left: auto;
  font-size: 0.7rem;
  background: var(--tint);
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-weight: 700;
  color: var(--ink-2);
}
.dropdown-count-gold { background: var(--warm-100); color: var(--warm-600); }
.dropdown-count-red  { background: var(--danger-soft); color: var(--danger); }
.user-dropdown-sep { height: 1px; background: var(--hairline); margin: 6px 4px; }
.user-dropdown-danger { color: var(--danger); }
.user-dropdown-danger:hover { background: var(--danger-soft); }

/* Switch Account */
.switch-account-section { padding: 4px 4px 0; }
.switch-account-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 10px 6px;
}
.switch-account-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  background: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: background 0.15s;
}
.switch-account-item:hover { background: var(--paper-2); }
.switch-account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--hairline);
}
.switch-account-info { flex: 1; min-width: 0; }
.switch-account-name {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.switch-account-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-3);
}
.switch-account-arrow { stroke: var(--ink-3); flex-shrink: 0; }
.switch-add-account {
  font-size: 0.82rem;
  color: var(--accent-600);
  gap: 8px;
  margin: 2px 4px;
}
.switch-add-account svg { stroke: var(--accent-600); }
.switch-add-account:hover { background: var(--accent-50); color: var(--accent-700); }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(236,72,153,0.10) 0%, transparent 38%),
    radial-gradient(circle at 12% 78%, rgba(99,102,241,0.10) 0%, transparent 42%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-primary);
  animation: pulse-dot 2.2s var(--ease-in-out) infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(99,102,241,0); }
}

.hero h1 .accent {
  font-style: italic;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 22px 0 32px;
  max-width: 540px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero tiles (image grid) */
.hero-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
}
.hero-tile {
  position: relative;
  aspect-ratio: 1 / 1.15;
  background: var(--paper);
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.hero-tile:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: var(--shadow-lg); }
.hero-tile:nth-child(2) { transform: translateY(-30px); }
.hero-tile:nth-child(3) { transform: translateY(30px); }
.hero-tile:nth-child(4) { transform: translateY(0); }
@media (max-width: 920px) {
  .hero-tile:nth-child(n) { transform: none; }
}
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  color: var(--ink);
  letter-spacing: 0.04em;
}
.hero-tile-price {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 6px 12px;
  background: var(--grad-primary);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  letter-spacing: -0.01em;
}

/* ---------- 10. Stats ---------- */
.stats {
  padding: 36px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ---------- 11. Section heading ---------- */
.section-title { text-align: center; margin-bottom: 56px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-title h2 { margin: 16px 0 12px; }
.section-title p { font-size: 1.02rem; color: var(--ink-3); }

/* ---------- 12. Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base), border-color var(--t-base);
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary-soft);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-200);
}
.feature-card:hover::before { opacity: 1; }
.feature-card > * { position: relative; z-index: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--accent-50);
  color: var(--accent-600);
  transition: transform var(--t-base);
}
.feature-card:hover .feature-icon { transform: scale(1.06) rotate(-3deg); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 8px; color: var(--ink); font-size: 1.15rem; }
.feature-card p { font-size: 0.9rem; color: var(--ink-3); line-height: 1.6; }

/* ---------- 13. Footer ---------- */
.footer {
  padding: 72px 0 36px;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer-tag {
  font-size: 0.88rem;
  color: var(--ink-3);
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}
.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--ink-3);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--accent-600); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.umc-footer {
  padding: 28px var(--gutter);
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  background: var(--white);
}
.umc-footer .heart { color: var(--accent-rose); }
.umc-footer-sep { margin: 0 8px; opacity: 0.5; }

/* ---------- 14. Pills / Badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--ink-2);
  border: 1px solid var(--hairline);
  letter-spacing: 0.01em;
}
.pill-navy { background: var(--accent-50); color: var(--accent-700); border-color: var(--accent-100); }
.pill-gold {
  background: var(--warm-50);
  color: var(--warm-600);
  border-color: var(--warm-100);
}
.pill-success { background: var(--success-soft); color: var(--success); border-color: rgba(5,150,105,0.20); }
.pill-outline { background: var(--white); color: var(--ink-2); border-color: var(--border); }
.pill-grad {
  background: var(--grad-primary);
  color: white;
  border: none;
  font-weight: 700;
}

/* ---------- 15. Listing Grid + Card ---------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 18px;
}
@media (max-width: 600px) { .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.listing-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-200);
}
.listing-card.is-sold { opacity: 0.65; }

.listing-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  overflow: hidden;
}
.listing-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.listing-card:hover .listing-card-img img { transform: scale(1.05); }

.listing-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: all var(--t-fast);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(11,30,63,0.10);
}
.listing-fav:hover { transform: scale(1.10); color: var(--accent-rose); }
.listing-fav.active { color: var(--accent-rose); background: var(--white); }
.listing-fav.active svg { animation: heart-pop 360ms var(--ease-out); }
.listing-fav svg { width: 17px; height: 17px; }
@keyframes heart-pop {
  0%   { transform: scale(0.6); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.listing-faculty-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--r-pill);
  z-index: 2;
}

.sold-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  padding: 8px 22px;
  background: rgba(11, 30, 63, 0.85);
  color: white;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.84rem;
  border-radius: var(--r-sm);
  z-index: 2;
}

.listing-body { padding: 14px 14px 16px; }
.listing-price {
  font-family: var(--font-display);
  font-size: 1.20rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.listing-title {
  font-size: 0.9rem;
  color: var(--ink-2);
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.4em;
}
.listing-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.74rem;
  color: var(--muted);
}
.listing-condition { font-weight: 600; color: var(--ink-3); }
.listing-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--subtle);
  border-radius: 50%;
}

/* Rating badge on listing card image (bottom-left) */
.listing-rating-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 3px 8px;
  background: rgba(11, 30, 63, 0.78);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  animation: fadeUp 300ms ease both;
}
.listing-rating-count {
  font-weight: 400;
  opacity: 0.8;
  font-size: 0.65rem;
}

/* Compact-cards toggle */
.compact-cards .listing-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.compact-cards .listing-body { padding: 10px 12px 12px; }
.compact-cards .listing-price { font-size: 1.05rem; }
.compact-cards .listing-title { font-size: 0.82rem; min-height: 2.2em; }

/* ---------- 16. Browse page toolbar ---------- */
.browse-shell { background: var(--paper-2); min-height: 100vh; }
.browse-main { padding: 32px 0 80px; }

.browse-toolbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 360px;
  max-width: 100%;
  padding: 9px 14px;
  background: var(--paper-2);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  transition: all var(--t-fast);
}
.search-bar:focus-within {
  background: var(--white);
  border-color: var(--accent-300);
  box-shadow: var(--shadow-glow);
}
.search-bar svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.search-bar input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.search-bar input::placeholder { color: var(--muted); }

.cat-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-chip {
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--white);
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  white-space: nowrap;
  transition: all var(--t-fast);
}
.cat-chip:hover { border-color: var(--accent-300); color: var(--accent-700); transform: translateY(-1px); }
.cat-chip.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
}
.label-inline { font-size: 0.82rem; font-weight: 600; color: var(--muted); }

.select, .input, .textarea {
  padding: 9px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: var(--ink);
  font-family: var(--font-sans);
  transition: all var(--t-fast);
  font-weight: 500;
}
.select:focus, .input:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: var(--shadow-glow);
}
.select { cursor: pointer; padding-right: 32px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%235A6A8A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
.textarea { resize: vertical; line-height: 1.55; }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
}
.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 12px;
  background: var(--accent-50);
  color: var(--accent-700);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--r-pill);
}
.active-filter button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(99,102,241,0.18);
  color: var(--accent-700);
  font-size: 0.9rem;
  line-height: 1;
}
.active-filter button:hover { background: var(--accent-200); }
.clear-all-btn {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: underline;
  padding: 4px 8px;
}
.clear-all-btn:hover { color: var(--ink); }

.browse-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.browse-count {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.recent-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.recent-strip::-webkit-scrollbar { display: none; }
.recent-strip .listing-card { flex: 0 0 200px; }

.grid-empty {
  grid-column: 1 / -1;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}
.grid-empty h3 { color: var(--ink); margin-bottom: 6px; }

.empty-state {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 60px 24px;
  text-align: center;
}
.empty-state svg { margin: 0 auto 14px; opacity: 0.55; color: var(--muted); }
.empty-state h3 { color: var(--ink); margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin-bottom: 14px; font-size: 0.9rem; }

/* ---------- 17. Forms ---------- */
.field { margin-bottom: 16px; }
.label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
  letter-spacing: 0.005em;
}
.help {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 5px;
}
.input, .textarea, .select { width: 100%; }

/* ---------- 18. Sell page ---------- */
.sell-shell { background: var(--paper-2); min-height: 100vh; }
.sell-main { padding: 36px 0 80px; }
.sell-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 880px) { .sell-grid { grid-template-columns: 1fr; } }
.sell-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.sell-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.sell-card .sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }

.upload-box {
  display: block;
  padding: 30px 20px;
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
  background: var(--paper-2);
}
.upload-box:hover { border-color: var(--accent-500); background: var(--accent-50); }
.upload-box svg { width: 36px; height: 36px; margin: 0 auto 10px; color: var(--accent-600); }
.upload-box strong { display: block; font-size: 0.95rem; color: var(--ink); margin-bottom: 4px; }
.upload-box span { font-size: 0.78rem; color: var(--muted); }

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.upload-preview {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.upload-preview:hover { border-color: var(--accent-500); }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview.is-cover { border-color: var(--accent-600); border-width: 3px; }
.upload-preview-cover-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: var(--grad-primary);
  color: white;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
}
.upload-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: rgba(11, 30, 63, 0.78);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  line-height: 1;
}
.upload-preview-remove:hover { background: var(--danger); }

.tip-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 20px;
}
.tip-card h4 { margin-bottom: 12px; font-family: var(--font-sans); font-size: 0.92rem; font-weight: 700; }
.tip-list { font-size: 0.85rem; color: var(--ink-3); }
.tip-list li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 9px;
  line-height: 1.5;
}
.tip-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-primary);
  opacity: 0.85;
}

/* ---------- 19. Profile page ---------- */
.profile-shell { padding: 0 0 80px; min-height: 100vh; }
.profile-main { padding-top: 32px; }

.profile-head {
  position: relative;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
}
.profile-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary-soft);
  height: 140px;
  pointer-events: none;
}
.profile-head > * { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .profile-head { flex-direction: column; align-items: center; text-align: center; padding: 28px 20px; }
}

.profile-avatar-xl {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  border: 5px solid var(--white);
  box-shadow: 0 12px 28px rgba(99,102,241,0.30);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.profile-avatar-xl img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-xl:hover { transform: scale(1.02); }
.profile-avatar-xl::after {
  content: '✏️';
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  background: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.profile-avatar-xl:hover::after { opacity: 1; }

.profile-head-info { flex: 1; padding-top: 8px; }
.profile-head-info h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 4px; }
.profile-handle { font-size: 0.92rem; color: var(--accent-600); font-weight: 600; margin-bottom: 8px; }

.profile-stats {
  display: flex;
  gap: 28px;
  margin-top: 18px;
  flex-wrap: wrap;
}
@media (max-width: 720px) { .profile-stats { justify-content: center; gap: 18px; } }
.profile-stat-num {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.profile-stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab {
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  white-space: nowrap;
  transition: color var(--t-fast);
}
.profile-tab:hover { color: var(--ink-2); }
.profile-tab.active { color: var(--ink); }
.profile-tab.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2.5px;
  background: var(--grad-primary);
  border-radius: 1.5px;
}

.profile-pane { display: none; animation: fade-up 320ms var(--ease-out) both; }
.profile-pane.active { display: block; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Account pane — elaborate */
.acct-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 880px) { .acct-grid { grid-template-columns: 1fr; } }

.acct-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.acct-card h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.avatar-uploader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 0 4px;
}
.avatar-uploader-preview {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 28px rgba(99,102,241,0.28);
}
.avatar-uploader-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-uploader-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Trust score widget */
.trust-card {
  background: linear-gradient(135deg, var(--ink) 0%, #1E2E55 100%);
  color: white;
  border-radius: var(--r-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.trust-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 110% -20%, rgba(236, 72, 153, 0.30) 0%, transparent 50%),
    radial-gradient(circle at -10% 120%, rgba(99, 102, 241, 0.40) 0%, transparent 50%);
}
.trust-card > * { position: relative; z-index: 1; }
.trust-card h3 {
  color: rgba(255,255,255,0.70);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 6px;
}
.trust-score {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FCD34D 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust-meter {
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  margin: 14px 0 8px;
  overflow: hidden;
}
.trust-meter-fill {
  height: 100%;
  background: var(--grad-warm);
  border-radius: 3px;
  transition: width 800ms var(--ease-out);
}
.trust-card p { color: rgba(255,255,255,0.75); font-size: 0.84rem; }
.trust-badges { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.trust-badge {
  padding: 3px 9px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Settings pane */
.settings-list { display: flex; flex-direction: column; gap: 18px; }
.settings-row {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  transition: border-color var(--t-fast);
}
.settings-row:hover { border-color: var(--border); }
.settings-row-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.settings-row-info p { font-size: 0.84rem; color: var(--muted); max-width: 460px; }

/* Accent picker */
.accent-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.accent-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform var(--t-fast), border-color var(--t-fast);
  position: relative;
}
.accent-swatch:hover { transform: scale(1.10); }
.accent-swatch.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--white) inset;
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--t-fast);
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform var(--t-base) var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.toggle.on { background: var(--accent-500); }
.toggle.on::after { transform: translateX(20px); }

/* Theme picker mini cards */
.theme-picker { display: flex; gap: 10px; }
.theme-pick {
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-pick:hover { border-color: var(--accent-300); }
.theme-pick.active { background: var(--accent-50); border-color: var(--accent-500); color: var(--accent-700); }

/* Listings toolbar inside profile */
.listings-toolbar, .favorites-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 20. Cart page ---------- */
.cart-shell { background: var(--paper-2); min-height: 100vh; }
.cart-main { padding: 36px 0 60px; }

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
}
.cart-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cart-head p { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 920px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-seller-group {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.cart-seller-group:hover { box-shadow: var(--shadow-sm); border-color: var(--border); }

.cart-seller-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
  gap: 10px;
}
.cart-seller-head-info { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.cart-seller-head-info strong { color: var(--ink); }
.cart-seller-head-info span { color: var(--muted); font-size: 0.82rem; }
.cart-seller-head-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 14px;
  padding: 16px 18px;
  align-items: start;
  transition: background var(--t-fast);
}
.cart-item:hover { background: var(--paper-2); }
.cart-item.is-sold { opacity: 0.55; }
.cart-item-img {
  width: 100px;
  height: 100px;
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--paper-2);
}
.cart-item-title { display: block; font-size: 0.95rem; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 4px; }
.cart-item-title:hover { color: var(--accent-600); }
.cart-item-price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--accent-700); margin-bottom: 4px; }
.cart-item-meta { display: flex; gap: 6px; align-items: center; font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; }
.cart-item-meta .dot { width: 3px; height: 3px; background: var(--subtle); border-radius: 50%; }
.cart-item-note {
  margin-top: 8px;
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: var(--r-sm);
  padding: 7px 11px;
  font-size: 0.83rem;
  resize: vertical;
  background: var(--paper);
  font-family: var(--font-sans);
  color: var(--ink-2);
}
.cart-item-note:focus { outline: none; border-style: solid; border-color: var(--accent-500); background: var(--white); }
.cart-item-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.cart-item-save-later {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--accent-600);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--accent-100);
  background: var(--accent-50);
  transition: all var(--t-fast);
}
.cart-item-save-later:hover { background: var(--accent-100); border-color: var(--accent-200); }
.cart-item-remove {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: all var(--t-fast);
}
.cart-item-remove:hover { background: var(--danger-soft); color: var(--danger); }

/* Cart summary */
.cart-summary {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.cart-summary h3 { font-size: 1.05rem; margin-bottom: 16px; }
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-2);
  padding: 7px 0;
}
.cart-summary-row.total {
  border-top: 1px solid var(--hairline);
  margin-top: 8px;
  padding-top: 14px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}
.cart-summary-row.total .num {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cart-summary-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--paper-2);
  border-radius: var(--r-sm);
  line-height: 1.5;
}

.saved-section {
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px 22px 22px;
}
.saved-section h3 { font-size: 1.05rem; margin-bottom: 4px; }

/* ---------- 21. Toast + Modal ---------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--ink);
  color: white;
  border-radius: var(--r-md);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 220ms, transform 220ms var(--ease-out);
  pointer-events: auto;
  max-width: 380px;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast-success { background: linear-gradient(135deg, #059669 0%, #10B981 100%); }
.toast-error { background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%); }
.toast-info { background: var(--grad-ink); }
.toast-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.20);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 30, 63, 0);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: background 220ms;
  backdrop-filter: blur(0px);
}
.modal-overlay.show { background: rgba(11, 30, 63, 0.50); backdrop-filter: blur(6px); }
.modal {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 220ms var(--ease-out), opacity 220ms;
}
.modal-overlay.show .modal { transform: scale(1); opacity: 1; }
.modal-title { margin-bottom: 10px; font-size: 1.3rem; }
.modal-body { color: var(--ink-3); font-size: 0.93rem; line-height: 1.6; margin-bottom: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- 22. Avatar (generic) ---------- */
.avatar {
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}
.avatar-img { object-fit: cover; }
.avatar-initials { background: var(--accent-500); }

/* ---------- 23. Messages page ---------- */
.msg-shell { background: var(--paper-2); min-height: 100vh; }
.msg-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - var(--nav-h));
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 720px) {
  .msg-layout { grid-template-columns: 1fr; }
  .msg-layout .msg-thread { display: none; }
  .msg-layout.has-active .msg-sidebar { display: none; }
  .msg-layout.has-active .msg-thread { display: flex; }
}

/* Sidebar */
.msg-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-light);
  overflow: hidden;
}
.msg-sidebar-head {
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--border-light);
}
.msg-sidebar-head h2 { margin: 0 0 2px; font-size: 1.25rem; }
.msg-sidebar-head p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.msg-sidebar-search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}
.msg-sidebar-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  background: var(--bg-tint);
  outline: none;
  box-sizing: border-box;
}
.msg-sidebar-search input:focus { border-color: var(--accent-500); background: var(--white); }
.msg-sidebar-filters {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.msg-sidebar-filters::-webkit-scrollbar { display: none; }
.msg-filter-chip {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.msg-filter-chip.active {
  background: var(--accent-500);
  border-color: var(--accent-500);
  color: white;
}
.msg-sidebar-actions {
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.msg-sidebar-actions button {
  font-size: 0.78rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}
.msg-sidebar-actions button:hover { color: var(--accent-600); }
.msg-list {
  flex: 1;
  overflow-y: auto;
}
.msg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.12s;
}
.msg-item:hover { background: var(--bg-tint); }
.msg-item.active { background: var(--accent-50); }
.msg-item.unread .msg-item-name { font-weight: 700; color: var(--ink); }
.msg-item.unread .msg-item-preview { font-weight: 600; color: var(--ink-2); }
.msg-item.archived { opacity: 0.6; }
.msg-item-body { flex: 1; min-width: 0; }
.msg-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 2px;
}
.msg-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-item-time { font-size: 0.72rem; color: var(--muted); flex-shrink: 0; }
.msg-item-listing {
  font-size: 0.75rem;
  color: var(--accent-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.msg-item-preview {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Thread panel */
.msg-thread {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.msg-thread-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
  gap: 10px;
}
.msg-thread-empty h3 { margin: 0; color: var(--ink-2); }
.msg-thread-empty p { margin: 0; font-size: 0.88rem; }
.msg-thread-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  background: var(--white);
}
.back-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-2);
  cursor: pointer;
  flex-shrink: 0;
}
@media (max-width: 720px) { .back-btn { display: flex; } }
.msg-thread-listing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-tint);
  border-radius: var(--r-md);
  text-decoration: none;
  flex-shrink: 0;
  max-width: 200px;
}
.msg-thread-listing img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.msg-thread-listing-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.msg-thread-listing-info strong {
  font-size: 0.78rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-thread-listing-info span {
  font-size: 0.72rem;
  color: var(--accent-600);
}
.msg-thread-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-2);
  cursor: pointer;
  flex-shrink: 0;
}
.msg-thread-menu-btn:hover { background: var(--bg-tint); }
.msg-thread-menu {
  position: absolute;
  right: 16px;
  top: calc(var(--nav-h) + 60px);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  z-index: 100;
  overflow: hidden;
  min-width: 180px;
}
.msg-thread-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  font-size: 0.88rem;
  color: var(--ink-2);
  cursor: pointer;
}
.msg-thread-menu button:hover { background: var(--bg-tint); color: var(--ink); }
.msg-thread-menu button.danger, .msg-thread-menu button.andger { color: var(--danger); }
.msg-thread-menu button.danger:hover, .msg-thread-menu button.andger:hover { background: var(--danger-soft); }
.msg-bubbles {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.msg-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
}
.msg-bubble.mine {
  align-self: flex-end;
  background: var(--accent-500);
  color: white;
  border-bottom-right-radius: 4px;
}
.msg-bubble.theirs {
  align-self: flex-start;
  background: var(--bg-tint);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.msg-bubble-time {
  font-size: 0.68rem;
  margin-top: 4px;
  opacity: 0.7;
  text-align: right;
}
.msg-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg-tint);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}
.msg-typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-bounce 1.2s infinite;
}
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}
.msg-quick-replies {
  display: flex;
  gap: 6px;
  padding: 8px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.msg-quick-replies::-webkit-scrollbar { display: none; }
.msg-quick-reply {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 0.78rem;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s;
}
.msg-quick-reply:hover {
  border-color: var(--accent-500);
  color: var(--accent-600);
  background: var(--accent-50);
}
.msg-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}
.msg-input-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  outline: none;
  background: var(--bg-tint);
}
.msg-input-row input:focus {
  border-color: var(--accent-500);
  background: var(--white);
}
.msg-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-500);
  color: white;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.12s;
}
.msg-send:hover { background: var(--accent-600); transform: scale(1.06); }

/* ---------- 23b. Cart page missing classes ---------- */
.cart-subtitle { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.cart-seller-meta { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 1px; }
.cart-summary-title { font-weight: 700; font-size: 1rem; margin-bottom: 14px; color: var(--ink); }
.cart-summary-row-muted { color: var(--muted); font-size: 0.85rem; }
.cart-summary-divider { height: 1px; background: var(--border-light); margin: 12px 0; }
.cart-summary-hint {
  margin-top: 14px;
  padding: 12px;
  background: var(--bg-tint);
  border-radius: var(--r-md);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}
.cart-item-body { flex: 1; min-width: 0; }
.saved-section-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.saved-item { border-bottom: 1px solid var(--border-light); }
.cart-empty { padding: 60px 20px; }
.price-change-note { font-size: 0.75rem; color: var(--danger); margin-left: 6px; }

/* ---------- 24. Mobile tabbar ---------- */
.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--hairline);
  z-index: 50;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.mobile-tabbar-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 480px;
  margin: 0 auto;
}
.mobile-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--t-fast);
}
.mobile-tabbar a.active { color: var(--accent-600); }
.mobile-tabbar a svg { width: 20px; height: 20px; }
.mobile-tabbar .sell-tab {
  background: var(--grad-primary);
  color: white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin: -8px auto 0;
  padding: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(99,102,241,0.45);
}
.mobile-tabbar .sell-tab svg { width: 18px; height: 18px; color: white; }
.mobile-tabbar .sell-tab span { display: none; }
@media (max-width: 720px) { .mobile-tabbar { display: block; } body { padding-bottom: 70px; } }

/* ---------- 25. Misc utilities ---------- */
.fade-in { animation: fade-up 480ms var(--ease-out) both; }
.delay-1 { animation-delay: 70ms; }
.delay-2 { animation-delay: 140ms; }
.delay-3 { animation-delay: 210ms; }

/* Scrollbar polish */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; border: 2px solid var(--white); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* Selection */
::selection { background: var(--accent-200); color: var(--ink); }

/* ---------- 26. Star/rating utilities ---------- */
.star-icon { display: inline-block; vertical-align: middle; }
.star-filled { color: var(--warm-500); }
.star-empty  { color: var(--border); }

/* ---------- 27. Accent overrides (data-accent on <html>) ---------- */
html[data-accent="gold"]   { --accent-500: #F59E0B; --accent-600: #D97706; --accent-700: #B45309; --accent-50: #FFFBEB; --accent-100: #FEF3C7; --accent-200: #FDE68A; --accent-300: #FCD34D; --grad-primary: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #DC2626 100%); }
html[data-accent="green"]  { --accent-500: #10B981; --accent-600: #059669; --accent-700: #047857; --accent-50: #ECFDF5; --accent-100: #D1FAE5; --accent-200: #A7F3D0; --accent-300: #6EE7B7; --grad-primary: linear-gradient(135deg, #34D399 0%, #10B981 50%, #0891B2 100%); }
html[data-accent="purple"] { --accent-500: #A855F7; --accent-600: #9333EA; --accent-700: #7E22CE; --accent-50: #FAF5FF; --accent-100: #F3E8FF; --accent-200: #E9D5FF; --accent-300: #D8B4FE; --grad-primary: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 50%, #EC4899 100%); }
html[data-accent="red"]    { --accent-500: #EF4444; --accent-600: #DC2626; --accent-700: #B91C1C; --accent-50: #FEF2F2; --accent-100: #FEE2E2; --accent-200: #FECACA; --accent-300: #FCA5A5; --grad-primary: linear-gradient(135deg, #F87171 0%, #EF4444 50%, #DC2626 100%); }

/* ---------- 28. Print ---------- */
@media print {
  .nav, .mobile-tabbar, .toast-container, .modal-overlay { display: none !important; }
  body { background: white; }
}