/* =========================================================
   GLOBAL TOKENS (Enterprise Light)
   ========================================================= */

:root {
    --bg-body: #f3f4f6;
    --bg-surface: #ffffff;
    --bg-surface-soft: #f9fafb;
    --border-subtle: #e5e7eb;
    --border-strong: #cbd5e1;
    --primary: #2563eb;
    --primary-soft: rgba(37,99,235,.10);
    --accent: #0ea5e9;
    --text-main: #0f172a;
    /* ESKİ: #6b7280 çok soluk. Daha okunaklı yaptım: */
    --text-muted: #475569; /* slate-600 */
    --text-subtle: #64748b; /* slate-500 */

    --danger: #dc2626;
    --radius-lg: 1rem;
    --radius-md: .75rem;
    --shadow-soft: 0 8px 30px rgba(15,23,42,.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,"Segoe UI", sans-serif;
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #e5f0ff 0, #f9fafb 55%, #eef2ff 100%);
    color: var(--text-main);
}

/* Bootstrap muted override (GENEL) */
.text-muted,
.small.text-muted {
    color: var(--text-muted) !important;
}

/* =========================================================
   LEGACY ADMIN LAYOUT (admin-layout + sidebar)
   Bu bölüm eski MainLayout kullanan sayfalar için.
   ========================================================= */

.admin-layout {
    min-height: 100vh;
}

    .admin-layout .sidebar {
        width: 260px;
        background: linear-gradient(180deg,#ffffff 0%, #f9fafb 60%, #eef2ff 100%);
        color: var(--text-main);
        display: flex;
        flex-direction: column;
        border-right: 1px solid var(--border-subtle);
        box-shadow: 4px 0 18px rgba(15,23,42,.05);
    }

    .admin-layout .sidebar-brand {
        border-bottom: 1px solid var(--border-subtle);
    }

        .admin-layout .sidebar-brand .logo {
            font-weight: 800;
            letter-spacing: .08em;
            font-size: 1rem;
            text-transform: uppercase;
            color: var(--text-main);
        }

            .admin-layout .sidebar-brand .logo span {
                color: var(--primary);
            }

    .admin-layout .sidebar-tagline {
        font-size: .75rem;
        color: var(--text-muted);
        font-weight: 600;
    }

    .admin-layout .sidebar nav {
        margin-top: .35rem;
    }

        .admin-layout .sidebar nav .section-label {
            font-size: .70rem;
            text-transform: uppercase;
            letter-spacing: .16em;
            color: var(--text-subtle);
            margin: .75rem .4rem .25rem;
            font-weight: 800;
        }

        .admin-layout .sidebar nav .nav-link {
            color: var(--text-muted);
            border-radius: var(--radius-md);
            padding: .46rem .65rem;
            font-size: .88rem;
            display: flex;
            align-items: center;
            gap: .55rem;
            margin: 1px .25rem;
            transition: background .12s ease, color .12s ease, transform .06s ease, box-shadow .12s ease;
            font-weight: 700;
        }

            .admin-layout .sidebar nav .nav-link i {
                width: 18px;
                text-align: center;
                font-size: .95rem;
                color: #94a3b8;
            }

            .admin-layout .sidebar nav .nav-link:hover {
                background: var(--primary-soft);
                color: var(--primary);
                transform: translateX(1px);
            }

                .admin-layout .sidebar nav .nav-link:hover i {
                    color: var(--primary);
                }

            .admin-layout .sidebar nav .nav-link.active {
                background: linear-gradient(135deg, #2563eb, #3b82f6);
                color: #f9fafb;
                box-shadow: 0 12px 30px rgba(37,99,235,.28);
            }

                .admin-layout .sidebar nav .nav-link.active i {
                    color: #bfdbfe;
                }

    .admin-layout .sidebar-footer {
        border-top: 1px solid var(--border-subtle);
        font-size: .75rem;
        color: var(--text-muted);
    }

    /* Content alanı */
    .admin-layout .content {
        background: transparent;
        color: var(--text-main);
    }

    .admin-layout .admin-header {
        height: 56px;
        border-bottom: 1px solid var(--border-subtle);
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(14px);
        box-shadow: 0 6px 20px rgba(148,163,184,.22);
    }

    /* Header user pill */
    .admin-layout .user-pill {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        padding: .18rem .75rem;
        border-radius: 999px;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        font-size: .8rem;
        color: var(--text-main);
        font-weight: 700;
    }

        .admin-layout .user-pill .avatar {
            width: 24px;
            height: 24px;
            border-radius: 999px;
            background: linear-gradient(135deg, #2563eb, #3b82f6);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .7rem;
            color: #eff6ff;
            font-weight: 900;
        }

    .admin-layout .admin-main {
        flex: 1;
        padding: 1.5rem 1.5rem 2rem;
    }

/* Legacy dashboard cards */
.metric-card {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(219,234,254,.95), #ffffff 60%);
    border: 1px solid rgba(191,219,254,.9);
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

    .metric-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 120% -10%, rgba(96,165,250,.40), transparent 60%);
        opacity: .8;
        pointer-events: none;
    }

.metric-card-inner {
    position: relative;
    z-index: 1;
}

.metric-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--text-muted);
    font-weight: 800;
}

.metric-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.metric-pill {
    font-size: .72rem;
    padding: .1rem .5rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.6);
    color: var(--text-muted);
    background: #f9fafb;
}

