:root {
  color-scheme: light;
  --navy: #0f1c2e;
  --navy2: #16263c;
  --amber: #f5a623;
  --green: #16a34a;
  --ink: #1e293b;
  --muted: #64748b;
  --bg: #f4f6f9;
  --card: #fff;
  --line: #e2e8f0;
  --blue: #2563eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------------------------
   hidden ozniteligi HER ZAMAN kazanir.

   Tarayicinin kendi [hidden]{display:none} kurali, bizim yazdigimiz
   bir sinif kuralindan (ornegin .cookiebar{display:flex}) daha dusuk
   oncelikte kalir. Bu yuzden JS "el.hidden = true" dedigi halde oge
   ekranda kalabiliyordu — cerez seridi tam olarak boyle takildi:
   butona basiliyor, tercih kaydediliyor, ama serit gitmiyordu.

   Bu kural, display tanimlayan her bilesen icin sorunu kokten cozer.
   ------------------------------------------------------------------ */
[hidden] {
  display: none !important;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: var(--blue);
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
header.site {
  background: var(--navy);
  color: #fff;
  padding: 14px 0;
}

.hrow {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo {
  border: 2px dashed #3b5578;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  color: #8fb0d9;
  min-width: 150px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.hnav {
  display: flex;
  gap: 14px;
  font-size: 14px;
  flex-wrap: wrap;
}

.hnav a {
  color: #c7d5e8;
  text-decoration: none;
}

.hnav a:hover {
  color: #fff;
}

.auth {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.auth .email {
  color: #c7d5e8;
  font-size: 13px;
  text-decoration: none;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth .email:hover {
  color: #fff;
}

/* ------------------------------------------------------------------
   .btn-out — cerceveli ikincil buton.

   TEMEL renkler ACIK zemin icindir, cunku bu butonun neredeyse tum
   kullanimi beyaz kart/panel uzerindedir. Koyu ust baslik (header.site)
   TEK istisnadir ve asagida ayrica tanimlanir.

   Ters sirada yazilmasi (temel = acik metin) cerez seridi gibi beyaz
   zeminlerde butonu neredeyse gorunmez birakiyordu: acik gri metin
   beyaz uzerinde okunmuyor, kullanici da butonu devre disi saniyordu.
   ------------------------------------------------------------------ */
.btn-out {
  /* inline-flex ZORUNLU: satir ici <a> olarak birakilirsa dikey padding
     satir kutusunu buyutmez ve buton bir onceki metnin USTUNE binar. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
  background: #fff;
  cursor: pointer;
}

.btn-out:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Koyu ust baslik: acik metin + saydam zemin. */
header.site .btn-out {
  border-color: #3b5578;
  color: #dbe7f5;
  background: transparent;
}

header.site .btn-out:hover {
  border-color: #5b7da8;
  color: #fff;
}

/* Kart icinde bir onceki metinden nefes payi. */
.card .btn-out {
  margin-top: 10px;
}

.btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  background: var(--amber);
  color: #1e293b;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.hero h1 {
  font-size: 34px;
  margin-bottom: 10px;
}

.hero p {
  color: #b7c7dc;
  font-size: 17px;
  margin-bottom: 24px;
}

.hero .cta {
  font-size: 16px;
  padding: 12px 28px;
  display: inline-block;
}

.stats {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

.stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 26px;
}

.stat b {
  display: block;
  font-size: 24px;
  color: var(--amber);
}

.stat span {
  font-size: 13px;
  color: #b7c7dc;
}

/* ---------- Sections ---------- */
section {
  padding: 36px 0;
}

h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

/* ---------- Categories ---------- */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.cat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  transition: 0.15s;
}

.cat:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.cat b {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.cat span {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Product cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.p {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.p .thumb {
  background: #e8eef6;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8aa0bd;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 10px;
  text-align: center;
}

.p .body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.p .t {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.p .t a {
  color: var(--ink);
  text-decoration: none;
}

.p .t a:hover {
  color: var(--blue);
}

.meta {
  font-size: 12px;
  color: var(--muted);
}

.badge {
  display: inline-block;
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 10px;
}

.badge.g {
  background: #ecfdf5;
  color: #047857;
}

.badge.a {
  background: #fff7e6;
  color: #92600a;
}

.prow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 8px;
}

.price {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}

.price.big {
  font-size: 32px;
}

.buy {
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ---------- How it works / panels ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.step .n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--amber);
  color: #1e293b;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.panel h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.panel p {
  font-size: 14px;
  color: var(--muted);
}

.slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.slot {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 18px 8px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  background: #fafbfc;
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy);
  color: #9db1c9;
  padding: 28px 0;
  margin-top: 20px;
  font-size: 13px;
}

.frow {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.frow nav a {
  color: #c7d5e8;
  text-decoration: none;
  margin-right: 14px;
}

.frow nav a:hover {
  color: #fff;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  padding: 14px 0;
  font-size: 13px;
  color: var(--muted);
}

.crumbs a {
  color: var(--blue);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

/* ---------- Product detail ---------- */
.playout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}

.card h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.subline {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.badges-row {
  margin-bottom: 14px;
}

.badges-row .badge {
  margin-right: 6px;
  font-size: 12px;
  padding: 3px 12px;
}

.desc {
  font-size: 15px;
  white-space: pre-line;
  overflow-wrap: break-word;
}

table.files {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
}

table.files th {
  text-align: left;
  background: #f3f4f6;
  padding: 9px 12px;
  border-bottom: 2px solid var(--line);
}

table.files td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.lock {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.buybox {
  position: sticky;
  top: 14px;
}

.pricenote {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  margin-bottom: 10px;
  border: 0;
  cursor: pointer;
}

.btn-pay {
  background: var(--green);
  color: #fff;
}

.btn-credit {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
  font-size: 14px;
  padding: 11px;
}

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

.secure {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}

.mini-note {
  font-size: 12px;
  color: var(--muted);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  text-align: center;
}

.rel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.rc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
}

.rc a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.rc a:hover {
  color: var(--blue);
}

/* ---------- Purchase box ---------- */
.purchase-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  width: 100%;
}

.input:focus {
  outline: 2px solid #bfdbfe;
  border-color: var(--blue);
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  margin-top: 10px;
}

.alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  margin-top: 10px;
}

.link-row {
  margin-top: 10px;
  font-size: 14px;
}

/* ---------- Forms ---------- */
.auth-card {
  max-width: 440px;
  margin: 40px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}

.auth-card h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.btn-primary {
  background: var(--amber);
  color: #1e293b;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  width: 100%;
  cursor: pointer;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.center {
  text-align: center;
}

.auth-links {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.verify-box {
  max-width: 520px;
  margin: 60px auto;
  text-align: center;
}

/* ---------- Account ---------- */
.page-title {
  padding: 26px 0 4px;
}

.profile-card {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.kv {
  font-size: 14px;
}

.kv dt {
  color: var(--muted);
  font-size: 12px;
}

.kv dd {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  font-size: 12px;
  padding: 2px 10px;
}

.status-pill.ok {
  background: #ecfdf5;
  color: #047857;
}

.status-pill.warn {
  background: #fff7e6;
  color: #92600a;
}

.purchase-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.purchase-head .t a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.purchase-head .t a:hover {
  color: var(--blue);
}

.btn-mini {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}

.btn-mini:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dl-error {
  color: #b91c1c;
  font-size: 12px;
  margin-right: 8px;
}

/* ---------- Empty state ---------- */
.empty {
  background: var(--card);
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .playout {
    grid-template-columns: 1fr;
  }

  .duo {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 27px;
  }

  .auth {
    margin-left: 0;
  }
}

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

  .hero {
    padding: 40px 0;
  }

  .card,
  .auth-card {
    padding: 16px;
  }

  .table-scroll {
    overflow-x: auto;
  }
}

/* ---------- PHP surumu eklentileri (mevcut tasarim dili korunur) ---------- */

.inline-form { display: inline; }

.lang {
  color: #8fb0d9;
  text-decoration: none;
  font-size: 12px;
  border: 1px solid #3b5578;
  border-radius: 6px;
  padding: 4px 8px;
}

.lang.on {
  background: #3b5578;
  color: #fff;
}

.flash-wrap { padding-top: 14px; }

/* Arama kutusu */
.hero-search,
.search-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto 4px;
  position: relative;
}

.search-bar {
  max-width: none;
  justify-content: flex-start;
  margin: 20px 0 16px;
}

.hero-search .input { flex: 1 1 320px; }
.search-bar .input { flex: 1 1 260px; }
.select { flex: 0 1 180px; }

.suggest-box {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 28, 46, 0.15);
  overflow: hidden;
  z-index: 30;
  text-align: left;
}

.suggest-box a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.suggest-box a:last-child { border-bottom: 0; }
.suggest-box a:hover,
.suggest-box a.on { background: #eef2ff; }
.suggest-box .stype { color: var(--muted); font-size: 12px; margin-left: 6px; }

/* Galeri (responsive carousel + lightbox) */
.gallery {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #e8eef6;
  margin-bottom: 16px;
}

.gallery-track { display: flex; transition: transform .25s ease; }
.gslide { flex: 0 0 100%; margin: 0; }
.gslide img { display: block; width: 100%; height: auto; }

.gnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 28, 46, .55);
  color: #fff;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

.gnav.prev { left: 10px; }
.gnav.next { right: 10px; }

.gdots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  gap: 6px;
  justify-content: center;
}

.gdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  padding: 0;
}

.gdot.on { background: var(--amber); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 46, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* Alt gezinme, sayfalama, kredi paketleri */
.subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}

.subnav a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}

.subnav a.on { border-color: var(--blue); color: var(--blue); font-weight: 600; }

.pager {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
  align-items: center;
}

.pager .btn-out { color: var(--ink); border-color: var(--line); }
.pager .btn-out.on { border-color: var(--blue); color: var(--blue); font-weight: 700; }

.packs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.pack {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  text-align: center;
  background: #fafbfc;
}

.pack b { display: block; font-size: 20px; color: var(--blue); }
.pack span { font-size: 12px; color: var(--muted); }

.slotbiz { text-decoration: none; color: var(--ink); }
.slotbiz b { display: block; font-size: 12px; }

.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.hdr-photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.pay-card { margin-top: 20px; }

/* ---------- Esnaf rehberi (M9) ---------- */
.hero-sm { padding: 34px 0; }
.hero-sm h1 { font-size: 27px; }
.hero-note { margin-top: 14px; font-size: 14px; }
.hero-note a { color: var(--amber); font-weight: 600; text-decoration: none; }

.bizgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.bizcard {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: 0.15s;
}

.bizcard:hover { border-color: var(--blue); transform: translateY(-2px); }
.bizbody { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bizbody b { font-size: 15px; }

.bizlogo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #e8eef6;
  flex: 0 0 auto;
}

.bizlogo.lg { width: 84px; height: 84px; }

.bizlogo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8aa0bd;
  font-weight: 800;
  font-size: 18px;
}

.bizshowcase {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.bizfeatured {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.bizfeatured:hover { border-color: var(--amber); }
.bizhead { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }

.mapbox {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  height: 320px;
}

.mapbox iframe { width: 100%; height: 100%; border: 0; display: block; }

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

/* ---------- Pazar yeri (M10) ---------- */
.lthumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
  background: #e8eef6;
}

.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.buybox h3 { font-size: 15px; margin-bottom: 6px; }
.center { text-align: center; }

.imgstrip { display: flex; gap: 10px; flex-wrap: wrap; }

.imgcell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #e8eef6;
}

.imgcell img { width: 110px; height: 90px; object-fit: cover; display: block; }

.imgcell form {
  position: absolute;
  top: 4px;
  right: 4px;
}

.imgcell .btn-mini {
  padding: 2px 8px;
  background: rgba(220, 38, 38, .92);
  border-radius: 6px;
  line-height: 1.2;
}

/* ---------- Kullanıcı profili ---------- */
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-ident h1, .profile-ident h2 { font-size: 22px; margin-bottom: 4px; }
.profile-ident .meta { margin-bottom: 4px; }
.profile-ident .btn-mini { margin-top: 6px; display: inline-block; text-decoration: none; }

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  background: #e8eef6;
  flex: 0 0 auto;
}

.avatar.lg { width: 96px; height: 96px; }

.avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8aa0bd;
  font-weight: 800;
  font-size: 24px;
}

.statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.statbox {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.statbox b { display: block; font-size: 22px; }
.statbox span { display: block; color: var(--muted); font-size: 13px; }
.statbox a { font-size: 12px; text-decoration: none; }

/* Ürün kartı görseli */
.pthumb {
  display: block;
  border-bottom: 1px solid var(--line);
  background: #0f1c2e;
}

.pthumb img {
  width: 100%;
  height: 150px;
  /* contain: yer tutucu gorselin tamami gorunur, gercek fotograf da kirpilmaz */
  object-fit: contain;
  display: block;
}

.gallery.single { border: 1px solid var(--line); }
.gallery.single .phimg { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------- çerez onayı */
.cookiebar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card, #0f1c2e);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  font-size: 13px;
}

.cookiebar a { text-decoration: underline; }
.cookiebtns { display: flex; gap: 8px; flex-shrink: 0; }

@media (max-width: 560px) {
  .cookiebar { flex-direction: column; align-items: stretch; }
  .cookiebtns button { flex: 1; }
}

/* PageSpeed / CLS: görseller yer ayırsın, kaymasın */
img { max-width: 100%; }
.gslide img { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------- dosya tipi rozeti
   Her tipin kendi rengi var (--ft). Kullanıcı bir bakışta ne satın aldığını görür. */
.badge.ftype {
  border-color: color-mix(in srgb, var(--ft) 55%, transparent);
  background: color-mix(in srgb, var(--ft) 14%, transparent);
  color: var(--ft);
  font-weight: 700;
  letter-spacing: .02em;
}

/* Eski tarayıcı yedeği: color-mix desteklenmezse düz renk */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .badge.ftype { color: var(--ft); border-color: var(--ft); }
}

/* --------------------------------------------------------- "ne indiriyorsunuz?" */
.whatis {
  border-left: 4px solid var(--ft);
}

.whatis-h {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ft);
}

