/* `hidden` özniteliği her zaman kazansın — .us-btn / .us-input gibi
   display tanımlayan sınıflar tarayıcı varsayılanını ezmesin. */
[hidden] { display: none !important; }

/* ============================================================
   UÇUŞ SAATI — Hesap portalı sayfa düzeni
   Yalnızca design-system token'larını (var(--us-*)) kullanır.
   Yapı, ESN Accounts sayfasının iskeleti baz alınarak kurulmuştur.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
/* İçerik alanı kalan boşluğu doldurur; footer daima en altta kalır */
.page { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

/* Oturumlu sayfalarda (üst çubuklu) içerik, oturum ve yetki doğrulanana kadar
   görünmez: yetkisiz kartlar yenilemede bir an görünüp kaybolmasın.
   requireUser html'e .yetki-hazir ekler. Firebase hiç yanıt vermezse 8 sn sonra açılır. */
html:not(.yetki-hazir) body:has(> header.app-bar) > .page {
  opacity: 0;
  pointer-events: none;
  animation: yetki-yedek 0s 8s forwards;
}
body:has(> header.app-bar) > .page { transition: opacity .15s ease; }
@keyframes yetki-yedek { to { opacity: 1; pointer-events: auto; } }

/* ── 404 sayfası ───────────────────────────────────────────── */
.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--us-surface-page);
}
.not-found__inner {
  max-width: 520px;
  text-align: center;
  padding: var(--us-space-7) 0;
}
.not-found__logo { height: 48px; margin-bottom: var(--us-space-5); }
.not-found__code {
  display: block;
  font-family: var(--us-font-display);
  font-weight: 800;
  font-size: 72px;
  line-height: 1;
  color: var(--us-blue-700);
  letter-spacing: -2px;
}
.not-found h1 {
  font-family: var(--us-font-display);
  font-weight: 800;
  font-size: 24px;
  margin: var(--us-space-3) 0 var(--us-space-2);
}
.not-found p { color: var(--us-text-muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 var(--us-space-5); }
.not-found__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.u-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--us-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--us-blue-700);
}

/* ── Üst uygulama çubuğu (sade, beyaz) ─────────────────────── */
.app-bar {
  background: rgba(255, 255, 255, 0.96);
  color: var(--us-text-body);
  border-bottom: 1px solid var(--us-border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(1.2) blur(6px);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
}
.app-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--us-space-3);
  min-height: 60px;
  padding: 8px 28px;
}
.app-bar__logo { height: 34px; display: block; }
.app-bar__title {
  font-family: var(--us-font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.2px;
  margin: 0;
  color: var(--us-text-body);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-bar__spacer { flex: 1; }
.app-bar__menu {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--us-radius-sm);
  border: 1px solid var(--us-border);
  background: var(--us-white);
  color: var(--us-text-body);
  place-items: center;
  cursor: pointer;
  flex: none;
}
.app-bar__menu svg { width: 20px; height: 20px; }
.app-bar #logoutBtn svg { width: 16px; height: 16px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--us-radius-pill);
  background: transparent;
  border: 1px solid transparent;
  color: var(--us-text-body);
  cursor: pointer;
  transition: background var(--us-duration-fast) var(--us-ease-out), border-color var(--us-duration-fast);
}
.user-chip:hover { background: var(--us-surface-hover); border-color: var(--us-border); color: var(--us-text-body); }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--us-blue-50);
  color: var(--us-blue-700);
  display: grid;
  place-items: center;
  font-family: var(--us-font-display);
  font-weight: 700;
  font-size: 14px;
  flex: none;
}
.user-chip__meta { display: flex; flex-direction: column; line-height: 1.2; padding-right: 2px; min-width: 0; }
.user-chip__name { font-family: var(--us-font-display); font-weight: 600; font-size: 14px; color: var(--us-text-body); }
.user-chip__role { font-size: 11.5px; color: var(--us-text-muted); max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── İçerik gövdesi ────────────────────────────────────────── */
.page { padding: var(--us-space-6) 0 var(--us-space-7); }

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: var(--us-space-6) 0 var(--us-space-3);
}
.section-head:first-child { margin-top: 0; }
.section-head h2 {
  font-family: var(--us-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--us-text-muted);
  margin: 0;
}
.section-head .count {
  font-size: 13px;
  color: var(--us-text-muted);
  font-weight: 600;
}
.section-head.is-collapsible {
  cursor: pointer;
  user-select: none;
}
.section-head.is-collapsible:hover h2 { color: var(--us-text-body); }
.section-head.is-collapsible:focus-visible {
  outline: 2px solid var(--us-blue-700);
  outline-offset: 4px;
  border-radius: 6px;
}
.section-head__chevron {
  width: 18px;
  height: 18px;
  color: var(--us-text-faint);
  transition: transform 0.2s ease;
  flex: none;
}
.section-head[aria-expanded="false"] .section-head__chevron { transform: rotate(-90deg); }
/* Başlıktan sonra ince çizgi: bölümler birbirinden ayrılsın */
.section-head.is-collapsible::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--us-border);
  order: 3;
}
.section-head.is-collapsible h2 { order: 1; }
.section-head.is-collapsible .section-head__chevron { order: 2; }

.card-grid.is-collapsed { display: none; }

/* ── Bildirim şeridi ───────────────────────────────────────── */
.notice {
  position: relative;
  display: flex;
  gap: 14px;
  background: var(--us-white);
  border: 1px solid var(--us-border);
  border-left: 3px solid var(--us-accent-yellow);
  border-radius: var(--us-radius-md);
  padding: 16px 48px 16px 18px;
  color: var(--us-text-body);
}
.notice__mark { flex: none; color: var(--us-yellow-700); margin-top: 1px; }
.notice__mark svg { width: 20px; height: 20px; }
.notice strong { font-family: var(--us-font-display); font-weight: 700; font-size: 15.5px; }
.notice p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--us-text-muted); }
.notice__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--us-text-faint);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--us-duration-fast), color var(--us-duration-fast);
}
.notice__close:hover { background: var(--us-surface-muted); color: var(--us-dark-brown); }

/* ── Servis kartları ızgarası ──────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  row-gap: 2px;
  align-content: start;
  padding: 16px 18px;
  min-height: 100%;
}
.service-card:hover { border-color: #CFE3EC; box-shadow: var(--us-shadow-md); }
.service-card:focus-within { border-color: var(--us-blue-700); }

/* Stretched Link to make the whole card clickable */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}
.service-card__icon {
  grid-row: 1 / span 3;
  width: 40px;
  height: 40px;
  border-radius: var(--us-radius-sm);
  background: var(--us-blue-50);
  color: var(--us-blue-700);
  display: grid;
  place-items: center;
  flex: none;
}
.service-card__icon svg { width: 20px; height: 20px; }
.service-card.is-action .service-card__icon { background: var(--us-yellow-50); color: var(--us-yellow-700); }
.service-card h3 {
  font-family: var(--us-font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  margin: 1px 0 0;
  color: var(--us-text-body);
}
.service-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--us-text-muted);
}
/* Kart düğmesi sade bir bağlantı satırına dönüşür; kartın tamamı tıklanır */
.service-card .us-btn {
  grid-column: 2;
  justify-self: start;
  margin-top: 8px;
  padding: 0;
  background: none;
  border: none;
  color: var(--us-blue-700);
  font-size: 13.5px;
  font-weight: 600;
  gap: 4px;
}
.service-card .us-btn svg { width: 14px !important; height: 14px !important; }
.service-card:hover .us-btn { color: #14556D; text-decoration: underline; text-underline-offset: 3px; }
.service-card .stretched-link:focus-visible { outline: none; }

/* Henüz yapılmamış ("Yakında") servisler — silik ve tıklanamaz */
.service-card.is-soon { opacity: 0.55; }
.service-card.is-soon:hover { border-color: var(--us-border); box-shadow: var(--us-shadow-sm); }
.service-card.is-soon .us-btn { pointer-events: none; color: var(--us-text-muted); }
.service-card.is-soon:hover .us-btn { text-decoration: none; }
.service-card.is-soon .stretched-link { cursor: default; }
.service-card.is-soon .stretched-link::after { cursor: default; }
.soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: var(--us-radius-pill);
  background: var(--us-surface-muted);
  color: var(--us-text-muted);
  font-family: var(--us-font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Footer (sade alt satır) ───────────────────────────────── */
.site-footer {
  background: transparent;
  color: var(--us-text-faint);
  padding: var(--us-space-4) 0 var(--us-space-5);
  margin-top: var(--us-space-6);
  border-top: 1px solid var(--us-border);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--us-space-4);
  flex-wrap: wrap;
}
.site-footer img { display: none; }
.site-footer nav { display: flex; gap: var(--us-space-4); }
.site-footer nav a { color: var(--us-text-muted); font-family: var(--us-font-display); font-weight: 500; font-size: 13px; }
.site-footer nav a:hover { color: var(--us-text-body); }
.site-footer__legal {
  font-size: 12px;
  letter-spacing: 0.3px;
}
body.portal .site-footer nav { display: none; }

/* ── Form alanları ─────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > .label {
  font-family: var(--us-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--us-tracking-caption);
  text-transform: uppercase;
  color: var(--us-text-muted);
}
.field .hint { font-size: 12px; color: var(--us-text-faint); }
.field .req { color: var(--us-danger); }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .lead {
  position: absolute;
  left: 14px;
  color: var(--us-text-faint);
  pointer-events: none;
  display: grid;
  place-items: center;
}
.input-wrap .lead svg { width: 18px; height: 18px; }
.input-wrap .lead ~ .us-input { padding-left: 42px; }
.input-wrap .toggle {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--us-text-faint);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.input-wrap .toggle:hover { color: var(--us-dark-brown); background: rgba(63, 50, 50, 0.06); }
.input-wrap .toggle svg { width: 18px; height: 18px; }

.checkrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--us-text-muted);
  line-height: 1.5;
}
.checkrow input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--us-primary-blue);
  flex: none;
  cursor: pointer;
}
.checkrow a { font-weight: 600; }

.form-error {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(198, 40, 40, 0.08);
  border: 1px solid rgba(198, 40, 40, 0.25);
  color: var(--us-danger);
  border-radius: var(--us-radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
}
.form-error.show { display: flex; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--us-text-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: var(--us-tracking-caption);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--us-border-subtle);
}

/* ── Kimlik (giriş/kayıt) bölünmüş düzen ───────────────────── */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) 1fr;
}
.auth__brand {
  background: #0F3B4C;
  color: #fff;
  padding: var(--us-space-8) var(--us-space-7);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Galeri kareleri: sol üstte logonun arkasına hafif koyuluk, altta yazı için koyuluk */
.auth__slides { position: absolute; inset: 0; z-index: -1; }
.auth__slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 360px 260px at 0 0, rgba(0,0,0,0.55), rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.75) 100%);
}
.auth__slide {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s ease, transform 7s ease-out;
}
.auth__slide.is-on { opacity: 1; transform: scale(1); }
.auth__brand-logo { height: 120px; align-self: flex-start; margin: -18px 0 0 -24px; }
.auth__brand-body { margin-top: auto; max-width: 460px; }
.auth__brand h1 {
  color: #fff;
  font: var(--us-text-display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: var(--us-tracking-display);
  line-height: 1.05;
  margin: 0 0 18px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.ozellikler { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ozellikler li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}
.ozellikler svg { width: 14px; height: 14px; }

.auth__form {
  background: var(--us-surface-page);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--us-space-7) var(--us-space-5);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--us-surface-card);
  border-radius: var(--us-radius-lg);
  border: 1px solid var(--us-border);
  box-shadow: var(--us-shadow-md);
  padding: var(--us-space-7) var(--us-space-6);
}
.auth-card.is-wide { max-width: 560px; }
.auth-card h2 {
  font-family: var(--us-font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.5px;
  margin: 6px 0 6px;
}
.auth-card .lede { color: var(--us-text-muted); font-size: 15px; margin: 0 0 var(--us-space-6); }
.auth-card form { display: flex; flex-direction: column; gap: var(--us-space-4); }
.auth-card .us-btn { width: 100%; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--us-space-4); }
.switch-line { text-align: center; font-size: 14px; color: var(--us-text-muted); margin: 4px 0 0; }
.switch-line a { font-weight: 700; }
.mobile-logo { display: none; }