/* Legacy card override */
.card.bg-dark {
    background: #ffffff !important;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    color: var(--text-main);
}

/* Table */
.table {
    color: var(--text-main);
    background-color: #fff;
}

    .table thead th {
        border-color: var(--border-subtle);
        color: var(--text-subtle);
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .12em;
        background-color: #f9fafb;
        font-weight: 900;
    }

    .table tbody td {
        border-color: #e5e7eb;
        font-size: .9rem;
    }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: none;
    color: #fff;
}

    .btn-primary:hover {
        filter: brightness(1.05);
    }

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
}

.btn-outline-light {
    border-color: #d1d5db;
    color: var(--text-main);
}

    .btn-outline-light:hover {
        background-color: #e5e7eb;
    }

/* =========================================================
   HERO / CAROUSEL FIXES
   ========================================================= */

.hero-overlay {
    pointer-events: none !important;
}

.hero-carousel .hero-control {
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.hero-carousel .hero-caption {
    pointer-events: none;
}

    .hero-carousel .hero-caption a {
        pointer-events: auto;
    }

/* =========================================================
   TREE MENU (LIGHT) - Eğer kullanıyorsan
   ========================================================= */

.tree-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tree-group {
    border-radius: 12px;
    overflow: visible;
    position: relative;
    border: 1px solid rgba(15,23,42,.08);
    background: #fff;
}

.tree-toggle {
    width: 100%;
    border: 0;
    background: rgba(15,23,42,.03);
    color: var(--text-main);
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 900;
}

    .tree-toggle:hover {
        background: rgba(37,99,235,.06);
    }

.tree-title {
    font-weight: 900;
    letter-spacing: .2px;
}

.tree-caret {
    transition: transform .15s ease;
    opacity: .75;
}

    .tree-caret.rot {
        transform: rotate(90deg);
    }

.tree-children {
    display: none;
    margin-top: 6px;
    padding-left: 10px;
    border-left: 1px solid rgba(15,23,42,.10);
}

    .tree-children.show {
        display: block;
    }

.tree-link,
.tree-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    padding: 9px 10px;
    border-radius: 10px;
    margin: 4px 0;
    opacity: .96;
    font-weight: 700;
}

    .tree-link:hover,
    .tree-sublink:hover {
        background: rgba(37,99,235,.06);
        opacity: 1;
    }

    .tree-link.active,
    .tree-sublink.active {
        background: rgba(37,99,235,.10);
        box-shadow: inset 0 0 0 1px rgba(37,99,235,.18);
        opacity: 1;
    }

.tree-node {
    margin: 4px 0;
}

.tree-node-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-main);
    padding: 9px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: .96;
    font-weight: 800;
}

    .tree-node-toggle:hover {
        background: rgba(15,23,42,.04);
        opacity: 1;
    }

.tree-caret-sm {
    transition: transform .15s ease;
    opacity: .70;
}

    .tree-caret-sm.rot {
        transform: rotate(90deg);
    }

.tree-subchildren {
    display: none;
    padding-left: 18px;
    margin-left: 4px;
    border-left: 1px dashed rgba(15,23,42,.18);
}

    .tree-subchildren.show {
        display: block;
    }

