/* =====================================================
   Deposit Calculator — Premium Fintech Design System
   Mobile-first, fully responsive (360px → 4K)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ── Design Tokens ──────────────────────────────── */
:root {
  --bg-main:       #0A0E1A;
  --bg-card:       #111827;
  --bg-card-alt:   #1A2236;
  --bg-input:      #1F2937;
  --border:        rgba(255,255,255,0.08);
  --border-focus:  #3B82F6;

  --text-primary:   #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted:     #6B7280;

  --green:    #10B981;
  --green-bg: rgba(16,185,129,0.12);
  --blue:     #3B82F6;
  --blue-bg:  rgba(59,130,246,0.12);
  --purple:   #8B5CF6;
  --amber:    #F59E0B;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.6);

  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'Space Grotesk', monospace;

  /* safe area for iOS notch */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Light Theme ────────────────────────────────── */
[data-theme="light"] {
  --bg-main:       #F0F4F8;
  --bg-card:       #FFFFFF;
  --bg-card-alt:   #F9FAFB;
  --bg-input:      #F3F4F6;
  --border:        rgba(0,0,0,0.08);
  --text-primary:   #111827;
  --text-secondary: #4B5563;
  --text-muted:     #9CA3AF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
  line-height: 1.55;
}

/* ── Layout Container ───────────────────────────── */
.app-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 12px 12px calc(60px + var(--safe-bottom));
}
@media (min-width: 480px)  { .app-container { padding: 16px 16px 60px; } }
@media (min-width: 640px)  { .app-container { padding: 20px 20px 70px; } }
@media (min-width: 1024px) { .app-container { padding: 28px 28px 80px; } }

/* ── Glass Card ─────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════ */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
@media (min-width: 640px) {
  .header-bar { padding: 14px 18px; margin-bottom: 20px; }
}

.logo-group { display: flex; align-items: center; gap: 10px; }

.logo-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10B981, #059669);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16,185,129,0.4);
  flex-shrink: 0;
}
@media (min-width: 640px) { .logo-icon { width: 42px; height: 42px; } }

