/* ================================================================
   FreeFiber — Tarifeler Sayfa Stilleri
   Yüklenme sırası: app.css → ff-design.css → bu dosya (son)
   ================================================================ */

/* ---------------------------------------------------------------
   CSS DEĞİŞKENLERİ
   --------------------------------------------------------------- */
:root {
  --brand-blue:   #302782;
  --brand-dark:   #261f6a;
  --bg-soft:      #f7f7fb;
}


/* ---------------------------------------------------------------
   1. NAVBAR — Dropdown alt çizgisi tamamen kapalı
   (app.css'teki .nav__label::after + ::after animasyonlarını iptal)
   --------------------------------------------------------------- */
.nav__dropdown-item .nav__label::after,
.nav__dropdown-item::after,
.nav__dropdown-item::before {
  display: none;
}

.nav__dropdown-item:hover {
  background: rgba(48, 39, 130, 0.07);
  color: #302782;
  text-decoration: none;
}


/* ---------------------------------------------------------------
   2. TARIFE EXPLAIN (üst bilgi bandı)
   --------------------------------------------------------------- */
.tarife-explain { padding: 18px 0 22px; }
.tarife-explain__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(16,161,246,.22), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(48,39,130,.10), rgba(255,255,255,.75));
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(15,23,42,.10);
}
.tarife-explain__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.tarife-explain__art img { width: 100%; max-width: 420px; margin-left: auto; }

