﻿/* =========================================================
   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;
    --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)
   ========================================================= */

.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);
    }

    .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);
    }

    .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)
   ========================================================= */

.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
   ========================================================= */
@media (min-width: 993px) {
    .admin-shell.is-collapsed .sb-section {
        position: relative;
        overflow: visible;
    }

    .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;
    }

    .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 (tekil - temizlenmiş, tekrarlar kaldırıldı)
   ========================================================= */

.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-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);
}

/* =========================================================
   NAV TREE FIX + ENHANCEMENTS (override)
   ========================================================= */
.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;
    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 */
.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;
}

/* 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;
    }

.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: actions kebab */
.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 */
.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: 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-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-divider {
    height: 1px;
    background: rgba(255,255,255,.20);
}

/* Tabs */
.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;
}

/* Sticky module */
.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;
}

/* =========================================================
   FG (fg-*) - mevcut kullandığın yeni kart sistemin
   ========================================================= */

.fg-section {
    isolation: isolate;
    background: var(--fg-section-bg, transparent);
}

.fg-bg, .fg-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fg-inner {
    z-index: 2;
    position: relative;
}

.fg-heading--overlay {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 3;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(8px);
    color: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

    .fg-heading--overlay .hb-section-title,
    .fg-heading--overlay .hb-section-title * {
        color: inherit !important;
    }

/* CARD BASE */
.fg-card {
    border-radius: var(--fg-radius, 18px) !important;
    overflow: hidden;
    text-decoration: none;
    color: var(--fg-text, inherit);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    will-change: transform;
    min-height: var(--fg-minh, 0px);
    background: var(--fg-card-bg, #fff) !important;
    border-color: var(--fg-card-border, rgba(0,0,0,.08)) !important;
}

.fg-card--clickable {
    cursor: pointer;
    display: block;
}

    .fg-card--clickable:focus-visible {
        outline: 3px solid rgba(13,110,253,.35);
        outline-offset: 2px;
    }

.fg-card__body {
    padding: var(--fg-pad, 24px) !important;
    position: relative;
    z-index: 2;
    display: flex;
}

.fg-card__content {
    display: flex;
    gap: 12px;
    width: 100%;
}

.fg-text {
    flex: 1 1 auto;
}

/* glass */
.fg-card--glass {
    background: var(--fg-card-bg, rgba(255,255,255,.10)) !important;
    border-color: var(--fg-card-border, rgba(255,255,255,.18)) !important;
    backdrop-filter: blur(10px);
    color: #fff;
}

/* TYPO */
.fg-title {
    font-size: var(--fg-title-size, 16px);
    font-weight: var(--fg-title-weight, 650);
    color: var(--fg-title, inherit);
    line-height: 1.25;
}

.fg-desc {
    font-size: var(--fg-desc-size, 13px);
    color: var(--fg-desc, rgba(0,0,0,.65));
    line-height: 1.4;
}

/* ICON */
.fg-iconwrap {
    width: var(--fg-iconbox, 44px);
    height: var(--fg-iconbox, 44px);
    border-radius: var(--fg-icon-radius, 14px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: var(--fg-ibg, rgba(124,58,237,.12));
    border: 1px solid rgba(124,58,237,.20);
}

.fg-icon {
    font-size: var(--fg-icon-size, 16px);
    color: var(--fg-accent, #7c3aed);
    transition: transform .18s ease;
}

/* CTA */
.fg-cta__icon {
    transition: transform .18s ease;
}

.fg-card:hover .fg-cta__icon {
    transform: translateX(4px);
}

/* HOVER PRESETS */
.fg-hover--lift:hover {
    transform: translateY(-4px);
}

.fg-hover--glow:hover {
    transform: translateY(-4px);
    border-color: rgba(124,58,237,.35) !important;
}

.fg-hover--tilt:hover {
    transform: translateY(-3px) rotate(-.4deg);
}

.fg-hover--zoom:hover {
    transform: translateY(-3px);
}

/* MEDIA: Background layout */
.fg-card--bgmedia {
    position: relative;
}

    .fg-card--bgmedia::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background-image: var(--fg-media);
        background-size: var(--fg-media-fit, cover);
        background-position: var(--fg-media-pos, center);
        background-repeat: no-repeat;
        transform: scale(1);
        transition: transform .35s ease;
    }

    .fg-card--bgmedia::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: var(--fg-media-ovc, #000000);
        opacity: var(--fg-media-ov, .45);
    }

/* MEDIA: Top layout */
.fg-media--top {
    height: var(--fg-media-h, 160px);
    background-image: var(--fg-media);
    background-size: var(--fg-media-fit, cover);
    background-position: var(--fg-media-pos, center);
    background-repeat: no-repeat;
    position: relative;
}

    .fg-media--top::after {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--fg-media-ovc, #000000);
        opacity: var(--fg-media-ov, .45);
    }

/* Zoom media on hover */
.fg-card:hover.fg-card--bgmedia::before {
    transform: scale(calc(1 + (0.06 * var(--fg-zoom, 1))));
}

.fg-card:hover .fg-icon {
    transform: scale(calc(1 + (0.08 * var(--fg-iconpop, 1))));
}

/* content positioning */
.fg-pos--tl .fg-card__body {
    align-items: flex-start;
    justify-content: flex-start;
}

.fg-pos--tc .fg-card__body {
    align-items: flex-start;
    justify-content: center;
}

.fg-pos--tr .fg-card__body {
    align-items: flex-start;
    justify-content: flex-end;
}

.fg-pos--cl .fg-card__body {
    align-items: center;
    justify-content: flex-start;
}

.fg-pos--cc .fg-card__body {
    align-items: center;
    justify-content: center;
}

.fg-pos--cr .fg-card__body {
    align-items: center;
    justify-content: flex-end;
}

.fg-pos--bl .fg-card__body {
    align-items: flex-end;
    justify-content: flex-start;
}

.fg-pos--bc .fg-card__body {
    align-items: flex-end;
    justify-content: center;
}

.fg-pos--br .fg-card__body {
    align-items: flex-end;
    justify-content: flex-end;
}

/* Accordion smooth */
.hb-acc__body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .28s ease, opacity .18s ease;
}

    .hb-acc__body.is-open {
        max-height: 2400px;
        opacity: 1;
    }

.hb-acc__chev {
    transition: transform .18s ease;
}

    .hb-acc__chev.is-open {
        transform: rotate(180deg);
    }

/* ✅ Delete Confirm Modal */
.hb-confirm__overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 2000;
}

.hb-confirm__dialog {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    border: 1px solid rgba(0,0,0,.08);
    overflow: hidden;
}

.hb-confirm__head {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hb-confirm__body {
    padding: 16px;
}

.hb-confirm__foot {
    padding: 14px 16px;
    border-top: 1px solid rgba(0,0,0,.08);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* =========================================================
   ✅ FINAL: HB Feature Grid (hb-fg__*)  (tek kaynak / çakışma yok)
   Bu blok senin renderer’daki hb-fg sınıflarıyla %100 uyumlu.
   ========================================================= */

.hb-fg {
    position: relative;
    border-radius: 18px;
}

.hb-fg__overlay {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    z-index: 0;
    pointer-events: none;
}

.hb-fg__inner {
    position: relative;
    z-index: 1;
}

.hb-fg__card {
    position: relative;
    overflow: hidden;
    border-radius: var(--fg-radius, 18px);
    background: var(--fg-card-bg, #fff);
    border: 1px solid var(--fg-card-border, rgba(0,0,0,.08));
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    min-height: var(--fg-minh, 0px);
}

/* Kart komple tıklanabilir */
.hb-fg__card--link {
    cursor: pointer;
}

.hb-fg__stretched {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: block;
    border-radius: inherit;
    text-decoration: none;
}

    .hb-fg__stretched:focus-visible {
        outline: 2px solid var(--fg-accent, #7c3aed);
        outline-offset: 3px;
    }

/* Background media katmanları */
.hb-fg__bgimg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    transform: scale(1.02);
    z-index: 0;
}

.hb-fg__bgov {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Top media */
.hb-fg__top {
    position: relative;
    overflow: hidden;
}

.hb-fg__topimg {
    width: 100%;
    height: 100%;
    display: block;
    transform: scale(1.01);
}

.hb-fg__mediaov {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Body her zaman medyanın üstünde */
.hb-fg__body {
    position: relative;
    z-index: 2;
    padding: var(--fg-pad, 24px);
}

/* Shadow presets */
.hb-fg__shadow-none {
    box-shadow: none;
}

.hb-fg__shadow-sm {
    box-shadow: 0 .2rem .8rem rgba(0,0,0,.06);
}

.hb-fg__shadow-md {
    box-shadow: 0 .6rem 1.4rem rgba(0,0,0,.10);
}

.hb-fg__shadow-lg {
    box-shadow: 0 1.2rem 2.6rem rgba(0,0,0,.14);
}

/* glass */
.hb-fg__glass {
    background: var(--fg-card-bg, rgba(255,255,255,.10));
    border-color: var(--fg-card-border, rgba(255,255,255,.18));
    backdrop-filter: blur(10px);
}

/* Icon */
.hb-fg__iconwrap {
    width: var(--fg-iconbox, 44px);
    height: var(--fg-iconbox, 44px);
    border-radius: var(--fg-icon-radius, 14px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fg-ibg, rgba(124,58,237,.12));
    border: 1px solid rgba(0,0,0,.06);
    transition: transform .18s ease;
}

.hb-fg__icon {
    font-size: var(--fg-icon-size, 16px);
}

/* Text */
.hb-fg__title {
    font-weight: var(--fg-title-weight, 650);
    font-size: var(--fg-title-size, 16px);
    color: var(--fg-title, inherit);
}

.hb-fg__desc {
    font-size: var(--fg-desc-size, 13px);
    color: var(--fg-desc, rgba(0,0,0,.65));
}

.hb-fg__link {
    font-size: 13px;
    color: var(--fg-accent, #7c3aed);
}

/* Hover effects */
.hb-fg__hover-lift:hover {
    transform: translateY(-4px);
}

.hb-fg__hover-liftglow:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 55px rgba(0,0,0,.12);
}

.hb-fg__hover-tilt:hover {
    transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
    filter: saturate(1.05);
}

.hb-fg__hover-zoom:hover .hb-fg__bgimg {
    transform: scale(1.10);
}

.hb-fg__hover-zoom:hover .hb-fg__topimg {
    transform: scale(1.08);
}

.hb-fg__iconpop:hover .hb-fg__iconwrap {
    transform: translateY(-1px) scale(1.05);
}





/* Kart içi katman sırası */
.hb-fg__card {
    position: relative;
}
/* garanti */
.hb-fg__bgimg {
    z-index: 0 !important;
}
/* görsel en altta */
.hb-fg__bgov {
    z-index: 1 !important;
}
/* bg overlay üstte */
.hb-fg__body {
    z-index: 2 !important;
}
/* yazılar ikonlar */

/* Top media katmanı (top layout) */
.hb-fg__top {
    position: relative;
}

.hb-fg__topimg {
    position: relative;
    z-index: 0 !important;
}

.hb-fg__mediaov {
    z-index: 1 !important;
}

/* Kartın tamamını tıklat (en üst) */
.hb-fg__stretched {
    z-index: 10 !important;
}

/* Overlay görünür + opacity çalışır (inline style varsa onu kullanır) */
.hb-fg__bgov,
.hb-fg__mediaov {
    background: #000; /* fallback */
    opacity: .45; /* fallback */
    pointer-events: none !important;
}
.hb-html-block {
    line-height: 1.7;
    font-size: 1rem;
}

    .hb-html-block h1, .hb-html-block h2, .hb-html-block h3 {
        margin-top: 1.2rem;
        margin-bottom: .6rem;
    }

    .hb-html-block p {
        margin-bottom: .75rem;
    }

    .hb-html-block img {
        max-width: 100%;
        height: auto;
        border-radius: 1rem;
    }
/* survey-public.css */
.sv-wrap {
    background: radial-gradient(1200px 500px at 10% -10%, rgba(13,110,253,.12), transparent 60%), radial-gradient(900px 420px at 95% 5%, rgba(32,201,151,.10), transparent 55%), linear-gradient(180deg, rgba(248,249,250,1), rgba(255,255,255,1));
}

.sv-card {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    overflow: hidden;
}

.sv-head {
    padding: 20px 22px;
    background: linear-gradient(180deg, rgba(13,110,253,.06), rgba(255,255,255,0));
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.sv-title {
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.sv-sub {
    margin-top: 6px;
    color: rgba(33,37,41,.72);
    font-size: .95rem;
}

.sv-body {
    padding: 18px 22px 22px;
}

.sv-input {
    border-radius: 14px !important;
}

.sv-side {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(0,0,0,.05);
}

    .sv-side .card-body {
        padding: 18px 18px;
    }

.sv-badge {
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .78rem;
}

.sv-note {
    background: rgba(13,110,253,.05);
    border: 1px solid rgba(13,110,253,.15);
    border-radius: 14px;
    padding: 12px 12px;
    color: rgba(33,37,41,.8);
    font-size: .92rem;
}

.sv-sticky {
    position: sticky;
    top: 88px;
}
.sv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 2000;
}

.sv-modal {
    width: min(760px, 100%);
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    overflow: hidden;
}

.sv-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(13,110,253,.06);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.sv-modal-body {
    padding: 16px;
    max-height: 65vh;
    overflow: auto;
}

.sv-modal-foot {
    padding: 12px 16px;
    border-top: 1px solid rgba(0,0,0,.06);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.sv-opt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .sv-opt-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.sv-opt-btn {
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 14px;
    padding: 12px 12px;
    background: #fff;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    transition: all .12s ease;
}

    .sv-opt-btn:hover {
        border-color: rgba(13,110,253,.25);
        background: rgba(13,110,253,.03);
    }

.btn-check:checked + .sv-opt-btn {
    border-color: rgba(13,110,253,.35);
    background: rgba(13,110,253,.08);
}

.btn-check:focus + .sv-opt-btn,
.sv-opt-btn:focus {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}
.mk-contact-block {
    padding: 40px 0;
}

.mk-wrap {
    max-width: 920px;
    margin: 0 auto;
}

.mk-title {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 6px;
}

.mk-subtitle {
    color: rgba(0,0,0,.55);
    margin-bottom: 16px;
}

.mk-card {
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
}

.mk-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.mk-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

    .mk-row i {
        color: var(--mk-accent);
        margin-top: 3px;
        min-width: 18px;
        text-align: center;
    }

.mk-map {
    margin-top: 12px;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

    .mk-map iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }