/* Renkler bbb-ev.de tasarımından: kırmızı #C02731, lacivert #3B3663, logo altın sarısı #F8B43E */
:root {
  --bg: #faf8f6;
  --card: #ffffff;
  --text: #2e2e2e;
  --muted: #696687;
  --border: #e4e1de;
  --primary: #c02731;
  --primary-dark: #9c1f28;
  --primary-soft: #fbeced;
  --navy: #3b3663;
  --navy-dark: #2b2749;
  --navy-soft: #efeef5;
  --gold: #f8b43e;
  --danger: #c02731;
  --ok-bg: #e5f5ec; --ok: #18794e;
  --warn-bg: #fff4e0; --warn: #9a5b00;
  --err-bg: #fdecea; --err: #b42318;
  --info-bg: #e8f0fb; --info: #24518f;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.5 "Martel Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1 0 auto; width: 100%; }
a { color: var(--primary); }
h1, h2, h3 { color: var(--navy); font-weight: 700; line-height: 1.25; }
h1 { font-size: 1.6rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
code { background: #eef1f4; padding: 1px 5px; border-radius: 4px; font-size: .9em; word-break: break-all; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 24px; padding-bottom: 32px; }

/* Üst menü */
/* Logo beyaz zeminli olduğu için üst menü beyaz; altta site renklerinde şerit */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-top: 4px solid var(--primary);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(59,54,99,.06);
}
.area-admin .topbar { border-top-color: var(--navy); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 1.1rem; margin-right: auto; }
.brand img { display: block; height: 48px; width: auto; max-width: 100%; }
.brand:has(.area-label) img { padding-right: 18px; border-right: 1px solid var(--border); }
.area-label {
  display: inline-block; padding: 7px 16px 5px; border-radius: 8px;
  background: var(--gold); color: var(--navy-dark);
  font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 2px 0 #d9952a, 0 4px 12px rgba(248,180,62,.35);
}
.area-admin .area-label { background: var(--navy); color: #fff; box-shadow: 0 2px 0 var(--navy-dark), 0 4px 12px rgba(59,54,99,.3); }

.icon { flex: none; display: block; }
.nav-area { display: flex; align-items: stretch; align-self: stretch; gap: 20px; }

/* Ana menü: aktif sayfa alt çizgiyle işaretlenir */
.main-nav { display: flex; align-items: stretch; gap: 4px; }
.main-nav a {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 0 14px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem;
  white-space: nowrap; transition: color .15s;
}
.main-nav a .icon { opacity: .55; transition: opacity .15s; }
.main-nav a span { padding-top: 3px; } /* Martel Sans dikey hizalama */
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--primary); transform: scaleX(0); transition: transform .2s;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover .icon, .main-nav a.active .icon { opacity: 1; }
.main-nav a.active { color: var(--primary); }
.main-nav a.active::after, .main-nav a:hover::after { transform: scaleX(1); }
.main-nav a:hover:not(.active)::after { background: var(--border); }

/* Kullanıcı menüsü */
.user-menu { position: relative; align-self: center; padding-left: 20px; border-left: 1px solid var(--border); }
.user-menu summary {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 999px;
  cursor: pointer; list-style: none; user-select: none; transition: background .15s;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { background: var(--navy-soft); }
.user-menu summary .icon-chevron { color: var(--muted); transition: transform .2s; }
.user-menu[open] summary .icon-chevron { transform: rotate(180deg); }
.avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: .85rem; font-weight: 700; padding-top: 2px;
}
.area-admin .avatar { background: var(--navy); }
.user-text { display: flex; flex-direction: column; line-height: 1.2; }
.user-text strong { color: var(--navy); font-size: .9rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-text small { color: var(--muted); font-size: .78rem; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(43,39,73,.16);
}
.dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px 7px; border-radius: 7px;
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.dropdown a .icon { color: var(--muted); }
.dropdown a:hover { background: var(--navy-soft); }
.dropdown a.logout { margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 7px 7px; color: var(--primary); }
.dropdown a.logout .icon { color: var(--primary); }
.dropdown a.logout:hover { background: var(--primary-soft); }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--navy); cursor: pointer;
}

.footer { background: var(--navy); color: rgba(255,255,255,.8); font-size: .85rem; border-top: 4px solid var(--gold); }
.footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.footer strong { color: #fff; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* Kartlar */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.card.narrow { max-width: 440px; margin: 24px auto; }
.card-head, .page-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.page-head { margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.page-head > div { display: flex; gap: 8px; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col .card { margin-bottom: 20px; }
.danger-zone { border-color: #f1c2bd; }
[id] { scroll-margin-top: 100px; } /* sabit üst menünün altında kalmasın */

/* İstatistikler */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 14px 16px; }
.stat span { display: block; color: var(--muted); font-size: .85rem; }
.stat strong { display: block; font-size: 1.45rem; margin-top: 2px; color: var(--navy); }
.stat small { color: var(--muted); }

/* Formlar */
label { display: block; margin-bottom: 12px; font-weight: 500; font-size: .9rem; }
input, select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 9px 11px;
  font: inherit; font-weight: 400; color: inherit;
  border: 1px solid var(--border); border-radius: 7px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(192,39,49,.2); border-color: var(--primary); }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-form .full { grid-column: 1 / -1; }
form.inline { display: inline; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { width: auto; margin: 0; padding: 0 10px; height: 40px; }
.filters .btn { height: 40px; padding: 0 16px; font-size: inherit; }
.filters input[type=search] { min-width: 220px; flex: 1 1 220px; }

/* Butonlar */
.btn {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--primary); border-radius: 7px;
  background: var(--primary); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy-soft); }
.btn-danger { background: #fff; color: var(--danger); border-color: #e3a3a7; }
.btn-danger:hover { background: var(--err-bg); }
.btn-small { padding: 4px 10px; font-size: .85rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Tablolar */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--navy); font-weight: 700; white-space: nowrap; border-bottom-width: 2px; }
tbody tr:hover { background: var(--bg); }
tfoot td { font-weight: 600; border-bottom: 0; }
.num { text-align: right; white-space: nowrap; }
td.actions { white-space: nowrap; text-align: right; }
td.actions form { display: inline-flex; gap: 4px; }

/* Rozetler */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge-paid, .badge-fee-paid { background: var(--ok-bg); color: var(--ok); }
.badge-open, .badge-fee-partial { background: var(--warn-bg); color: var(--warn); }
.badge-expired, .badge-canceled { background: var(--navy-soft); color: var(--muted); }
.badge-fee-unpaid, .badge-failed { background: var(--err-bg); color: var(--err); }

/* Taahhüt ilerlemesi */
.stats.compact { margin-bottom: 14px; }
.stats.compact .stat { border-top-width: 1px; background: var(--bg); }
.progress { height: 10px; border-radius: 999px; background: var(--navy-soft); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--primary)); }
.progress + .small { margin: 6px 0 16px; }

