/* EarlyMortgagePayoff.com — Hostinger-Inspired Dark Modern Design System */

:root {
  /* Backgrounds */
  --bg-dark:        #0b0e1a;
  --bg-dark-2:      #111426;
  --bg-card:        #ffffff;
  --bg-card-dark:   #161929;
  --bg-section:     #f4f6fb;

  /* Brand accent — purple/violet */
  --accent:         #7b5cf0;
  --accent-2:       #a78bfa;
  --accent-glow:    rgba(123, 92, 240, 0.35);
  --gradient-hero:  linear-gradient(135deg, #7b5cf0 0%, #a855f7 50%, #ec4899 100%);
  --gradient-btn:   linear-gradient(90deg, #7b5cf0 0%, #a855f7 100%);
  --gradient-text:  linear-gradient(90deg, #a78bfa, #ec4899);

  /* Text */
  --text-white:     #ffffff;
  --text-light:     #e2e8f0;
  --text-muted:     #94a3b8;
  --text-dark:      #0f172a;
  --text-body:      #334155;

  /* Utility */
  --border-dark:    rgba(255,255,255,0.08);
  --border-light:   #e2e8f0;
  --success:        #10b981;
  --gold:           #f59e0b;
  --danger:         #ef4444;

  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      28px;

  --shadow-card:    0 4px 24px rgba(0,0,0,0.12);
  --shadow-glow:    0 0 40px var(--accent-glow);
  --shadow-deep:    0 20px 60px rgba(0,0,0,0.18);

  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;

  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 200ms ease; }
a:hover { color: var(--accent-2); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 var(--s-2);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 var(--s-2); }

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.55rem; }
}

/* On light sections, headings get dark text */
.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
section.section-cream h1,
section.section-cream h2,
section.section-cream h3 { color: var(--text-dark); }

/* ---------- Containers ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-3);
}
.container-narrow { max-width: 760px; }

/* ---------- Section labels & gradient text ---------- */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin: 0 0 var(--s-2);
  font-weight: 500;
}
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Announcement bar ---------- */
.announcement-bar {
  background: rgba(123, 92, 240, 0.18);
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-light);
  font-size: 0.875rem;
  padding: 10px var(--s-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  font-family: var(--font-body);
}
.announcement-bar a { color: var(--accent-2); font-weight: 500; margin-left: 4px; }
.announcement-bar .ann-close {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 1rem;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}
.announcement-bar[hidden] { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
  transition: background-color 200ms ease;
}
.site-header.scrolled { background: rgba(17, 20, 38, 0.95); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-3);
  gap: var(--s-3);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.brand-name strong { font-weight: 800; }
.brand-tld { color: var(--accent); font-weight: 600; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.primary-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 10px 0;
  transition: color 200ms ease;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--text-white); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text-white);
  font-size: 1.4rem;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  background: var(--bg-dark-2);
  border-top: 1px solid var(--border-dark);
  padding: var(--s-3);
  gap: var(--s-1);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-dark);
  font-size: 1rem;
  min-height: 44px;
  display: flex; align-items: center;
}
.mobile-nav .mobile-actions {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: var(--s-2);
}

