/* ============================================================
   Sedef Adalılar Derneği - Üye Hesapları Takip
   Tema: liman defteri - koyu lacivert / gemici yeşili / kum rengi
   ============================================================ */

:root {
  --navy-deep: #0e2433;
  --navy: #163b52;
  --navy-soft: #1f4f6b;
  --teal: #1f7a6c;
  --teal-soft: #e4f1ee;
  --sand: #f6f2e9;
  --sand-deep: #eee7d8;
  --white: #ffffff;
  --ink: #1c2a33;
  --muted: #62727c;
  --line: #e1dbca;
  --warn: #b5452b;
  --warn-soft: #fbe9e3;
  --ok: #2f7d4f;
  --ok-soft: #e7f3ea;
  --amber: #a4780f;
  --amber-soft: #fbf1dd;
  --radius: 10px;
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.5;
}

a { color: var(--teal); text-decoration: none; }

/* ---------- shell ---------- */
#app-shell { display: flex; min-height: 100vh; }

#sidebar {
  width: 246px;
  flex-shrink: 0;
  background: var(--navy-deep);
  color: #cfe0e6;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand-logo {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--teal), #123a4f);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-display); font-size: 14.5px; color: #fff; }
.brand-text span { font-size: 11.5px; color: #93a9b3; letter-spacing: .02em; }

#nav { display: flex; flex-direction: column; padding: 14px 10px; gap: 2px; flex: 1; overflow-y: auto; }
#nav a {
  color: #b9cad1;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.6px;
  display: flex; align-items: center; gap: 10px;
}
#nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
#nav a.active { background: var(--teal); color: #fff; font-weight: 600; }

.nav-group { display: flex; flex-direction: column; }
.nav-group-header {
  color: #b9cad1;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.6px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  background: none; border: none; width: 100%; text-align: left;
  font-family: inherit;
}
.nav-group-header:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-group-header .chevron { margin-left: auto; font-size: 11px; transition: transform .15s ease; }
.nav-group.open > .nav-group-header .chevron { transform: rotate(90deg); }
.nav-group-header.has-active { color: #fff; font-weight: 600; }
.nav-subitems { display: none; flex-direction: column; padding-left: 16px; gap: 2px; margin-top: 2px; }
.nav-group.open .nav-subitems { display: flex; }
.nav-subitems a { padding: 9px 12px 9px 20px; font-size: 13px; }

.sidebar-footer { padding: 14px 18px 18px; border-top: 1px solid rgba(255,255,255,0.08); }
#donem-badge {
  display: inline-block;
  font-size: 11.5px;
  color: #a7dcd0;
  background: rgba(31,122,108,0.25);
  border: 1px solid rgba(31,122,108,0.5);
  padding: 4px 10px;
  border-radius: 999px;
}

#main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

#topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 26px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
#menu-toggle { display: none; background: none; border: none; font-size: 20px; cursor: pointer; }
#page-title { font-family: var(--font-display); font-size: 20px; margin: 0; flex: 1; color: var(--navy-deep); }
.badge-pill {
  font-size: 12px; font-weight: 600;
  background: var(--warn-soft); color: var(--warn);
  padding: 5px 12px; border-radius: 999px;
  display: none;
}
.badge-pill.show { display: inline-block; }

.view-root { padding: 24px 26px 60px; max-width: 1680px; width: 100%; }

