/* ============================================
   HESAPLAMA SAYFASI — ÖZEL STİLLER
   ============================================ */

/* Sayfa üst başlık bandı */
.hesap-hero {
  background: linear-gradient(145deg, var(--green-deep) 0%, #1a4a30 100%);
  padding: 48px 0 36px;
  text-align: center;
  border-bottom: 1px solid rgba(201,168,76,.2);
  position: relative;
  overflow: hidden;
}
.hesap-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='rgba(201,168,76,0.06)' stroke-width='1'/%3E%3C/svg%3E");
}
.hesap-hero-breadcrumb {
  font-size: .78rem; color: rgba(255,255,255,.4);
  margin-bottom: 12px; position: relative;
}
.hesap-hero-breadcrumb a { color: var(--gold-light); }
.hesap-hero-breadcrumb a:hover { color: var(--gold); }
.hesap-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--white);
  margin-bottom: 10px; position: relative;
}
.hesap-hero h1 em { color: var(--gold-light); font-style: normal; }
.hesap-hero p {
  color: rgba(255,255,255,.6); font-size: .92rem;
  position: relative; max-width: 480px; margin: 0 auto;
}

/* Ana içerik alanı */
.hesap-main {
  padding: 48px 0 80px;
}

/* Hesaplama kartı */
.card {
  background: var(--white); border-radius: 24px; padding: 40px;
  max-width: 640px; width: 100%; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

/* İlerleme çubuğu */
.progress-wrap { margin-bottom: 28px; }
.progress-bar { display: flex; gap: 6px; margin-bottom: 8px; }
.progress-seg {
  height: 5px; flex: 1; border-radius: 3px;
  background: var(--gray-200); transition: background .3s;
}
.progress-seg.done { background: var(--green-light); opacity: .45; }
.progress-seg.active { background: var(--green-light); }
.progress-label { font-size: .75rem; color: var(--gray-500); text-align: right; }

/* Adım başlık */
.card h2 { font-size: 1.35rem; color: var(--dark); margin-bottom: 6px; }
.subtitle { color: var(--gray-500); font-size: .88rem; margin-bottom: 22px; line-height: 1.6; }

/* Grup alt etiketi */
.calc-group-label {
  font-size: .76rem; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 9px; margin-top: 4px;
}

/* Varlık ekleme butonu */
.add-varlik-btn {
  width: 100%; padding: 13px 14px; margin-bottom: 14px;
  border: 2px dashed var(--green-light); border-radius: 12px;
  background: var(--green-pale); cursor: pointer;
  font-size: .95rem; font-weight: 600; font-family: 'Inter', sans-serif;
  transition: all .18s; color: var(--green-light);
}
.add-varlik-btn:hover { background: #d4eddc; }

/* Ekleme formu */
.add-form {
  background: var(--gray-100); border: 2px solid var(--green-light);
  border-radius: 14px; padding: 16px; margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.add-form input {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--gray-200); border-radius: 10px;
  font-size: .95rem; outline: none; transition: border-color .2s;
  font-family: 'Inter', sans-serif; background: var(--white); color: var(--dark);
}
.add-form input:focus { border-color: var(--green-light); }
.add-form-row { display: flex; gap: 8px; }
.add-form-row input { flex: 1; }
.add-form-label {
  font-size: .8rem; color: var(--gray-700);
  font-weight: 600; margin-bottom: -4px;
}
.add-form-actions { display: flex; gap: 8px; }
.btn-ekle {
  flex: 1; padding: 10px; background: var(--green-light); color: white;
  border: none; border-radius: 10px; cursor: pointer;
  font-weight: 700; font-size: .92rem; font-family: 'Inter', sans-serif;
  transition: background .2s;
}
.btn-ekle:hover { background: var(--green-mid); }
.btn-iptal {
  padding: 10px 16px; background: var(--gray-200); color: var(--gray-700);
  border: none; border-radius: 10px; cursor: pointer;
  font-size: .92rem; font-family: 'Inter', sans-serif;
}
.btn-iptal:hover { background: var(--gray-200); filter: brightness(.95); }

/* Varlık listesi */
.varlik-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.varlik-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--off-white); border: 1.5px solid var(--gray-200);
  border-left: 4px solid var(--green-light);
}
.varlik-icon { font-size: 1.25rem; flex-shrink: 0; }
.varlik-info { flex: 1; }
.varlik-ad  { font-weight: 600; font-size: .92rem; color: var(--dark); }
.varlik-alt { font-size: .78rem; color: var(--gray-500); margin-top: 2px; }
.varlik-del {
  background: none; border: none; color: #c0392b; cursor: pointer;
  font-size: 1rem; padding: 4px 8px; border-radius: 6px; flex-shrink: 0;
  transition: background .15s;
}
.varlik-del:hover { background: #fff0ee; }
.empty-note {
  text-align: center; padding: 24px; color: var(--gray-500); font-size: .88rem;
  border: 2px dashed var(--gray-200); border-radius: 12px; margin-bottom: 10px;
  line-height: 1.7;
}

/* Seçim butonları */
.options { display: flex; flex-direction: column; gap: 11px; }
.opt-btn {
  padding: 15px 18px; border: 2px solid var(--gray-200); border-radius: 14px;
  background: var(--white); cursor: pointer; font-size: .97rem; text-align: left;
  transition: all .18s; display: flex; align-items: center; gap: 13px;
  color: var(--gray-700); font-family: 'Inter', sans-serif;
}
.opt-btn:hover { border-color: var(--green-light); background: var(--green-pale); }
.opt-btn.selected {
  border-color: var(--green-light); background: var(--green-pale);
  color: var(--green-mid); font-weight: 600;
}
.opt-icon { font-size: 1.35rem; flex-shrink: 0; }

/* Yatay seçim butonları */
.opt-row { display: flex; gap: 9px; flex-wrap: wrap; }
.opt-sq {
  flex: 1; min-width: 60px; padding: 14px 8px;
  border: 2px solid var(--gray-200); border-radius: 13px; background: var(--white);
  cursor: pointer; font-size: 1.05rem; font-weight: 700; text-align: center;
  transition: all .18s; color: var(--gray-700); font-family: 'Inter', sans-serif;
}
.opt-sq:hover { border-color: var(--green-light); background: var(--green-pale); }
.opt-sq.selected { border-color: var(--green-light); background: var(--green-pale); color: var(--green-mid); }
.opt-sq small { display: block; font-size: .68rem; font-weight: 400; color: var(--gray-500); margin-top: 3px; }
.opt-sq.selected small { color: var(--green-mid); }

/* Sayaç satırları */
.counter-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 4px; }
.counter-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border: 2px solid var(--gray-200);
  border-radius: 12px; background: var(--off-white); transition: all .2s;
}
.counter-row.active-row { border-color: var(--green-light); background: var(--green-pale); }
.counter-row.disabled { opacity: .38; pointer-events: none; }
.counter-label { font-size: .93rem; color: var(--gray-700); font-weight: 500; }
.counter-controls { display: flex; align-items: center; gap: 13px; }
.c-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--green-light); background: var(--white); color: var(--green-light);
  font-size: 1.2rem; cursor: pointer; font-weight: bold; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.c-btn:hover { background: var(--green-light); color: white; }
