/**
 * Yönetim & müşteri paneli — sabit açık tema (WISECP esintili).
 * body.admin-shell ve body.panel-shell ile uygulanır.
 */

body.admin-shell {
    --adm-navy: #1e3354;
    --adm-navy-mid: #2a4570;
    --adm-navy-bar: #2d4a6f;
    --adm-bg: #e8ecf3;
    --adm-card: #ffffff;
    --adm-text: #334155;
    --adm-heading: #1e293b;
    --adm-muted: #64748b;
    --adm-border: #e2e8f0;
    --adm-primary: #2563eb;
    --adm-primary-hover: #1d4ed8;
    --adm-success: #16a34a;
    --adm-warning: #d97706;
    --adm-danger: #dc2626;
    --adm-pink: #db2777;
    --adm-purple: #7c3aed;

    background: var(--adm-bg) !important;
    color: var(--adm-text) !important;
    padding-top: 0 !important;
    font-family: 'Inter', system-ui, sans-serif;
    color-scheme: light;
}

/* ===== Üst bar & navigasyon ===== */
.admin-topbar {
    background: linear-gradient(135deg, var(--adm-navy) 0%, var(--adm-navy-mid) 55%, #1a2d4a 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.2);
    position: sticky;
    top: 0;
    z-index: 1040;
    overflow: visible;
}

.admin-topbar__head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 24px;
    gap: 16px;
    flex-wrap: wrap;
}

/* geriye dönük */
.admin-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 24px;
    gap: 16px;
    flex-wrap: wrap;
}

/* Global arama */
.admin-global-search {
    position: relative;
    flex: 1 1 280px;
    min-width: 180px;
    max-width: 520px;
}

.admin-global-search__field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 6px 14px 6px 12px;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.admin-global-search.is-open .admin-global-search__field,
.admin-global-search__field:focus-within {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.22);
}

.admin-global-search__icon {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    flex-shrink: 0;
}

.admin-global-search__field:focus-within .admin-global-search__icon {
    color: var(--adm-muted);
}

.admin-global-search__input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.875rem;
    min-width: 0;
    outline: none;
}

.admin-global-search__input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.admin-global-search__field:focus-within .admin-global-search__input {
    color: var(--adm-heading);
}

.admin-global-search__field:focus-within .admin-global-search__input::placeholder {
    color: #94a3b8;
}

.admin-global-search__kbd {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: inherit;
}

.admin-global-search__field:focus-within .admin-global-search__kbd {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

.admin-global-search__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1060;
    background: #fff;
    border: 1px solid var(--adm-border);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
    max-height: min(70vh, 480px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-global-search__status {
    padding: 10px 14px;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--adm-border);
    background: #f8fafc;
    flex-shrink: 0;
}

.admin-global-search__results {
    overflow-y: auto;
    flex: 1;
    padding: 6px 0;
}

.admin-global-search__group-title {
    padding: 8px 14px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--adm-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-global-search__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--adm-text);
    border-left: 3px solid transparent;
    transition: background 0.1s;
}

.admin-global-search__item:hover,
.admin-global-search__item.is-active {
    background: #eff6ff;
    border-left-color: var(--adm-primary);
    color: var(--adm-heading);
}

.admin-global-search__item-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--adm-primary);
    flex-shrink: 0;
}

.admin-global-search__item-body {
    flex: 1;
    min-width: 0;
}

.admin-global-search__item-title {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.3;
}

.admin-global-search__item-title mark {
    background: #fef08a;
    padding: 0 2px;
    border-radius: 2px;
}

.admin-global-search__item-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--adm-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.admin-global-search__item-meta,
.admin-global-search__item-badge {
    font-size: 0.72rem;
    color: var(--adm-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-global-search__item-badge {
    color: #b45309;
    font-weight: 600;
}


.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff !important;
}

.admin-brand__logo {
    height: 32px;
    border-radius: 6px;
}

.admin-brand__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.admin-brand__text {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.admin-brand__badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.admin-topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: auto;
}

.admin-notify-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.admin-notify-btn:hover,
.admin-notify-btn.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.admin-notify-btn__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    background: var(--adm-danger);
    color: #fff;
    border: 2px solid var(--adm-navy-mid);
}

.admin-quota-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    max-width: 150px;
}

.admin-quota-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.admin-quota-pill .quota-progress {
    width: 48px;
    height: 5px;
    margin: 0;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
}

.admin-task-btn__badge {
    background: var(--adm-warning);
    color: #1e293b;
    border-color: var(--adm-navy-mid);
}

/* Hesap menüsü (hoş geldiniz) */
.admin-user-dd__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.admin-user-dd__toggle:hover,
.admin-user-dd.show .admin-user-dd__toggle {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

.admin-user-dd__toggle::after {
    margin-left: 2px;
    opacity: 0.7;
    border-top-color: rgba(255, 255, 255, 0.85);
}

.admin-user-dd__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.admin-user-dd__greet {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    margin-right: 4px;
}

.admin-user-dd__text strong {
    color: #fff;
    font-weight: 600;
}

.admin-user-menu {
    min-width: 240px;
    margin-top: 8px !important;
    padding: 6px !important;
    background: #fff !important;
    border: 1px solid var(--adm-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14) !important;
}

.admin-user-menu__head {
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--adm-border);
    margin-bottom: 4px;
}

.admin-user-menu__name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--adm-heading);
}

.admin-user-menu__role {
    display: block;
    font-size: 0.75rem;
    color: var(--adm-muted);
    margin-top: 2px;
}

.admin-user-menu__divider {
    height: 1px;
    background: var(--adm-border);
    margin: 4px 6px;
}

.admin-user-menu__logout {
    margin: 0;
}

.admin-nav-menu__link--danger {
    color: #dc2626 !important;
}

.admin-nav-menu__link--danger:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.admin-nav-menu__link--danger i {
    color: #dc2626;
}

.admin-topbar__link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.15s;
}

.admin-topbar__link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.admin-topbar__link--btn {
    border: none;
    background: transparent;
    cursor: pointer;
}

