:root {
  --bg: #07111e;
  --glass: rgba(11, 21, 36, 0.84);
  --glass-strong: rgba(10, 19, 33, 0.94);
  --border: rgba(148, 163, 184, 0.22);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --amber: #f59e0b;
  --pink: #ec4899;
  --cyan: #38bdf8;
  --emerald: #34d399;
  --radius: 14px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

#canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

canvas:active {
  cursor: grabbing;
}

/* Floating HUD Top Bar */
.top-hud {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.top-hud > * {
  pointer-events: auto;
}

.brand-pill {
  appearance: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.brand-emoji {
  font-size: 20px;
  line-height: 1;
}

.brand-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
}

.controls-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.pill-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.pill-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.pill-btn.active {
  color: #0b1524;
  background: #f8fafc;
}

.pill-btn[data-day="1"].active { background: var(--amber); color: #0b1524; }
.pill-btn[data-day="2"].active { background: var(--pink); color: #fff; }
.pill-btn[data-day="3"].active { background: var(--cyan); color: #0b1524; }
.pill-btn[data-day="4"].active { background: var(--emerald); color: #0b1524; }

.pill-btn.rain-on {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--cyan);
  color: #e0f2fe;
}

.pill-btn.picks-btn {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

.pill-btn.picks-btn:hover {
  background: rgba(245, 158, 11, 0.28);
}

.divider-v {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 2px;
}

/* Right Explorer Panel */
.panel-toggle-float {
  position: fixed;
  top: 74px;
  right: 14px;
  z-index: 25;
  display: none;
  background: var(--glass-strong);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.explorer-panel {
  position: fixed;
  top: 72px;
  right: 14px;
  bottom: 92px;
  width: 405px;
  max-width: calc(100vw - 28px);
  z-index: 18;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.explorer-panel.collapsed {
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
}

.panel-scroll {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.hero-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: #0f1d32;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-wrap:hover .hero-img {
  transform: scale(1.03);
}

.hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 17, 30, 0.92) 0%, rgba(7, 17, 30, 0.2) 55%, rgba(7, 17, 30, 0.4) 100%);
}

.hero-top-row {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stop-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(10, 19, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}

.photo-switch {
  display: inline-flex;
  gap: 4px;
}

.photo-chip {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 19, 33, 0.78);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.photo-chip.active {
  background: #f8fafc;
  color: #0b1524;
}

.collapse-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 19, 33, 0.78);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.hero-bottom {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
}

.hero-caption {
  font-size: 11px;
  color: #cbd5e1;
  margin-bottom: 2px;
}

.stop-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.panel-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.meta-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #e2e8f0;
}

.meta-chip.daylight {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.meta-chip.night {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.4);
  color: #c7d2fe;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 5px;
}

.brief-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brief-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: #e2e8f0;
}

.brief-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--day-color, var(--cyan));
}

.callout-box {
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
}

.callout-gravity {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fef3c7;
}

.callout-rain {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}

.callout-head {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.options-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 11px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.option-card.picked {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.09);
}

.option-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.option-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
}

.option-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  margin-top: 3px;
}