.tree-divider {
    height: 1px;
    background: rgba(15,23,42,.10);
    margin: 6px 4px;
}

/* =========================================================
   NEW ENTERPRISE ADMIN SHELL (admin-shell / admin-sidebar)
   Bu senin yeni profesyonel layout’un.
   ========================================================= */

.admin-shell {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --panel-2: #fbfcff;
    --line: rgba(15,23,42,.12);
    --text: #0f172a;
    --muted: #475569;
    --accent: #2563eb;
    --accent-2: #06b6d4;
    display: flex;
    min-height: 100vh;
    background: radial-gradient(900px 500px at 20% 0%, rgba(37,99,235,.08), transparent 60%), radial-gradient(700px 500px at 90% 10%, rgba(6,182,212,.08), transparent 60%), var(--bg);
    color: var(--text);
}

/* Sidebar */
.admin-sidebar {
    width: 320px;
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: width .18s ease;
    box-shadow: 0 12px 30px rgba(2,6,23,.06);
}

.admin-shell.is-collapsed .admin-sidebar {
    width: 88px;
}

.sb-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 16px 10px 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900;
    letter-spacing: .6px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 22px rgba(37,99,235,.18);
}

.brand-text {
    min-width: 0;
}

.brand-title {
    color: var(--text);
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .brand-title span {
        opacity: .6;
    }

.brand-sub {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.sb-collapse-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(2,6,23,.02);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
}

    .sb-collapse-btn:hover {
        background: rgba(37,99,235,.06);
    }

/* Search */
.sb-search {
    margin: 8px 14px 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    color: var(--muted);
}

    .sb-search input {
        width: 100%;
        border: 0;
        outline: none;
        background: transparent;
        color: var(--text);
        font-size: 13px;
        font-weight: 650;
    }

.admin-shell.is-collapsed .sb-search {
    display: none;
}

/* Menu */
.sb-menu {
    padding: 6px 10px 14px 10px;
    overflow: auto;
}

.sb-section {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(2,6,23,.06);
    background: rgba(255,255,255,.92);
}

.sb-section-head {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

    .sb-section-head .left {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .sb-section-head .text {
        font-weight: 900;
        font-size: 13px;
        color: rgba(15,23,42,.84);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sb-section-head .chevron {
        font-size: 12px;
        opacity: .70;
        transition: transform .18s ease;
    }

        .sb-section-head .chevron.open {
            transform: rotate(180deg);
        }

.sb-section-body {
    display: grid;
    grid-auto-rows: min-content;
    gap: 2px;
    padding: 6px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
}

    .sb-section-body.open {
        max-height: 520px;
    }

.sb-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(15,23,42,.78);
    border: 1px solid transparent;
    transition: background .12s ease, border-color .12s ease, transform .12s ease;
    font-weight: 750;
}

    .sb-link:hover {
        background: rgba(37,99,235,.06);
        border-color: rgba(37,99,235,.14);
        transform: translateY(-1px);
    }

    .sb-link.active {
        background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(6,182,212,.10));
        border-color: rgba(37,99,235,.22);
        color: rgba(15,23,42,.96);
    }

    .sb-link .text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 800;
        font-size: 13px;
    }

.sb-divider {
    height: 1px;
    margin: 12px 6px;
    background: var(--line);
}

/* Footer */
.sb-footer {
    margin-top: auto;
    padding: 12px 14px 16px 14px;
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.86);
}

.userbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 16px;
    border: 1px solid rgba(2,6,23,.06);
    background: rgba(255,255,255,.96);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.userbox .name {
    font-weight: 950;
    color: var(--text);
    font-size: 13px;
}

.userbox .hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.qa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 10px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid rgba(2,6,23,.10);
    background: rgba(255,255,255,.96);
    color: rgba(15,23,42,.88);
    font-weight: 900;
    font-size: 12px;
}

    .qa-btn:hover {
        background: rgba(37,99,235,.06);
    }

    .qa-btn.danger {
        color: rgba(185,28,28,.95);
    }

        .qa-btn.danger:hover {
            background: rgba(185,28,28,.06);
        }

