:root {
  --navy: #132743;
  --navy-light: #1F3A61;
  --gold: #C9962C;
  --bg: #F4F6F9;
  --card: #FFFFFF;
  --line: #E1E5EB;
  --text: #1A1D23;
  --muted: #6B7280;
  --green: #2F7A52;
  --green-bg: #E9F5EE;
  --shadow: 0 1px 3px rgba(19, 39, 67, 0.06);
  --shadow-md: 0 6px 20px rgba(19, 39, 67, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Candara", "Calibri", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 16px 20px;
}

.topbar-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-sub {
  font-size: 12px;
  color: #C7D2E0;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a,
.nav-disabled {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #C7D2E0;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

/* —— Hero —— */
.page-hero {
  text-align: center;
  margin-bottom: 24px;
  padding: 8px 4px 4px;
}

.page-hero-brand {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 5vw, 28px);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

.page-hero-desc {
  margin: 0 auto;
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* —— Panels —— */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.panel h2 {
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--navy);
  margin: 0 0 18px;
  font-weight: 700;
}

.secim-panel .form-alan + .form-alan {
  margin-top: 16px;
}

.form-alan label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-alan select,
.yil-secim select {
  appearance: none;
  width: 100%;
  max-width: none;
  min-height: 48px;
  padding: 12px 40px 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.form-alan select:focus,
.yil-secim select:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(31, 58, 97, 0.12);
}

.yil-secim {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.yil-secim label {
  font-size: 13px;
  color: var(--muted);
}

/* —— Combo —— */
.combo { position: relative; }

.combo input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  background: #fff;
}

.combo input:disabled {
  background: #F8F9FB;
  color: var(--muted);
  cursor: not-allowed;
}

.combo input:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(31, 58, 97, 0.12);
}

.combo-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: min(320px, 55vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-md);
  display: none;
}

.combo-list.open { display: block; }

.combo-group {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 10px 14px 4px;
  font-weight: 700;
  background: #FAFBFC;
  position: sticky;
  top: 0;
}

.combo-item {
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
}

.combo-item:hover,
.combo-item.active {
  background: var(--green-bg);
  color: var(--green);
}

.combo-item.muted { color: var(--muted); }

.combo-empty {
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* taban satır yenileme UI'da gizli (JS uyumu için DOM'da kalır) */
.secim-panel .taban-satir {
  display: none !important;
}

.taban-satir {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  color: var(--muted);
}

.taban-satir.show { display: flex; }

.taban-satir b {
  color: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

/* —— Burs seçenekleri (yeni kayıt) —— */
.secenekler {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .secenekler { grid-template-columns: repeat(2, 1fr); }
}

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

.secenek {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: 0.15s;
  user-select: none;
  min-width: 0;
}

.secenek.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.secenek.on {
  border-color: var(--green);
  background: var(--green-bg);
}

.secenek input {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
  flex: none;
}

.secenek .lbl {
  font-size: 14px;
  font-weight: 600;
}

.secenek .sub {
  font-size: 11.5px;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}

.secenek.locked .lbl { color: var(--green); }

/* —— Sonuç —— */
.sonuc-panel {
  border-color: #D7DEE8;
  box-shadow: var(--shadow-md);
}

.sonuclar { display: block; }

.ucret-sonuc {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ucret-sonuc-baslik {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.ucret-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.ucret-meta-item {
  min-width: 0;
}

.ucret-meta-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.ucret-meta-item b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  word-break: break-word;
}

.ucret-secenekler {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ucret-secenek {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #FAFBFC;
  text-align: center;
  min-width: 0;
}

.ucret-secenek-baslik {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
}

.ucret-secenek-tutar {
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.ucret-secenek-taksit {
  font-size: clamp(15px, 3.6vw, 18px);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  word-break: break-word;
}

.ucret-secenek-toplam-lbl {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.ucret-secenek-alt {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}

/* Yeni kayıt sonuç kartları */
.sonuc-kart {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}

.sonuc-iki-kolon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0;
  border: none;
  background: transparent;
}

@media (max-width: 720px) {
  .sonuc-iki-kolon { grid-template-columns: 1fr; }
  .ucret-meta { grid-template-columns: 1fr; }
  .ucret-secenekler { grid-template-columns: 1fr; }
}

.sonuc-kolon {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}

.kolon-baslik {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 14px;
}

.sonuc-kart.vurgu {
  border-color: var(--gold);
  background: #FFFCF5;
}

.sonuc-kart .baslik {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.sonuc-kart .satir,
.sonuc-kolon .satir {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--muted);
}

.sonuc-kart .satir b,
.sonuc-kolon .satir b {
  color: var(--text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.sonuc-kart .satir.toplam,
.sonuc-kolon .satir.toplam {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 12px;
}

.sonuc-kart .satir.toplam b,
.sonuc-kolon .satir.toplam b {
  color: var(--navy);
  font-size: 20px;
}

.sonuc-kart .satir.indirim b,
.sonuc-kolon .satir.indirim b {
  color: var(--green);
}

.pesin-blok {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding: 16px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F7FAF8 0%, #EEF6F1 100%);
  border: 1px solid #D5E8DC;
}

.pesin-lbl {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.pesin-tutar {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.taksit-vurgu {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F5F8FC 0%, #EAF0F8 100%);
  border: 1px solid #D5DEEB;
}

.taksit-bolum {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.taksit-baslik {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 8px;
}

.taksit-cizgi {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 10px 0 4px;
}

.taksit-cizgi .pesinat-blok {
  width: 34px;
  height: 8px;
  border-radius: 4px;
  background: var(--gold);
  flex: none;
}

.taksit-cizgi .ay {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--navy-light);
}

/* —— Empty state —— */
.empty-panel {
  border-style: dashed;
  background: #FAFBFC;
  box-shadow: none;
}

.bos-durum {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.bos-durum p {
  margin: 0;
  max-width: 320px;
  margin-inline: auto;
}

.bos-ikon {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 42%, var(--line) 43% 58%, transparent 59%),
    linear-gradient(var(--line), var(--line)) center / 2px 16px no-repeat,
    linear-gradient(90deg, var(--line), var(--line)) center / 16px 2px no-repeat,
    #EEF1F5;
}

/* —— Bilgilendirme —— */
.bilgi-notu {
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #F8F9FB;
  border: 1px solid var(--line);
}

.bilgi-notu h3 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.bilgi-notu h4 {
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.bilgi-notu h4:first-of-type {
  margin-top: 0;
}

.bilgi-notu p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.bilgi-notu ul {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.bilgi-notu li {
  margin-bottom: 8px;
}

.bilgi-notu li:last-child {
  margin-bottom: 0;
}

.bilgi-notu-kdv {
  margin: 12px 0 0 !important;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--text) !important;
}

.not {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.6;
  background: #FBF9F4;
  border: 1px dashed #E7D8B8;
  border-radius: 10px;
  padding: 12px 14px;
}

.hero-panel {
  margin-bottom: 28px;
  padding: 8px 4px 4px;
}

.hero-panel h1 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--navy);
  font-weight: 700;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.mode-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.mode-card.primary:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(19, 39, 67, 0.08);
}

.mode-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mode-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
}

.mode-card h2 {
  margin: 8px 0 8px;
  font-size: 20px;
  color: var(--navy);
}

.mode-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.mode-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}

[hidden] { display: none !important; }

@media (max-width: 520px) {
  .wrap {
    padding: 20px 14px 40px;
  }

  .panel {
    padding: 18px 16px;
    border-radius: 12px;
  }

  .page-hero {
    margin-bottom: 18px;
    text-align: left;
  }

  .page-hero-desc {
    margin: 0;
  }

  .combo-item {
    padding: 14px;
    font-size: 15px;
  }
}
