/* ===========================================================
   WanderWise — Design System
   Minimal / modern, light + dark theme via CSS variables
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap');

:root {
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Iowan Old Style", serif;

  --accent: #d15a2e;        /* terracotta / sunset */
  --accent-2: #0f6d63;      /* deep ocean teal */
  --accent-rgb: 209, 90, 46;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(40, 28, 18, 0.07);
  --shadow-md: 0 6px 20px rgba(40, 28, 18, 0.09);
  --shadow-lg: 0 20px 50px rgba(40, 28, 18, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light theme (default) — warm sand */
:root,
:root[data-theme="light"] {
  --bg: #faf6f0;
  --bg-elevated: #fffdfa;
  --bg-subtle: #f2ebe0;
  --bg-inset: #ece2d3;
  --border: #e6dbc8;
  --text: #241f19;
  --text-muted: #6b5e4f;
  --text-faint: #9c8f7a;
  --accent-soft: #fbe7db;
  --accent-2-soft: #dfeeea;
  --overlay: rgba(30, 22, 14, 0.45);
  color-scheme: light;
}

/* Dark theme — warm charcoal */
:root[data-theme="dark"] {
  --bg: #17140f;
  --bg-elevated: #1e1a14;
  --bg-subtle: #221d16;
  --bg-inset: #27211a;
  --border: #362e23;
  --text: #f3ede2;
  --text-muted: #ab9d8a;
  --text-faint: #7d7160;
  --accent-soft: rgba(209, 90, 46, 0.18);
  --accent-2-soft: rgba(15, 109, 99, 0.2);
  --overlay: rgba(8, 6, 3, 0.6);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17140f;
    --bg-elevated: #1e1a14;
    --bg-subtle: #221d16;
    --bg-inset: #27211a;
    --border: #362e23;
    --text: #f3ede2;
    --text-muted: #ab9d8a;
    --text-faint: #7d7160;
    --accent-soft: rgba(209, 90, 46, 0.18);
    --accent-2-soft: rgba(15, 109, 99, 0.2);
    --overlay: rgba(8, 6, 3, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s var(--ease), color .25s var(--ease);
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}

.nav-link:hover { background: var(--bg-subtle); color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.icon-btn:hover { background: var(--bg-subtle); transform: translateY(-1px); }
.icon-btn:active { transform: translateY(0) scale(.94); }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .nav-toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease), opacity .16s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.35); transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg-subtle); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover:not(:disabled) { background: var(--bg-subtle); color: var(--text); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-danger { color: #dc2626; }

/* ---------- Cards / Sections ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.section-head { margin-bottom: 36px; max-width: 640px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 12px 0 10px; }
.section-head p { color: var(--text-muted); font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 500'%3E%3Cpath d='M50,420 C300,120 550,480 800,180 S1200,80 1350,220' fill='none' stroke='%23d15a2e' stroke-width='2' stroke-dasharray='2 11' stroke-linecap='round' opacity='0.4'/%3E%3Ccircle cx='50' cy='420' r='5' fill='%23d15a2e' opacity='0.55'/%3E%3Ccircle cx='800' cy='180' r='5' fill='%230f6d63' opacity='0.55'/%3E%3Ccircle cx='1350' cy='220' r='5' fill='%23d15a2e' opacity='0.55'/%3E%3Ccircle cx='1230' cy='95' r='130' fill='none' stroke='%230f6d63' stroke-width='1' opacity='0.2'/%3E%3Ccircle cx='1230' cy='95' r='85' fill='none' stroke='%230f6d63' stroke-width='1' opacity='0.2'/%3E%3Cpath d='M1230,15 L1230,175 M1150,95 L1310,95' stroke='%230f6d63' stroke-width='1' opacity='0.15'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: min(1400px, 140%) auto;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 780px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  margin: 20px 0 18px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.12rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: var(--accent-soft);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Stats ---------- */
.stats-row { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.stat { text-align: center; }
.stat .num { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.stat .label { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Badges / Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tag-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* ---------- Destination cards ---------- */
.dest-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.dest-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display: flex;
  flex-direction: column;
}
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.dest-cover {
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  position: relative;
}
.dest-cover .save-pin {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #1b1d1f;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease);
}
.dest-cover .save-pin:hover { transform: scale(1.08); }
.dest-cover .save-pin.saved { color: #dc2626; }

.dest-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.dest-body h4 { font-size: 1.02rem; }
.dest-body .country { color: var(--text-faint); font-size: 0.82rem; }
.dest-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.dest-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }

.dest-match-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,0.92);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: var(--radius-full);
}

/* ---------- Section rows (recommendation groups) ---------- */
.rec-row { margin-bottom: 44px; }
.rec-row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.rec-row-head h3 { font-size: 1.15rem; }
.rec-row-head p { color: var(--text-muted); font-size: 0.86rem; }
.hscroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.hscroll .dest-card { flex: 0 0 260px; scroll-snap-align: start; }

/* ---------- Filters bar ---------- */
.filters-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}
.search-input, select, input[type=text], input[type=number], input[type=date], textarea {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
  outline: none;
  transition: border-color .15s var(--ease);
}
.search-input:focus, select:focus, input:focus, textarea:focus { border-color: var(--accent); }
.search-input { flex: 1; min-width: 180px; }
select { cursor: pointer; }

.pill-group { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s var(--ease);
}
.pill.active { background: var(--accent); color: white; border-color: transparent; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; animation: fadeIn .2s var(--ease); }
.modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: popIn .22s var(--ease);
}
.modal-cover {
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  font-size: 54px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: #1b1d1f;
}
.modal-body { padding: 22px 26px 28px; }
.modal-body h2 { font-size: 1.4rem; margin-bottom: 4px; }
.modal-body .country { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 14px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; }
.detail-item .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); margin-bottom: 3px; }
.detail-item .v { font-size: 0.92rem; font-weight: 600; }
.detail-item .v span.icon { margin-right: 4px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.97) } to { opacity: 1; transform: translateY(0) scale(1) } }