/* ---------- cards / dashboard ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat-card .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat-card .value { font-family: var(--font-display); font-size: 25px; color: var(--navy-deep); margin-top: 6px; }
.stat-card.accent { border-color: var(--teal); }
.stat-card.warn .value { color: var(--warn); }

.section-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 20px;
}
.section-card h2, .section-card h3 { font-family: var(--font-display); color: var(--navy-deep); margin-top: 0; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.data-table { border-collapse: collapse; width: 100%; font-size: 13.4px; }
table.data-table th {
  background: var(--sand-deep);
  color: var(--navy-deep);
  text-align: left;
  padding: 10px 10px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
}
table.data-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data-table td.col-isim { white-space: normal; max-width: 240px; word-break: break-word; }
table.data-table tbody tr:hover { background: var(--teal-soft); }
table.data-table td.num, table.data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data-table tr.row-error { background: var(--warn-soft); }
table.data-table tr.row-error:hover { background: #f7d9cf; }
table.data-table tr.row-active { background: var(--teal-soft); }

/* İşlem sütunu (her listenin en sağındaki Aç/Düzenle/Sil butonları) sağda
   sabit kalır — tablo geniş olup yatay kaydırma gerektiğinde bile bu
   butonlar hiçbir zaman görünmez/erişilmez hale gelmez. */
