/* UzmanSayfası panel v2 — bağımlılıksız, CSP uyumlu stil katmanı. */

:root {
  --bg: #f4f6f2;
  --surface: #ffffff;
  --surface-2: #fafbf8;
  --ink: #14211b;
  --ink-2: #47564e;
  --muted: #78877f;
  --line: #e2e7e1;
  --line-strong: #d2dad2;
  --brand: #053e33;
  --brand-2: #09594a;
  --brand-soft: #e9f2ed;
  --brand-softer: #f2f8f4;
  --mint: #ccf17e;
  --ok: #157a4f;
  --ok-soft: #e9f7ef;
  --warn: #8a5a00;
  --warn-soft: #fff8e6;
  --err: #b42318;
  --err-soft: #fef3f2;
  --sidebar: #053e33;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 33, 27, 0.04), 0 12px 30px -24px rgba(20, 33, 27, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, svg { display: block; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 15px; height: 15px; }
.icon-end { margin-left: auto; }

:where(a, button, summary, input, textarea, select):focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- */
/* Marka                                                             */
/* ---------------------------------------------------------------- */

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  position: relative; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand); color: #fff;
  font-weight: 700; font-size: 16px; letter-spacing: -0.04em;
}
.brand-arrow {
  position: absolute; top: 2px; right: 4px;
  font-size: 9px; font-weight: 700; color: var(--mint);
}
.brand-name {
  font-size: 15px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-dot { color: var(--brand-2); }
.sidebar .brand-name { color: #f2f7f4; }
.sidebar .brand-dot { color: #7fbfa6; }
.sidebar .brand-mark { background: var(--brand-2); }

.auth-brand { display: inline-flex; align-items: center; gap: 11px; }
.auth-brand .brand-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
.auth-brand .brand-name { font-size: 17px; }

/* ---------------------------------------------------------------- */
/* Giriş / onboarding                                                */
/* ---------------------------------------------------------------- */

.auth-screen {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 32px 18px;
  background:
    radial-gradient(900px 480px at 12% 0%, #e7f0e9 0%, transparent 62%),
    radial-gradient(760px 420px at 100% 100%, #eef3ee 0%, transparent 58%),
    var(--bg);
}
.auth-card {
  width: min(100%, 440px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 4px rgba(20, 33, 27, 0.04), 0 30px 60px -40px rgba(20, 33, 27, 0.3);
}
.claim-card { width: min(100%, 490px); }
.auth-card h1 { font-size: 1.55rem; font-weight: 600; letter-spacing: -0.035em; margin: 4px 0 8px; }
.auth-sub { color: var(--ink-2); font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.auth-sub code.slug { display: inline-block; margin-top: 4px; }
.auth-foot { margin-top: 18px; font-size: 0.78rem; color: var(--muted); text-align: center; line-height: 1.55; }
.auth-foot a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.claim-email { display: block; color: var(--muted); font-size: 0.82rem; }

.eyebrow {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { flex: 1; height: 4px; border-radius: 999px; background: var(--line); }
.steps i.done { background: var(--brand-2); }

.slug {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 2px 6px;
  border-radius: 5px;
}

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 44px; padding: 0 16px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 0.9rem; font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.btn-google:hover { background: var(--surface-2); border-color: var(--muted); }

.divider {
  display: flex; align-items: center; text-align: center;
  margin: 18px 0 14px; color: var(--muted); font-size: 0.75rem;
}
.divider::before, .divider::after { content: ""; flex: 1; border-bottom: 1px solid var(--line); }
.divider span { padding: 0 12px; }

/* ---------------------------------------------------------------- */
/* Form alanları                                                     */
/* ---------------------------------------------------------------- */

.field { margin-bottom: 14px; min-width: 0; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--ink);
}
.field .hint, .hint {
  display: block; margin-top: 5px;
  font-size: 0.75rem; font-weight: 400; color: var(--muted); line-height: 1.5;
}
input[type="text"], input[type="email"], textarea, select {
  width: 100%; min-height: 42px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink);
  font-size: 0.9rem; line-height: 1.45;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brand-2);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
input::placeholder, textarea::placeholder { color: #a2aea7; }
.readonly {
  min-height: 42px; padding: 10px 12px;
  border: 1px dashed var(--line-strong); border-radius: 10px;
  background: var(--surface-2); color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.field-note { font-size: 0.75rem; color: var(--muted); margin-top: 5px; }
.field-note.ok { color: var(--ok); }
.field-note.bad { color: var(--err); }

.msg {
  display: none; margin-top: 14px; padding: 10px 14px;
  border-radius: 10px; font-size: 0.83rem; line-height: 1.5;
}
.msg.err { display: block; background: var(--err-soft); color: var(--err); border: 1px solid #fecdca; }
.msg.ok { display: block; background: var(--ok-soft); color: var(--ok); border: 1px solid #abefc6; }
.msg.info { display: block; background: var(--brand-softer); color: var(--brand); border: 1px solid var(--brand-soft); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: 0.875rem; font-weight: 600; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-2); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); border-color: var(--muted); }
.btn-danger-ghost { background: var(--surface); color: var(--err); border-color: #f0c9c5; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.text-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--brand-2); font-size: 0.82rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink-2);
  transition: background 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.icon-btn-dark {
  background: transparent; border-color: rgba(255, 255, 255, 0.14);
  color: #cfe0d8;
}
.icon-btn-dark:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }

/* ---------------------------------------------------------------- */
/* Uygulama iskeleti                                                 */
/* ---------------------------------------------------------------- */

.app-shell { display: flex; min-height: 100dvh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50;
  display: flex; flex-direction: column;
  width: 268px; padding: 20px 14px 14px;
  background: linear-gradient(180deg, #12231d 0%, #0d1a16 100%);
  color: #dfe9e4;
  overflow-y: auto;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 18px; }
.sidebar-close { display: none; }

.site-chip {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px; padding: 10px 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.site-chip-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: #8a9b93; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.site-chip-dot.is-on { background: #57d39b; box-shadow: 0 0 0 3px rgba(87, 211, 155, 0.14); }
.site-chip-dot.is-pending { background: #f0c24b; box-shadow: 0 0 0 3px rgba(240, 194, 75, 0.14); }
.site-chip-body { min-width: 0; flex: 1; }
.site-chip-label {
  display: block; font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #8fa49b; margin-bottom: 2px;
}
.site-chip-url {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.78rem; font-weight: 600; color: #f0f6f2;
}
.site-chip-url:hover { color: #a9dcc6; }
.site-chip-status {
  flex: none; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: #b7c8bf;
}

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label {
  padding: 0 12px; margin: 4px 0 6px;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #7d9289;
}
.nav-label-2 { margin-top: 20px; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  min-height: 40px; padding: 0 12px;
  border-radius: 9px;
  color: #aebfb7; font-size: 0.83rem; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-item .icon { width: 17px; height: 17px; color: #8fa49b; }
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #f2f7f4; }
.nav-item.active { background: rgba(255, 255, 255, 0.09); color: #ffffff; }
.nav-item.active .icon { color: #9fdcbe; }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; border-radius: 999px; background: #57c99a;
}
.nav-badge {
  margin-left: auto; padding: 2px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #a9bbb2; font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}

.sidebar-foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.sidebar-live {
  display: flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 12px; border-radius: 9px;
  color: #b7c8bf; font-size: 0.78rem;
  transition: background 0.15s, color 0.15s;
}
.sidebar-live:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.avatar {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: #1f6f5c; color: #fff;
  font-size: 0.78rem; font-weight: 700;
}
.user-meta { min-width: 0; flex: 1; }
.user-meta strong {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.74rem; font-weight: 600; color: #f2f7f4;
}
.user-meta small { display: block; font-size: 0.64rem; color: #8fa49b; }
.user-card .icon-btn { width: 32px; height: 32px; border-radius: 8px; }

.sidebar-overlay {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(8, 16, 12, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.shell { flex: 1; min-width: 0; margin-left: 268px; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 28px;
  background: rgba(244, 246, 242, 0.86);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.menu-toggle { display: none; flex: none; }
.topbar-title { min-width: 0; flex: 1; }
.topbar-title h1 {
  font-size: 1.18rem; font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.25;
}
.topbar-title .eyebrow { margin-bottom: 1px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: var(--ok-soft); color: var(--ok);
  font-size: 0.72rem; font-weight: 600; white-space: nowrap;
}
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.is-off { background: #eef1ee; color: var(--muted); }
.status-pill.is-pending { background: var(--warn-soft); color: var(--warn); }

.content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 26px 28px 56px; }
.view { animation: view-in 0.18s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- */
/* Başlıklar / kartlar                                               */
/* ---------------------------------------------------------------- */

.welcome {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 20px;
}
.welcome h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.2; margin-top: 3px; }
.view-sub { color: var(--ink-2); font-size: 0.88rem; line-height: 1.6; margin-top: 4px; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.view-head h2 { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1.25; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.card-head h3 { font-size: 0.98rem; font-weight: 600; letter-spacing: -0.02em; }
.card-head p { margin-top: 2px; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.card-kicker {
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}
.card-sub { margin-top: 4px; font-size: 0.8rem; color: var(--muted); }

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

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2); color: var(--muted);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: #c7ecd8; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: #f2e0ad; }
.badge-soft { background: var(--brand-soft); color: var(--brand); border-color: #d4e6db; }
.badge-danger { background: var(--err-soft); color: var(--err); border-color: #f6d3d0; }

/* ---------------------------------------------------------------- */
/* Genel bakış                                                       */
/* ---------------------------------------------------------------- */

.approval-banner {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px; padding: 14px 16px;
  background: var(--warn-soft); border: 1px solid #f2e0ad; border-radius: 12px;
  color: #6f4c00;
}
.approval-icon {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 9px;
  background: #fff1c9; color: var(--warn);
}
.approval-banner strong { display: block; font-size: 0.85rem; margin-bottom: 2px; }
.approval-banner p { font-size: 0.8rem; line-height: 1.5; color: #7a5a12; }

.site-hero {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f9f5 100%);
}
.site-hero-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.site-hero-icon {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand);
}
.site-hero-copy { min-width: 0; }
.site-url {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em;
}
.site-url:hover { color: var(--brand-2); }
.site-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.switch {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0; color: var(--ink-2); cursor: pointer;
}
.switch-track {
  position: relative; display: block; flex: none;
  width: 40px; height: 22px; border-radius: 999px;
  background: #d6ddd7; transition: background 0.18s;
}
.switch-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(20, 33, 27, 0.25);
  transition: transform 0.18s;
}
.switch.is-on .switch-track { background: var(--brand-2); }
.switch.is-on .switch-thumb { transform: translateX(18px); }
.switch-label { font-size: 0.76rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.switch.is-on .switch-label { color: var(--brand); }
.switch.is-disabled { opacity: 0.55; cursor: not-allowed; }
.switch:disabled { opacity: 0.5; cursor: not-allowed; }

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 8px;
  border-radius: 10px; background: var(--brand-softer); color: var(--brand-2);
}
.stat b { font-size: 1.55rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.2; }
.stat > span { font-size: 0.76rem; color: var(--muted); }
.stat-note { margin-top: 2px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.progress { width: 100%; height: 5px; margin-top: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand-2); transition: width 0.3s ease; }

.checklist { list-style: none; display: flex; flex-direction: column; }
.checklist li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 0.84rem; color: var(--ink-2);
}
.checklist li:last-child { border-bottom: 0; }
.checklist .check {
  display: grid; place-items: center; flex: none;
  width: 21px; height: 21px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: transparent;
}
.checklist .check .icon { width: 12px; height: 12px; stroke-width: 2.6; }
.checklist li.done .check { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.checklist li.done > span:nth-child(2) { color: var(--ink); }
.checklist li > a {
  margin-left: auto; font-size: 0.72rem; font-weight: 600;
  color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px;
}
.checklist li .badge { margin-left: auto; }

.quick-actions { display: flex; flex-direction: column; gap: 6px; }
.quick {
  display: flex; align-items: center; gap: 11px;
  padding: 10px; border-radius: 10px;
  transition: background 0.15s;
}
.quick:hover { background: var(--surface-2); }
.quick-icon {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand);
}
.quick-text { min-width: 0; flex: 1; }
.quick-text b { display: block; font-size: 0.82rem; font-weight: 600; }
.quick-text small { display: block; font-size: 0.72rem; color: var(--muted); }
.quick > .icon:last-child { color: var(--muted); }

/* ---------------------------------------------------------------- */
/* Sayfam düzenleyici                                                */
/* ---------------------------------------------------------------- */

.slug-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem; white-space: nowrap;
}
.form-card + .form-card, .form-card + .grid, .grid + .form-card, .form-card + .save-bar, .grid + .save-bar { margin-top: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .field:last-child { margin-bottom: 0; }
.counter {
  flex: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem; color: var(--muted);
}
.field-switch { display: flex; flex-direction: column; align-items: flex-start; }
.field-switch label { margin-bottom: 8px; }
.publish-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.publish-card h3 { font-size: 0.95rem; font-weight: 600; }
.publish-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.save-bar {
  position: sticky; bottom: 14px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; padding: 12px 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 30px -18px rgba(20, 33, 27, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.save-status { font-size: 0.78rem; color: var(--muted); }
.save-status.is-dirty { color: var(--warn); font-weight: 600; }
.save-actions { display: flex; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------- */
/* Temalar                                                           */
/* ---------------------------------------------------------------- */

.theme-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.theme-card {
  display: flex; flex-direction: column;
  overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.theme-card.selected { border-color: var(--brand-2); box-shadow: 0 0 0 2px var(--brand-soft), var(--shadow); }
.theme-preview {
  display: flex; flex-direction: column; gap: 9px;
  height: 168px; padding: 15px;
  background: var(--tp-bg); color: var(--tp-ink);
  border-bottom: 1px solid var(--tp-line, rgba(0, 0, 0, 0.08));
}
.theme-preview--sakin { --tp-bg: #f5f5f7; --tp-ink: #1d1d1f; --tp-accent: #0070e0; --tp-soft: #eef3fb; --tp-card: #ffffff; }
.theme-preview--imzali { --tp-bg: #f8f4ea; --tp-ink: #15231f; --tp-accent: #166a58; --tp-soft: #e7eee7; --tp-card: #fffdf8; }
.theme-preview--gece { --tp-bg: #0f1720; --tp-ink: #eef4fa; --tp-accent: #3b8eea; --tp-soft: #1c2c3a; --tp-card: #192532; }
.tp-bar { width: 38%; height: 5px; border-radius: 999px; background: var(--tp-accent); opacity: 0.9; }
.tp-hero { display: flex; align-items: center; gap: 8px; }
.tp-avatar { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tp-accent); opacity: 0.85; }
.tp-lines { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tp-lines span { display: block; height: 4px; border-radius: 999px; background: var(--tp-ink); opacity: 0.18; }
.tp-lines span:first-child { width: 72%; opacity: 0.55; }
.tp-lines span:last-child { width: 48%; }
.tp-body { display: flex; gap: 7px; flex: 1; }
.tp-card { flex: 1; border-radius: 7px; background: var(--tp-card); border: 1px solid rgba(0, 0, 0, 0.06); }
.tp-pill { flex: none; width: 30%; border-radius: 7px; background: var(--tp-soft); }
.theme-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; }
.theme-meta h3 { font-size: 0.88rem; font-weight: 600; }
.theme-meta p { margin-top: 2px; font-size: 0.74rem; color: var(--muted); line-height: 1.45; }

.coming-card { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.coming-card h3 { font-size: 0.92rem; font-weight: 600; }
.coming-card p { margin-top: 2px; font-size: 0.8rem; color: var(--muted); }
.coming-icon {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
}
.coming-card .badge { margin-left: auto; }

/* ---------------------------------------------------------------- */
/* Boş durumlar / abonelik                                           */
/* ---------------------------------------------------------------- */

.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 42px 24px;
}
.empty-state h3 { font-size: 1rem; font-weight: 600; }
.empty-state p { max-width: 46ch; font-size: 0.84rem; color: var(--muted); line-height: 1.6; }
.empty-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 4px;
  border-radius: 15px; background: var(--surface-2); color: var(--muted);
}
.empty-icon .icon { width: 23px; height: 23px; }
.empty-sm { padding: 24px 16px; }
.empty-sm .empty-icon { width: 42px; height: 42px; border-radius: 12px; }
.empty-sm .btn { margin-top: 6px; }

.plan-current {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f4 100%);
}
.plan-current-main { display: flex; align-items: center; gap: 14px; }
.plan-icon {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand);
}
.plan-current h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.plan-current-side { text-align: right; }
.plan-current-side strong { display: block; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; }
.plan-current-side .badge { margin-top: 4px; }

.plan-card { display: flex; flex-direction: column; }
.plan-card.is-current { border-color: var(--brand-2); }
.plan-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.plan-card-head h3 { font-size: 1rem; font-weight: 600; }
.plan-card-head p { margin-top: 2px; font-size: 0.78rem; color: var(--muted); }
.plan-price { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.04em; margin-bottom: 12px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8rem; color: var(--ink-2); line-height: 1.5; }
.plan-features .icon { width: 14px; height: 14px; margin-top: 2px; color: var(--brand-2); stroke-width: 2.6; }

.notice {
  display: flex; align-items: flex-start; gap: 11px;
  margin-top: 16px; padding: 13px 15px;
  background: var(--brand-softer); border: 1px solid var(--brand-soft);
  border-radius: 12px; color: var(--ink-2);
}
.notice .icon { color: var(--brand-2); margin-top: 1px; }
.notice p { font-size: 0.78rem; line-height: 1.55; }
.notice strong { color: var(--ink); }

.payment-list { display: flex; flex-direction: column; }
.payment-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.payment-row:last-child { border-bottom: 0; }
.payment-row b { display: block; font-size: 0.83rem; font-weight: 600; }
.payment-row small { display: block; margin-top: 1px; font-size: 0.72rem; color: var(--muted); }
.payment-amount { display: flex; align-items: center; gap: 8px; text-align: right; }
.payment-amount b { font-size: 0.84rem; }

/* ---------------------------------------------------------------- */
/* Ayarlar / destek                                                  */
/* ---------------------------------------------------------------- */

.detail-list { display: flex; flex-direction: column; margin-bottom: 16px; }
.detail-list > div {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { font-size: 0.8rem; color: var(--muted); }
.detail-list dd { font-size: 0.82rem; font-weight: 500; text-align: right; overflow-wrap: anywhere; }

.setting-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.setting-row:last-child { border-bottom: 0; padding-bottom: 0; }
.setting-row b { display: block; font-size: 0.84rem; font-weight: 600; }
.setting-row small { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--muted); line-height: 1.5; }

.danger-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 16px; border-color: #f0d5d2;
}
.danger-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--err); }
.danger-card p { margin-top: 2px; font-size: 0.8rem; color: var(--muted); }

.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 0; cursor: pointer; list-style: none;
  font-size: 0.85rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform 0.18s, color 0.18s; }
.faq details[open] summary { color: var(--brand-2); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--brand-2); }
.faq p { padding: 0 0 14px; font-size: 0.8rem; line-height: 1.65; color: var(--ink-2); }

.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--brand-soft); color: var(--brand);
}
.contact-card h3 { font-size: 1rem; font-weight: 600; }
.contact-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.contact-card .btn { margin-top: 2px; }
.contact-card .badge { margin-top: 4px; }

/* ---------------------------------------------------------------- */
/* Kırılımlar                                                        */
/* ---------------------------------------------------------------- */

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2-1 { grid-template-columns: minmax(0, 1fr); }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.22s ease; }
  body.sidebar-open .sidebar { transform: none; }
  .sidebar-close { display: grid; }
  .shell { margin-left: 0; }
  .menu-toggle { display: grid; }
}

@media (max-width: 760px) {
  .topbar { padding: 12px 16px; }
  .topbar-title h1 { font-size: 1.05rem; }
  .topbar-site { display: none; }
  .content { padding: 20px 16px 44px; }
  .welcome, .view-head { flex-direction: column; align-items: flex-start; }
  .welcome .btn { width: 100%; }
  .grid-4, .grid-3, .grid-2, .theme-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .site-hero { align-items: flex-start; flex-direction: column; }
  .site-hero-actions { width: 100%; justify-content: space-between; }
  .save-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .save-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .save-actions .btn { width: 100%; }
  .publish-card, .danger-card { flex-direction: column; align-items: flex-start; }
  .auth-card { padding: 24px; }
  .auth-card h1 { font-size: 1.35rem; }
}

@media (max-width: 420px) {
  .status-pill { display: none; }
  .site-hero-actions .btn { flex: 1 1 auto; }
  .save-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Profil fotoğrafı yükleyici */
.avatar-uploader {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
}
.avatar-preview-box {
  width: 80px;
  height: 100px;
  border-radius: 40px 40px 14px 14px;
  background: #eaf2ff;
  border: 1px solid #d9e2e7;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.avatar-fallback {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f6f5c;
  letter-spacing: -0.02em;
}
.avatar-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-uploader-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.avatar-uploader-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