.option-vibe {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.option-highlights {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.option-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.16s ease;
}

.mini-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.mini-btn.picked {
  background: var(--amber);
  border-color: var(--amber);
  color: #0b1524;
}

/* Bottom Transport Bar */
.bottom-bar {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 9px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.transport-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav-btn.primary {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  border-color: transparent;
  color: #fff;
  padding: 7px 14px;
}

.nav-btn.primary:hover {
  filter: brightness(1.08);
}

.nav-btn.active {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--cyan);
  color: #e0f2fe;
}

.timeline-dots {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 8px;
}

.timeline-line {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 2px;
  background: rgba(148, 163, 184, 0.25);
  transform: translateY(-50%);
  z-index: 0;
}

.dot-btn {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #0b1524;
  background: var(--dot-color, #94a3b8);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.dot-btn:hover {
  transform: scale(1.3);
}

.dot-btn.active {
  transform: scale(1.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.dot-btn.celebrate::after {
  content: "🎂";
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  pointer-events: none;
}

.status-pill {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 3D Map Hover Tooltip */
.map-tooltip {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.map-tooltip.visible {
  opacity: 1;
}

/* Left Day Legend Card */
.legend-pill {
  position: fixed;
  left: 14px;
  bottom: 84px;
  z-index: 15;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 8px 12px;
  font-size: 11.5px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: auto;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(3, 8, 16, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 560px;
  max-width: 100%;
  max-height: 82vh;
  background: #0d1a2d;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.picked-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

@media (max-width: 1360px) and (min-width: 821px) {
  .explorer-panel {
    top: 112px;
  }
}

@media (max-width: 820px) {
  .legend-pill { display: none; }
  .explorer-panel {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 84px;
    width: auto;
    height: 48vh;
  }
  .explorer-panel.collapsed {
    transform: translateY(calc(100% + 100px));
  }
  .panel-toggle-float {
    top: auto;
    bottom: 92px;
    right: 14px;
  }
}

/* Surprise & Budget Header Buttons */
.pill-btn.surprise-on {
  background: rgba(236, 72, 153, 0.24);
  border-color: var(--pink);
  color: #fbcfe8;
}

.pill-btn.budget-btn {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}

.pill-btn.budget-btn:hover {
  background: rgba(52, 211, 153, 0.28);
}

.pill-btn.budget-btn.budget-low {
  background: rgba(245, 158, 11, 0.24);
  border-color: var(--amber);
  color: #fde68a;
}

.callout-surprise {
  background: rgba(236, 72, 153, 0.14);
  border: 1px solid rgba(236, 72, 153, 0.45);
  color: #fce7f3;
}

/* Welcome Card Modal */
.welcome-card {
  width: 470px;
  padding: 22px;
  gap: 16px;
}

.welcome-banner {
  text-align: center;
}

.welcome-emoji {
  font-size: 34px;
  margin-bottom: 6px;
}

.welcome-banner h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.welcome-banner p {
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.5;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.welcome-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.welcome-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-1px);
}

.welcome-btn.primary {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.35), rgba(245, 158, 11, 0.28));
  border-color: rgba(236, 72, 153, 0.6);
}

.welcome-btn span {
  font-size: 14px;
  font-weight: 700;
}

.welcome-btn small {
  font-size: 12px;
  color: #cbd5e1;
}

/* Budget Modal & Tracker */
.budget-modal-card {
  width: 620px;
  max-height: 88vh;
}

.budget-hero {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.14), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.budget-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.budget-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #a7f3d0;
}

.budget-big {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.budget-big.text-red {
  color: #f87171;
}

.budget-right-stat {
  text-align: right;
  font-size: 12.5px;
}

.budget-muted {
  color: var(--muted);
  font-size: 11.5px;
}

.progress-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-track.sm {
  height: 6px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.progress-fill.good { background: #34d399; }
.progress-fill.warn { background: #f59e0b; }
.progress-fill.over { background: #ef4444; }

.day-spend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.day-spend-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
}

.budget-form,
.budget-card-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.budget-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
}

.rate-inline {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rate-inline input,
.limit-edit input {
  width: 56px;
  background: rgba(7, 17, 30, 0.8);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
}

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

.curr-switch {
  display: inline-flex;
  background: rgba(7, 17, 30, 0.7);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 2px;
  flex-shrink: 0;
}

.curr-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.curr-btn.active {
  background: #38bdf8;
  color: #0b1524;
}

.amount-input {
  flex: 1;
  min-width: 90px;
  background: rgba(7, 17, 30, 0.75);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 9px;
}

.eur-preview {
  font-size: 12px;
  font-weight: 700;
  color: #7dd3fc;
  white-space: nowrap;
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-pill {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.cat-pill.active {
  background: var(--amber);
  border-color: var(--amber);
  color: #0b1524;
}

.note-row {
  display: flex;
  gap: 6px;
}

.day-select {
  background: rgba(7, 17, 30, 0.75);
  border: 1px solid var(--border);
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 8px;
  border-radius: 9px;
}

.note-input {
  flex: 1;
  min-width: 100px;
  background: rgba(7, 17, 30, 0.75);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 9px;
}

.add-exp-btn {
  appearance: none;
  border: none;
  background: linear-gradient(135deg, #34d399, #0ea5e9);
  color: #07111e;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 9px;
  cursor: pointer;
}

.buckets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bucket-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bucket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.bucket-nums {
  color: #cbd5e1;
  font-weight: 600;
}

.csv-label {
  cursor: pointer;
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}

.import-banner {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.tx-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 185px;
  overflow-y: auto;
}

.empty-tx {
  color: var(--muted);
  font-size: 12px;
  padding: 6px 0;
}

.tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 9px;
  padding: 7px 10px;
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tx-day {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #bae6fd;
  white-space: nowrap;
}

.tx-note {
  font-size: 12.5px;
  font-weight: 600;
  color: #f8fafc;
}

.tx-sub {
  font-size: 11px;
  color: var(--muted);
}

.tx-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-amt {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.tx-del {
  appearance: none;
  border: none;
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

.paylater-box {
  background: rgba(99, 102, 241, 0.09);
  border-color: rgba(129, 140, 248, 0.35);
}

.paylater-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.22);
  color: #c7d2fe;
}

.paylater-stays {
  font-size: 11.5px;
  color: #cbd5e1;
}

.paylater-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.paylater-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  background: rgba(7, 17, 30, 0.45);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}

.paylater-row span {
  flex: 1;
}

.paylater-row.paid span {
  text-decoration: line-through;
  color: var(--muted);
}

.budget-utils {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.mini-btn.danger {
  background: rgba(239, 68, 68, 0.24);
  border-color: #ef4444;
  color: #fecaca;
}

@media (max-width: 640px) {
  .top-hud {
    top: 8px;
    left: 8px;
    right: 8px;
    gap: 6px;
  }
  .brand-pill {
    padding: 6px 10px;
    width: 100%;
  }
  .controls-group {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .controls-group::-webkit-scrollbar {
    display: none;
  }
  .bottom-bar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 7px 9px;
    gap: 6px;
  }
  .transport-left {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }
  .nav-btn {
    padding: 6px 8px;
    font-size: 11px;
    white-space: nowrap;
  }
  .nav-btn.primary {
    padding: 6px 10px;
  }
  .status-pill {
    font-size: 11px;
  }
  .timeline-dots {
    display: none;
  }
  .explorer-panel {
    bottom: 76px;
    height: 44vh;
  }
  .modal-backdrop {
    padding: 8px;
  }
  .budget-modal-card {
    max-height: 92vh;
  }
  .amount-row {
    flex-wrap: wrap;
  }
  .note-row {
    flex-wrap: wrap;
  }
  .add-exp-btn {
    width: 100%;
    padding: 9px;
  }
}