@media (max-width: 980px) {
  .tarife-explain__inner { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------------
   3. SAYFA & BÖLÜM YAPISI
   --------------------------------------------------------------- */
.pricing-page { padding: 56px 0 80px; }
.pricing-section { margin-bottom: 64px; }

/* Section başlık — her zaman ortalı */
.pricing-section .section-head,
.section-head {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-section .section-head h2,
.section-head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  color: #302782;
  margin: 0 0 10px;
  text-align: center;
}

.pricing-section .section-head p,
.section-head p {
  margin: 0 auto;
  color: #6B7280;
  font-size: 1rem;
  line-height: 1.65;
  text-align: center;
  max-width: 64ch;
}

@media (max-width: 768px) {
  .pricing-page { padding: 36px 0 60px; }
  .pricing-section .section-head,
  .section-head { text-align: center; }
  .pricing-section .section-head p,
  .section-head p { text-align: center; }
}


/* ---------------------------------------------------------------
   4. AirFiber dipnot
   --------------------------------------------------------------- */
.airfiber-note {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #6B7280;
  font-style: italic;
  text-align: center;
}


/* ---------------------------------------------------------------
   5. PRİCİNG GRİD — flex, max 400px/kart, ortalı
   --------------------------------------------------------------- */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.pricing-grid > * {
  flex: 0 0 auto;
  width: clamp(260px, calc(33.333% - 16px), 400px);
}

@media (max-width: 992px) {
  .pricing-grid > * { width: clamp(260px, calc(50% - 12px), 400px); }
}

@media (max-width: 640px) {
  .pricing-grid > * { width: 100%; max-width: 100%; }
}


/* ---------------------------------------------------------------
   6. PRİCİNG CARD
   --------------------------------------------------------------- */
.pricing-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  padding: 44px 40px 40px;
  min-height: 520px;
  box-shadow: 0 20px 50px rgba(48, 39, 130, 0.08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(48, 39, 130, 0.13);
}

/* Başlık: sarılabilir, taşmaz */
.pricing-card .pricing-title,
.pricing-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: #302782;
  margin-bottom: 20px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Feature list — flex büyüsün */
.pricing-card .feature-list,
.pricing-card ul {
  flex: 1 1 auto;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.pricing-card .feature-list li,
.pricing-card ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
}

.pricing-card .feature-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #302782;
  pointer-events: none;
}
.pricing-card .feature-icon::before { content: none; }
.pricing-card .feature-icon svg { display: block; width: 16px; height: 16px; }

.pricing-card .pricing-icon { display: none; }

/* Fiyat */
.pricing-card .price {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(48, 39, 130, 0.10);
  font-size: 32px;
  font-weight: 900;
  color: #302782;
  letter-spacing: -0.2px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pricing-card .price span,
.pricing-card .price .per { font-size: 1rem; font-weight: 700; color: #6B7280; }

/* Kurumsal: fiyat notu */
.pricing-card .price.price-note { display: block; margin-top: 10px; }
.pricing-card .price.price-note .value {
  font-size: 18px;
  font-weight: 900;
  color: #302782;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

/* Kurumsal: "Size özel fiyatlar için bilgi alınız" — cyan */
.price--contact {
  font-size: 15px;
  font-weight: 700;
  color: #00ADEF;
  margin: 20px 0 10px;
  line-height: 1.4;
}

/* CTA alan — alta hizala */
.pricing-card .cta,
.pricing-card .pricing-card__actions {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Başvur butonu */
.pricing-card .btn-apply {
  width: 100%;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 15px;
  border: 2px solid rgba(48,39,130,0.20);
  background: #302782;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pricing-card .btn-apply:hover {
  background: #261f6a;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(48, 39, 130, .18);
}

/* Tarife Detay butonu */
.btn-detail {
  width: 100%;
  padding: 12px 16px;
  height: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 14px;
  border: 1.5px solid rgba(48,39,130,.30);
  background: transparent;
  color: #302782;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease;
  margin-bottom: 0;
}
.btn-detail:hover { background: rgba(48,39,130,.06); }
.btn-detail__title { font-weight: 900; }
.btn-detail__sub { font-weight: 700; font-size: 12px; opacity: .9; }

/* Featured kart */
.pricing-card.featured,
.pricing-card.featured:hover { border: none; }

/* Mobil */
@media (max-width: 768px) {
  .pricing-card { padding: 32px 24px 28px; min-height: unset; }
  .pricing-card .price { font-size: 28px; }
}


/* ---------------------------------------------------------------
   7. TOGGLE (Taahhütsüz / Taahhütlü) — tech-tab ile aynı görünüm
   --------------------------------------------------------------- */
.pricing-toggle {
  margin-top: 14px;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.pricing-toggle .segmented {
  display: inline-flex;
  gap: 8px;
  width: min(520px, 92vw);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(48,39,130,.16);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 12px 26px rgba(16,24,40,.10);
  backdrop-filter: blur(8px);
}

/* İnaktif buton */
.pricing-toggle .segmented__item span,
.pricing-toggle .segmented__item:first-child span,
.pricing-toggle .segmented__item:last-child span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: rgba(48,39,130,.88);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  box-shadow: none;
  transform: none;
  opacity: 1;
  white-space: nowrap;
}

/* İnaktif hover: tech-tab ile aynı — gri zemin, cyan metin */
.pricing-toggle .segmented__item:hover span,
.pricing-toggle .segmented__item:first-child:hover span,
.pricing-toggle .segmented__item:last-child:hover span {
  background: rgba(48,39,130,.06);
  color: #00ADEF;
  box-shadow: none;
  transform: none;
}

/* Aktif */
.pricing-toggle .segmented__item input:checked + span,
.pricing-toggle .segmented__item:first-child input:checked + span,
.pricing-toggle .segmented__item:last-child input:checked + span {
  background: #302782;
  color: #ffffff;
  border: none;
  box-shadow: 0 14px 30px rgba(48,39,130,.22);
  transform: none;
}

.pricing-toggle .segmented__item input:checked + span:hover {
  background: #302782;
  color: #ffffff;
}

.section-head--sub { margin-top: 28px; }


/* ---------------------------------------------------------------
   8. TECH TABS (GPON / VAE / AirFiber)
   --------------------------------------------------------------- */
.tech-tabs {
  width: min(680px, 92vw);
  margin: 6px auto 22px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(48,39,130,.16);
  border-radius: 18px;
  padding: 8px;
  display: flex;
  gap: 8px;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(16,24,40,.10);
}

.tech-tab {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(48,39,130,.88);
  border-radius: 14px;
  padding: 10px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.tech-tab:hover { background: rgba(48,39,130,.06); }
.tech-tab.is-active {
  background: #302782;
  color: #fff;
  box-shadow: 0 14px 30px rgba(48,39,130,.22);
}


/* ---------------------------------------------------------------
   9. TARİFE DETAY MODALİ
   --------------------------------------------------------------- */
.tarife-modal { position: fixed; inset: 0; z-index: 99999; display: none; }
.tarife-modal.is-open { display: block; }
.tarife-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
}
.tarife-modal__dialog {
  position: relative;
  width: min(980px, 92vw);
  max-height: 86vh;
  overflow: auto;
  margin: 6vh auto;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(48,39,130,.14);
  border-radius: 22px;
  box-shadow: 0 40px 120px rgba(0,0,0,.30);
  padding: 22px;
}
.tarife-modal__close {
  position: sticky;
  top: 0;
  float: right;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(48,39,130,.16);
  background: rgba(255,255,255,.9);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: rgba(48,39,130,.9);
}
.tarife-modal__content { clear: both; padding-top: 10px; }
.pricing-card--modal { transform: none; box-shadow: 0 24px 70px rgba(16,24,40,.16); }

.tarife-modal__notes {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(48,39,130,.12);
}
.tarife-modal__notes h3 { margin: 0 0 10px; font-size: 15px; font-weight: 900; color: rgba(48,39,130,.95); }
.tarife-modal__notes p,
.tarife-notes__body p { margin: 0 0 10px; color: rgba(15,23,42,.85); font-weight: 600; }
.tarife-modal__notes ul,
.tarife-notes__body ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.tarife-modal__notes li,
.tarife-notes__body li { color: rgba(15,23,42,.85); font-weight: 600; line-height: 1.5; }

html.modal-open, body.modal-open { overflow: hidden; }


/* ═══════════════════════════════════════════════════════════════════════
   Bireysel & Kurumsal Tarifeler — Eksik Bileşen Stilleri
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Tech Section ─────────────────────────────────────────────────── */
.bt-tech-section{text-align:center;margin-bottom:8px}

/* ── Tarife Section (show/hide by JS) ─────────────────────────────── */
.bt-tarife-section{display:none}
.bt-tarife-section:first-of-type{display:block}

/* ── Toggle (Taahhütlü / Taahhütsüz) ─────────────────────────────── */
.bt-toggle-card{
  display:flex;justify-content:center;margin-bottom:32px;
}
.bt-toggle-group{
  display:inline-flex;
  background:var(--gray-100, #F0F3F8);
  border-radius:var(--r-pill, 50px);
  padding:4px;
  gap:2px;
}
.bt-toggle-btn{
  padding:10px 24px;
  border:none;
  border-radius:var(--r-pill, 50px);
  background:transparent;
  color:var(--gray-500, #636B88);
  font-family:var(--font, 'Satoshi', sans-serif);
  font-size:14px;
  font-weight:var(--fw-semibold, 600);
  cursor:pointer;
  transition:all .25s ease;
}
.bt-toggle-btn:hover{color:var(--ff-navy, #302782)}
.bt-toggle-btn.is-active{
  background:var(--ff-navy, #302782);
  color:#fff;
  box-shadow:0 2px 8px rgba(48,39,130,.25);
}

/* ── Commitment Content (show/hide) ───────────────────────────────── */
.bt-commitment-content{display:none}
.bt-commitment-content.is-active{display:block}

/* ── Split Layout (info panel + cards side by side) ───────────────── */
.bt-split-layout{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:24px;
  align-items:start;
}

/* ── Info Panel (left side navy box) ──────────────────────────────── */
.bt-info-panel{
  background:linear-gradient(155deg, #0d0b2e 0%, #302782 55%, #1a4a7a 100%);
  border-radius:var(--r-lg, 18px);
  padding:32px 28px;
  color:#fff;
  min-height:240px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.bt-info-title{
  font-size:22px;
  font-weight:var(--fw-extrabold, 800);
  color:#fff;
  margin:0 0 14px;
  line-height:1.25;
}
.bt-info-description{
  font-size:14px;
  line-height:1.7;
  color:rgba(255,255,255,.72);
  margin:0;
}
.bt-info-description small{font-size:12px;opacity:.8}

/* ── Cards Container (bireysel — right side) ──────────────────────── */
.bt-cards-container{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:20px;
}

/* ── Cards Container (kurumsal — full width 3 columns) ────────────── */
.kt-cards-container{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}

/* ── Card Components ──────────────────────────────────────────────── */
.bt-card-header{margin-bottom:16px}
.bt-card-body{margin-bottom:16px}

/* Card Variants */
.bt-card--navy{border-top:4px solid var(--ff-navy, #302782)}
.bt-card--navy .bt-check{color:var(--ff-navy, #302782)}
.bt-card--navy .bt-card-title{color:var(--ff-navy, #302782)}

.bt-card--cyan{border-top:4px solid var(--ff-cyan, #00ADEF)}
.bt-card--cyan .bt-check{color:var(--ff-cyan, #00ADEF)}
.bt-card--cyan .bt-card-title{color:var(--ff-cyan, #00ADEF)}

/* Kurumsal price contact text */
.kt-price-contact{
  font-size:14px;
  font-weight:var(--fw-semibold, 600);
  color:var(--gray-500, #636B88);
  text-align:center;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media(max-width:992px){
  .bt-split-layout{grid-template-columns:1fr}
  .bt-cards-container{grid-template-columns:repeat(2, 1fr)}
  .kt-cards-container{grid-template-columns:repeat(2, 1fr)}
}
@media(max-width:640px){
  .bt-cards-container{grid-template-columns:1fr}
  .kt-cards-container{grid-template-columns:1fr}
  .bt-toggle-btn{padding:8px 18px;font-size:13px}
}

/* Kurumsal footer note — ortalanmış */
.kt-footer-note{
  text-align:center;
  padding:32px 0 0;
  margin-top:32px;
  border-top:1px solid rgba(48,39,130,.08);
  font-size:15px;
  color:var(--gray-600, #454C66);
  line-height:1.6;
}
.kt-footer-note a{
  color:var(--ff-cyan, #00ADEF);
  font-weight:var(--fw-semibold, 600);
  text-decoration:none;
}
.kt-footer-note a:hover{text-decoration:underline}