.logo-text h1 {
  font-size: clamp(0.9rem, 3.5vw, 1.2rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.logo-text p {
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  color: var(--text-secondary);
  /* hide on very small screens */
}
@media (max-width: 360px) { .logo-text p { display: none; } }

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

.btn-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.btn-icon:hover { border-color: var(--blue); transform: translateY(-1px); }
@media (min-width: 640px) { .btn-icon { width: 38px; height: 38px; } }

/* Currency selector */
.currency-select-wrapper { position: relative; }
.currency-select {
  appearance: none;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 7px 28px 7px 10px;
  border-radius: var(--radius-md);
  font-size: clamp(0.72rem, 2.2vw, 0.85rem);
  font-weight: 700;
  font-family: var(--mono);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  max-width: 130px;
}
@media (min-width: 480px) { .currency-select { max-width: none; padding: 8px 32px 8px 12px; } }
.currency-select:hover, .currency-select:focus { border-color: var(--green); }
.currency-select option { background: var(--bg-card); }
.currency-select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 9px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   NAV TABS
═══════════════════════════════════════════════════ */
.nav-tabs {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px;
  gap: 3px;
  margin-bottom: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .nav-tabs { margin-bottom: 18px; } }

.nav-tab {
  flex: 1;
  min-width: 100px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(0.72rem, 2.2vw, 0.85rem);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.2s;
}
/* hide icons in nav-tab on tiny screens */
@media (max-width: 400px) { .nav-tab svg { display: none; } }

.nav-tab.active {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.nav-tab:hover:not(.active) { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════
   PRESETS BAR
═══════════════════════════════════════════════════ */
.presets-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.presets-bar::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .presets-bar { margin-bottom: 18px; padding: 10px 16px; } }

.preset-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.preset-chip {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.preset-chip:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-bg);
}

/* ═══════════════════════════════════════════════════
   MAIN GRID
═══════════════════════════════════════════════════ */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}
@media (min-width: 640px)  { .main-grid { gap: 18px; } }
@media (min-width: 1024px) { .main-grid { grid-template-columns: 420px 1fr; gap: 22px; } }

/* ═══════════════════════════════════════════════════
   INPUT SECTION (LEFT PANEL)
═══════════════════════════════════════════════════ */
.input-section { padding: 16px; }
@media (min-width: 480px) { .input-section { padding: 20px; } }
@media (min-width: 640px) { .input-section { padding: 24px; } }

.section-header { margin-bottom: 16px; }
.section-title {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group { margin-bottom: 16px; }
@media (min-width: 640px) { .form-group { margin-bottom: 18px; } }

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 7px;
}
.form-label {
  font-size: clamp(0.75rem, 2.2vw, 0.82rem);
  font-weight: 700;
  color: var(--text-secondary);
}
.value-display {
  font-family: var(--mono);
  font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

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

.custom-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 11px 13px;
  border-radius: var(--radius-md);
  font-size: 1rem; /* 16px — prevents iOS auto-zoom */
  font-weight: 700;
  font-family: var(--mono);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.custom-input:focus { border-color: var(--border-focus); }

/* Term row: number + select side-by-side */
.term-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.term-row .custom-input:first-child { flex: 1; }
.term-row select.custom-input { width: 110px; flex-shrink: 0; }
@media (max-width: 360px) {
  .term-row { flex-direction: column; }
  .term-row select.custom-input { width: 100%; }
}

.input-addon {
  position: absolute;
  right: 13px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

/* Range Slider */
.range-slider {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  margin-top: 10px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 8px rgba(16,185,129,0.45);
  cursor: pointer;
}
.range-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg-card);
  cursor: pointer;
  border: none;
}
/* Bigger touch target on mobile */
@media (max-width: 640px) {
  .range-slider { height: 6px; }
  .range-slider::-webkit-slider-thumb { width: 24px; height: 24px; }
}

/* Segmented Controls */
.segmented-control {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.segmented-control::-webkit-scrollbar { display: none; }

.segmented-btn {
  flex: 1;
  min-width: 50px;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: clamp(0.72rem, 2vw, 0.8rem);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  /* larger tap target */
  min-height: 36px;
}
.segmented-btn.active { background: var(--blue); color: #fff; }
.segmented-btn:hover:not(.active) { color: var(--text-primary); }

/* Toggle Switch Row */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}
.toggle-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.toggle-label {
  font-size: clamp(0.8rem, 2.2vw, 0.86rem);
  font-weight: 700;
  line-height: 1.3;
}
.toggle-desc {
  font-size: clamp(0.65rem, 1.8vw, 0.72rem);
  color: var(--text-secondary);
}

.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider-toggle {
  position: absolute; cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transition: .25s;
  border-radius: 24px;
  border: 1px solid var(--border);
}
.slider-toggle:before {
  content: "";
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
input:checked + .slider-toggle { background: var(--green); border-color: var(--green); }
input:checked + .slider-toggle:before { transform: translateX(20px); }

/* ═══════════════════════════════════════════════════
   KPI SUMMARY CARDS
═══════════════════════════════════════════════════ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (min-width: 640px)  { .kpi-grid { gap: 12px; margin-bottom: 18px; } }
@media (min-width: 1200px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }

.kpi-card { padding: 14px 16px; position: relative; overflow: hidden; }
@media (min-width: 640px) { .kpi-card { padding: 18px; } }

.kpi-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  border-radius: 4px 0 0 4px;
}
.kpi-card.primary::before { background: var(--green); }
.kpi-card.blue::before    { background: var(--blue); }
.kpi-card.purple::before  { background: var(--purple); }
.kpi-card.amber::before   { background: var(--amber); }

.kpi-label {
  display: flex; align-items: center; gap: 5px;
  font-size: clamp(0.62rem, 1.8vw, 0.7rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.kpi-label svg { width: 13px; height: 13px; flex-shrink: 0; }

.kpi-value {
  font-family: var(--mono);
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 800;
  word-break: break-word;
  line-height: 1.2;
}
.kpi-subtext {
  font-size: clamp(0.65rem, 1.8vw, 0.72rem);
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════
   CHARTS GRID
═══════════════════════════════════════════════════ */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (min-width: 640px)  { .charts-grid { gap: 16px; margin-bottom: 18px; } }
@media (min-width: 860px)  { .charts-grid { grid-template-columns: 1.6fr 1fr; } }

.chart-card { padding: 16px; }
@media (min-width: 640px) { .chart-card { padding: 20px; } }

.chart-card h3 {
  font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.chart-wrapper {
  position: relative;
  height: 200px;
  width: 100%;
}
@media (min-width: 640px) { .chart-wrapper { height: 230px; } }

/* ═══════════════════════════════════════════════════
   TABLE SECTION
═══════════════════════════════════════════════════ */
.table-section { padding: 14px; }
@media (min-width: 480px) { .table-section { padding: 18px; } }
@media (min-width: 640px) { .table-section { padding: 22px; } }

/* Table controls: stacks on mobile, side-by-side on wider */
.table-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
@media (min-width: 640px) {
  .table-controls { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
}

.table-controls-title {
  font-size: clamp(0.88rem, 2.5vw, 1rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Schedule table container */
.schedule-table-container {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 420px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) { .schedule-table-container { max-height: 460px; } }

.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.8rem;
  min-width: 580px; /* force horizontal scroll on mobile */
}

.schedule-table th {
  background: var(--bg-card-alt) !important;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 11px 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.schedule-table td {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  white-space: nowrap;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--bg-input); }

/* ═══════════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════════ */
.text-positive { color: var(--green); }
.text-highlight { color: var(--blue); }

/* ═══════════════════════════════════════════════════
   ACTION BUTTONS (Export / Print)
═══════════════════════════════════════════════════ */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: clamp(0.76rem, 2.2vw, 0.84rem);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  /* minimum tap target */
  min-height: 40px;
}
.btn-action--green {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(16,185,129,0.3);
}
.btn-action--green:hover {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16,185,129,0.4);
  transform: translateY(-1px);
}
.btn-action--blue {
  background: var(--blue-bg);
  color: var(--blue);
  border: 1px solid rgba(59,130,246,0.3);
}
.btn-action--blue:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59,130,246,0.4);
  transform: translateY(-1px);
}

/* Secondary button */
.btn-secondary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--blue); }