.admin-nav {
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
}

.admin-nav__inner {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 0 12px;
    gap: 2px;
    overflow: visible;
}

/* Doğrudan nav linki (özet panel vb.) */
.admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.admin-nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
}

.admin-nav-link.is-active {
    color: #fff !important;
    border-bottom-color: #60a5fa;
    background: rgba(255, 255, 255, 0.08);
}

.admin-nav-link > i {
    font-size: 1rem;
    opacity: 0.92;
}

/* Kategori menü — sade dropdown (tıkla aç) */
.admin-nav-dd {
    position: relative;
}

.admin-nav-dd__toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    color: rgba(255, 255, 255, 0.85) !important;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.admin-nav-dd__toggle::after {
    margin-left: 1px;
    opacity: 0.65;
    vertical-align: 0.1em;
    border-top-color: rgba(255, 255, 255, 0.75);
}

.admin-nav-dd__toggle > i {
    font-size: 1rem;
    opacity: 0.92;
}

.admin-nav-dd__toggle:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
}

.admin-nav-dd.show .admin-nav-dd__toggle {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: #93c5fd;
}

.admin-nav-dd.is-active .admin-nav-dd__toggle {
    color: #fff !important;
    border-bottom-color: #60a5fa;
}

/* Açılır liste — içerik kartlarıyla aynı dil */
.admin-nav-dd > .dropdown-menu.admin-nav-menu {
    min-width: 210px;
    margin: 0 !important;
    padding: 6px !important;
    z-index: 1060;
    background: #fff !important;
    border: 1px solid var(--adm-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
}

.admin-nav-menu__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--adm-heading) !important;
    text-decoration: none !important;
    transition: background 0.1s, color 0.1s;
}

.admin-nav-menu__link i {
    width: 1.15rem;
    font-size: 1rem;
    color: var(--adm-muted);
    text-align: center;
    flex-shrink: 0;
}

.admin-nav-menu__link:hover {
    background: #f1f5f9 !important;
    color: var(--adm-heading) !important;
}

.admin-nav-menu__link:hover i {
    color: var(--adm-primary);
}

.admin-nav-menu__link.is-active {
    background: #eff6ff !important;
    color: var(--adm-primary) !important;
    font-weight: 600;
}

.admin-nav-menu__link.is-active i {
    color: var(--adm-primary);
}

/* Sayfa sekmeleri (ayarlar, depolama) */
body.admin-shell .admin-tabs-bar {
    background: #f8fafc;
    border-bottom: 1px solid var(--adm-border);
    padding: 12px 16px 0;
    border-radius: 10px 10px 0 0;
}

body.admin-shell .admin-card-tabs {
    border: 1px solid var(--adm-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.admin-shell .admin-tabs-body {
    padding-top: 20px;
}

body.admin-shell .admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border: none;
}

body.admin-shell .admin-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--adm-muted) !important;
    background: transparent;
    transition: color 0.12s, background 0.12s, border-color 0.12s;
}

body.admin-shell .admin-tabs .nav-link:hover {
    color: var(--adm-heading) !important;
    background: #fff;
    border-color: var(--adm-border);
}