.whatis-type {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.whatis-type img {
  width: 52px;
  height: 39px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.whatis-type b { display: block; font-size: 15px; }
.whatis-type .meta { display: block; font-size: 12px; line-height: 1.45; margin-top: 2px; }

.whatis-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.whatis-facts dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.whatis-facts dd { margin: 3px 0 0; font-size: 13px; font-weight: 600; word-break: break-word; }

.whatis-warn {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ft) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--ft) 35%, transparent);
  font-size: 12.5px;
  line-height: 1.5;
}

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

/* ================================================================ hukuki sayfalar
   Gizlilik, kullanım şartları vb. Uzun metin okunabilirliği önceliğimiz:
   ölçülü satır uzunluğu, net başlık hiyerarşisi, yapışkan içindekiler. */
.legal { max-width: 1080px; }

.legal-head { margin-bottom: 18px; }
.legal-head h1 { margin-bottom: 6px; }

.legal-updated {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.legal-intro {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.legal-lang { margin-top: 14px; font-size: 14px; }

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* İçindekiler — masaüstünde kaydırırken görünür kalır */
.legal-toc { position: sticky; top: 16px; }
.legal-toc h2 { margin-bottom: 10px; font-size: 13px; text-transform: uppercase;
                letter-spacing: .04em; color: var(--muted); }
.legal-toc ol { margin: 0; padding-left: 18px; }
.legal-toc li { margin-bottom: 7px; font-size: 13.5px; line-height: 1.45; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

/* Gövde */
.legal-body { line-height: 1.7; }

.legal-section { scroll-margin-top: 16px; }
.legal-section + .legal-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--navy);
}

.legal-body p { margin-bottom: 12px; max-width: 68ch; }
.legal-body p:last-child { margin-bottom: 0; }

.legal-ul { margin: 0 0 12px; padding-left: 20px; max-width: 68ch; }
.legal-ul li { margin-bottom: 7px; }

.legal-body code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 13px;
}

