/* ==========================================================
   Bebek Rehberi — Yönetim paneli stilleri
   ========================================================== */
:root {
    /* Pudra pembesi, krem, beyaz ve koyu lacivert */
    --pink: #f0607a; --pink-d: #de4865; --pink-l: #fdeef1; --pink-xl: #fff6f7;
    --blue: #3b7fd4; --blue-l: #eef5ff;
    --ink: #1f2a4d; --soft: #4f5877; --muted: #6f7591; --line: #f0e6e8;
    --bg: #fdf8f6; --cream: #fff9f3; --white: #fff;
    --ok: #15803d; --ok-l: #e2f6e9; --warn: #b45309; --warn-l: #fff1dc; --bad: #d61f45; --bad-l: #ffe8ec;
    --radius: 16px; --shadow: 0 6px 22px rgba(31, 42, 77, .06); --shadow-lg: 0 14px 34px rgba(31, 42, 77, .1);
    --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "Baloo 2", "Nunito", sans-serif;
}
.tone-pink   { --tone-bg: #ffe3ec; --tone-fg: #d6246e; }
.tone-coral  { --tone-bg: #ffe6dc; --tone-fg: #c2410c; }
.tone-blue   { --tone-bg: #dcecff; --tone-fg: #1d6fd8; }
.tone-peach  { --tone-bg: #ffecd6; --tone-fg: #c05600; }
.tone-lilac  { --tone-bg: #ece4ff; --tone-fg: #7c3aed; }
.tone-mint   { --tone-bg: #d5f7f0; --tone-fg: #0b7d72; }
.tone-yellow { --tone-bg: #fff3c4; --tone-fg: #a86400; }
.tone-teal   { --tone-bg: #d9f5ec; --tone-fg: #087a54; }
.tone-red    { --tone-bg: #ffe1e6; --tone-fg: #d61f45; }

*, *::before, *::after { box-sizing: border-box; }
body.admin { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--pink); }
h1, h2, h3 { font-family: var(--display); margin: 0 0 .5em; line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(59, 127, 212, .4); outline-offset: 2px; border-radius: 6px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon--xs { width: 15px; height: 15px; }
.icon--sm { width: 18px; height: 18px; }
.icon--xl { width: 44px; height: 44px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { background: var(--blue-l); padding: 1px 6px; border-radius: 6px; font-size: .88em; }

/* ---------- Kabuk ---------- */
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: linear-gradient(180deg, #fff 0%, #fff9f8 100%); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px 18px; color: var(--pink); font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1; }
.admin-brand:hover { color: var(--pink-d); }
.admin-brand small { display: block; font-family: var(--font); color: var(--ink); font-size: .8rem; font-weight: 700; margin-top: 4px; }
.admin-brand img { width: 52px; }
.admin-menu { list-style: none; margin: 0; padding: 4px 14px; display: grid; gap: 3px; }
.admin-menu a { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; color: var(--ink); font-weight: 600; transition: background .2s, color .2s; }
.admin-menu a .icon { color: #d6246e; stroke-width: 2; }
.admin-menu a:focus-visible { outline: 3px solid #ffb3cc; outline-offset: 1px; }
.admin-menu a:hover { background: var(--pink-l); color: var(--pink-d); }
.admin-menu a:hover .icon { color: var(--pink-d); }
.admin-menu a.is-active { background: linear-gradient(135deg, #ff5c8d, #d6246e); color: #fff; box-shadow: 0 8px 18px rgba(214, 36, 110, .28); }
.admin-menu a.is-active .icon { color: #fff; }
.admin-menu__sep { height: 1px; background: var(--line); margin: 8px 12px; }
.admin-badge { margin-left: auto; font-style: normal; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 800; padding: 0 7px; border-radius: 99px; line-height: 19px; }
.admin-menu a.is-active .admin-badge { background: #fff; color: var(--pink); }
.admin-sidebar__art { margin-top: auto; padding: 20px 22px 26px; text-align: center; }
.admin-sidebar__art img { width: 100%; max-width: 190px; margin: 0 auto 6px; opacity: .95; }
.admin-sidebar__art p { margin: 0; font-family: "Segoe Print", "Bradley Hand", cursive; color: var(--soft); font-size: .95rem; line-height: 1.4; }

.admin-main { min-width: 0; }
.admin-topbar { display: flex; align-items: center; gap: 16px; padding: 14px 28px; background: rgba(255, 252, 251, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.admin-search { position: relative; flex: 1; max-width: 400px; display: flex; align-items: center; }
.admin-search .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.admin-search input { width: 100%; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 0 14px 0 42px; }
.admin-search input:focus { outline: none; border-color: #f6b9c4; box-shadow: 0 0 0 4px var(--pink-l); }
.admin-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.maintenance-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--warn-l); color: var(--warn); font-weight: 800; font-size: .82rem; padding: 8px 14px; border-radius: 99px; white-space: nowrap; }
.maintenance-pill:hover { color: var(--warn); filter: brightness(.97); }
.maintenance-pill .icon { width: 18px; height: 18px; }

.dropdown { position: relative; }
.dropdown summary { list-style: none; cursor: pointer; }
.dropdown summary::-webkit-details-marker { display: none; }
.icon-button { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); }
.icon-button:hover { background: var(--pink-l); }
.dot-badge { position: absolute; top: 4px; right: 4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--pink); color: #fff; font-style: normal; font-size: .7rem; font-weight: 800; line-height: 19px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 99px; font-weight: 700; }
.user-chip:hover { background: var(--pink-l); }
.user-chip__avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #f7889a, var(--pink)); color: #fff; display: grid; place-items: center; }
.user-chip .icon:last-child { width: 16px; height: 16px; color: var(--muted); }
.dropdown__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 40; display: grid; gap: 2px; }
.dropdown__title { margin: 4px 10px 8px; font-weight: 800; display: grid; }
.dropdown__title small { font-weight: 600; color: var(--muted); font-size: .8rem; }
.dropdown__panel a, .dropdown__panel button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .9rem; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.dropdown__panel a:hover, .dropdown__panel button:hover { background: var(--pink-l); color: var(--pink-d); }
.dropdown__panel form { margin: 0; border-top: 1px solid var(--line); padding-top: 4px; margin-top: 4px; }
.dropdown__panel .icon { width: 18px; height: 18px; color: var(--soft); }

.admin-menu-toggle { display: grid; place-items: center; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.admin-menu-toggle:hover { background: var(--pink-l); }
.admin-content { padding: 26px 30px 50px; max-width: 1480px; }

.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head__icon { width: 54px; height: 54px; display: grid; place-items: center; color: var(--pink); }
.page-head__icon .icon { width: 40px; height: 40px; }
.page-head__text { flex: 1; min-width: 220px; }
.page-head__text p { margin: 2px 0 0; color: var(--soft); }
.admin-title { font-size: 1.75rem; margin: 0; color: var(--ink); }
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Paneller ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel__head h2, .panel__title { font-size: 1.12rem; margin: 0 0 14px; }
.panel__head h2 { margin: 0; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.admin-grid-2--wide-left { grid-template-columns: 1.4fr 1fr; }
.stack > .panel:last-child { margin-bottom: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .muted { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters input, .filters select { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }

/* ---------- İstatistik kartları ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 6px 0 22px; }
.stat-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); transition: transform .2s; }
.stat-card:hover { transform: translateY(-3px); color: var(--ink); }
.stat-card__icon { grid-row: span 2; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone-fg); }
.stat-card__value { font-family: var(--display); font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-card__label { color: var(--muted); font-size: .85rem; font-weight: 700; }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfbfe; }
.table .num { text-align: right; }
.table a.strong { font-weight: 800; color: var(--ink); }
.table a.strong:hover { color: var(--pink); }
.actions-col { text-align: right !important; }
.actions { display: flex; justify-content: flex-end; gap: 4px; white-space: nowrap; }
td.actions { display: table-cell; text-align: right; vertical-align: middle; }
td.actions > * + * { margin-left: 4px; }
td.actions .inline-form { display: inline-block; vertical-align: middle; }
td.actions > .icon-action { vertical-align: middle; }
.inline-form { display: inline; margin: 0; }
/* İşlem ikonları: her işlemin sabit rengi (düzenle mavi, görüntüle teal, yayımla yeşil, sil kırmızı) */
.icon-action { --ia: #4f5877; --ia-l: #f0eef4; width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: var(--ia-l); color: var(--ia); cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.icon-action:hover { background: var(--ia); color: #fff; }
.icon-action:active { transform: scale(.94); }
.icon-action:focus-visible { outline: 3px solid color-mix(in srgb, var(--ia) 45%, transparent); outline-offset: 2px; }
.icon-action .icon { width: 18px; height: 18px; stroke-width: 2; }
.icon-action--edit    { --ia: #1d6fd8; --ia-l: #e6f0ff; }
.icon-action--view    { --ia: #0b7d72; --ia-l: #dcf6f1; }
.icon-action--publish { --ia: #15803d; --ia-l: #e2f6e9; }
.icon-action--ok      { --ia: #15803d; --ia-l: #e2f6e9; }
.icon-action--warn    { --ia: #b45309; --ia-l: #fff1dc; }
.icon-action--danger  { --ia: #d61f45; --ia-l: #ffe8ec; }
.icon-action--neutral { --ia: #4f5877; --ia-l: #f2eff5; }
.with-thumb { display: flex; align-items: center; gap: 10px; }
.with-thumb img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--blue-l); }
.cat-dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--tone-bg); color: var(--tone-fg); vertical-align: middle; }
.cat-art { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tone-bg); flex-shrink: 0; }
.cat-art img { width: 30px; height: 30px; }
.cat-cell { display: flex; align-items: center; gap: 10px; }
.tag { display: inline-block; margin-left: 6px; font-size: .7rem; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--warn-l); color: var(--warn); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status--published { background: var(--ok-l); color: var(--ok); }
.status--draft { background: #f0eef4; color: var(--soft); }

.simple-list { list-style: none; margin: 0; padding: 0; display: grid; }
.simple-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.simple-list li:last-child { border-bottom: 0; }
.simple-list span { color: var(--muted); white-space: nowrap; font-size: .82rem; }
.simple-list .is-unread a { font-weight: 800; }
ol.simple-list { counter-reset: n; }

/* ---------- Formlar ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: .86rem; margin-bottom: 6px; }
.field input:not([type=checkbox]):not([type=file]), .field select, .field textarea {
    width: 100%; border: 1px solid #e0dbe6; border-radius: 10px; padding: 10px 12px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-l); }
.field [aria-invalid="true"] { border-color: var(--bad) !important; }
.field__error { color: var(--bad); font-size: .82rem; font-weight: 700; margin: 6px 0 0; }
.field--check { display: flex; align-items: center; gap: 8px; }
.field--check input { width: 18px; height: 18px; accent-color: var(--pink); margin: 0; }
.field--check label { margin: 0; font-weight: 700; }
.field--align { padding-top: 26px; }
.field input[type=file] { font-size: .88rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.6; }
.counter { display: block; text-align: right; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.counter.is-over { color: var(--bad); }
.input-prefix { display: flex; border: 1px solid #e0dbe6; border-radius: 10px; overflow: hidden; }
.input-prefix span { padding: 10px 10px; background: var(--bg); color: var(--muted); font-size: .8rem; white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; align-self: stretch; display: flex; align-items: center; }
.input-prefix input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }

.article-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.article-form__side { position: sticky; top: 84px; }
.cover-preview { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--bg); margin-bottom: 12px; border: 1px solid var(--line); }
.cover-preview--hero { aspect-ratio: auto; max-height: 180px; object-fit: contain; }
.thumb-preview { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; margin-bottom: 8px; }

.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--bg); border: 1px solid #e0dbe6; border-bottom: 0; border-radius: 10px 10px 0 0; }
.editor-toolbar button { border: 1px solid transparent; background: #fff; border-radius: 7px; padding: 4px 10px; font-size: .82rem; font-weight: 700; cursor: pointer; }
.editor-toolbar button:hover { border-color: var(--line); color: var(--pink); }
.editor-toolbar button.is-active { background: var(--ink); color: #fff; }
.editor-toolbar + textarea { border-radius: 0 0 10px 10px !important; }
.editor-preview { border: 1px solid #e0dbe6; border-radius: 0 0 10px 10px; padding: 16px 20px; min-height: 300px; background: #fff; }
.editor-preview h2 { font-size: 1.4rem; margin-top: 1em; }
.editor-preview li::marker { color: var(--pink); }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 800; font-size: .9rem; cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, #ff5c8d, #d6246e); color: #fff; box-shadow: 0 6px 14px rgba(214, 36, 110, .25); }
.btn--primary:hover { color: #fff; }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--pink); color: var(--pink); }
.btn--danger { background: var(--bad-l); color: var(--bad); }
.btn--sm { height: 34px; padding: 0 12px; font-size: .82rem; }
.btn--block { width: 100%; margin-top: 8px; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Uyarılar ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 700; font-size: .9rem; }
.alert--success { background: var(--ok-l); color: #1e7059; }
.alert--error { background: var(--bad-l); color: #a83333; }
.alert--info { background: var(--blue-l); color: #2c5f9e; }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pagination__item { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; font-weight: 800; color: var(--ink); background: #fff; }
.pagination__item.is-active { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ---------- Medya ---------- */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px; border: 2px dashed #e0d2e2; border-radius: var(--radius); text-align: center; color: var(--soft); cursor: pointer; margin-bottom: 14px; transition: background .2s, border-color .2s; }
.dropzone:hover, .dropzone.is-drag { background: var(--pink-l); border-color: var(--pink); }
.dropzone .icon--xl { color: var(--pink); }
.dropzone input { margin-top: 8px; }
.media-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.media-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.media-item img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }
.media-item__info { padding: 8px 10px 0; display: grid; font-size: .82rem; }
.media-item__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item__actions { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 10px; gap: 6px; }

/* ---------- Mesajlar ---------- */
.message-list { list-style: none; margin: 0; padding: 0; }
.message-list li a { display: grid; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.message-list li a span { color: var(--muted); font-size: .82rem; }
.message-list li a strong { font-weight: 600; }
.message-list li.is-unread a strong { font-weight: 800; }
.message-list li.is-unread a::before { content: ""; }
.message-list li.is-current a, .message-list li a:hover { background: var(--pink-l); }
.message-body { background: var(--bg); border-radius: 10px; padding: 16px; white-space: normal; line-height: 1.7; }

/* ---------- Giriş ---------- */
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 20% 20%, #ffe9ec, transparent 45%), radial-gradient(circle at 80% 80%, #e4efff, transparent 45%), #fbf8fb; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 34px 30px; box-shadow: 0 20px 50px rgba(44, 49, 80, .12); text-align: center; }
.login-card__logo { margin: 0 auto 10px; width: 84px; }
.login-card h1 { font-size: 1.6rem; margin-bottom: 4px; }
.login-card form { text-align: left; margin-top: 18px; }
.login-card__back { display: inline-block; margin-top: 18px; font-size: .88rem; font-weight: 700; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-grid-2, .admin-grid-2--wide-left { grid-template-columns: 1fr; }
    .article-form { grid-template-columns: 1fr; }
    .article-form__side { position: static; }
}
@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 60; transform: translateX(-105%); transition: transform .25s; box-shadow: 0 10px 40px rgba(0, 0, 0, .15); }
    body.sidebar-open .admin-sidebar { transform: none; }
    body.sidebar-open::after { content: ""; position: fixed; inset: 0; background: rgba(44, 49, 80, .35); z-index: 50; }
    .admin-menu-toggle { display: grid; }
    .admin-topbar { padding: 12px 16px; }
    .admin-title { font-size: 1.2rem; }
    .admin-user { display: none; }
    .admin-content { padding: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .field--align { padding-top: 0; }

    /* Tablolar kart görünümüne geçer */
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 4px; }
    .table td { border: 0; padding: 6px 10px; text-align: left !important; }
    .table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; }
    .actions { justify-content: flex-start; }
    .table td.actions { display: block; text-align: left !important; }
}
@media (max-width: 520px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 12px; grid-template-columns: 1fr; }
    .stat-card__icon { grid-row: auto; width: 40px; height: 40px; margin-bottom: 6px; }
    .panel { padding: 16px; }
}

/* ==========================================================
   v2 — Site Ana Sayfası, ana sayfa düzenleyici, yorumlar, sayfalar
   ========================================================== */
body.admin { background: var(--bg); }
.panel { border-radius: 18px; border-color: var(--line); box-shadow: var(--shadow); }
.panel--warn { border-color: #f5cf8f; background: #fffaf0; }
.panel__title--icon { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; margin: 0; }
.panel > .panel__title--icon { margin-bottom: 16px; }
.panel__title--icon .icon { color: var(--pink); width: 22px; height: 22px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; color: var(--pink); font-weight: 800; font-size: .84rem; white-space: nowrap; }
.empty { color: var(--muted); padding: 14px 0; margin: 0; }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }

/* Butonlar */
.btn--outline { background: #fff; border: 1.5px solid #f3c3cd; color: var(--ink); }
.btn--outline:hover { border-color: var(--pink); color: var(--pink-d); }
.btn--outline .icon { color: var(--pink); }
.btn--ok { background: var(--ok-l); color: var(--ok); }
.btn--ok:hover { color: var(--ok); filter: brightness(.97); }
.btn--primary .icon { color: #fff; }

/* İstatistik kartları */
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0 0 22px; }
.stat-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #fff 55%, var(--tone-bg) 220%); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); grid-template-columns: none; }
.stat-card__icon { width: 58px; height: 58px; border-radius: 16px; background: var(--tone-bg); color: var(--tone-fg); display: grid; place-items: center; flex-shrink: 0; grid-row: auto; }
.stat-card__icon .icon { width: 28px; height: 28px; }
.stat-card__body { display: grid; flex: 1; min-width: 0; }
.stat-card__value { font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-card__label { color: var(--soft); font-size: .92rem; font-weight: 600; margin-top: 4px; }
.stat-card__go { width: 28px; height: 28px; border-radius: 50%; background: var(--tone-bg); color: var(--tone-fg); display: grid; place-items: center; transform: rotate(-90deg); }
.stat-card__go .icon { width: 16px; height: 16px; }

/* Izgara */
.site-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.site-grid__main, .site-grid__side { display: grid; gap: 20px; min-width: 0; }
.site-grid .panel { margin-bottom: 0; }
.site-grid .admin-grid-2 { gap: 20px; }

/* Önizleme */
.preview__tools { display: flex; align-items: center; gap: 6px; }
.segmented { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.segmented button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 12px; border-radius: 9px; font-weight: 700; font-size: .82rem; color: var(--soft); cursor: pointer; }
.segmented button.is-active { background: #fff; color: var(--pink-d); box-shadow: 0 2px 8px rgba(31, 42, 77, .08); }
.preview__frame { position: relative; height: 520px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: repeating-linear-gradient(45deg, #fdf6f4, #fdf6f4 12px, #fbf0ee 12px, #fbf0ee 24px); }
.preview__frame iframe { position: absolute; top: 0; left: 0; width: 1280px; border: 0; transform-origin: 0 0; background: #fff; }
.preview__frame[data-device="mobile"] iframe { left: 50%; width: 390px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.preview .hint { margin-top: 10px; }

.section-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: sec; }
.section-chips li { counter-increment: sec; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--pink-xl); border: 1px solid var(--line); font-weight: 700; font-size: .88rem; }
.section-chips li::before { content: counter(sec); width: 22px; height: 22px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font-size: .72rem; }
.section-chips small { color: var(--ok); font-weight: 700; }
.section-chips .is-off { opacity: .55; }
.section-chips .is-off small { color: var(--muted); }

/* Hızlı işlemler */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 12px 6px; border-radius: 14px; background: var(--tone-bg); color: var(--tone-fg); text-align: center; font-size: .8rem; font-weight: 700; line-height: 1.25; transition: transform .2s, box-shadow .2s; }
.quick-action:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(31, 42, 77, .08); color: var(--tone-fg); }
.quick-action .icon { width: 28px; height: 28px; }
.quick-action span { color: var(--ink); }

/* Listeler */
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.row-list li:last-child { border-bottom: 0; }
.row-list img { width: 52px; height: 40px; border-radius: 9px; object-fit: cover; background: var(--bg); }
.row-list__title { color: var(--ink); font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-list__meta { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.row-list__views { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .8rem; min-width: 46px; justify-content: flex-end; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list__n { width: 28px; height: 28px; border-radius: 50%; background: var(--pink-l); color: var(--pink-d); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; font-size: .82rem; }
.rank-list li:nth-child(2) .rank-list__n { background: var(--warn-l); color: var(--warn); }
.rank-list li:nth-child(3) .rank-list__n { background: var(--blue-l); color: var(--blue); }
.rank-list a { flex: 1; color: var(--ink); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list__v { color: var(--muted); font-size: .82rem; }
.status-list { list-style: none; margin: 0 0 16px; padding: 0; }
.status-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.status-list li .icon { color: var(--soft); }
.status-list li span { flex: 1; color: var(--soft); }
.status-list strong { font-weight: 700; text-align: right; }
.state-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; padding: 5px 10px; border-radius: 99px; }
.state-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state-pill--ok { background: var(--ok-l); color: var(--ok); }
.state-pill--warn { background: var(--warn-l); color: var(--warn); }

/* Ana sayfa düzenleyici */
.tabs { position: sticky; top: 72px; z-index: 15; display: flex; gap: 6px; overflow-x: auto; padding: 8px; margin-bottom: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 14px; scrollbar-width: none; }
.tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: .86rem; color: var(--soft); }
.tabs a:hover, .tabs a.is-active { background: var(--pink-l); color: var(--pink-d); }
.home-editor .panel { scroll-margin-top: 140px; }
.editor-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.image-field { background: var(--cream); border: 1px dashed #f0d4d9; border-radius: 14px; padding: 14px; }
.cover-preview--contain { object-fit: contain; background: #fff; aspect-ratio: 16 / 10; }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: background .2s; }
.order-item:hover { background: var(--pink-xl); }
.order-item .switch { flex: 1; }
.order-item__text { display: grid; }
.order-item__text small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.order-item__btns { display: flex; gap: 2px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 42px; height: 24px; border-radius: 99px; background: #e4dde3; position: relative; flex-shrink: 0; transition: background .2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--pink); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 3px solid rgba(240, 96, 122, .35); outline-offset: 2px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.check-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; font-size: .9rem; }
.check-card:has(input:checked) { border-color: #f3b3c0; background: var(--pink-xl); }
.check-card input { width: 18px; height: 18px; accent-color: var(--pink); }
.check-card.is-muted { opacity: .6; }
.serp { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; max-width: 640px; }
.serp__url { color: #1a7f37; font-size: .8rem; }
.serp__title { color: #1a0dab; font-size: 1.1rem; font-family: Arial, sans-serif; }
.serp__desc { color: #4d5156; font-size: .85rem; font-family: Arial, sans-serif; }
.save-bar { position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 18px; margin: 10px -4px 0; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 -6px 20px rgba(31, 42, 77, .06); }
.save-bar .hint { margin: 0 auto 0 0; }

/* Yorumlar */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tabs a { padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: .86rem; color: var(--soft); background: #fff; border: 1px solid var(--line); }
.filter-tabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-tabs em { font-style: normal; opacity: .7; margin-left: 4px; }
.bulk-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.bulk-bar label { display: flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 700; font-size: .88rem; }
.comment-admin-list { list-style: none; margin: 0; padding: 0; }
.comment-admin { display: flex; gap: 12px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.comment-admin.is-pending { background: linear-gradient(90deg, var(--warn-l), transparent 40%); }
.comment-admin > input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--pink); }
.comment-admin__body { flex: 1; min-width: 0; }
.comment-admin__meta { margin: 0 0 6px; font-size: .84rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.comment-admin__meta strong { color: var(--ink); }
.comment-admin__text { margin: 0 0 6px; white-space: normal; }
.comment-admin__article { margin: 0; font-size: .82rem; color: var(--muted); }
.comment-admin__actions { display: flex; gap: 2px; align-items: flex-start; }
.status--pending { background: var(--warn-l); color: var(--warn); }
.status--approved { background: var(--ok-l); color: var(--ok); }
.status--spam { background: var(--bad-l); color: var(--bad); }

/* Kenar menü daraltma (masaüstü) */
body.sidebar-collapsed .admin-shell { grid-template-columns: 0 1fr; }
body.sidebar-collapsed .admin-sidebar { visibility: hidden; }

@media (max-width: 1280px) {
    .site-grid { grid-template-columns: minmax(0, 1fr) 320px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .site-grid { grid-template-columns: 1fr; }
    .editor-cols { grid-template-columns: 1fr; }
    .preview__frame { height: 440px; }
}
@media (max-width: 860px) {
    .admin-topbar { gap: 8px; padding: 10px 12px; }
    .admin-search { max-width: none; }
    .user-chip__name, .user-chip > .icon:last-child, .maintenance-pill span { display: none; }
    .maintenance-pill { padding: 8px; }
    .admin-title { font-size: 1.4rem; }
    .page-head__icon { display: none; }
    .page-head__actions { width: 100%; }
    .page-head__actions .btn { flex: 1; }
    .form-row--3 { grid-template-columns: 1fr; }
    .row-list li { grid-template-columns: 44px minmax(0, 1fr) auto; }
    .row-list__meta, .row-list__views { display: none; }
    .tabs { top: 64px; }
    .save-bar { flex-wrap: wrap; }
    .save-bar .hint { flex-basis: 100%; }
    .save-bar .btn { flex: 1; }
    .preview__frame { height: 420px; }
    body.sidebar-collapsed .admin-shell { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .stat-card { padding: 14px; gap: 10px; }
    .stat-card__icon { width: 44px; height: 44px; }
    .stat-card__value { font-size: 1.5rem; }
    .stat-card__label { font-size: .8rem; }
    .stat-card__go { display: none; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-search { display: none; }
    .segmented span { display: none; }
}
.admin-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-brand > span { min-width: 0; }
.admin-brand { font-size: 1.3rem; }
@media (max-width: 1100px) { .admin-grid-2, .admin-grid-2--wide-left { grid-template-columns: minmax(0, 1fr); } }
.row-list li { grid-template-columns: 52px minmax(0, 1fr) auto auto; }
.row-list__main { display: grid; min-width: 0; }
.row-list__meta { font-size: .78rem; }
button.icon-button { border: 0; background: none; cursor: pointer; }
@media (max-width: 860px) { .row-list li { grid-template-columns: 44px minmax(0, 1fr) auto; } .row-list__meta { display: block; } }
.cover-preview--contain { max-height: 220px; width: 100%; }
.slide-box { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: var(--pink-xl); }
.slide-box summary { cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .95rem; }
.slide-box summary small { color: var(--muted); }
.slide-box[open] summary { margin-bottom: 12px; }
.cover-preview--empty { display: grid; place-items: center; color: var(--muted); font-weight: 700; border: 1px dashed #e8cfd5; }
.order-item img { width: 34px; height: 34px; }
.perf-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.perf-bars li { display: grid; grid-template-columns: 130px 1fr 60px; align-items: center; gap: 10px; font-size: .86rem; }
.perf-bars span:first-child { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perf-bars__track { height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.perf-bars__fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f7889a, var(--pink)); }
.perf-bars li > span:last-child { text-align: right; color: var(--muted); }
.perf-total { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.perf-total div { display: grid; }
.perf-total strong { font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.perf-total span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.status--scheduled { background: var(--blue-l); color: var(--blue); }
.block-area-title { font-size: 1rem; margin: 18px 0 8px; color: var(--ink); }
.block-row { align-items: flex-start; }
.block-row .switch { padding-top: 22px; flex: 0 0 auto; }
.block-row__fields { flex: 1; display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(140px, 1fr) 80px 110px minmax(140px, 1fr); gap: 8px; min-width: 0; }
.block-row__fields label { display: grid; gap: 3px; font-size: .74rem; font-weight: 800; color: var(--muted); margin: 0; }
.block-row__fields label[hidden] { display: none; }
.block-row__fields select, .block-row__fields input { height: 38px; border: 1px solid #e0dbe6; border-radius: 10px; padding: 0 10px; background: #fff; font-size: .88rem; color: var(--ink); font-weight: 600; min-width: 0; }
.block-row.is-empty { background: transparent; border-style: dashed; }
.block-row.is-empty .block-row__fields > label:not(:first-child), .block-row.is-empty .switch, .block-row.is-empty .order-item__btns { visibility: hidden; }
.block-row .order-item__btns { padding-top: 20px; }
.chips-label { margin: 10px 0 6px; font-weight: 800; font-size: .82rem; color: var(--muted); }
@media (max-width: 1100px) { .block-row__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .block-row__fields { grid-template-columns: minmax(0, 1fr); } .block-row { flex-wrap: wrap; } }
.block-row__fields { display: flex; flex-wrap: wrap; gap: 8px; }
.block-row__fields > label { flex: 1 1 150px; }
.block-row__fields > label:first-child { flex: 1.4 1 220px; }
.block-row__fields > label[data-opt="count"] { flex: 0 0 80px; }
.block-row__fields > label[data-opt="slot"] { flex: 0 0 120px; }
.admin-brand { flex-direction: column; align-items: flex-start; gap: 4px; }
.admin-logo { display: block; width: 100%; max-width: 210px; height: auto; }
.admin-brand > small { font-family: var(--font); color: var(--soft); font-size: .78rem; font-weight: 700; }
.login-card__logo { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto 10px; }
.login-card picture { display: block; }
.logo-field__preview { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; display: inline-block; }
.admin-brand picture { display: block; width: 100%; }
.admin-logo { width: 100%; max-width: 220px; }
.site-grid__main, .site-grid__side { grid-template-columns: minmax(0, 1fr); }
.site-grid__main > *, .site-grid__side > * { min-width: 0; }
.admin-brand img.admin-logo, .logo-field__preview img.admin-logo { width: 100%; max-width: 220px; height: auto; }


/* İçerik sağlığı */
.health-bars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.health-bars li { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 28px; gap: 10px; align-items: center; font-size: .86rem; font-weight: 700; }
.health-bars li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.health-bars__track { height: 8px; border-radius: 99px; background: #f0eef4; overflow: hidden; }
.health-bars__track span { display: block; height: 100%; border-radius: inherit; background: var(--ok, #1f9d6b); }
.health-bars li.is-low .health-bars__track span { background: #f2a33a; }
.health-bars li strong { text-align: right; }
.issue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.issue { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: .75rem; font-weight: 800; }
.issue--error { background: #ffe1e4; color: #b4232f; }
.issue--warn { background: #fff1d6; color: #8a5300; }
.issue--info { background: #eef0f6; color: #555b70; }
.health-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.health-summary div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.health-summary strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.health-summary span { color: var(--muted); font-size: .82rem; font-weight: 700; }
@media (max-width: 760px) { .health-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* SEO paneli */
.seo-panel .panel__head { margin-bottom: 12px; }
.field__labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--pink); font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.seo-score { display: inline-flex; align-items: baseline; gap: 2px; padding: 6px 14px; border-radius: 99px; background: #f0eef4; color: var(--soft); font-weight: 800; }
.seo-score strong { font-size: 1.25rem; }
.seo-score span { font-size: .78rem; }
.seo-score.is-good { background: #dcf5e8; color: #157a50; }
.seo-score.is-ok { background: #fff1d6; color: #8a5300; }
.seo-score.is-bad { background: #ffe1e4; color: #b4232f; }
.seo-meter { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 6px; }
.seo-meter span { display: block; height: 5px; border-radius: 99px; background: #d9d5e2; width: 0; transition: width .2s; }
.seo-meter em { font-style: normal; font-size: .75rem; color: var(--muted); }
.seo-meter.is-good span { background: #22a06b; } .seo-meter.is-good em { color: #157a50; }
.seo-meter.is-ok span { background: #f2a33a; } .seo-meter.is-ok em { color: #8a5300; }
.seo-meter.is-bad span { background: #e5484d; } .seo-meter.is-bad em { color: #b4232f; }
.seo-preview { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 4px 0 16px; background: #fff; }
.seo-preview__tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.seo-preview__tabs button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 12px; font: inherit; font-size: .78rem; font-weight: 800; color: var(--soft); cursor: pointer; }
.seo-preview__tabs button.is-active { background: var(--ink, #2b2540); color: #fff; border-color: transparent; }
.serp { font-family: Arial, Helvetica, sans-serif; max-width: 600px; }
.serp--mobile { max-width: 360px; }
.serp__site { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.serp__fav { width: 26px; height: 26px; border-radius: 50%; background: #fde3ea url("../icons/favicon-32.png") center / 18px no-repeat; flex-shrink: 0; }
.serp__site strong { display: block; font-size: 14px; color: #202124; font-weight: 400; }
.serp__site small { display: block; font-size: 12px; color: #4d5156; word-break: break-all; }
.serp__title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin: 2px 0 3px; }
.serp--mobile .serp__title { font-size: 18px; }
.serp__desc { font-size: 14px; line-height: 1.58; color: #4d5156; }
.serp__desc b { color: #202124; }
.seo-checks h3 { font-size: .95rem; margin: 0 0 8px; }
.seo-checks ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.seo-checks li { position: relative; padding-left: 22px; font-size: .86rem; line-height: 1.45; }
.seo-checks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; }
.seo-checks li.is-ok::before { background: #f2a33a; }
.seo-checks li.is-good::before { background: #22a06b; }
.seo-advanced { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.seo-advanced summary { cursor: pointer; font-weight: 800; font-size: .9rem; padding: 4px 0 10px; }

/* ---------- Güncelleme 8: ziyaretçi istatistikleri ---------- */
.stat-card__sub { display: block; color: var(--muted); font-size: .76rem; font-weight: 700; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-grid--traffic .stat-card:hover { transform: none; }
.stats-note { display: block; margin: -8px 0 20px; color: var(--soft); font-size: .82rem; line-height: 1.5; }
.stats-note .icon { color: var(--ok, #1f9d6b); vertical-align: -2px; margin-right: 4px; }
.traffic .panel__head { flex-wrap: wrap; gap: 10px; }
.traffic__totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.traffic__totals div { background: var(--pink-xl, #fff6f8); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.traffic__totals strong { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.traffic__totals span { color: var(--muted); font-size: .76rem; font-weight: 700; }
.chart-wrap { width: 100%; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart__grid { stroke: #eee8f1; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__axis { fill: #9a93a8; font-size: 11px; font-family: inherit; }
.chart__bar { fill: #ff8fb1; }
.chart__bar:hover { fill: #f0507f; }
.chart__line { fill: none; stroke: #5a8dee; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart__dot { fill: #fff; stroke: #5a8dee; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; font-weight: 700; color: var(--soft); margin-top: 10px; }
.chart-legend__bar { width: 12px; height: 12px; border-radius: 3px; background: #ff8fb1; }
.chart-legend__line { width: 18px; height: 3px; border-radius: 3px; background: #5a8dee; margin-left: 10px; }
.chart-data { margin-top: 10px; }
.chart-data summary { cursor: pointer; font-size: .82rem; font-weight: 800; color: var(--pink); }
.chart-data .table-wrap { max-height: 280px; overflow: auto; margin-top: 8px; }
.table--compact td, .table--compact th { padding: 6px 10px; }
.rank-list--wide li { align-items: center; }
.rank-list__main { display: grid; min-width: 0; flex: 1; }
.rank-list__main a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.rank-list__main small { color: var(--muted); font-size: .74rem; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.mini-stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; }
.mini-stats strong { font-family: var(--display); font-size: 1.15rem; margin-right: 6px; }
.mini-stats span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.row--warn td { background: #fff6e8; }
.row--warn td:first-child { box-shadow: inset 4px 0 0 #f2a33a; }
.health-alert { border: 1px solid #f6c77a; background: #fff8ea; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-weight: 700; color: #7a4a00; }

/* Mobil iyileştirmeler */
@media (max-width: 860px) {
    .site-grid { grid-template-columns: 1fr; }
    .traffic__totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .row--warn { border-color: #f6c77a !important; background: #fff8ea; }
    .row--warn td { background: transparent; box-shadow: none !important; }
    .health-bars li { grid-template-columns: minmax(0, 1fr) 80px 28px; }
}
@media (max-width: 520px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
    .stat-card__icon { width: 40px; height: 40px; border-radius: 12px; }
    .stat-card__icon .icon { width: 22px; height: 22px; }
    .stat-card__value { font-size: 1.5rem; }
    .stat-card__label { font-size: .8rem; }
    .stat-card__sub { white-space: normal; }
    .stat-card__go { display: none; }
    .chart__axis { font-size: 20px; }
    .traffic .segmented { width: 100%; }
    .traffic .segmented button { flex: 1; justify-content: center; }
    .rank-list__main a { white-space: normal; }
}
.health-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .health-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .health-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .health-summary strong { font-size: 1.3rem; } }
code.break { word-break: break-all; white-space: normal; }
.health-alert .icon { vertical-align: -3px; margin-right: 4px; }
.panel__head { flex-wrap: wrap; row-gap: 8px; }
.panel ul code, .panel p code { word-break: break-all; }
@media (max-width: 520px) { .panel__head .btn { white-space: normal; } }
@media (max-width: 860px) {
    .simple-list li { flex-wrap: wrap; gap: 4px 10px; }
    .simple-list li > span, .simple-list li > a { white-space: normal; min-width: 0; }
}

/* Güncelleme 9: ana sayfa görünüm seçimi */
.style-choice { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.style-choice .check-card { align-items: flex-start; font-weight: 400; line-height: 1.45; }
.style-choice .check-card input { margin-top: 4px; }

/* ===== Güncelleme 10: görsel yazı editörü ===== */
.structure-help { margin: 4px 0 10px; border: 1px dashed #e9cfd6; border-radius: 12px; background: var(--pink-xl); padding: 8px 14px; font-size: .88rem; }
.structure-help summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.structure-help ul { margin: 8px 0 4px; padding-left: 18px; color: var(--soft); line-height: 1.55; }
.ve { border: 1px solid #e0dbe6; border-radius: 12px; background: #fff; }
.ve:focus-within { border-color: #f3b3c0; box-shadow: 0 0 0 3px var(--pink-l); }
.ve-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--bg); border-bottom: 1px solid #e0dbe6; border-radius: 12px 12px 0 0; }
.ve-group { display: flex; gap: 3px; padding-right: 6px; border-right: 1px solid var(--line); }
.ve-group:last-child { border-right: 0; }
.ve-toolbar button { min-height: 38px; min-width: 38px; border: 1px solid transparent; background: #fff; border-radius: 8px; padding: 4px 10px; font: inherit; font-size: .84rem; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap; }
.ve-toolbar button small { font-size: .68rem; color: var(--muted); margin-left: 2px; }
.ve-toolbar button:hover { border-color: var(--line); color: var(--pink); }
.ve-toolbar button.is-active { background: var(--ink); color: #fff; }
.ve-toolbar button.is-active small { color: #dfe3f3; }
.ve-toolbar.is-source button:not([data-cmd="source"]):not([data-cmd="preview"]) { opacity: .45; }
.ve-area { min-height: 380px; max-height: 70vh; overflow-y: auto; padding: 18px 22px; outline: 0; line-height: 1.7; font-size: 1rem; color: var(--ink); word-wrap: break-word; }
.ve-area:empty::before { content: attr(data-placeholder); color: var(--muted); }
.ve-area h2 { font-family: var(--display); font-size: 1.45rem; margin: 1.2em 0 .4em; color: var(--ink); position: relative; }
.ve-area h3 { font-family: var(--display); font-size: 1.15rem; margin: 1em 0 .3em; position: relative; }
.ve-area h2::before, .ve-area h3::before { position: absolute; left: -20px; top: .35em; font: 800 .6rem/1 var(--font); color: #fff; background: var(--pink); border-radius: 4px; padding: 2px 3px; }
.ve-area h2::before { content: "H2"; }
.ve-area h3::before { content: "H3"; background: #8b93b8; }
.ve-area p { margin: 0 0 .8em; }
.ve-area a { color: #2c68b5; text-decoration: underline; }
.ve-area blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--pink); background: var(--pink-xl); border-radius: 0 10px 10px 0; }
.ve-area img { max-width: 100%; height: auto; border-radius: 12px; }
.ve-area figure { margin: 1em 0; }
.ve-area mark[data-tpl] { background: #fff2b3; color: #7a5600; border-radius: 4px; padding: 0 2px; cursor: text; }
.ve-area li::marker { color: var(--pink); }
textarea.ve-source { border: 0 !important; border-radius: 0 0 12px 12px !important; min-height: 380px; width: 100%; box-sizing: border-box; }
.ve-status { padding: 6px 12px; font-size: .82rem; font-weight: 700; color: #1e7059; background: var(--ok-l); border-radius: 0 0 12px 12px; }
.seo-checks h3 small { font-weight: 600; color: var(--muted); font-size: .75rem; }
.seo-checks li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fix-btn { flex: none; border: 1px solid #f3b3c0; background: #fff; color: var(--pink-d); border-radius: 999px; padding: 4px 12px; min-height: 30px; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.fix-btn:hover { background: var(--pink-l); }
.link-suggest { margin: 16px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffdfb; }
.link-suggest h3 { margin: 0 0 4px; font-size: .95rem; }
.link-suggest ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.link-suggest li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .88rem; }
.link-suggest li span { min-width: 0; }
.link-suggest li strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.link-suggest li small { color: var(--muted); }
/* Diyaloglar */
.ve-dialog { border: 0; border-radius: 18px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); color: var(--ink); }
.ve-dialog::backdrop { background: rgba(31, 42, 77, .45); }
.ve-dialog--wide { width: min(900px, calc(100vw - 24px)); }
.ve-dialog--full { width: min(1240px, calc(100vw - 16px)); height: calc(100vh - 32px); }
.ve-dialog__in { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; max-height: inherit; box-sizing: border-box; }
.ve-dialog--full .ve-dialog__in { height: 100%; }
.ve-dialog h2 { margin: 0; font-family: var(--display); font-size: 1.3rem; }
.ve-dialog input[type=search], .ve-dialog input[type=url], .ve-dialog input[type=text] { width: 100%; box-sizing: border-box; min-height: 42px; border: 1px solid #e0dbe6; border-radius: 10px; padding: 8px 12px; font: inherit; }
.ve-dialog__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ve-dialog__head h2 { flex: 1; }
.ve-dialog__foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.seg { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; color: var(--soft); min-height: 36px; }
.seg button.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(31, 42, 77, .1); }
.pick-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 50vh; display: grid; gap: 6px; }
.pick-list button { width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; font: inherit; cursor: pointer; min-height: 44px; }
.pick-list button:hover, .pick-list button:focus-visible { border-color: #f3b3c0; background: var(--pink-xl); }
.pick-list strong { display: block; font-size: .92rem; }
.pick-list small { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tpl-card { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 14px; cursor: pointer; font: inherit; display: grid; gap: 4px; min-height: 44px; }
.tpl-card:hover, .tpl-card:focus-visible { border-color: #f3b3c0; background: var(--pink-xl); }
.tpl-card strong { font-size: 1rem; }
.tpl-card span { font-size: .82rem; color: var(--soft); }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; overflow-y: auto; max-height: 52vh; padding: 2px; }
.img-grid__item { border: 2px solid transparent; border-radius: 10px; padding: 0; background: var(--bg); cursor: pointer; aspect-ratio: 16 / 10; overflow: hidden; }
.img-grid__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-grid__item.is-picked, .img-grid__item:focus-visible { border-color: var(--pink); }
.img-alt { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.img-alt label { grid-column: 1 / -1; font-weight: 800; font-size: .85rem; }
.pv-frame { flex: 1; min-height: 0; background: var(--bg); border-radius: 12px; display: flex; justify-content: center; overflow: hidden; }
.pv-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.pv-frame.is-mobile iframe { width: 390px; max-width: 100%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.pub-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.pub-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
@media (max-width: 640px) {
    .ve-toolbar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
    .ve-group { flex: none; }
    .ve-area { padding: 14px 14px 14px 26px; min-height: 300px; font-size: 1.02rem; }
    .ve-dialog__in { padding: 14px; }
    .img-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
    .seo-checks li, .link-suggest li, .pub-list li { flex-wrap: wrap; }
}
.article-form__main, .article-form__side, .ve, .ve-toolbar { min-width: 0; max-width: 100%; }

/* ===== Güncelleme 15: yeni ana panel ===== */
.dash-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden;
    background: linear-gradient(120deg, #fff4ef 0%, #ffe9ef 55%, #fff6ea 100%); border: 1px solid #f6dfe3; border-radius: 22px; padding: 26px 28px; margin-bottom: 20px; }
.dash-hero__title { font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin: 0 0 4px; color: var(--ink); line-height: 1.15; }
.dash-hero__title span { color: var(--pink-d); }
.dash-hero p { margin: 0 0 16px; color: var(--soft); font-weight: 600; }
.dash-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-hero__actions .btn--outline { background: #fff; }
.dash-hero__img { width: 210px; height: auto; flex: none; margin: -26px -10px -30px 0; filter: drop-shadow(0 10px 18px rgba(222, 72, 101, .15)); }

.dash-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 12px; }
.dash-stat { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon icon" "value value" "label label" "sub sub"; align-content: start; gap: 2px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-width: 0;
    background-image: linear-gradient(180deg, color-mix(in srgb, var(--tone-bg) 45%, #fff) 0%, #fff 70%); transition: transform .15s ease, box-shadow .15s ease; }
a.dash-stat:hover, a.dash-stat:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dash-stat__icon { grid-area: icon; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone-fg); margin-bottom: 8px; }
.dash-stat__value { grid-area: value; font-family: var(--display); font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.dash-stat__label { grid-area: label; font-weight: 700; color: var(--soft); font-size: .88rem; }
.dash-stat .stat-card__sub { grid-area: sub; margin-top: 4px; font-size: .76rem; color: var(--muted); font-weight: 600; }
.stat-card__sub.is-up, .traffic__totals em.is-up { color: var(--ok); }
.stat-card__sub.is-down, .traffic__totals em.is-down { color: var(--bad); }
.traffic__totals em { display: block; font-style: normal; font-size: .74rem; font-weight: 700; color: var(--muted); margin-top: 2px; }
.dash-hero + .alert, .dash-hero ~ .alert { margin-bottom: 14px; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; margin: 20px 0; }
.dash-grid__main, .dash-grid__side { display: grid; gap: 20px; min-width: 0; }
.dash-grid .panel, .dash-grid--3 > * { margin-bottom: 0; min-width: 0; }
.dash-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.traffic { margin-top: 8px; }

.dash-posts { list-style: none; margin: 0; padding: 0; }
.dash-posts li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.dash-posts li:first-child { border-top: 0; }
.dash-posts img { width: 72px; height: 48px; object-fit: cover; border-radius: 10px; background: var(--pink-xl); }
.dash-posts__title { display: block; font-weight: 800; color: var(--ink); text-decoration: none; line-height: 1.3; overflow-wrap: anywhere; }
.dash-posts__title:hover { color: var(--pink-d); }
.dash-posts__meta { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.dash-posts__views { display: inline-flex; align-items: center; gap: 4px; color: var(--soft); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.dash-posts__acts { display: inline-flex; gap: 4px; }

.dash-comments { list-style: none; margin: 0; padding: 0; }
.dash-comments li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.dash-comments li:first-child { border-top: 0; }
.dash-comments__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-l); color: var(--pink-d); font-weight: 800; }
.dash-comments__main p { margin: 2px 0; font-size: .88rem; color: var(--soft); overflow-wrap: anywhere; }
.dash-comments__main small { color: var(--muted); font-size: .76rem; }
.dash-comments__acts { display: flex; gap: 4px; }
.quick-grid--8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.quick-grid--8 .quick-action { min-height: 92px; text-align: center; }

/* Bildirimler */
.notif-panel { width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; }
.notif-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.notif-item, .notif-list a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.notif-item:hover, .notif-list a:hover { background: var(--pink-xl); }
.notif-item .icon, .notif-list .icon { flex: none; width: 20px; height: 20px; color: var(--soft); margin-top: 2px; }
.notif-item span, .notif-list span { font-size: .86rem; line-height: 1.4; }
.notif-item small, .notif-list small { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; }
.notif-item.is-new, .notif-list li.is-new a { background: #fff4f6; }
.notif-item.is-new .icon, .notif-list li.is-new .icon { color: var(--pink-d); }
.notif-empty { color: var(--muted); font-size: .88rem; margin: 6px 8px; }
.notif-all { display: block; text-align: center; padding: 8px; font-weight: 800; color: var(--pink-d); text-decoration: none; border-top: 1px solid var(--line); margin-top: 4px; }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

/* Yedekleme ve sistem */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.panel--danger { border-color: #f6c7cf; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
.status-list--check li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0 8px 22px; border-top: 1px solid var(--line); position: relative; font-size: .88rem; }
.status-list--check li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: #c9cddb; }
.status-list--check li.is-ok::before { background: var(--ok); }
.status-list--check li.is-bad::before { background: var(--bad); }
.status-list--check small { display: block; color: var(--muted); font-size: .74rem; }
.status-list--check strong { text-align: right; overflow-wrap: anywhere; }
.status-list--check { list-style: none; margin: 0; padding: 0; }
.mini-title { font-size: .85rem; margin: 12px 0 6px; }
.log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.log-list li { font: .74rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border-radius: 8px; padding: 6px 8px; overflow-wrap: anywhere; color: var(--soft); }
tr.is-warn td { background: #fff7ed; }

/* Toplu işlemler */
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.bulk-bar select { min-height: 38px; }
.bulk-bar .bulk-pass { min-height: 38px; border: 1px solid #e0dbe6; border-radius: 10px; padding: 0 10px; font: inherit; }
.table .check-col { width: 36px; }

/* Erişilebilirlik: görünür odak */
.admin a:focus-visible, .admin button:focus-visible, .admin summary:focus-visible, .admin input:focus-visible, .admin select:focus-visible, .admin textarea:focus-visible {
    outline: 3px solid #f08aa0; outline-offset: 2px; }

@media (max-width: 1400px) { .dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .quick-grid--8 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .dash-grid, .dash-grid--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
    .dash-hero { padding: 18px; }
    .dash-hero__img { width: 120px; margin: -10px -6px -16px 0; }
    .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dash-stat { padding: 12px; }
    .dash-stat__value { font-size: 1.4rem; }
    .dash-posts li { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img main acts" "img status views"; gap: 4px 10px; }
    .dash-posts img { grid-area: img; width: 56px; height: 42px; }
    .dash-posts__main { grid-area: main; }
    .dash-posts li > .status { grid-area: status; justify-self: start; }
    .dash-posts__views { grid-area: views; justify-self: end; }
    .dash-posts__acts { grid-area: acts; }
    .quick-grid--8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) { .dash-hero__img { display: none; } }
.dash-stat .stat-card__sub { white-space: normal; overflow: visible; text-overflow: clip; }
.traffic .chart-wrap .chart { width: 100%; height: auto; max-height: 300px; }
.dash-hero__img { width: 240px; margin: -12px -6px -18px 0; }
@media (max-width: 760px) { .dash-hero__img { width: 130px; margin: -6px -6px -10px 0; } }
@media (max-width: 760px) { .traffic .chart__axis { font-size: 22px; } .traffic .chart__dot { r: 5; } }

/* ==========================================================
   İletişim mesajları (Güncelleme 18)
   ========================================================== */
.msg-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.msg-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px 18px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s; }
.msg-stat:hover { transform: translateY(-2px); color: var(--ink); }
.msg-stat__icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone-fg); }
.msg-stat strong { font-size: 1.6rem; line-height: 1.1; font-family: "Baloo 2", sans-serif; }
.msg-stat span:last-child { font-size: .84rem; color: var(--muted); font-weight: 700; }
.msg-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.msg-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
    font-weight: 800; font-size: .88rem; color: var(--ink-soft); text-decoration: none; }
.msg-tabs a span { min-width: 22px; padding: 0 6px; border-radius: 99px; background: #f1edf5; font-size: .75rem; text-align: center; color: var(--ink); }
.msg-tabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.msg-tabs a.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }
.msg-tabs a:focus-visible { outline: 3px solid #ffb3cc; outline-offset: 2px; }
.msg-filters { flex-wrap: wrap; margin-bottom: 16px; }
.msg-filters__date { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.msg-table tr.is-unread td { background: #fff8fb; }
.msg-table tr.is-unread .strong { font-weight: 900; }
.msg-table tr.is-unread td:nth-child(2) { box-shadow: inset 3px 0 0 #e94a7b; }
.msg-mail { display: block; font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.msg-pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.msg-pill--new { background: #ffe1ec; color: #b0124f; }
.msg-pill--read { background: #e6eefb; color: #2a4f8f; }
.msg-pill--replied { background: #d9f5ec; color: #0b6b4a; }
.msg-pill--archived { background: #ecebf1; color: #4f5470; }
.msg-retention { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.msg-retention label { font-weight: 800; font-size: .9rem; }
.msg-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.msg-detail__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.msg-detail__subject { margin: 8px 0 0; font-size: 1.35rem; }
.msg-detail__head time { color: var(--muted); font-weight: 700; font-size: .9rem; }
.msg-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 16px 0; padding: 14px; background: #faf8fc; border-radius: 14px; }
.msg-meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; }
.msg-meta dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.msg-body { white-space: normal; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.7; }
.msg-actions { margin-top: 16px; flex-wrap: wrap; }
.msg-to { margin: 0; padding: 10px 12px; background: #faf8fc; border-radius: 10px; font-weight: 700; overflow-wrap: anywhere; }
.msg-mail-warn { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: #fffaf0; border: 1px solid #f5cf8f; font-size: .9rem; }
.msg-mail-warn p { margin: 0; }
.msg-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.msg-history__item { position: relative; padding: 0 0 0 18px; display: grid; gap: 2px; font-size: .88rem; }
.msg-history__item::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #b8b3c9; }
.msg-history__item--reply_sent::before { background: #10a37a; }
.msg-history__item--reply_failed::before { background: #d61f45; }
.msg-history__item small { color: var(--muted); }
.msg-history__item details { margin-top: 4px; }
.msg-history__item summary { cursor: pointer; font-weight: 700; color: #2c68b5; }
.check-line { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; font-weight: 700; font-size: .9rem; }
.msg-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.msg-mini a { display: grid; padding: 10px; border-radius: 12px; background: #faf8fc; text-align: center; color: var(--ink); text-decoration: none; }
.msg-mini a.is-hot { background: #ffe9f1; }
.msg-mini strong { font-size: 1.3rem; font-family: "Baloo 2", sans-serif; line-height: 1.1; }
.msg-mini span { font-size: .75rem; color: var(--muted); font-weight: 700; }
.admin-badge[hidden] { display: none; }
.admin-badge.is-new { animation: msg-pulse 1s ease 2; }
@keyframes msg-pulse { 50% { transform: scale(1.25); } }
@media (max-width: 900px) { .msg-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .msg-filters input[type=search] { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .admin-badge.is-new { animation: none; } .msg-stat { transition: none; } }
