/* ==========================================================================
   UMBRA PAY — DESIGN TOKENS
   Single source of visual truth. Change here, change everywhere.
   ========================================================================== */
:root {
  /* Surfaces */
  --bg-base:        #07070a;
  --bg-deep:        #0a0a0d;
  --bg-card:        #111114;
  --bg-card-2:      #16161b;
  --bg-elev:        #1c1c22;
  --bg-input:       #0e0e12;

  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-soft:    rgba(255, 255, 255, 0.09);
  --border-strong:  rgba(255, 255, 255, 0.14);

  /* Text */
  --text-primary:   #f4f4f6;
  --text-secondary: #a8a8b3;
  --text-muted:     #6b6b78;
  --text-faint:     #4a4a55;

  /* Brand accent — cool electric silver / cyan */
  --accent:         #b8d4ff;
  --accent-soft:    rgba(184, 212, 255, 0.14);
  --accent-glow:    rgba(184, 212, 255, 0.35);
  --accent-deep:    #6f9eff;

  /* Status */
  --success:        #4ade80;
  --success-soft:   rgba(74, 222, 128, 0.12);
  --warn:           #f5a524;
  --warn-soft:      rgba(245, 165, 36, 0.12);
  --danger:         #f87171;
  --danger-soft:    rgba(248, 113, 113, 0.12);

  /* Vault accent palette (cycled) */
  --v1: #b8d4ff;
  --v2: #c4b5fd;
  --v3: #6ee7b7;
  --v4: #fcd34d;
  --v5: #f9a8d4;
  --v6: #93c5fd;
  --v7: #fdba74;
  --v8: #a5f3fc;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);
  --inner-line: inset 0 1px 0 rgba(255,255,255,0.03);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-med:  280ms;
  --t-slow: 480ms;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(111, 158, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(184, 212, 255, 0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  top: -20%; left: 50%;
  width: 800px; height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(111, 158, 255, 0.08), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: drift 20s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50%      { transform: translate(-50%, 30px) scale(1.05); }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-5) var(--s-7);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  background: rgba(7, 7, 10, 0.7);
  position: sticky; top: 0;
}

.brand { display: flex; align-items: center; gap: var(--s-3); }

.brand-mark {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #07070a;
  display: grid; place-items: center;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1) inset,
    0 0 24px var(--accent-glow);
}
.brand-mark.small {
  width: 24px; height: 24px;
  border-radius: var(--r-sm);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-pill {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 6px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.app {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: var(--s-8) var(--s-7) var(--s-9);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { max-width: 720px; margin-bottom: var(--s-8); }

.eyebrow, .card-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}
.eyebrow {
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(184, 212, 255, 0.2);
}

h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: var(--s-4) 0 var(--s-5);
  background: linear-gradient(180deg, #ffffff 30%, #9da0a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h1 em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.55;
}

/* ==========================================================================
   GRID
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--s-6);
}
.col { display: flex; flex-direction: column; gap: var(--s-6); min-width: 0; }

@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-2xl);
  padding: var(--s-7);
  box-shadow: var(--shadow-sm), var(--inner-line);
  transition: border-color var(--t-med) var(--ease);
}
.card:hover { border-color: var(--border-soft); }

.card-elevated {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  box-shadow: var(--shadow-md), var(--inner-line);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}
.card-head h2, .card-head h3 { margin: 0; }

h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 var(--s-2);
}

.muted { color: var(--text-muted); margin: var(--s-2) 0 0; font-size: 13px; }

/* ==========================================================================
   MONEY INPUT
   ========================================================================== */
.money-input {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-3);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.money-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.money-input .currency {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-muted);
}
.money-input input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.025em;
  min-width: 0;
}
.money-input input::-webkit-outer-spin-button,
.money-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.money-input input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.money-input .cadence {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.micro-row {
  display: flex;
  justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.micro-label { color: var(--text-muted); }
.micro-value { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   GHOST SELECT
   ========================================================================== */
.ghost-select {
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  color: var(--text-primary);
  padding: 10px 36px 10px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a8a8b3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--t-fast);
}
.ghost-select:hover { border-color: var(--border-strong); }
.ghost-select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ghost-select option { background: var(--bg-card); color: var(--text-primary); }
.ghost-select.wide { width: 100%; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(180deg, #ffffff 0%, #d8d8de 100%);
  color: #07070a;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 8px 20px rgba(0,0,0,0.4);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 12px 28px rgba(0,0,0,0.5);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-ghost {
  background: var(--bg-elev);
  color: var(--text-primary);
  border-color: var(--border-soft);
}
.btn-ghost:hover { background: var(--bg-card-2); border-color: var(--border-strong); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 20px; font-size: 14px; }

.btn .plus {
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
}

/* ==========================================================================
   BUCKET LIST
   ========================================================================== */
.bucket-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.bucket {
  display: grid;
  grid-template-columns: 8px 1fr 110px 36px;
  gap: var(--s-3);
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--s-3);
  transition: border-color var(--t-fast), background var(--t-fast);
  animation: bucketIn var(--t-med) var(--ease-out);
}
.bucket:hover { border-color: var(--border-soft); }

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

.bucket-color {
  width: 8px; height: 32px;
  border-radius: 2px;
  background: var(--v1);
  box-shadow: 0 0 12px currentColor;
  color: var(--v1);
}

.bucket input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 6px;
  border-radius: 6px;
  transition: background var(--t-fast);
  min-width: 0;
}
.bucket input:focus { background: var(--bg-base); }
.bucket input[type=number] {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  appearance: textfield;
  -moz-appearance: textfield;
}
.bucket input[type=number]::-webkit-outer-spin-button,
.bucket input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.percent-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 2px 10px 2px 4px;
}
.percent-wrap input { padding: 6px 4px; }
.percent-wrap span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.delete-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--t-fast);
  display: grid; place-items: center;
}
.delete-btn:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}