@media (max-width: 900px) {
  .primary-nav, .header-actions .btn:not(.btn-icon) { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  min-height: 44px;
  text-align: center;
  font-family: var(--font-body);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn-primary {
  background: var(--gradient-btn);
  color: var(--text-white);
  box-shadow: 0 6px 24px rgba(123, 92, 240, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 0 32px var(--accent-glow), 0 6px 24px rgba(168, 85, 247, 0.3);
  transform: translateY(-1px);
  color: var(--text-white);
}
.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-white);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { background: var(--bg-section); border-color: var(--accent); color: var(--text-dark); }
.section-dark .btn-ghost,
.bg-dark .btn-ghost { color: var(--text-light); border-color: var(--border-dark); }
.section-dark .btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--accent-2); color: var(--text-white); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; min-height: 36px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-white);
  padding: var(--s-7) 0 var(--s-7);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  will-change: transform;
}
.hero-orb-1 { width: 480px; height: 480px; background: #7b5cf0; top: -120px; right: -80px; animation: float 9s ease-in-out infinite; }
.hero-orb-2 { width: 360px; height: 360px; background: #ec4899; bottom: -120px; left: -60px; animation: float 11s ease-in-out infinite reverse; }
.hero-orb-3 { width: 280px; height: 280px; background: #38bdf8; top: 30%; left: 40%; opacity: 0.18; animation: float 7s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-6);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-4); } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-btn);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: var(--s-3);
  font-weight: 500;
  box-shadow: 0 0 24px var(--accent-glow);
}
.hero h1 {
  color: var(--text-white);
  font-size: 3.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--s-3);
}
@media (max-width: 768px) { .hero h1 { font-size: 2.4rem; } }

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 540px;
  margin-bottom: var(--s-4);
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: var(--s-3);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  color: var(--text-muted);
  font-size: 0.875rem;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust i { color: var(--success); }

/* ---------- Hero Calculator ---------- */
.hero-calc {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: var(--s-4);
  color: var(--text-white);
  box-shadow: 0 0 60px rgba(123, 92, 240, 0.15), 0 30px 80px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
}
.hero-calc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s-3);
}
.hero-calc-head h3 { color: var(--text-white); font-size: 1.25rem; margin: 0; }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.live-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.calc-field { margin-bottom: var(--s-2); }
.calc-field-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.calc-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.calc-value {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-white);
  font-size: 0.92rem;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent) var(--p, 50%), rgba(255,255,255,0.1) var(--p, 50%));
  border-radius: 3px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--text-white);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px;
  background: var(--text-white);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  cursor: pointer;
}

.calc-results {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--s-2);
  margin-top: var(--s-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.calc-result-cell { color: var(--text-white); padding: 8px; }
.calc-result-cell .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.calc-result-cell .value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.calc-result-cell .value.gold,
.calc-result-cell .value.accent { color: var(--accent-2); }

.calc-cta { margin-top: var(--s-3); text-align: center; }
.calc-cta small { color: var(--text-muted); font-size: 0.78rem; display: block; margin-top: 8px; }

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--bg-dark-2);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--s-4) 0;
}
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: var(--s-2) var(--s-3);
  border-right: 1px solid var(--border-dark);
}
.stat-item:last-child { border-right: 0; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 4px;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: 0; border-bottom: 1px solid var(--border-dark); }
  .stat-item:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Sections ---------- */
.section { padding: var(--s-7) 0; }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-dark2 { background: var(--bg-dark-2); color: var(--text-light); }
.section-light { background: var(--bg-section); color: var(--text-body); }
/* legacy class fallback */
.section-cream { background: var(--bg-section); color: var(--text-body); }
.section-cream h1, .section-cream h2, .section-cream h3 { color: var(--text-dark); }

.section-head { margin-bottom: var(--s-4); text-align: center; }
.section-head.text-left { text-align: left; }
.section-head h2 { margin-bottom: var(--s-1); }
.section-head p { color: var(--text-muted); max-width: 720px; margin: 0 auto; }
.section-light .section-head p, .section-cream .section-head p { color: var(--text-body); }

