:root {
    --admin-navy: #062746;
    --admin-navy-light: #0a3b64;
    --admin-gold: #c99b35;
    /* Açık arka planda okunaklı vurgu (eski altın sarısı yerine) */
    --admin-kicker: #0a5080;
    --admin-kicker-bg: #e8f1f9;
    --admin-kicker-border: #b8cfe4;
    --admin-bg: #eef2f7;
    --admin-text: #172b43;
    --admin-muted: #4a5f73;
    --admin-border: #dce3eb;
}

/* Haber yönetimi */
.news-add-button { width: auto; background: var(--admin-gold); }
.news-toolbar { margin: 24px 0; }
.news-filter-form { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(140px, 1fr)) auto auto; align-items: end; gap: 12px; }
.news-filter-form > * {
    min-width: 0;
}

.news-filter-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.news-filter-field-label {
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 700;
}

.news-filter-form .select2-container {
    width: 100% !important;
    min-width: 0;
    display: block;
}

.news-filter-form .select2-container--bootstrap-5 .select2-selection {
    min-height: 42px;
}

.select2-container--open .select2-dropdown {
    z-index: 2005;
}
.news-filter-form label, .form-field label { display: grid; gap: 7px; color: var(--admin-muted); font-size: 13px; font-weight: 700; }
.news-filter-form input, .news-filter-form select, .form-field input, .form-field select, .form-field textarea, .image-edit-card input { width: 100%; padding: 10px 11px; border: 1px solid var(--admin-border); border-radius: 6px; background: white; font: inherit; color: var(--admin-text); }
.admin-button-secondary { color: white; background: var(--admin-navy-light); }
.admin-button-light { color: var(--admin-navy); background: white; border: 1px solid var(--admin-border); }
.news-management-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr); gap: 24px; align-items: start; }
.admin-panel-card { padding: 22px; border: 1px solid var(--admin-border); border-radius: 12px; background: white; box-shadow: 0 4px 20px rgba(6, 39, 70, 0.07); }
.admin-panel-card h2 { margin: 0 0 16px; color: var(--admin-navy); font-size: 19px; }
.news-count { color: var(--admin-muted); font-size: 13px; font-weight: 400; }
.news-title-cell { display: flex; align-items: center; gap: 10px; min-width: 250px; }
.news-title-cell img { width: 48px; height: 40px; border-radius: 5px; object-fit: cover; background: var(--admin-bg); }
.news-title-cell small, .showcase-option span { display: block; overflow: hidden; max-width: 290px; color: var(--admin-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.news-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; white-space: nowrap; }
.news-delete-form { display: inline; margin: 0; }
.admin-th-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    color: inherit;
    background: none;
    font: inherit;
    font-weight: inherit;
    text-transform: inherit;
    text-decoration: none;
    cursor: pointer;
}
.admin-th-sort:hover { color: var(--admin-navy); }
.admin-th-sort.is-active { color: var(--admin-navy); }
.admin-th-sort-icon { font-size: 9px; line-height: 1; opacity: 0.65; }
.admin-th-sort.is-active .admin-th-sort-icon { opacity: 1; }
.admin-success { margin: 0 0 18px; padding: 12px 15px; border: 1px solid #a7dfbd; border-radius: 7px; color: #146c3a; background: #edf9f1; }
.showcase-card form { display: grid; gap: 15px; }
.headline-settings-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 8px; align-items: start; }
.headline-settings-row .publish-toggle { align-self: center; }
.headline-source-mode { margin: 12px 0 16px; max-width: 640px; }
.headline-source-panel { margin-bottom: 16px; padding-top: 8px; border-top: 1px solid var(--admin-border, #e4e9ef); }
.headline-category-list .showcase-option span small { display: block; font-weight: 400; color: var(--admin-muted); margin-top: 2px; }
.showcase-list { display: grid; gap: 8px; max-height: 270px; overflow: auto; padding-top: 5px; }
.showcase-option { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border-radius: 5px; background: var(--admin-bg); font-size: 13px; }
.showcase-option input { margin-top: 2px; }
.showcase-option .showcase-order { width: 52px; margin-left: auto; padding: 4px; }
.news-editor-form { display: grid; gap: 20px; max-width: 980px; }
.editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field textarea { resize: vertical; }
.publish-toggle { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-weight: 700; }
.upload-dropzone { position: relative; display: grid; place-items: center; gap: 5px; min-height: 150px; padding: 22px; border: 2px dashed var(--admin-border); border-radius: 9px; color: var(--admin-navy); text-align: center; cursor: pointer; }
.upload-dropzone span { color: var(--admin-gold); font-size: 28px; pointer-events: none; }
.upload-dropzone strong,
.upload-dropzone small { pointer-events: none; }
.upload-dropzone small { color: var(--admin-muted); }
.upload-dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.image-preview-grid, .image-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 18px; }
.image-preview-grid img { width: 100%; height: 110px; border-radius: 7px; object-fit: cover; }
.image-edit-card { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--admin-border); border-radius: 7px; }
.image-edit-card img { width: 100%; height: 110px; border-radius: 5px; object-fit: cover; }
.image-edit-card label { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: var(--admin-muted); font-size: 12px; }
.image-edit-card input[type=number] { width: 55px; padding: 5px; }
.featured-check { color: var(--admin-navy) !important; font-weight: 700; }
.featured-check input { width: auto !important; }
.editor-actions { display: flex; justify-content: flex-end; gap: 10px; }
.editor-actions .admin-button-primary { width: auto; }

