:root {
    --ink: #15202b;
    --muted: #5b6b7c;
    --accent: #1e4f8a;
    --accent-2: #c41e3a;
    --portal-orange: #e87722;
    --line: #d7dee7;
    --surface: #f3f6f9;
    --panel: #ffffff;
    --sidebar: #111111;
    --sidebar-2: #000000;
    --sidebar-width: 260px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", "Candara", "Trebuchet MS", sans-serif;
    color: var(--ink);
    background: var(--surface);
}

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    transition: grid-template-columns .22s ease;
}

.app-shell.sidebar-hidden,
html.sidebar-hidden-init .app-shell {
    --sidebar-width: 0px;
}

.app-shell--no-sidebar {
    grid-template-columns: 1fr;
}

.app-sidebar {
    background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
    color: #fff;
    padding: 1rem .85rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity .18s ease;
}

.app-shell.sidebar-hidden .app-sidebar,
html.sidebar-hidden-init .app-sidebar {
    opacity: 0;
    pointer-events: none;
}

.sidebar-brand {
    display: flex;
    gap: .85rem;
    align-items: center;
    margin-bottom: .75rem;
    padding: .5rem;
    flex-shrink: 0;
}

.brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .75rem;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-brand-text strong { display: block; font-size: 1rem; }
.sidebar-brand-text small { display: block; opacity: .65; font-size: .75rem; }

.sidebar-user {
    padding: .65rem .85rem;
    margin-bottom: .5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    flex-shrink: 0;
}

.sidebar-user-name { font-size: .88rem; font-weight: 600; margin: 0; }
.sidebar-user-role { font-size: .75rem; opacity: .65; }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: .15rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.25) transparent;
}

.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.22);
    border-radius: 999px;
}

.sidebar-nav .nav-link {
    color: rgba(255,255,255,.85);
    border-radius: .7rem;
    padding: .65rem .85rem;
    display: flex;
    gap: .65rem;
    align-items: center;
    text-decoration: none;
    font-size: .92rem;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.sidebar-toggle-btn { flex-shrink: 0; }

.admin-hamburger-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: .55rem;
    background: var(--panel);
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1;
}

.admin-hamburger-btn:hover {
    background: var(--surface);
    color: var(--accent);
}

.app-sidebar.offcanvas-lg {
    --bs-offcanvas-width: min(280px, 92vw);
    --bs-offcanvas-bg: var(--sidebar);
    --bs-offcanvas-color: #fff;
}

.app-sidebar-offcanvas-head {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: .85rem 1rem;
}

.app-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    gap: 1rem;
}

.app-content { padding: 1.5rem; flex: 1; color: var(--ink); }

.app-content .text-secondary {
    color: var(--muted) !important;
}

.field-label {
    color: #495057;
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .02em;
    margin-bottom: .15rem;
}

.app-content .card {
    color: var(--ink);
    border: 1px solid var(--line);
}

.app-content .card .fw-semibold,
.app-content .card .fs-4 {
    color: var(--ink);
}

.app-content .hint-text {
    color: #495057;
    font-size: .875rem;
}

.action-buttons {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.btn-icon-action {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .app-shell { grid-template-columns: 1fr; }
    .app-main { min-height: 100vh; }
    .app-sidebar.offcanvas {
        height: 100%;
        max-height: 100vh;
    }
    .app-shell.sidebar-hidden,
    html.sidebar-hidden-init .app-shell {
        --sidebar-width: 0px;
    }
    .app-shell.sidebar-hidden .app-sidebar,
    html.sidebar-hidden-init .app-sidebar {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (min-width: 992px) {
    .app-sidebar.offcanvas-lg {
        position: static;
        transform: none !important;
        visibility: visible !important;
        display: flex !important;
    }
}

.admin-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16, 42, 67, 0.06);
}

.admin-panel-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.1rem;
    background: #0d6efd;
    color: #fff;
}

.admin-panel .table thead th {
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    background: #e9ecef;
    color: #212529;
    border-bottom-width: 1px;
}

.admin-panel .table tbody td {
    color: #212529;
}

