/* ==========================================================================
   MINIMALIST TRANSPARENT & FROSTED GLASS STYLING
   ========================================================================== */

:root {
  --bg-main: #0a0c10;
  --bg-card: rgba(18, 22, 29, 0.65);
  --bg-card-hover: rgba(26, 32, 42, 0.75);
  --bg-input: rgba(12, 15, 20, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.2);
  --border-focus: rgba(255, 255, 255, 0.4);

  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;

  --accent-income: #3fb950;
  --accent-income-bg: rgba(63, 185, 80, 0.12);
  --accent-expense: #f85149;
  --accent-expense-bg: rgba(248, 81, 73, 0.12);
  --accent-savings: #58a6ff;
  --accent-savings-bg: rgba(88, 166, 255, 0.12);
  --accent-cyan: #39d353;
  --accent-gold: #e3b341;
  --accent-gold-bg: rgba(227, 179, 65, 0.12);
  --accent-gold-border: rgba(227, 179, 65, 0.35);
  --accent-warning: #f0883e;
  --accent-warning-bg: rgba(240, 136, 62, 0.12);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

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

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(30, 38, 54, 0.5) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(24, 34, 52, 0.4) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(18, 22, 31, 0.6) 0px, transparent 50%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
}

.glass-bg-glow {
  position: fixed;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.glass-bg-glow-gold {
  position: fixed;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(227, 179, 65, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-sub {
  color: var(--accent-savings);
  font-weight: 400;
}

.brand-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.currency-picker select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.currency-picker select:hover,
.currency-picker select:focus {
  border-color: var(--border-active);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-active);
}

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

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

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

.text-cyan {
  color: #39d353;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.font-mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   VIEW SWITCH NAVIGATION
   ========================================================================== */

.view-switch-nav {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-wrap: wrap;
}

.nav-tab {
  flex: 1;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.nav-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-tab-gold.active {
  background: var(--accent-gold-bg);
  color: var(--accent-gold);
  border-color: var(--accent-gold-border);
}

.nav-tab-gold:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   METRICS SUMMARY BANNER
   ========================================================================== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-glass);
  transition: transform 0.2s, border-color 0.2s;
}

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

.card-balance {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.08) 0%, rgba(22, 27, 34, 0.7) 100%);
  border-color: rgba(88, 166, 255, 0.2);
}

.metric-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.metric-subtext {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

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

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

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

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.badge-in {
  background: var(--accent-income-bg);
  color: var(--accent-income);
}

.badge-out {
  background: var(--accent-expense-bg);
  color: var(--accent-expense);
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.badge-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--accent-savings);
  margin-bottom: 2px;
}

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

/* ==========================================================================
   DASHBOARD GRID (2-COLUMN)
   ========================================================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

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

.dashboard-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-glass);
}

.highlight-card {
  border-color: rgba(88, 166, 255, 0.25);
  background: linear-gradient(180deg, rgba(88, 166, 255, 0.04) 0%, rgba(22, 27, 34, 0.65) 100%);
}

.card-header {
  margin-bottom: 18px;
}

.card-header.space-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.card-title-lg {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.card-desc-muted {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
  max-width: 600px;
}

.card-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   TRANSACTION ENTRY FORM
   ========================================================================== */

.entry-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.type-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.type-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.indicator.out {
  background: var(--accent-expense);
}

.indicator.in {
  background: var(--accent-income);
}

.form-row {
  display: flex;
  gap: 12px;
}

@media (max-width: 500px) {
  .form-row {
    flex-direction: column;
  }
}

.flex-1 {
  flex: 1;
}