/* ── Fotoğraf yükleme (kayıt) ──────────────────────────────── */
.avatar-upload { display: flex; align-items: center; gap: 16px; }
.avatar-upload__preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--us-blue-50);
  border: 2px dashed var(--us-border-input);
  display: grid;
  place-items: center;
  color: var(--us-blue-700);
  overflow: hidden;
  flex: none;
}
.avatar-upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload__preview svg { width: 28px; height: 28px; }
.avatar-upload__meta .label { display: block; font-family: var(--us-font-display); font-weight: 700; font-size: 15px; }
.avatar-upload__meta .hint { font-size: 12.5px; color: var(--us-text-faint); }
.avatar-upload input[type="file"] { display: none; }
.link-btn {
  background: none;
  border: none;
  color: var(--us-text-link);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 13.5px;
  font-family: inherit;
}
.link-btn:hover { color: var(--us-text-link-hover); }

/* ── Profil sayfası ────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--us-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--us-text-muted);
  margin-bottom: var(--us-space-4);
}
.back-link:hover { color: var(--us-blue-700); }
.back-link svg { width: 16px; height: 16px; }

.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--us-space-4);
  align-items: start;
}
.stack { display: flex; flex-direction: column; gap: var(--us-space-4); }

.profile-aside { position: sticky; top: 84px; text-align: center; }
.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto var(--us-space-2);
  background: var(--us-blue-50);
  color: var(--us-blue-700);
  display: grid;
  place-items: center;
  font-family: var(--us-font-display);
  font-weight: 800;
  font-size: 30px;
  overflow: hidden;
  box-shadow: var(--us-shadow-md);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-aside h2 { font-family: var(--us-font-display); font-weight: 800; font-size: 19px; margin: 0 0 2px; }
.profile-aside .who { color: var(--us-text-muted); font-size: 13px; margin: 0 0 var(--us-space-3); }

.meta-list { text-align: left; margin-top: var(--us-space-3); border-top: 1px solid var(--us-border-subtle); }
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--us-border-subtle);
  font-size: 13.5px;
}
.meta-row .k { color: var(--us-text-faint); font-weight: 600; }
.meta-row .v { font-family: var(--us-font-display); font-weight: 700; color: var(--us-text-body); }

/* CV / özgeçmiş kutusu */
.cv-box {
  text-align: left;
  margin-top: var(--us-space-4);
  padding-top: var(--us-space-4);
  border-top: 1px solid var(--us-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cv-box__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--us-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--us-tracking-caption);
  text-transform: uppercase;
  color: var(--us-text-muted);
}
.cv-box__title svg { width: 15px; height: 15px; }
.cv-empty { font-size: 13px; color: var(--us-text-faint); }
.cv-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--us-border-subtle);
  border-radius: var(--us-radius-sm);
  background: var(--us-blue-50);
  color: var(--us-text-body);
  transition: border-color var(--us-duration-fast), background var(--us-duration-fast);
}
.cv-file:hover { border-color: var(--us-primary-blue); background: var(--us-blue-100); }
.cv-file svg { width: 20px; height: 20px; color: var(--us-blue-700); flex: none; }
.cv-file__meta { display: flex; flex-direction: column; min-width: 0; }
.cv-file__name {
  font-family: var(--us-font-display);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cv-file__size { font-size: 11.5px; color: var(--us-text-muted); }
.cv-file__del {
  margin-left: auto;
  flex: none;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--us-radius-sm);
  background: transparent;
  color: var(--us-text-faint);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color var(--us-duration-fast), background var(--us-duration-fast);
}
.cv-file__del:hover { color: var(--us-danger); background: rgba(198, 40, 40, 0.10); }
.cv-file__del svg { width: 16px; height: 16px; }

.card-title {
  font-family: var(--us-font-display);
  font-weight: 800;
  font-size: 17px;
  margin: 0 0 2px;
}
.card-sub { color: var(--us-text-muted); font-size: 13px; margin: 0 0 var(--us-space-4); }
.us-input.textarea { min-height: 68px; resize: vertical; line-height: 1.5; padding-top: 10px; }

/* Bildirim tercihleri — tek satır kompakt */
.pref-row {
  display: flex;
  align-items: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  border-top: 1px solid var(--us-border-subtle);
  padding-top: var(--us-space-3);
  margin-top: var(--us-space-1);
}
.pref-row .checkrow { align-items: center; font-size: 13px; }

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 0;
}
.saved-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--us-success);
  color: var(--us-white);
  padding: 12px 22px;
  border-radius: var(--us-radius-pill);
  font-family: var(--us-font-display);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--us-shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--us-duration-fast) var(--us-ease-out), transform var(--us-duration-fast) var(--us-ease-out);
  z-index: 40;
}
.saved-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.saved-toast svg { width: 17px; height: 17px; }

.info-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--us-blue-50);
  border: 1px solid var(--us-blue-100);
  border-radius: var(--us-radius-md);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--us-text-muted);
}
.info-note svg { width: 18px; height: 18px; flex: none; color: var(--us-blue-700); margin-top: 1px; }

/* ── Yönetim paneli ────────────────────────────────────────── */
/* Başlık yanındaki bölüm etiketi: kutusuz, ince ayraçlı sade metin */
.app-tag {
  display: inline-block;
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--us-border);
  color: var(--us-text-muted);
  font-weight: 500;
  font-size: 0.85em;
  letter-spacing: 0;
  line-height: 1.1;
}

/* Başlık + araç çubuğu (kompakt) */
.admin-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: var(--us-space-4);
}
.admin-head .spacer { flex: 1; }
.admin-title { display: flex; align-items: center; gap: 14px; }
.admin-title h2 {
  font-family: var(--us-font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.4px;
  margin: 0;
}
.admin-stats { display: inline-flex; gap: 6px; }
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--us-radius-pill);
  background: var(--us-white);
  border: 1px solid var(--us-border-subtle);
  font-size: 12.5px;
  color: var(--us-text-muted);
  white-space: nowrap;
}
.stat-chip b { font-family: var(--us-font-display); font-weight: 800; color: var(--us-text-body); }
.stat-chip.is-live b { color: var(--us-success); }
.stat-chip.is-info b { color: var(--us-blue-700); }
.admin-head .search { position: relative; width: 300px; }
.admin-head .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--us-text-faint); pointer-events: none; }
.admin-head .search .us-input { padding: 10px 12px 10px 38px; font-size: 13.5px; }
.filter-select { width: auto; max-width: 190px; padding: 10px 12px; font-size: 13.5px; }

