/* ============================================================
   FinVault — light, refined finance theme. Zero external assets.
   ============================================================ */
:root {
  /* surfaces & ink */
  --bg: #f5f8fd;
  --surface: #ffffff;
  --surface-2: #f2f6fc;
  --ink: #0f1a2e;
  --ink-2: #3b485f;
  --ink-3: #6a7791;
  --ink-4: #93a0b8;
  --line: #e3e9f3;
  --line-2: #eef2f9;

  /* brand accents */
  --brand: #0ea371;          /* emerald */
  --brand-ink: #0a8a60;
  --brand-tint: #e6f7f0;
  --indigo: #4c6ef5;
  --indigo-ink: #3a55d9;
  --indigo-tint: #eaeefe;
  --amber: #b46b12;
  --amber-tint: #fbf0dd;
  --rose: #e0455c;
  --rose-tint: #fdeaed;

  /* geometry */
  --r-sm: 9px;
  --r: 13px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* shadows (layered, soft) */
  --sh-sm: 0 1px 2px rgba(16, 26, 46, 0.06), 0 1px 3px rgba(16, 26, 46, 0.05);
  --sh-md: 0 4px 10px rgba(16, 26, 46, 0.07), 0 2px 4px rgba(16, 26, 46, 0.05);
  --sh-lg: 0 14px 30px rgba(16, 26, 46, 0.12), 0 6px 12px rgba(16, 26, 46, 0.06);
  --sh-xl: 0 28px 60px rgba(16, 26, 46, 0.20);

  --wrap: 1180px;
  --ring: 0 0 0 3px rgba(76, 110, 245, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { color: var(--ink); }
::selection { background: rgba(76, 110, 245, 0.18); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
button { font-family: inherit; }

/* ============================================================
   AUTH SCREEN — split hero + form
   ============================================================ */
.auth-screen { display: grid; grid-template-columns: 1.06fr 1fr; min-height: 100vh; }
.auth-screen[hidden] { display: none; }

/* Left hero */
.auth-hero {
  position: relative; overflow: hidden; color: #eaf1ff;
  background:
    radial-gradient(900px 500px at 12% 8%, rgba(76, 110, 245, 0.55), transparent 60%),
    radial-gradient(760px 520px at 90% 90%, rgba(14, 163, 113, 0.5), transparent 55%),
    linear-gradient(150deg, #101a3a 0%, #14224d 55%, #0f2f43 100%);
  display: flex; align-items: center; justify-content: center; padding: 56px 52px;
}
.auth-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.5; pointer-events: none;
}
.auth-hero-inner { position: relative; max-width: 440px; width: 100%; }
.hero-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 0.2px; }
.hero-mark {
  font-size: 22px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 9px; border-radius: 12px; backdrop-filter: blur(4px);
}
.hero-headline { color: #fff; font-size: 34px; line-height: 1.18; margin: 34px 0 14px; letter-spacing: -0.5px; }
.hero-sub { color: rgba(234, 241, 255, 0.78); font-size: 15px; margin: 0 0 30px; max-width: 400px; }
.hero-points { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-points li { display: flex; align-items: center; gap: 14px; }
.hp-ico {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center; font-size: 19px;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px;
}
.hero-points strong { display: block; color: #fff; font-size: 14.5px; }
.hero-points span { color: rgba(234, 241, 255, 0.66); font-size: 12.5px; }
.hero-stats { display: flex; align-items: center; gap: 20px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.hero-stats b { display: block; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.hero-stats span { color: rgba(234, 241, 255, 0.6); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.6px; }
.hs-div { width: 1px; height: 30px; background: rgba(255, 255, 255, 0.16); }

/* Right form panel */
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--bg); }
.auth-card { width: 100%; max-width: 396px; }
.auth-card-head { margin-bottom: 22px; }
.auth-card-head h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.4px; }
.auth-card-head p { margin: 0; color: var(--ink-3); font-size: 14px; }

.auth-toggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 4px; margin-bottom: 22px;
}
.auth-toggle-glider {
  position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px);
  background: var(--surface); border-radius: 9px; box-shadow: var(--sh-sm);
  transition: transform 0.22s cubic-bezier(0.4, 0.1, 0.2, 1);
}
.auth-toggle-glider.right { transform: translateX(100%); }
.auth-tab {
  position: relative; z-index: 1; padding: 9px; border: none; background: transparent; cursor: pointer;
  border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); transition: color 0.15s;
}
.auth-tab.active { color: var(--ink); }

.auth-form { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field[hidden] { display: none; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-ico {
  position: absolute; left: 12px; font-size: 14px; opacity: 0.7; pointer-events: none;
  filter: grayscale(0.2);
}
.input-wrap input {
  width: 100%; padding: 12px 14px 12px 38px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input-wrap input::placeholder { color: var(--ink-4); }
.input-wrap input:focus { border-color: var(--indigo); box-shadow: var(--ring); }
.pw-toggle {
  position: absolute; right: 8px; border: none; background: transparent; cursor: pointer;
  color: var(--ink-3); font-size: 12px; font-weight: 600; padding: 6px 8px; border-radius: 7px;
}
.pw-toggle:hover { color: var(--indigo); background: var(--indigo-tint); }
.field-hint { margin: 0; font-size: 11.5px; color: var(--ink-4); }
.field-hint[hidden] { display: none; }
.auth-submit { margin-top: 6px; padding: 13px; font-size: 14.5px; }
.auth-error {
  margin: 0; padding: 11px 13px; border-radius: 10px; font-size: 13px;
  background: var(--rose-tint); color: var(--rose); border: 1px solid rgba(224, 69, 92, 0.22);
}
.auth-error[hidden] { display: none; }
.auth-note { margin: 20px 0 0; font-size: 11.5px; color: var(--ink-4); text-align: center; line-height: 1.5; }
#app[hidden] { display: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: rgba(255, 255, 255, 0.78); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  font-size: 26px; line-height: 1; background: linear-gradient(140deg, var(--indigo-tint), var(--brand-tint));
  border: 1px solid var(--line); padding: 9px 11px; border-radius: 14px;
}
.brand h1 { font-size: 19px; margin: 0; letter-spacing: -0.3px; }
.tagline { margin: 1px 0 0; color: var(--ink-3); font-size: 12.5px; }
.header-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 230px; max-width: 380px; display: flex; align-items: center; }
.search-ico { position: absolute; left: 13px; font-size: 13px; opacity: 0.6; pointer-events: none; }
#search {
  width: 100%; padding: 10px 14px 10px 36px; border-radius: 11px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
#search::placeholder { color: var(--ink-4); }
#search:focus { border-color: var(--indigo); box-shadow: var(--ring); }
.account { display: flex; align-items: center; gap: 9px; padding: 5px 6px 5px 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--sh-sm); }
.avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--indigo), #6f5bff); color: #fff; font-size: 13px; font-weight: 700;
}
.account-name { font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* ============================================================
   TABS + CONTROLS
   ============================================================ */
.tabs { display: flex; gap: 9px; margin: 24px auto 6px; flex-wrap: wrap; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  box-shadow: var(--sh-sm); transition: transform 0.14s, border-color 0.14s, color 0.14s, box-shadow 0.14s;
}
.tab:hover { color: var(--ink); border-color: #cdd7e8; transform: translateY(-1px); }
.tab.active {
  background: linear-gradient(135deg, var(--indigo), #6f5bff); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(76, 110, 245, 0.34);
}
.tab .ico { font-size: 15px; }

.controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 10px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px; cursor: pointer; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; font-weight: 500; transition: all 0.14s;
}
.chip:hover { color: var(--ink); border-color: #cdd7e8; }
.chip.active { background: var(--brand-tint); border-color: rgba(14, 163, 113, 0.4); color: var(--brand-ink); font-weight: 600; }
.sort { display: flex; align-items: center; gap: 9px; color: var(--ink-3); font-size: 12.5px; }
.sort select {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); padding: 8px 12px; border-radius: 10px;
  font-size: 12.5px; font-weight: 500; cursor: pointer; box-shadow: var(--sh-sm);
}
.sort select:focus { outline: none; border-color: var(--indigo); box-shadow: var(--ring); }
.result-meta { color: var(--ink-3); font-size: 12.5px; margin: 8px 0 16px; font-weight: 500; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); padding-bottom: 110px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px;
  display: flex; flex-direction: column; gap: 16px; box-shadow: var(--sh-sm); position: relative; overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  animation: cardIn 0.4s ease both; animation-delay: calc(var(--i, 0) * 35ms);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--brand)); opacity: 0; transition: opacity 0.16s;
}
.card:hover { transform: translateY(-4px); border-color: #cfd9ea; box-shadow: var(--sh-lg); }
.card:hover::before { opacity: 1; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.card-top { display: flex; align-items: flex-start; gap: 13px; }
.brand-chip {
  flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; letter-spacing: -0.5px;
  color: hsl(var(--h, 220) 48% 40%);
  background: hsl(var(--h, 220) 72% 96%);
  border: 1px solid hsl(var(--h, 220) 55% 89%);
}
.card-heading { flex: 1; min-width: 0; }
.domain-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 6px; color: var(--indigo-ink); background: var(--indigo-tint); margin-bottom: 6px;
}
.card-title { font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -0.2px; line-height: 1.25; }
.card-sub { color: var(--ink-3); font-size: 12px; margin: 4px 0 0; line-height: 1.4; }
.badges { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.badge {
  font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--amber-tint); color: var(--amber); border: 1px solid rgba(180, 107, 18, 0.18);
}

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.metric { background: var(--surface-2); padding: 11px 8px; text-align: center; }
.metric .m-label { font-size: 10px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.metric .m-value { font-size: 15.5px; font-weight: 800; color: var(--ink); margin-top: 3px; letter-spacing: -0.3px; }

.features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.features li { font-size: 12.5px; color: var(--ink-2); padding-left: 22px; position: relative; line-height: 1.4; }
.features li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; font-size: 11px;
  width: 15px; height: 15px; display: grid; place-items: center; background: var(--brand-tint); border-radius: 50%;
}
.card-actions { display: flex; gap: 8px; margin-top: auto; align-items: stretch; }
.apply-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.compare-btn { flex: none; width: 44px; padding: 10px 0; font-size: 15px; display: grid; place-items: center; }
.cmp-disclosure { font-size: 11.5px; color: var(--ink-4); padding: 12px 16px 4px; margin: 0; line-height: 1.6; }
.cmp-disclosure a { color: var(--indigo-ink); }
.footer-links { margin: 0 0 10px; font-size: 12px; }
.footer-links a { color: var(--indigo-ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  padding: 10px 15px; border-radius: 11px; font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: all 0.14s;
}
.btn:hover { border-color: #cdd7e8; color: var(--ink); }
.btn.sm { padding: 8px 12px; font-size: 12.5px; }
.btn.primary {
  background: linear-gradient(135deg, var(--brand), #12b57f); color: #fff; border: none;
  box-shadow: 0 6px 16px rgba(14, 163, 113, 0.28);
}
.btn.primary:hover { filter: brightness(1.05); box-shadow: 0 8px 20px rgba(14, 163, 113, 0.36); color: #fff; }
.btn.primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.compare-btn.active {
  background: var(--brand-tint); border-color: rgba(14, 163, 113, 0.4); color: var(--brand-ink);
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.empty { text-align: center; color: var(--ink-3); padding: 70px 0; font-size: 15px; }

/* ============================================================
   LIVE RATES (real data)
   ============================================================ */
.tab-live { }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: inline-block; margin-left: 2px;
  box-shadow: 0 0 0 0 rgba(14, 163, 113, 0.6); animation: pulse 1.8s infinite;
}
.tab.active .live-dot { background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14, 163, 113, 0.5); } 70% { box-shadow: 0 0 0 6px rgba(14, 163, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 163, 113, 0); } }
.live-badge { color: var(--brand-ink); font-weight: 800; font-size: 11px; letter-spacing: 0.3px; }
.stale-flag { color: var(--amber); }
.rates-loading, .rates-error { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--ink-3); font-size: 15px; }
.rates-error span { display: block; font-size: 12px; color: var(--ink-4); margin-top: 6px; }
.rates-group { grid-column: 1 / -1; margin-bottom: 8px; }
.rates-group-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 14px; }
.rates-group-head h3 { font-size: 15px; margin: 0; letter-spacing: -0.2px; }
.rates-group-head .src { font-size: 11px; color: var(--ink-4); }
.rates-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.rate-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 17px;
  box-shadow: var(--sh-sm); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.rate-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: #cfd9ea; }
.rate-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rate-flag { font-size: 17px; }
.rate-icon { font-size: 16px; font-weight: 800; color: var(--indigo-ink); width: 22px; height: 22px; display: grid; place-items: center; background: var(--indigo-tint); border-radius: 7px; }
.rate-code { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0.3px; }
.rate-change { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.rate-change.up { color: var(--brand-ink); background: var(--brand-tint); }
.rate-change.down { color: var(--rose); background: var(--rose-tint); }
.rate-value { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.6px; }
.rate-name { font-size: 11.5px; color: var(--ink-4); margin-top: 4px; }
.rates-note { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink-4); margin: 14px 0 0; line-height: 1.6; }

/* ============================================================
   COMPARE TRAY
   ============================================================ */
.compare-tray {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 -8px 30px rgba(16, 26, 46, 0.10);
}
.compare-tray[hidden] { display: none; }
.tray-inner { display: flex; align-items: center; gap: 14px; padding: 13px 0; }
.tray-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-4); flex: none; }
.tray-items { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.tray-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 13px;
}
.tray-pill button { background: none; border: none; color: var(--ink-4); cursor: pointer; font-size: 13px; line-height: 1; padding: 2px; }
.tray-pill button:hover { color: var(--rose); }
.tray-actions { display: flex; gap: 9px; flex: none; }