body.admin-shell .admin-tabs .nav-link.active {
    color: var(--adm-primary) !important;
    background: #fff !important;
    border-color: var(--adm-border);
    border-bottom-color: #fff;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}

body.admin-shell .admin-tabs--page {
    background: #fff;
    border: 1px solid var(--adm-border);
    border-radius: 10px;
    padding: 8px;
    gap: 4px;
}

body.admin-shell .admin-tabs--page .nav-link {
    border-radius: 8px;
    border: 1px solid transparent;
    margin-bottom: 0;
}

body.admin-shell .admin-tabs--page .nav-link.active {
    border-color: #bfdbfe;
    background: #eff6ff !important;
    border-bottom-color: #bfdbfe;
}

body.admin-shell .admin-tab-ico {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

body.admin-shell .admin-tab-ico--primary { background: #dbeafe; color: #1d4ed8; }
body.admin-shell .admin-tab-ico--success { background: #dcfce7; color: #15803d; }
body.admin-shell .admin-tab-ico--info { background: #cffafe; color: #0e7490; }
body.admin-shell .admin-tab-ico--warning { background: #fef3c7; color: #b45309; }
body.admin-shell .admin-tab-ico--danger { background: #fee2e2; color: #b91c1c; }
body.admin-shell .admin-tab-ico--secondary { background: #f1f5f9; color: #475569; }

/* ===== İçerik alanı ===== */
body.admin-shell .admin-wrapper,
body.admin-shell #wrapper.admin-wrapper,
body.admin-shell #wrapper {
    margin: 0 !important;
    min-height: 100vh;
    background: var(--adm-bg);
    display: flex;
    flex-direction: column;
    padding-top: 0 !important;
}

body.admin-shell.is-impersonating {
    --impersonation-gap: 6px;
    padding-top: 0 !important;
}

body.admin-shell.is-impersonating .impersonation-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    height: var(--impersonation-bar-height, 40px);
    min-height: var(--impersonation-bar-height, 40px);
    max-height: var(--impersonation-bar-height, 40px);
    padding: 0 16px;
    margin: 0;
    line-height: 1.25;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

body.admin-shell.is-impersonating .impersonation-bar form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

body.admin-shell.is-impersonating .impersonation-bar .btn-link {
    display: inline-flex;
    align-items: center;
    line-height: 1.25;
    padding: 0;
    margin: 0;
    vertical-align: middle;
}

body.admin-shell.is-impersonating .admin-topbar {
    margin-top: calc(var(--impersonation-bar-height, 40px) + var(--impersonation-gap));
    top: calc(var(--impersonation-bar-height, 40px) + var(--impersonation-gap));
}

body.admin-shell.is-impersonating #wrapper {
    padding-top: 0 !important;
}

@media (max-width: 576px) {
    body.admin-shell.is-impersonating {
        --impersonation-bar-height: 52px;
    }
}

body.admin-shell .admin-content,
body.admin-shell #page-content-wrapper.admin-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.admin-shell .admin-container {
    max-width: 1440px;
    padding: 24px 28px 32px;
    flex: 1;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Alt bilgi (footer) ===== */
body.admin-shell .admin-footer {
    margin-top: auto;
    background: #fff;
    border-top: 1px solid var(--adm-border);
    box-shadow: 0 -1px 0 rgba(30, 51, 84, 0.04);
}

body.admin-shell .admin-footer__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--adm-muted);
}

body.admin-shell .admin-footer__left,
body.admin-shell .admin-footer__right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

body.admin-shell .admin-footer__sep {
    margin: 0 0.5rem;
    color: #cbd5e1;
    user-select: none;
}

body.admin-shell .admin-footer__tag {
    color: var(--adm-text);
    font-weight: 500;
}

body.admin-shell .admin-footer__version {
    font-variant-numeric: tabular-nums;
    color: #94a3b8;
}

body.admin-shell .admin-footer__link {
    color: var(--adm-primary);
    text-decoration: none;
    font-weight: 500;
}

body.admin-shell .admin-footer__link:hover {
    color: var(--adm-primary-hover);
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    body.admin-shell .admin-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 20px;
    }
}

body.admin-shell h4,
body.admin-shell h5,
body.admin-shell h6 {
    color: var(--adm-heading);
}

body.admin-shell .text-muted {
    color: var(--adm-muted) !important;
}

/* ===== Kartlar ===== */
body.admin-shell .card {
    background: var(--adm-card) !important;
    border: 1px solid var(--adm-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    color: var(--adm-text) !important;
}

body.admin-shell .card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

body.admin-shell .card-header {
    background: #fff !important;
    border-bottom: 1px solid var(--adm-border) !important;
    color: var(--adm-heading) !important;
    font-weight: 600;
    padding: 14px 20px;
}

body.admin-shell .card-body {
    color: var(--adm-text);
}

body.admin-shell .card-footer {
    background: #f8fafc !important;
    border-top: 1px solid var(--adm-border) !important;
}

/* Kota özeti — koyu tema değişkenlerini admin kabuğunda override et */
body.admin-shell .quota-summary {
    background: var(--adm-card) !important;
    border: 1px solid var(--adm-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    color: var(--adm-text) !important;
    padding: 1rem 1.25rem;
}

body.admin-shell .quota-summary--expired {
    border-color: rgba(220, 38, 38, 0.35) !important;
}

body.admin-shell .quota-summary-header {
    margin-bottom: 0.85rem;
}

body.admin-shell .quota-summary-title {
    color: var(--adm-heading);
    font-weight: 600;
}

body.admin-shell .quota-summary-grid {
    gap: 0.75rem;
}

@media (min-width: 768px) {
    body.admin-shell .quota-summary--compact .quota-summary-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    body.admin-shell .quota-summary--full .quota-summary-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

body.admin-shell .quota-meter {
    background: #f8fafc;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
}

body.admin-shell .quota-meter-label {
    color: var(--adm-heading);
    font-weight: 500;
}

body.admin-shell .quota-meter-value {
    color: var(--adm-text);
}

body.admin-shell .quota-meter-value .text-muted {
    color: var(--adm-muted) !important;
}

body.admin-shell .quota-progress {
    background: #e2e8f0 !important;
    height: 6px;
    border-radius: 4px;
}

body.admin-shell .quota-meter-foot {
    color: var(--adm-muted);
}

body.admin-shell .quota-meter-foot .text-muted {
    color: var(--adm-muted) !important;
}

/* Breadcrumb (müşteri paneli sayfaları) */
body.admin-shell .breadcrumb-custom {
    background: var(--adm-card) !important;
    border: 1px solid var(--adm-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    padding: 12px 18px;
    margin-bottom: 1.25rem;
}

body.admin-shell .breadcrumb-custom .breadcrumb {
    margin-bottom: 0;
}

body.admin-shell .breadcrumb-custom .breadcrumb-item a,
body.admin-shell .breadcrumb .breadcrumb-item a {
    color: var(--adm-primary) !important;
    text-decoration: none;
    font-weight: 500;
}

body.admin-shell .breadcrumb-custom .breadcrumb-item a:hover,
body.admin-shell .breadcrumb .breadcrumb-item a:hover {
    color: var(--adm-primary-hover) !important;
    text-decoration: underline;
}

body.admin-shell .breadcrumb-custom .breadcrumb-item.active,
body.admin-shell .breadcrumb .breadcrumb-item.active {
    color: var(--adm-muted) !important;
}

body.admin-shell .breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before,
body.admin-shell .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8 !important;
    opacity: 1;
}

/* İstatistik kartları */
body.admin-shell .stat-card {
    border: 1px solid var(--adm-border) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

body.admin-shell .stat-card::before {
    display: none;
}

body.admin-shell .stat-value {
    color: var(--adm-heading) !important;
    font-size: 1.75rem;
}

body.admin-shell .stat-label {
    color: var(--adm-muted) !important;
}

/* Renkli durum şeritleri (özet) */
.admin-status-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-status-tile {
    border-radius: 8px;
    padding: 20px 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 100px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.admin-status-tile__value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.admin-status-tile__label {
    font-size: 0.88rem;
    opacity: 0.95;
    margin-top: 4px;
}

.admin-status-tile__icon {
    position: absolute;
    right: 16px;
    bottom: 12px;
    font-size: 2.5rem;
    opacity: 0.2;
}

.admin-status-tile--pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.admin-status-tile--purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.admin-status-tile--green { background: linear-gradient(135deg, #22c55e, #15803d); }
.admin-status-tile--slate { background: linear-gradient(135deg, #64748b, #475569); }

/* Sağlık özeti */
body.admin-shell .health-mini {
    border: 1px solid var(--adm-border) !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.admin-shell .health-mini--ok { border-left: 4px solid var(--adm-success) !important; }
body.admin-shell .health-mini--warning { border-left: 4px solid var(--adm-warning) !important; }
body.admin-shell .health-mini--error { border-left: 4px solid var(--adm-danger) !important; }

body.admin-shell .health-banner {
    border-radius: 8px;
    color: var(--adm-heading);
}

body.admin-shell .health-banner--ok {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
}

body.admin-shell .health-banner--warning {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
}

body.admin-shell .health-banner--error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
}

/* Sistem sağlığı — üç sütunlu pano (WISECP benzeri) */
body.admin-shell .health-page-title {
    color: var(--adm-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.admin-shell .health-page-sub {
    font-size: 0.85rem;
}

body.admin-shell .health-breadcrumb {
    font-size: 0.8rem;
    color: var(--adm-muted);
}

body.admin-shell .health-breadcrumb a {
    color: var(--adm-primary);
    text-decoration: none;
}

body.admin-shell .health-breadcrumb a:hover {
    text-decoration: underline;
}

body.admin-shell .health-breadcrumb__sep {
    margin: 0 0.35rem;
    color: #cbd5e1;
}

body.admin-shell .health-board-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--adm-border);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body.admin-shell .health-board-card__head {
    position: relative;
    text-align: center;
    padding: 2rem 1.25rem 1.75rem;
    color: #fff;
    overflow: hidden;
}

body.admin-shell .health-board-card--error .health-board-card__head {
    background: linear-gradient(160deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
}

body.admin-shell .health-board-card--warning .health-board-card__head {
    background: linear-gradient(160deg, #f59e0b 0%, #d97706 55%, #b45309 100%);
}

body.admin-shell .health-board-card--ok .health-board-card__head {
    background: linear-gradient(160deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
}

body.admin-shell .health-board-card__watermark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 7rem;
    opacity: 0.12;
    line-height: 1;
    pointer-events: none;
}

body.admin-shell .health-board-card__icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

body.admin-shell .health-board-card__count {
    position: relative;
    z-index: 1;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

body.admin-shell .health-board-card__label {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.95;
    margin-top: 0.25rem;
}

body.admin-shell .health-board-card__body {
    flex: 1;
    background: #fff;
    max-height: min(70vh, 640px);
    overflow-y: auto;
}

body.admin-shell .health-board-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--adm-muted);
}

body.admin-shell .health-board-empty i {
    font-size: 2rem;
    opacity: 0.35;
    display: block;
    margin-bottom: 0.75rem;
}

body.admin-shell .health-board-empty p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

body.admin-shell .health-board-divider {
    margin: 0;
    border-color: #f1f5f9;
    opacity: 1;
}

body.admin-shell .health-board-item {
    display: block;
    padding: 1rem 1.15rem;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.12s;
}

body.admin-shell .health-board-item:hover {
    background: #f8fafc;
}

body.admin-shell .health-board-card--error .health-board-item__title {
    color: #dc2626;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

body.admin-shell .health-board-card--warning .health-board-item__title {
    color: #d97706;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

body.admin-shell .health-board-card--ok .health-board-item__title {
    color: #16a34a;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

body.admin-shell .health-board-item__text {
    font-size: 0.82rem;
    color: var(--adm-text);
    line-height: 1.45;
    margin-bottom: 0.25rem;
}

body.admin-shell .health-board-item__detail {
    font-size: 0.78rem;
    color: var(--adm-muted);
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

body.admin-shell .health-board-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--adm-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.35rem;
}

body.admin-shell .health-board-item__meta i {
    font-size: 0.7rem;
    opacity: 0.6;
}

body.admin-shell .health-board-card--error {
    border-color: #fecaca;
}

body.admin-shell .health-board-card--warning {
    border-color: #fde68a;
}

body.admin-shell .health-board-card--ok {
    border-color: #bbf7d0;
}

@media (max-width: 991.98px) {
    body.admin-shell .health-board-card__body {
        max-height: none;
    }
}

/* ===== Tablolar ===== */
body.admin-shell .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--adm-text);
    --bs-table-border-color: var(--adm-border);
    color: var(--adm-text) !important;
}

body.admin-shell .table > :not(caption) > * > * {
    background-color: transparent !important;
    color: var(--adm-text) !important;
    border-color: var(--adm-border) !important;
}

body.admin-shell .table thead th {
    background: var(--adm-navy-bar) !important;
    color: #fff !important;
    border: none !important;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
}

body.admin-shell .table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9 !important;
}

body.admin-shell .table-hover tbody tr:hover > * {
    background-color: #f1f5f9 !important;
    color: var(--adm-text) !important;
}

body.admin-shell .table-warning {
    --bs-table-bg: #fffbeb;
    --bs-table-color: var(--adm-text);
}

body.admin-shell .table-warning > :not(caption) > * > * {
    background-color: #fffbeb !important;
    color: var(--adm-text) !important;
}

body.admin-shell .table-hover > tbody > tr.table-warning:hover > * {
    background-color: #fef3c7 !important;
    color: var(--adm-text) !important;
}

/* ===== Butonlar ===== */
body.admin-shell .btn-primary {
    background: var(--adm-primary) !important;
    border-color: var(--adm-primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

body.admin-shell .btn-primary:hover {
    background: var(--adm-primary-hover) !important;
    border-color: var(--adm-primary-hover) !important;
    color: #fff !important;
}

body.admin-shell .btn-outline-primary {
    color: var(--adm-primary) !important;
    border-color: var(--adm-primary) !important;
}

body.admin-shell .btn-outline-primary:hover {
    background: var(--adm-primary) !important;
    color: #fff !important;
}

body.admin-shell .btn-outline-secondary {
    color: #475569 !important;
    border-color: #cbd5e1 !important;
    background: #fff !important;
}

body.admin-shell .btn-outline-secondary:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #94a3b8 !important;
}

body.admin-shell .btn-outline-info {
    color: #0891b2 !important;
    border-color: #67e8f9 !important;
}

body.admin-shell .btn-outline-info:hover {
    background: #06b6d4 !important;
    color: #fff !important;
}

body.admin-shell .btn-outline-danger {
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
}

body.admin-shell .btn-outline-danger:hover {
    background: #dc2626 !important;
    color: #fff !important;
}

body.admin-shell .btn-outline-success {
    color: #16a34a !important;
    border-color: #86efac !important;
}

body.admin-shell .btn-outline-success:hover {
    background: #16a34a !important;
    color: #fff !important;
}

/* ===== Formlar ===== */
body.admin-shell .form-control,
body.admin-shell .form-select {
    background: #fff !important;
    border-color: var(--adm-border) !important;
    color: var(--adm-text) !important;
}

body.admin-shell .form-control:focus,
body.admin-shell .form-select:focus {
    border-color: var(--adm-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

body.admin-shell .form-label {
    color: var(--adm-heading) !important;
}

body.admin-shell .form-text {
    color: var(--adm-muted) !important;
}

body.admin-shell .form-text code {
    background: #e2e8f0 !important;
    color: #334155 !important;
    font-size: 0.92em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

/* ===== Rozet & uyarı ===== */
body.admin-shell .badge.bg-secondary,
body.admin-shell .badge.badge-status-unknown {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

body.admin-shell .badge.bg-success {
    background: #16a34a !important;
    color: #fff !important;
}

body.admin-shell .badge.bg-danger {
    background: #dc2626 !important;
    color: #fff !important;
}

body.admin-shell .badge.bg-warning.text-dark {
    background: #f59e0b !important;
    color: #1e293b !important;
}

body.admin-shell .badge.bg-light,
body.admin-shell .badge.bg-light.text-dark {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: var(--adm-border) !important;
}

body.admin-shell .alert {
    border-radius: 8px;
}

body.admin-shell .alert-success {
    background: #ecfdf5 !important;
    color: #166534 !important;
    border-color: #bbf7d0 !important;
}

body.admin-shell .alert-warning {
    background: #fffbeb !important;
    color: #92400e !important;
    border-color: #fde68a !important;
}

body.admin-shell .alert-danger {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-color: #fecaca !important;
}

body.admin-shell .alert-info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border-color: #bfdbfe !important;
}

body.admin-shell .alert-light,
body.admin-shell .panel-guide-box {
    background: #fff !important;
    color: var(--adm-text) !important;
    border: 1px solid var(--adm-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

body.admin-shell .panel-guide-box {
    padding: 0;
    overflow: hidden;
}

body.admin-shell .panel-guide-box__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--adm-border);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--adm-heading);
}

body.admin-shell .panel-guide-box__head i {
    color: var(--adm-primary);
    font-size: 1rem;
}

body.admin-shell .panel-guide-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    body.admin-shell .panel-guide-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

body.admin-shell .panel-guide-step {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--adm-border);
}

body.admin-shell .panel-guide-step:last-child {
    border-bottom: none;
}

@media (min-width: 768px) {
    body.admin-shell .panel-guide-step {
        border-bottom: none;
        border-right: 1px solid var(--adm-border);
    }

    body.admin-shell .panel-guide-step:last-child {
        border-right: none;
    }
}

body.admin-shell .panel-guide-step__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
}

body.admin-shell .panel-guide-step__num--primary {
    background: var(--adm-primary);
    color: #fff;
}

body.admin-shell .panel-guide-step__body strong {
    display: block;
    font-size: 0.85rem;
    color: var(--adm-heading);
    margin-bottom: 4px;
}

body.admin-shell .panel-guide-step__body p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--adm-muted);
}

body.admin-shell .panel-guide-box__foot {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid var(--adm-border);
    font-size: 0.78rem;
    color: var(--adm-muted);
}

body.admin-shell .panel-guide-box__foot i {
    color: var(--adm-primary);
    margin-top: 2px;
}

body.admin-shell .panel-guide-box__foot a {
    color: var(--adm-primary);
    font-weight: 500;
    text-decoration: none;
}

body.admin-shell .panel-guide-box__foot a:hover {
    text-decoration: underline;
}

/* Panel seçici (site yedekle sihirbazı) */
body.admin-shell button.panel-card {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--adm-border) !important;
    background: #fff !important;
    border-radius: 10px !important;
    padding: 18px 12px !important;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--adm-text) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
    cursor: pointer;
}

body.admin-shell button.panel-card:hover {
    border-color: #93c5fd !important;
    background: #f8fafc !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

body.admin-shell button.panel-card.active {
    border-color: var(--adm-primary) !important;
    background: #eff6ff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
    transform: none;
}

body.admin-shell .panel-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
    filter: none !important;
}

body.admin-shell .panel-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--adm-heading) !important;
    letter-spacing: -0.01em;
}

body.admin-shell button.panel-card.active .panel-name {
    color: var(--adm-primary) !important;
}

/* ===== Liste & kod ===== */
body.admin-shell .list-group-item {
    background: #fff !important;
    color: var(--adm-text) !important;
    border-color: var(--adm-border) !important;
}

body.admin-shell .list-group-item-action:hover {
    background: #f1f5f9 !important;
    color: var(--adm-heading) !important;
}

body.admin-shell code {
    background: #f1f5f9 !important;
    color: #0f766e !important;
}

/* Koyu komut kutusu (cron vb.) — inline code arka planı override etme */
body.admin-shell .admin-cron-box,
body.admin-shell .bg-dark.admin-cron-box,
body.admin-shell .bg-dark {
    background: #1e293b !important;
    border: 1px solid #334155;
}

body.admin-shell .admin-cron-box .text-muted,
body.admin-shell .bg-dark .text-muted {
    color: #94a3b8 !important;
}

body.admin-shell .admin-cron-box code,
body.admin-shell .bg-dark code {
    background: #0f172a !important;
    color: #f8fafc !important;
    padding: 0.55rem 0.85rem;
    border-radius: 6px;
    border: 1px solid #475569;
    font-size: 0.8rem;
    line-height: 1.45;
    word-break: break-all;
}

/* Lisans sayfası */
body.admin-shell .admin-license-status__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

body.admin-shell .admin-license-status__icon--pending {
    background: #f1f5f9;
    color: #64748b;
}

body.admin-shell .admin-license-dl {
    display: grid;
    gap: 0.75rem;
    font-size: 0.875rem;
}

body.admin-shell .admin-license-dl dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--adm-muted);
    margin-bottom: 0.15rem;
}

body.admin-shell .admin-license-dl dd {
    margin: 0;
    font-weight: 600;
    color: var(--adm-heading);
}

body.admin-shell .admin-license-table th {
    width: 38%;
    font-weight: 600;
    color: var(--adm-muted);
    font-size: 0.82rem;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--adm-border);
}

body.admin-shell .admin-license-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--adm-border);
    font-size: 0.875rem;
}

body.admin-shell .admin-cron-log-view {
    display: block;
    max-height: 65vh;
    overflow: auto;
    padding: 1rem 1.1rem;
    margin: 0;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.78rem;
    line-height: 1.5;
    border: none;
    white-space: pre-wrap;
    word-break: break-word;
}

body.admin-shell .bg-light {
    background: #f8fafc !important;
    color: var(--adm-text) !important;
    border-color: var(--adm-border) !important;
}

/* ===== Modal & sayfalama ===== */
body.admin-shell .modal-content {
    background: #fff !important;
    color: var(--adm-text) !important;
    border: 1px solid var(--adm-border) !important;
}

body.admin-shell .modal-header,
body.admin-shell .modal-footer {
    border-color: var(--adm-border) !important;
}

body.admin-shell .pagination .page-link {
    color: var(--adm-text);
    background: #fff;
    border-color: var(--adm-border);
}

body.admin-shell .page-item.active .page-link {
    background: var(--adm-primary);
    border-color: var(--adm-primary);
    color: #fff !important;
}

/* DataTables */
body.admin-shell table.dataTable tbody tr {
    color: var(--adm-text);
}

body.admin-shell .dataTables_wrapper .dataTables_info,
body.admin-shell .dataTables_wrapper .dataTables_length,
body.admin-shell .dataTables_wrapper .dataTables_filter {
    color: var(--adm-muted) !important;
}

/* Nav sekmeleri (storage vb.) */
body.admin-shell .nav-tabs .nav-link {
    color: var(--adm-muted);
}

body.admin-shell .nav-tabs .nav-link.active {
    color: var(--adm-heading) !important;
    background: #fff !important;
    border-color: var(--adm-border) var(--adm-border) #fff !important;
}

body.admin-shell .nav-tabs {
    border-bottom-color: var(--adm-border);
}

/* Paket sihirbazı — admin içinde */
body.admin-shell .smart-template-card {
    background: #fff;
    border-color: var(--adm-border);
    color: var(--adm-text);
}

body.admin-shell .smart-template-card:hover,
body.admin-shell .smart-template-card.active {
    border-color: var(--adm-primary);
    background: #eff6ff;
}

body.admin-shell .smart-preview-card,
body.admin-shell .smart-preview-wrap {
    background: #f8fafc !important;
    border-color: var(--adm-border) !important;
    color: var(--adm-text);
}

/* Hızlı erişim listesi */
body.admin-shell .list-group-item {
    background: #fff;
    border-color: var(--adm-border) !important;
    color: var(--adm-text) !important;
}

body.admin-shell .list-group-item-action:hover,
body.admin-shell .list-group-item-action:focus {
    background: #f8fafc !important;
    color: var(--adm-heading) !important;
}

body.admin-shell .admin-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.88rem;
}

body.admin-shell .health-check-row {
    color: var(--adm-text) !important;
}

body.admin-shell .health-check-row:hover {
    background: #f8fafc !important;
}

/* Raporlar */
body.admin-shell .admin-report-kpi {
    border: 1px solid var(--adm-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

body.admin-shell .admin-chart-box {
    position: relative;
    height: 260px;
    width: 100%;
}

body.admin-shell .admin-chart-box--compact {
    height: 220px;
}

body.admin-shell .admin-chart-box--tall {
    height: 320px;
}

body.admin-shell .admin-report-module {
    border: 1px solid var(--adm-border);
    transition: border-color 0.15s, box-shadow 0.15s;
    color: inherit;
}

/* ===== Müşteri detay ===== */
body.admin-shell .admin-user-crumb .breadcrumb-item a {
    color: var(--adm-primary);
    text-decoration: none;
}

body.admin-shell .admin-user-crumb .breadcrumb-item.active {
    color: var(--adm-muted);
}

body.admin-shell .admin-user-hero {
    border: 1px solid var(--adm-border);
    box-shadow: 0 1px 3px rgba(30, 51, 84, 0.06);
}

body.admin-shell .admin-user-hero__avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--adm-navy-mid), var(--adm-primary));
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.admin-shell .admin-user-kpi {
    border: 1px solid var(--adm-border);
}

body.admin-shell .admin-user-kpi__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--adm-muted);
    margin-bottom: 4px;
}

body.admin-shell .admin-user-kpi__value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--adm-heading);
}