.footnote {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* Collapsed */
.admin-shell.is-collapsed .brand-text,
.admin-shell.is-collapsed .sb-section-head .text,
.admin-shell.is-collapsed .sb-link .text,
.admin-shell.is-collapsed .userbox .meta,
.admin-shell.is-collapsed .footnote,
.admin-shell.is-collapsed .qa-btn .text {
    display: none;
}

.admin-shell.is-collapsed .sb-section-head {
    justify-content: center;
}

    .admin-shell.is-collapsed .sb-section-head .chevron {
        display: none;
    }

.admin-shell.is-collapsed .sb-link {
    justify-content: center;
    gap: 0;
}

.admin-shell.is-collapsed .quick-actions {
    grid-template-columns: 1fr;
}

/* Main area */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.90);
    backdrop-filter: blur(10px);
}

.tb-title .title {
    color: var(--text);
    font-weight: 950;
}

.tb-title .crumb {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.tb-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tb-pill {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.96);
    color: var(--text);
    border-radius: 999px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

    .tb-pill:hover {
        background: rgba(37,99,235,.06);
    }

    .tb-pill .text {
        font-weight: 800;
        font-size: 13px;
        color: rgba(15,23,42,.86);
    }

.admin-content {
    padding: 18px;
    min-height: calc(100vh - 66px);
}

/* User dropdown */
.user-menu-wrap {
    position: relative;
}

.user-menu-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 60;
}

.user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 270px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 40px rgba(2,6,23,.12);
    z-index: 70;
    overflow: hidden;
}

.user-menu-head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: rgba(37,99,235,.05);
    border-bottom: 1px solid rgba(2,6,23,.06);
}

    .user-menu-head .name {
        font-weight: 950;
        color: var(--text);
        font-size: 13px;
    }

    .user-menu-head .hint {
        font-size: 12px;
        color: var(--muted);
        font-weight: 650;
        margin-top: 2px;
    }

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: rgba(15,23,42,.90);
    font-weight: 900;
    border-left: 3px solid transparent;
}

    .user-menu-item:hover {
        background: rgba(37,99,235,.06);
        border-left-color: rgba(37,99,235,.45);
    }

    .user-menu-item.danger {
        color: rgba(185,28,28,.95);
    }

        .user-menu-item.danger:hover {
            background: rgba(185,28,28,.06);
            border-left-color: rgba(185,28,28,.35);
        }

.user-menu-divider {
    height: 1px;
    background: rgba(2,6,23,.08);
    margin: 6px 0;
}

/* Mobile (enterprise shell) */
.mobile-only {
    display: none;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.35);
    z-index: 40;
}

@media (max-width: 992px) {
    .mobile-only {
        display: grid;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        transform: translateX(-110%);
        width: 320px;
        transition: transform .18s ease;
    }

    .admin-shell.is-mobile-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-shell.is-mobile-open .mobile-overlay {
        display: block;
    }

    .admin-shell.is-collapsed .admin-sidebar {
        width: 320px;
    }
}

/* Legacy mobile sidebar open/close */
@media (max-width: 768px) {
    .admin-layout .sidebar {
        position: fixed;
        z-index: 1040;
        transform: translateX(-100%);
        transition: transform .22s ease;
        height: 100vh;
    }

        .admin-layout .sidebar.open {
            transform: translateX(0);
        }

    .admin-layout .content {
        margin-left: 0;
    }
}
/* =========================================================
   COLLAPSED FLYOUT (Enterprise Light) - admin-shell
   ========================================================= */

/* Desktop'ta flyout mantıklı, mobilde kapalı */
@media (min-width: 993px) {
    .admin-shell.is-collapsed .sb-section {
        position: relative;
        overflow: visible;
    }

    /* Normalde gizli, hover ile sağda açılacak */
    .admin-shell.is-collapsed .sb-section-body {
        display: none !important;
        position: absolute;
        left: 92px;
        top: 0;
        width: 290px;
        max-height: none !important;
        overflow: visible;
        padding: 10px;
        border-radius: 16px;
        border: 1px solid var(--line);
        background: rgba(255,255,255,.98);
        box-shadow: 0 18px 45px rgba(2,6,23,.14);
        z-index: 2000;
    }

    .admin-shell.is-collapsed .sb-section:hover .sb-section-body {
        display: grid !important;
    }

    /* Flyout içinde linklerin görünümü biraz daha belirgin */
    .admin-shell.is-collapsed .sb-section-body .sb-link {
        background: rgba(255,255,255,.96);
    }

        .admin-shell.is-collapsed .sb-section-body .sb-link:hover {
            background: rgba(37,99,235,.06);
        }
}
/* Force left-to-right inside editors and source textarea */
.html-surface,
.content-editor textarea,
.content-editor .html-surface,
.cms-card.editor,
.cms-card.editor * {
    direction: ltr !important;
    unicode-bidi: plaintext !important;
}

