/* ==========================================================================
   FinanzasSinFiltro — style.css
   Light & Dark theme, fully offline (no CDN). Font: Plus Jakarta Sans + JetBrains Mono
   ========================================================================== */

/* ----------  Fonts  ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/JetBrainsMono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/JetBrainsMono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ----------  Theme tokens  ---------- */
:root {
  --bg: #0B0F17;
  --bg-topbar: #020617;
  --surface: #0f172a;
  --surface-2: #131B2A;
  --surface-3: #1e293b;
  --card: #0f172a;
  --border: #1E293B;
  --border-soft: rgba(30, 41, 59, 0.6);
  --text: #F3F4F6;
  --text-strong: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --gold: #F59E0B;
  --gold-light: #FBBF24;
  --gold-hover: #D97706;
  --emerald: #10B981;
  --rose: #EF4444;
  --header-bg: rgba(15, 23, 42, 0.9);
  --input-bg: #020617;
  --shadow-gold: rgba(245, 158, 11, 0.25);
  --scrim: rgba(2, 6, 23, 0.8);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f1f5f9;
  --bg-topbar: #0B0F17;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-3: #e2e8f0;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-soft: rgba(203, 213, 225, 0.7);
  --text: #0f172a;
  --text-strong: #0b1220;
  --text-muted: #475569;
  --text-dim: #64748b;
  --header-bg: rgba(255, 255, 255, 0.9);
  --input-bg: #f8fafc;
  --scrim: rgba(15, 23, 42, 0.55);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: background-color .3s ease, color .3s ease;
}

::selection { background: var(--gold); color: #000; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ----------  Scrollbar  ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ----------  Layout helpers  ---------- */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }
.flex-grow { flex: 1 0 auto; }

/* ----------  Icons  ---------- */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
.ic-sm { font-size: .8rem; }
.ic-lg { font-size: 1.25rem; }

/* ----------  Ticker  ---------- */
.topbar {
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  font-size: .75rem;
  padding: .5rem 0;
  overflow: hidden;
  position: relative;
  z-index: 40;
}
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-group { display: flex; gap: 2rem; align-items: center; flex-shrink: 0; padding-right: 2rem; }
.ticker-label { color: var(--text-muted); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.ticker-label .ic { color: var(--gold); }
.ticker-item { display: inline-flex; align-items: center; gap: .4rem; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.ticker-item .sym { color: var(--text-muted); }
.up { color: var(--emerald); font-weight: 700; }
.down { color: var(--rose); font-weight: 700; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----------  Header  ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color .3s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo {
  width: 2.5rem; height: 2.5rem; border-radius: .75rem;
  box-shadow: 0 10px 24px -6px var(--shadow-gold);
  transition: transform .2s ease;
}
.brand:hover .brand-logo { transform: scale(1.06); }
.brand-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--text-strong); line-height: 1; transition: color .2s; }
.brand:hover .brand-name { color: var(--gold-light); }
.brand-name .accent { color: var(--gold); }
.brand-sub { display: block; font-size: .625rem; text-transform: uppercase; letter-spacing: .18em; color: var(--text-muted); font-weight: 600; margin-top: 2px; }

.nav { display: none; align-items: center; gap: .25rem; font-size: .875rem; font-weight: 600; }
@media (min-width: 900px) { .nav { display: flex; gap: .5rem; } }
.nav-link { color: var(--text-muted); padding: .5rem .75rem; border-radius: .5rem; transition: color .2s, background-color .2s; }
.nav-link:hover { color: var(--gold-light); background: var(--surface-3); }
.nav-link.active { color: var(--gold); }

.actions { display: flex; align-items: center; gap: .6rem; }
.theme-toggle {
  width: 2.5rem; height: 2.5rem; border-radius: .75rem;
  border: 1px solid var(--border); color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .2s, background-color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); }
.theme-toggle .ic { font-size: 1.05rem; }
[data-theme="light"] .icon-moon { display: none; }
.icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: inline-block; }