/* ---------- AI Spotlight ---------- */
.ai-spotlight { background: var(--bg-dark); padding: var(--s-7) 0; position: relative; overflow: hidden; }
.ai-spotlight::before {
  content: '';
  position: absolute;
  top: 50%; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.ai-spotlight .container { position: relative; z-index: 1; }
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: center;
}
@media (max-width: 980px) { .ai-grid { grid-template-columns: 1fr; gap: var(--s-4); } }
.ai-mock {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: var(--s-3);
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.ai-mock-badge {
  position: absolute;
  top: -14px; right: 24px;
  background: var(--gradient-btn);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 500;
  box-shadow: 0 0 24px var(--accent-glow);
}
.ai-mock-msg {
  display: flex;
  margin-bottom: var(--s-2);
  gap: 10px;
  align-items: flex-end;
}
.ai-mock-msg.user { justify-content: flex-end; }
.ai-mock-msg.user .ai-mock-bubble {
  background: var(--gradient-btn);
  color: var(--text-white);
  border-radius: 18px 18px 4px 18px;
}
.ai-mock-msg.assistant .ai-mock-bubble {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  color: var(--text-light);
  border-radius: 18px 18px 18px 4px;
}
.ai-mock-bubble {
  padding: 10px 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 80%;
}
.ai-avatar {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gradient-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: 0.04em;
  box-shadow: 0 0 16px var(--accent-glow);
}
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 14px;
}
.typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: typing 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.ai-features { list-style: none; padding: 0; margin: var(--s-3) 0; display: flex; flex-direction: column; gap: 12px; }
.ai-features li {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
}
.ai-features i {
  color: var(--accent-2);
  background: rgba(123, 92, 240, 0.12);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ---------- Tools grid ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-3);
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(123, 92, 240, 0.12), 0 4px 16px rgba(0,0,0,0.04);
  border-color: rgba(123, 92, 240, 0.4);
  color: var(--text-dark);
}
.tool-card .icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(123, 92, 240, 0.25);
}
.tool-card h3 { font-size: 1.15rem; margin: 0; color: var(--text-dark); }
.tool-card p { color: var(--text-body); font-size: 0.92rem; margin: 0; }
.tool-card .badge {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}
.tool-card .arrow {
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

/* Dark variant of tool cards */
.section-dark .tool-card,
.section-dark2 .tool-card {
  background: var(--bg-card-dark);
  border-color: var(--border-dark);
  color: var(--text-light);
}
.section-dark .tool-card h3,
.section-dark2 .tool-card h3 { color: var(--text-white); }
.section-dark .tool-card p,
.section-dark2 .tool-card p { color: var(--text-muted); }

/* ---------- Strategy cards ---------- */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3);
}
.strategy-card {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 200ms ease, border-color 200ms ease;
}
.strategy-card:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, 0.3); }
.strategy-card .num {
  position: absolute;
  top: 8px; right: 24px;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.12;
  letter-spacing: -0.05em;
  pointer-events: none;
}
.strategy-card h3 { color: var(--text-white); font-size: 1.15rem; margin: 0; position: relative; z-index: 1; }
.strategy-card p { color: var(--text-muted); margin: 0; font-size: 0.92rem; position: relative; z-index: 1; }
.strategy-card a { color: var(--accent-2); margin-top: 8px; position: relative; z-index: 1; font-weight: 600; font-size: 0.92rem; }
.strategy-card a:hover { color: var(--text-white); }