/* ---------- Progress bar (quiz) ---------- */
.progress-track {
  height: 8px;
  background: var(--bg-inset);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-full);
  transition: width .35s var(--ease);
}

/* ---------- Quiz ---------- */
.quiz-wrap { max-width: 680px; margin: 0 auto; padding: 48px 24px 90px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 0.85rem; color: var(--text-muted); }
.quiz-question { font-size: 1.5rem; margin: 26px 0 22px; line-height: 1.3; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  font-size: 0.98rem;
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .1s var(--ease);
}
.quiz-option:hover { border-color: var(--accent); background: var(--accent-soft); }
.quiz-option.selected { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.quiz-option .opt-letter {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-inset);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  flex-shrink: 0;
  color: var(--text-muted);
}
.quiz-option.selected .opt-letter { background: var(--accent); color: white; }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 30px; }

.quiz-intro, .quiz-analysis, .quiz-guess, .quiz-result { max-width: 680px; margin: 0 auto; padding: 60px 24px 90px; text-align: center; }
.quiz-intro h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 20px 0 14px; }
.quiz-intro p { color: var(--text-muted); font-size: 1.02rem; max-width: 520px; margin: 0 auto 30px; }
.quiz-intro .rules { display: inline-flex; flex-direction: column; gap: 10px; text-align: left; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 30px; }
.quiz-intro .rules div { display: flex; gap: 10px; font-size: 0.9rem; color: var(--text-muted); align-items: flex-start; }

.spinner-orb {
  width: 90px; height: 90px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  animation: pulseSpin 1.8s ease-in-out infinite;
}
@keyframes pulseSpin {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.08) rotate(8deg); }
}
.analysis-msg { color: var(--text-muted); font-size: 1rem; min-height: 24px; transition: opacity .3s var(--ease); }