body.admin-shell .admin-user-dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0;
    font-size: 0.875rem;
}

body.admin-shell .admin-user-dl dt {
    padding: 10px 16px;
    margin: 0;
    background: #f8fafc;
    border-bottom: 1px solid var(--adm-border);
    color: var(--adm-muted);
    font-weight: 500;
}

body.admin-shell .admin-user-dl dd {
    padding: 10px 16px;
    margin: 0;
    border-bottom: 1px solid var(--adm-border);
    color: var(--adm-text);
}

body.admin-shell .admin-user-dl dt:last-of-type,
body.admin-shell .admin-user-dl dd:last-of-type {
    border-bottom: none;
}

/* Müşteri detay — Genel sekmesi */
body.admin-shell .admin-user-overview {
    align-items: flex-start;
}

body.admin-shell .admin-user-overview > [class*="col-"] {
    min-width: 0;
}

body.admin-shell .admin-user-overview__side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

body.admin-shell .admin-user-overview__card {
    width: 100%;
    height: auto !important;
}

body.admin-shell .admin-user-overview__card .list-group-item {
    background: #fff;
}

@media (max-width: 575.98px) {
    body.admin-shell .admin-user-dl {
        grid-template-columns: 1fr;
    }
    body.admin-shell .admin-user-dl dt {
        border-bottom: none;
        padding-bottom: 2px;
    }
}