.admin-panel .table tbody td .small.text-secondary {
    color: #5b6b7c !important;
}

.admin-panel .table .badge {
    font-weight: 600;
    padding: .35em .65em;
    border: 0;
}

.admin-panel .table .badge.text-bg-success {
    background-color: #198754 !important;
    color: #fff !important;
}

.admin-panel .table .badge.text-bg-dark {
    background-color: #343a40 !important;
    color: #fff !important;
}

.admin-panel .table .badge.text-bg-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.admin-panel .table .badge.text-bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
}

.admin-panel .empty-hint {
    color: #495057;
    padding: 1rem 1.1rem;
}

.app-content .badge.text-bg-success {
    background-color: #198754 !important;
    color: #fff !important;
}

.app-content .badge.text-bg-dark {
    background-color: #343a40 !important;
    color: #fff !important;
}

.app-content .badge.text-bg-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.app-topbar .text-secondary {
    color: #495057 !important;
}

/* Select2 + Bootstrap 5 */
.select2-container--bootstrap-5 .select2-selection {
    min-height: calc(1.5em + .75rem + 2px);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

.form-select-sm + .select2-container--bootstrap-5 .select2-selection {
    min-height: calc(1.5em + .5rem + 2px);
    font-size: .875rem;
}

.select2-container--bootstrap-5 .select2-dropdown {
    z-index: 1060;
}

/* Hakkında sayfası */
.about-page { max-width: 1100px; margin: 0 auto; }

.about-hero {
    background: linear-gradient(135deg, #111 0%, #2a2a2a 55%, #c41e3a 120%);
    color: #fff;
    border-radius: .75rem;
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(17, 17, 17, .15);
}

.about-badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: .25rem .75rem;
    margin-bottom: .75rem;
}

.about-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: .02em;
    margin: 0 0 .75rem;
}

.about-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0;
    opacity: .92;
}

.about-stat-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: .65rem;
    padding: 1rem;
    text-align: center;
    height: 100%;
}

.about-stat-card strong {
    display: block;
    font-size: 1.35rem;
    color: #c41e3a;
}

.about-stat-card span {
    font-size: .82rem;
    color: var(--muted);
}

.about-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--line);
}

.about-feature-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: .65rem;
    padding: 1.15rem 1.2rem;
    height: 100%;
    transition: box-shadow .15s ease, transform .15s ease;
}

.about-feature-card:hover {
    box-shadow: 0 6px 18px rgba(16, 42, 67, .08);
    transform: translateY(-2px);
}

.about-feature-card h3 {
    font-size: .98rem;
    font-weight: 700;
    margin: .65rem 0 .4rem;
}

.about-feature-card p {
    font-size: .88rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.about-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .5rem;
    background: #fff5f5;
    color: #c41e3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.about-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.about-tech-pill {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .35rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink);
}

.about-cta {
    background: linear-gradient(90deg, #fff 0%, #f8f9fb 100%);
}

/* Ön sayfa bölümü düzenleyici */
.section-editor-page {
    max-width: 1200px;
    margin: 0 auto;
}

.section-editor-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    border-radius: .75rem;
    background: linear-gradient(135deg, #111 0%, #2a2a2a 50%, #c41e3a 130%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(17, 17, 17, .18);
}

.section-editor-kicker {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: .35rem;
}

.section-editor-hero h1 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 .35rem;
}

.section-editor-hero p {
    margin: 0;
    opacity: .88;
    font-size: .92rem;
    max-width: 36rem;
}

.section-editor-back {
    white-space: nowrap;
    font-weight: 600;
}

.section-editor-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .75rem;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(16, 42, 67, .06);
}

.section-editor-group {
    border: 1px solid #e9ecef;
    border-radius: .65rem;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #fafbfc;
}

.section-editor-group-head {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    background: linear-gradient(90deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid #e9ecef;
}

.section-editor-group-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .5rem;
    background: #fff;
    border: 1px solid #dee2e6;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.section-editor-group-head h2 {
    font-size: .95rem;
    font-weight: 800;
    margin: 0;
    color: #212529;
}

.section-editor-group-head p {
    font-size: .78rem;
    color: #6c757d;
    margin: .1rem 0 0;
}