/* ============================================================
   MODAL
   ============================================================ */
.modal[hidden], .compare-tray[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(15, 26, 46, 0.5); padding: 22px; backdrop-filter: blur(2px); animation: fadeIn 0.16s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); width: 100%; max-width: 1000px;
  max-height: 88vh; overflow: hidden; box-shadow: var(--sh-xl); display: flex; flex-direction: column;
  animation: popIn 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.3px; }
.modal-body { overflow: auto; padding: 6px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp-table th, .cmp-table td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.cmp-table thead th { position: sticky; top: 0; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; }
.cmp-table tbody tr:nth-child(even) td, .cmp-table tbody tr:nth-child(even) th { background: var(--surface-2); }
.cmp-table tbody th { color: var(--ink-3); font-weight: 600; white-space: nowrap; width: 150px; }
.cmp-table td { color: var(--ink-2); }
.cmp-feature { font-size: 12px; color: var(--ink-3); line-height: 1.6; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { margin-top: 50px; border-top: 1px solid var(--line); padding: 24px 0 40px; }
.site-footer p { color: var(--ink-4); font-size: 12px; margin: 0; line-height: 1.6; }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: #cdd7e8 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #d4dcea; border-radius: 999px; border: 3px solid var(--bg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
}
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .header-right { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .account { justify-content: space-between; }
  .grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