/* ----------  Buttons  ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: .75rem; font-weight: 600; font-size: .875rem; padding: .5rem 1rem; transition: transform .2s ease, background-color .2s, color .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn-ghost { color: var(--text-muted); border: 1px solid var(--border-soft); }
.btn-ghost:hover { color: var(--text-strong); background: var(--surface-3); }
.btn-primary {
  color: #0B0F17; font-weight: 800;
  background: linear-gradient(90deg, var(--gold-light), var(--gold) 50%, var(--gold-hover));
  padding: .65rem 1.25rem;
  box-shadow: 0 10px 24px -8px var(--shadow-gold);
}
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(245,158,11,.45); transform: translateY(-2px); }
.btn-solid { background: var(--gold); color: #0B0F17; font-weight: 800; }
.btn-solid:hover { background: var(--gold-light); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: 1rem; }
.btn-chip { background: var(--surface-3); color: var(--text); font-weight: 700; font-size: .75rem; padding: .5rem 1rem; }
.btn-chip:hover { background: var(--gold); color: #0B0F17; }

/* ----------  Hero  ---------- */
main { display: block; }
.section { max-width: 80rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .section { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .section { padding-left: 2rem; padding-right: 2rem; } }

.hero-wrap { padding-top: 2rem; padding-bottom: 3rem; }
.hero {
  position: relative; border-radius: 1.5rem; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: transform .7s ease; }
.hero:hover .hero-bg img { transform: scale(1.05); }
.hero-overlay-1 { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 45%, transparent 100%); }
.hero-overlay-2 { position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in srgb, var(--bg) 92%, transparent), color-mix(in srgb, var(--bg) 40%, transparent) 55%, transparent); }
.hero-content { position: relative; z-index: 2; padding: 1.75rem; max-width: 48rem; }
@media (min-width: 640px) { .hero-content { padding: 2.5rem; } }
@media (min-width: 1024px) { .hero-content { padding: 4rem; } }