/* Üye tablosu */
.table-card { padding: 0; overflow: hidden; }
table.members { width: 100%; border-collapse: collapse; }
.members th {
  text-align: left;
  font-family: var(--us-font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: var(--us-tracking-caption);
  text-transform: uppercase;
  color: var(--us-text-faint);
  padding: 10px 14px;
  border-bottom: 1px solid var(--us-border-subtle);
  white-space: nowrap;
}
.members td { padding: 8px 14px; border-bottom: 1px solid var(--us-border-subtle); font-size: 13.5px; vertical-align: middle; }
.members tbody tr:last-child td { border-bottom: none; }
.members tbody tr { transition: background var(--us-duration-fast); }
.members tbody tr:hover { background: var(--us-brown-50); }
.cell-user { display: flex; align-items: center; gap: 9px; }
.cell-user .avatar { width: 28px; height: 28px; font-size: 11.5px; background: var(--us-blue-50); color: var(--us-blue-700); }
.cell-user .nm { font-family: var(--us-font-display); font-weight: 700; color: var(--us-text-body); font-size: 13.5px; }
.member-link { color: inherit; text-decoration: none; }
.member-link:hover { color: var(--us-blue-700); text-decoration: underline; }
.cell-user .em { font-size: 11.5px; color: var(--us-text-faint); }
.col-right { text-align: right; }
.row-actions { display: inline-flex; gap: 6px; }
.icon-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--us-border-input);
  background: var(--us-white);
  border-radius: var(--us-radius-sm);
  color: var(--us-text-muted);
  cursor: pointer;
  display: grid; place-items: center;
  transition: color var(--us-duration-fast), border-color var(--us-duration-fast);
}
.icon-btn:hover { color: var(--us-blue-700); border-color: var(--us-primary-blue); }
.icon-btn.danger:hover { color: var(--us-danger); border-color: var(--us-danger); }
.icon-btn svg { width: 16px; height: 16px; }
.us-badge-muted { background: rgba(63, 50, 50, 0.12); color: var(--us-text-muted); }

/* ── Envanter (Excel benzeri tablolar) ─────────────────────── */
.sheet-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: var(--us-space-3);
  border-bottom: 2px solid var(--us-border-subtle);
  flex-wrap: wrap;
}
.sheet-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--us-radius-sm) var(--us-radius-sm) 0 0;
  background: transparent;
  font-family: var(--us-font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--us-text-muted);
  cursor: pointer;
  margin-bottom: -2px;
  transition: color var(--us-duration-fast), background var(--us-duration-fast);
}
.sheet-tab svg { width: 15px; height: 15px; }
.sheet-tab:hover { color: var(--us-text-body); background: var(--us-brown-50); }
.sheet-tab.is-active {
  background: var(--us-white);
  color: var(--us-blue-700);
  border-color: var(--us-border-subtle);
  border-bottom: 2px solid var(--us-white);
}

.sheet-card { padding: 0; overflow: auto; max-height: calc(100vh - 320px); }
/* Envanter kartları sabit dursun — hover'da kalkma/gölge oynaması olmasın */
.sheet-card:hover, .quick-row:hover { transform: none; box-shadow: var(--us-shadow-sm); }
table.sheet { width: 100%; border-collapse: collapse; font-size: 13px; }
.sheet th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--us-brown-50);
  text-align: left;
  font-family: var(--us-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--us-tracking-caption);
  text-transform: uppercase;
  color: var(--us-text-muted);
  padding: 9px 12px;
  border: 1px solid var(--us-border-subtle);
  border-top: none;
  white-space: nowrap;
}
.sheet th:first-child, .sheet td:first-child { border-left: none; }
.sheet th:last-child, .sheet td:last-child { border-right: none; }
.sheet td {
  padding: 7px 12px;
  border: 1px solid var(--us-border-subtle);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.sheet tbody tr:nth-child(even) { background: rgba(63, 50, 50, 0.025); }
.sheet tbody tr:hover { background: var(--us-blue-50); }
.sheet .col-r { text-align: right; }
.sheet .col-num { width: 40px; text-align: right; color: var(--us-text-faint); }
.sheet .col-actions { width: 110px; }
.sheet .cell-name { font-family: var(--us-font-display); font-weight: 700; }
.sheet .cell-faint { color: var(--us-text-faint); font-size: 12.5px; }
.sheet .cell-empty { text-align: center; color: var(--us-text-faint); padding: 24px; border-left: none; border-right: none; }
.sheet tfoot td {
  background: var(--us-yellow-50);
  font-family: var(--us-font-display);
  font-weight: 800;
  border-top: 2px solid var(--us-accent-yellow);
}
.sheet .cell-total { font-size: 12px; letter-spacing: 0.3px; }
.us-badge-danger { background: rgba(198, 40, 40, 0.12); color: var(--us-danger); }

/* Hızlı giriş satırı (tablo üstü form) */
.quick-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: var(--us-space-3) var(--us-space-4);
  margin-bottom: var(--us-space-3);
}
.quick-row .field { min-width: 130px; }
.quick-row .field.grow { flex: 1; min-width: 200px; }
.quick-row .us-input { padding: 9px 12px; font-size: 13.5px; }
.quick-row .us-btn { margin-bottom: 1px; }

/* ── Takım çoklu seçimi (bir üye birden fazla takımda olabilir) ── */
.takim-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  padding: 10px 12px;
  border: 1px solid var(--us-border-input);
  border-radius: var(--us-radius-sm);
  background: var(--us-white);
}
.takim-pick__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--us-text-body);
  line-height: 1.35;
  cursor: pointer;
}
.takim-pick__item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--us-primary-blue);
  cursor: pointer;
}

/* Takım rozetleri (liste/profil görünümü) */
.takim-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.takim-chip {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(21, 101, 192, 0.10);
  color: var(--us-blue-700);
  white-space: nowrap;
}

/* ── Bildirim zili (app-bar) + açılır panel ────────────────── */
.zil { position: relative; flex: none; }
.zil__btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--us-border);
  background: var(--us-white);
  color: var(--us-text-body);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background var(--us-duration-fast);
}
.zil__btn:hover { background: var(--us-surface-hover); }
.zil__btn svg { width: 18px; height: 18px; }
.zil__sayi {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--us-danger);
  color: var(--us-white);
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--us-white);
}

.zil__panel {
  /* Zile göre değil görünüme göre hizalanır: dar ekranda sola taşmaz. */
  position: fixed;
  top: 64px; right: 16px;
  width: 380px; max-width: calc(100vw - 32px);
  background: var(--us-white);
  border: 1px solid var(--us-border-subtle);
  border-radius: var(--us-radius-md);
  box-shadow: var(--us-shadow-lg);
  z-index: 70;
  overflow: hidden;
}
.zil__head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--us-border-subtle);
  background: var(--us-surface-page);
}
.zil__head h2 { font-family: var(--us-font-display); font-size: 15px; margin: 0; }
.zil__head .spacer { flex: 1; }
.zil__liste { max-height: 62vh; overflow-y: auto; padding: 6px; }
.zil__liste .feed { gap: 4px; }
.zil__liste .feed-item { padding: 8px 10px; gap: 10px; border-radius: var(--us-radius-sm); }
.zil__liste .feed-item__icon { width: 26px; height: 26px; }
.zil__liste .feed-item__icon svg { width: 14px; height: 14px; }
.zil__liste .feed-item__body { gap: 0; }
.zil__liste .feed-item__body b { font-size: 13px; }
.zil__liste .feed-item__body span { font-size: 11.5px; }
.zil__liste .feed-item__time { font-size: 11px; }
.zil__bos { padding: 26px 16px; text-align: center; color: var(--us-text-faint); font-size: 13px; }

@media (max-width: 560px) {
  .zil__panel { top: 58px; right: 12px; left: 12px; width: auto; max-width: none; }
}

/* ── Saha raporu (etkinlik takibi) ─────────────────────────── */
.rapor-section { margin-top: var(--us-space-6); }
.rapor-section > h3 {
  font-size: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--us-text-muted);
  margin: 0 0 10px;
}
.rapor-section .hint { display: block; margin-bottom: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.satir-tablo { width: 100%; border-collapse: collapse; }
.satir-tablo th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--us-text-muted);
  padding: 0 6px 6px;
  font-weight: 700;
}
.satir-tablo td { padding: 3px 6px 3px 0; vertical-align: middle; }
.satir-tablo td:last-child { padding-right: 0; }
.satir-tablo .us-input { padding: 8px 10px; font-size: 13.5px; }
.satir-ekle { margin-top: 8px; }

.rapor-card { display: block; }
.rapor-card__head { display: flex; align-items: flex-start; gap: 10px; }
.rapor-card__head b { font-size: 15.5px; }
.rapor-card__meta {
  display: block;
  font-size: 12.5px;
  color: var(--us-text-muted);
  margin-top: 3px;
}
.rapor-card__stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.rapor-oku dl { margin: 0; }
.rapor-oku .meta-row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--us-border-subtle); }
.rapor-oku .meta-row .k { flex: 0 0 190px; color: var(--us-text-muted); font-size: 13px; }
.rapor-oku .meta-row .v { flex: 1; font-size: 13.5px; font-weight: 600; }
.rapor-oku .sheet td, .rapor-oku .sheet th { font-size: 13px; }
.rapor-oku p.serbest { margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; }