/* Veri sorumlusu künyesi */
.legal-dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px 20px;
  margin: 4px 0 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.legal-dl dt { font-size: 12px; color: var(--muted); text-transform: uppercase;
               letter-spacing: .03em; }
.legal-dl dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; word-break: break-word; }

/* Tablolar */
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 4px 0 14px; }
.legal-table th {
  text-align: left;
  padding: 9px 12px;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  white-space: nowrap;
}
.legal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table td:first-child { font-weight: 600; color: var(--ink); }

/* Başvuru kutusu */
.legal-contact {
  margin: 6px 0 14px;
  padding: 16px 18px;
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  background: var(--bg);
}
.legal-contact-label { font-size: 12px; text-transform: uppercase;
                       letter-spacing: .03em; color: var(--muted); }
.legal-contact-mail { display: inline-block; margin-top: 3px;
                      font-size: 17px; font-weight: 700; }

.legal-foot {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc ol { columns: 2; column-gap: 24px; }
}

@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
  .legal-section h2 { font-size: 17px; }

  /* Dar ekranda tabloyu satır satır kartlara çevir — yatay kaydırma yerine */
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }
  .legal-table td { border-bottom: 1px solid var(--line); padding: 9px 12px; }
  .legal-table tr td:last-child { border-bottom: none; }
  .legal-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--muted);
  }
}

/* Cayma hakkı onay kutusu — ödeme butonunun hemen üstünde */
.consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 12px 0 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--amber);
  cursor: pointer;
}

.consent b { color: var(--ink); font-weight: 600; }
.consent a { white-space: nowrap; }
.consent:has(input:checked) { border-color: var(--green); background: #f0fdf4; }
