/* ═══════════════════════════════════════════════
   SpendCheck — Styles (Financial Professional)
   Clean, confident, trustworthy.
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0a0e17;
  --surface: #111827;
  --surface-raised: #1a2332;
  --border: #1e2a3a;
  --border-hover: #2d3f54;
  --accent: #3b82f6;
  --accent-dim: rgba(59, 130, 246, 0.1);
  --accent-glow: rgba(59, 130, 246, 0.15);
  --gold: #f59e0b;
  --gold-dim: rgba(245, 158, 11, 0.1);
  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.1);
  --yellow: #f59e0b;
  --yellow-dim: rgba(245, 158, 11, 0.1);
  --orange: #f97316;
  --orange-dim: rgba(249, 115, 22, 0.1);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.1);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --radius: 10px;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ─── */
.header {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 28px;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

.accent { color: var(--accent); }

.hero-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Layout ─── */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: flex;
  flex-direction: column;
}

/* ─── Sections ─── */
.section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child { border-bottom: none; }

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.section-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: -8px;
}

/* ─── Income Toggle ─── */
.income-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: var(--surface);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.toggle-btn {
  flex: 1;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.toggle-btn:hover {
  color: var(--text-secondary);
}

.toggle-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

/* ─── Inputs ─── */
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.15s;
}

.input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-prefix {
  padding: 10px 0 10px 12px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
}

.input-wrap input,
.text-input {
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
}

.text-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.15s;
}

.text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type="number"] { -moz-appearance: textfield; }

.helper-text {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-note {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

/* ─── Select ─── */
.tax-row { margin-top: 14px; }

.select-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-appearance: none;
}

.select-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.select-input option {
  background: var(--bg);
  color: var(--text);
}

/* ─── Bank Statement Upload ─── */
.paste-section { margin-bottom: 16px; }

.paste-privacy {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--surface);
}

.upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.upload-icon { color: var(--text-muted); }
.upload-text { font-size: 13px; color: var(--text); font-weight: 500; }
.upload-hint { font-size: 11px; color: var(--text-muted); }

.ocr-progress { margin-top: 12px; }
.ocr-bar { height: 4px; background: var(--surface); border-radius: 2px; overflow: hidden; }
.ocr-fill { height: 100%; background: var(--accent); border-radius: 2px; width: 0%; transition: width 0.3s ease; }
.ocr-status { font-size: 12px; color: var(--text-secondary); margin-top: 6px; text-align: center; }

/* ─── Expenses ─── */
.expenses-list { display: flex; flex-direction: column; gap: 8px; }

.expense-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.expense-row .expense-name {
  flex: 1;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: all 0.15s;
}

.expense-row .expense-name:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.expense-row .input-wrap { width: 130px; flex-shrink: 0; }

.expense-remove {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.expense-remove:hover {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.3);
  background: var(--red-dim);
}

.add-expense-btn {
  margin-top: 10px;
  padding: 9px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}