.nav-admin { display:grid; gap:14px; }

.nav-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap:12px;
}
.nav-title{
  font-size: 28px; font-weight: 950; letter-spacing: .2px;
  color: rgba(15,23,42,.92);
}
.nav-sub{ color: rgba(15,23,42,.62); font-weight: 650; font-size: 13px; }

.nav-actions{ display:flex; gap:10px; align-items:center; }

.nav-card{
  border-radius: 16px !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  box-shadow: 0 12px 30px rgba(2,6,23,.06) !important;
  background: #fff !important;
  color: rgba(15,23,42,.92) !important;
}

.nav-card-top{
  display:flex; justify-content:space-between; align-items:center; margin-bottom:10px;
}

.nav-search, .item-search{
  position: relative;
}
.nav-search i, .item-search i{
  position:absolute; left:10px; top:50%; transform:translateY(-50%);
  opacity:.55;
}
.nav-search input, .item-search input{ padding-left: 30px; }
.nav-search .clear, .item-search .clear{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  border:0; background:transparent; opacity:.6;
}
.nav-search .clear:hover, .item-search .clear:hover{ opacity:1; }

.nav-menu-list{
  margin-top:10px;
  display:flex; flex-direction:column; gap:8px;
  max-height: 460px; overflow:auto; padding-right: 4px;
}
.menu-row{
  width:100%;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.95);
  border-radius: 14px;
  padding: 10px 12px;
  display:flex; justify-content:space-between; align-items:center;
  text-align:left;
  transition: background .12s ease, transform .08s ease, border-color .12s ease;
}
.menu-row:hover{
  background: rgba(37,99,235,.06);
  border-color: rgba(37,99,235,.18);
  transform: translateY(-1px);
}
.menu-row.is-active{
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.10));
  border-color: rgba(37,99,235,.25);
}
.menu-name{ font-weight: 900; }
.menu-meta{ font-size: 12px; color: rgba(15,23,42,.62); }
.menu-row .che{ opacity:.55; }

.menu-header{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding: 8px 0 12px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  margin-bottom: 12px;
}
.menu-h-title{ font-size: 18px; font-weight: 950; }
.menu-h-sub{ color: rgba(15,23,42,.62); font-size: 12px; font-weight: 700; }
.menu-h-sub .dot{ margin: 0 8px; opacity:.5; }
.menu-h-sub .muted{ opacity:.9; }

.menu-toolbar{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  margin-bottom: 12px;
}

.nav-empty{
  padding: 22px 10px;
  display:flex; align-items:center; justify-content:center; gap:10px;
  color: rgba(15,23,42,.62);
}
.nav-empty.big{ min-height: 220px; }

.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
}
.chip-primary{ border-color: rgba(37,99,235,.22); background: rgba(37,99,235,.10); }
.chip-success{ border-color: rgba(34,197,94,.22); background: rgba(34,197,94,.10); color: rgba(21,128,61,.95); }
.chip-muted{ border-color: rgba(148,163,184,.28); background: rgba(148,163,184,.12); color: rgba(15,23,42,.70); }

.nav-table thead th{
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(15,23,42,.58);
}
.nav-row .drag{ cursor: grab; width: 42px; opacity: .6; }
.nav-row .drag:active{ cursor: grabbing; }
.nav-row.dragging{ opacity: .6; }

.editor-wrap{
  border-top: 1px solid rgba(15,23,42,.08);
  padding-top: 14px;
}
.editor-head{ margin-bottom: 10px; }
.nav-admin { display:grid; gap:14px; }

.nav-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; }
.nav-title{ font-size: 28px; font-weight: 950; letter-spacing: .2px; color: rgba(15,23,42,.92); }
.nav-sub{ color: rgba(15,23,42,.62); font-weight: 650; font-size: 13px; }

.nav-actions{ display:flex; gap:10px; align-items:center; }