body.admin-shell .admin-report-module:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
    color: inherit;
}

body.admin-shell .admin-report-module__icon {
    font-size: 1.5rem;
    color: var(--adm-primary);
    display: block;
    margin-bottom: 0.5rem;
}

/* ===== Mobil & tablet (admin shell) ===== */
@media (max-width: 991.98px) {
    /* Tüm header sticky yerine normal akış — menü + arama ekranı kaplamasın */
    .admin-topbar {
        position: relative;
        top: auto;
    }

    body.admin-shell .admin-container {
        padding: 14px 16px 48px;
    }

    .admin-topbar__head,
    .admin-topbar__inner {
        padding: 10px 12px;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .admin-brand {
        flex-shrink: 0;
    }

    .admin-topbar__right {
        flex-shrink: 0;
        margin-left: auto;
        gap: 8px;
    }

    .admin-global-search {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        order: unset;
    }

    .admin-global-search__input {
        font-size: 16px; /* iOS zoom önleme */
    }

  .admin-notify-btn {
        width: 36px;
        height: 36px;
    }

    .admin-user-dd__toggle {
        padding: 2px 6px 2px 2px;
    }

    /* Menü: yatay kaydır, wrap yok — dağınık görünümü giderir */
    .admin-nav {
        background: rgba(0, 0, 0, 0.22);
    }

    .admin-nav__inner {
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 8px 2px;
        gap: 0;
    }

    .admin-nav__inner::-webkit-scrollbar {
        display: none;
    }

    .admin-nav-link,
    .admin-nav-dd,
    .admin-nav-dd__toggle {
        flex-shrink: 0;
    }

    .admin-nav-link,
    .admin-nav-dd__toggle {
        padding: 10px 12px;
        font-size: 0.8125rem;
        border-bottom-width: 2px;
    }

    .admin-nav-dd > .dropdown-menu.admin-nav-menu {
        min-width: min(280px, calc(100vw - 24px));
    }

    body.admin-shell .admin-chart-box,
    body.admin-shell .admin-chart-box--tall {
        height: 220px;
    }

    body.admin-shell .d-flex.justify-content-between.align-items-center.mb-4,
    body.admin-shell .d-flex.justify-content-between.align-items-center.mb-3 {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
    }

    body.admin-shell .d-flex.justify-content-between.align-items-center.mb-4 > .d-flex,
    body.admin-shell .d-flex.justify-content-between.align-items-center.mb-3 > .d-flex {
        flex-wrap: wrap;
        gap: 8px;
    }

    body.admin-shell .admin-tabs,
    body.admin-shell .admin-tabs--page,
    body.admin-shell .nav.admin-tabs--page {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    body.admin-shell .admin-tabs .nav-link,
    body.admin-shell .admin-tabs--page .nav-link {
        white-space: nowrap;
        flex-shrink: 0;
    }

    body.admin-shell .admin-user-hero .card-body > .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }

    body.admin-shell .admin-user-hero .card-body .ms-auto {
        margin-left: 0 !important;
        width: 100%;
    }

    body.admin-shell .admin-user-hero .card-body .d-flex.gap-2 {
        flex-wrap: wrap;
    }

    body.admin-shell .row.g-3.mb-4 > [class*="col-"] {
        min-width: 0;
    }

    body.admin-shell .card-body > .d-flex.flex-wrap.gap-2.align-items-center:not(.list-group-item) {
        flex-direction: column;
        align-items: stretch !important;
    }

    body.admin-shell .health-board-card__body {
        max-height: none;
    }
}

@media (max-width: 575.98px) {
    body.admin-shell .admin-container {
        padding: 12px 14px 40px;
    }

    .admin-topbar__head,
    .admin-topbar__inner {
        flex-wrap: wrap;
        padding: 10px 12px 8px;
    }

    .admin-global-search {
        flex: 1 1 100%;
        order: 3;
        margin-top: 2px;
    }

    .admin-global-search__panel {
        position: fixed;
        left: 12px;
        right: 12px;
        top: auto;
        width: auto;
        max-height: min(60vh, 400px);
    }

    .admin-nav-link span,
    .admin-nav-dd__toggle span {
        max-width: 9rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.admin-shell h4 {
        font-size: 1.1rem;
    }

    body.admin-shell .table thead th,
    body.admin-shell .table tbody td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    body.admin-shell .dataTables_wrapper .dataTables_length,
    body.admin-shell .dataTables_wrapper .dataTables_filter {
        text-align: left !important;
        float: none !important;
        width: 100%;
    }

    body.admin-shell .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
    }

    body.admin-shell .admin-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
        gap: 8px;
    }

    body.admin-shell .admin-user-kpi__value {
        font-size: 1.15rem;
    }

    body.admin-shell .btn-group {
        flex-wrap: wrap;
    }
}