.section-editor-group-body {
    padding: 1rem;
    background: #fff;
}

.section-field {
    margin-bottom: .85rem;
}

.section-field:last-child {
    margin-bottom: 0;
}

.section-field .form-label {
    font-size: .82rem;
    font-weight: 700;
    color: #495057;
}

.section-switch-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
    border-radius: .5rem;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    transition: border-color .2s, background .2s;
}

.section-switch-card.is-on {
    border-color: #198754;
    background: #f0fdf4;
}

.section-switch-card strong {
    display: block;
    font-size: .9rem;
}

.section-switch-card small {
    color: #6c757d;
    font-size: .78rem;
}

.section-switch-card .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
}

.section-max-items {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.section-max-items input {
    max-width: 5.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.section-max-items-hint {
    font-size: .82rem;
    color: #6c757d;
    font-weight: 600;
}

.section-position-tip {
    margin-top: .5rem;
    padding: .55rem .75rem;
    border-radius: .4rem;
    font-size: .8rem;
}

.section-position-tip.is-warning {
    background: #fff8e6;
    border: 1px solid #ffe08a;
    color: #856404;
}

.section-position-tip.is-ok {
    background: #eefbf3;
    border: 1px solid #b8e6c8;
    color: #146c43;
}

.section-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    padding-top: .5rem;
}

.section-submit-btn {
    min-width: 10rem;
    font-weight: 700;
}

.section-editor-sidebar {
    position: sticky;
    top: 1rem;
}

.section-preview-card,
.section-help-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(16, 42, 67, .06);
}

.section-preview-card {
    margin-bottom: 1rem;
}

.section-preview-card-head {
    padding: 1rem 1.1rem .75rem;
    border-bottom: 1px solid #eee;
}

.section-preview-card-head h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: .55rem 0 .25rem;
}

.section-preview-card-head p {
    font-size: .82rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.45;
}

.section-preview-wireframe {
    padding: 1rem;
    background: #f8f9fa;
}

.wire-row {
    display: flex;
    gap: .45rem;
    margin-bottom: .45rem;
}

.wire-row:last-child {
    margin-bottom: 0;
}

.wire-block {
    border: 2px dashed #ced4da;
    border-radius: .35rem;
    background: #fff;
    min-height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 700;
    color: #adb5bd;
    transition: all .2s ease;
}

.wire-block-wide { flex: 1; min-height: 3rem; }
.wire-block-left,
.wire-block-right { flex: 1; min-height: 2.8rem; }
.wire-block-full { flex: 1; min-height: 2.2rem; }

.section-preview-wireframe[data-position="hero"] .wire-block-wide,
.section-preview-wireframe[data-mode="hero_banner"][data-position="hero"] .wire-block-wide {
    border-color: #0d6efd;
    background: #e7f1ff;
    color: #0d6efd;
}

.section-preview-wireframe[data-position="column_left"] .wire-block-left,
.section-preview-wireframe[data-mode="announcements"] .wire-block-left {
    border-color: #0d6efd;
    background: #e7f1ff;
    color: #0d6efd;
}

.section-preview-wireframe[data-position="column_right"] .wire-block-right,
.section-preview-wireframe[data-mode="reports_slider"] .wire-block-right {
    border-color: #0d6efd;
    background: #e7f1ff;
    color: #0d6efd;
}

.section-preview-wireframe[data-position="full_width"] .wire-block-full,
.section-preview-wireframe[data-mode="thumb_grid"] .wire-block-full,
.section-preview-wireframe[data-mode="grid"] .wire-block-full,
.section-preview-wireframe[data-mode="list"] .wire-block-full,
.section-preview-wireframe[data-mode="custom"][data-position="full_width"] .wire-block-full {
    border-color: #0d6efd;
    background: #e7f1ff;
    color: #0d6efd;
}

.section-preview-wireframe[data-mode="custom"][data-position="column_left"] .wire-block-left,
.section-preview-wireframe[data-mode="custom"][data-position="column_right"] .wire-block-right,
.section-preview-wireframe[data-mode="custom"][data-position="hero"] .wire-block-wide {
    border-color: #0d6efd;
    background: #e7f1ff;
    color: #0d6efd;
}