/* ── Dernek şeması (pan / zoom tuval) ──────────────────────── */
.sema-wrap {
  position: relative;
  height: min(72vh, 700px);
  min-height: 440px;
  border-radius: var(--us-radius-md);
  border: 1px solid var(--us-border-subtle);
  background-color: #f4f1ee;
  background-image: radial-gradient(circle, rgba(63, 50, 50, 0.10) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  margin-bottom: var(--us-space-5);
}
.sema-wrap.is-panning { cursor: grabbing; }
.sema-world { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.sema-edges { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }

/* Bir düğüm: üstte küçük rol etiketi, altta kart */
.sema-node { position: absolute; box-sizing: border-box; }
.sema-node__etiket {
  display: block;
  text-align: center;
  font-size: 11.5px;
  color: var(--us-text-muted);
  margin-bottom: 5px;
  line-height: 1.25;
}

/* Kişi kartı — solda fotoğraf, sağda ad (örnek belgedeki gibi) */
.sema-kart {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 9px;
  min-height: 52px;
  padding: 0 16px 0 0;
  border-radius: 5px;
  background: var(--us-accent-yellow);
  color: var(--us-dark-brown);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--us-duration-fast), transform var(--us-duration-fast);
}
.sema-kart:hover { box-shadow: var(--us-shadow-md); }
.sema-node.is-selected .sema-kart { box-shadow: 0 0 0 3px var(--us-primary-blue); }
.sema-kart--koyu { background: #3b2f2c; color: var(--us-white); }
.sema-kart--acik { background: var(--us-accent-yellow); }

.sema-kart__foto {
  flex: none;
  width: 52px;
  align-self: stretch;
  background: rgba(0, 0, 0, 0.14);
  background-size: cover;
  background-position: center top;
  display: grid;
  place-items: center;
  font-family: var(--us-font-display);
  font-weight: 800;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.45);
}
.sema-kart--koyu .sema-kart__foto { background-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.6); }
.sema-kart__foto svg { width: 20px; height: 20px; }

.sema-kart__ad {
  flex: 1;
  align-self: center;
  text-align: right;
  padding: 8px 0;
  font-family: var(--us-font-display);
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.2;
  word-break: break-word;
}
.sema-kart__ad small { display: block; font-weight: 600; font-size: 10.5px; opacity: .7; letter-spacing: .1px; }

/* Sağ kenardaki şerit — belgedeki sarı/koyu çizgi detayı */
.sema-kart__serit {
  position: absolute;
  right: 5px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 26px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, .55) 0 4px,
    transparent 4px 7px
  );
}
.sema-kart--koyu .sema-kart__serit {
  background: repeating-linear-gradient(
    to bottom,
    var(--us-accent-yellow) 0 4px,
    transparent 4px 7px
  );
}

/* Takım başlığı — ikon + iki satır kalın başlık (kart değil) */
.sema-baslik {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 2px 0;
}
.sema-baslik__ikon { font-size: 23px; line-height: 1; flex: none; }
.sema-baslik__ad {
  font-family: var(--us-font-display);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.22;
  color: var(--us-dark-brown);
}
.sema-node.is-selected .sema-baslik { outline: 2px solid var(--us-primary-blue); outline-offset: 4px; border-radius: 4px; }

/* Sayaç düğümü — "+120 Kıymetli Dernek Üyemiz" */
.sema-sayac {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 5px;
  background: #3b2f2c;
  color: var(--us-white);
  cursor: pointer;
}
.sema-sayac__no { font-family: var(--us-font-display); font-weight: 800; font-size: 26px; line-height: 1; }
.sema-sayac__not { font-size: 11px; line-height: 1.25; opacity: .85; }
.sema-node.is-selected .sema-sayac { box-shadow: 0 0 0 3px var(--us-primary-blue); }

/* Alt birim ekleme düğmesi */
.sema-node__ekle {
  position: absolute;
  left: 50%; bottom: -12px;
  transform: translateX(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--us-border-subtle);
  background: var(--us-white);
  color: var(--us-text-muted);
  display: none;
  align-items: center; justify-content: center;
  font-size: 15px; line-height: 1;
  cursor: pointer; padding: 0;
  z-index: 2;
}
.sema-node:hover .sema-node__ekle,
.sema-node.is-selected .sema-node__ekle { display: flex; }
.sema-node__ekle:hover { border-color: var(--us-primary-blue); color: var(--us-blue-700); }

/* Tuval üzerindeki kontroller */
.sema-kontrol {
  position: absolute;
  right: 12px; bottom: 12px;
  display: flex; gap: 6px;
  padding: 6px;
  border-radius: var(--us-radius-pill);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--us-border-subtle);
  box-shadow: var(--us-shadow-sm);
}
.sema-kontrol button {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none; background: transparent;
  color: var(--us-text-muted);
  display: grid; place-items: center; cursor: pointer;
}
.sema-kontrol button:hover { background: var(--us-blue-50); color: var(--us-blue-700); }
.sema-kontrol button svg { width: 17px; height: 17px; }
.sema-kontrol .oran { min-width: 48px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--us-text-muted); }

.sema-rozet {
  position: absolute;
  left: 12px; top: 12px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--us-text-muted);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--us-border-subtle);
  border-radius: var(--us-radius-pill);
  padding: 5px 12px;
}

@media (max-width: 720px) {
  .sema-wrap { height: min(64vh, 520px); }
}

/* ── Blog editörü (zengin metin) ───────────────────────────── */
.blog-baslik-input { font-family: var(--us-font-display); font-weight: 800; font-size: 22px; padding: 12px 14px; }

.blog-arac {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 6px;
  border: 1px solid var(--us-border-subtle);
  border-bottom: none;
  border-radius: var(--us-radius-sm) var(--us-radius-sm) 0 0;
  background: #faf8f6;
  position: sticky; top: 64px; z-index: 3;
}
.blog-arac__ayrac { width: 1px; height: 22px; background: var(--us-border-subtle); margin: 0 4px; }
.blog-arac button {
  height: 32px; min-width: 32px; padding: 0 8px;
  border-radius: 6px; border: 1px solid transparent;
  background: transparent; color: var(--us-text-body);
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.blog-arac button:hover { background: var(--us-white); border-color: var(--us-border-subtle); }
.blog-arac button.is-active { background: var(--us-blue-50); color: var(--us-blue-700); border-color: rgba(21,101,192,.25); }
.blog-arac button svg { width: 16px; height: 16px; }

/* Renk paleti (başlık arka planı / metin rengi) */
.blog-palet { position: relative; }
.blog-palet__menu {
  position: absolute; top: 36px; left: 0; z-index: 5;
  display: none; grid-template-columns: repeat(6, 24px); gap: 6px;
  padding: 8px; background: var(--us-white);
  border: 1px solid var(--us-border-subtle); border-radius: var(--us-radius-sm);
  box-shadow: var(--us-shadow-md);
}
.blog-palet.is-open .blog-palet__menu { display: grid; }
.blog-palet__menu button { width: 24px; height: 24px; min-width: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.blog-palet__menu button.kaldir { background: var(--us-white) !important; font-size: 13px; color: var(--us-text-muted); }

/* Yazı alanı — sitedeki okuma deneyimine yakın tipografi */
.blog-alan {
  min-height: 380px; padding: 20px 24px;
  border: 1px solid var(--us-border-input);
  border-radius: 0 0 var(--us-radius-sm) var(--us-radius-sm);
  background: var(--us-white);
  font-size: 15.5px; line-height: 1.75; outline: none;
}
.blog-alan:focus { border-color: var(--us-primary-blue); box-shadow: 0 0 0 3px var(--us-focus-ring); }
.blog-alan:empty::before { content: attr(data-placeholder); color: var(--us-text-faint); }
.blog-alan h2, .blog-onizleme h2 { font-family: var(--us-font-display); font-size: 22px; line-height: 1.3; margin: 22px 0 8px; }
.blog-alan h3, .blog-onizleme h3 { font-family: var(--us-font-display); font-size: 17.5px; line-height: 1.3; margin: 18px 0 6px; }
.blog-alan h2[style*="background"], .blog-onizleme h2[style*="background"],
.blog-alan h3[style*="background"], .blog-onizleme h3[style*="background"] {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
}
.blog-alan p, .blog-onizleme p { margin: 0 0 12px; }
.blog-alan ul, .blog-alan ol, .blog-onizleme ul, .blog-onizleme ol { margin: 0 0 12px 24px; }
.blog-alan li, .blog-onizleme li { margin-bottom: 4px; }
.blog-alan blockquote, .blog-onizleme blockquote {
  margin: 0 0 14px; padding: 10px 16px;
  border-left: 3px solid var(--us-accent-yellow); background: #fff9e8; color: var(--us-text-muted);
}
.blog-alan img, .blog-onizleme img { max-width: 100%; height: auto; border-radius: var(--us-radius-sm); margin: 6px 0 12px; display: block; }
.blog-alan hr, .blog-onizleme hr { border: none; border-top: 1px solid var(--us-border-subtle); margin: 18px 0; }
.blog-alan a, .blog-onizleme a { color: var(--us-text-link); text-decoration: underline; }
.blog-alan mark, .blog-onizleme mark { padding: 1px 4px; border-radius: 3px; }

/* Önizleme ve liste */
.blog-onizleme { padding: 18px 22px; border: 1px solid var(--us-border-subtle); border-radius: var(--us-radius-sm); background: var(--us-white); font-size: 15.5px; line-height: 1.75; }
.blog-onizleme h1 { font-family: var(--us-font-display); font-size: 27px; margin: 0 0 6px; }
.blog-onizleme .kunye { font-size: 12.5px; color: var(--us-text-faint); margin-bottom: 14px; }
.blog-kapak { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--us-radius-sm); margin: 8px 0 12px; display: block; }
.blog-kapak--kucuk { max-height: 140px; margin-top: 10px; }
.blog-etiket { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--us-blue-50); color: var(--us-blue-700); margin: 0 4px 4px 0; }
.blog-boyut { font-size: 12px; color: var(--us-text-muted); }
.blog-boyut.is-uyari { color: var(--us-danger); font-weight: 700; }

