/* ============================================================
   Topluluk Platformu — sade (clean) tasarım
   Marka rengi (--accent) panelden gelir; geri kalan her şey nötr.
   ============================================================ */

:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --border: #e6e4df;
  --border-strong: #d6d3cc;
  --text: #1d1d1d;
  --text-2: #4a4a4a;
  --muted: #727272;
  --muted-2: #9b9b9b;
  --link: #2f5bd3;
  --danger: #c4372f;
  --danger-soft: #fdf0ef;
  --success: #1f7a4d;
  --success-soft: #eef8f2;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 25, 20, .04), 0 8px 24px rgba(30, 25, 20, .05);
  --container: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Panelden gelmezse yedek renkler */
  --accent: #e07a5f;
  --accent-ink: #ffffff;
  --accent-soft: #f8e4de;
  --accent-tint: #fdf6f4;
  --accent-hover: #ce7058;
  --accent-text: #65372b;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--accent-tint);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--text); }
p { margin: 0; }
code { font-size: .9em; background: #f1efea; padding: .1em .35em; border-radius: 4px; }

.icon { flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ---------- Üst bar ---------- */

.topbar {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  position: sticky;
  top: 0;
  z-index: 20;
}

/* Masaüstünde tek satır: marka | sekmeler | hesap */
.topbar-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "brand tabs actions";
  align-items: center;
  gap: 16px;
  height: 68px;
}
.topbar-inner > .brand { grid-area: brand; }
.topbar-inner > .tabs { grid-area: tabs; }
.topbar-inner > .topbar-actions { grid-area: actions; justify-self: end; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}
.brand-logo-lg { width: 56px; height: 56px; border-radius: 12px; }

.brand-initials {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
}
.brand-logo-lg.brand-initials { font-size: 20px; }

.brand-name {
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* Hesap menüsü */
.menu { position: relative; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  border-radius: 50%;
  display: block;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 260px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  padding: 6px;
}
.menu-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.menu-head span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.menu-item:hover { background: var(--bg); text-decoration: none; }

/* Sekmeler: hap (pill) biçiminde, seçili olan marka renginin açık tonuyla */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .035);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.tab:hover { color: var(--text); background: rgba(255, 255, 255, .7); text-decoration: none; }
.tab.is-active {
  background: var(--card);
  color: var(--accent-text);
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), inset 0 -2px 0 var(--accent);
}

/* ---------- Sayfa ---------- */

.page { padding-top: 24px; padding-bottom: 48px; flex: 1; }