/* Tek satırlık form (etiket + buton) */
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.inline-form label { margin: 0; flex: 0 1 240px; }

/* Taahhüt listesi */
#pledges { margin-top: 8px; }
.pledge-table td { vertical-align: middle; }
.pledge-table tr.editing td { background: var(--primary-soft); }
.pledge-table tr.editing td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.pledge-table td.actions { text-align: right; white-space: nowrap; }
.pledge-table td.actions form { display: inline; margin-left: 6px; }
.pledge-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.pledge-form h3 { margin: 0 0 10px; }
.pledge-form .btn + .btn { margin-left: 6px; }
.btn .icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.pledge-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pledge-chip { padding: 6px 12px 4px; border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 6px; background: var(--bg); }
.pledge-chip strong { color: var(--navy); margin-right: 6px; }

/* Tablo içi küçük form */
.row-form { display: flex; gap: 6px; align-items: center; }
.row-form input { width: 110px; margin: 0; padding: 5px 8px; }
.badge-auto { background: var(--navy-soft); color: var(--navy); font-size: .72rem; }

/* Arşiv */
.archive-year { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; }
.archive-year summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 12px 16px 10px;
  cursor: pointer; list-style: none;
}
.archive-year summary::-webkit-details-marker { display: none; }
.archive-year summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
.archive-year[open] summary::before { transform: rotate(90deg); }
.archive-year summary strong { color: var(--navy); font-size: 1.05rem; min-width: 48px; }
.archive-year summary span { color: var(--muted); }
.archive-year summary .badge { margin-left: auto; }
.archive-year[open] summary { border-bottom: 1px solid var(--border); }
.archive-year .table-wrap, .archive-year > p { padding: 4px 12px 8px; }

