/* Ankova hesap sayfaları — giriş, hesabım, hesaplar, kurulum.
   ortak/stil.css (belirteçler, form, düğme) ve ortak/vitrin.css (üst çubuk, arka plan) üzerine kurulur. */

:root { --accent: #10a89e; }

.h-ana {
  position: relative;
  width: 100%; margin: 0 auto;
  padding: 40px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 16px;
}
.h-ana.h-dar { max-width: 480px; }
.h-ana.h-genis { max-width: 1040px; }
@media (min-width: 980px) { .h-ana { padding-top: 56px; } }

/* Ortalanmış tek kart (giriş, şifre, kurulum, uyarı sayfaları) */
.h-kart {
  background: linear-gradient(180deg, var(--sheen), transparent 160px), var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 18px;
  animation: giris 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@media (min-width: 560px) { .h-kart { padding: 32px 30px; } }
.h-kart-bas { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.h-kart-bas h1 { font-size: clamp(1.6rem, 6vw, 2rem); letter-spacing: -0.03em; }
.h-kart .form h2 { font-size: var(--fs-md); }
.h-buyuk { min-height: 50px; width: 100%; font-family: var(--font-display); font-size: var(--fs-md); font-weight: 800; border-radius: 14px; }

/* Göster/gizle düğmeli şifre alanı */
.h-sifre { position: relative; display: block; }
.h-sifre input { padding-right: 84px; }
.h-goster {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 32px; padding: 0 10px; border-radius: 9px;
  border: 0; background: none; cursor: pointer;
  font-size: var(--fs-xs); font-weight: 700; color: var(--accent-ink);
}
.h-goster:hover { background: var(--surface-3); }

.notice > span:empty { display: none; }
.notice.bad { background: var(--bad-soft); color: color-mix(in srgb, var(--bad) 75%, var(--fg)); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.notice.ok { background: var(--ok-soft); color: color-mix(in srgb, var(--ok) 70%, var(--fg)); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* Hesabım: kişinin adı, e-postası, rolü */
.h-kimlik { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.h-kimlik > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.h-kimlik b { font-family: var(--font-display); font-size: var(--fs-lg); overflow-wrap: anywhere; }
.h-kimlik .muted { overflow-wrap: anywhere; }
.h-cikis { display: flex; justify-content: center; border-top: 1px solid var(--line); padding-top: 12px; }
.btn [data-ikon], .btn-sm [data-ikon] { display: inline-flex; }
.btn [data-ikon] svg { width: 18px; height: 18px; }
.btn-sm [data-ikon] svg { width: 16px; height: 16px; }

/* ---------- Hesaplar ---------- */
.h-baslik { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; animation: giris 0.4s both; }
.h-baslik h1 { font-size: clamp(1.7rem, 6vw, 2.25rem); letter-spacing: -0.03em; margin-top: 4px; }
.h-ara-baslik { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

.h-yeni > summary { list-style: none; cursor: pointer; display: flex; }
.h-yeni > summary::-webkit-details-marker { display: none; }
.h-yeni > summary .btn { pointer-events: none; }
.h-yeni:not([open]) { padding: 0; background: none; border: 0; box-shadow: none; }
.h-yeni[open] > summary { padding-bottom: 6px; border-bottom: 1px solid var(--line); }

.h-hesaplar { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .h-hesaplar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.h-hesap {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px; border-radius: 18px;
  background: linear-gradient(180deg, var(--sheen), transparent 120px), var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 0;
  scroll-margin-top: 90px;
}
.h-hesap:target { border-color: var(--accent-line); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.h-hesap.kapali { opacity: 0.78; }
.h-hesap-ust { display: flex; align-items: center; gap: 12px; min-width: 0; }
.h-hesap-ust .row-title { display: flex; align-items: center; gap: 6px; }
.h-hesap-bilgi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.h-hesap-eylem form { display: contents; }
.h-duzenle { padding-top: 12px; border-top: 1px solid var(--line); }

/* Bir kez gösterilen geçici şifre */
.h-gecici { border-color: var(--accent-line); animation: giris 0.35s both; }
.h-gecici-kutu {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 14px;
  background: var(--accent-soft); border: 1px dashed var(--accent-line);
}
.h-gecici-kutu code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
  font-size: 1.25rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--fg); overflow-wrap: anywhere;
}

/* Yönetici sayfaları arasında geçiş */
a.chip { text-decoration: none; }
a.chip[aria-current="page"] { background: var(--grad-accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 6px 16px -8px var(--glow); }

/* ---------- Paketler ve fiyatlar ---------- */
.p-bolum { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.p-bolum-bas { display: flex; flex-direction: column; gap: 2px; }
.p-bolum-bas h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }

.p-kartlar { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .p-kartlar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.p-kartlar > .h-ara-baslik, .p-ekler > .h-ara-baslik { grid-column: 1 / -1; }
.p-kart, .p-ek {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border-radius: 20px;
  background: linear-gradient(180deg, var(--sheen), transparent 120px), var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  min-width: 0; scroll-margin-top: 90px;
}
.p-kart { position: relative; overflow: hidden; }
.p-kart::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 80%); }
.p-kart:target, .p-ek:target { border-color: var(--accent-line); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.p-kart.pasif, .p-ek.pasif { opacity: 0.72; }
.p-kart.pasif::before { background: var(--line); }
.p-kart-bas, .p-ek-ad { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.p-kart h3, .p-ek h3 { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }

.p-fiyat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.p-fiyat > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.p-fiyat b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.p-fiyat small { font-size: var(--fs-xs); }
.p-personel { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 650; color: var(--accent-ink); }
.p-personel [data-ikon] { display: inline-flex; }
.p-personel svg { width: 16px; height: 16px; }
.p-odeme { margin-top: 2px; }

.p-kapsam { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); }
.p-kapsam li { display: flex; align-items: flex-start; gap: 8px; }
.p-kapsam [data-ikon] { display: inline-flex; flex: none; color: var(--ok); margin-top: 1px; }
.p-kapsam svg { width: 16px; height: 16px; }

.p-ekler { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .p-ekler { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.p-ek { padding: 14px 16px; gap: 8px; }
.p-ek-ust { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.p-ek-ucret { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 800; white-space: nowrap; }
.p-ek-ucret small { font-size: var(--fs-xs); font-weight: 650; color: var(--muted); }

.p-eylem { align-items: center; }
.p-eylem form { display: contents; }
.p-sira { display: inline-flex; gap: 4px; margin-left: auto; }
.p-sira form { display: contents; }
.p-sira .icon-btn { width: 32px; height: 32px; border-radius: 10px; }
.p-sira [data-ikon] { display: inline-flex; }
.p-sira [data-ikon] svg { width: 16px; height: 16px; }
.yukari svg { transform: rotate(180deg); }

/* Ücret alanı: sağda ₺ işareti */
.p-para { position: relative; display: block; }
.p-para input { padding-right: 34px; font-variant-numeric: tabular-nums; }
.p-para b { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }

/* Ödeme türü seçimi */
.p-secimler { display: flex; gap: 8px; flex-wrap: wrap; }
.p-secim { position: relative; }
.p-secim input { position: absolute; opacity: 0; pointer-events: none; }
.p-secim span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); cursor: pointer;
  font-size: var(--fs-sm); font-weight: 650; color: var(--muted);
}
.p-secim input:checked + span { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.p-secim input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.h-kart .notice, .h-ana > .notice { align-items: flex-start; }

/* ---------- Teklifler ---------- */
.h-geri { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.h-geri:hover { color: var(--fg); }
.h-geri [data-ikon], .h-geri svg { display: inline-flex; width: 14px; height: 14px; }
.t-no { font-family: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; color: var(--accent-ink); }
.t-ust-bilgi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }

/* Liste */
.t-suzgec { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.t-suzgec .search { flex: 1 1 260px; }
.t-suzgec .search [data-ikon] { display: inline-flex; color: var(--muted); }
.t-kisi { flex: 0 1 220px; }
.t-kisi select { height: 100%; }
.t-liste { display: flex; flex-direction: column; gap: 8px; }
.t-satir {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--fg); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.t-satir:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.t-satir-ana { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.t-satir-ana b { font-family: var(--font-display); font-size: var(--fs-md); overflow-wrap: anywhere; }
.t-satir-son { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; text-align: right; }
.t-satir-tutar { font-weight: 750; font-size: var(--fs-sm); }
@media (max-width: 559px) {
  .t-satir-son { align-items: flex-start; text-align: left; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; }
}

/* Form */
.t-form { display: flex; flex-direction: column; gap: 16px; }
.t-form .panel-head { flex-wrap: wrap; }
.t-secimler { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .t-secimler { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t-secim { position: relative; display: flex; cursor: pointer; }
.t-secim input { position: absolute; opacity: 0; pointer-events: none; }
.t-secim-govde {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px 14px 44px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color 0.15s, background 0.15s;
  position: relative; min-width: 0;
}
.t-secim-govde::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--muted); box-sizing: border-box;
}
.t-secim input:checked + .t-secim-govde { background: var(--accent-soft); border-color: var(--accent-line); }
.t-secim input:checked + .t-secim-govde::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 4px, transparent 5px); }
.t-secim input:focus-visible + .t-secim-govde { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.t-secim-govde b { font-family: var(--font-display); overflow-wrap: anywhere; }
.t-secim-fiyat { font-size: var(--fs-sm); font-weight: 650; }

.t-ekler { display: flex; flex-direction: column; gap: 8px; }
.t-ek { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.t-ek-sec { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; min-width: 0; flex: 1; }
.t-ek-sec input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.t-ek-sec > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-ek-sec b { overflow-wrap: anywhere; }
.t-adet { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); font-weight: 650; flex: none; }
.t-adet input { width: 72px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-align: right; }
.t-adet input:disabled { opacity: 0.45; }

.t-toplam { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.t-toplam > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); min-width: 0; }
.t-toplam b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.t-toplam small { font-size: var(--fs-xs); font-weight: 650; }

/* Yönetici indirimi: tür seçimi + değer yan yana */
.t-indirim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }

/* Teklif ayrıntısında bedel dökümü: liste, indirim, KDV hariç, KDV, KDV dahil */
.t-dokumler { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.t-dokum { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); min-width: 0; }
.t-dokum dl { margin: 0; display: grid; gap: 4px; }
.t-dokum dl > div { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-sm); }
.t-dokum dt { color: var(--muted); }
.t-dokum dd { margin: 0; font-weight: 650; }
.t-dokum .t-indirim-satir dd { color: var(--ok); }
.t-dokum .t-genel { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--accent-line); align-items: baseline; }
.t-dokum .t-genel dt { color: var(--fg); font-weight: 700; }
.t-dokum .t-genel dd { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.t-sartlar { margin-top: 4px; }
/* Geniş ekranda toplam ekranın altında sabit durur; telefonda formun sonundadır (alanların üstüne binmesin). */
@media (min-width: 760px) { .t-toplam-panel { position: sticky; bottom: 12px; z-index: 5; box-shadow: var(--shadow-lg); } }

/* Ayrıntı */
.t-izgara { align-items: start; }
.t-kalemler td { white-space: normal; vertical-align: top; }
.t-kalemler td.num, .t-kalemler th.num { white-space: nowrap; }
.t-kalemler b { display: block; }
.t-kalem-tur { display: block; margin-top: 2px; }
.t-maddeler { margin: 6px 0 0; padding-left: 18px; font-size: var(--fs-xs); color: var(--muted); }
.t-bilgi { margin: 0; display: grid; gap: 8px; }
.t-bilgi > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 10px; font-size: var(--fs-sm); }
.t-bilgi dt { color: var(--muted); font-weight: 650; }
.t-bilgi dd { margin: 0; overflow-wrap: anywhere; }
.t-not { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); }
.t-eylemler { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.t-eylemler > form { display: contents; }
.t-acilir { flex-basis: 100%; }
.t-acilir > summary { list-style: none; cursor: pointer; }
.t-acilir > summary::-webkit-details-marker { display: none; }
.t-acilir[open] > summary { margin-bottom: 10px; border-color: var(--accent-line); }
.t-acilir > form { padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.t-gecmis { list-style: none; margin: 0; padding: 0 0 0 14px; display: flex; flex-direction: column; gap: 10px; border-left: 2px solid var(--line); }
.t-gecmis li { position: relative; display: flex; flex-direction: column; gap: 1px; font-size: var(--fs-sm); }
.t-gecmis li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); }
/* Telefonda kalem tablosu satır satır: ad üstte, adet / kurulum / aylık altında etiketli (yana kaydırma olmasın). */
@media (max-width: 559px) {
  .t-kalemler thead { display: none; }
  .t-kalemler, .t-kalemler tbody, .t-kalemler tr { display: block; width: 100%; }
  .t-kalemler tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .t-kalemler tr:last-child { border-bottom: 0; }
  table.veri.t-kalemler td { display: block; border: 0; padding: 0; }
  table.veri.t-kalemler td.num { display: inline-flex; align-items: baseline; gap: 5px; margin: 6px 14px 0 0; text-align: left; }
  .t-kalemler td.num::before { content: attr(data-etiket); color: var(--muted); font-size: var(--fs-xs); font-weight: 650; }
  table.veri.t-kalemler tbody tr:hover td { background: none; }
  /* Özet: temsilci tablosu telefonda kart gibi (ad üstte, sayılar etiketli) */
  .o-kisiler thead { display: none; }
  .o-kisiler, .o-kisiler tbody, .o-kisiler tr { display: block; width: 100%; }
  .o-kisiler tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .o-kisiler tr:last-child { border-bottom: 0; }
  table.veri.o-kisiler td { display: block; border: 0; padding: 0; white-space: normal; font-weight: 650; }
  table.veri.o-kisiler td.num { display: inline-flex; align-items: baseline; gap: 5px; margin: 6px 14px 0 0; text-align: left; font-weight: 700; }
  .o-kisiler td.num::before { content: attr(data-etiket); color: var(--muted); font-size: var(--fs-xs); font-weight: 650; }
  table.veri.o-kisiler tbody tr:hover td { background: none; }
}