/* ═══════════════════════════════════════════════════════════════
   FINANCIAL COMMAND CENTER v3 — 2.5D Premium Glassmorphism
   Aesthetic: "Billion-Dollar Dark" (Apple/Google Top-Tier UI)
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* 2.5D Core Palette */
  --bg-app: #090814;
  --bg-card: rgba(24, 22, 45, 0.65);
  --bg-card-hover: rgba(32, 29, 60, 0.85);
  --bg-elevated: rgba(45, 41, 75, 0.5);

  --border-light: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(139, 92, 246, 0.3);

  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --text-dim: #52525B;

  /* Premium Accents */
  --neon-rose: #E54F6D;
  --neon-rose-dim: rgba(229, 79, 109, 0.15);
  --golden-amber: #F0AF52;
  --golden-amber-dim: rgba(240, 175, 82, 0.15);
  --emerald: #10B981;
  --emerald-dim: rgba(16, 185, 129, 0.15);
  --blue-glow: #60A5FA;
  --purple-glow: #A78BFA;
  --indigo-glow: #818CF8;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.15);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;

  /* 2.5D Shadows */
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-inner-light: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  --shadow-neon: 0 0 20px rgba(139, 92, 246, 0.15);
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 2.5D Cinematic Background Orbs */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}

body::before {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

body::after {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(229, 79, 109, 0.1) 0%, transparent 70%);
}

/* ─── TOP BAR (Apple/Glass Style) ─── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(9, 8, 20, 0.4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02), var(--shadow-glass);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo-mark {
  display: flex;
  align-items: center;
  box-shadow: 0 0 15px var(--border-glow);
  border-radius: 10px;
}

.top-bar-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.sync-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--emerald);
  background: var(--emerald-dim);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseNeon 2s ease-in-out infinite;
}

@keyframes pulseNeon {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: 0.6;
    transform: scale(0.8)
  }
}

.last-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── LAYOUT ─── */
.dashboard {
  max-width: 1480px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-xl);
}

.col-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.col-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ─── 2.5D GLASS CARDS ─── */
.zone-card,
.hero-card,
.profit-first-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-glass), var(--shadow-inner-light);
  transition: transform 0.4s var(--ease-spring), border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.zone-card:hover,
.hero-card:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: var(--border-highlight);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 20px rgba(255, 255, 255, 0.03);
}

/* Card Gradient Top Border (Apple Style) */
.zone-card::before,
.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0.5;
}

.zone-danger {
  border-color: rgba(229, 79, 109, 0.3);
  box-shadow: 0 8px 32px rgba(229, 79, 109, 0.1), var(--shadow-inner-light);
}

.zone-danger::before {
  background: linear-gradient(90deg, transparent, var(--neon-rose), transparent);
  opacity: 0.8;
}

.zone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.zone-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.zone-badge-red {
  color: var(--neon-rose);
  border-color: var(--neon-rose-dim);
  background: rgba(229, 79, 109, 0.05);
}

.zone-badge-amber {
  color: var(--golden-amber);
  border-color: var(--golden-amber-dim);
  background: rgba(240, 175, 82, 0.05);
}

.zone-badge-green {
  color: var(--emerald);
  border-color: var(--emerald-dim);
  background: rgba(16, 185, 129, 0.05);
}

.zone-full {
  margin-bottom: var(--space-xl);
  margin-top: var(--space-lg);
}

/* ═══ ZONE 1: SURVIVAL PULSE (HERO) ═══ */
.zone-survival {
  margin-bottom: var(--space-xl);
}

.survival-hero {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.hero-value {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.05em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-runway .hero-value {
  background: linear-gradient(180deg, #FF8A8A 0%, var(--neon-rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(229, 79, 109, 0.3));
}

.hero-runway {
  border-color: rgba(229, 79, 109, 0.2);
}

.hero-runway::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--neon-rose), transparent);
}

.hero-cash .hero-value {
  background: linear-gradient(180deg, #93C5FD 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

.hero-cash-value {
  font-size: 3rem !important;
}

/* 2.5D Gap Visual */
.hero-gap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gap-visual {
  width: 100%;
}

.gap-bar-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-md);
}

.gap-bar {
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  font-size: 0.85rem;
  font-weight: 700;
  transition: width 1.5s var(--ease-spring);
  min-width: 90px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gap-bar-revenue {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.4));
  color: #6EE7B7;
  border-color: rgba(16, 185, 129, 0.3);
}