@media (min-width: 992px) {
    .admin-nav__inner {
        flex-wrap: wrap;
        gap: 4px;
    }
}

/* ===== Geri bildirim FAB ===== */
.feedback-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1040;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: var(--adm-primary, #2563eb);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.feedback-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    color: #fff;
}

.feedback-type-pill {
    margin: 0;
    cursor: pointer;
}

.feedback-type-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feedback-type-pill span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--adm-border, #e2e8f0);
    background: #fff;
    font-size: 0.82rem;
    color: var(--adm-muted, #64748b);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.feedback-type-pill input:checked + span {
    border-color: var(--adm-primary, #2563eb);
    background: #eff6ff;
    color: var(--adm-primary, #2563eb);
    font-weight: 600;
}

/* ===== Roadmap (kullanıcı) ===== */
body.admin-shell .roadmap-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #fff 100%);
    border: 1px solid var(--adm-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.admin-shell .roadmap-hero__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

body.admin-shell .roadmap-stat {
    text-align: center;
}

body.admin-shell .roadmap-stat--inline {
    text-align: left;
    font-size: 0.82rem;
    color: var(--adm-muted);
}

body.admin-shell .roadmap-stat--inline strong {
    display: block;
    font-size: 1.35rem;
    color: var(--adm-heading);
    line-height: 1.2;
}

body.admin-shell .roadmap-stat__ring {
    --p: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: conic-gradient(var(--adm-primary) calc(var(--p) * 1%), #e2e8f0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
}

body.admin-shell .roadmap-stat__ring span {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--adm-primary);
}

body.admin-shell .roadmap-stat__label {
    font-size: 0.75rem;
    color: var(--adm-muted);
}

body.admin-shell .roadmap-release__head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    body.admin-shell .roadmap-release__head {
        grid-template-columns: 1fr 220px;
        align-items: start;
    }
}

body.admin-shell .roadmap-progress {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
}

body.admin-shell .roadmap-progress--sm {
    height: 5px;
}

body.admin-shell .roadmap-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--adm-border);
}