.section-help-card {
    padding: 1rem 1.1rem;
}

.section-help-card h4 {
    font-size: .9rem;
    font-weight: 800;
    margin: 0 0 .65rem;
}

.section-help-card ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: .8rem;
    color: #495057;
    line-height: 1.55;
}

.section-help-card li + li {
    margin-top: .4rem;
}

@media (max-width: 1199px) {
    .section-editor-sidebar {
        position: static;
    }
}

/* Menü düzenleyici */
.menu-editor-page {
    max-width: 1100px;
    margin: 0 auto;
}

.menu-editor-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    border-radius: .75rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #c41e3a 140%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .2);
}

.menu-editor-kicker {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: .35rem;
}

.menu-editor-hero h1 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 .35rem;
}

.menu-editor-hero p {
    margin: 0;
    opacity: .88;
    font-size: .92rem;
    max-width: 34rem;
}

.menu-editor-back {
    white-space: nowrap;
    font-weight: 600;
}

.menu-editor-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .75rem;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(16, 42, 67, .06);
}

.menu-editor-group {
    border: 1px solid #e9ecef;
    border-radius: .65rem;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #fafbfc;
}

.menu-editor-group-head {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    background: linear-gradient(90deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid #e9ecef;
}

.menu-editor-group-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .5rem;
    background: #fff;
    border: 1px solid #dee2e6;
    color: var(--borsa-red, #c41e3a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.menu-editor-group-head h2 {
    font-size: .95rem;
    font-weight: 800;
    margin: 0;
    color: #212529;
}

.menu-editor-group-head p {
    font-size: .78rem;
    color: #6c757d;
    margin: .1rem 0 0;
}

.menu-editor-group-body {
    padding: 1rem;
    background: #fff;
}

.menu-field {
    margin-bottom: 0;
}

.menu-field .form-label {
    font-size: .82rem;
    font-weight: 700;
    color: #495057;
}

.menu-switch-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
    border-radius: .5rem;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    transition: border-color .2s, background .2s;
}

.menu-switch-card.is-on {
    border-color: #198754;
    background: #f0fdf4;
}

.menu-switch-card strong {
    display: block;
    font-size: .9rem;
}

.menu-switch-card small {
    color: #6c757d;
    font-size: .78rem;
}

.menu-switch-card .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
}

.menu-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    padding-top: .25rem;
}

.menu-editor-actions .btn-lg {
    font-weight: 700;
    min-width: 9rem;
}

.menu-help-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .75rem;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 2px 12px rgba(16, 42, 67, .05);
    position: sticky;
    top: 1rem;
}

.menu-help-card h4 {
    font-size: .92rem;
    font-weight: 800;
    margin: 0 0 .75rem;
    color: #212529;
}

.menu-help-card ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: .82rem;
    color: #495057;
    line-height: 1.55;
}

.menu-help-card li + li {
    margin-top: .45rem;
}

.menu-link-picker {
    margin-bottom: 0;
}

.menu-link-type-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .35rem;
    padding: .35rem;
    margin-bottom: .85rem;
    background: #f1f3f5;
    border-radius: .55rem;
    border: 1px solid #e9ecef;
}

.menu-link-type-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin: 0;
    padding: .55rem .5rem;
    font-size: .82rem;
    font-weight: 700;
    color: #495057;
    background: transparent;
    border: none;
    border-radius: .4rem;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}

.menu-link-type-tab:hover {
    color: #212529;
    background: rgba(255, 255, 255, .6);
}

.btn-check:checked + .menu-link-type-tab {
    color: #fff;
    background: var(--borsa-red, #c41e3a);
    box-shadow: 0 2px 8px rgba(196, 30, 58, .35);
}

.menu-link-panel {
    margin-bottom: .5rem;
}

.menu-link-hint {
    margin-top: .4rem;
}

.menu-link-hint code {
    font-size: .78rem;
}

.menu-link-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
    margin-top: .75rem;
    padding: .65rem .85rem;
    border-radius: .45rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    font-size: .8rem;
    color: #6c757d;
}