/* ==========================================================================
   TOTAL BAR
   ========================================================================== */
.total-bar { margin-top: var(--s-5); }
.total-bar-track {
  position: relative;
  height: 6px;
  background: var(--bg-input);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.total-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  border-radius: 999px;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width var(--t-med) var(--ease);
}
.total-bar-fill.over {
  background: linear-gradient(90deg, var(--warn), var(--danger));
  box-shadow: 0 0 12px rgba(245, 165, 36, 0.4);
}
.total-bar-fill.complete {
  background: linear-gradient(90deg, var(--success), #22d3a8);
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.4);
}
.total-bar-text {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s-3);
  font-size: 13px;
}
.total-bar-text strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
}

/* ==========================================================================
   ALERTS
   ========================================================================== */
.alert {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid;
}
.alert-warn  { background: var(--warn-soft);    border-color: rgba(245,165,36,0.3); color: var(--warn); }
.alert-success {
  background: var(--success-soft);
  border-color: rgba(74,222,128,0.3);
  color: var(--success);
  align-items: flex-start;
}
.alert-success div { display: flex; flex-direction: column; gap: 2px; }
.alert-success strong { color: var(--success); font-weight: 700; }
.alert-success span { color: var(--text-secondary); font-weight: 400; }

.hidden { display: none !important; }

/* ==========================================================================
   FLOW VISUALIZATION
   ========================================================================== */
.card-flow { padding-bottom: var(--s-7); }

.flow-visual {
  position: relative;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  margin-bottom: var(--s-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 720px) {
  .flow-visual {
    grid-template-columns: 240px 1fr;
    align-items: stretch;
    gap: var(--s-6);
  }
}

.flow-source {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #07070a;
  padding: var(--s-6);
  border-radius: var(--r-md);
  text-align: center;
  box-shadow: 0 8px 24px var(--accent-glow);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
}
.flow-source::after {
  content: '';
  position: absolute;
  top: 50%; right: -8px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 16px var(--accent-glow);
  display: none;
}
@media (min-width: 720px) {
  .flow-source::after { display: block; }
}
.flow-source .flow-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: var(--s-2);
}
.flow-source strong {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: 'JetBrains Mono', monospace;
  display: block;
  line-height: 1;
}
.flow-source .flow-source-meta {
  margin-top: var(--s-3);
  font-size: 11px;
  font-weight: 600;
  opacity: 0.65;
  letter-spacing: 0.04em;
}

.flow-destinations {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  justify-content: center;
}

.flow-dest {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  animation: flowIn 600ms var(--ease-out) backwards;
  min-height: 44px;
}
.flow-dest::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0%);
  background: var(--accent-color, var(--v1));
  opacity: 0.07;
  transition: width 800ms var(--ease);
}
@keyframes flowIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.flow-dest .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
}
.flow-dest .name {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}
.flow-dest .pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: var(--s-2);
}
.flow-dest .amt {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  z-index: 1;
}

.results { display: none; }

.route-actions {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.route-actions .btn { flex: 1; }

/* ==========================================================================
   AI SMART SUMMARY
   ========================================================================== */
.card-ai {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.card-ai::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 80%; height: 100%;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.ai-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  position: relative;
  z-index: 1;
}
.ai-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #07070a;
  display: grid; place-items: center;
  box-shadow: 0 0 24px var(--accent-glow);
  animation: aiPulse 3s ease-in-out infinite;
}
@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 24px var(--accent-glow); }
  50%      { box-shadow: 0 0 36px var(--accent-glow); }
}
.ai-eyebrow { color: var(--accent); }

.ai-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.ai-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.ai-text strong { color: var(--text-primary); font-weight: 600; }
.ai-text .accent { color: var(--accent); font-weight: 600; }

.ai-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.ai-stat {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--s-3);
}
.ai-stat-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.ai-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   FORECAST
   ========================================================================== */
.forecast-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.forecast-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
}
.forecast-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}
.forecast-label { font-size: 13px; color: var(--text-secondary); }
.forecast-amt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.forecast-empty {
  padding: var(--s-4);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   INFO BOX
   ========================================================================== */
.info-box {
  margin-top: var(--s-4);
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: var(--s-4);
  animation: bucketIn var(--t-med) var(--ease-out);
}
.info-box h4 { color: var(--accent); }
.info-box p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }

/* ==========================================================================
   HISTORY
   ========================================================================== */
.history-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.history-list::-webkit-scrollbar { width: 6px; }
.history-list::-webkit-scrollbar-track { background: transparent; }
.history-list::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 3px; }

.history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
}
.history-item-amt {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}
.history-item small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}
.history-item .badge {
  font-size: 10px;
  padding: 4px 8px;
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 999px;
  font-weight: 600;
  align-self: center;
}

.history-empty {
  padding: var(--s-5);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border: 1px dashed var(--border-soft);
  border-radius: var(--r-md);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  margin-top: var(--s-9);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}
.footer-text {
  margin: 0;
  font-size: 11px;
  color: var(--text-faint);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 720px) {
  .topbar { padding: var(--s-4) var(--s-5); }
  .app { padding: var(--s-6) var(--s-5) var(--s-7); }
  .card { padding: var(--s-5); border-radius: var(--r-xl); }
  h1 { font-size: 38px; }
  .lede { font-size: 15px; }
  .money-input input { font-size: 32px; }
  .bucket { grid-template-columns: 6px 1fr 90px 32px; gap: var(--s-2); }
  .delete-btn { width: 32px; height: 32px; }
  .route-actions { flex-direction: column; }
}