@media (max-width: 720px) {
  .blog-arac { top: 56px; }
  .blog-alan { padding: 14px; }
}

/* ── Görev tablosu: alt görev ve gizlilik ──────────────────── */
.gorev-filtre { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--us-space-3); }
.gorev-filtre button {
  padding: 7px 13px;
  border-radius: var(--us-radius-pill);
  border: 1px solid var(--us-border-subtle);
  background: var(--us-white);
  font-size: 12.5px; font-weight: 600;
  color: var(--us-text-muted);
  cursor: pointer;
}
.gorev-filtre button.is-active { background: var(--us-blue-50); border-color: var(--us-blue-100); color: var(--us-blue-700); }
.gorev-filtre .sayi { opacity: .7; margin-left: 4px; font-weight: 700; }

.gorev-dal { color: var(--us-text-faint); margin-right: 5px; font-family: var(--us-font-mono, monospace); }
tr.is-alt .cell-name { padding-left: 22px; }
tr.is-alt td { background: rgba(63, 50, 50, 0.018); }

.gizli-rozet {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(63, 50, 50, 0.10);
  color: var(--us-text-muted);
  margin-left: 6px; white-space: nowrap;
}
.gizli-rozet svg { width: 11px; height: 11px; }

/* ── Sayfa içi form paneli (modal yerine) ──────────────────── */
/* Yanlışlıkla dışarı tıklayınca kapanmasın diye formlar sayfada durur. */
.form-panel {
  padding: var(--us-space-6);
  margin-bottom: var(--us-space-5);
  scroll-margin-top: 90px;
}
.form-panel:hover { transform: none; box-shadow: var(--us-shadow-sm); }
.form-panel > form { display: flex; flex-direction: column; gap: var(--us-space-4); }
.form-panel .form-actions { justify-content: flex-end; }
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--us-space-5);
}
.panel-head h3 { font-family: var(--us-font-display); font-weight: 800; font-size: 20px; margin: 0 0 2px; }
.panel-head p { margin: 0; font-size: 13.5px; color: var(--us-text-muted); }

/* ── Gönüllü çağrısı / form kurucu ─────────────────────────── */
.cagri-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cagri-head b { font-family: var(--us-font-display); font-size: 15.5px; }
.cagri-meta { display: block; font-size: 12.5px; color: var(--us-text-muted); margin-top: 3px; }
.cagri-aciklama { margin: 10px 0 0; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; }

/* Hazır soru kısayolları — kurulumu tek tıka indirir */
.hazir-sorular { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hazir-soru {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--us-radius-pill);
  border: 1px dashed var(--us-border-input);
  background: var(--us-white);
  color: var(--us-text-muted);
  cursor: pointer;
  transition: border-color var(--us-duration-fast), color var(--us-duration-fast);
}
.hazir-soru:hover { border-style: solid; border-color: var(--us-primary-blue); color: var(--us-blue-700); }

/* Soru satırları */
.soru-liste { display: flex; flex-direction: column; gap: 8px; }
.soru-kart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--us-border-subtle);
  border-radius: var(--us-radius-sm);
  background: var(--us-white);
}
.soru-kart .us-input { padding: 8px 10px; font-size: 13.5px; }
.soru-kart .soru-etiket { flex: 1 1 200px; min-width: 160px; }
.soru-kart .soru-tip { flex: 0 0 150px; }
.soru-kart .soru-secenek { flex: 1 1 100%; }
.soru-kart .soru-zorunlu {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--us-text-muted); white-space: nowrap; cursor: pointer;
}
.soru-kart .soru-zorunlu input { width: 15px; height: 15px; accent-color: var(--us-primary-blue); cursor: pointer; }
.soru-tasi { display: inline-flex; gap: 2px; }

/* Üye tarafı: başvuru formu ve durum */
.basvuru-durum { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.yonetici-notu {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: var(--us-radius-sm);
  background: var(--us-blue-50);
  font-size: 13px;
  line-height: 1.5;
}
.cevap-liste { margin: 0; font-size: 13px; }
.cevap-liste .k { color: var(--us-text-muted); }
.cevap-liste .v { font-weight: 600; }

@media (max-width: 720px) {
  .soru-kart .soru-tip { flex: 1 1 100%; }
}


@media (max-width: 720px) {
  .takim-pick { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .rapor-oku .meta-row { flex-direction: column; gap: 2px; }
  .rapor-oku .meta-row .k { flex: none; }
  .satir-tablo { display: block; overflow-x: auto; }
}


@media (max-width: 720px) {
  .sheet-card { max-height: none; }
  .quick-row .field { min-width: 100%; }
}

/* ── İletişim Merkezi ──────────────────────────────────────── */
.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--us-radius-pill);
  background: var(--us-danger);
  color: var(--us-white);
  font-size: 10.5px;
  font-weight: 800;
}
.panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: var(--us-space-3);
}
.panel-actions .hint { font-size: 12.5px; color: var(--us-text-faint); }

.feed { display: flex; flex-direction: column; gap: 8px; }
.feed-empty { text-align: center; color: var(--us-text-faint); padding: 28px; font-size: 13.5px; }
.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--us-border-subtle);
  border-radius: var(--us-radius-md);
  background: var(--us-white);
  cursor: pointer;
  font: inherit;
  transition: border-color var(--us-duration-fast), background var(--us-duration-fast);
}
.feed-item:hover { border-color: var(--us-primary-blue); background: var(--us-blue-50); }
.feed-item.is-unread { background: var(--us-blue-50); border-color: rgba(21, 101, 192, 0.22); }
.feed-item__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--us-primary-blue); }
.feed-item__icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: var(--us-radius-sm);
  background: var(--us-blue-50);
  color: var(--us-blue-700);
  display: grid; place-items: center;
}
.feed-item__icon svg { width: 17px; height: 17px; }
.feed-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.feed-item__body b { font-family: var(--us-font-display); font-size: 13.5px; }
.feed-item__body span { font-size: 12.5px; color: var(--us-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item__time { flex: none; font-size: 11.5px; color: var(--us-text-faint); }

.compose-card { display: flex; flex-direction: column; gap: var(--us-space-3); margin-bottom: var(--us-space-4); border-left: 4px solid var(--us-accent-yellow); }
.compose-card:hover { transform: none; box-shadow: var(--us-shadow-sm); }
.compose-card .form-actions { padding-top: 0; border: none; }

.duyuru-card {
  background: var(--us-white);
  border: 1px solid var(--us-border-subtle);
  border-radius: var(--us-radius-md);
  padding: 14px 16px;
}
.duyuru-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.duyuru-card__head b { font-family: var(--us-font-display); font-size: 15px; }
.duyuru-card__meta { font-size: 12px; color: var(--us-text-faint); display: inline-flex; align-items: center; gap: 8px; }
.duyuru-card p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--us-text-muted); }

.gorev-durum { padding: 6px 8px; font-size: 12.5px; width: auto; }
.sheet tbody tr.is-done td { opacity: 0.55; }
.sheet tbody tr.is-done .cell-name { text-decoration: line-through; }