.card {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.layout-admin {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* Hoş geldin kartı */
.welcome-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.welcome-title { font-size: 18px; margin-bottom: 2px; }

/* Boş durum */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty-state h1, .empty-state h2 { font-size: 19px; }
.empty-state p { max-width: 440px; }
.empty-state .btn { margin-top: 10px; }
.empty-state-lg { padding: 72px 24px; max-width: 720px; margin: 0 auto; }
.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 6px;
}

.admin-note {
  font-size: 13px;
  color: var(--text-2);
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 8px;
}

/* ---------- Topluluk kutusu (kenar) ---------- */

.group-card { overflow: hidden; position: sticky; top: 92px; }

/* İnce kapak bandı; kapak yoksa markanın renk geçişi */
.group-banner, .about-banner {
  background: linear-gradient(120deg, var(--accent-soft) 0%, var(--accent) 100%);
  overflow: hidden;
}
.group-banner { aspect-ratio: 3 / 1; }
.group-banner img, .about-banner img { width: 100%; height: 100%; object-fit: cover; }

.group-body {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

/* Kapak bandının üstüne binen logo */
.group-logo {
  width: 72px;
  height: 72px;
  margin-top: -36px;
  margin-bottom: 6px;
  border-radius: 20px;
  border: 4px solid var(--card);
  background: var(--card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  overflow: hidden;
  flex: none;
}
.group-logo img { width: 100%; height: 100%; object-fit: cover; }
.group-logo .brand-initials { width: 100%; height: 100%; font-size: 22px; border-radius: 0; }

.group-name { font-size: 18px; }
.group-host { color: var(--muted); font-size: 13px; }
.group-tagline { color: var(--text-2); font-size: 14px; margin-top: 2px; }

/* Küçük bilgi hapları */
.chips {
  list-style: none;
  padding: 0;
  margin: 8px 0 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  color: var(--text-2);
  font-size: 13px;
}
.chip strong { color: var(--text); }
.dot-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fb36d;
  box-shadow: 0 0 0 3px rgba(47, 179, 109, .18);
}

.group-owner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 0 14px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
.group-owner small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Hakkında ---------- */

.about-card { overflow: hidden; }
.about-banner { aspect-ratio: 21 / 8; }
.about-body { padding: 0 32px 32px; }
.about-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 4px; }
.about-logo { width: 96px; height: 96px; margin-top: -48px; border-radius: 26px; margin-bottom: 0; }
.about-logo .brand-initials { font-size: 30px; }
.about-head > div:last-child { padding-bottom: 4px; min-width: 0; }
.about-title { font-size: 26px; }
.about-tagline { color: var(--muted); margin-top: 2px; }
.about-chips { justify-content: flex-start; margin: 18px 0 22px; }
.prose { color: var(--text-2); font-size: 16px; line-height: 1.75; }
.prose p + p { margin-top: 14px; }
.about-cta { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Butonlar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline { background: var(--card); border-color: var(--border-strong); color: var(--text-2); }
.btn-outline:hover { border-color: var(--muted-2); color: var(--text); }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Avatar ---------- */

.avatar { border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initials {
  display: inline-grid;
  place-items: center;
  background: #e9e6df;
  color: var(--text-2);
  font-weight: 600;
}

/* ---------- Uyarılar ---------- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert .icon { margin-top: 2px; }
.alert-success { background: var(--success-soft); color: var(--success); border: 1px solid #cfe9da; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #f3d3d0; }

/* ---------- Formlar ---------- */

.form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-weight: 600; font-size: 14px; color: var(--text); }
.field-help { font-size: 13px; color: var(--muted); }
.field-error { font-size: 13px; color: var(--danger); }

.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  font: inherit;
  font-size: 16px; /* telefonda otomatik yakınlaştırmayı engeller */
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { resize: vertical; line-height: 1.55; }
.input:focus {
  outline: none;
  border-color: var(--text-2);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}
.has-error .input { border-color: var(--danger); }

.input-wrap { position: relative; display: block; }
.input-wrap .input { padding-right: 46px; }
.input-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  background: none;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.input-toggle:hover { color: var(--text); background: var(--bg); }

.char-counter { font-size: 12px; color: var(--muted-2); align-self: flex-end; margin-top: -2px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--text); }

.fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.fieldset + .fieldset { margin-top: 10px; }
.fieldset legend { font-weight: 700; font-size: 16px; padding: 0; margin-bottom: 4px; }

/* ---------- Yönetim ---------- */

.admin-nav { padding: 10px; position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 600;
  padding: 6px 10px 8px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-weight: 500;
}
.admin-nav-item:hover { background: var(--bg); text-decoration: none; color: var(--text); }
.admin-nav-item.is-active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.admin-nav-back { margin-top: 8px; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding-top: 14px; }

.admin-head { padding: 4px 2px 4px; }
.admin-head h1 { font-size: 22px; margin-bottom: 4px; }

.form-card { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.form-card-title { font-size: 16px; }

.upload-row { display: flex; gap: 18px; align-items: flex-start; }
.upload-row + .upload-row { border-top: 1px solid var(--border); padding-top: 18px; }
.upload-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.upload-preview {
  flex: none;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  color: var(--muted-2);
  overflow: hidden;
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-logo { width: 88px; height: 88px; border-radius: 14px; }
.upload-preview-cover { width: 176px; aspect-ratio: 16 / 9; border-radius: 10px; }
.upload-row.has-error .upload-preview { border-color: var(--danger); }

.file-input { font: inherit; font-size: 14px; color: var(--text-2); max-width: 100%; }
.file-input::file-selector-button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  margin-right: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.color-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.color-input {
  width: 48px;
  height: 44px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
}
.input-hex { width: 120px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: lowercase; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--border-strong);
  cursor: pointer;
}
.swatch:hover { box-shadow: 0 0 0 2px var(--text-2); }

.save-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 0;
  background: linear-gradient(to top, var(--accent-tint) 70%, transparent);
}

/* ---------- Sade sayfalar (giriş, kurulum) ---------- */

body.bare { background: var(--accent-tint); }
.bare-main {
  flex: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 48px 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.bare-main:has(.bare-card-wide) { max-width: 680px; }
.bare-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text);
  margin-bottom: 24px;
}
.bare-brand:hover { text-decoration: none; }
.bare-brand .brand-name { font-size: 20px; }
.bare-card { padding: 28px; }
.bare-title { font-size: 22px; margin-bottom: 4px; }
.bare-sub { margin-bottom: 20px; }

.checklist { list-style: none; padding: 14px 16px; margin: 0 0 20px; background: var(--bg); border-radius: var(--radius-sm); display: grid; gap: 6px; font-size: 14px; }
.checklist li { display: flex; align-items: center; gap: 8px; }
.checklist .ok { color: var(--success); }
.checklist .fail { color: var(--danger); font-weight: 600; }

/* ---------- Alt bilgi ---------- */

