/* ==========================================================================
   YAKIN GRUP — KENTSEL DÖNÜŞÜM PROJE KARAR MOTORU & TEKLİF PLATFORMU
   Modern, Lüks Kurumsal Tasarım Sistemi & Responsive CSS
   ========================================================================== */

:root {
  --brand-primary: #1b4332;       /* Derin Orman Yeşili */
  --brand-primary-light: #2d6a4f; /* Zümrüt Yeşili */
  --brand-primary-dark: #081c15;  /* Koyu Yeşil / Gece */
  --brand-accent: #d4af37;        /* Lüks Altın */
  --brand-accent-hover: #b89628;  /* Koyu Altın */
  --brand-accent-subtle: #fbf7ee; /* Altın Açık Arka Plan */

  --status-success: #10b981;
  --status-success-bg: #ecfdf5;
  --status-warning: #f59e0b;
  --status-warning-bg: #fffbeb;
  --status-danger: #ef4444;
  --status-danger-bg: #fef2f2;
  --status-info: #0284c7;
  --status-info-bg: #f0f9ff;

  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-highlight: #f8fafc;

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-strong: #cbd5e1;
  --border-focus: #2d6a4f;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-gold: 0 4px 14px 0 rgba(212, 175, 55, 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cinzel', Georgia, serif;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   HEADER & TOPBAR
   ========================================================================== */
.engine-header {
  background: var(--brand-primary-dark);
  color: var(--text-inverse);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo-badge {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  border: 1px solid var(--brand-accent);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
}

.brand-logo-badge svg {
  width: 24px;
  height: 24px;
  color: var(--brand-accent);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-text h1 .badge-year {
  background: var(--brand-accent);
  color: var(--brand-primary-dark);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.header-center-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: #e2e8f0;
}

.header-center-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition-base);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary-light), var(--brand-primary));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(27, 67, 50, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #357c5e, #1f4e3b);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, #e5be47, var(--brand-accent));
  color: var(--brand-primary-dark);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #ecd068, #c4a130);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 0.38rem 0.75rem;
  font-size: 0.76rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ==========================================================================
   PROGRESS STEPPER (4 STAGES)
   ========================================================================== */
.stepper-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.stepper-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.step-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  text-align: left;
  user-select: none;
}

.step-tab:hover {
  background: #e2e8f0;
  border-color: var(--border-strong);
}

.step-tab.active {
  background: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.12);
  position: relative;
}

.step-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--brand-accent);
  border-radius: 3px 3px 0 0;
}

.step-tab.completed .step-number {
  background: var(--status-success);
  color: #ffffff;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-base);
}

.step-tab.active .step-number {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.2);
}

.step-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.step-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   APP CONTAINER & GRID LAYOUT
   ========================================================================== */
.app-container {
  max-width: 1520px;
  margin: 1.25rem auto;
  padding: 0 1.5rem;
  width: 100%;
  flex: 1;
}

.stage-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.stage-view.active {
  display: block;
}

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

/* Top Banner with Quick Presets */
.preset-bar {
  background: linear-gradient(to right, #1b4332, #245741);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.preset-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
}

.preset-title span.badge {
  background: var(--brand-accent);
  color: var(--brand-primary-dark);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 800;
}

.preset-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-preset {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-preset:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--brand-accent);
  transform: translateY(-1px);
}

/* Cards & Layout */
.layout-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.layout-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.layout-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.card-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.card-header-title svg {
  color: var(--brand-primary);
  width: 20px;
  height: 20px;
}

.card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.card-badge.gold {
  background: var(--brand-accent-subtle);
  color: #8f6c07;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.card-badge.green {
  background: var(--status-success-bg);
  color: var(--status-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   FORM CONTROLS & INPUTS
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

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

.form-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .helper-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-input, .form-select {
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #ffffff;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.form-input:disabled {
  background-color: var(--bg-subtle);
  cursor: not-allowed;
  color: var(--text-muted);
}

.input-suffix-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-suffix-group .form-input {
  width: 100%;
  padding-right: 2.8rem;
}

.input-suffix-group .suffix-text {
  position: absolute;
  right: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

/* Interactive Slider */
.slider-group {
  margin-top: 0.5rem;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-primary);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   METRIC TILES & KPI BOXES
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-strong);
}

.kpi-card.gold::before { background: var(--brand-accent); }
.kpi-card.green::before { background: var(--status-success); }
.kpi-card.blue::before { background: var(--status-info); }
.kpi-card.warning::before { background: var(--status-warning); }
.kpi-card.danger::before { background: var(--status-danger); }

.kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.kpi-subtext {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   SCENARIO CARDS (A, B, C)
   ========================================================================== */
.scenario-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.scenario-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
}

.scenario-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.scenario-card.active {
  border-color: var(--brand-primary);
  background: #fdfefe;
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.12);
}

.scenario-card.active::after {
  content: '✓ Seçili Senaryo';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--brand-primary);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.scenario-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.scenario-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.scenario-card.active .scenario-icon {
  background: var(--brand-primary);
  color: #ffffff;
}