@media (max-width: 900px) { .news-management-grid { grid-template-columns: 1fr; } .news-filter-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-filter-form, .editor-fields { grid-template-columns: 1fr; } .form-field.full { grid-column: auto; } .admin-content { padding: 20px 14px; } .news-table th:nth-child(2), .news-table td:nth-child(2), .news-table th:nth-child(5), .news-table td:nth-child(5) { display: none; } }

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--admin-text);
    background: var(--admin-bg);
}

a {
    color: inherit;
}

.admin-auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--admin-navy), var(--admin-navy-light));
}

.auth-card {
    width: min(100%, 430px);
    padding: 34px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 18px 50px #00182d45;
}

.auth-brand {
    color: var(--admin-gold);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -2px;
}

.auth-card h1 {
    margin: 18px 0 8px;
    color: var(--admin-navy);
    font-size: 26px;
}

.auth-subtitle,
.admin-muted {
    color: var(--admin-muted);
    line-height: 1.5;
}

.auth-google-form {
    margin-top: 20px;
}

.auth-google-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--admin-navy);
    background: white;
    border: 1px solid var(--admin-border);
}

.auth-google-button:hover {
    background: var(--admin-bg);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 4px;
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--admin-border);
}

.form-field {
    margin-top: 18px;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.form-field input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    font: inherit;
}

.form-field input:focus {
    outline: 2px solid #c99b3566;
    border-color: var(--admin-gold);
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
    color: var(--admin-muted);
    font-size: 14px;
}

.admin-button,
.admin-link-button {
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.admin-button {
    display: inline-block;
    padding: 11px 16px;
    text-align: center;
}

.admin-button-primary {
    width: 100%;
    color: white;
    background: var(--admin-gold);
}

.back-to-site {
    display: block;
    margin-top: 22px;
    color: var(--admin-navy-light);
    font-size: 14px;
    text-align: center;
}

.validation-summary,
.field-validation {
    color: #b42318;
    font-size: 13px;
}

.validation-summary:empty {
    display: none;
}

.admin-shell {
    background: var(--admin-bg);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
    padding: 0 26px;
    color: white;
    background: var(--admin-navy);
}

.admin-brand {
    color: white;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.admin-user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.admin-link-button {
    padding: 7px 10px;
    color: white;
    background: transparent;
}

.admin-link-button:hover {
    background: #ffffff1a;
}

.admin-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: calc(100vh - 68px);
}

.admin-sidebar {
    padding: 22px 12px;
    background: white;
    border-right: 1px solid var(--admin-border);
}

.admin-sidebar nav {
    display: grid;
    gap: 5px;
}

.admin-sidebar a {
    padding: 11px 12px;
    border-radius: 6px;
    color: var(--admin-text);
    text-decoration: none;
}

.admin-sidebar a:hover,
.admin-sidebar a:focus {
    color: white;
    background: var(--admin-navy-light);
}

.admin-content {
    width: min(100%, 1280px);
    padding: 32px;
}

.admin-page-heading h1 {
    margin: 4px 0 8px;
    color: var(--admin-navy);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    letter-spacing: -0.02em;
}

.admin-eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--admin-kicker);
    background: linear-gradient(90deg, var(--admin-kicker-bg), #f4f8fc);
    border: 1px solid var(--admin-kicker-border);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.admin-status-card {
    max-width: 720px;
    margin-top: 26px;
    padding: 24px;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    background: white;
}

.admin-status-card h2 {
    margin-top: 0;
    color: var(--admin-navy);
    font-size: 18px;
}

@media (max-width: 700px) {
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .admin-user-menu {
        justify-content: space-between;
        width: 100%;
    }

    .admin-layout {
        display: block;
    }

    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--admin-border);
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-content {
        padding: 22px 16px;
    }
}