table.data-table th:last-child,
table.data-table td:last-child {
  position: sticky;
  right: 0;
  background: var(--white);
  box-shadow: -6px 0 6px -6px rgba(20, 30, 40, 0.18);
}
table.data-table th:last-child { z-index: 3; background: var(--sand-deep); }
table.data-table tbody tr:hover td:last-child { background: var(--teal-soft); }
table.data-table tr.row-error td:last-child { background: var(--warn-soft); }
table.data-table tr.row-error:hover td:last-child { background: #f7d9cf; }
table.data-table tr.row-active td:last-child { background: var(--teal-soft); }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: 4px; }
table.data-table th.sortable { cursor: pointer; user-select: none; }
table.data-table th.sortable:hover { background: var(--teal-soft); color: var(--navy-deep); }
table.data-table .sort-icon { font-size: 10.5px; color: #b9b09a; margin-left: 2px; }
table.data-table .sort-icon.active { color: var(--teal); }
table.data-table th.col-sayacno, table.data-table td.col-sayacno {
  width: 90px; max-width: 90px; min-width: 90px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- Üye Paneli ("Hesabım") tabloları — boşluk kullanımı özenle
   hesaplanmış, kolona özel genişlikler. Kısa hücreler (harf, m³, gün
   sayısı, tarih, tutar) TEK SATIRDA kalır; yalnızca uzun açıklama
   metinleri (ör. "Ek Gider Payı (...)") gerektiğinde en fazla 2 satıra
   sarılır. Genel amaç: yatay kaydırmaya hiç gerek kalmaması. */

/* 1) "Hesap Dökümünüz" tablosu: harf | açıklama | m³ | B.Fiyat | Birim | Tahakkuk | Ödenen */
table.hesap-dokum-table { table-layout: fixed; font-size: 12.2px; }
table.hesap-dokum-table th, table.hesap-dokum-table td { padding: 6px 6px; }
table.hesap-dokum-table th:nth-child(1), table.hesap-dokum-table td:nth-child(1) { width: 22px; white-space: nowrap; }
table.hesap-dokum-table th:nth-child(2), table.hesap-dokum-table td:nth-child(2) { width: auto; white-space: normal; line-height: 1.25; }
table.hesap-dokum-table th:nth-child(3), table.hesap-dokum-table td:nth-child(3) { width: 46px; white-space: nowrap; }
table.hesap-dokum-table th:nth-child(4), table.hesap-dokum-table td:nth-child(4) { width: 60px; white-space: nowrap; }
table.hesap-dokum-table th:nth-child(5), table.hesap-dokum-table td:nth-child(5) { width: 52px; white-space: nowrap; }
table.hesap-dokum-table th:nth-child(6), table.hesap-dokum-table td:nth-child(6) { width: 92px; white-space: nowrap; }
table.hesap-dokum-table th:nth-child(7), table.hesap-dokum-table td:nth-child(7) { width: 92px; white-space: nowrap; }

/* 2) "Taksit Planı" tablosu (4 Eylül 2026 revizyonu — tek bileşenli sade
   model): # | Vade T. | Öd. T. | Gecikme (gün) | Faiz | Taksit | Borç |
   Ödeme | Kalan | Küm. Kalan */
table.taksit-plani-table { table-layout: fixed; font-size: 12px; }
table.taksit-plani-table th, table.taksit-plani-table td { padding: 6px 5px; white-space: nowrap; }
table.taksit-plani-table th { white-space: normal; line-height: 1.15; }
table.taksit-plani-table th:nth-child(1), table.taksit-plani-table td:nth-child(1) { width: 22px; }
table.taksit-plani-table th:nth-child(2), table.taksit-plani-table td:nth-child(2),
table.taksit-plani-table th:nth-child(3), table.taksit-plani-table td:nth-child(3) { width: 62px; }
table.taksit-plani-table th:nth-child(4), table.taksit-plani-table td:nth-child(4) { width: 32px; }
table.taksit-plani-table th:nth-child(5), table.taksit-plani-table td:nth-child(5) { width: 60px; }
table.taksit-plani-table th:nth-child(6), table.taksit-plani-table td:nth-child(6),
table.taksit-plani-table th:nth-child(7), table.taksit-plani-table td:nth-child(7),
table.taksit-plani-table th:nth-child(8), table.taksit-plani-table td:nth-child(8),
table.taksit-plani-table th:nth-child(9), table.taksit-plani-table td:nth-child(9) { width: 68px; }
table.taksit-plani-table th:nth-child(10), table.taksit-plani-table td:nth-child(10) { width: 76px; }

/* 3) "Sayaç Verileriniz" tablosu: Ay | Tarih | Sayaç Okuması | Aylık Tüketim */
table.sayac-verileri-table { table-layout: fixed; font-size: 12.4px; }
table.sayac-verileri-table th, table.sayac-verileri-table td { padding: 6px 8px; white-space: nowrap; }
table.sayac-verileri-table th:nth-child(1), table.sayac-verileri-table td:nth-child(1) { width: 30%; }
table.sayac-verileri-table th:nth-child(2), table.sayac-verileri-table td:nth-child(2) { width: 22%; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--amber-soft); color: var(--amber); }
.pill-error { background: var(--warn-soft); color: var(--warn); }
.pill-info { background: var(--teal-soft); color: var(--teal); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 18px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 12.3px; color: var(--muted); font-weight: 600; }
.form-field .hint { font-size: 11px; color: var(--muted); font-weight: 400; }
input[type=text], input[type=number], input[type=date], select, textarea {
  font-family: var(--font-body);
  font-size: 13.8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
input[readonly] { background: var(--sand-deep); color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
  font-size: 13.4px; font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--teal); color: #fff;
}
.btn:hover { background: #185f54; }
.btn.secondary { background: #fff; color: var(--navy-deep); border-color: var(--line); }
.btn.secondary:hover { background: var(--sand-deep); }
.btn.danger { background: var(--warn); }
.btn.danger:hover { background: #953a24; }
.btn.small { padding: 5px 11px; font-size: 12.3px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-input { min-width: 220px; }

/* ---------- installment / taksit table ---------- */
.taksit-table td.inactive { color: #b8c0c4; }
.taksit-table tr.inactive-row { background: #fafafa; color: #aab2b6; }

/* ---------- misc ---------- */
.muted { color: var(--muted); }
.empty-state {
  text-align: center; padding: 50px 20px; color: var(--muted);
}
.empty-state .icon { font-size: 34px; margin-bottom: 10px; }

.issue-list { display: flex; flex-direction: column; gap: 10px; }
.issue-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px;
}
.issue-item.hata { border-left: 4px solid var(--warn); }
.issue-item.uyari { border-left: 4px solid var(--amber); }
.issue-item .txt { flex: 1; }
.issue-item .txt b { display: block; margin-bottom: 2px; }
.issue-item .txt span { font-size: 12.8px; color: var(--muted); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button {
  background: none; border: none; padding: 10px 16px; font-size: 13.4px; font-weight: 600;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.active { color: var(--teal); border-bottom-color: var(--teal); }

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 5px 12px; border-radius: 999px; font-size: 12.3px; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer;
}
.chip.active { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }

.toast {
  position: fixed; bottom: 22px; right: 22px;
  background: var(--navy-deep); color: #fff;
  padding: 12px 18px; border-radius: 9px; font-size: 13.4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: all .25s ease;
  z-index: 50;
}
.toast.show { transform: translateY(0); opacity: 1; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.note-box {
  background: var(--amber-soft); border: 1px solid #e8cf9c; color: #6b4f10;
  padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px;
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  #sidebar { position: fixed; left: -260px; z-index: 40; transition: left .2s ease; box-shadow: 8px 0 24px rgba(0,0,0,.2); }
  #sidebar.open { left: 0; }
  #menu-toggle { display: inline-block; }
  .view-root { padding: 18px 14px 50px; }
  #topbar { padding: 14px 16px; }

  /* Genel tablo -> kart dönüşümü: masaüstünde geniş bir tablo olan her
     .data-table, telefon ekranında yatay kaydırma gerektirmeyen, üst
     üste dizilmiş kartlara dönüşür. Her hücrenin solunda (data-label
     attribute'u verilmişse) etiketi görünür; verilmemişse hücre değeri
     yine de düzgün görünür, sadece etiketsiz kalır (kademeli iyileşme -
     öncelikli ekranlara etiket eklendi, diğerleri zamanla eklenecek). */
  .table-wrap { overflow-x: visible; border: none; background: transparent; }
  table.data-table thead { display: none; }
  table.data-table, table.data-table tbody, table.data-table tr, table.data-table td {
    display: block; width: 100%;
  }
  table.data-table tr {
    margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px 12px; background: var(--white); box-shadow: 0 1px 3px rgba(20,30,40,.06);
  }
  table.data-table td {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 8px 2px; border-bottom: 1px dashed var(--line); text-align: right; white-space: normal;
  }
  table.data-table td:last-child { border-bottom: none; position: static; box-shadow: none; background: transparent; }
  table.data-table td[data-label]::before {
    content: attr(data-label); font-weight: 600; color: var(--navy-deep); text-align: left; margin-right: 10px; flex-shrink: 0;
  }
  table.data-table td:empty { display: none; }
  table.data-table td.col-sayacno { width: auto; max-width: none; min-width: 0; overflow: visible; text-overflow: clip; white-space: normal; }
  table.data-table td.col-isim { max-width: none; }

  /* ---- Sayaç okuma ekranlarına özel dokunma-dostu büyütmeler ---- */
  #okuma-table .sayac-foto-btn { width: 100%; padding: 12px 10px; font-size: 14.5px; margin-top: 6px; }
  #okuma-table td.okuma-m3-hucre input.okuma-m3 { width: 100% !important; font-size: 17px; padding: 10px 8px; }
  #okuma-table td .hint { text-align: left; }
  #okuma-table .ay-tuketim-mobil { display: none; } /* office-review amaçlı, sahada gereksiz */
  .sayac-foto-sonuc-row td { display: block; text-align: left; }
}

::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb { background: #cdbfa0; border-radius: 6px; }

/* ---------- giriş ekranı ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, var(--teal));
  padding: 20px;
}
.auth-card {
  background: var(--white);
  border-radius: 14px;
  padding: 34px 32px 30px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  text-align: center;
}
.auth-card h1 { font-family: var(--font-display); font-size: 21px; margin: 0 0 2px; color: var(--navy-deep); }
.auth-card form { text-align: left; display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }

/* ---------- Google ile Giriş Yap ---------- */
.google-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.google-divider::before, .google-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-btn-wrap { display: flex; justify-content: center; }
.google-btn-wrap > div { width: 100% !important; }

/* ---------- kimlik / whoami ---------- */
.whoami {
  font-size: 12.3px;
  color: #a7c1cb;
  line-height: 1.4;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.whoami b { color: #fff; display: block; font-size: 13px; }

/* ---------- üye paneli ---------- */
#member-shell { min-height: 100vh; background: var(--sand); }
.onizleme-banner {
  background: #b5842b; color: #fff; text-align: center;
  padding: 10px 16px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 50;
}
.onizleme-banner button {
  background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.member-topbar {
  background: var(--navy-deep); color: #fff;
  padding: 16px 22px; display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.member-topbar .brand-text strong { color: #fff; }
.member-topbar .brand-text span { color: #93a9b3; }
.member-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.member-nav button {
  background: none; border: 1px solid rgba(255,255,255,0.25); color: #dce8ec;
  padding: 7px 14px; border-radius: 999px; font-size: 12.8px; font-weight: 600; cursor: pointer;
}
.member-nav button.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.member-body { max-width: 900px; margin: 0 auto; padding: 24px 20px 60px; }
.announcement-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 12px;
}
.announcement-card .date { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.duyuru-embed-wrap { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--sand); }
.duyuru-embed-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }
.duyuru-ek-liste-uye { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.duyuru-ek-foto { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--sand); cursor: zoom-in; border: 1px solid var(--line); }
.duyuru-ek-belge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); text-decoration: none; }
.duyuru-ek-liste { display: flex; flex-direction: column; gap: 6px; }
.duyuru-ek-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.8px; }
.duyuru-ek-ikon { font-size: 15px; }
.duyuru-ek-ad { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- yazışma önizleme modalı ---------- */
.onizle-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(20, 30, 35, 0.55); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.onizle-modal-kutu { background: var(--white); border-radius: 12px; max-width: 640px; width: 100%; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.onizle-modal-baslik { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.onizle-modal-alan { padding: 18px; overflow-y: auto; }
.onizle-modal-etiket { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 4px; }
.onizle-modal-konu { font-weight: 600; font-size: 14px; }
.onizle-modal-govde { white-space: pre-wrap; font-size: 13.5px; line-height: 1.5; background: var(--sand); border-radius: 8px; padding: 12px; }
.bank-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
}
.bank-card .iban { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: .02em; }
.event-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 12px; display: flex; gap: 14px; align-items: flex-start;
}
.event-card .date { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.event-poster { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--sand); flex-shrink: 0; cursor: zoom-in; transition: opacity .15s ease; }
.event-poster:hover { opacity: .85; }
.event-poster-yer { width: 84px; height: 84px; border-radius: 8px; background: var(--sand); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--muted); }
.event-body { flex: 1; min-width: 0; }
.event-belge { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--teal); text-decoration: none; }
.event-belge:hover { text-decoration: underline; }
.event-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 9999; align-items: center; justify-content: center; padding: 24px; }
.event-lightbox.open { display: flex; }
.event-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; display: block; }
.event-lightbox-kapat { position: absolute; top: 16px; right: 20px; background: none; border: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
@media(max-width:640px) {
  .event-card { flex-direction: column; }
  .event-poster, .event-poster-yer { width: 100%; height: 160px; }
}

/* ---------- sürükle-bırak alanı (toplu veri girişi) ---------- */
.dropzone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--sand);
  color: var(--muted);
  transition: all .15s ease;
}
.dropzone:hover { border-color: var(--teal); background: var(--teal-soft); }
.dropzone.drag-over { border-color: var(--teal); background: var(--teal-soft); }
.dropzone-icon { font-size: 30px; margin-bottom: 8px; }

/* ---------- fotoğraf / avatar ---------- */
.avatar-upload { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.avatar-circle {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--sand-deep); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; color: var(--muted); font-size: 28px;
}
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.avatar-actions { display: flex; flex-direction: column; gap: 6px; }
.avatar-actions input[type=file] { display: none; }
.avatar-mini {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--sand-deep);
  font-size: 13px; overflow: hidden; color: var(--muted); flex-shrink: 0; vertical-align: middle;
}
.avatar-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.name-cell { display: flex; align-items: center; gap: 9px; }
