/* ============================================================
   YEÇED Bağış Platformu — Design Token System
   Kaynak: yeced.org kurumsal kimliği (canlı siteden alınan tokenlar)
   Mobile-first · RTL destekli · minimum bağımlılık
   ============================================================ */

:root {
  --brand: #1c837d;
  --brand-600: #10605b;
  --brand-700: #144d49;
  --brand-50: #eaf5ef;
  --brand-100: #d3ebde;
  --brand-tint: #e8f4f2;
  --accent: #f2a03d;
  --accent-600: #d78a1c;
  --coral: #e8674f;
  --ink: #16302e;
  --ink-2: #3d4d46;
  --muted: #5f7a77;
  --line: #d8e6e4;
  --bg: #ffffff;
  --bg-alt: #f5f9f7;
  --bg-warm: #fbfaf7;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --ok: #0a5732;
  --ok-bg: #e6f4ec;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(16,54,52,.06), 0 4px 12px rgba(16,54,52,.06);
  --shadow: 0 6px 20px rgba(22,34,29,.09);
  --shadow-lg: 0 18px 45px rgba(22,34,29,.16);
  --wrap: 1200px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

/* hidden özniteliği her zaman kazanmalı. .btn gibi display tanımlayan
   sınıflar aynı özgüllükte olduğu için onu eziyor ve gizlenmesi gereken
   düğmeler görünür kalıyordu. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

/* Yapışkan footer: içerik kısa olsa da footer ekranın altına oturur.
   .scroll-top ve .cookie-banner position:fixed olduğu için akış dışıdır.
   Yönetim paneli (.admin-body) YATAY flex kullanır ve kendi flex-direction'ını
   tanımlamaz; bu kural oraya sızarsa sidebar ile içerik üst üste biner. */
body:not(.admin-body) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body:not(.admin-body) #main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 750; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); }
h3 { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
/* Yardımcı sınıf. Özgüllüğü bilerek çiftlendi: aynı özgüllükteki
   .btn { display: inline-flex } kuralı kaynakta sonra geldiği için tek
   sınıflı hâli eziliyordu ve düğme mobilde gizlenmiyordu (header taşıyordu). */
.hide-mobile.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile.hide-mobile { display: inline-flex; } }
@media (min-width: 768px) { .wrap { padding-inline: 1.5rem; } }

/* Erişilebilirlik: klavye odak durumu */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 650; cursor: pointer; border: 2px solid transparent;
  border-radius: 999px; padding: .7rem 1.5rem; min-height: 48px;
  transition: all .2s var(--ease); text-align: center; white-space: nowrap;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #3d2807; }
.btn-accent:hover { background: var(--accent-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-600); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-50); }
.btn-lg { padding: .95rem 2rem; font-size: 1.08rem; min-height: 56px; width: 100%; }
/* CTA: tutar ana satırda, etki alt satırda — ayrı rozet kutusuna gerek kalmaz */
.js-donation-widget .btn-lg {
  min-height: 60px; padding: .6rem 1.6rem; font-size: 1.06rem;
  flex-direction: column; gap: .1rem; line-height: 1.3; width: 100%;
  background: linear-gradient(160deg, var(--brand), var(--brand-600));
}
.js-donation-widget .btn-lg:hover { background: linear-gradient(160deg, var(--brand-600), var(--brand-700)); }
.js-donate-cta .cta-main { font-weight: 750; }
.js-donate-cta .cta-sub { font-size: .8rem; font-weight: 600; opacity: .92; display: none; font-variant-numeric: tabular-nums; }
.js-donate-cta .cta-sub:not(:empty) { display: block; }
.js-donate-cta .cta-sub.pulse { animation: ihPop .35s var(--ease); }
.btn-sm { min-height: 40px; padding: .4rem 1.1rem; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none !important; }
.btn .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 768px) { .btn-lg { width: auto; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 13px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; flex-shrink: 0;
}
.logo-text { line-height: 1.1; display: flex; flex-direction: column; }
.logo-text strong { color: var(--ink); font-size: 1.15rem; letter-spacing: .02em; }
.logo-text small { color: var(--brand); font-weight: 650; font-size: .78rem; }
.main-nav { display: none; gap: 1.4rem; }
.main-nav a { color: var(--ink-2); font-weight: 650; font-size: .95rem; }
.main-nav a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.pref-switch { display: none; gap: .3rem; }
.pref-switch select {
  font: inherit; font-size: .85rem; font-weight: 650; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 8px; padding: .25rem .4rem; background: #fff;
}
.nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.focus-secure { font-size: .9rem; font-weight: 650; color: var(--brand-600); }
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .pref-switch { display: flex; }
  .nav-toggle { display: none; }
}
/* Mobil menü */
body.nav-open .main-nav {
  display: flex; flex-direction: column; position: fixed; inset: 68px 0 auto 0;
  background: #fff; padding: 1.2rem; gap: 1rem; box-shadow: var(--shadow-lg); z-index: 99;
  border-bottom: 1px solid var(--line);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Flash ---------- */
.flash { margin-top: 1rem; padding: .9rem 1.2rem; border-radius: var(--radius-sm); font-weight: 550; }
.flash-success { background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe3cd; }
.flash-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f3c1bd; }