/* Profil / iletişim bilgileri */
.card.profile-card { padding: 0; overflow: hidden; }
.profile-head {
  display: flex; align-items: center; gap: 18px; padding: 24px;
  background: linear-gradient(135deg, var(--navy-soft) 0%, #fff 70%);
  border-bottom: 1px solid var(--border);
}
.avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; flex: none; box-shadow: 0 0 0 4px #fff, 0 4px 14px rgba(59,54,99,.18); }
.profile-id h2 { margin: 0 0 8px; font-size: 1.35rem; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 2px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); font-size: .82rem;
}
.meta-chip strong { color: var(--navy); }
.meta-chip .icon { width: 14px; height: 14px; color: var(--navy); }
.profile-note {
  display: flex; align-items: flex-start; gap: 10px; margin: 20px 24px 0; padding: 10px 14px 8px;
  border-radius: 8px; background: var(--info-bg); color: var(--info); font-size: .88rem;
}
.profile-note .icon { margin-top: 1px; }
.profile-note a { color: inherit; font-weight: 600; }
.profile-form { padding: 4px 24px 0; }
.form-section { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.form-section:last-of-type { border-bottom: 0; }
.section-title { display: flex; align-items: flex-start; gap: 12px; }
.section-title h3 { margin: 2px 0 2px; font-size: 1rem; }
.section-title p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.section-icon {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 9px;
  background: var(--primary-soft); color: var(--primary);
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.address-grid { grid-template-columns: 140px 1fr; }
.address-grid .field-street { grid-column: 1 / -1; }
.field { margin-bottom: 10px; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-weight: 400; font-size: .8rem; }
.input-icon { position: relative; display: block; }
.input-icon .icon { position: absolute; left: 12px; top: 50%; margin-top: 2px; transform: translateY(-50%); color: var(--muted); pointer-events: none; width: 16px; height: 16px; }
.input-icon input { padding-left: 38px; }
.input-icon:focus-within .icon { color: var(--primary); }
.form-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 -24px; padding: 14px 24px; background: var(--bg); border-top: 1px solid var(--border);
}
@media (max-width: 760px) {
  .profile-head { padding: 18px; gap: 14px; }
  .avatar-lg { width: 52px; height: 52px; font-size: 1.15rem; }
  .profile-note { margin: 16px 18px 0; }
  .profile-form { padding: 0 18px; }
  .form-section { grid-template-columns: 1fr; gap: 14px; }
  .field-grid { grid-template-columns: 1fr; }
  .address-grid { grid-template-columns: 110px 1fr; }
  .form-footer { margin: 0 -18px; padding: 14px 18px; }
  .form-footer .btn { width: 100%; justify-content: center; }
}

/* Bildirim kanalları: seçilebilir kartlar */
.channel-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.channel { margin: 0; cursor: pointer; }
.channel input { position: absolute; opacity: 0; pointer-events: none; }
.channel-box {
  position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 16px 16px 14px; border: 2px solid var(--border); border-radius: 10px; background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.channel-box strong { color: var(--navy); font-size: 1rem; }
.channel-box small { color: var(--muted); font-weight: 400; line-height: 1.35; }
.channel-icon-lg {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 10px;
  background: var(--navy-soft); color: var(--navy); transition: background .15s, color .15s;
}
.channel-icon-lg .icon { width: 20px; height: 20px; }
.channel-check {
  position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--border); background: #fff; transition: all .15s;
}
.channel:hover .channel-box { border-color: #d3cfe0; }
.channel input:focus-visible + .channel-box { box-shadow: 0 0 0 3px rgba(192,39,49,.2); }
.channel input:checked + .channel-box { border-color: var(--primary); background: var(--primary-soft); }
.channel input:checked + .channel-box .channel-icon-lg { background: var(--primary); color: #fff; }
.channel input:checked + .channel-box .channel-check {
  border-color: var(--primary); background: var(--primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.mobile-field { max-width: 360px; }
.checkbox-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-bottom: 12px; font-size: .9rem; font-weight: 500; }
.checkbox-row > span { width: 100%; }
label.check { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
label.check input { width: auto; margin: 0; accent-color: var(--primary); }
.stat strong.stat-text { font-size: 1.05rem; padding-top: 6px; }
.phone-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.phone-link .icon { width: 15px; height: 15px; }
.test-notify { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.test-notify .btn { display: inline-flex; align-items: center; gap: 6px; }
.channel-icon { display: inline-flex; color: var(--navy); margin-right: 4px; }
.channel-icon .icon { width: 16px; height: 16px; }
.nav-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 2px 6px 0; margin-left: 2px;
  border-radius: 999px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700;
}
@media (max-width: 760px) {
  .channel-options { grid-template-columns: 1fr; }
}

/* Uyarılar */
.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #bfe3cf; }
.alert-warning { background: var(--warn-bg); color: var(--warn); border-color: #f3d9a4; }
.alert-error { background: var(--err-bg); color: var(--err); border-color: #f1c2bd; }
.alert-info { background: var(--info-bg); color: var(--info); }

.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 8px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.checklist { list-style: none; padding: 0; }
.big-icon { width: 64px; height: 64px; line-height: 64px; border-radius: 50%; margin: 0 auto 12px; font-size: 32px; font-weight: 700; }
.big-icon.ok { background: var(--ok-bg); color: var(--ok); }
.big-icon.wait { background: var(--warn-bg); color: var(--warn); }

@media (max-width: 760px) {
  .two-col, .grid-form { grid-template-columns: 1fr; }
  h1 { font-size: 1.35rem; }
  .card { padding: 16px; }
}

/* Üst menü içerikten biraz daha geniş olabilir */
.topbar .wrap { max-width: 1400px; }

/* Orta genişlik: 5 öğeli yönetici menüsü sığsın diye ikonlar ve kullanıcı adı gizlenir */
@media (max-width: 1340px) and (min-width: 1001px) {
  .area-admin .brand img { height: 40px; }
  .area-admin .main-nav a { padding: 0 10px; }
  .area-admin .main-nav a .icon { display: none; }
  .area-admin .main-nav a::after { left: 10px; right: 10px; }
  .area-admin .user-menu { padding-left: 12px; }
  .area-admin .user-text { display: none; }
}

/* Mobil menü */
@media (max-width: 1000px) {
  .topbar .wrap { flex-wrap: wrap; min-height: 64px; gap: 0 12px; }
  .brand { gap: 10px; }
  .brand img { height: 36px; }
  .brand:has(.area-label) img { padding-right: 10px; }
  .area-label { font-size: .75rem; padding: 5px 10px 3px; }
  .nav-toggle { display: inline-flex; }
  .nav-area { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding: 8px 0 14px; border-top: 1px solid var(--border); }
  .nav-open .nav-area { display: flex; }
  .main-nav { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 11px 12px 9px; border-radius: 8px; }
  .main-nav a::after { display: none; }
  .main-nav a.active { background: var(--primary-soft); }
  .user-menu { align-self: stretch; padding: 10px 0 0; margin-top: 8px; border-left: 0; border-top: 1px solid var(--border); }
  .user-menu summary, .user-menu[open] summary { pointer-events: none; padding-left: 6px; background: none; }
  .dropdown a { padding: 11px 12px 9px; }
  .dropdown a.logout { border-radius: 8px; }
  .user-menu summary .icon-chevron { display: none; }
  .user-menu .dropdown { display: block; position: static; box-shadow: none; border: 0; padding: 4px 0 0; min-width: 0; }
}
@media (max-width: 420px) {
  .brand img { height: 30px; }
  .area-label { font-size: .68rem; padding: 4px 8px 2px; letter-spacing: .04em; }
}

/* Şifre sayfaları */
.pw-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 20px; align-items: start; }
.pw-form { margin-top: 18px; max-width: 460px; }
.pw-form hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0 16px; }
.pw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.pw-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.pw-field { position: relative; display: block; }
.pw-field input { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; margin-top: 2px; transform: translateY(-50%);
  display: grid; place-items: center; width: 36px; height: 34px; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { background: var(--navy-soft); color: var(--navy); }
.pw-match { display: block; margin-top: 5px; font-size: .82rem; }
.pw-match.ok { color: var(--ok); }
.pw-match.fail { color: var(--err); }

.pw-rules { background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 20px; }
.pw-rules-head { display: flex; align-items: center; gap: 10px; }
.pw-rules-head h3 { margin: 0; }
.pw-rules h4 { margin: 18px 0 8px; color: var(--navy); font-size: .9rem; }
.rule-list, .tip-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0 4px; font-size: .92rem; transition: color .15s; }
.rule-icon {
  flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); background: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; line-height: 1; transition: all .15s;
}
.rule-list li.ok { color: var(--ok); }
.rule-list li.ok .rule-icon { border-color: var(--ok); background: var(--ok); color: #fff; }
.rule-list li.ok .rule-icon::before { content: "✓"; }
.rule-list li.fail { color: var(--err); }
.rule-list li.fail .rule-icon { border-color: var(--err); color: var(--err); }
.rule-list li.fail .rule-icon::before { content: "✕"; }
.rule-list li.static { color: var(--muted); }
.rule-list li.static .rule-icon { border-style: dashed; }
.pw-strength { margin-top: 14px; }
.pw-strength-bar { height: 8px; border-radius: 999px; background: var(--navy-soft); overflow: hidden; }
.pw-strength-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--muted); transition: width .25s, background .25s; }
.pw-strength.weak .pw-strength-bar span { background: var(--err); }
.pw-strength.medium .pw-strength-bar span { background: var(--gold); }
.pw-strength.good .pw-strength-bar span { background: #6aa84f; }
.pw-strength.strong .pw-strength-bar span { background: var(--ok); }
.pw-strength small { display: block; margin-top: 5px; color: var(--muted); }
.tip-list li { position: relative; padding: 4px 0 4px 18px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.tip-list li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Bağlantı kartı (ör. Bilgilerim > Şifre ve güvenlik) */
.link-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.link-card:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(59,54,99,.08); }
.link-card strong { display: block; color: var(--navy); }
.link-card small { display: block; color: var(--muted); }
.link-card-arrow { margin-left: auto; color: var(--primary); font-size: 1.3rem; }

@media (max-width: 900px) {
  .pw-layout { grid-template-columns: 1fr; }
  .pw-form { max-width: none; }
}
.tip-list code { word-break: normal; white-space: nowrap; }

/* Alt sekmeler (Ödemeler | Projeler) */
.sub-tabs { display: flex; gap: 4px; margin: -4px 0 18px; border-bottom: 1px solid var(--border); }
.sub-tabs a { padding: 8px 14px 7px; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.sub-tabs a:hover { color: var(--navy); }
.sub-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.projects-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.projects-layout tr.editing td { background: var(--primary-soft); }
.projects-layout td.actions { white-space: nowrap; }
.projects-layout td.actions .btn { margin-left: 4px; }
.project-info { display: flex; gap: 8px; align-items: flex-start; margin: -2px 0 12px; padding: 9px 12px 7px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: .88rem; }
.project-info .icon { flex: none; margin-top: 1px; }
optgroup { font-style: normal; color: var(--muted); }
@media (max-width: 760px) { .projects-layout { grid-template-columns: 1fr; } }

/* Meslek ve katılım */
.card-intro { padding: 22px 24px 4px; }
.card-intro h2 { margin-bottom: 4px; }
.card-intro p { margin: 0; font-size: .88rem; }
.field-label { display: block; margin: 0 0 8px; font-weight: 500; font-size: .9rem; }
.field-label + select { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { margin: 0; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 5px;
  border: 1.5px solid var(--border); border-radius: 999px; background: #fff;
  color: var(--navy); font-weight: 500; font-size: .88rem; transition: all .15s;
}
.chip:hover span { border-color: #c9c4da; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(192,39,49,.2); }
.chip input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.chip input[type=checkbox]:checked + span::before { content: "✓"; font-weight: 700; }
.reveal { padding: 14px 16px 2px; margin: -4px 0 8px; border-left: 3px solid var(--gold); background: var(--bg); border-radius: 0 8px 8px 0; }
.reveal[hidden] { display: none; }
.badge-volunteer { background: #fff1d6; color: #8a5a00; }
.badge-event { background: var(--navy-soft); color: var(--navy); }
.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); }
.stat-list li:last-child { border-bottom: 0; }
.stat-list a { color: var(--navy); text-decoration: none; font-weight: 500; }
.stat-list a:hover { color: var(--primary); }
.stat-list .bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--navy-soft); overflow: hidden; }
.stat-list .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--primary)); border-radius: 999px; }
.engagement-summary { font-size: .88rem; }
.engagement-summary dt { color: var(--muted); }
.link-card.nudge { border-left: 4px solid var(--gold); }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .three-col { grid-template-columns: 1fr; } }