body.admin-shell .roadmap-item:first-child {
    border-top: none;
    padding-top: 0;
}

body.admin-shell .roadmap-item__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--adm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

body.admin-shell .roadmap-item__body {
    flex: 1;
    min-width: 0;
}

body.admin-shell .roadmap-item__title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--adm-heading);
    margin-bottom: 4px;
}

body.admin-shell .roadmap-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

body.admin-shell .roadmap-item__desc {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: var(--adm-muted);
}

body.admin-shell .roadmap-item__percent {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--adm-primary);
    white-space: nowrap;
}

/* ===== Yedekle hub ===== */
body.admin-shell .backup-hub-card {
    border: 1px solid var(--adm-border);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

body.admin-shell .backup-hub-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

body.admin-shell .backup-hub-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

body.admin-shell .backup-hub-card__visual--image {
    width: 100%;
    aspect-ratio: 3 / 1;
    max-height: none;
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--adm-border);
    display: block;
    padding: 0;
}

body.admin-shell .backup-hub-card__visual--image img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    display: block;
}

body.admin-shell .backup-hub-switcher__thumb {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--adm-border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.admin-shell .backup-hub-switcher__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.admin-shell .backup-hub-settings-preview {
    max-height: 88px;
    object-fit: contain;
}

body.admin-shell .backup-hub-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--adm-heading);
    margin-bottom: 8px;
}