/* ---------- Hero (kompakt, dönüşüm odaklı) ----------
   Kampanya görseli arka planda (sıfır ekstra yükseklik), istatistikler ince
   çiplerde: kampanya kartları ilk viewport'ta görünmeye başlar. */
.hero {
  background:
    radial-gradient(700px 340px at 88% -12%, rgba(242,160,61,.20), transparent 60%),
    linear-gradient(155deg, rgba(15,62,58,.95), rgba(24,115,109,.92) 60%, rgba(38,140,131,.90)),
    var(--hero-img, linear-gradient(160deg, var(--brand-700), var(--brand)));
  background-size: auto, auto, cover;
  background-position: center, center, center 30%;
  color: #fff; padding: 1.5rem 0 1.8rem;
}
/* Mobil sıra: başlık → bağış kartı (CTA ilk ekranda) → istatistikler.
   Masaüstü: sol sütun başlık+istatistik, sağda kart. */
.hero-grid { display: grid; gap: 1rem; grid-template-areas: "copy" "card" "meta"; }
.hero-copy { grid-area: copy; }
.hero-card { grid-area: card; }
.hero-meta { grid-area: meta; }
.hero-badge { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .22rem .85rem; font-size: .8rem; font-weight: 700; backdrop-filter: blur(4px); }
.hero-badge.urgent { background: var(--coral); border-color: var(--coral); }
.hero h1 { color: #fff; margin: .5rem 0 .3rem; text-wrap: balance; font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.2rem); }
.hero .hero-sub {
  color: #d9ede3; font-size: 1rem; max-width: 34rem; margin-bottom: .8rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* İstatistik çipleri — tek ince satır */
.hero-stats { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0 .65rem; }
.hero-stat { display: inline-flex; align-items: baseline; gap: .4rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .3rem .85rem; backdrop-filter: blur(4px); }
.hero-stat .hs-value { font-size: .95rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-stat .hs-label { font-size: .7rem; font-weight: 650; color: #cfe3d8; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.hero-progress { margin: 0 0 .7rem; max-width: 30rem; }
.hero .progress { height: 8px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; font-weight: 600; color: #cfe3d8; }
.hero-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-card .hc-body { padding: 1.1rem 1.2rem 1.25rem; }
@media (max-width: 899px) {
  .hero { padding: 1.05rem 0 1.4rem; }
  .hero-grid { gap: .75rem; }
  .hero .hero-sub { margin-bottom: .2rem; font-size: .95rem; }
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.25fr 1fr;
    grid-template-areas: "copy card" "meta card";
    align-items: center; column-gap: 2rem; row-gap: .4rem;
  }
  .hero-copy { align-self: end; }
  .hero-meta { align-self: start; }
  .hero { padding: 1.9rem 0 2.2rem; }
}

/* ---------- Tutar seçici (donation widget) ---------- */
.js-donation-widget h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.dw-eyebrow {
  font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); margin: .7rem 0 .45rem;
}
.js-donation-widget .freq-toggle:first-child { margin-top: 0; }
.amount-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: .6rem 0; }
.amount-btn {
  border: 2px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  padding: .55rem .4rem; cursor: pointer; text-align: center; font: inherit;
  transition: all .15s var(--ease); min-height: 56px;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none;
}
.amount-btn:active { transform: scale(.97); border-color: var(--brand); }
.amount-btn strong { display: block; font-size: 1.08rem; color: var(--ink); }
.amount-btn small { color: var(--muted); font-size: .76rem; line-height: 1.25; display: block; }
.amount-btn:hover { border-color: var(--brand); }
/* Seçili tutar: dolu marka rengi — tek bakışta okunur */
.amount-btn.selected { border-color: var(--brand-600); background: var(--brand); box-shadow: var(--shadow-sm); }
.amount-btn.selected strong { color: #fff; }
.amount-btn.selected small { color: #d3ebde; }
.custom-amount { position: relative; margin-bottom: .6rem; }
.custom-amount input {
  width: 100%; font: inherit; font-size: 1.05rem; font-weight: 650; padding: .6rem 3.2rem .6rem .95rem;
  border: 2px solid var(--line); border-radius: var(--radius-sm); min-height: 50px;
}
[dir="rtl"] .custom-amount input { padding: .8rem 1rem .8rem 3.4rem; }
.custom-amount input:focus { border-color: var(--brand); outline: none; }
.custom-amount .cur { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 1rem; font-weight: 700; color: var(--muted); }
.freq-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; background: var(--bg-alt); border-radius: 999px; padding: .25rem; margin: .6rem 0; }
.freq-btn { border: 0; background: transparent; font: inherit; font-weight: 650; color: var(--ink-2); border-radius: 999px; padding: .55rem; cursor: pointer; transition: .15s; min-height: 44px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.freq-btn.selected { background: #fff; color: var(--brand-600); box-shadow: var(--shadow-sm); }
/* Etki rozeti — sabit yükseklik: tutar değişince asla satır atlamaz/zıplamaz */
.impact-hint {
  display: flex; gap: .55rem; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-tint-2, #d3e9e6));
  border: 1px solid var(--brand-100); color: var(--brand-700);
  border-radius: var(--radius-sm); padding: 0 1rem; margin: .6rem 0;
  height: 48px; overflow: hidden; white-space: nowrap;
}
.impact-hint .ih-emoji { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.impact-hint strong { font-size: 1.02rem; font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.impact-hint.pulse strong { animation: ihPop .35s var(--ease); }
@keyframes ihPop { 0% { transform: scale(.86); opacity: .4; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Progress ---------- */
.progress { background: rgba(0,0,0,.08); border-radius: 999px; height: 10px; overflow: hidden; }
.hero .progress { background: rgba(255,255,255,.25); }
.progress-bar { height: 100%; background: var(--accent); border-radius: 999px; transition: width .6s var(--ease); }
.progress-meta { display: flex; justify-content: space-between; font-size: .88rem; margin-top: .45rem; font-weight: 600; }
.progress-meta .muted { opacity: .75; font-weight: 500; }
/* Hero (koyu zemin) üzerinde okunabilir istatistikler */
.hero .progress-meta { color: #ffffff; }
.hero .progress-meta .muted { color: #d3ebde; opacity: 1; font-weight: 600; }

/* ---------- Bölümler ---------- */
.section { padding: 2.6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Kategori filtre ---------- */
.chip-row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: .45rem 1rem; font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Kampanya kartları ---------- */
.card-grid { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.campaign-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  border: 1px solid var(--line);
}
.campaign-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-100), var(--brand-tint)); display: grid; place-items: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .media-emoji { font-size: 3.2rem; }
.card-badges { position: absolute; top: .7rem; inset-inline-start: .7rem; display: flex; gap: .4rem; }
.badge { border-radius: 999px; padding: .18rem .7rem; font-size: .75rem; font-weight: 700; background: #fff; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.badge-urgent { background: var(--coral); color: #fff; }
.badge-cat { background: rgba(255,255,255,.92); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--brand); }
.card-excerpt { color: var(--muted); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-impact { font-size: .9rem; font-weight: 650; color: var(--brand-600); background: var(--brand-50); align-self: flex-start; border-radius: 999px; padding: .25rem .8rem; }
.card-amounts { display: flex; gap: .45rem; flex-wrap: wrap; }
.card-amounts button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; font: inherit;
  font-size: .88rem; font-weight: 650; padding: .3rem .85rem; cursor: pointer; color: var(--ink-2);
}
.card-amounts button:hover, .card-amounts button.selected { border-color: var(--brand); color: var(--brand-600); background: var(--brand-50); }
.card-footer { margin-top: auto; display: flex; flex-direction: column; gap: .7rem; }
.card-progress .progress-meta { font-size: .82rem; }
.card-stats { color: var(--muted); font-size: .82rem; }

/* ---------- Güven barı ---------- */
.trust-bar { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: center; padding: 1.1rem; background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--radius); }
.trust-bar span { font-size: .9rem; font-weight: 600; color: var(--ink-2); display: inline-flex; gap: .45rem; align-items: center; }

/* ---------- Kampanya detay ---------- */
.detail-grid { display: grid; gap: 1.6rem; }
@media (min-width: 980px) { .detail-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.detail-hero { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-100), var(--brand-tint)); display: grid; place-items: center; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero .media-emoji { font-size: 5rem; }
.story { font-size: 1.02rem; }
.story img { border-radius: var(--radius-sm); }
.donation-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.4rem; }
@media (min-width: 980px) { .sticky-side { position: sticky; top: 84px; } }
.mobile-cta {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 90; background: #fff;
  border-top: 1px solid var(--line); padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  display: flex; gap: .8rem; align-items: center; box-shadow: 0 -6px 20px rgba(22,34,29,.1);
}
.mobile-cta .btn { flex: 1; }
.mobile-cta-amount { font-weight: 800; font-size: 1.05rem; color: var(--brand-700); }
@media (min-width: 980px) { .mobile-cta { display: none; } }

/* ---------- Accordion / SSS ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.accordion + .accordion { margin-top: .6rem; }
.accordion summary { padding: .95rem 1.1rem; font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.accordion summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); transition: .2s; line-height: 1; }
.accordion[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 1.1rem 1rem; color: var(--ink-2); }

/* ---------- Formlar ---------- */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 650; margin-bottom: .35rem; font-size: .95rem; }
.form-field label .req { color: var(--coral); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font: inherit; padding: .75rem .95rem; border: 2px solid var(--line);
  border-radius: var(--radius-sm); min-height: 52px; background: #fff; color: var(--ink);
}
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--brand); outline: none; }
.form-field .hint { font-size: .83rem; color: var(--muted); margin-top: .3rem; }
.form-field .field-error { font-size: .85rem; color: var(--danger); margin-top: .3rem; font-weight: 600; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--danger); }
.check-field { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .9rem; font-size: .92rem; color: var(--ink-2); }
.check-field input { width: 22px; height: 22px; margin-top: .1rem; accent-color: var(--brand); flex-shrink: 0; }
.toggle-link { background: none; border: 0; color: var(--brand); font: inherit; font-size: .92rem; font-weight: 650; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------- Checkout ---------- */
.checkout-wrap { max-width: 640px; margin-inline: auto; padding: 1.5rem 1rem 3rem; }
.checkout-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin-bottom: 1.4rem;
}
.checkout-summary .cs-title { font-weight: 700; }
.checkout-summary .cs-amount { font-size: 1.35rem; font-weight: 800; color: var(--brand-700); white-space: nowrap; }
.checkout-summary .cs-freq { font-size: .82rem; color: var(--brand-600); font-weight: 650; }
.checkout-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.5rem; }
.corp-fields { border-top: 1px dashed var(--line); padding-top: 1rem; margin-top: .4rem; }

/* ---------- Teşekkür ---------- */
.thanks-wrap { max-width: 560px; margin-inline: auto; padding: 2rem 1rem 3.5rem; text-align: center; }
.thanks-icon { width: 84px; height: 84px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--ok-bg); display: grid; place-items: center; font-size: 2.4rem; animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.thanks-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.6rem; margin: 1.4rem 0; text-align: start; }
.thanks-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.thanks-row:last-child { border-bottom: 0; }
.thanks-row .k { color: var(--muted); }
.thanks-row .v { font-weight: 700; text-align: end; }
.thanks-impact { background: var(--brand-50); color: var(--brand-700); border-radius: var(--radius); padding: 1.1rem; font-weight: 650; margin: 1.2rem 0; font-size: 1.02rem; }
.thanks-checks { text-align: start; margin: 1.2rem 0; display: grid; gap: .5rem; color: var(--ink-2); font-size: .95rem; }
.thanks-actions { display: grid; gap: .7rem; margin-top: 1.4rem; }
.share-row { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.share-row a { border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 650; font-size: .9rem; color: var(--ink-2); }
.share-row a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Etki ---------- */
.impact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.impact-meta { display: flex; flex-wrap: wrap; gap: .8rem; color: var(--muted); font-size: .88rem; }
.impact-stat { display: inline-flex; align-items: center; gap: .4rem; background: var(--brand-50); color: var(--brand-700); font-weight: 700; border-radius: 999px; padding: .3rem .9rem; }

/* ---------- Hesabım ---------- */
.account-layout { display: grid; gap: 1.5rem; padding: 1.8rem 0 3rem; }
@media (min-width: 900px) { .account-layout { grid-template-columns: 240px 1fr; align-items: start; } }
.account-nav { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.account-nav::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .account-nav { flex-direction: column; position: sticky; top: 84px; } }
.account-nav a { padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.account-nav a.active, .account-nav a:hover { background: var(--brand-50); color: var(--brand-700); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-bottom: 1.5rem; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.stat-card .sc-label { color: var(--muted); font-size: .82rem; font-weight: 600; }
.stat-card .sc-value { font-size: 1.35rem; font-weight: 800; color: var(--brand-700); }

/* ---------- Tablolar (public panel) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
table.data th { text-align: start; padding: .8rem 1rem; background: var(--bg-alt); color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
table.data td { padding: .8rem 1rem; border-top: 1px solid var(--line); }
.status-pill { display: inline-block; border-radius: 999px; padding: .15rem .7rem; font-size: .78rem; font-weight: 700; }
.st-paid, .st-active, .st-sent, .st-ready { background: var(--ok-bg); color: var(--ok); }
.st-pending, .st-processing, .st-queued, .st-preparing, .st-scheduled { background: #fdf3e3; color: #9a6c14; }
.st-failed, .st-cancelled, .st-chargeback { background: var(--danger-bg); color: var(--danger); }
.st-refunded, .st-partial_refund, .st-paused, .st-draft, .st-archived, .st-completed { background: #eef1f0; color: var(--ink-2); }

/* ---------- Modal / bottom sheet (quick donate) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(22,48,46,.5); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 201; background: #fff; inset-inline: 0; bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 1.3rem 1.2rem calc(1.3rem + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .3s var(--ease), visibility .3s; max-height: 88vh; overflow-y: auto;
  /* KRİTİK: kapalıyken görünmez katman tıklamaları asla yutmamalı */
  visibility: hidden; pointer-events: none;
}
.sheet.open { transform: translateY(0); visibility: visible; pointer-events: auto; }
@media (min-width: 720px) {
  .sheet { inset: 50% auto auto 50%; transform: translate(-50%, -46%) scale(.96); opacity: 0; width: 480px; border-radius: var(--radius-lg); max-height: 86vh; }
  .sheet.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.sheet-close { background: var(--bg-alt); border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; color: var(--ink-2); }

/* ---------- Hata sayfaları ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem; }
.error-page .code { font-size: 4.5rem; font-weight: 800; color: var(--brand-100); line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-700); color: #c3d7cb; margin-top: 3rem; }
.footer-grid { display: grid; gap: 1.8rem; padding: 2.6rem 1rem 1.4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-col { display: flex; flex-direction: column; gap: .45rem; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: .3rem; }
.footer-col a { color: #c3d7cb; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-brand .logo-text strong { color: #fff; }
.footer-muted { font-size: .85rem; opacity: .8; }
.footer-social { display: flex; gap: .6rem; margin-top: .5rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem; }
.footer-social a:hover { background: var(--accent); color: #3d2807; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: 1.1rem 1rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.focus-footer { margin-top: 1.5rem; background: transparent; color: var(--muted); border-top: 1px solid var(--line); }
.focus-footer .footer-bottom { border-top: 0; }
.focus-footer a { color: var(--brand); font-weight: 650; }
.focus-help { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; gap: .4rem; justify-content: center; margin: 1.6rem 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 650; padding: 0 .6rem; }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- RTL ayarları ---------- */
[dir="rtl"] .chip-row, [dir="rtl"] .account-nav { direction: rtl; }

/* ---------- Yardımcılar ---------- */
.muted { color: var(--muted); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.empty-state { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.empty-state .es-icon { font-size: 2.6rem; margin-bottom: .6rem; }

/* Sayfa içi yükleme iskeleti */
.skeleton { background: linear-gradient(90deg, var(--bg-alt) 25%, #edf3f0 50%, var(--bg-alt) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- İçerik blokları (visual builder) ---------- */
.block-stat {
  display: inline-flex; flex-direction: column; align-items: center; gap: .15rem;
  background: var(--brand-50); border-radius: var(--radius); padding: 1.1rem 2rem; margin: 1rem .6rem 1rem 0;
}
.block-stat .bs-number { font-size: 1.9rem; font-weight: 800; color: var(--brand-700); }
.block-stat .bs-label { color: var(--muted); font-weight: 600; font-size: .9rem; }
.block-quote {
  margin: 1.4rem 0; padding: 1rem 1.4rem; border-inline-start: 4px solid var(--accent);
  background: var(--bg-warm); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--ink-2);
}
.block-quote cite { display: block; margin-top: .4rem; font-style: normal; font-weight: 650; color: var(--muted); font-size: .88rem; }

/* ---------- Yukarı çık butonu ---------- */
.scroll-top {
  position: fixed; bottom: 1.2rem; inset-inline-end: 1.2rem; z-index: 80;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 1.25rem; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: all .25s var(--ease);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--brand-600); }
/* Mobil sticky CTA varken üstüne binmesin */
body.has-mobile-cta .scroll-top { bottom: 5.6rem; }
@media (min-width: 980px) { body.has-mobile-cta .scroll-top { bottom: 1.2rem; } }

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 300; background: #fff;
  border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(22,34,29,.15);
  padding: 1rem 1.2rem calc(1rem + env(safe-area-inset-bottom));
}
.cookie-inner { max-width: var(--wrap); margin-inline: auto; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.cookie-inner p { margin: 0; font-size: .88rem; color: var(--ink-2); flex: 1 1 320px; }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Yönetici çubuğu ──
   Herkese açık sitede, yalnızca giriş yapmış yöneticiye görünür. Site
   renklerinden bilinçli olarak ayrışır: ziyaretçi görünümüyle karıştırılmasın. */
.admin-bar {
  background: #16221d; color: #cbd8d1; font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-bar-inner {
  display: flex; align-items: center; gap: .5rem 1rem;
  flex-wrap: wrap; padding-block: .45rem;
}
.ab-rozet {
  background: var(--brand); color: #fff; font-weight: 700;
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .18rem .5rem; border-radius: 999px; white-space: nowrap;
}
.ab-ad { font-weight: 600; color: #fff; }
.ab-links {
  display: flex; align-items: center; gap: .25rem .9rem;
  flex-wrap: wrap; margin-inline-start: auto;
}
.ab-links a {
  color: #cbd8d1; padding: .18rem 0; border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.ab-links a:hover { color: #fff; border-bottom-color: var(--brand); }
.ab-links .ab-cikis { color: #f0a9a2; }
.ab-links .ab-cikis:hover { color: #ffc9c3; border-bottom-color: #f0a9a2; }

@media (max-width: 639px) {
  .admin-bar-inner { gap: .35rem .7rem; padding-block: .4rem; }
  .ab-ad { display: none; }           /* dar ekranda yer aç; rozet kalır */
  .ab-links { margin-inline-start: 0; }
}