/* Mail benzeri iki panel */
.mail-grid { display: grid; grid-template-columns: 320px 1fr; gap: var(--us-space-4); align-items: start; }
.mail-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 300px); overflow: auto; }
.mail-list:hover, .mail-view:hover { transform: none; box-shadow: var(--us-shadow-sm); }
.thread-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px;
  border: none;
  border-radius: var(--us-radius-sm);
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.thread-item:hover { background: var(--us-brown-50); }
.thread-item.is-active { background: var(--us-blue-50); }
.thread-item.is-unread b { color: var(--us-blue-700); }
.thread-item .avatar { width: 32px; height: 32px; font-size: 12px; background: var(--us-blue-50); color: var(--us-blue-700); }
.thread-item__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.thread-item__body b { font-family: var(--us-font-display); font-size: 13px; }
.thread-item__konu { font-size: 12px; color: var(--us-text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-item__son { font-size: 11.5px; color: var(--us-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mail-view { display: flex; flex-direction: column; min-height: 420px; max-height: calc(100vh - 300px); }
.mail-view__head { padding-bottom: 10px; border-bottom: 1px solid var(--us-border-subtle); display: flex; flex-direction: column; gap: 2px; }
.mail-view__head b { font-family: var(--us-font-display); font-size: 15px; }
.mail-view__msgs { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 14px 2px; }
.msg { max-width: 78%; }
.msg.is-mine { align-self: flex-end; text-align: right; }
.msg__meta { font-size: 11px; color: var(--us-text-faint); margin-bottom: 3px; }
.msg__body {
  display: inline-block;
  text-align: left;
  padding: 10px 13px;
  border-radius: var(--us-radius-md);
  background: var(--us-brown-50);
  font-size: 13.5px;
  line-height: 1.5;
}
.msg.is-mine .msg__body { background: var(--us-blue-50); }
.mail-view__reply { display: flex; gap: 10px; align-items: flex-end; border-top: 1px solid var(--us-border-subtle); padding-top: 12px; }
.mail-view__reply .textarea { flex: 1; min-height: 52px; }

@media (max-width: 900px) {
  .mail-grid { grid-template-columns: 1fr; }
  .mail-list { max-height: 260px; }
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(63, 50, 50, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center;
  padding: 20px; z-index: 60;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--us-white);
  border-radius: var(--us-radius-lg);
  box-shadow: var(--us-shadow-lg);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow: auto;
  padding: var(--us-space-6);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: var(--us-space-5); }
.modal-head h3 { font-family: var(--us-font-display); font-weight: 800; font-size: 22px; margin: 0 0 2px; }
.modal-head p { margin: 0; font-size: 13.5px; color: var(--us-text-muted); }
.modal form { display: flex; flex-direction: column; gap: var(--us-space-4); }
.modal .form-actions { justify-content: flex-end; }
.pw-field { display: flex; gap: 8px; align-items: stretch; }
.pw-field .us-input { font-family: var(--us-font-mono); letter-spacing: 0.5px; }

/* ── Duyarlı (responsive) ──────────────────────────────────── */
@media (max-width: 960px) {
  .admin-head .search { flex: 1; width: auto; min-width: 180px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-aside { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .mobile-logo { display: block; text-align: center; margin-bottom: var(--us-space-5); }
  .mobile-logo img { height: 54px; }
  .auth__form { padding: var(--us-space-6) var(--us-space-4); }
}
@media (max-width: 560px) {
  .admin-stats { display: none; }
  .table-card { overflow-x: auto; }
  table.members { min-width: 560px; }
  .grid-2 { grid-template-columns: 1fr; }
  .user-chip__meta { display: none; }
  .auth-card { padding: var(--us-space-6) var(--us-space-5); }
}

/* ============================================================
   Google ile giriş · kişi kartı · aidat · talepler · blog yönetimi
   ============================================================ */

/* Google ile giriş butonu (Google marka kuralına uygun: beyaz zemin, renkli G) */
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--us-radius-sm);
  border: 1px solid var(--us-border-input);
  background: var(--us-white);
  color: var(--us-text-body);
  font-family: var(--us-font-display);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--us-duration-fast), border-color var(--us-duration-fast);
}
.google-btn:hover { background: var(--us-surface-hover); border-color: #BFB6B1; }
.google-btn:focus-visible { outline: 2px solid var(--us-blue-700); outline-offset: 2px; }
.google-btn:disabled { opacity: .65; cursor: progress; transform: none; }
.google-btn__g { width: 22px; height: 22px; flex: none; }

/* Onay bekleyen hesap bildirimi */
.notice.is-bekleme { background: var(--us-white); border-left-color: var(--us-blue-700); }
.notice.is-bekleme .notice__mark { color: var(--us-blue-700); }
.notice.is-red { background: rgba(198, 40, 40, 0.06); border-color: rgba(198, 40, 40, 0.25); border-left-color: var(--us-danger); }
.notice.is-red .notice__mark { color: var(--us-danger); }

/* Tıklanabilir üye adı → kişi kartı */
.kisi-link {
  all: unset;
  cursor: pointer;
  color: inherit;
  font: inherit;
  border-bottom: 1px dashed rgba(49, 175, 217, 0.55);
}
.kisi-link:hover, .kisi-link:focus-visible { color: var(--us-blue-700); border-bottom-style: solid; }

.kisi-kart { position: relative; max-width: 420px; }
.kisi-kart__kapat { position: absolute; top: 14px; right: 14px; }
.kisi-kart__bas { display: flex; align-items: center; gap: 14px; margin-bottom: var(--us-space-4); padding-right: 36px; }
.kisi-kart__bas h3 { font-family: var(--us-font-display); font-weight: 800; font-size: 21px; margin: 0 0 3px; }
.kisi-kart__avatar { width: 56px; height: 56px; font-size: 19px; flex: none; }
.kisi-kart__sure { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--us-text-muted); }
.kisi-kart__sure svg { width: 14px; height: 14px; }
.kisi-kart__bos { color: var(--us-text-faint); margin: 8px 0; }
.kisi-kart .meta-row .v a { color: var(--us-blue-700); word-break: break-all; }

/* Yönetim paneli kısayol şeridi */
.admin-kisayol { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--us-space-4); }
.admin-kisayol a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border-radius: var(--us-radius-pill);
  background: var(--us-white);
  border: 1px solid var(--us-border-subtle);
  color: var(--us-text-body);
  font-size: 13.5px; font-weight: 600;
  text-decoration: none;
  box-shadow: var(--us-shadow-sm);
}
.admin-kisayol a:hover { border-color: var(--us-blue-100); color: var(--us-blue-700); background: var(--us-blue-50); }
.admin-kisayol svg { width: 16px; height: 16px; }
.admin-kisayol .sayi {
  min-width: 20px; padding: 1px 6px; border-radius: 999px;
  background: var(--us-accent-yellow); color: var(--us-dark-brown);
  font-size: 11.5px; font-weight: 800; text-align: center;
}
.admin-kisayol .sayi:empty, .admin-kisayol .sayi[data-bos] { display: none; }
.stat-chip.is-warn b { color: var(--us-yellow-700); }
tr.is-onay td { background: var(--us-yellow-50); }
tr.is-davet td { background: rgba(49, 175, 217, 0.05); }

/* Aidat: bakiye + IBAN */
.aidat-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--us-space-5); align-items: start; }
.bakiye-kart { text-align: center; padding: var(--us-space-6) var(--us-space-5); }
.bakiye-kart .eyebrow { display: block; margin-bottom: 8px; }
.bakiye-tutar { font-family: var(--us-font-display); font-weight: 900; font-size: 44px; letter-spacing: -1px; line-height: 1.1; color: var(--us-dark-brown); }
.bakiye-tutar.is-sifir { color: var(--us-success); }
.bakiye-alt { color: var(--us-text-muted); font-size: 13.5px; margin-top: 8px; }
/* Aidat kartındaki tahakkuk listesi (tutar, açıklama, tarih, durum) */
.aidat-sol { display: flex; flex-direction: column; gap: var(--us-space-5); min-width: 0; }
.tahakkuk-liste { list-style: none; margin: 0; padding: 0; text-align: left; border-top: 1px solid rgba(63, 50, 50, 0.12); }
.tahakkuk-liste li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(63, 50, 50, 0.08); }
.tahakkuk-liste li:last-child { border-bottom: 0; padding-bottom: 0; }
.tahakkuk-liste .t-bilgi { flex: 1; min-width: 0; }
.tahakkuk-liste .t-aciklama { display: block; font-size: 14px; font-weight: 600; color: var(--us-text-body); }
.tahakkuk-liste .t-tarih { display: block; font-size: 12.5px; color: var(--us-text-muted); margin-top: 2px; }
.tahakkuk-liste .t-tutar { font-weight: 700; white-space: nowrap; color: var(--us-dark-brown); }
.t-durum { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.t-durum.is-odendi { background: rgba(46, 125, 50, 0.12); color: var(--us-success); }
.t-durum.is-odenmedi { background: rgba(198, 40, 40, 0.10); color: var(--us-danger); }
.iban-kutu {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--us-bg-shade, var(--us-light-gray));
  border: 1px dashed rgba(63, 50, 50, 0.2);
  border-radius: var(--us-radius-md);
  padding: 14px 16px;
  margin: 12px 0;
}
.iban-kutu code { font-family: var(--us-font-mono); font-size: 17px; font-weight: 700; letter-spacing: 1px; flex: 1; min-width: 220px; word-break: break-all; color: var(--us-dark-brown); }
.adim-liste { margin: 14px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.7; color: var(--us-text-muted); }
.adim-liste b { color: var(--us-text-body); }

/* Talepler */
.talep-kart { display: flex; flex-direction: column; gap: 6px; }
.talep-kart .cagri-head { align-items: flex-start; }
.talep-yanit { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--us-border-subtle); }
.talep-yanit .field { flex: 1; min-width: 200px; }
.sekme-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--us-space-4); }
.sekme-bar button {
  border: 1px solid var(--us-border-subtle); background: var(--us-white);
  padding: 7px 14px; border-radius: var(--us-radius-pill);
  font: 600 13.5px var(--us-font-body, inherit); color: var(--us-text-muted); cursor: pointer;
}
.sekme-bar button.is-active { background: var(--us-blue-50); border-color: var(--us-blue-100); color: var(--us-blue-700); }
.sekme-bar .tab-count { margin-left: 4px; opacity: .8; }