.nav-card{
  border-radius: 16px !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  box-shadow: 0 12px 30px rgba(2,6,23,.06) !important;
  background: #fff !important;
  color: rgba(15,23,42,.92) !important;
}

.nav-card-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; gap:10px; }

.nav-search, .item-search{ position: relative; }
.nav-search i, .item-search i{
  position:absolute; left:10px; top:50%; transform:translateY(-50%); opacity:.55;
}
.nav-search input, .item-search input{ padding-left: 30px; }
.nav-search .clear, .item-search .clear{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  border:0; background:transparent; opacity:.6;
}
.nav-search .clear:hover, .item-search .clear:hover{ opacity:1; }

.nav-menu-list{
  margin-top:10px;
  display:flex; flex-direction:column; gap:8px;
  max-height: 520px; overflow:auto; padding-right: 4px;
}

.menu-row{
  width:100%;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.95);
  border-radius: 14px;
  padding: 10px 12px;
  display:flex; justify-content:space-between; align-items:center;
  text-align:left;
  transition: background .12s ease, transform .08s ease, border-color .12s ease;
}
.menu-row:hover{
  background: rgba(37,99,235,.06);
  border-color: rgba(37,99,235,.18);
  transform: translateY(-1px);
}
.menu-row.is-active{
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.10));
  border-color: rgba(37,99,235,.25);
}

.menu-row.is-deleted{
  opacity: .78;
  background: rgba(220,38,38,.04);
  border-color: rgba(220,38,38,.16);
}

.menu-name{ font-weight: 900; display:flex; align-items:center; gap:8px; }
.menu-meta{ font-size: 12px; color: rgba(15,23,42,.62); }
.menu-row .right{ display:flex; align-items:center; gap:10px; }
.menu-row .che{ opacity:.45; }

.menu-header{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding: 8px 0 12px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  margin-bottom: 12px;
}
.menu-h-title{ font-size: 18px; font-weight: 950; display:flex; align-items:center; gap:8px; }
.menu-h-sub{ color: rgba(15,23,42,.62); font-size: 12px; font-weight: 700; }
.menu-h-sub .dot{ margin: 0 8px; opacity:.5; }
.menu-h-sub .muted{ opacity:.9; }

.menu-toolbar{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom: 12px; }

.nav-empty{
  padding: 22px 10px;
  display:flex; align-items:center; justify-content:center; gap:10px;
  color: rgba(15,23,42,.62);
}
.nav-empty.big{ min-height: 220px; }

.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
}
.chip-success{ border-color: rgba(34,197,94,.22); background: rgba(34,197,94,.10); color: rgba(21,128,61,.95); }
.chip-muted{ border-color: rgba(148,163,184,.28); background: rgba(148,163,184,.12); color: rgba(15,23,42,.70); }
.chip-danger{ border-color: rgba(220,38,38,.22); background: rgba(220,38,38,.10); color: rgba(185,28,28,.95); }

.nav-table thead th{
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(15,23,42,.58);
}
.nav-row .drag{ cursor: grab; width: 42px; opacity: .6; }
.nav-row .drag:active{ cursor: grabbing; }
.nav-row.dragging{ opacity: .6; }
.nav-row.is-deleted{ opacity: .75; }

.editor-wrap{ border-top: 1px solid rgba(15,23,42,.08); padding-top: 14px; }
.editor-head{ margin-bottom: 10px; }

.icon-mini{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  display:grid;
  place-items:center;
  color: rgba(15,23,42,.72);
}
.icon-mini:hover{
  background: rgba(37,99,235,.06);
  border-color: rgba(37,99,235,.18);
}
.icon-mini.danger{ color: rgba(185,28,28,.92); }
.icon-mini.danger:hover{ background: rgba(185,28,28,.06); border-color: rgba(185,28,28,.18); }
.icon-mini.success{ color: rgba(21,128,61,.95); }
.icon-mini.success:hover{ background: rgba(21,128,61,.06); border-color: rgba(21,128,61,.18); }
.modal-enterprise .modal-content {
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,.10);
}

.modal-enterprise .modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}

.modal-enterprise .modal-body {
    padding: 1.1rem 1.25rem;
}