.badge-live {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem; border-radius: 999px;
  background: rgba(239,68,68,.18); border: 1px solid rgba(239,68,68,.4);
  color: var(--rose); font-weight: 800; font-size: .7rem; text-transform: uppercase; letter-spacing: .16em;
  margin-bottom: 1.5rem;
}
.badge-live .dot { width: .5rem; height: .5rem; border-radius: 999px; background: var(--rose); animation: pulse 1.8s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-title { font-size: clamp(1.9rem, 4vw, 3.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: var(--text-strong); margin: 0 0 1.5rem; }
.grad-text { background: linear-gradient(90deg, var(--gold-light), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-excerpt { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; margin: 0 0 2rem; max-width: 44rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

.author-chip { display: flex; align-items: center; gap: .75rem; font-size: .75rem; color: var(--text-muted); border-left: 1px solid var(--border); padding-left: 1.5rem; }
.author-chip img { width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 2px solid var(--gold); object-fit: cover; }
.author-chip .name { color: var(--text); font-weight: 700; font-size: .875rem; }

/* ----------  Section head + filters  ---------- */
.section-head { display: flex; flex-direction: column; gap: 1rem; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .section-head { flex-direction: row; align-items: center; } }
.section-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--text-strong); display: flex; align-items: center; gap: .5rem; margin: 0; }
.section-title .ic { color: var(--gold); }
.section-sub { color: var(--text-muted); font-size: .875rem; margin: .25rem 0 0; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; background: var(--header-bg); padding: .4rem; border-radius: 1rem; border: 1px solid var(--border); }
.cat-btn { padding: .5rem 1rem; border-radius: .75rem; font-size: .75rem; font-weight: 700; color: var(--text-muted); transition: all .2s; }
.cat-btn:hover { color: var(--text-strong); }
.cat-btn.active { background: var(--gold); color: #0B0F17; box-shadow: 0 4px 10px -4px var(--shadow-gold); }

/* ----------  Articles grid / cards  ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 5rem; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 1rem;
  overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 10px 24px -16px rgba(0,0,0,.4);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.card:hover { border-color: rgba(245,158,11,.5); box-shadow: 0 24px 50px -20px var(--shadow-gold); transform: translateY(-4px); }
.card-media { position: relative; height: 12rem; overflow: hidden; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.1); }
.card-media .scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--surface-2), transparent 55%); }
.card-badge { position: absolute; top: .75rem; left: .75rem; padding: .3rem .75rem; border-radius: 999px; background: rgba(2,6,23,.8); backdrop-filter: blur(6px); border: 1px solid rgba(245,158,11,.3); color: var(--gold-light); font-weight: 800; font-size: .625rem; text-transform: uppercase; letter-spacing: .12em; }
.card-body { padding: 1.5rem; }
.card-title { font-size: 1.25rem; font-weight: 800; color: var(--text-strong); line-height: 1.3; margin: 0 0 .75rem; transition: color .2s; }
.card:hover .card-title { color: var(--gold-light); }
.card-excerpt { color: var(--text-muted); font-size: .8rem; line-height: 1.6; margin: 0 0 1.5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { padding: 1rem 1.5rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-soft); margin-top: auto; }
.card-author { display: flex; align-items: center; gap: .5rem; font-size: .7rem; color: var(--text-muted); font-weight: 500; }
.card-author img { width: 1.75rem; height: 1.75rem; border-radius: 999px; border: 1px solid var(--gold); object-fit: cover; }

.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; color: var(--text-muted); }

/* ----------  Newsletter  ---------- */
.newsletter-wrap { margin-bottom: 5rem; }
.newsletter {
  position: relative; border-radius: 1.5rem; overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-2) 55%, rgba(146,64,14,.35));
  border: 1px solid rgba(245,158,11,.3);
  padding: 2rem 1.5rem;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.5);
}
@media (min-width: 640px) { .newsletter { padding: 3.5rem; } }
.blur-gold { position: absolute; right: -5rem; bottom: -5rem; width: 20rem; height: 20rem; background: rgba(245,158,11,.1); border-radius: 999px; filter: blur(60px); pointer-events: none; }
.blur-emerald { position: absolute; left: -5rem; top: -5rem; width: 20rem; height: 20rem; background: rgba(16,185,129,.1); border-radius: 999px; filter: blur(60px); pointer-events: none; }
.newsletter-inner { position: relative; z-index: 2; max-width: 36rem; margin: 0 auto; text-align: center; }
.newsletter-icon { display: inline-flex; padding: .75rem; border-radius: 1rem; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.2); color: var(--gold-light); font-size: 1.5rem; margin-bottom: 1rem; }
.newsletter h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; color: var(--text-strong); margin: 0 0 1rem; }
.newsletter h2 .accent { color: var(--gold); }
.newsletter p { color: var(--text-muted); font-size: .95rem; margin: 0 0 2rem; }
.newsletter-form { display: flex; flex-direction: column; gap: .75rem; max-width: 32rem; margin: 0 auto; }
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.note { font-size: .75rem; color: var(--text-dim); margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: .5rem; }

/* ----------  Inputs  ---------- */
.input {
  width: 100%; padding: .85rem 1.25rem; border-radius: 1rem;
  background: var(--input-bg); border: 1px solid var(--border); color: var(--text);
  font-size: .875rem; transition: border-color .2s;
}
.input::placeholder { color: var(--text-dim); }
.input:focus { outline: none; border-color: var(--gold); }
.input-grow { flex: 1 1 auto; }
.field { margin-bottom: 1rem; }
.label { display: block; font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }

/* ----------  Footer  ---------- */
.footer { background: var(--bg-topbar); border-top: 1px solid var(--border); color: var(--text-muted); font-size: .8rem; padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h3 { color: var(--text); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1rem; font-size: .75rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.footer-brand img { width: 2rem; height: 2rem; }
.footer-brand span { font-size: 1.1rem; font-weight: 800; color: var(--text-strong); }
.footer p { line-height: 1.6; margin: 0 0 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.footer-links a:hover, .footer-links button:hover { color: var(--gold-light); }
.footer-links button { font-size: inherit; padding: 0; text-align: left; }
.link-gold { color: var(--gold); }
.link-gold:hover { text-decoration: underline; }
.social { display: flex; gap: 1rem; font-size: 1.1rem; }
.social a:hover { color: var(--gold-light); }
.store-btn { width: 100%; padding: .5rem 1rem; border-radius: .75rem; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: .5rem; transition: background-color .2s; }
.store-btn:hover { background: var(--surface-3); }
.store-btn .ic { font-size: 1.25rem; color: var(--text-strong); }
.store-btn .s1 { font-size: .56rem; text-transform: uppercase; color: var(--text-muted); }
.store-btn .s2 { font-size: .75rem; font-weight: 700; color: var(--text-strong); }
.footer-bottom { border-top: 1px solid var(--border-soft); padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; justify-content: space-between; align-items: center; color: var(--text-dim); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }

/* ----------  Cookie banner  ---------- */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 45; background: var(--header-bg); backdrop-filter: blur(16px); border: 1px solid rgba(245,158,11,.3); padding: 1.5rem; border-radius: 1rem; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); transition: transform .5s ease, opacity .5s ease; }
@media (min-width: 768px) { .cookie-banner { left: auto; right: 2rem; max-width: 28rem; } }
.cookie-banner.hide { transform: translateY(6rem); opacity: 0; }
.cookie-inner { display: flex; gap: 1rem; align-items: flex-start; }
.cookie-icon { padding: .75rem; background: rgba(245,158,11,.1); color: var(--gold); border-radius: .75rem; font-size: 1.25rem; flex-shrink: 0; }
.cookie-banner h4 { color: var(--text-strong); font-weight: 700; font-size: .875rem; margin: 0 0 .25rem; }
.cookie-banner p { color: var(--text-muted); font-size: .75rem; line-height: 1.6; margin: 0 0 1rem; }
.cookie-actions { display: flex; gap: .5rem; }

/* ----------  Modals  ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; background: var(--scrim); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.modal.open { opacity: 1; visibility: visible; }
.modal-panel { background: var(--surface-2); border: 1px solid var(--border); width: 100%; max-width: 48rem; max-height: 90vh; border-radius: 1.5rem; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 40px 80px -24px rgba(0,0,0,.7); transform: scale(.95); transition: transform .3s ease; }
.modal.open .modal-panel { transform: scale(1); }
.modal-panel.sm { max-width: 28rem; border-color: rgba(245,158,11,.3); position: relative; }
.modal-head { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--input-bg); }
.modal-badge { padding: .25rem .75rem; border-radius: 999px; background: rgba(245,158,11,.1); color: var(--gold-light); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.modal-close { width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--surface-3); color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s; }
.modal-close:hover { background: var(--border); color: var(--text-strong); }
.modal-x { position: absolute; top: 1rem; right: 1rem; z-index: 3; }
.modal-body { padding: 1.5rem; overflow-y: auto; }
@media (min-width: 640px) { .modal-body { padding: 2.5rem; } }
.modal-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: var(--text-strong); line-height: 1.15; margin: 0 0 1.25rem; }
.modal-meta { display: flex; align-items: center; gap: 1rem; font-size: .75rem; color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.modal-meta img { width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--gold); object-fit: cover; }
.modal-meta .name { color: var(--text); font-weight: 700; font-size: .875rem; }
.modal-img { position: relative; height: 18rem; border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); margin-bottom: 1.25rem; background: var(--surface); }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { color: var(--text-muted); font-size: .95rem; line-height: 1.75; }
.modal-content > * { margin: 0 0 1rem; }
.modal-content h3 { color: var(--text-strong); font-size: 1.25rem; font-weight: 700; margin-top: 1.25rem; }
.modal-content ul { padding-left: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.modal-content strong { color: var(--text); }
.modal-lead { font-size: 1.1rem; font-weight: 600; color: var(--gold-light); }
.modal-foot { padding: 1rem; border-top: 1px solid var(--border); background: var(--input-bg); display: flex; justify-content: space-between; align-items: center; font-size: .75rem; }
.modal-foot .ghost { color: var(--text-muted); display: inline-flex; align-items: center; gap: .5rem; transition: color .2s; }
.modal-foot .ghost:hover { color: var(--gold-light); }

/* ----------  Auth tabs  ---------- */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--input-bg); border-bottom: 1px solid var(--border); }
.auth-tab { padding: 1rem; text-align: center; font-weight: 700; font-size: .875rem; border-bottom: 2px solid transparent; color: var(--text-muted); transition: color .2s, border-color .2s; }
.auth-tab.active { border-color: var(--gold); color: var(--gold-light); }
.auth-tab:hover { color: var(--text-strong); }
.auth-body { padding: 1.5rem; }
@media (min-width: 640px) { .auth-body { padding: 2rem; } }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--text-muted); }
.auth-row label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.plan { border: 1px solid var(--border); background: var(--input-bg); padding: .75rem; border-radius: .75rem; display: flex; flex-direction: column; cursor: pointer; transition: border-color .2s; }
.plan:hover { border-color: var(--gold); }
.plan.sel { border: 2px solid var(--gold); background: rgba(245,158,11,.1); }
.plan .t { font-size: .75rem; font-weight: 800; color: var(--text-strong); }
.plan.sel .t { color: var(--gold-light); }
.plan .d { font-size: .625rem; color: var(--text-muted); }