/* Profil resmi */
.avatar.has-photo { padding: 0; background: var(--navy-soft); overflow: hidden; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: .72rem; flex: none; }
.avatar-xl { width: 88px; height: 88px; font-size: 1.8rem; flex: none; box-shadow: 0 0 0 4px #fff, 0 4px 14px rgba(59,54,99,.18); }
.avatar-upload { position: relative; flex: none; margin: 0; }
.avatar-drop { position: relative; display: block; margin: 0; border-radius: 50%; cursor: pointer; }
.avatar-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.avatar-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 50%; background: rgba(43,39,73,.62); color: #fff; opacity: 0; transition: opacity .15s;
}
.avatar-overlay small { font-size: .68rem; font-weight: 600; }
.avatar-drop:hover .avatar-overlay, .avatar-drop:focus-within .avatar-overlay { opacity: 1; }
.avatar-badge {
  position: absolute; right: -2px; bottom: 2px; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--primary); color: #fff; box-shadow: 0 0 0 3px #fff; pointer-events: none;
}
.avatar-badge .icon { width: 15px; height: 15px; }
.avatar.uploading img { opacity: .5; }
.photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 0; border: 0; background: none;
  color: var(--primary); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.link-btn .icon { width: 14px; height: 14px; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--muted); }
.link-btn.danger:hover { color: var(--danger); }
.title-with-avatar { display: flex; align-items: center; gap: 14px; }
.title-with-avatar h1 { margin: 0; }
.name-cell { display: flex; align-items: flex-start; gap: 10px; }
@media (max-width: 760px) { .avatar-xl { width: 68px; height: 68px; font-size: 1.4rem; } }