/* Blog: yönetici karar çubuğu + site önizlemesi */
.blog-karar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end;
  margin-top: 16px; padding: 14px;
  border-radius: var(--us-radius-md);
  background: var(--us-blue-50);
  border: 1px solid var(--us-blue-100);
}
.blog-karar .field { flex: 1 1 260px; }
.blog-karar .us-btn { white-space: nowrap; }
.blog-karar__baslik { flex-basis: 100%; font-family: var(--us-font-display); font-weight: 800; font-size: 14px; color: var(--us-text-body); }
.site-onizleme-cerceve {
  width: 100%; height: 78vh; min-height: 520px;
  border: 1px solid var(--us-border-subtle);
  border-radius: var(--us-radius-md);
  background: #fff;
  box-shadow: var(--us-shadow-sm);
}
.onizleme-cihaz { display: inline-flex; gap: 4px; }
.onizleme-cihaz button { border: 1px solid var(--us-border-subtle); background: var(--us-white); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.onizleme-cihaz button.is-active { background: var(--us-blue-50); border-color: var(--us-blue-100); color: var(--us-blue-700); }
.site-onizleme-sar { display: flex; justify-content: center; background: var(--us-light-gray); border-radius: var(--us-radius-md); padding: 10px; }
.site-onizleme-sar.is-mobil .site-onizleme-cerceve { width: 390px; }

/* Rehber tablosu */
.rehber-tablo td { vertical-align: top; }
.rehber-tablo .em a { color: var(--us-text-muted); }

@media (max-width: 860px) {
  .aidat-grid { grid-template-columns: 1fr; }
  .site-onizleme-sar.is-mobil .site-onizleme-cerceve { width: 100%; }
}
.sekme-bar .tab-count:empty { display: none; }

/* Takımım */
.takim-tablo .cell-user .us-badge { margin-left: 2px; }
.takim-unvan { color: var(--us-text-muted); }
.takim-eposta { color: var(--us-text-muted); text-decoration: none; word-break: break-all; }
.takim-eposta:hover { color: var(--us-blue-700); text-decoration: underline; }
/* Telefonda e-posta sütunu gizlenir (kişi kartında ve "Takıma e-posta"da var), tablo kaymaz */
@media (max-width: 560px) {
  table.members.takim-tablo { min-width: 0; }
  .takim-tablo th:nth-child(3), .takim-tablo td:nth-child(3) { display: none; }
  .takim-tablo td { padding: 8px 10px; }
  .takim-tablo .us-badge { white-space: normal; }
}

/* Fotoğraflı avatar (her yerde) */
.avatar.has-foto { padding: 0; overflow: hidden; background: var(--us-light-gray); }
.avatar.has-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* ── Üyeler (Excel görünümü) ─────────────────────────────── */
.uye-sayac { font-size: 13.5px; color: var(--us-text-muted); }
.uye-sheet { max-height: none; }
.uye-sheet table.sheet { min-width: 1080px; }
.uye-sheet .sheet td { padding: 5px 10px; white-space: nowrap; font-size: 12.5px; }
.uye-sheet .sheet th { padding: 7px 10px; }
.uye-sheet .row-actions { gap: 4px; }
.uye-sheet .icon-btn { width: 24px; height: 24px; }
.uye-sheet .icon-btn svg { width: 14px; height: 14px; }
.icon-btn.onayla:hover { color: var(--us-success); border-color: var(--us-success); }
.uye-ad {
  all: unset; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--us-font-display); font-weight: 700; font-size: 13px;
}
.uye-ad:hover span, .uye-ad:focus-visible span { color: var(--us-blue-700); text-decoration: underline; }
.uye-ad__ok { width: 14px; height: 14px; color: var(--us-text-faint); transition: transform var(--us-duration-fast); }
tr.is-acik .uye-ad__ok { transform: rotate(180deg); }
tr.is-acik td { background: var(--us-blue-50); }
.avatar.avatar-xs { width: 22px; height: 22px; font-size: 9.5px; flex: none; background: var(--us-blue-50); color: var(--us-blue-700); }
.avatar.avatar-lg { width: 72px; height: 72px; font-size: 22px; background: var(--us-blue-50); color: var(--us-blue-700); }
/* Durum: rozet değil, sade yazı + küçük nokta */
.durum-yazi { display: inline-flex; align-items: center; gap: 6px; color: var(--us-text-body); }
.durum-yazi::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--us-text-faint); flex: none; }
.durum-aktif::before { background: #2e7d32; }
.durum-onay::before { background: #c9941a; }
.durum-davet::before { background: var(--us-primary-blue); }
.durum-red::before { background: #c62828; }
/* Satırın altında açılan detay */
.uye-sheet tr.uye-detay-satir td { padding: 0; white-space: normal; background: var(--us-white); }
.uye-sheet tr.uye-detay-satir:hover { background: var(--us-white); }
.uye-detay { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 12px 16px 14px 50px; border-left: 3px solid var(--us-primary-blue); }
.uye-detay__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; }
.uye-detay__alan { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.uye-detay__alan.is-genis { grid-column: 1 / -1; }
.uye-detay__alan .k { font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--us-text-faint); }
.uye-detay__alan .v { font-size: 13px; color: var(--us-text-body); overflow-wrap: anywhere; }
.uye-detay__alan .v a { color: var(--us-blue-700); }
.uye-detay__eylem { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 700px) { .uye-detay { grid-template-columns: 1fr; padding-left: 16px; } }

/* ── Görevler (Excel görünümü + açılır detay) ────────────── */
.gorev-sheet { max-height: none; }
.gorev-sheet .sheet td { padding: 5px 10px; font-size: 12.5px; }
.gorev-sheet .sheet th { padding: 7px 10px; }
.gorev-sheet tr.gorev-satir.is-acilir { cursor: pointer; }
.gorev-sheet tr.gorev-satir.is-acilir:focus-visible { outline: 2px solid var(--us-primary-blue); outline-offset: -2px; }
.gorev-sheet tr.is-done .cell-name { color: var(--us-text-faint); text-decoration: line-through; }
.gorev-sheet tr.is-acik td { background: var(--us-blue-50); }
.gorev-ok { width: 13px; height: 13px; margin-left: 6px; vertical-align: -2px; color: var(--us-text-faint); transition: transform var(--us-duration-fast); }
tr.is-acik .gorev-ok { transform: rotate(180deg); }
.gorev-kisi { display: inline-flex; align-items: center; gap: 6px; }
.gdurum-acik::before { background: var(--us-primary-blue); }
.gdurum-devam::before { background: #c9941a; }
.gdurum-tamam::before { background: #2e7d32; }
.gorev-sheet tr.gorev-detay-satir td { padding: 0; background: var(--us-white); }
.gorev-sheet tr.gorev-detay-satir:hover { background: var(--us-white); }
.gorev-detay {
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.4fr);
  gap: 14px 24px; padding: 14px 16px 16px 30px;
  border-left: 3px solid var(--us-primary-blue);
}
.gorev-detay .k { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--us-text-faint); margin-bottom: 3px; }
.gorev-detay__bilgi { display: flex; flex-direction: column; gap: 9px; }
.gorev-detay__bilgi .v { font-size: 13px; }
.gorev-detay__bilgi .gorev-durum { max-width: 200px; padding: 6px 10px; font-size: 13px; }
.gorev-detay__paylas { display: flex; gap: 6px; }
.gorev-not { font-size: 13px; padding: 7px 10px; border-radius: var(--us-radius-sm); background: var(--us-light-gray); margin-bottom: 6px; }
.gorev-not div { margin-top: 2px; white-space: normal; }
.gorev-not-ekle, .gorev-alt-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.gorev-not-ekle .us-input { flex: 1; min-width: 180px; padding: 7px 10px; font-size: 13px; }
.gorev-detay__alt { grid-column: 1 / -1; border-top: 1px dashed var(--us-border-subtle); padding-top: 12px; }
.gorev-alt-form .us-input { padding: 7px 10px; font-size: 13px; width: auto; }
.gorev-alt-form [data-alan="alt-baslik"] { flex: 1; min-width: 180px; }
@media (max-width: 760px) { .gorev-detay { grid-template-columns: 1fr; padding-left: 16px; } }

/* ── Gönüllü ol: başlık + etkinlik bilgi satırları ───────── */
.sayfa-baslik { margin-bottom: var(--us-space-5); }
.sayfa-baslik h2 { font-family: var(--us-font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.4px; margin: 0 0 6px; }
.sayfa-baslik p { margin: 0; max-width: 720px; font-size: 14.5px; line-height: 1.6; color: var(--us-text-muted); }
.cagri-baslik { font-size: 17px; }
.cagri-bilgi { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 8px 0 2px; }
.cagri-bilgi div { display: flex; flex-direction: column; gap: 1px; }
.cagri-bilgi dt { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--us-text-faint); }
.cagri-bilgi dt svg { width: 13px; height: 13px; }
.cagri-bilgi dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--us-text-body); }

/* Görev tablosu: yazılar biraz daha büyük, kalın değil */
.gorev-sheet .sheet td { font-size: 14px; padding: 7px 12px; }
.gorev-sheet .sheet .cell-name { font-family: var(--us-font-body); font-weight: 400; }
.gorev-sheet .sheet .cell-faint { font-size: 13.5px; }
.gorev-sheet .kisi-link { font-weight: 400; }
.gorev-sheet .gorev-detay__bilgi .v, .gorev-sheet .gorev-not { font-size: 14px; }
.arsiv-ipucu { display: block; font-size: 11.5px; color: var(--us-text-faint); margin-top: 1px; padding-left: 13px; }

/* Tamamlanan görevler (kişi detayı, profil) */
.tamam-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.tamam-liste li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.tamam-liste li svg { width: 14px; height: 14px; color: #2e7d32; flex: none; align-self: center; }
.tamam-liste__alt { font-size: 12px; color: var(--us-text-faint); }


/* ============================================================
   Portal iskeleti — sol menü (js/portal.js) + içerik alanı
   Üst çubuğu olan her sayfa bu düzene geçer. :has() sayesinde
   yer, menü JS ile eklenmeden önce ayrılır; sayfa kaymaz.
   ============================================================ */
body:has(> header.app-bar) { padding-left: var(--us-nav-width); }
body:has(> header.app-bar) .app-bar__logo { display: none; }
body:has(> header.app-bar) .u-container { max-width: 1280px; padding: 0 28px; margin: 0; }

.pnav {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--us-nav-width);
  background: var(--us-white);
  border-right: 1px solid var(--us-border);
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pnav__logo {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid var(--us-border);
  flex: none;
}
.pnav__logo { gap: 10px; color: var(--us-text-body); text-decoration: none; }
.pnav__logo:hover { color: var(--us-text-body); }
.pnav__logo img { width: 32px; height: auto; display: block; }
.pnav__marka { display: flex; flex-direction: column; line-height: 1.1; }
.pnav__marka b { font-family: var(--us-font-display); font-weight: 700; font-size: 16px; }
.pnav__marka small { font-size: 11.5px; color: var(--us-text-muted); letter-spacing: 0.3px; }

.pnav__ara {
  position: relative;
  display: block;
  margin: 14px 14px 6px;
}
.pnav__ara svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--us-text-faint);
  pointer-events: none;
}
.pnav__ara input {
  width: 100%;
  padding: 8px 10px 8px 32px;
  border: 1px solid var(--us-border);
  border-radius: var(--us-radius-sm);
  background: var(--us-surface-page);
  font: inherit;
  font-size: 13.5px;
  color: var(--us-text-body);
}
.pnav__ara input:focus {
  outline: none;
  background: var(--us-white);
  border-color: var(--us-blue-700);
  box-shadow: 0 0 0 3px var(--us-focus-ring);
}