.site-footer { border-top: 1px solid var(--border); background: var(--card); padding: 22px 0 28px; font-size: 13px; color: var(--muted); }
.site-footer.is-compact { background: transparent; border-top: 0; padding-top: 0; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; }
.site-footer.is-compact .footer-inner { align-items: center; text-align: center; }
.footer-text { color: var(--text-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ---------- Telefon ---------- */

@media (max-width: 900px) {
  .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "tabs tabs";
    height: auto;
    row-gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .topbar-inner > .tabs { justify-self: stretch; max-width: 100%; justify-content: space-between; }
  .tab { padding: 6px 11px; font-size: 14px; }
  .layout-sidebar { grid-template-columns: minmax(0, 1fr); }
  .layout-sidebar > .group-card { position: static; }
  .layout-admin { grid-template-columns: minmax(0, 1fr); }
  .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; padding: 6px; }
  .admin-nav-title { display: none; }
  .admin-nav-back { margin-top: 0; border-top: 0; padding-top: 10px; border-radius: var(--radius-sm); }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .brand-name { font-size: 16px; }
  .page { padding-top: 16px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .about-body { padding: 0 20px 24px; }
  .about-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .about-logo { width: 80px; height: 80px; margin-top: -40px; border-radius: 22px; }
  .about-title { font-size: 22px; }
  .tabs { gap: 0; }
  .tab { padding: 6px 9px; font-size: 13.5px; }
  .form-card { padding: 18px 16px 20px; }
  .bare-card { padding: 22px 18px; }
  .bare-main { padding-top: 32px; }
  .upload-row { flex-direction: column; }
  .upload-preview-cover { width: 100%; }
  .empty-state-lg { padding: 48px 20px; }
  .save-bar .btn { flex: 1; }
}

/* ============================================================
   Modül 2: kayıt, profil, e-posta yönetimi
   ============================================================ */

select.input { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23727272' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.nowrap { white-space: nowrap; }

.form-card-subtitle { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--border); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.field-narrow { max-width: 280px; }
.grid-top { align-items: start; }

/* Aç/kapa satırı */
.switch-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch-row > span { display: flex; flex-direction: column; gap: 2px; }
.switch-row input[type=checkbox] {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 42px; height: 24px; margin: 0; border-radius: 999px;
  background: var(--border-strong); position: relative; cursor: pointer; transition: background-color .15s;
}
.switch-row input[type=checkbox]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s;
}
.switch-row input[type=checkbox]:checked { background: var(--accent); }
.switch-row input[type=checkbox]:checked::after { transform: translateX(18px); }
.switch-row input[type=checkbox]:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* İstatistik kutuları */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat strong { font-size: 20px; }
.stat small { font-size: 13px; color: var(--muted); font-weight: 500; }

/* Tablo */
.table-card { padding: 20px 0 6px; }
.table-card .form-card-title { padding: 0 24px 10px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 8px 24px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px 24px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table-note { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--text-2); }
.badge-sent { background: var(--success-soft); color: var(--success); }
.badge-failed { background: var(--danger-soft); color: var(--danger); }
.badge-pending, .badge-sending { background: var(--accent-soft); color: var(--accent-text); }

/* Telefon alanı: +90 öneki */
.input-group { display: flex; align-items: stretch; }
.input-prefix {
  display: flex; align-items: center; padding: 0 12px; font-size: 16px; color: var(--text-2);
  background: var(--bg); border: 1px solid var(--border-strong); border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.input-group .input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Onay kutuları (kayıt) */
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.consent a { color: var(--text); text-decoration: underline; }
.has-error.consent { color: var(--danger); }

/* Botların göremediği tuzak alan */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.bare-links { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.bare-links a { font-weight: 600; }
.form-row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.form-row-between a { font-size: 13px; }

/* Profil */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head .avatar { box-shadow: 0 0 0 4px var(--card), 0 4px 14px rgba(0,0,0,.08); }
.profile-head h1 { font-size: 22px; }
.readonly-value { padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); color: var(--text-2); font-size: 15px; overflow-wrap: anywhere; }

/* Topbar: misafir butonları */
.guest-actions { display: flex; gap: 8px; }

@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .form-actions .btn { flex: 1; }
  .table th, .table td { padding-left: 16px; padding-right: 16px; }
  .table-card .form-card-title { padding: 0 16px 10px; }
  .guest-actions .btn-outline { display: none; }
}
.profile-page { max-width: 760px; margin: 0 auto; width: 100%; }
.upload-preview-avatar { width: 88px; height: 88px; border-radius: 50%; }

/* ============================================================
   Modül 3: topluluk akışı
   ============================================================ */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.narrow-page { max-width: 760px; margin: 0 auto; width: 100%; }
.back-link { color: var(--muted); font-size: 14px; font-weight: 500; align-self: flex-start; }
.back-link:hover { color: var(--text); text-decoration: none; }

.icon-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center; flex: none;
  border: 0; background: none; border-radius: 50%; color: var(--muted); cursor: pointer; font-size: 11px;
}
.icon-btn:hover:not([disabled]) { background: var(--bg); color: var(--text); }
.icon-btn[disabled] { opacity: .3; cursor: default; }
.icon-btn-danger:hover:not([disabled]) { background: var(--danger-soft); color: var(--danger); }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.link-btn:hover { color: var(--danger); text-decoration: underline; }
.menu-item-danger { color: var(--danger); }
.menu-item-danger:hover { background: var(--danger-soft); }

/* Paylaşım kutusu */
.composer { padding: 0; }
.composer-prompt {
  list-style: none; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; cursor: pointer; border-radius: var(--radius);
}
.composer-prompt::-webkit-details-marker { display: none; }
.composer-placeholder {
  flex: 1; padding: 11px 16px; border-radius: 999px; background: var(--bg);
  color: var(--muted); font-size: 15px; transition: background-color .15s;
}
.composer-prompt:hover .composer-placeholder { background: #efede8; }
.composer[open] .composer-prompt { padding-bottom: 6px; }
.composer[open] .composer-placeholder { display: none; }
.composer-form { padding: 6px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.input-title { font-size: 18px; font-weight: 650; border-color: transparent; background: var(--bg); }
.input-body { border-color: transparent; background: var(--bg); min-height: 110px; }
.input-title:focus, .input-body:focus { background: var(--card); }
.composer-extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.composer-current-image { width: 120px; border-radius: 8px; }
.composer-pin { color: var(--text-2); }

/* Kategori hapları */
.filter-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: none; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--card); color: var(--text-2); border: 1px solid rgba(0,0,0,.06); white-space: nowrap;
}
.filter-chip:hover { text-decoration: none; color: var(--text); border-color: var(--border-strong); }
.filter-chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

/* Paylaşım kartı */
.post-card { position: relative; padding: 18px 20px 12px; transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: 0 1px 2px rgba(30,25,20,.05), 0 12px 32px rgba(30,25,20,.09); }
.post-card.is-pinned { box-shadow: inset 3px 0 0 var(--accent), var(--shadow); }
.post-card-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.post-card-link:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.post-meta { display: flex; align-items: center; gap: 12px; position: relative; }
.post-meta-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.post-author { font-weight: 650; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-sub { font-size: 13px; color: var(--muted); }
.post-sub a { color: var(--muted); position: relative; z-index: 2; }
.role-badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text);
}
.pin-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600;
  color: var(--accent-text); background: var(--accent-tint); border: 1px solid var(--accent-soft);
  padding: 3px 9px; border-radius: 999px; flex: none;
}