/* ---------- Lender cards ---------- */
.lender-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-3);
}
.lender-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.lender-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.lender-card.featured { border: 1.5px solid transparent; background-image: linear-gradient(var(--bg-card), var(--bg-card)), var(--gradient-btn); background-origin: border-box; background-clip: padding-box, border-box; }
.lender-card .featured-badge {
  position: absolute;
  top: -12px; left: var(--s-2);
  background: var(--gradient-btn);
  color: var(--text-white);
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  box-shadow: 0 0 20px var(--accent-glow);
}
.lender-card h3 { font-size: 1.2rem; margin: 0; color: var(--text-dark); }
.lender-rate {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.lender-rate small { color: var(--text-muted); font-size: 0.78rem; font-weight: 400; }
.lender-type {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.lender-card p { color: var(--text-body); font-size: 0.92rem; margin: 0; }
.lender-card .btn { margin-top: auto; }
.lender-disclaimer {
  margin-top: var(--s-3);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Marquee testimonials ---------- */
.marquee-section { background: var(--bg-dark-2); padding: var(--s-6) 0; overflow: hidden; }
.marquee-section .section-head { margin-bottom: var(--s-4); }
.marquee-track-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent 0, black 5%, black 95%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, black 5%, black 95%, transparent 100%); }
.marquee-track {
  display: flex;
  gap: var(--s-2);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track.reverse { animation-direction: reverse; animation-duration: 44s; margin-top: var(--s-2); }
.marquee-section:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.testimonial-card {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: var(--s-2) var(--s-3);
  min-width: 340px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.testimonial-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; }
.testimonial-quote { color: var(--text-light); font-style: italic; font-size: 0.92rem; margin: 0; }
.testimonial-author { color: var(--text-muted); font-size: 0.82rem; }
.testimonial-author strong { color: var(--text-white); font-weight: 500; margin-right: 4px; }

/* ---------- Email capture ---------- */
.email-capture-section {
  position: relative;
  overflow: hidden;
  padding: var(--s-7) 0;
}
.email-capture-section::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  width: 600px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(80px);
  z-index: 0;
}
.email-capture-section .container { position: relative; z-index: 1; }
.email-capture {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.email-pill {
  display: flex;
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 100px;
  padding: 6px;
  gap: 0;
  margin-top: var(--s-3);
  align-items: stretch;
  max-width: 540px;
  margin-left: auto; margin-right: auto;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.email-pill:focus-within { border-color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
.email-pill input[type=email] {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 12px 20px;
  color: var(--text-white);
  font-size: 0.95rem;
  outline: none;
  min-height: 44px;
  font-family: var(--font-body);
}
.email-pill input::placeholder { color: var(--text-muted); }
.email-pill .btn { white-space: nowrap; }
.form-msg { margin-top: var(--s-2); font-size: 0.92rem; min-height: 1.2em; color: var(--text-muted); }
.form-msg.success { color: var(--success); }
.form-msg.error { color: var(--danger); }
@media (max-width: 540px) {
  .email-pill { flex-direction: column; border-radius: var(--radius-lg); padding: 8px; gap: 8px; }
  .email-pill input[type=email] { padding: 12px 16px; }
}

/* Generic email-form fallback for older pages */
.email-form { display: flex; gap: 12px; margin-top: var(--s-3); }
.email-form input[type=email] {
  flex: 1; padding: 14px 20px;
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 100px;
  color: var(--text-white);
  font-size: 0.95rem;
  min-height: 44px;
}
.section-light .email-form input,
.section-cream .email-form input { background: var(--bg-card); color: var(--text-dark); border-color: var(--border-light); }
.email-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 540px) { .email-form { flex-direction: column; } }

/* ---------- Blog cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-3);
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); color: var(--text-dark); }
.blog-card .emoji-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--gradient-btn);
}
.blog-card:nth-child(2) .emoji-banner { background: linear-gradient(135deg, #38bdf8 0%, #14b8a6 100%); }
.blog-card:nth-child(3) .emoji-banner { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.blog-card:nth-child(4) .emoji-banner { background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%); }
.blog-card .blog-body { padding: var(--s-3); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(123, 92, 240, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  align-self: flex-start;
  font-weight: 500;
}
.blog-card h3 { font-size: 1.15rem; margin: 0; line-height: 1.3; color: var(--text-dark); }
.blog-card .excerpt { color: var(--text-body); font-size: 0.92rem; margin: 0; }
.blog-card .meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 8px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: var(--s-3) auto 0; display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border-dark);
  padding: 4px 0;
}
.section-light .faq-item, .section-cream .faq-item { border-bottom-color: var(--border-light); }
.faq-item summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--text-light);
  list-style: none;
  position: relative;
  padding-right: 48px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 200ms ease;
}
.section-light .faq-item summary,
.section-cream .faq-item summary { color: var(--text-dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent-2);
  transition: transform 200ms ease, color 200ms ease;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(123, 92, 240, 0.1);
}
.faq-item[open] summary { color: var(--accent-2); }
.section-light .faq-item[open] summary,
.section-cream .faq-item[open] summary { color: var(--accent); }
.faq-item[open] summary::after { content: '×'; transform: translateY(-50%) rotate(0); }
.faq-item .faq-body {
  padding: 0 0 var(--s-2);
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 720px;
}
.section-light .faq-item .faq-body,
.section-cream .faq-item .faq-body { color: var(--text-body); }

/* ---------- People Also Ask ---------- */
.paa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.paa-item {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--s-2);
}
.paa-item h4 { font-size: 1.02rem; color: var(--accent-2); margin: 0 0 6px; }
.paa-item p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.section-light .paa-item, .section-cream .paa-item { background: var(--bg-card); border-color: var(--border-light); }
.section-light .paa-item h4, .section-cream .paa-item h4 { color: var(--accent); }
.section-light .paa-item p, .section-cream .paa-item p { color: var(--text-body); }

/* ---------- Answer summary box ---------- */
.answer-summary {
  background: rgba(123, 92, 240, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--s-2) var(--s-3);
  margin: var(--s-3) 0;
  color: var(--text-light);
}
.section-light .answer-summary,
.section-cream .answer-summary { color: var(--text-body); }
.answer-summary p { margin: 0; }
.answer-summary strong { color: var(--accent); }

/* ---------- Resources / Partner grid ---------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.resource-card {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--s-2);
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.resource-card:hover { border-color: var(--accent); color: var(--text-white); transform: translateY(-2px); }
.resource-card i { color: var(--accent-2); font-size: 1.05rem; }
.section-light .resource-card,
.section-cream .resource-card { background: var(--bg-card); border-color: var(--border-light); color: var(--text-dark); }
.section-light .resource-card:hover,
.section-cream .resource-card:hover { color: var(--text-dark); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: var(--s-3) 0 var(--s-2);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-2); }
.breadcrumbs .sep { padding: 0 6px; opacity: 0.5; }

/* ---------- Page Hero (calculator/strategy/etc pages) ---------- */
.page-hero {
  background: var(--bg-dark);
  padding: var(--s-5) 0 var(--s-4);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 50%, rgba(123, 92, 240, 0.18), transparent 40%),
                    radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.14), transparent 40%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--text-white); }