/* Dashboard */
.admin-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-overlay {
    display: none;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-menu-toggle {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #ffffff2b;
    border-radius: 7px;
    color: white;
    background: #ffffff12;
    cursor: pointer;
    font-size: 19px;
}

.admin-menu-toggle:hover {
    background: #ffffff22;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-brand-mark {
    color: var(--admin-gold);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -2px;
}

.admin-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-left: 1px solid #ffffff35;
    padding-left: 10px;
    font-size: 12px;
    line-height: 1.15;
}

.admin-brand-copy small {
    color: #d7e1eb;
    font-size: 9px;
    letter-spacing: .8px;
}

.admin-user-menu {
    gap: 11px;
}

.admin-user-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: var(--admin-navy);
    background: var(--admin-gold);
    font-weight: 800;
}

.admin-user-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.admin-user-copy small {
    color: #c9d6e1;
    font-size: 11px;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 12px;
    color: var(--admin-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .9px;
}

.admin-sidebar-version {
    color: var(--admin-gold);
    font-size: 9px;
}

.admin-nav {
    display: grid;
    gap: 4px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-left: 3px solid transparent;
    border-radius: 6px;
    color: var(--admin-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.admin-nav-link:hover,
.admin-nav-link:focus,
.admin-nav-link.is-active {
    border-left-color: var(--admin-gold);
    color: var(--admin-navy);
    background: #f3f6fa;
}

.admin-nav-link.is-active {
    font-weight: 800;
}

.admin-nav-icon {
    display: inline-grid;
    width: 22px;
    place-items: center;
    color: var(--admin-navy-light);
    font-size: 17px;
}

.admin-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 18px 10px 0;
    border-top: 1px solid var(--admin-border);
}

.admin-sidebar-footer-mark {
    color: var(--admin-gold);
    font-size: 19px;
    font-weight: 900;
}

.admin-sidebar-footer div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-sidebar-footer strong {
    color: var(--admin-navy);
    font-size: 11px;
}

.admin-sidebar-footer small {
    color: var(--admin-muted);
    font-size: 10px;
}

.admin-content {
    overflow: hidden;
}

.admin-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--admin-border);
}

.dashboard-heading h1 {
    margin-bottom: 4px;
    font-size: clamp(24px, 3vw, 32px);
}

.dashboard-date {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: white;
    font-size: 12px;
}

.dashboard-date-icon {
    color: var(--admin-gold);
    font-size: 20px;
}

.dashboard-date div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-date small {
    color: var(--admin-muted);
}

.admin-demo-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 13px 15px;
    border: 1px solid #ead9a6;
    border-radius: 8px;
    color: #6f5519;
    background: #fffaf0;
    font-size: 12px;
}

.admin-demo-notice-icon {
    display: grid;
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--admin-gold);
    font-weight: 800;
}

.admin-demo-notice div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 18px;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 16px #142c4608;
}

.metric-card::after {
    position: absolute;
    right: -24px;
    bottom: -32px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: currentColor;
    content: "";
    opacity: .06;
}