.gap-bar-burn {
  background: linear-gradient(90deg, rgba(229, 79, 109, 0.2), rgba(229, 79, 109, 0.4));
  color: #FDA4AF;
  border-color: rgba(229, 79, 109, 0.3);
}

.gap-bar-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gap-bar-value {
  font-family: var(--font-mono);
  font-size: 1rem;
}

.gap-deficit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.gap-deficit-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.gap-deficit-value {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--neon-rose);
  text-shadow: 0 0 10px rgba(229, 79, 109, 0.4);
}

/* 2.5D Profit First Bar */
.profit-first-bar {
  padding: var(--space-lg) var(--space-xl);
}

.pf-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.pf-title {
  font-size: 1rem;
  font-weight: 700;
}

.pf-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

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

.pf-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pf-row-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  width: 60px;
  text-align: right;
}

.pf-track {
  display: flex;
  flex: 1;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  gap: 4px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pf-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  transition: width 1.5s var(--ease-spring);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pf-profit {
  background: linear-gradient(180deg, #34D399, #10B981);
  color: #000;
}

.pf-owner {
  background: linear-gradient(180deg, #60A5FA, #3B82F6);
  color: #000;
}

.pf-tax {
  background: linear-gradient(180deg, #FBBF24, #D97706);
  color: #000;
}

.pf-opex {
  background: linear-gradient(180deg, #C084FC, #9333EA);
  color: #fff;
}

.pf-opex-over {
  background: linear-gradient(180deg, #FB7185, #E11D48);
  color: #fff;
}

.pf-deficit {
  background: repeating-linear-gradient(45deg, rgba(229, 79, 109, 0.2), rgba(229, 79, 109, 0.2) 10px, rgba(0, 0, 0, 0.2) 10px, rgba(0, 0, 0, 0.2) 20px);
  color: var(--neon-rose);
  border: 1px solid var(--neon-rose);
  box-shadow: none;
}

.pf-insight {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 14px 20px;
  background: rgba(240, 175, 82, 0.1);
  border: 1px solid rgba(240, 175, 82, 0.3);
  border-radius: var(--radius-md);
  color: var(--golden-amber);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pf-insight::before {
  content: '⚠️';
  font-size: 1.1rem;
}

/* ═══ LIST ITEMS (2.5D Rows) ═══ */
.pipeline-item,
.overdue-item,
.kill-item,
.upcoming-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: all 0.3s var(--ease-out);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.pipeline-item:hover,
.overdue-item:hover,
.kill-item:hover,
.upcoming-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ZONE 2: PIPELINE */
.pipeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pipeline-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
}

.pipeline-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #E4E4E7;
}

.pipeline-stage {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pipeline-likelihood {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  background: rgba(240, 175, 82, 0.1);
  border: 1px solid rgba(240, 175, 82, 0.3);
  color: var(--golden-amber);
}

.pipeline-amount {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--golden-amber);
  letter-spacing: -0.02em;
}

.pipeline-weighted {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 4px;
  text-align: right;
}

/* ZONE 2: MRR */
.mrr-breakeven {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(229, 79, 109, 0.1);
  border: 1px solid rgba(229, 79, 109, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.breakeven-label {
  font-size: 0.85rem;
  color: #FDA4AF;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.breakeven-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--neon-rose);
  text-shadow: 0 0 10px rgba(229, 79, 109, 0.5);
}

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

.mrr-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mrr-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

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

.mrr-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #E4E4E7;
}

.mrr-status {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mrr-status-active {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald);
}

.mrr-status-opportunity {
  background: rgba(240, 175, 82, 0.1);
  border: 1px solid rgba(240, 175, 82, 0.3);
  color: var(--golden-amber);
}

.mrr-status-paused {
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #C4B5FD;
}

.mrr-amount {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
}

.mrr-churn-risk {
  margin-top: 20px;
  padding: 14px 20px;
  background: rgba(240, 175, 82, 0.1);
  border: 1px solid rgba(240, 175, 82, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--golden-amber);
  font-weight: 600;
}

/* ZONE 3: OVERDUE BILLS */
.overdue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.overdue-list::-webkit-scrollbar {
  width: 6px;
}

.overdue-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.overdue-item {
  padding: 14px 16px;
}

.overdue-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #E4E4E7;
  margin-bottom: 4px;
}

.overdue-days {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.overdue-badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  background: rgba(229, 79, 109, 0.1);
  border: 1px solid rgba(229, 79, 109, 0.3);
  color: var(--neon-rose);
}

.overdue-amount {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
}

/* ZONE 3: ESCALATION TRACKER (Cards with glowing borders) */
.escalation-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.esc-phase-chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.esc-count {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.9rem;
  margin-right: 4px;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.esc-vollstreckung {
  background: rgba(229, 79, 109, 0.15);
  color: #FDA4AF;
  border-color: rgba(229, 79, 109, 0.4);
}

.esc-inkasso {
  background: rgba(240, 175, 82, 0.15);
  color: #FDE68A;
  border-color: rgba(240, 175, 82, 0.4);
}

.esc-mahnung {
  background: rgba(96, 165, 250, 0.15);
  color: #BFDBFE;
  border-color: rgba(96, 165, 250, 0.4);
}

.esc-initial {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.1);
}

.debt-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 8px;
}

.debt-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.debt-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.debt-card.esc-level-4 {
  border-color: rgba(229, 79, 109, 0.3);
  background: linear-gradient(90deg, rgba(229, 79, 109, 0.05), transparent);
}

.debt-card.esc-level-4::before {
  background: var(--neon-rose);
  box-shadow: 0 0 10px var(--neon-rose);
}

.debt-card.esc-level-3::before {
  background: var(--golden-amber);
}

.debt-card.esc-level-2::before {
  background: #60A5FA;
}

.debt-card.esc-level-1::before {
  background: var(--text-muted);
}

.debt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.debt-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
  padding-right: 20px;
}

.debt-amount {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--neon-rose);
  text-shadow: 0 0 10px rgba(229, 79, 109, 0.3);
}

.debt-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.debt-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-esc {
  background: rgba(229, 79, 109, 0.1);
  border: 1px solid rgba(229, 79, 109, 0.3);
  color: #FDA4AF;
}

.badge-neg {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #BFDBFE;
}

.badge-status {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.debt-progress {
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.debt-progress-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #10B981, #34D399);
  transition: width 1s var(--ease-spring);
}

.debt-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* ZONE 3: 14 DAY CASH */
.cash-requirement {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cash-req-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.cash-req-amount {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--text-primary);
}

.cash-req-positive {
  color: #60A5FA;
}

.cash-req-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 12px 0;
}

.cash-req-result {
  font-weight: 700;
}

.cash-req-result .cash-req-amount {
  font-size: 1.25rem;
}

.cash-shortfall {
  color: var(--neon-rose) !important;
  text-shadow: 0 0 10px rgba(229, 79, 109, 0.4);
}

.cash-surplus {
  color: #10B981 !important;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.upcoming-item {
  grid-template-columns: 1fr auto auto;
  padding: 10px 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.upcoming-name {
  font-weight: 600;
  color: #E4E4E7;
}

.upcoming-date {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.upcoming-amount {
  font-size: 0.9rem;
}

/* ZONE 4: COST CONTROL */
.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.cost-category {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease-spring);
}

.cost-category:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
}

.cost-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cost-cat-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.cost-cat-amount {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--golden-amber);
}

.cost-cat-pct {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cost-pct-danger {
  color: #FDA4AF;
}

.cost-pct-warning {
  color: #FDE68A;
}

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

.cost-bar-track {
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cost-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s var(--ease-spring);
}

.cost-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.8rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.cost-item:last-child {
  border-bottom: none;
}

.cost-item-name {
  color: var(--text-secondary);
  font-weight: 500;
}

.cost-item-amount {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 600;
}

.kill-list-section {
  background: rgba(229, 79, 109, 0.05);
  border: 1px solid rgba(229, 79, 109, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.kill-list-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-rose);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.kill-item {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(229, 79, 109, 0.3);
  padding: 16px 20px;
}

.kill-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.kill-amount {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: #FDA4AF;
}

.kill-pct {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 600;
}

.kill-empty {
  font-size: 0.95rem;
  color: var(--emerald);
  padding: 20px;
  text-align: center;
  font-weight: 600;
}

/* ─── LOADING ─── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-app);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 1000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top: 3px solid var(--purple-glow);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {

  .survival-hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-value {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {
  .dashboard {
    padding: var(--space-md);
  }

  .top-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px;
  }

  .cost-grid {
    grid-template-columns: 1fr;
  }
}