/* ═══════════════════════════════════════════════════
   GOAL RESULT CARD
═══════════════════════════════════════════════════ */
.goal-result-card {
  border-color: var(--green) !important;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.goal-result-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   COMPARISON MODAL
═══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end; /* sheet from bottom on mobile */
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

/* On mobile: bottom sheet style */
.modal-content {
  width: 100%;
  max-height: 92vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  padding: 20px 16px calc(20px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content { transform: translateY(0); }

/* Drag handle for mobile */
.modal-content::before {
  content: '';
  display: block;
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 0 auto 16px;
}

/* On tablet/desktop: centered dialog */
@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 16px;
  }
  .modal-content {
    width: 100%;
    max-width: 940px;
    max-height: 90vh;
    border-radius: var(--radius-xl);
    padding: 24px;
    transform: scale(0.96);
    transition: transform 0.25s ease;
  }
  .modal-content::before { display: none; }
  .modal-overlay.active .modal-content { transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.modal-header h2 {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 9px;
}
.close-modal-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  width: 34px; height: 34px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.close-modal-btn:hover { color: var(--text-primary); border-color: var(--blue); }

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 500px) { .comparison-grid { grid-template-columns: repeat(3, 1fr); } }

.comparison-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
}
.comparison-card.winner { border-color: var(--green); }
.winner-badge {
  position: absolute;
  top: -11px; right: 12px;
  background: var(--green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════
   PRINT STYLES
═══════════════════════════════════════════════════ */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .app-container { padding: 0; }
  .header-actions, .nav-tabs, .presets-bar,
  .table-actions, .btn-secondary, .btn-icon,
  .btn-action { display: none !important; }
  .glass-card {
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
  .schedule-table-container {
    max-height: none !important;
    overflow: visible !important;
    border: none !important;
  }
  .schedule-table { min-width: 0 !important; font-size: 0.72rem; }
  .schedule-table th { background: #f0f0f0 !important; color: #000 !important; }
  .schedule-table td { color: #000 !important; }
  .kpi-value { color: #000 !important; }
  .charts-grid { grid-template-columns: 1fr 1fr !important; }
  .main-grid { grid-template-columns: 1fr !important; }
}