.metric-blue { color: #176fbd; }
.metric-gold { color: #a57918; }
.metric-green { color: #16834c; }
.metric-purple { color: #7653a7; }

.metric-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-icon {
    display: grid;
    position: relative;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    color: currentColor;
    background: transparent;
    font-size: 19px;
    font-weight: 800;
    isolation: isolate;
}

.metric-icon::before {
    position: absolute;
    z-index: -1;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: currentColor;
    content: "";
    opacity: .14;
}

.metric-trend {
    padding: 4px 7px;
    border-radius: 20px;
    color: #16834c;
    background: #e8f7ef;
    font-size: 10px;
    font-weight: 800;
}

.metric-card p {
    margin: 18px 0 2px;
    color: var(--admin-muted);
    font-size: 12px;
}

.metric-card > strong {
    display: block;
    color: var(--admin-navy);
    font-size: 26px;
    line-height: 1.1;
}

.metric-card > small {
    display: block;
    margin-top: 7px;
    color: var(--admin-muted);
    font-size: 11px;
}

.dashboard-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.dashboard-grid-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-grid-bottom {
    grid-template-columns: 1.2fr .8fr;
}

.admin-panel-card {
    min-width: 0;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 16px #142c4608;
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--admin-border);
}

.admin-panel-header h2 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 17px;
}

.admin-panel-header .admin-muted,
.admin-panel-header .admin-field-hint {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
}

.admin-panel-header a {
    color: #fff;
    font-weight: 600;
}

.admin-panel-header .admin-section-kicker {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
}

.admin-panel-header .admin-panel-action {
    color: rgba(255, 255, 255, 0.95);
}

.admin-panel-header .admin-panel-action:hover {
    color: #fff;
    text-decoration: underline;
}

.admin-panel-header h2 .news-count {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.admin-section-kicker {
    display: inline-block;
    margin: 0 0 4px;
    padding: 3px 9px;
    border-radius: 4px;
    color: var(--admin-kicker);
    background: var(--admin-kicker-bg);
    border: 1px solid var(--admin-kicker-border);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.admin-field-hint {
    display: block;
    margin-top: 10px;
    padding: 11px 14px;
    border-radius: 8px;
    border-left: 4px solid var(--admin-navy-light);
    color: #2a4a66;
    background: linear-gradient(90deg, #eef4fa 0%, #f8fafc 100%);
    font-size: 13px;
    line-height: 1.55;
}

.admin-field-hint strong {
    color: var(--admin-navy);
}

.admin-app-content .text-muted,
.app-content.admin-app-content .text-muted {
    color: var(--admin-muted) !important;
}

.admin-panel-action {
    color: var(--admin-navy-light);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.admin-panel-action:hover {
    color: var(--admin-kicker);
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.admin-table th,
.admin-table td {
    padding: 13px 20px;
    border-bottom: 1px solid #edf0f4;
    text-align: left;
    white-space: nowrap;
}

.admin-table th {
    color: var(--admin-muted);
    background: #fbfcfd;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table td:first-child {
    min-width: 210px;
    white-space: normal;
}

.admin-table td strong,
.admin-table td small {
    display: block;
}

.admin-table td strong {
    color: var(--admin-text);
    font-size: 12px;
    line-height: 1.35;
}

.admin-table td small,
.table-date {
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 10px;
}

.status-badge {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}

.status-success { color: #167447; background: #e8f7ef; }
.status-warning { color: #8a6413; background: #fff6dc; }
.status-info { color: #17619b; background: #eaf4fc; }

.activity-list {
    padding: 4px 20px;
}

.activity-item {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: var(--admin-navy-light);
    background: #edf5fb;
    font-size: 14px;
    font-weight: 800;
}

.activity-item div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.activity-item strong {
    overflow: hidden;
    color: var(--admin-text);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-item small,
.activity-item time {
    color: var(--admin-muted);
    font-size: 10px;
}

.activity-item time {
    white-space: nowrap;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 20px 20px;
}

.quick-actions-grid a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: var(--admin-text);
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease;
}

.quick-actions-grid a:hover {
    border-color: var(--admin-gold);
    background: #fffaf0;
}

.quick-actions-grid a > span {
    color: var(--admin-gold);
    font-size: 20px;
    font-weight: 800;
}

.quick-actions-grid strong {
    font-size: 11px;
}

.quick-actions-grid small {
    color: var(--admin-muted);
    font-size: 10px;
}

@media (min-width: 701px) {
    .admin-shell.admin-sidebar-collapsed .admin-layout {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .admin-shell.admin-sidebar-collapsed .admin-sidebar-heading,
    .admin-shell.admin-sidebar-collapsed .admin-sidebar-footer div,
    .admin-shell.admin-sidebar-collapsed .admin-nav-link > span:not(.admin-nav-icon) {
        display: none;
    }

    .admin-shell.admin-sidebar-collapsed .admin-sidebar {
        padding-inline: 12px;
    }

    .admin-shell.admin-sidebar-collapsed .admin-nav-link {
        justify-content: center;
        padding-inline: 8px;
        border-left: 0;
    }
}

@media (max-width: 1050px) {
    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .admin-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-grid-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .admin-menu-toggle {
        display: inline-grid;
    }

    .admin-brand-copy {
        display: none;
    }

    .admin-user-copy {
        display: none;
    }

    .admin-topbar {
        flex-direction: row;
        align-items: center;
        min-height: 64px;
        padding: 0 16px;
    }

    .admin-user-menu {
        width: auto;
    }

    .admin-overlay {
        position: fixed;
        z-index: 20;
        inset: 0;
        background: #00182d66;
    }

    .admin-shell.admin-menu-open .admin-overlay {
        display: block;
    }

    .admin-sidebar {
        position: fixed;
        z-index: 30;
        top: 64px;
        bottom: 0;
        left: 0;
        width: min(84vw, 300px);
        border-bottom: 0;
        box-shadow: 12px 0 30px #00182d26;
        transform: translateX(-105%);
        transition: transform .22s ease;
    }

    .admin-shell.admin-menu-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-sidebar nav.admin-nav {
        grid-template-columns: 1fr;
    }

    .admin-sidebar-footer {
        margin-top: auto;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .metric-card {
        min-height: 140px;
        padding: 14px;
    }

    .admin-table th,
    .admin-table td {
        padding-inline: 14px;
    }

    .activity-list {
        padding-inline: 14px;
    }
}

@media (max-width: 450px) {
    .dashboard-metrics {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: auto;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* TinyMCE tam ekran — admin sidebar üstünde */
.tox.tox-tinymce.tox-fullscreen,
.tox-fullscreen .tox-editor-container {
    z-index: 10050 !important;
}

.site-ayar-menu-preview {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    height: 2rem;
    padding: 0.25rem 0.5rem;
    background: #f1f5f9;
    border-radius: 0.35rem;
}

.site-ayar-preview-logo {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    background: linear-gradient(145deg, #1e4f8a, #c41e3a);
    flex-shrink: 0;
}

.site-ayar-preview-menu {
    height: 0.35rem;
    border-radius: 999px;
    background: #94a3b8;
    flex: 1;
    max-width: 4rem;
}

.site-ayar-menu-preview--left {
    justify-content: flex-start;
}

.site-ayar-menu-preview--center {
    justify-content: center;
}

.site-ayar-menu-preview--center .site-ayar-preview-menu {
    max-width: 5rem;
}

.site-ayar-menu-preview--right {
    justify-content: flex-end;
}

.site-logo-wire {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.site-logo-wire--sidebar {
    flex-direction: column;
    background: linear-gradient(180deg, #03233f, #07385e);
    color: #fff;
    max-width: 220px;
}

.site-logo-wire--topbar {
    background: #f1f5f9;
    color: #334155;
}

.site-logo-wire-block {
    background: #fff;
    color: #03233f;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    text-align: center;
}

.site-logo-wire-block--accent {
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.site-logo-wire-menu {
    flex: 1;
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
}

.site-logo-wire--topbar .site-logo-wire-menu {
    background: #cbd5e1;
}