.modal-enterprise .modal-footer {
    padding: .9rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
/* ===== NAVIGATION TREE FIX (override) ===== */
/* Bu blok en sonda olmalı */

.nav-admin .tree-wrap .tree,
.nav-admin .tree-wrap .tree * {
    box-sizing: border-box;
}

.nav-admin .tree-wrap .tree-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 12px 12px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(2,6,23,.08) !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: 0 10px 22px rgba(2,6,23,.04) !important;
    /* indent */
    padding-left: calc(12px + (var(--lvl, 0) * 18px)) !important;
}

    .nav-admin .tree-wrap .tree-row.is-deleted {
        opacity: .72 !important;
        background: rgba(220,38,38,.04) !important;
        border-color: rgba(220,38,38,.14) !important;
    }

.nav-admin .tree-wrap .tree-left {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.nav-admin .tree-wrap .tree-title {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

    .nav-admin .tree-wrap .tree-title .t1 {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        font-weight: 900 !important;
        color: rgba(15,23,42,.92) !important;
        line-height: 1.15 !important;
    }

    .nav-admin .tree-wrap .tree-title .t2 {
        margin-top: 3px !important;
        font-size: 12px !important;
        color: rgba(15,23,42,.62) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 70ch !important;
    }

/* Caret */
.nav-admin .tree-wrap .tree-caret {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 12px !important;
    border: 1px solid rgba(2,6,23,.10) !important;
    background: rgba(2,6,23,.02) !important;
    cursor: pointer !important;
}

    .nav-admin .tree-wrap .tree-caret.ghost {
        border-color: transparent !important;
        background: transparent !important;
        cursor: default !important;
    }

    .nav-admin .tree-wrap .tree-caret i {
        opacity: .75 !important;
        transition: transform .12s ease !important;
    }

    .nav-admin .tree-wrap .tree-caret.open i {
        transform: rotate(90deg) !important;
    }

/* Actions */
.nav-admin .tree-wrap .tree-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
}

    .nav-admin .tree-wrap .tree-actions .btn {
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        display: grid !important;
        place-items: center !important;
        border-radius: 12px !important;
        line-height: 1 !important;
    }

/* Children container (önceki tree css'lerin display:none override'larını kırar) */
.nav-admin .tree-wrap .tree-children {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 8px 0 0 18px !important;
    padding-left: 12px !important;
    border-left: 1px dashed rgba(2,6,23,.16) !important;
}

/* Chip'ler okunaklı */
.nav-admin .chip {
    font-size: 11px !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(2,6,23,.10) !important;
    background: rgba(2,6,23,.03) !important;
    color: rgba(15,23,42,.78) !important;
    font-weight: 800 !important;
}
/* =========================
   Navigation Admin Enhancements
   ========================= */

.nav-admin .tree-wrap {
    margin-top: 10px;
}

.nav-admin .tree-row {
    position: relative;
    transition: box-shadow .12s ease, transform .12s ease, border-color .12s ease, background .12s ease;
}

    .nav-admin .tree-row.is-selected {
        border-color: rgba(37,99,235,.28) !important;
        box-shadow: 0 0 0 4px rgba(37,99,235,.10), 0 12px 26px rgba(2,6,23,.06) !important;
    }

    .nav-admin .tree-row.drag-over {
        border-color: rgba(6,182,212,.35) !important;
        box-shadow: 0 0 0 4px rgba(6,182,212,.12), 0 12px 26px rgba(2,6,23,.06) !important;
    }

/* Desktop: actions hover’da çıksın */
.nav-admin .tree-actions {
    opacity: 0;
    transform: translateY(2px);
    pointer-events: none;
    transition: opacity .12s ease, transform .12s ease;
}

@media (hover:hover) {
    .nav-admin .tree-row:hover .tree-actions {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.nav-admin .tree-row.is-selected .tree-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Drag handle */
.nav-admin .drag-handle {
    cursor: grab;
}

    .nav-admin .drag-handle:active {
        cursor: grabbing;
    }

/* Mobile: aksiyonları kebab’a indir */
.nav-admin .kebab {
    display: none;
}

@media (max-width: 992px) {
    .nav-admin .tree-actions {
        display: none;
    }

    .nav-admin .kebab {
        display: grid;
    }

    .nav-admin .action-pop {
        position: absolute;
        right: 10px;
        top: calc(100% + 8px);
        width: 240px;
        z-index: 40;
        border-radius: 14px;
        border: 1px solid rgba(2,6,23,.10);
        background: rgba(255,255,255,.98);
        box-shadow: 0 18px 40px rgba(2,6,23,.12);
        overflow: hidden;
    }

        .nav-admin .action-pop a,
        .nav-admin .action-pop button {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 12px;
            border: 0;
            background: transparent;
            text-decoration: none;
            color: rgba(15,23,42,.88);
            font-weight: 800;
            font-size: 13px;
        }

            .nav-admin .action-pop a:hover,
            .nav-admin .action-pop button:hover {
                background: rgba(37,99,235,.06);
            }

        .nav-admin .action-pop .danger {
            color: rgba(185,28,28,.92);
        }

            .nav-admin .action-pop .danger:hover {
                background: rgba(185,28,28,.06);
            }

        .nav-admin .action-pop .sep {
            height: 1px;
            background: rgba(2,6,23,.08);
        }
}
.item-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.35);
    z-index: 80;
}

.item-drawer {
    position: fixed;
    right: 16px;
    top: 16px;
    bottom: 16px;
    width: min(520px, calc(100vw - 32px));
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(2,6,23,.18);
    z-index: 90;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.item-drawer-head {
    padding: 14px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(15,23,42,.08);
    background: rgba(37,99,235,.04);
}

.item-drawer-title {
    font-weight: 950;
    letter-spacing: .2px;
    color: rgba(15,23,42,.92);
}

.item-drawer-sub {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(15,23,42,.62);
}

.item-drawer-body {
    padding: 14px;
    overflow: auto;
}

.item-drawer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.lang-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,.25);
    background: rgba(2,6,23,.35);
    color: #e5e7eb;
    font-size: 12.5px;
}