.post-content { display: flex; gap: 16px; margin-top: 12px; }
.post-text { flex: 1; min-width: 0; }
.post-title { font-size: 18px; line-height: 1.3; margin-bottom: 4px; }
.post-excerpt {
  color: var(--text-2); font-size: 15px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-thumb { position: relative; flex: none; width: 128px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--bg); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.18); }

.post-actions {
  display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 8px;
  border-top: 1px solid var(--border); position: relative; z-index: 2; flex-wrap: wrap;
}
.action-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px;
  border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.action-btn:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.like-form { display: inline-flex; }
.like-btn.is-liked { color: #d4473b; }
.like-btn.is-liked .icon path { fill: currentColor; }
.like-btn.is-busy { opacity: .6; }
.avatar-stack { display: inline-flex; margin-left: 6px; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px var(--card); }
.avatar-stack .avatar + .avatar { margin-left: -4px; }
.post-last { font-size: 13px; color: var(--muted); margin-left: 4px; }

/* Paylaşım detayı */
.post-full { padding: 22px 24px 12px; }
.post-full-title { font-size: 24px; line-height: 1.3; margin: 16px 0 10px; }
.post-body { font-size: 16px; }
.post-body a, .comment-body a { color: var(--link); overflow-wrap: anywhere; }
.post-image { width: 100%; border-radius: 14px; margin-top: 16px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; margin-top: 16px; border-radius: 14px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-menu { margin-left: 4px; }
.post-menu > summary { list-style: none; }
.post-menu > summary::-webkit-details-marker { display: none; }
.post-menu .menu-panel { width: 220px; z-index: 5; }

/* Yorumlar */
.comments { padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.comments-title { font-size: 16px; }
.comment { display: flex; gap: 10px; }
.comment-main { flex: 1; min-width: 0; }
.comment-bubble { background: var(--bg); border-radius: 4px 16px 16px 16px; padding: 10px 14px; }
.comment-author { font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.comment-body { font-size: 15px; color: var(--text-2); }
.comment-body p + p { margin-top: 8px; }
.comment-actions { display: flex; align-items: center; gap: 8px; padding: 2px 6px; }
.comment-time { font-size: 12.5px; color: var(--muted); }
.comment-actions .action-btn { height: 28px; padding: 0 8px; font-size: 13px; }
.comment-actions .action-btn .icon { width: 15px; height: 15px; }
.comment:target .comment-bubble { box-shadow: 0 0 0 2px var(--accent-soft); }
.comment-form { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.comment-form-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.comment-form textarea { min-height: 46px; }

/* Sayfalama */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 8px 0; }
.page-num, .page-link {
  min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 10px;
  border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2);
}
.page-num:hover, .page-link:hover { background: var(--card); text-decoration: none; color: var(--text); }
.page-num.is-current { background: var(--accent); color: var(--accent-ink); }
.page-gap { color: var(--muted); }

/* Yönetim: kategoriler */
.cat-row { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--border); }
.cat-row:last-child { border-bottom: 0; }
.cat-order { display: flex; flex-direction: column; }
.cat-order .icon-btn { width: 26px; height: 20px; border-radius: 6px; }
.cat-edit { display: flex; align-items: center; gap: 12px; flex: 1; flex-wrap: wrap; min-width: 0; }
.cat-edit .input { flex: 1; min-width: 160px; max-width: 320px; }
.cat-count { font-size: 13px; color: var(--muted); min-width: 80px; }
.cat-add { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cat-add .input { flex: 1; min-width: 200px; max-width: 360px; }
.cat-empty { padding: 4px 24px 14px; }

@media (max-width: 640px) {
  .composer-extras { grid-template-columns: minmax(0, 1fr); }
  .post-card { padding: 16px 16px 10px; }
  .post-thumb { width: 92px; }
  .post-title { font-size: 17px; }
  .post-full { padding: 18px 16px 10px; }
  .post-full-title { font-size: 21px; }
  .comments { padding: 18px 16px 20px; }
  .post-last { display: none; }
  .cat-row { padding: 10px 12px; align-items: flex-start; }
}

/* ============================================================
   Modül 4: Sınıf
   ============================================================ */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 24px; margin-bottom: 2px; }
.select-narrow { width: auto; min-width: 140px; }
.btn.is-static { cursor: default; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a92f28; }
.draft-chip {
  display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: #f1efe9; color: var(--text-2); white-space: nowrap; flex: none;
}

/* İlerleme çubuğu */
.progress { position: relative; height: 22px; border-radius: 999px; background: #eeebe5; overflow: hidden; flex: 1; min-width: 80px; }
.progress-bar { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 999px; transition: width .35s ease; }
.progress-label { position: relative; z-index: 1; display: block; padding: 0 10px; font-size: 12px; font-weight: 700; line-height: 22px; color: var(--text); }

/* Eğitim kartları */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.course-card { overflow: hidden; display: flex; flex-direction: column; color: var(--text); transition: box-shadow .15s, transform .15s; }
.course-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 1px 2px rgba(30,25,20,.05), 0 14px 34px rgba(30,25,20,.10); }
.course-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--accent-soft), var(--accent)); overflow: hidden; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-cover-title { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font-weight: 800; font-size: 20px; line-height: 1.25; color: var(--accent-ink); }
.course-card.is-locked .course-cover img { filter: saturate(.55) brightness(.9); }
.course-lock, .course-badge, .course-draft {
  position: absolute; top: 12px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
}
.course-lock { left: 12px; background: rgba(20,20,20,.75); color: #fff; }
.course-badge { left: 12px; background: rgba(255,255,255,.92); color: var(--accent-text); }
.course-draft { right: 12px; background: rgba(255,255,255,.92); color: var(--text-2); }
.course-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.course-title { font-size: 17px; line-height: 1.3; }
.course-desc { color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; }
.course-count { font-size: 12.5px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }

/* Ders sayfası */
.lesson-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.outline { padding: 8px; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; }
.outline-toggle > summary { list-style: none; cursor: default; }
.outline-toggle > summary::-webkit-details-marker { display: none; }
.outline-head { padding: 10px 10px 6px; display: block; }
.outline-course { font-weight: 750; font-size: 16px; line-height: 1.3; display: block; }
.outline-mobile-label { display: none; }
.outline-progress { padding: 4px 10px 12px; display: flex; }
.outline-section { border-top: 1px solid var(--border); }
.outline-section > summary { list-style: none; }
.outline-section > summary::-webkit-details-marker { display: none; }
.outline-section-title {
  display: flex; align-items: center; gap: 8px; padding: 12px 10px; cursor: pointer;
  font-weight: 650; font-size: 14.5px; border-radius: 10px;
}
.outline-section-title:hover { background: var(--bg); }
.outline-section-title > span:first-child { flex: 1; }
.outline-section-done { color: var(--success); display: inline-flex; }
.outline-chevron { color: var(--muted); display: inline-flex; transition: transform .15s; }
.outline-section[open] .outline-chevron { transform: rotate(90deg); }
.outline-lessons { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.outline-lesson {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-radius: 10px;
  color: var(--text-2); font-size: 14px; line-height: 1.35;
}
.outline-lesson:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.outline-lesson.is-current { background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
.outline-lesson-title { flex: 1; min-width: 0; }
.outline-state { color: var(--muted-2); display: inline-flex; flex: none; }
.outline-lesson.is-done .outline-state { color: var(--success); }
.outline-lesson.is-locked { color: var(--muted); cursor: default; }
.outline-lesson.is-locked:hover { background: none; }
.outline-empty { font-size: 13px; color: var(--muted); padding: 6px 12px; }

.lesson-card { padding: 22px 26px 18px; }
.lesson-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.lesson-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lesson-crumb { font-size: 13px; color: var(--muted); font-weight: 500; }
.lesson-title { font-size: 25px; line-height: 1.25; }
.lesson-card .video-frame { margin-top: 0; }
.lesson-content { margin-top: 20px; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; color: var(--text); }
.prose h4 { font-size: 16.5px; margin: 20px 0 6px; color: var(--text); }
.prose ul, .prose ol { margin: 10px 0 14px; padding-left: 24px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose blockquote {
  margin: 14px 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-tint);
  border-left: 3px solid var(--accent); color: var(--text);
}
.prose a { color: var(--link); overflow-wrap: anywhere; }
.prose p { margin: 0; }
.prose p + p, .prose ul + p, .prose ol + p, .prose blockquote + p { margin-top: 12px; }

.lesson-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.lesson-nav { display: flex; gap: 8px; }
.complete-btn { background: var(--card); border: 1.5px solid var(--border-strong); color: var(--text-2); }
.complete-btn:hover { border-color: var(--success); color: var(--success); }
.complete-btn.is-done { background: var(--success-soft); border-color: #bfe3cd; color: var(--success); }
.complete-btn.is-busy { opacity: .6; }

.locked-card { padding: 0; overflow: hidden; }
.locked-cover { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; filter: saturate(.6); }
.locked-card .empty-state { padding: 36px 24px 40px; }

/* Yönetim: eğitimler */
.course-row-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--text); }
.course-row-main:hover { text-decoration: none; }
.course-row-main:hover strong { text-decoration: underline; }
.course-row-thumb { width: 72px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-text); flex: none; }
.course-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-row-text { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.course-row-text strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.builder-section { border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.builder-section-head { display: flex; align-items: center; gap: 8px; }
.builder-rename { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.input-section { font-weight: 650; border-color: transparent; background: var(--bg); min-height: 40px; }
.builder-lessons { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 2px; }
.builder-lesson { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 10px; }
.builder-lesson:hover { background: var(--bg); }
.builder-lesson-title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: var(--text); font-size: 14.5px; }
.builder-lesson-title .icon { color: var(--muted); }
.builder-lesson-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.builder-add { align-self: flex-start; margin-left: 34px; text-transform: none; letter-spacing: 0; }
.builder-new-section { padding-top: 6px; }
.input-lesson { font-size: 15px; line-height: 1.6; min-height: 320px; }
.danger-zone { border: 1px solid #f1d2cf; }
.danger-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

@media (max-width: 960px) {
  .lesson-layout { grid-template-columns: minmax(0, 1fr); }
  .outline { position: static; max-height: none; }
  .outline-toggle > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .outline-mobile-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--bg); padding: 6px 12px; border-radius: 999px; flex: none; }
}
@media (max-width: 640px) {
  .lesson-card { padding: 16px 16px 14px; }
  .lesson-title { font-size: 21px; }
  .lesson-foot { flex-direction: column; align-items: stretch; }
  .lesson-foot .complete-btn { width: 100%; }
  .lesson-nav { justify-content: space-between; }
  .builder-add { margin-left: 0; }
  .danger-row { flex-direction: column; align-items: flex-start; }
  .course-row .badge { display: none; }
}
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
@media (max-width: 640px) {
  .lesson-nav .btn { flex: 1; }
}

/* ============================================================
   Modül 5: karşılama ve telefona ekleme
   ============================================================ */

[hidden] { display: none !important; }

.onboarding { padding: 26px 28px 24px; }
.steps-dots { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 8px; }
.steps-dots li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; color: var(--muted); font-size: 12.5px; font-weight: 500; text-align: center; }
.steps-dots li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; background: var(--border); border-radius: 2px; }
.steps-dots li.is-done:not(:last-child)::after { background: var(--accent); }
.steps-dots .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--bg); color: var(--muted); border: 2px solid var(--border); position: relative; z-index: 1; }
.steps-dots .is-current .dot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.steps-dots .is-done .dot { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-soft); }
.steps-dots .is-current { color: var(--text); font-weight: 650; }
.onb-title { font-size: 26px; line-height: 1.25; margin-bottom: 10px; }
.onb-lead { margin-bottom: 18px; }
.onb-text { margin-bottom: 18px; }
.onboarding .video-frame { margin: 0 0 18px; }
.onb-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.onb-actions form { display: contents; }