/* ----------  Toast  ---------- */
.toast { position: fixed; top: 6rem; right: 1rem; z-index: 60; background: var(--surface-2); border: 1px solid rgba(245,158,11,.4); color: var(--text); padding: .85rem 1.25rem; border-radius: 1rem; box-shadow: 0 20px 50px -16px rgba(0,0,0,.6); display: flex; align-items: center; gap: .75rem; transform: translateX(120%); opacity: 0; transition: transform .3s ease, opacity .3s ease; max-width: 22rem; }
.toast.show { transform: translateX(0); opacity: 1; }
.toast .ic { color: var(--gold); font-size: 1.1rem; }
.toast span { font-size: .8rem; font-weight: 600; }

/* ----------  Legal pages  ---------- */
.page { padding: 3rem 0 5rem; }
.page-hero { display: flex; flex-direction: column; gap: 2rem; align-items: center; text-align: center; padding: 2rem 0 3rem; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
@media (min-width: 768px) { .page-hero { flex-direction: row; text-align: left; justify-content: space-between; } }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--text-strong); margin: 0 0 .75rem; letter-spacing: -.02em; }
.page-hero p { color: var(--text-muted); margin: 0; max-width: 32rem; }
.page-hero img { width: 14rem; flex-shrink: 0; }
.breadcrumb { font-size: .75rem; color: var(--text-dim); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--gold-light); }
.prose { max-width: 46rem; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; font-weight: 800; color: var(--text-strong); margin: 2.5rem 0 1rem; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-muted); line-height: 1.8; margin: 0 0 1rem; }
.prose ul { color: var(--text-muted); line-height: 1.8; padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--gold); }
.prose a:hover { text-decoration: underline; }
.prose .updated { font-size: .8rem; color: var(--text-dim); margin-bottom: 2rem; }
.callout { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: .75rem; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.callout p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.legal-table th, .legal-table td { text-align: left; padding: .75rem 1rem; border: 1px solid var(--border); color: var(--text-muted); }
.legal-table th { background: var(--surface-2); color: var(--text-strong); font-weight: 700; }

.back-home { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2.5rem; color: var(--gold); font-weight: 700; }
.back-home:hover { text-decoration: underline; }

/* ----------  404  ---------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 1rem; }
.notfound img { width: 20rem; max-width: 90%; margin-bottom: 1rem; }
.notfound h1 { font-size: 2rem; font-weight: 800; color: var(--text-strong); margin: 0 0 .75rem; }
.notfound p { color: var(--text-muted); max-width: 28rem; margin: 0 0 2rem; }