/* ============ CorpSite Pro UI ============ */
.cs-section {
    padding: 4rem 0;
}

.cs-kicker {
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    font-size: .75rem;
    opacity: .8;
}

.cs-display {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.cs-lead {
    font-size: 1.05rem;
    opacity: .9;
}

.cs-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

    .cs-card:hover {
        transform: translateY(-2px);
        transition: 160ms ease;
    }

.cs-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,110,253,.10);
}

.cs-divider {
    height: 1px;
    background: rgba(0,0,0,.08);
}

.cs-muted {
    opacity: .85;
}

.cs-btn {
    border-radius: 999px;
    padding: .65rem 1.1rem;
    font-weight: 600;
}
/* Pro Hero Slider */
.cs-hero-carousel .carousel-indicators.cs-hero-indicators {
    bottom: 10px;
}

.cs-hero-shadow {
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.cs-hero-frame {
    position: relative;
    min-height: 420px;
}

.cs-hero-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.cs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--cs-ov, rgba(0,0,0,.35)) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.05) 100%);
    pointer-events: none;
}

.cs-hero-glass {
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
}

.cs-hero-fallback .cs-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(13,110,253,.18), transparent 55%), radial-gradient(circle at 80% 20%, rgba(32,201,151,.16), transparent 55%), linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.03));
}

.cs-hero-fallback {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
}

.cs-hero-nav {
    opacity: .9;
}
.cs-hero-glass {
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
}

.cs-divider {
    height: 1px;
    background: rgba(255,255,255,.20);
}


.tabs-shell {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
}

.tabs-strip {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 8px 10px;
    background: color-mix(in srgb, var(--bs-body-bg) 92%, var(--bs-body-color) 8%);
    cursor: pointer;
    white-space: nowrap;
}

    .tab.active {
        background: var(--bs-body-bg);
        box-shadow: 0 8px 18px rgba(0,0,0,.08);
    }

.tab-x {
    border: none;
    background: transparent;
    font-size: 16px;
    line-height: 1;
    opacity: .7;
}

    .tab-x:hover {
        opacity: 1;
    }

.sortable-ghost {
    opacity: .35;
}

.sortable-chosen {
    outline: 2px dashed rgba(0,0,0,.15);
}

.hb-footer a {
    word-break: normal;
    overflow-wrap: anywhere;
}

.hb-footer a {
    word-break: normal;
    overflow-wrap: anywhere;
}


.hb-top-module--sticky {
    position: sticky;
    top: 0;
}

.hb-top-module {
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.hb-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,var(--hb-overlay,.6));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 2000;
}

.hb-popup {
    overflow: hidden;
}