.scenario-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.scenario-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.scenario-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item .label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-item .val {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
}

/* ==========================================================================
   FINANCING COMPARISON MATRIX (4 MODELS)
   ========================================================================== */
.finance-comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.model-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-base);
}

.model-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.model-card.recommended {
  border-color: var(--brand-accent);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

.model-ribbon {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d4af37, #aa820a);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.model-header {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  text-align: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.model-header h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.model-header p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.model-metrics-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1rem;
}

.model-metrics-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.model-metrics-list li .name {
  color: var(--text-secondary);
}

.model-metrics-list li .value {
  font-weight: 700;
  color: var(--text-main);
}

.model-metrics-list li.highlight-net {
  background: var(--bg-subtle);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border-bottom: none;
  font-weight: 800;
}

/* ==========================================================================
   DECISION ENGINE: AL / MÜZAKERE ET / ALMA BADGES
   ========================================================================== */
.decision-banner {
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.decision-banner.decision-take {
  background: linear-gradient(135deg, #064e3b, #047857);
  color: #ffffff;
  border: 2px solid #10b981;
}

.decision-banner.decision-negotiate {
  background: linear-gradient(135deg, #78350f, #b45309);
  color: #ffffff;
  border: 2px solid #f59e0b;
}

.decision-banner.decision-pass {
  background: linear-gradient(135deg, #7f1d1d, #b91c1c);
  color: #ffffff;
  border: 2px solid #ef4444;
}

.decision-status-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.decision-pill-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.decision-verdict {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.decision-subtext {
  font-size: 0.82rem;
  opacity: 0.9;
  max-width: 600px;
}

.risk-meter-box {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.risk-meter-score {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

.risk-meter-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* ==========================================================================
   DETAILED TABLES & COST BREAKDOWNS
   ========================================================================== */
.table-responsive {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.data-table th {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 700;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.data-table tr:hover td {
  background-color: #f8fafc;
}

.data-table tr.total-row td {
  background: var(--bg-subtle);
  font-weight: 800;
  border-top: 2px solid var(--border-strong);
  border-bottom: none;
}

.progress-bar-container {
  background: #e2e8f0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.progress-bar-fill.green { background: var(--status-success); }
.progress-bar-fill.gold { background: var(--brand-accent); }
.progress-bar-fill.blue { background: var(--status-info); }
.progress-bar-fill.orange { background: var(--status-warning); }

/* ==========================================================================
   HAKEDİŞ & CASH FLOW TIMELINE
   ========================================================================== */
.timeline-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1rem 0;
  position: relative;
}

.timeline-step {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  position: relative;
}

.timeline-step .pct-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-primary);
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 6px;
}

.timeline-step h5 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-step .amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

/* ==========================================================================
   PROPOSAL & PRINT PREVIEW
   ========================================================================== */
.proposal-paper {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  max-width: 1080px;
  margin: 0 auto 2rem auto;
}

.proposal-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--brand-accent);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.proposal-brand-header .title-area h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
}

.proposal-brand-header .title-area p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.proposal-meta-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--bg-subtle);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.proposal-meta-item .label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.proposal-meta-item .value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.proposal-section-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin: 1.5rem 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 4px solid var(--brand-accent);
  padding-left: 10px;
}

.proposal-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.signature-box {
  text-align: center;
}

.signature-box .sign-line {
  border-bottom: 1px dashed var(--border-strong);
  margin-bottom: 0.5rem;
  height: 50px;
}

.signature-box .sign-role {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.signature-box .sign-name {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STICKY BOTTOM ACTION BAR
   ========================================================================== */
.bottom-action-bar {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
  position: sticky;
  bottom: 0;
  z-index: 900;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

.bottom-action-inner {
  max-width: 1520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bottom-summary-quick {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.quick-metric-item {
  display: flex;
  flex-direction: column;
}

.quick-metric-item .lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.quick-metric-item .val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.nav-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   PRINT / PDF MEDIA QUERIES
   ========================================================================== */
@media print {
  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .engine-header,
  .stepper-nav,
  .preset-bar,
  .bottom-action-bar,
  .no-print,
  button,
  .btn {
    display: none !important;
  }

  .app-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .stage-view {
    display: none !important;
  }

  #stage4, .proposal-paper {
    display: block !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .data-table th, .data-table td {
    border-color: #ddd !important;
    font-size: 9pt;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 1200px) {
  .stepper-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-3col, .layout-4col, .finance-comparison-grid, .scenario-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .stepper-inner {
    grid-template-columns: 1fr;
  }

  .layout-2col, .layout-3col, .layout-4col, .finance-comparison-grid, .scenario-selector, .timeline-stepper {
    grid-template-columns: 1fr;
  }

  .decision-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .bottom-action-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .bottom-summary-quick {
    flex-wrap: wrap;
    justify-content: space-between;
  }
}