.guess-card { padding: 30px; margin-top: 10px; }
.guess-options { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Travel DNA result ---------- */
.dna-header { text-align: center; margin-bottom: 10px; }
.dna-icon { font-size: 52px; margin-bottom: 10px; }
.dna-primary-name { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 6px 0 4px; }
.dna-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 30px; }

.dna-breakdown { display: flex; flex-direction: column; gap: 14px; margin: 26px 0; text-align: left; }
.dna-bar-row { display: flex; align-items: center; gap: 12px; }
.dna-bar-row .name { width: 130px; font-size: 0.86rem; font-weight: 600; flex-shrink: 0; text-align: right; }
.dna-bar-row .track { flex: 1; height: 10px; border-radius: var(--radius-full); background: var(--bg-inset); overflow: hidden; }
.dna-bar-row .fill { height: 100%; border-radius: var(--radius-full); }
.dna-bar-row .pct { width: 44px; font-size: 0.82rem; color: var(--text-muted); flex-shrink: 0; }

.radar-wrap { display: flex; justify-content: center; margin: 26px 0; }

.dna-interp {
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin: 24px 0;
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.dna-interp strong { color: var(--text); }

.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

.zodiac-box { margin-top: 26px; text-align: left; padding: 20px 22px; }
.zodiac-box.hidden { display: none; }

/* ---------- Personalities grid ---------- */
.pers-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.pers-card .top { display: flex; align-items: center; gap: 12px; }
.pers-emoji { font-size: 30px; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pers-card h3 { font-size: 1.08rem; }
.pers-card .desc { color: var(--text-muted); font-size: 0.9rem; }
.pers-row { display: flex; gap: 6px; font-size: 0.82rem; }
.pers-row .k { color: var(--text-faint); flex-shrink: 0; }
.pers-card.is-you { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.you-flag { font-size: 0.7rem; font-weight: 700; color: var(--accent); }

/* ---------- Bucket list ---------- */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state .emoji { font-size: 46px; margin-bottom: 14px; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }

/* ---------- Planner ---------- */
.planner-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 880px) { .planner-grid { grid-template-columns: 1fr; } }
.planner-col { display: flex; flex-direction: column; gap: 22px; }
.planner-card { padding: 24px 26px; }
.planner-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 4px; }
.planner-card .sub { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 18px; }
.field-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.field-inline { display: flex; gap: 10px; }
.field-inline > * { flex: 1; }

.savings-progress { margin-top: 6px; }
.savings-progress .top-row { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 8px; }
.savings-progress .top-row strong { color: var(--text); }

.checklist { display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); font-size: 0.9rem; cursor: pointer; }
.check-item:hover { background: var(--bg-subtle); }
.check-item input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.check-item.checked span.txt { text-decoration: line-through; color: var(--text-faint); }
.check-item .cat { font-size: 0.68rem; color: var(--text-faint); margin-left: auto; text-transform: uppercase; letter-spacing: .03em; }

.countdown-grid { display: flex; gap: 12px; justify-content: center; margin: 14px 0 6px; }
.countdown-cell { text-align: center; background: var(--bg-subtle); border-radius: var(--radius-md); padding: 14px 10px; min-width: 68px; }
.countdown-cell .n { font-size: 1.7rem; font-weight: 800; }
.countdown-cell .l { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.summary-item { padding: 16px; border-radius: var(--radius-md); background: var(--bg-subtle); }
.summary-item .k { font-size: 0.74rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.summary-item .v { font-size: 1.05rem; font-weight: 700; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all .25s var(--ease);
  z-index: 2000;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  margin-top: 60px;
  color: var(--text-faint);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }
.fade-in { animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 620px) {
  .hero { padding: 60px 0 40px; }
  .section { padding: 52px 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .dna-bar-row .name { width: 100px; font-size: 0.78rem; }
}