.add-expense-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.total-bar {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.total-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

/* ─── The Thing ─── */
.the-thing { padding-top: 28px; }
.the-thing > div { margin-bottom: 14px; }

.big-price input {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  padding: 14px 12px;
}

.big-price .input-prefix {
  font-size: 18px;
  padding: 14px 0 14px 14px;
}

/* ─── Calculate Button ─── */
.calculate-btn {
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: -0.2px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.calculate-btn:hover:not(.disabled) {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.calculate-btn:active:not(.disabled) { transform: translateY(0); }

.calculate-btn.disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.shake { animation: shake 0.4s ease; }

/* ─── Results ─── */
.results-section {
  animation: fadeIn 0.4s ease;
  border-bottom: none;
}

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

.verdict-box {
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  text-align: center;
  border: 1px solid var(--border);
}

.verdict-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.verdict-sub { font-size: 14px; opacity: 0.8; }

.verdict-easy { background: var(--green-dim); border-color: rgba(16, 185, 129, 0.2); color: var(--green); }
.verdict-easy .verdict-sub { color: var(--green); }
.verdict-doable { background: var(--yellow-dim); border-color: rgba(245, 158, 11, 0.2); color: var(--yellow); }
.verdict-doable .verdict-sub { color: var(--yellow); }
.verdict-stretch { background: var(--orange-dim); border-color: rgba(249, 115, 22, 0.2); color: var(--orange); }
.verdict-stretch .verdict-sub { color: var(--orange); }
.verdict-nope { background: var(--red-dim); border-color: rgba(239, 68, 68, 0.2); color: var(--red); }
.verdict-nope .verdict-sub { color: var(--red); }

/* ─── Stats Row ─── */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 12px;
}

.stat { text-align: center; flex: 1; }

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  display: block;
  line-height: 1.2;
  color: var(--text);
}

.stat-desc {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Progress ─── */
.progress-section { margin-bottom: 24px; }

.progress-context {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.progress-pct { font-weight: 700; color: var(--text); }

.progress-track {
  height: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
  width: 0%;
}

.progress-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ─── Tips ─── */
.tips-box {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.tips-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tips-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.tips-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.tips-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── Share ─── */
.share-row { display: flex; align-items: center; gap: 12px; }

.share-btn {
  padding: 9px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-hint { font-size: 11px; color: var(--text-muted); }

/* ─── Example Chips ─── */
.examples-section { border-bottom: none; padding-top: 12px; }

.examples-label { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

.example-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.example-chip {
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.example-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ═══ Premium ═══ */
.premium-wall { position: relative; margin-top: 16px; }

.premium-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
}

.premium-badge {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.premium-divider-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.premium-section { border-bottom: 1px solid var(--border); padding: 24px 0; }

.premium-lock {
  position: absolute;
  top: 60px;
  left: -24px;
  right: -24px;
  bottom: 0;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
  z-index: 10;
  border-radius: var(--radius);
}

.premium-lock.unlocked { display: none; }

.lock-content { text-align: center; max-width: 300px; }
.lock-content svg { color: var(--gold); margin-bottom: 12px; }

.lock-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.lock-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; }

.lock-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.lock-btn {
  display: inline-block;
  padding: 11px 28px;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.lock-btn:hover { opacity: 0.9; box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35); }

.lock-code-row { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lock-or { font-size: 12px; color: var(--text-muted); }

.lock-code-input {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: monospace;
  font-size: 13px;
  text-align: center;
  width: 200px;
  outline: none;
  transition: all 0.15s;
}

.lock-code-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.lock-code-btn {
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.lock-code-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Goals ─── */
.goals-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

.goal-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.goal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.goal-name { font-weight: 600; font-size: 14px; }
.goal-target { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--accent); font-size: 14px; }

.goal-progress-track { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.goal-progress-fill { height: 100%; background: var(--green); border-radius: 2px; transition: width 0.5s ease; }

.goal-footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-secondary); }
.goal-actions { display: flex; gap: 6px; }

.goal-log-btn, .goal-delete-btn {
  padding: 4px 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.goal-log-btn:hover { border-color: rgba(16, 185, 129, 0.4); color: var(--green); }
.goal-delete-btn:hover { border-color: rgba(239, 68, 68, 0.4); color: var(--red); }

.add-goal-btn {
  width: 100%;
  padding: 9px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.add-goal-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ─── Wishlist ─── */
.wishlist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }

.wish-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.wish-info { display: flex; flex-direction: column; }
.wish-name { font-size: 13px; font-weight: 600; }
.wish-feasibility { font-size: 11px; margin-top: 2px; }
.wish-price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; }

.wish-remove {
  margin-left: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}

.wish-remove:hover { color: var(--red); }

.wishlist-add { display: flex; gap: 8px; align-items: center; }
.wishlist-add .text-input { flex: 1; }

.wish-add-btn {
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.wish-add-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ─── Trends ─── */
.trends-chart { min-height: 100px; margin-bottom: 12px; }
.trends-empty { font-size: 13px; color: var(--text-muted); text-align: center; padding: 28px 0; }
.trends-months { display: flex; gap: 6px; flex-wrap: wrap; }

.trend-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.trend-bar-label { font-size: 11px; color: var(--text-secondary); width: 50px; text-align: right; flex-shrink: 0; font-weight: 600; }
.trend-bar-track { flex: 1; height: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.trend-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.trend-bar-value { font-size: 11px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--text); width: 70px; flex-shrink: 0; }

/* ─── Dashboard Log Spending ─── */
.dash-upload-section { margin-bottom: 16px; }

.dash-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--bg);
  text-align: center;
}

.dash-upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.dash-upload-text { font-size: 13px; color: var(--text); font-weight: 500; }
.dash-upload-hint { font-size: 11px; color: var(--text-muted); }

.dash-divider-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: 14px 0;
  position: relative;
}

.dash-divider-text::before,
.dash-divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: var(--border);
}

.dash-divider-text::before { left: 0; }
.dash-divider-text::after { right: 0; }

.dash-manual-entry { margin-bottom: 14px; }

.dash-manual-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dash-manual-row .select-input { flex: 1; }

.dash-log-btn {
  padding: 10px 18px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.dash-log-btn:hover { opacity: 0.9; }

.dash-recent { margin-bottom: 8px; }

.dash-recent-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.dash-recent-entry:last-child { border-bottom: none; }

.dash-recent-cat { color: var(--text-secondary); }
.dash-recent-amount { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.dash-recent-date { font-size: 11px; color: var(--text-muted); }
.dash-recent-del {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 14px; padding: 2px 6px;
}
.dash-recent-del:hover { color: var(--red); }

.dash-privacy-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 500px) {
  .dash-manual-row { flex-wrap: wrap; }
  .dash-manual-row .select-input { min-width: 100%; }
}

/* ─── Roadmap & Credits ─── */
.roadmap-page { padding-top: 20px; }

/* ═══════════════════════════════════════════════
   Legal Pages (Privacy, Terms)
   ═══════════════════════════════════════════════ */
.legal-page { padding-top: 20px; max-width: 800px; }
.legal-updated { color: #6b7280; font-size: 0.85rem; margin-bottom: 24px; }
.legal-content { line-height: 1.7; color: #cbd5e1; }
.legal-content h3 { color: #e2e8f0; font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; margin-top: 32px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.legal-content h4 { color: #94a3b8; font-size: 1rem; margin-top: 20px; margin-bottom: 8px; }
.legal-content p { margin-bottom: 12px; }
.legal-content ul { margin-bottom: 16px; padding-left: 20px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: #3b82f6; text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: #e2e8f0; }
.legal-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; font-size: 0.85rem; }
.legal-footer a { color: #6b7280; text-decoration: none; }
.legal-footer a:hover { color: #3b82f6; }
.legal-sep { color: #374151; margin: 0 12px; }
.settings-legal-links { display: flex; flex-direction: column; gap: 8px; }
.settings-legal-link { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; color: #94a3b8; text-decoration: none; font-size: 0.9rem; transition: all 0.2s; }
.settings-legal-link:hover { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.2); color: #3b82f6; }
.settings-legal-link svg { flex-shrink: 0; opacity: 0.6; }
.settings-legal-link:hover svg { opacity: 1; }

.credits-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.credit-card {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex: 1;
  min-width: 200px;
}

.credit-role {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 6px;
}

.credit-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.credit-links { display: flex; gap: 10px; }

.credit-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.credit-link:hover { color: var(--text); }

.roadmap-section { margin-bottom: 28px; }

.roadmap-status-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.roadmap-live {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.roadmap-next {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.roadmap-future {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.roadmap-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s;
}

.roadmap-item:hover { border-color: var(--border-hover); }

.roadmap-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}

.roadmap-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  flex-shrink: 0;
  margin-top: 6px;
}

.upcoming .roadmap-dot { border-color: var(--accent); }
.future .roadmap-dot { border-color: var(--text-muted); }

.roadmap-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.roadmap-item-title {
  font-size: 14px;
  font-weight: 600;
}

.roadmap-item-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.roadmap-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 4px;
}

.roadmap-tag.pro {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.suggest-box {
  text-align: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.suggest-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.suggest-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.suggest-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.suggest-link:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent);
}

/* ─── Settings ─── */
.settings-page { padding-top: 20px; }

.settings-empty {
  text-align: center;
  padding: 28px;
  color: var(--text-secondary);
  font-size: 14px;
}

.settings-create-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 22px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.settings-create-btn:hover { opacity: 0.9; }

.settings-create-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.settings-create-form .text-input { max-width: 220px; }

.settings-profile-card {
  display: flex;
  gap: 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.settings-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.settings-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: white;
}

.settings-avatar-colors {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 120px;
}

.settings-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}

.settings-color-swatch:hover { transform: scale(1.15); }
.settings-color-swatch.active { border-color: white; transform: scale(1.15); }

.settings-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-field { }

.settings-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.settings-value {
  font-size: 14px;
  color: var(--text);
}

.settings-save-btn {
  padding: 10px 22px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.15s;
}

.settings-save-btn:hover { opacity: 0.9; }

.settings-saved {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}

.settings-cloud-card,
.settings-data-card {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.settings-cloud-card .settings-field,
.settings-data-card .settings-field { margin-bottom: 10px; }

.settings-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.settings-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.settings-export-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent);
}

.settings-danger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--red-dim);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: var(--red);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.settings-danger-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--red);
}

.settings-danger-label { color: var(--red); }

.settings-danger-card {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
}

.settings-danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.settings-danger-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.settings-danger-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.settings-danger-divider {
  height: 1px;
  background: rgba(239, 68, 68, 0.15);
  margin: 14px 0;
}

.settings-signout-btn {
  padding: 9px 18px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.settings-signout-btn:hover { border-color: var(--text-secondary); }

.settings-delete-btn {
  padding: 9px 18px;
  background: var(--red);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.settings-delete-btn:hover { opacity: 0.85; }

@media (max-width: 500px) {
  .settings-profile-card { flex-direction: column; align-items: center; }
  .settings-fields { align-items: center; text-align: center; }
  .settings-save-btn { align-self: center; }
  .settings-danger-row { flex-direction: column; text-align: center; }
}

/* ─── Pricing ─── */
.pricing-page { padding-top: 20px; max-width: 960px; margin: 0 auto; }

.pricing-hero { text-align: center; padding: 20px 0 32px; }

.pricing-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.pricing-subtitle { font-size: 15px; color: var(--text-secondary); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card-pro {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.08);
}

.pricing-card-proplus {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.06);
}

.pricing-popular {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
}

.pricing-card-header { margin-bottom: 20px; }

.pricing-tier-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.pricing-tier-pro { color: var(--accent); }
.pricing-tier-proplus { color: #8b5cf6; }

.pricing-price { margin: 8px 0; }

.pricing-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 20px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.pricing-feature.disabled { color: var(--text-muted); }
.pricing-feature.highlight { font-weight: 500; }
.pricing-feature.highlight-pp { font-weight: 500; }

.pricing-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}

.pricing-btn-free {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text);
}

.pricing-btn-free:hover { border-color: var(--text-secondary); }

.pricing-btn-pro {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.pricing-btn-pro:hover { box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35); }

.pricing-btn-proplus {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.pricing-btn-proplus:hover { box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35); }

.pricing-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Trust */
.pricing-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.trust-item {
  display: flex;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.trust-item svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.trust-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.trust-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

/* Comparison */
.compare-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  padding: 11px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.compare-row:last-child { border-bottom: none; }

.compare-header {
  background: var(--surface-raised);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.compare-feature { color: var(--text); }
.compare-us { color: var(--text-secondary); }
.compare-them { color: var(--text-muted); }
.compare-win { color: var(--green); font-weight: 600; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.faq-q { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.faq-a { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

@media (max-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .pricing-trust { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr; font-size: 11px; padding: 9px 10px; }
}

/* ─── Footer ─── */
.footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--border);
}

.footer-main { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.footer-sub { font-size: 12px; color: var(--text-muted); }

.footer-links {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.footer-icon {
  display: inline-flex;
  color: var(--text-muted);
  transition: color 0.15s;
  cursor: pointer;
}

.footer-icon svg { pointer-events: none; }
.footer-icon:hover { color: var(--text); }

/* ═══ Navigation ═══ */
.sc-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.sc-nav-inner {
  max-width: 100%;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.sc-nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.sc-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.sc-nav-links::-webkit-scrollbar { display: none; }

.sc-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
}

.sc-nav-link:hover {
  color: var(--text-secondary);
  background: var(--surface);
}

.sc-nav-link.active {
  color: var(--text);
  background: var(--surface-raised);
}

.sc-nav-link svg { flex-shrink: 0; }

.sc-nav-pro {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.sc-nav-label { }

/* ═══ Premium Overlay (for pro pages) ═══ */
.sc-premium-overlay {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-premium-lock-card {
  text-align: center;
  max-width: 380px;
  padding: 48px 32px;
}

.sc-premium-lock-card svg { color: var(--gold); margin-bottom: 20px; }

.sc-lock-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sc-lock-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.sc-lock-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
}

.sc-lock-period {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.sc-lock-btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.sc-lock-btn:hover { opacity: 0.9; }

.sc-lock-code { margin-top: 28px; }
.sc-lock-or { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; display: block; }

.sc-lock-code-row { display: flex; gap: 8px; justify-content: center; }

.sc-lock-input {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: monospace;
  font-size: 14px;
  text-align: center;
  width: 180px;
  outline: none;
  transition: all 0.15s;
}

.sc-lock-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.sc-lock-redeem {
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.sc-lock-redeem:hover { border-color: var(--accent); color: var(--accent); }

/* ═══ Page Layout ═══ */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  min-height: calc(100vh - 64px);
}

.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--text);
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ═══ Dashboard ═══ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dash-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.dash-card-wide { grid-column: 1 / -1; }

.dash-card-accent {
  border-color: rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.dash-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.dash-card-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.dash-card-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.dash-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 16px 0;
}

.dash-compare-col { text-align: center; }

.dash-compare-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.dash-compare-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.dash-compare-arrow { color: var(--text-muted); }

.dash-goals-list { display: flex; flex-direction: column; gap: 12px; }

.dash-goal-mini {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.dash-goal-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dash-goal-name { font-size: 13px; font-weight: 600; }
.dash-goal-pct { font-size: 13px; font-weight: 700; color: var(--accent); }

.dash-goal-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.dash-goal-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.dash-more-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.dash-more-link:hover { text-decoration: underline; }

.dash-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}

.dash-empty a { color: var(--accent); text-decoration: none; }
.dash-empty a:hover { text-decoration: underline; }

.dash-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dash-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.dash-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ═══ Goals Page ═══ */
.goals-new-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 28px;
}

.goals-new-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.goals-add-form {
  margin-bottom: 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.goals-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.goals-form-field { display: flex; flex-direction: column; }

.goals-form-actions { display: flex; gap: 10px; }

.goals-save-btn {
  padding: 10px 24px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.goals-save-btn:hover { box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

.goals-cancel-btn {
  padding: 10px 18px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.goals-cancel-btn:hover { border-color: var(--text-muted); }

.goals-list-full { display: flex; flex-direction: column; gap: 16px; }

.goals-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.goals-empty svg { margin-bottom: 16px; }
.goals-empty p { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.goals-empty span { font-size: 13px; }

.goal-card-full {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s;
}

.goal-card-full:hover { border-color: var(--border-hover); }

.goal-card-full.goal-complete {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.goal-full-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.goal-full-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.goal-done-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.goal-full-date { font-size: 12px; color: var(--text-muted); display: block; margin-top: 4px; }

.goal-full-target {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.goal-full-progress { margin-bottom: 20px; }

.goal-full-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.goal-full-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.goal-full-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.goal-full-fill.fill-complete { background: var(--green); }

.goal-full-remaining {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 6px;
}

.goal-full-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.goal-action-log {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--green-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  color: var(--green);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.goal-action-log:hover { background: rgba(16, 185, 129, 0.15); }

.goal-action-delete {
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.goal-action-delete:hover { border-color: rgba(239, 68, 68, 0.4); color: var(--red); }

.goal-log-form {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
}

.goal-log-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.goal-log-save {
  padding: 9px 16px;
  background: var(--green);
  border: none;
  border-radius: 6px;
  color: #000;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.goal-log-cancel {
  padding: 9px 14px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.goal-history-toggle { margin-top: 4px; }

.goal-history-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.goal-history-btn:hover { color: var(--text-secondary); }

.goal-history-list {
  margin-top: 10px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.goal-history-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.goal-history-entry:last-child { border-bottom: none; }
.goal-history-date { color: var(--text-muted); width: 80px; flex-shrink: 0; }
.goal-history-amount { color: var(--green); font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.goal-history-note { color: var(--text-secondary); }

/* Goal celebration */
.goal-celebration {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.celebration-inner { text-align: center; padding: 48px; }

.celebration-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
  margin: 20px 0 10px;
}

.celebration-sub { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }

.celebration-btn {
  padding: 12px 32px;
  background: var(--green);
  border: none;
  border-radius: 10px;
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* ═══ Wishlist Page ═══ */
.wish-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.wish-stat {
  flex: 1;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wish-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wish-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.wish-controls {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.wish-sort-btn {
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.wish-sort-btn.active {
  background: var(--accent-dim);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--accent);
}

.wish-add-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.wish-add-form .text-input { flex: 1; }

.wish-add-btn-full {
  padding: 10px 20px;
  background: var(--gold-dim);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  color: var(--gold);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.wish-add-btn-full:hover { background: rgba(245, 158, 11, 0.15); }

.wish-list-full { display: flex; flex-direction: column; gap: 10px; }

.wish-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.wish-empty svg { margin-bottom: 16px; }
.wish-empty p { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.wish-empty span { font-size: 13px; }

.wish-card-full {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s;
}

.wish-card-full:hover { border-color: var(--border-hover); }

.wish-card-best {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.wish-best-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.wish-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wish-card-info { display: flex; flex-direction: column; gap: 4px; }
.wish-card-name { font-size: 15px; font-weight: 600; }
.wish-card-feasibility { font-size: 12px; font-weight: 600; }

.wish-card-right { display: flex; align-items: center; gap: 16px; }

.wish-card-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.wish-card-remove {
  padding: 6px;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.wish-card-remove:hover {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.3);
}

/* ═══ Trends Page ═══ */
.trends-insight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 600;
}

.trends-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
}

.trends-stat {
  flex: 1;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trends-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trends-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.trends-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.trends-chart-section { margin-bottom: 40px; }

.trends-chart-full { display: flex; flex-direction: column; gap: 8px; }

.trends-chart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.trends-chart-empty svg { margin-bottom: 16px; }
.trends-chart-empty p { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.trends-chart-empty span { font-size: 13px; }

.trend-bar-row-full {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.trend-bar-label-full {
  font-size: 12px;
  color: var(--text-secondary);
  width: 44px;
  text-align: right;
  flex-shrink: 0;
  font-weight: 600;
}

.trend-bar-track-full {
  flex: 1;
  height: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.trend-bar-fill-full {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.trend-bar-value-full {
  font-size: 13px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text);
  width: 80px;
  flex-shrink: 0;
}

.trend-change {
  font-size: 11px;
  font-weight: 700;
  width: 70px;
  flex-shrink: 0;
}

.trend-up { color: var(--red); }
.trend-down { color: var(--green); }

.trends-categories { display: flex; flex-direction: column; gap: 12px; }

.trends-cat-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 20px 0;
}

.trends-cat-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.trends-cat-row:last-child { border-bottom: none; }

.trends-cat-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.trends-cat-name { font-size: 13px; font-weight: 600; }
.trends-cat-pct { font-size: 13px; font-weight: 700; color: var(--accent); }

.trends-cat-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.trends-cat-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.trends-cat-amount {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

/* ═══ Profile System ═══ */
.sc-profile-wrap {
  position: relative;
  flex-shrink: 0;
  margin-left: 12px;
}

.sc-profile-avatar-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.15s;
}

.sc-profile-avatar-btn:hover { opacity: 0.85; }

.sc-profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  user-select: none;
}

.sc-profile-avatar-empty {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.sc-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 200;
  overflow: hidden;
  padding: 8px 0;
}

.sc-dd-current {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.sc-dd-avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
  flex-shrink: 0;
}

.sc-dd-avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
  flex-shrink: 0;
}

.sc-dd-info { display: flex; flex-direction: column; }
.sc-dd-name { font-size: 14px; font-weight: 600; color: var(--text); }
.sc-dd-label { font-size: 11px; color: var(--text-muted); }

.sc-dd-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.sc-dd-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px 4px;
}

.sc-dd-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.sc-dd-profile-btn:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.sc-dd-action {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.sc-dd-action:hover { background: var(--surface-raised); color: var(--text); }
.sc-dd-action-primary { color: var(--accent); font-weight: 600; }
.sc-dd-action-primary:hover { color: var(--accent); }
.sc-dd-danger { color: var(--red); }
.sc-dd-danger:hover { color: var(--red); background: var(--red-dim); }

.sc-dd-no-profile { padding: 16px; text-align: center; }
.sc-dd-no-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.sc-dd-no-sub { font-size: 12px; color: var(--text-muted); }

.sc-dd-create-form { padding: 8px 16px 12px; }

.sc-dd-name-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  margin-bottom: 8px;
  transition: all 0.15s;
}

.sc-dd-name-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.sc-dd-form-actions { display: flex; gap: 6px; }

.sc-dd-form-save {
  flex: 1;
  padding: 7px 14px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.sc-dd-form-save:hover { opacity: 0.9; }

.sc-dd-form-cancel {
  padding: 7px 14px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.sc-dd-form-cancel:hover { border-color: var(--text-muted); }

.sc-profile-create-inline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.sc-profile-create-inline .sc-lock-input { width: 220px; }

/* ═══ Auth Page ═══ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  justify-content: center;
}

.auth-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.auth-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  color: var(--text);
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  background: var(--bg);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.auth-tab:hover { color: var(--text-secondary); }

.auth-tab.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-field { display: flex; flex-direction: column; }

.auth-field .text-input {
  margin-top: 0;
}

.auth-error {
  color: var(--red);
  font-size: 13px;
  min-height: 18px;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.auth-submit:hover {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  color: #3c4043;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.auth-google-btn:hover {
  background: #f7f8f8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth-footer-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ═══ Auth Nav Link ═══ */
.sc-nav-signin {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: var(--accent-dim);
  transition: all 0.15s;
  margin-left: 12px;
  flex-shrink: 0;
}

.sc-nav-signin:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent);
}

.sc-dd-cloud-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 6px;
}

/* ═══ Pro++ Badge (Nav) ═══ */
.sc-nav-proplus {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* ═══ Pro++ Lock Overlay ═══ */
.sc-proplus-overlay { }

.sc-proplus-lock-card svg { color: #8b5cf6 !important; }

.sc-proplus-price { color: #8b5cf6 !important; }

.sc-proplus-btn {
  background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25) !important;
}

.sc-proplus-btn:hover { opacity: 0.9; }

/* ═══ Roadmap Pro++ Tag ═══ */
.roadmap-tag.proplus {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ═══ Bills Page ═══ */
.bills-alert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--red-dim);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.bills-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.bills-summary-item {
  flex: 1;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bills-summary-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bills-summary-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.bills-notif-btn {
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 6px;
  color: #8b5cf6;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  align-self: flex-start;
}

.bills-notif-btn:hover { background: rgba(139, 92, 246, 0.15); }

.bills-notif-enabled {
  background: var(--green-dim);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--green);
  cursor: default;
}

.bills-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 24px;
}

.bills-add-btn:hover { border-color: #8b5cf6; color: #8b5cf6; }

.bills-form {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
}

.bills-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.bills-form-field {
  display: flex;
  flex-direction: column;
}

.bills-form-actions { display: flex; gap: 10px; }

.bills-save-btn {
  padding: 10px 24px;
  background: #8b5cf6;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.bills-save-btn:hover { box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }

.bills-cancel-btn {
  padding: 10px 18px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.bills-cancel-btn:hover { border-color: var(--text-muted); }

.bills-list { display: flex; flex-direction: column; gap: 10px; }

.bills-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.bills-empty svg { margin-bottom: 16px; color: var(--text-muted); }
.bills-empty p { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.bills-empty span { font-size: 13px; }

.bill-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s;
}

.bill-card:hover { border-color: var(--border-hover); }

.bill-overdue { border-color: rgba(239, 68, 68, 0.3); background: linear-gradient(135deg, var(--surface) 0%, rgba(239, 68, 68, 0.03) 100%); }
.bill-urgent { border-color: rgba(239, 68, 68, 0.2); }
.bill-soon { border-color: rgba(245, 158, 11, 0.2); }
.bill-safe { }
.bill-paid { opacity: 0.6; }

.bill-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.bill-card-left { display: flex; align-items: center; gap: 12px; }

.bill-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bill-overdue-dot { background: var(--red); }
.bill-urgent-dot { background: var(--red); }
.bill-soon-dot { background: var(--yellow); }
.bill-safe-dot { background: var(--green); }
.bill-status-paid { background: var(--text-muted); }

.bill-card-info { display: flex; flex-direction: column; }
.bill-card-name { font-size: 15px; font-weight: 600; }
.bill-card-meta { font-size: 12px; color: var(--text-muted); }

.bill-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.bill-card-amount { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; }
.bill-card-due { font-size: 12px; font-weight: 600; }
.bill-due-paid { color: var(--text-muted); }

.bill-card-actions { display: flex; gap: 8px; }

.bill-pay-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--green-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  color: var(--green);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.bill-pay-btn:hover { background: rgba(16, 185, 129, 0.15); }

.bill-edit-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.bill-edit-btn:hover { border-color: var(--accent); color: var(--accent); }

.bill-delete-btn {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.bill-delete-btn:hover { color: var(--red); border-color: rgba(239, 68, 68, 0.3); }

/* ═══ Spending Limits Page ═══ */
.limits-alert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--red-dim);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.limits-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.limits-summary-item {
  flex: 1;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.limits-summary-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.limits-summary-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.limits-list { display: flex; flex-direction: column; gap: 12px; }

.limit-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s;
}

.limit-card:hover { border-color: var(--border-hover); }

.limit-over { border-color: rgba(239, 68, 68, 0.3); background: linear-gradient(135deg, var(--surface) 0%, rgba(239, 68, 68, 0.03) 100%); }
.limit-warn { border-color: rgba(245, 158, 11, 0.2); }

.limit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.limit-card-name { font-size: 15px; font-weight: 600; }

.limit-card-right { display: flex; align-items: baseline; gap: 2px; font-size: 14px; }
.limit-card-spent { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.limit-card-sep { color: var(--text-muted); }
.limit-card-limit-value { color: var(--text-secondary); font-family: 'Space Grotesk', sans-serif; font-weight: 600; }

.limit-bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.limit-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.limit-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.limit-card-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.limit-edit-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.limit-edit-label { font-weight: 600; }

.limit-edit-input {
  width: 80px;
  padding: 5px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: all 0.15s;
}

.limit-edit-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* ═══ Net Worth Page ═══ */
.nw-hero {
  text-align: center;
  padding: 36px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 24px;
}

.nw-hero-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.nw-hero-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 700;
  display: block;
}

.nw-positive { color: var(--green); }
.nw-negative { color: var(--red); }

.nw-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.nw-summary-item {
  flex: 1;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nw-summary-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nw-summary-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.nw-summary-assets .nw-summary-value { color: var(--green); }
.nw-summary-debts .nw-summary-value { color: var(--red); }

.nw-section {
  margin-bottom: 32px;
}

.nw-section-header {
  margin-bottom: 16px;
}

.nw-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nw-section-title svg { color: var(--text-secondary); }

.nw-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.nw-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s;
}

.nw-item:hover { border-color: var(--border-hover); }

.nw-item-info { display: flex; flex-direction: column; gap: 2px; }
.nw-item-name { font-size: 14px; font-weight: 600; }
.nw-item-detail { font-size: 13px; color: var(--text-secondary); font-family: 'Space Grotesk', sans-serif; font-weight: 600; }

.nw-item-remove {
  padding: 6px;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.nw-item-remove:hover { color: var(--red); border-color: rgba(239, 68, 68, 0.3); }

.nw-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.nw-add-btn:hover { border-color: #8b5cf6; color: #8b5cf6; }

.nw-empty {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
}

.nw-inline-form {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
}

.nw-form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}

.nw-form-actions { display: flex; gap: 10px; }

.nw-form-save {
  padding: 9px 22px;
  background: #8b5cf6;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.nw-form-save:hover { box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }

.nw-form-cancel {
  padding: 9px 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.nw-form-cancel:hover { border-color: var(--text-muted); }

/* Net Worth Chart */
.nw-chart { display: flex; flex-direction: column; gap: 6px; }

.nw-chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nw-chart-date {
  font-size: 11px;
  color: var(--text-secondary);
  width: 70px;
  text-align: right;
  flex-shrink: 0;
  font-weight: 600;
}

.nw-chart-bar-track {
  flex: 1;
  height: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.nw-chart-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.nw-chart-val {
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text);
  width: 90px;
  flex-shrink: 0;
}

/* ═══ Debt Payoff Page ═══ */
.debt-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.debt-strategy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.debt-strategy-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.debt-strategy-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.debt-strategy-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.debt-snowball-header svg { color: var(--accent); }
.debt-avalanche-header svg { color: var(--green); }

.debt-strategy-stats {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.debt-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.debt-stat-label { font-size: 13px; color: var(--text-secondary); }
.debt-stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; }

.debt-payoff-order {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
}

.debt-order-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.debt-order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.debt-order-num {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.debt-order-name { flex: 1; font-size: 13px; font-weight: 600; }
.debt-order-month { font-size: 12px; color: var(--text-muted); font-weight: 600; }

.debt-savings-card {
  padding: 24px;
  background: var(--green-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.debt-savings-icon { color: var(--green); flex-shrink: 0; }
.debt-savings-text { font-size: 14px; color: var(--text); line-height: 1.5; }
.debt-savings-text strong { color: var(--green); }

.debt-baseline-stats { margin-bottom: 8px; }

/* ═══ Emergency Fund Page ═══ */
.ef-hero {
  text-align: center;
  padding: 36px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 24px;
  transition: border-color 0.3s;
}

.ef-hero-good { border-color: rgba(16, 185, 129, 0.3); }
.ef-hero-ok { border-color: rgba(245, 158, 11, 0.3); }
.ef-hero-low { border-color: rgba(239, 68, 68, 0.3); }

.ef-hero-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 8vw, 56px);
  font-weight: 700;
  display: block;
  color: var(--text);
}

.ef-hero-good .ef-hero-value { color: var(--green); }
.ef-hero-ok .ef-hero-value { color: var(--yellow); }
.ef-hero-low .ef-hero-value { color: var(--red); }

.ef-hero-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.ef-inputs {
  display: flex;
  gap: 16px;
}

.ef-input-group { flex: 1; }

.ef-milestones {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ef-milestone {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s;
}

.ef-milestone-done {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.ef-milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ef-milestone-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.ef-milestone-target {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
}

.ef-milestone-bar-track {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.ef-milestone-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s ease;
}

.ef-milestone-footer {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.ef-milestone-pct { font-weight: 700; color: var(--text); }
.ef-milestone-remaining { color: var(--text-secondary); }

/* ─── Mobile ─── */
@media (max-width: 700px) {
  /* Nav becomes bottom tab bar */
  .sc-nav {
    top: auto;
    bottom: 0;
    height: auto;
    border-bottom: none;
    border-top: 1px solid var(--border);
  }
  .sc-nav-inner {
    flex-direction: row;
    justify-content: center;
    padding: 0;
  }
  .sc-nav-logo { display: none; }
  .sc-nav-links {
    width: 100%;
    justify-content: space-around;
    padding: 8px 4px 12px;
    gap: 0;
  }
  .sc-nav-link {
    flex-direction: column;
    padding: 6px 8px;
    font-size: 10px;
    gap: 3px;
    border-radius: 6px;
  }
  .sc-nav-link svg { width: 18px; height: 18px; }
  .sc-nav-pro { font-size: 7px; padding: 1px 4px; }
  body { padding-top: 0 !important; padding-bottom: 72px !important; }
  .sc-premium-overlay, .sc-proplus-overlay { top: 0; bottom: 72px; }
  .bills-summary { flex-direction: column; gap: 10px; }
  .bills-form-row { flex-wrap: wrap; }
  .limits-summary { flex-direction: column; gap: 10px; }
  .nw-summary { flex-direction: column; gap: 10px; }
  .nw-form-row { flex-wrap: wrap; }
  .debt-compare { grid-template-columns: 1fr; }
  .ef-inputs { flex-direction: column; gap: 10px; }
  .sc-nav-signin { position: fixed; top: 12px; right: 52px; z-index: 150; margin-left: 0; padding: 6px 12px; font-size: 12px; }
  .sc-profile-wrap { position: fixed; top: 12px; right: 12px; z-index: 150; margin-left: 0; }
  .sc-profile-dropdown { right: 0; top: calc(100% + 4px); }

  /* Page layout */
  .page-container { padding: 32px 16px 40px; }
  .page-header { margin-bottom: 28px; }

  /* Dashboard */
  .dashboard-grid { grid-template-columns: 1fr; }
  .dash-actions { grid-template-columns: 1fr; }

  /* Goals */
  .goals-form-row { flex-direction: column; }
  .goal-log-row { flex-wrap: wrap; }
  .goal-log-row .text-input { min-width: 100%; }

  /* Wishlist */
  .wish-stats { flex-direction: column; gap: 10px; }
  .wish-add-form { flex-wrap: wrap; }
  .wish-add-form .text-input { min-width: 100%; }

  /* Trends */
  .trends-stats { flex-direction: column; gap: 10px; }
  .trend-change { width: auto; }
}

@media (max-width: 500px) {
  .header { padding: 36px 16px 20px; }
  .container { padding: 0 16px 40px; }
  .expenses-grid { grid-template-columns: 1fr; }
  .input-row { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; padding: 14px; }
  .stat-divider { display: none; }
  .stat { min-width: 30%; }
}