.menu-link-preview i {
    color: var(--borsa-red, #c41e3a);
    font-size: 1rem;
}

.menu-link-preview code {
    font-size: .78rem;
    color: #212529;
    background: #fff;
    padding: .15rem .45rem;
    border-radius: .25rem;
    border: 1px solid #dee2e6;
    word-break: break-all;
}

.cms-link-picker-compact .menu-link-type-tabs {
    margin-bottom: .5rem;
    padding: .25rem;
    gap: .25rem;
}

.cms-link-picker-compact .menu-link-type-tab {
    padding: .35rem .35rem;
    font-size: .72rem;
}

.cms-link-picker-compact .menu-link-preview {
    display: none;
}

@media (max-width: 991px) {
    .menu-help-card {
        position: static;
    }
}

/* Menü listesi — WordPress tarzı */
.menu-index-page .menu-tree-list,
.menu-index-page .menu-tree-children {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.menu-index-page .menu-tree-children {
    padding-left: 28px;
    margin-top: 2px;
}

.menu-index-page .menu-tree-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin: 3px 0;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    transition: border-color .15s ease;
}

.menu-index-page .menu-tree-row:hover {
    border-color: #8c8f94;
}

.menu-index-page .menu-tree-row.is-inactive {
    opacity: .55;
}

.menu-index-page .menu-tree-row.is-filter-context {
    opacity: .72;
    background: #f6f7f7;
}

.menu-index-page .menu-tree-row.is-filter-context .menu-tree-type {
    opacity: .65;
}

.menu-index-page .menu-index-filters .btn {
    min-height: 38px;
}

.contact-inbox-detail .contact-message-body {
    white-space: pre-wrap;
    line-height: 1.6;
}

.menu-index-page .menu-tree-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.menu-index-page .menu-tree-title {
    font-weight: 600;
    color: #1d2327;
}

.menu-index-page .menu-tree-sub {
    font-size: .78rem;
    font-style: italic;
    color: #646970;
}

.menu-index-page .menu-tree-type {
    flex-shrink: 0;
    font-size: .82rem;
    color: #646970;
    white-space: nowrap;
}

.menu-index-page .menu-tree-type--page {
    color: #2271b1;
}

.menu-index-page .menu-tree-type--content {
    color: #50575e;
}

.menu-index-page .menu-tree-type--manual {
    color: #646970;
}

.menu-index-page .menu-tree-badge {
    font-size: .68rem;
    font-weight: 500;
}

.menu-index-page .menu-tree-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 4px;
}

@media (max-width: 767px) {
    .menu-index-page .menu-tree-type {
        display: none;
    }
}

/* Site kodu düzenleyici */
.script-editor-page {
    max-width: 1200px;
    margin: 0 auto;
}

.script-editor-hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 45%, #415a77 120%);
}

.script-location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.script-location-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    width: 100%;
    text-align: left;
    padding: .85rem .9rem;
    border: 2px solid #dee2e6;
    border-radius: .6rem;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
}

.script-location-card:hover {
    border-color: #86b7fe;
    background: #f8fbff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, .1);
}