main { background: var(--bg-section); color: var(--text-body); min-height: 60vh; }
main h1, main h2, main h3 { color: var(--text-dark); }
main .page-hero h1 { color: var(--text-white); }
main .page-hero .breadcrumbs a { color: var(--text-muted); }
main .answer-summary { color: var(--text-body); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-muted);
  padding: var(--s-6) 0 var(--s-3);
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-4);
  max-width: 1200px;
  margin: 0 auto var(--s-4);
  padding: 0 var(--s-3);
}
.footer-col h4 {
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 var(--s-2);
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--text-white); }
.brand-footer { color: var(--text-white); font-size: 1.2rem; }
.footer-tag { color: var(--text-muted); font-size: 0.92rem; margin: 12px 0 var(--s-2); }
.footer-social { display: flex; gap: 12px; margin-top: var(--s-2); }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 200ms ease;
}
.footer-social a:hover { background: var(--gradient-btn); color: var(--text-white); border-color: transparent; }

.footer-partners {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s-3);
  border-top: 1px solid var(--border-dark);
  margin-bottom: var(--s-3);
}
.footer-partners h4 {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 var(--s-2);
  font-weight: 500;
  text-align: center;
}
.partner-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.partner-grid a { color: var(--text-muted); font-size: 0.82rem; text-decoration: none; }
.partner-grid a:hover { color: var(--accent-2); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s-2) var(--s-3) 0;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.footer-bottom small { color: var(--text-muted); font-size: 0.85rem; }
.footer-legal { display: flex; gap: var(--s-2); }
.footer-legal a { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.footer-legal a:hover { color: var(--text-white); }
.footer-disclaimer {
  max-width: 1200px;
  margin: var(--s-3) auto 0;
  padding: 0 var(--s-3);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-dark-2);
  color: var(--text-light);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  z-index: 200;
  flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.9rem; flex: 1; min-width: 240px; }
.cookie-banner a { color: var(--accent-2); }
.cookie-actions { display: flex; gap: 8px; }

/* ---------- Ad slots ---------- */
.ad-slot {
  background: var(--bg-card-dark);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius-md);
  margin: var(--s-3) auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
}
.section-light .ad-slot, .section-cream .ad-slot { background: var(--bg-card); border-color: var(--border-light); }
.ad-leaderboard { max-width: 728px; height: 90px; }
.ad-rectangle { width: 300px; height: 250px; }
.ad-sidebar { width: 300px; height: 250px; }
.ad-in-article { max-width: 728px; height: 90px; }
.ad-placeholder {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Forms (calculators / contact / admin) ---------- */
.form-row { margin-bottom: var(--s-2); }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=number],
.form-row input[type=password],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-dark);
  font-size: 16px;
  min-height: 44px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(123, 92, 240, 0.12);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Calculator pages ---------- */