.tour { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tour-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--accent-tint); border: 1px solid var(--accent-soft); }
.tour-item > div { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.tour-item strong { font-size: 15px; color: var(--text); }
.tour-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--card); color: var(--accent-text); flex: none; box-shadow: 0 1px 2px rgba(0,0,0,.05); }

.install { display: flex; flex-direction: column; gap: 14px; }
.install-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; }
.install-warning { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff6e6; border: 1px solid #f4dcae; color: #6b4b12; font-size: 14.5px; line-height: 1.5; }
.install-warning .icon { flex: none; margin-top: 2px; }
.install-tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--bg); align-self: flex-start; }
.install-tab { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-2); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.install-tab.is-active { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.install-panel { display: flex; flex-direction: column; gap: 14px; }
.install-note { font-size: 14px; color: var(--text-2); }
.install-video { margin: 0 auto; width: 100%; max-width: 320px; aspect-ratio: 9 / 16; }
.install-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.install-steps li { counter-increment: s; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); font-size: 15px; line-height: 1.45; position: relative; }
.install-steps li::before { content: counter(s); position: absolute; top: -8px; left: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.step-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: #2f6fd6; flex: none; }
.install-oneclick { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--accent-tint); border: 1px solid var(--accent-soft); }
.install-success { color: var(--success); font-weight: 600; }
.install-desktop { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); background: var(--bg); padding: 12px 14px; border-radius: 12px; }