.pnav__liste { padding: 4px 10px 12px; flex: 1; }
.pnav__grup + .pnav__grup { margin-top: 14px; }
.pnav__baslik {
  padding: 6px 10px 4px;
  font-family: var(--us-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--us-text-faint);
}
.pnav__oge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  margin: 1px 0;
  border-radius: var(--us-radius-sm);
  color: var(--us-text-body);
  font-family: var(--us-font-display);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.25;
  text-decoration: none;
  transition: background var(--us-duration-fast), color var(--us-duration-fast);
}
.pnav__oge svg { width: 18px; height: 18px; flex: none; color: var(--us-text-muted); }
.pnav__oge:hover { background: var(--us-surface-hover); color: var(--us-text-body); }
.pnav__oge:focus-visible { outline: 2px solid var(--us-blue-700); outline-offset: -2px; }
.pnav__oge.is-active {
  background: var(--us-blue-50);
  color: var(--us-blue-700);
  font-weight: 600;
}
.pnav__oge.is-active svg { color: var(--us-blue-700); }
.pnav__oge.is-active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--us-blue-700);
}
.pnav__alt {
  padding: 10px;
  border-top: 1px solid var(--us-border);
  flex: none;
}
.pnav__oge.is-dis { font-size: 13.5px; color: var(--us-text-muted); }
.pnav__oge .pnav__dis { width: 14px; height: 14px; margin-left: auto; color: var(--us-text-faint); }

.pnav-perde { display: none; }

/* Emülatör açıkken görünür uyarı */
.emu-etiket {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 100;
  padding: 6px 14px;
  border-radius: var(--us-radius-pill);
  background: #7A2E26;
  color: #fff;
  font-family: var(--us-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  box-shadow: var(--us-shadow-md);
}
.emu-etiket:hover { color: #fff; background: #5E221C; }

/* ── Tablet / telefon: menü çekmeceye dönüşür ──────────────── */
@media (max-width: 1024px) {
  body:has(> header.app-bar) { padding-left: 0; }
  body:has(> header.app-bar) .u-container { padding: 0 16px; }
  body:has(> header.app-bar) .app-bar__logo { display: block; height: 28px; }
  .app-bar__inner { padding: 8px 16px; gap: 10px; }
  .app-bar__menu { display: grid; }

  .pnav {
    transform: translateX(-100%);
    transition: transform 0.2s var(--us-ease-out);
    box-shadow: none;
    width: min(300px, 86vw);
  }
  body.pnav-acik .pnav { transform: none; box-shadow: var(--us-shadow-lg); }
  body.pnav-acik .pnav-perde {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(40, 32, 32, 0.32);
  }
  body.pnav-acik { overflow: hidden; }
}
@media (max-width: 560px) {
  body:has(> header.app-bar) .app-bar__logo { display: none; }
  .app-bar__title { font-size: 16px; }
  .app-bar #logoutBtn { padding: 6px 9px; font-size: 0; gap: 0; }
  .app-bar #logoutBtn svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .pnav { transition: none; }
}

/* ── Özel yetkiler (yetkiler.html) ─────────────────────────── */
.yetki-giris { margin: -6px 0 var(--us-space-5); max-width: 720px; font-size: 14px; line-height: 1.55; color: var(--us-text-muted); }
.yetki-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.yetki-pick__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--us-border-input);
  border-radius: var(--us-radius-sm);
  background: var(--us-white);
  cursor: pointer;
}
.yetki-pick__item:has(input:checked) { border-color: var(--us-primary-blue); background: var(--us-blue-50, #EEF7FB); }
.yetki-pick__item.is-pasif { opacity: .55; cursor: not-allowed; }
.yetki-pick__item input[type="checkbox"] { width: 16px; height: 16px; flex: none; margin-top: 2px; accent-color: var(--us-primary-blue); cursor: inherit; }
.yetki-pick__metin { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.yetki-pick__metin b { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.yetki-pick__metin b svg { width: 15px; height: 15px; color: var(--us-text-muted); }
.yetki-pick__metin small { font-size: 12px; line-height: 1.45; color: var(--us-text-faint); }
.yetki-pick__metin em { font-style: normal; color: var(--us-success); }
.yetki-satir { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.yetki-satir__govde { flex: 1 1 260px; min-width: 0; }
.yetki-satir__govde > b { font-family: var(--us-font-display); font-size: 15px; }
.yetki-satir__kartlar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.yetki-satir__kartlar .us-badge { display: inline-flex; align-items: center; gap: 5px; }
.yetki-satir__kartlar .us-badge svg { width: 12px; height: 12px; }
.yetki-satir__eylem { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 640px) { .yetki-pick { grid-template-columns: 1fr; } }

/* ── Dernek takvimi (takvim.html) ──────────────────────────────
   Organizasyon sitesindeki takvimle aynı görünüm; veri takvim/{kod}. */
.takvim-arac { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: var(--us-space-4); }
.takvim-arac h2 { font-family: var(--us-font-display); font-weight: 800; font-size: 22px; margin: 0 6px; min-width: 150px; }
.takvim-arac .spacer { flex: 1; }
.takvim-arac .icon-btn { width: 34px; height: 34px; }
.takvim { padding: 0; overflow: hidden; }
.takvim-bas { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--us-brown-50); border-bottom: 1px solid var(--us-border); }
.takvim-bas div { padding: 8px 10px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--us-text-muted); }
.takvim-hafta { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--us-border-subtle); }
.takvim-hafta:last-child { border-bottom: none; }
.takvim-gun { min-height: 108px; padding: 6px 6px 8px; border-right: 1px solid var(--us-border-subtle); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.takvim-gun:last-child { border-right: none; }
.takvim-gun.is-disari { background: rgba(63, 50, 50, 0.025); }
.takvim-gun.is-disari .takvim-gun__no { color: var(--us-text-faint); }
.takvim-gun.is-haftasonu { background: rgba(42, 155, 196, 0.03); }
.takvim-gun__no { font-family: var(--us-font-display); font-weight: 700; font-size: 13px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.takvim-gun.is-bugun .takvim-gun__no { background: var(--us-accent-yellow); color: var(--us-dark-brown); }
.takvim-not { font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--renk); background: color-mix(in srgb, var(--renk) 10%, white); border-radius: 4px; padding: 1px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.takvim-oge {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: 4px;
  color: var(--us-text-body); border-left: 3px solid var(--renk); background: color-mix(in srgb, var(--renk) 20%, white);
  font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.takvim-oge:hover { background: color-mix(in srgb, var(--renk) 32%, white); }
.takvim-oge:focus-visible { outline: 2px solid var(--us-blue-700); outline-offset: 1px; }
.takvim-oge.is-iptal { text-decoration: line-through; opacity: .55; }
.takvim-oge.is-tamamlandi { opacity: .72; }
.takvim-fazla { font-size: 11px; color: var(--us-text-muted); padding-left: 4px; }
/* Portaldan girilen özel gün: tıklanabilir şerit */
button.takvim-not { border: 0; font-family: inherit; text-align: left; cursor: pointer; width: 100%; }
button.takvim-not:hover { background: color-mix(in srgb, var(--renk) 20%, white); }
/* Yetkili boş güne tıklayıp kayıt ekler */
.takvim.is-yazar .takvim-gun { cursor: pointer; }
.takvim.is-yazar .takvim-gun:hover { background: rgba(42, 155, 196, 0.06); }
.takvim-tur { font-size: 11px; font-weight: 700; color: var(--renk); background: color-mix(in srgb, var(--renk) 12%, white); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.renk-sec { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.renk-sec [data-renk] { all: unset; box-sizing: border-box; width: 28px; height: 28px; border-radius: 50%; background: var(--r); cursor: pointer; }
.renk-sec [data-renk]:focus-visible, .renk-ozel:focus-within { outline: 2px solid var(--us-blue-700); outline-offset: 2px; }
.renk-sec .is-secili { box-shadow: 0 0 0 2px var(--us-white), 0 0 0 4px var(--us-text-body); }
.renk-ozel { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed var(--us-border); color: var(--us-text-muted); cursor: pointer; overflow: hidden; }
.renk-ozel svg { width: 14px; height: 14px; pointer-events: none; }
.renk-ozel input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.us-btn.is-tehlike { color: var(--us-danger); border-color: var(--us-danger); }
.takvim-kart { border-left: 3px solid var(--renk); cursor: pointer; }
.takvim-kart:hover { border-color: var(--us-blue-100); border-left-color: var(--renk); }
@media (max-width: 760px) {
  .takvim-gun { min-height: 70px; padding: 4px 3px; }
  .takvim-oge { font-size: 10.5px; padding: 2px 4px; }
  .takvim-oge .saat { display: none; }
}