.script-location-card.is-selected {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #e7f1ff 0%, #f8fbff 100%);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

.script-location-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: .45rem;
    background: #f1f3f5;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}

.script-location-card.is-selected .script-location-icon {
    background: #0d6efd;
    color: #fff;
}

.script-location-text strong {
    display: block;
    font-size: .86rem;
    color: #212529;
    line-height: 1.3;
}

.script-location-text small {
    display: block;
    font-size: .74rem;
    color: #6c757d;
    margin-top: .15rem;
    line-height: 1.35;
}

.script-location-detail {
    margin-top: .85rem;
    padding: .65rem .85rem;
    border-radius: .45rem;
    background: #eef5ff;
    border: 1px solid #cfe2ff;
    color: #084298;
    font-size: .8rem;
    line-height: 1.45;
}

.script-location-group-label {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6c757d;
    margin: 0 0 .5rem;
}

.script-location-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.script-site-wireframe {
    padding: 1rem;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.script-wire-row {
    display: flex;
    gap: .35rem;
}

.script-wire-row .script-wire-block {
    flex: 1;
}

.script-wire-block {
    border: 2px dashed #ced4da;
    border-radius: .35rem;
    background: #fff;
    padding: .45rem .55rem;
    font-size: .62rem;
    font-weight: 700;
    color: #adb5bd;
    text-align: center;
    transition: all .2s ease;
}

.script-wire-block.script-wire-hero,
.script-wire-block.script-wire-full {
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.script-wire-block.script-wire-col-left,
.script-wire-block.script-wire-col-right {
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-script-slot {
    margin-top: .75rem;
}

.site-script-column_left,
.site-script-column_right {
    margin-top: 1rem;
}

.script-site-wireframe[data-location="head"] .script-wire-head,
.script-site-wireframe[data-location="brand"] .script-wire-brand,
.script-site-wireframe[data-location="header"] .script-wire-header,
.script-site-wireframe[data-location="hero"] .script-wire-hero,
.script-site-wireframe[data-location="column_left"] .script-wire-col-left,
.script-site-wireframe[data-location="column_right"] .script-wire-col-right,
.script-site-wireframe[data-location="full_width"] .script-wire-full,
.script-site-wireframe[data-location="footer"] .script-wire-footer,
.script-site-wireframe[data-location="body"] .script-wire-body {
    border-color: #0d6efd;
    background: #e7f1ff;
    color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, .12);
}

@media (max-width: 767px) {
    .script-location-grid {
        grid-template-columns: 1fr;
    }
}

.sidebar-nav .nav-link--site-preview {
    margin-bottom: .25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.sidebar-acc {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-acc summary {
    cursor: pointer;
    list-style: none;
    padding: .7rem .85rem;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.sidebar-acc summary::-webkit-details-marker {
    display: none;
}

.sidebar-acc-chevron {
    font-size: .8rem;
    opacity: .75;
    transition: transform .2s ease;
    flex-shrink: 0;
}

.sidebar-acc[open] summary {
    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .07);
}

.sidebar-acc[open] summary .sidebar-acc-chevron {
    transform: rotate(180deg);
}

.sidebar-acc-links {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    padding: 0 0 .4rem;
}

.sidebar-acc-links .nav-link {
    padding-left: 1.1rem;
    font-size: .88rem;
}

.sidebar-acc--nested {
    border-top: none;
    margin-top: .15rem;
}

.sidebar-acc--nested summary {
    padding: .55rem .85rem .55rem 1.1rem;
    font-size: .68rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
}

.sidebar-acc--nested[open] summary {
    color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .05);
}

.sidebar-acc--nested .sidebar-acc-links .nav-link {
    padding-left: 1.45rem;
    font-size: .86rem;
}

.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;
}

/* Bölüm editörü — tema wireframe (sidebar) */
.section-tema-wireframe {
    padding: 0.75rem 1rem 1rem;
    background: #f8fafc;
    max-height: min(80vh, 860px);
    overflow-y: auto;
}

.section-tema-wireframe__inner.tema-wireframe {
    max-width: 100%;
    gap: 0.75rem;
}

.section-tema-wireframe .tema-wire-row {
    padding: 0.85rem 0.9rem 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.section-tema-wireframe__row-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-2);
    margin-bottom: 0.45rem;
}

.section-tema-wireframe .tema-wire-slot {
    min-height: 72px;
    padding: 0.65rem 0.75rem;
    text-align: left;
    width: 100%;
    font: inherit;
    background: #fff;
}

.section-tema-wireframe .tema-wire-slot--pickable {
    cursor: pointer;
}

.section-tema-wireframe .tema-wire-slot-key {
    font-size: 0.82rem;
}

.section-tema-wireframe .tema-wire-slot-mode {
    font-size: 0.76rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-tema-wireframe .tema-wire-slot-edit {
    font-size: 0.65rem;
    margin-top: 0.15rem;
}

.section-tema-wireframe .tema-wire-slot--selected {
    border-color: var(--portal-orange);
    border-style: solid;
    background: rgba(232, 119, 34, 0.08);
    box-shadow: 0 0 0 2px rgba(232, 119, 34, 0.22);
}

.section-tema-wireframe .tema-wire-slot--this-section:not(.tema-wire-slot--selected) {
    border-color: var(--accent);
    border-style: solid;
}

.section-tema-wireframe .tema-wire-row--2col-equal .tema-wire-slots,
.section-tema-wireframe .tema-wire-row--3col-center .tema-wire-slots,
.section-tema-wireframe .tema-wire-row--3col-equal .tema-wire-slots,
.section-tema-wireframe .tema-wire-row--4col .tema-wire-slots {
    gap: 0.35rem;
}

/* Giriş / kayıt — admin menüsü yok */
body.auth-page {
    min-height: 100vh;
    background: var(--surface);
}

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.auth-topbar-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
    background: rgba(30, 79, 138, .1);
    color: var(--accent);
    font-size: 1.1rem;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 4.25rem);
    padding: 2rem 1rem 3rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: .75rem;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0;
    color: var(--muted);
    font-size: .85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* Ön sayfa bölümleri listesi */
.section-index-page {
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.section-index-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(125deg, #0f1419 0%, #1a2332 42%, #8b1538 115%);
    color: #fff;
    box-shadow: 0 12px 40px rgba(15, 20, 25, .22);
}

.section-index-hero h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 .4rem;
    letter-spacing: -.02em;
}

.section-index-hero p {
    margin: 0;
    opacity: .9;
    font-size: .95rem;
    max-width: 32rem;
}

.section-index-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.section-index-hero-btn {
    font-weight: 600;
    border-radius: .5rem;
    padding: .5rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.section-index-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .75rem;
    box-shadow: 0 2px 12px rgba(16, 42, 67, .05);
    height: 100%;
}

.section-index-stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.section-index-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
}

.section-index-stat-label {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.section-index-filter-card {
    border: 1px solid var(--line);
    border-radius: .85rem;
    box-shadow: 0 2px 14px rgba(16, 42, 67, .06);
}

.section-index-table-card {
    border-radius: .85rem;
    overflow: hidden;
}

.section-index-table thead {
    background: linear-gradient(180deg, #f8f9fb 0%, #eef1f5 100%);
}

.section-index-table thead th {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #5c6570;
    border-bottom: 1px solid #dee2e6;
    padding: .85rem 1rem;
    white-space: nowrap;
}

.section-index-table tbody td {
    padding: .85rem 1rem;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
}

.section-index-row {
    transition: background .15s ease;
}

.section-index-row:hover {
    background: #fafbfc;
}

.section-index-row.is-inactive {
    opacity: .72;
}

.section-index-row.is-inactive .section-index-title-link {
    color: #6c757d;
}

.section-index-sort {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
}

.section-index-order-badge {
    display: inline-flex;
    min-width: 1.75rem;
    justify-content: center;
    padding: .15rem .45rem;
    font-size: .75rem;
    font-weight: 800;
    border-radius: .35rem;
    background: #212529;
    color: #fff;
}

.section-index-move .btn {
    padding: .1rem .35rem;
    line-height: 1;
}

.section-index-title-link {
    font-weight: 700;
    color: #0d3b66;
    text-decoration: none;
}

.section-index-title-link:hover {
    color: #c41e3a;
    text-decoration: underline;
}

.section-mod-chip {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .45rem .65rem .45rem .45rem;
    border-radius: .65rem;
    border: 1px solid transparent;
    min-width: 10rem;
}

.section-mod-chip-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.section-mod-chip-body {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.section-mod-chip-body strong {
    font-size: .82rem;
}

.section-mod-chip-body small {
    font-size: .72rem;
    opacity: .85;
}

.section-mod-chip.mod-hero {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8ec 100%);
    border-color: #f5c2cb;
    color: #842029;
}

.section-mod-chip.mod-hero .section-mod-chip-icon {
    background: #c41e3a;
    color: #fff;
}

.section-mod-chip.mod-announce {
    background: #eef6ff;
    border-color: #b6d4fe;
    color: #084298;
}

.section-mod-chip.mod-announce .section-mod-chip-icon {
    background: #0d6efd;
    color: #fff;
}

.section-mod-chip.mod-reports {
    background: #f3f0ff;
    border-color: #cfc2f0;
    color: #432874;
}

.section-mod-chip.mod-reports .section-mod-chip-icon {
    background: #6f42c1;
    color: #fff;
}

.section-mod-chip.mod-thumb {
    background: #e8f8f5;
    border-color: #a3e4d7;
    color: #0d5c4d;
}

.section-mod-chip.mod-thumb .section-mod-chip-icon {
    background: #20c997;
    color: #fff;
}

.section-mod-chip.mod-cme {
    background: #fff8e6;
    border-color: #ffda6a;
    color: #664d03;
}

.section-mod-chip.mod-cme .section-mod-chip-icon {
    background: #ffc107;
    color: #212529;
}

.section-mod-chip.mod-list {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

.section-mod-chip.mod-list .section-mod-chip-icon {
    background: #6c757d;
    color: #fff;
}

.section-mod-chip.mod-grid {
    background: #e7f1ff;
    border-color: #9ec5fe;
    color: #055160;
}

.section-mod-chip.mod-grid .section-mod-chip-icon {
    background: #0dcaf0;
    color: #212529;
}

.section-mod-chip.mod-resimli-link {
    background: #fff3e0;
    border-color: #ffcc80;
    color: #e65100;
}

.section-mod-chip.mod-resimli-link .section-mod-chip-icon {
    background: #ff9800;
    color: #fff;
}

.section-mod-chip.mod-ozel-html {
    background: #eceff1;
    border-color: #b0bec5;
    color: #37474f;
}

.section-mod-chip.mod-ozel-html .section-mod-chip-icon {
    background: #607d8b;
    color: #fff;
}

.section-index-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .55rem;
    border-radius: 2rem;
    white-space: nowrap;
}

.section-index-pill.pill-on {
    background: #d1e7dd;
    color: #0f5132;
}

.section-index-pill.pill-off {
    background: #e9ecef;
    color: #495057;
}

.section-index-pill.pill-hover {
    background: #cff4fc;
    color: #055160;
}

.section-index-publish {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem .75rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all .15s ease;
}

.section-index-publish.is-live {
    border-color: #a3cfbb;
    background: linear-gradient(180deg, #ecfdf3 0%, #d1e7dd 100%);
    color: #0f5132;
}

.section-index-publish-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #adb5bd;
}

.section-index-publish.is-live .section-index-publish-dot {
    background: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, .25);
    animation: section-publish-pulse 2s ease-in-out infinite;
}

@keyframes section-publish-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}

.section-index-publish:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.section-index-table-footer {
    padding: .75rem 1rem 1rem;
    border-top: 1px solid #f0f2f5;
}

.section-index-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #6c757d;
}