/* Giriş / tanıtım sayfası */
.login-page { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; padding: 12px 0 20px; }
.eyebrow {
  display: inline-block; padding: 5px 12px 3px; border-radius: 999px; background: var(--gold); color: var(--navy-dark);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.login-intro h1 { font-size: 2.2rem; margin: 14px 0 10px; }
.lead { font-size: 1.15rem; color: var(--navy); line-height: 1.5; margin: 0 0 8px; }
.lead-sub { color: var(--muted); margin: 0 0 28px; max-width: 640px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature {
  display: flex; gap: 12px; padding: 16px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
}
.feature:hover { border-color: #d6d2e3; box-shadow: 0 4px 14px rgba(59,54,99,.06); }
.feature h3 { margin: 2px 0 4px; font-size: .98rem; }
.feature p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 24px 0 0; padding: 0; color: var(--muted); font-size: .84rem; }
.trust-row li { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .icon { width: 15px; height: 15px; color: var(--ok); }
.login-side { position: sticky; top: 100px; }
.login-card { border-top: 4px solid var(--primary); padding: 26px; margin-bottom: 16px; box-shadow: 0 10px 30px rgba(59,54,99,.08); }
.login-card h2 { font-size: 1.3rem; margin-bottom: 16px; }
.login-card .btn-block { margin-top: 6px; padding: 11px 16px 9px; }
.login-links { margin: 14px 0 0; text-align: center; font-size: .9rem; }
.first-login { padding: 18px 20px; margin-bottom: 16px; background: #fffaf0; border-color: #f3dfb4; }
.first-login h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .98rem; }
.first-login h3 .icon { color: var(--warn); }
.steps { margin: 0 0 10px; padding-left: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 4px 0 6px 34px; font-size: .9rem; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; padding-top: 2px; background: var(--gold); color: var(--navy-dark); font-size: .78rem; font-weight: 700;
}
.first-login p { margin: 0; }
.help-box { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; font-size: .88rem; color: var(--muted); }
.help-box strong { color: var(--navy); }
.help-box a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.help-box .icon { width: 15px; height: 15px; }
.admin-link { margin: 18px 4px 0; font-size: .82rem; }
.admin-link a { color: var(--muted); }
@media (max-width: 1000px) {
  .login-page { grid-template-columns: 1fr; gap: 24px; }
  .login-side { position: static; order: -1; max-width: 520px; width: 100%; margin: 0 auto; }
  .login-intro h1 { font-size: 1.7rem; }
}
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Giriş sayfaları (bölünmüş ekran)
   ========================================================= */
.area-auth { background: #fff; }
main.auth { flex: 1 0 auto; display: flex; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); width: 100%; min-height: 100vh; }

/* Sol: marka paneli */
.auth-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 44px clamp(32px, 5vw, 72px); color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(248,180,62,.28) 0, rgba(248,180,62,0) 38%),
    radial-gradient(circle at 8% 92%, rgba(192,39,49,.45) 0, rgba(192,39,49,0) 42%),
    linear-gradient(155deg, #2b2749 0%, #3b3663 55%, #463f78 100%);
}
.auth-brand::after { /* logo motifi: büyük, soluk (B)² */
  content: "(B)²"; position: absolute; right: -40px; bottom: -70px; font-size: 300px; font-weight: 700; line-height: 1;
  color: #fff; opacity: .035; pointer-events: none; letter-spacing: -10px;
}
.auth-logo { display: inline-flex; align-self: flex-start; padding: 12px 18px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.auth-logo img { display: block; height: 44px; width: auto; }
.auth-brand-body { position: relative; z-index: 1; max-width: 560px; }
.auth-brand .eyebrow { background: var(--gold); color: var(--navy-dark); }
.auth-brand h1 { color: #fff; font-size: clamp(2rem, 3.2vw, 2.8rem); margin: 16px 0 12px; letter-spacing: -.01em; }
.auth-lead { margin: 0 0 30px; font-size: 1.08rem; line-height: 1.6; color: rgba(255,255,255,.82); }
.auth-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.auth-features li { display: flex; gap: 14px; align-items: flex-start; }
.auth-feature-icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: var(--gold);
}
.auth-features strong { display: block; color: #fff; font-size: .98rem; margin-bottom: 2px; }
.auth-features span { display: block; color: rgba(255,255,255,.68); font-size: .88rem; line-height: 1.45; }
.auth-trust { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.7); font-size: .82rem; }
.auth-trust li { display: inline-flex; align-items: center; gap: 7px; }
.auth-trust .icon { width: 15px; height: 15px; color: var(--gold); }

/* Sağ: form paneli */
.auth-main { display: flex; flex-direction: column; justify-content: space-between; padding: 40px clamp(24px, 4vw, 64px) 24px; background: #fff; }
.auth-panel { width: 100%; max-width: 420px; margin: auto; padding: 24px 0; }
.auth-logo-mobile { display: none; }
.auth-title { font-size: 1.75rem; margin: 0 0 6px; }
.auth-subtitle { margin: 0 0 26px; color: var(--muted); }
.auth-form .field { margin-bottom: 16px; }
.auth-form input { padding-top: 11px; padding-bottom: 9px; }
.auth-form .input-icon input { padding-left: 40px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.field-row .field-label { margin: 0; }
.field-row a { font-weight: 600; text-decoration: none; }
.field-row a:hover { text-decoration: underline; }
.auth-form .pw-field { margin-bottom: 20px; }
.auth-form .pw-field input { margin-top: 0; }
.btn-lg { padding: 12px 18px 10px; font-size: 1rem; border-radius: 9px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 30px 0 14px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.steps-compact { margin: 0 0 14px; }
.steps-compact li { font-size: .88rem; color: var(--text); }
.auth-help { margin: 22px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.auth-help a { font-weight: 600; }
.auth-back { margin: 16px 0 0; text-align: center; font-size: .9rem; }
.auth-back a { text-decoration: none; font-weight: 600; }
.auth-admin { margin: 18px 0 0; font-size: .8rem; text-align: center; }
.auth-admin a { color: var(--muted); }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }
.auth-foot a { color: var(--muted); text-decoration: none; }
.auth-foot a:hover { color: var(--primary); }
.area-auth .alert { margin-bottom: 18px; }
/* Yönetici girişi: lacivert yerine daha koyu ton, kırmızı vurgu yok */
.area-auth .auth-brand .eyebrow:only-child { margin: 0; }

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  /* Mobil sıra: form → tanıtım → altbilgi (dikey akış) */
  .auth-shell { display: flex; flex-direction: column; min-height: 0; }
  .auth-main { display: contents; }
  .auth-panel { order: 1; max-width: none; margin: 0; padding: 28px 20px 32px; }
  .auth-brand { order: 2; }
  .auth-foot { order: 3; padding: 16px 20px 22px; border-top: 0; }
  .auth-logo-mobile { display: inline-flex; padding: 0; box-shadow: none; margin-bottom: 22px; }
  .auth-logo-mobile img { height: 38px; }
  .auth-brand { padding: 36px 24px; gap: 28px; }
  .auth-brand > .auth-logo { display: none; }
  .auth-brand::after { font-size: 200px; }
}