.flex-2 {
  flex: 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-curr {
  position: absolute;
  left: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 28px !important;
}

input[type="number"],
input[type="text"],
input[type="date"],
select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

input[type="number"],
input[type="date"] {
  font-family: var(--font-mono);
}

input:focus,
select:focus {
  border-color: var(--border-focus);
  background: rgba(18, 24, 33, 0.9);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #f0f6fc;
  color: #0c0e12;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ==========================================================================
   TRANSACTIONS LIST & FILTER
   ========================================================================== */

.filter-pills {
  display: flex;
  background: var(--bg-input);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.filter-pill {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-weight: 600;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.search-bar input {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 100%;
}

.search-bar input:focus {
  outline: none;
}

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.transaction-list::-webkit-scrollbar {
  width: 4px;
}

.transaction-list::-webkit-scrollbar-track {
  background: transparent;
}

.transaction-list::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.trans-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.trans-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-active);
}

.trans-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trans-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.trans-icon.in {
  background: var(--accent-income-bg);
  color: var(--accent-income);
}

.trans-icon.out {
  background: var(--accent-expense-bg);
  color: var(--accent-expense);
}

.trans-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trans-desc {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.trans-meta {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  align-items: center;
}

.category-tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

.trans-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trans-amount {
  font-size: 0.95rem;
  font-weight: 600;
}

.trans-amount.in {
  color: var(--accent-income);
}

.trans-amount.out {
  color: var(--text-primary);
}

.btn-delete-trans {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-delete-trans:hover {
  color: var(--accent-expense);
  background: var(--accent-expense-bg);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-state p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.empty-state span {
  font-size: 0.78rem;
}

/* ==========================================================================
   SAVINGS GOAL & SIMULATOR
   ========================================================================== */

.target-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.preset-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.preset-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}

.preset-btn.active {
  background: var(--accent-savings-bg);
  border-color: var(--accent-savings);
  color: var(--accent-savings);
  font-weight: 600;
}

.preset-btn-gold.active {
  background: var(--accent-gold-bg);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(227, 179, 65, 0.2);
}

.progress-section {
  margin: 18px 0;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

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

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

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #58a6ff 0%, #39d353 50%, #e3b341 100%);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

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

.breakdown-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.breakdown-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.breakdown-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   SIMULATOR SECTION
   ========================================================================== */

.sim-instruction {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sim-inline-input {
  width: 90px !important;
  display: inline-block;
  padding: 4px 8px !important;
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: 6px;
}

.sim-inline-select {
  width: auto !important;
  display: inline-block;
  padding: 4px 8px !important;
  border-radius: 6px;
}

.sim-slider-container {
  margin: 16px 0;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #58a6ff;
  box-shadow: 0 0 10px rgba(88, 166, 255, 0.6);
  cursor: pointer;
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 6px;
}

.sim-interest-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.apy-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.apy-input-wrap input {
  width: 65px;
  padding: 2px 6px;
  font-size: 0.8rem;
}

/* Timeline Cards */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  position: relative;
  transition: all 0.2s;
}

.timeline-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-active);
}

.timeline-card-gold {
  border-color: var(--accent-gold-border);
  background: linear-gradient(180deg, rgba(227, 179, 65, 0.08) 0%, rgba(22, 27, 34, 0.85) 100%);
}

.timeline-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: #0c0e12;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 999px;
}

.timeline-period {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.timeline-amount {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-card-gold .timeline-amount {
  color: var(--accent-gold);
  font-size: 1.18rem;
}

.timeline-growth {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   CATEGORY BREAKDOWN
   ========================================================================== */

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

.cat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
}

.cat-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.cat-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  background: var(--text-secondary);
  border-radius: 999px;
}

.empty-state-sm {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
}

/* ==========================================================================
   UTILITIES & SUBSCRIPTIONS HUB STYLING
   ========================================================================== */

.bills-overview-banner {
  border-color: rgba(57, 211, 83, 0.25);
  background: linear-gradient(135deg, rgba(57, 211, 83, 0.06) 0%, rgba(18, 22, 29, 0.8) 100%);
  margin-bottom: 20px;
}

.bills-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.bills-summary-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bill-stat-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 150px;
}

.bill-stat-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bill-stat-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bill-preset-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.bill-preset-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-active);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.recurring-bills-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 4px;
}

.bill-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  flex-wrap: wrap;
  gap: 10px;
}

.bill-card-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-active);
}

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

.bill-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.bill-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bill-name-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.bill-tags-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.bill-tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

.bill-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bill-amount-wrap {
  text-align: right;
}

.bill-amount-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bill-cycle-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-log-bill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-income-bg);
  border: 1px solid rgba(63, 185, 80, 0.3);
  color: var(--accent-income);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-log-bill:hover {
  background: rgba(63, 185, 80, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   £1,000,000 5-YEAR ROADMAP VIEW STYLING
   ========================================================================== */

.gold-border-banner {
  border-color: var(--accent-gold-border);
  background: linear-gradient(135deg, rgba(227, 179, 65, 0.08) 0%, rgba(18, 22, 29, 0.8) 100%);
  margin-bottom: 20px;
}

.gold-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-gold-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 4px 0 8px 0;
}

.hero-gold-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.6;
}

.hero-gold-desc strong {
  color: var(--accent-gold);
}

.hero-stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--accent-gold-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  min-width: 180px;
}

.stat-pill-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.stat-pill-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 2px 0;
}

.stat-pill-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.vehicles-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title-wrap {
  margin-bottom: 4px;
}

.section-heading {
  font-size: 1.2rem;
  font-weight: 700;
}

.section-subheading {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, border-color 0.2s;
}

.vehicle-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
}

.vehicle-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.icon-gold {
  background: var(--accent-gold-bg);
  color: var(--accent-gold);
  border-color: var(--accent-gold-border);
}

.icon-cyan {
  background: rgba(57, 211, 83, 0.12);
  color: var(--accent-cyan);
}

.icon-green {
  background: var(--accent-income-bg);
  color: var(--accent-income);
}

.icon-purple {
  background: rgba(163, 113, 247, 0.12);
  color: #a371f7;
}

.vehicle-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
}

.vehicle-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.vehicle-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.math-breakdown {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 4px;
}

.math-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.math-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.math-list li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding-left: 10px;
  position: relative;
}

.math-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.vehicle-action-tip {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent-gold);
  margin-top: auto;
}

/* Roadmap Progression */
.milestone-roadmap-card {
  margin-bottom: 20px;
}

.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.roadmap-step {
  display: flex;
  gap: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}

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

.step-gold {
  border-color: var(--accent-gold-border);
  background: linear-gradient(135deg, rgba(227, 179, 65, 0.06) 0%, rgba(22, 27, 34, 0.7) 100%);
}

.step-marker {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.marker-gold {
  background: var(--accent-gold-bg);
  border-color: var(--accent-gold-border);
  color: var(--accent-gold);
}

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.step-target {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.check-item input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--accent-gold);
}

/* Interactive Math Card */
.interactive-math-card {
  margin-bottom: 20px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  margin-top: 10px;
}

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

.calc-input-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.calc-input-box label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.calc-results-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  justify-content: center;
}

.calc-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.calc-label {
  color: var(--text-secondary);
}

.calc-val {
  font-size: 1.05rem;
  font-weight: 700;
}

.calc-sub-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 4px;
  background: rgba(227, 179, 65, 0.08);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent-gold);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.app-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 16px 0;
}