.section-index-alert {
    border-radius: .65rem;
    border: none;
    box-shadow: 0 2px 10px rgba(25, 135, 84, .12);
}

.section-index-placement-cell {
    min-width: 8.5rem;
}

.section-index-placement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
    padding: .4rem .55rem;
    margin-bottom: .35rem;
    border-radius: .55rem;
    border: 1px solid #ced4da;
    background: linear-gradient(180deg, #fff 0%, #f3f4f6 100%);
    text-decoration: none;
    color: #212529;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.section-index-placement:last-child {
    margin-bottom: 0;
}

.section-index-placement:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 10px rgba(13, 110, 253, .15);
    transform: translateY(-1px);
    color: #0a3622;
}

.section-index-placement-code {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .03em;
    padding: .12rem .4rem;
    border-radius: .3rem;
    background: #212529;
    color: #fff;
}

.section-index-placement-meta {
    font-size: .72rem;
    font-weight: 600;
    color: #495057;
}

.section-index-placement-stack {
    font-size: .68rem;
    font-weight: 700;
    padding: .1rem .35rem;
    border-radius: 2rem;
    background: #cff4fc;
    color: #055160;
}

.section-index-placement-none-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
}

.section-index-placement-none {
    font-size: .78rem;
    color: #868e96;
    font-weight: 600;
}

.section-index-placement-assign {
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
}