.calc-page-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  margin-bottom: var(--s-3);
  box-shadow: var(--shadow-card);
}
.calc-result-table {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-card);
}
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-2); }
@media (max-width: 700px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card {
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--s-3);
}
.compare-card.highlight {
  background: linear-gradient(135deg, rgba(123, 92, 240, 0.08), rgba(236, 72, 153, 0.06));
  border: 1px solid rgba(123, 92, 240, 0.3);
}
.compare-card h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 var(--s-1);
  font-weight: 500;
}
.compare-stat {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.compare-stat.green { color: var(--success); }
.compare-stat.gold { color: var(--gold); }
.compare-stat.rust { color: var(--danger); }
.compare-stat.accent { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.compare-detail { font-size: 0.92rem; color: var(--text-body); }

table.amort-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: var(--s-2);
}
table.amort-table th, table.amort-table td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border-light);
}
table.amort-table th {
  background: var(--bg-section);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
}
table.amort-table td:first-child, table.amort-table th:first-child { text-align: left; }
.amort-toggle { margin: var(--s-2) 0; text-align: center; }
canvas.amort-chart {
  width: 100%;
  height: 280px;
  background: var(--bg-card-dark);
  border-radius: var(--radius-md);
  margin-top: var(--s-3);
}

/* ---------- Article body ---------- */
.article-body { color: var(--text-body); }
.article-body p { font-size: 1.02rem; line-height: 1.8; margin-bottom: var(--s-2); }
.article-body h2 { margin-top: var(--s-4); margin-bottom: var(--s-2); font-size: 1.7rem; color: var(--text-dark); }
.article-body h3 { margin-top: var(--s-3); font-size: 1.25rem; color: var(--text-dark); font-weight: 600; }
.article-body ul, .article-body ol { margin: var(--s-2) 0 var(--s-2) var(--s-3); }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}
.article-meta .tag {
  background: var(--gradient-btn);
  color: var(--text-white);
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 500;
}

/* ---------- Admin (minimal redesign) ---------- */
.admin-shell { background: var(--bg-section); min-height: 100vh; }
.admin-header {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: var(--s-2) var(--s-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-dark);
}
.admin-nav { display: flex; gap: var(--s-2); }
.admin-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; }
.admin-nav a:hover { color: var(--accent-2); }
.admin-content { max-width: 1200px; margin: 0 auto; padding: var(--s-3); }
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  margin-bottom: var(--s-3);
  min-height: 180px;
  box-shadow: var(--shadow-card);
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  align-items: start;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  min-height: 100px;
  box-shadow: var(--shadow-card);
}
.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
.admin-warn {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: var(--s-2);
  color: #92400e;
  margin-bottom: var(--s-3);
}
table.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}
.admin-table th, .admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  font-size: 0.92rem;
}
.admin-table th {
  background: var(--bg-section);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: var(--s-4);
  color: var(--text-muted);
}
.empty-state i { font-size: 2rem; color: var(--text-muted); }
.empty-state p { font-size: 0.9rem; margin: 0; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .ad-slot, .breadcrumbs, .cta-print, #chat-toggle, #chat-panel, .announcement-bar { display: none; }
  body { background: var(--text-white); }
  .container { max-width: 100%; padding: 0; }
}

/* ---------- Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll[data-delay="1"] { transition-delay: 60ms; }
.animate-on-scroll[data-delay="2"] { transition-delay: 120ms; }
.animate-on-scroll[data-delay="3"] { transition-delay: 180ms; }
.animate-on-scroll[data-delay="4"] { transition-delay: 240ms; }

/* legacy class — keep support */
.fade-in { opacity: 0; transform: translateY(20px); }
.fade-in.visible { opacity: 1; transform: translateY(0); transition: opacity 400ms ease, transform 400ms ease; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll, .fade-in { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
  .hero-orb { animation: none !important; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mb-3 { margin-bottom: var(--s-3); }
.text-muted { color: var(--text-muted); }
.notice {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: var(--s-2);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: #92400e;
}