.c-val { font-size: 1.05rem; font-weight: 700; min-width: 20px; text-align: center; color: var(--dark); }

/* Toggle satırları */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border: 2px solid var(--gray-200); border-radius: 12px;
  margin-bottom: 9px; cursor: pointer; transition: all .18s;
}
.toggle-row:hover { border-color: var(--green-light); background: var(--green-pale); }
.toggle-row.on { border-color: var(--green-light); background: var(--green-pale); }
.toggle-left { display: flex; align-items: center; gap: 11px; font-size: .97rem; font-weight: 500; color: var(--gray-700); }
.toggle-badge {
  padding: 3px 11px; border-radius: 20px; font-size: .78rem; font-weight: 700;
  background: var(--gray-200); color: var(--gray-500);
}
.toggle-row.on .toggle-badge {
  background: var(--green-pale); color: var(--green-mid);
  border: 1px solid var(--green-light);
}

/* Adım alt navigasyonu */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px; gap: 11px;
}
.btn {
  padding: 12px 24px; border-radius: 12px; border: none; cursor: pointer;
  font-size: .97rem; font-weight: 600; transition: all .18s; font-family: 'Inter', sans-serif;
}
.btn-back { background: var(--gray-100); color: var(--gray-700); }
.btn-back:hover { background: var(--gray-200); }
.btn-next { background: var(--green-light); color: white; margin-left: auto; }
.btn-next:hover { background: var(--green-mid); transform: translateY(-1px); }

/* Sonuç ekranı */
.result-top { text-align: center; margin-bottom: 24px; }
.result-varlik-ozet { font-size: .8rem; color: var(--gray-500); margin-top: 8px; line-height: 1.6; }
.varis-list { display: flex; flex-direction: column; gap: 10px; }
.varis-card {
  padding: 16px 18px; border-radius: 14px;
  background: var(--off-white); border-left: 5px solid var(--green-light);
}
.varis-card.asabe { border-left-color: var(--gold); }
.varis-card-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.varis-name { font-weight: 700; color: var(--dark); font-size: .95rem; }
.varis-sebep { font-size: .78rem; color: var(--gray-500); margin-top: 2px; line-height: 1.5; }
.varis-right { text-align: right; flex-shrink: 0; }
.varis-para { font-size: 1.05rem; font-weight: 700; color: var(--green-light); }
.varis-card.asabe .varis-para { color: var(--gold); }
.varis-pay { font-size: .75rem; color: var(--gray-500); margin-top: 2px; }
.varis-paylar { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.varis-paylar-satir {
  font-size: .82rem; color: var(--gray-700); background: var(--green-pale);
  border-radius: 6px; padding: 5px 10px; display: inline-block;
  border: 1px solid rgba(45,125,70,.15);
}
.varis-card.asabe .varis-paylar-satir {
  background: var(--gold-pale); border-color: rgba(201,168,76,.25);
}
.info-box {
  background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px;
  padding: 11px 15px; font-size: .82rem; color: #92400e; margin-top: 13px; line-height: 1.5;
}
.info-box.mavi { background: #eff6ff; border-color: #93c5fd; color: #1e40af; }
.restart-btn {
  display: block; width: 100%; margin-top: 16px; padding: 14px;
  background: var(--green-light); color: white; border: none; border-radius: 13px;
  font-size: .97rem; font-weight: 700; cursor: pointer; transition: background .2s;
  font-family: 'Inter', sans-serif;
}
.restart-btn:hover { background: var(--green-mid); }
.divider { height: 1px; background: var(--gray-200); margin: 14px 0; }
.result-section-title {
  font-size: .74rem; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 8px;
}

/* Mobil uyum */
@media (max-width: 640px) {
  .card { padding: 24px 20px; border-radius: 16px; }
  .hesap-hero { padding: 36px 0 28px; }
  .hesap-hero h1 { font-size: 1.5rem; }
  .hesap-main { padding: 32px 0 60px; }
}