.app-banner { background: var(--card); border-bottom: 1px solid var(--border); }
.app-banner-inner { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; font-size: 14px; color: var(--text-2); }
.app-banner-inner > span { flex: 1; }
.app-banner .icon-btn { width: 30px; height: 30px; font-size: 13px; }

.app-preview { display: flex; gap: 24px; align-items: flex-start; }
.app-preview-text { flex: 1; }
.app-icon-demo { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 26px; border-radius: 22px; background: linear-gradient(160deg, #7fa7d9, #b69ad6); flex: none; }
.app-icon-demo img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.app-icon-demo span { color: #fff; font-size: 12.5px; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,.3); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 640px) {
  .onboarding { padding: 20px 16px 18px; }
  .onb-title { font-size: 22px; }
  .tour { grid-template-columns: minmax(0, 1fr); }
  .dot-label { font-size: 11px; }
  .onb-actions { flex-direction: column-reverse; align-items: stretch; }
  .onb-actions .btn { width: 100%; }
  .app-preview { flex-direction: column; align-items: stretch; }
  .app-icon-demo { align-self: center; }
}

/* Türkçe dosya seçici */
.file-picker { position: relative; display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; max-width: 100%; }
.file-picker-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-picker-btn { pointer-events: none; text-transform: none; letter-spacing: 0; }
.file-picker:hover .file-picker-btn { border-color: var(--muted-2); color: var(--text); }
.file-picker:focus-within .file-picker-btn { outline: 2px solid var(--text); outline-offset: 2px; }
.file-picker-name { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.file-picker-name.has-file { color: var(--text); font-weight: 500; }

.reminder-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #fff6e6; border: 1px solid #f4dcae; color: #6b4b12; font-size: 14.5px; line-height: 1.5; }
.reminder-note .icon { flex: none; margin-top: 2px; }
.reminder-note a { color: #6b4b12; font-weight: 600; text-decoration: underline; }

/* ============================================================
   Modül 6: yönetim özeti ve üyeler
   ============================================================ */
.member-search { display: flex; gap: 8px; flex-wrap: wrap; }
.member-search .input { flex: 1; min-width: 220px; }
.chip-count { font-size: 12px; opacity: .7; margin-left: 4px; font-weight: 500; }
.member-cell { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.member-cell:hover { text-decoration: none; }
.member-cell:hover strong { text-decoration: underline; }
.member-cell > span { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.member-cell strong { font-size: 14.5px; }
.member-cell .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.member-table td { vertical-align: middle; }
.member-table tr.is-banned td { opacity: .6; }
.member-table td a[href^="tel:"] { color: var(--text-2); }
.table-card-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 6px 0; }
.table-card-head .form-card-title { padding-bottom: 4px; }

.member-head { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; }
.member-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.member-head h1 { font-size: 22px; }
.member-chips { justify-content: flex-start; }
.chip-danger { background: var(--danger-soft); border-color: #f3d3d0; color: var(--danger); }
.stat-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat small { font-size: 12px; color: var(--success); }
.stat-link { color: var(--text); transition: box-shadow .15s; }
.stat-link:hover { text-decoration: none; box-shadow: 0 1px 2px rgba(30,25,20,.05), 0 10px 26px rgba(30,25,20,.09); }
.premium-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.form-actions-start { justify-content: flex-start; flex-wrap: wrap; }
.action-list { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-outline-danger { color: var(--danger); border-color: #ecc4c0; }
.btn-outline-danger:hover { border-color: var(--danger); color: var(--danger); }
.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-link { display: flex; align-items: center; gap: 10px; padding: 16px; color: var(--text); font-weight: 600; font-size: 14.5px; }
.quick-link .icon { color: var(--accent-text); }
.quick-link:hover { text-decoration: none; box-shadow: 0 1px 2px rgba(30,25,20,.05), 0 10px 26px rgba(30,25,20,.09); }

@media (max-width: 900px) {
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-form { grid-template-columns: minmax(0, 1fr); }
}
.member-table .table-note { white-space: nowrap; }
@media (max-width: 640px) {
  .member-table th:nth-child(2), .member-table td:nth-child(2),
  .member-table th:nth-child(4), .member-table td:nth-child(4) { display: none; }
  .member-cell .muted { max-width: 160px; }
  .member-table .table-note { white-space: normal; }
  .member-head { flex-direction: column; padding: 18px 16px; }
  .stat-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================
   Takvim ve Üyeler
   ============================================================ */
.day-head { font-size: 15px; font-weight: 700; color: var(--text-2); margin: 6px 2px -4px; }
.event-card { display: flex; gap: 18px; padding: 20px 22px; scroll-margin-top: 90px; }
.event-card.is-live { border: 1px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-tint), var(--shadow); }
.event-date {
  flex: none; width: 58px; height: 62px; border-radius: 14px; background: var(--accent-tint);
  border: 1px solid var(--accent-soft); display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.event-day { font-size: 22px; font-weight: 800; line-height: 1; color: var(--accent-text); }
.event-mon { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--accent-text); margin-top: 3px; }
.event-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13.5px; color: var(--text-2); margin: 0; }
.event-meta .icon { vertical-align: -2px; }
.event-title { font-size: 17px; margin: 0; }
.event-desc { font-size: 14.5px; color: var(--text-2); }
.event-desc p { margin: 0 0 6px; }
.event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.event-locked { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent-text); background: var(--accent-tint); border-radius: 999px; padding: 6px 12px; }
.event-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.flag-live { background: var(--danger-soft); color: var(--danger); }
.flag-soon { background: var(--accent-soft); color: var(--accent-text); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); display: inline-block; animation: live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot-live { animation: none; } }
.event-add { position: relative; }
.event-add summary { list-style: none; cursor: pointer; }
.event-add summary::-webkit-details-marker { display: none; }
.event-add-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 230px; padding: 6px; display: flex; flex-direction: column; }
.event-add-menu a { padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 500; }
.event-add-menu a:hover { background: var(--accent-tint); text-decoration: none; }
.past-events { padding: 16px 20px; }
.past-events summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.past-events ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.past-events li .muted { display: inline-block; min-width: 150px; }
.event-row.is-past { opacity: .65; }
.table-title { padding: 16px 20px 4px; }

.next-event {
  display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px;
  background: var(--accent-tint); border: 1px solid var(--accent-soft); color: var(--text); font-size: 13.5px;
}
.next-event:hover { text-decoration: none; border-color: var(--accent); }
.next-event-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-text); }
.next-event strong { font-size: 14.5px; }

.directory-search { flex: 0 1 340px; }
.directory-search .input { min-width: 0; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.member-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 22px 16px 18px; color: var(--text); transition: box-shadow .15s;
}
.member-card:hover { text-decoration: none; box-shadow: 0 1px 2px rgba(30,25,20,.05), 0 10px 26px rgba(30,25,20,.09); }
.member-card-avatar { position: relative; display: inline-flex; flex: none; }
.online-dot { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: #2fb36d; border: 3px solid var(--card); }
.member-card-name { font-size: 15.5px; margin-top: 4px; }
.member-card-bio { font-size: 13.5px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.member-card-since { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 6px; }
.directory-note { font-size: 13px; text-align: center; }
.member-head h1 .role-badge { vertical-align: 4px; }

@media (max-width: 640px) {
  .event-card { padding: 16px; gap: 12px; }
  .event-date { width: 48px; height: 54px; }
  .event-day { font-size: 19px; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .member-card { padding: 16px 10px 14px; }
  .directory-search { flex: 1 1 100%; }
  .past-events li .muted { display: block; min-width: 0; }
}

/* ============================================================
   Marka paleti (koçluk paneliyle aynı dil): soğuk açık gri zemin, beyaz kartlar,
   ana renk dolu seçili öğe ve düğmelerde; krem/hardal bekleyen-öne çıkan, yeşil olumlu.
   ============================================================ */
:root {
  --page-bg: #f5f6fa; --soft: #f5f6fa; --border: #e9eaf0;
  --danger: #a54c40; --danger-soft: #f2e7e5;
  --font-display: Georgia, "Times New Roman", serif;
}
body, body.bare { background: var(--page-bg); }
.site-header { border-bottom-color: var(--border); }
.page-head h1, .admin-head h1, .empty-state-lg h1, .member-head h1, .about-title, .auth-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em;
}
.tab:hover { background: rgba(255,255,255,.9); }
.tab.is-active { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent); }
.tabs { background: var(--page-bg); }
.admin-nav-item.is-active { background: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 28%, transparent); }
.chip { background: var(--page-bg); border-color: var(--border); }
.empty-icon { background: var(--hl-soft); color: var(--hl-text); }
.dot-online { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.online-dot { background: var(--ok); }
.pin-badge { background: var(--hl-soft); border-color: transparent; color: var(--hl-text); }
.post-card.is-pinned { background: linear-gradient(var(--hl-soft), var(--hl-soft)) top / 100% 0 no-repeat, var(--card); box-shadow: inset 4px 0 0 var(--hl), var(--shadow); }
.role-badge { background: var(--soft); color: var(--text-2); }
.badge-pending, .badge-sending { background: var(--hl-soft); color: var(--hl-text); }
.badge-sent { background: var(--ok-soft); color: var(--ok-text); }
.badge-failed { background: var(--danger-soft); color: var(--danger); }
.next-event { background: var(--hl-soft); border-color: transparent; }
.next-event-label { color: var(--hl-text); }
.flag-soon { background: var(--hl-soft); color: var(--hl-text); }
.event-date { background: var(--page-bg); border-color: var(--border); }
.event-day, .event-mon { color: var(--accent); }
.event-locked { background: var(--hl-soft); color: var(--hl-text); }
.stat small { color: var(--ok-text); }
.group-banner, .about-banner { background: linear-gradient(120deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #000) 100%); }
.composer-placeholder { background: var(--page-bg); }
.group-name { font-family: var(--font-display); font-size: 20px; }
.avatar-initials { background: color-mix(in srgb, var(--accent) 9%, #fff); color: var(--accent); }
.color-field { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-top: 1px solid var(--border); }
.color-field:first-of-type { border-top: 0; padding-top: 4px; }
.color-field .swatches { display: inline-flex; }
.color-sample { pointer-events: none; }
/* Kalan açık tonlar: pembe yerine nötr gri, sarı ya da yeşil */
:root { --success: var(--ok-text); --success-soft: var(--ok-soft); }
.complete-btn.is-done { border-color: color-mix(in srgb, var(--ok) 35%, #fff); }
.progress { background: var(--soft); }
.progress-bar { background: var(--ok); }
.course-cover { background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #000) 100%); }
.course-badge { color: var(--text); }
.course-row-thumb { background: var(--page-bg); color: var(--accent); }
.outline-lesson.is-current { background: var(--page-bg); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.prose blockquote { background: var(--hl-soft); border-left-color: var(--hl); }
.save-bar { background: linear-gradient(to top, var(--page-bg) 70%, transparent); }
.steps-dots .is-done .dot { background: var(--ok-soft); color: var(--ok-text); border-color: var(--ok-soft); }
.steps-dots li.is-done:not(:last-child)::after { background: var(--ok); }
.tour-item, .install-oneclick { background: var(--page-bg); border-color: var(--border); }
.tour-icon, .quick-link .icon { color: var(--accent); }
.event-add-menu a:hover { background: var(--page-bg); }
.event-card.is-live { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent), var(--shadow); }
.comment:target .comment-bubble { box-shadow: 0 0 0 2px var(--hl); }
:root { --link: var(--accent); }