body.admin-shell .backup-hub-card__desc {
    font-size: 0.82rem;
    line-height: 1.45;
}

body.admin-shell .backup-hub-card__cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--adm-primary);
}

body.admin-shell .backup-hub-switcher {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--adm-border);
    border-radius: 10px;
}

body.admin-shell .backup-hub-switcher__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--adm-muted);
    text-decoration: none;
    white-space: nowrap;
}

body.admin-shell .backup-hub-switcher__back:hover {
    color: var(--adm-primary);
}

body.admin-shell .backup-hub-switcher__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

body.admin-shell .backup-hub-switcher__card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--adm-border);
    background: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--adm-text);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

body.admin-shell .backup-hub-switcher__card:hover {
    border-color: #93c5fd;
    color: var(--adm-primary);
}

body.admin-shell .backup-hub-switcher__card.is-active {
    border-color: var(--adm-primary);
    background: #eff6ff;
    color: var(--adm-primary);
    font-weight: 600;
}

body.admin-shell .backup-hub-switcher__icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

body.admin-shell .backup-hub-panel {
    animation: backupHubFadeIn 0.2s ease;
}

@keyframes backupHubFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Kota yönetimi ===== */
body.admin-shell .admin-quota-preview .card-body {
    padding-top: 0.75rem;
}

body.admin-shell .admin-quota-user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--adm-border);
    border-radius: 10px;
}

body.admin-shell .admin-quota-user-chip__avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

body.admin-shell .admin-quota-form-card .card-body {
    padding: 1rem 1.15rem 1.25rem;
}

body.admin-shell .admin-quota-section {
    border: 1px solid var(--adm-border);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #fff;
}

body.admin-shell .admin-quota-section__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--adm-border);
}

body.admin-shell .admin-quota-section__head strong {
    display: block;
    font-size: 0.88rem;
    color: var(--adm-text);
    line-height: 1.3;
}

body.admin-shell .admin-quota-section__head span {
    display: block;
    font-size: 0.75rem;
    color: var(--adm-muted);
    margin-top: 2px;
}

body.admin-shell .admin-quota-section__body {
    padding: 14px;
}

body.admin-shell .admin-quota-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.admin-shell .admin-quota-loc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 0.82rem;
    transition: border-color 0.15s, background 0.15s;
}

body.admin-shell .admin-quota-loc-chip:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

body.admin-shell .admin-quota-loc-chip:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

body.admin-shell .admin-quota-loc-chip .form-check-input {
    margin: 0;
}

body.admin-shell .admin-quota-search {
    position: relative;
    min-width: 220px;
}

body.admin-shell .admin-quota-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--adm-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

body.admin-shell .admin-quota-search .form-control {
    padding-left: 2rem;
}

body.admin-shell .admin-quota-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--adm-muted);
    white-space: nowrap;
}

body.admin-shell .admin-quota-table-bar {
    height: 5px;
    border-radius: 99px;
    background: #e2e8f0;
}

body.admin-shell .admin-quota-pkg-badge {
    font-size: 0.72rem;
    font-weight: 600;
}

body.admin-shell .admin-quota-row--hot > td {
    background: rgba(254, 243, 199, 0.35) !important;
}

body.admin-shell .admin-quota-row--hot:hover > td {
    background: rgba(254, 243, 199, 0.55) !important;
}

body.admin-shell .admin-quota-list-card .card-header {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

