/* ParolaDrive chrome — ParolaRadar header/sidebar boyut + efekt (Kozmik185) */
:root {
    --sidebar-w: 248px;
    --adm-flyout-z: 1180;
    --adm-flyout-backdrop-z: 1105;
    --adm-header-h: 125px;
    --adm-accent: var(--kz-accent, #7b5cff);
    --adm-accent-hover: var(--kz-accent-bright, #9b8cff);
    --adm-font-head: var(--pc-display, 'Rajdhani', sans-serif);
    --adm-font-body: var(--pc-font, 'Inter', sans-serif);
}

/* ========== HEADER ========== */
/* Header sticky yerine flex şeritte sabit (yonetim) */
.admin-header--premium {
    position: relative;
    top: auto;
    z-index: 1100;
    overflow: visible;
    background: #070709;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    flex-shrink: 0;
}

.admin-header__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 120% at 8% 0%, rgba(123, 92, 255, 0.28), transparent 58%),
        radial-gradient(ellipse 40% 90% at 92% 20%, rgba(94, 234, 212, 0.1), transparent 55%),
        linear-gradient(180deg, rgba(18, 18, 28, 0.98), rgba(8, 8, 12, 0.99));
}

.admin-header__ambient::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75), transparent 70%);
}

.admin-header__beam {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 5%, #7b5cff 35%, #5eead4 50%, #7b5cff 65%, transparent 95%);
    box-shadow: 0 0 28px rgba(123, 92, 255, 0.55);
}

.admin-header__bar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    gap: 1.25rem;
    min-height: var(--adm-header-h);
    padding: 0.65rem 1.75rem 0.75rem;
    width: 100%;
}

.admin-header__brand-zone {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-right: 1.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.admin-header__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.admin-header__brand-upload {
    width: 78px;
    height: 78px;
    flex-shrink: 0;
}

.admin-header__brand-upload .header-upload__stage {
    width: 72px;
    height: 72px;
}

.admin-header__brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.admin-header__brand-title {
    font-family: var(--adm-font-head);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    color: #fff;
    white-space: nowrap;
    text-transform: uppercase;
}

.admin-header__brand-title span {
    color: var(--adm-accent-hover);
    text-shadow: 0 0 24px rgba(123, 92, 255, 0.45);
}

.admin-header__brand-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.admin-header__brand-meta i {
    color: var(--adm-accent-hover);
    margin-right: 0.25rem;
}

.admin-header__toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Upload icon */
.header-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-upload__stage { position: relative; width: 100%; height: 100%; }

.header-upload__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(123, 92, 255, 0.35);
}
.header-upload__ring--mid {
    inset: 10px;
    border-color: rgba(94, 234, 212, 0.22);
}
.header-upload__core {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, var(--kz-accent-bright, #9b8cff), var(--kz-accent, #7b5cff) 52%, var(--kz-accent-deep, #4a35c8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 0 16px rgba(123, 92, 255, 0.5);
    border: 1px solid rgba(181, 160, 255, 0.35);
}
.header-upload__particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 2px;
    background: #5eead4;
    box-shadow: 0 0 8px #5eead4;
    left: 50%;
    bottom: 10px;
    margin-left: -2px;
    opacity: 0;
    animation: uploadRise 1.8s ease-in-out infinite;
}
.header-upload__particle--1 { animation-delay: 0s; left: 42%; }
.header-upload__particle--2 { animation-delay: 0.55s; left: 58%; width: 4px; height: 4px; background: #9b8cff; }
.header-upload__particle--3 { animation-delay: 1.1s; left: 50%; width: 3px; height: 7px; }
@keyframes uploadRise {
    0% { opacity: 0; transform: translateY(10px) scale(0.6); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-36px) scale(1); }
}
.header-upload--sm { width: 46px; height: 46px; }
.header-upload--sm .header-upload__stage { width: 42px; height: 42px; }
.header-upload--sm .header-upload__core { inset: 10px; font-size: 0.85rem; }

/* Command deck + tiles */
.admin-header__command-deck {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.55rem 0.85rem 0.5rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -16px 32px rgba(0, 0, 0, 0.28), 0 12px 36px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: visible;
}
.admin-header__command-deck::before {
    content: '';
    position: absolute;
    top: 0; left: 1.25rem; right: 1.25rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(123, 92, 255, 0.85), transparent);
    pointer-events: none;
}
.admin-header__command-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.35rem;
}
.admin-header__command-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--adm-font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.admin-header__command-eyebrow i { color: var(--adm-accent-hover); }
.admin-header__command-sub {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.admin-header__nav--tiles {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0.15rem 0.2rem 0.45rem;
}
.admin-header__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    min-width: 7.5rem;
    max-width: 9.5rem;
    padding: 0.7rem 0.75rem 0.8rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%);
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}
.admin-header__tile-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(circle at 50% 0%, rgba(123, 92, 255, 0.35), transparent 68%);
    transition: opacity 0.22s ease;
    pointer-events: none;
}
.admin-header__tile-icon {
    position: relative;
    z-index: 1;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.28);
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.admin-header__tile-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-align: center;
    width: 100%;
    min-width: 0;
}
.admin-header__tile-label {
    font-family: var(--adm-font-head);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.admin-header__tile-hint {
    font-size: 0.62rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.admin-header__tile-rail {
    position: absolute;
    left: 18%; right: 18%; bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, transparent, var(--adm-accent-hover), transparent);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.admin-header__tile--hero .admin-header__tile-icon {
    background: linear-gradient(145deg, #9b8cff, #4a35c8);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 24px rgba(123, 92, 255, 0.4);
}
.admin-header__tile:hover {
    transform: translateY(-3px);
    border-color: rgba(123, 92, 255, 0.45);
    color: #fff;
    box-shadow: 0 14px 32px rgba(123, 92, 255, 0.18);
}
.admin-header__tile:hover .admin-header__tile-glow,
.admin-header__tile.is-active .admin-header__tile-glow { opacity: 1; }
.admin-header__tile:hover .admin-header__tile-icon,
.admin-header__tile.is-active .admin-header__tile-icon {
    background: linear-gradient(145deg, #9b8cff, #4a35c8);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 28px rgba(123, 92, 255, 0.42);
    transform: scale(1.04);
}
.admin-header__tile.is-active .admin-header__tile-rail {
    opacity: 1;
    transform: scaleX(1);
}

.admin-header__actions-deck {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.55rem;
    flex-shrink: 0;
    min-width: 12.5rem;
}
.admin-header__actions-pod {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-header__tool,
.admin-header__logout {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #e8e8f0;
    display: grid;
    place-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.admin-header__tool:hover,
.admin-header__logout:hover {
    background: rgba(123, 92, 255, 0.18);
    border-color: rgba(123, 92, 255, 0.35);
    color: #fff;
}
.admin-header__user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.25rem 0.55rem 0.25rem 0.25rem;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    min-width: 0;
}
.admin-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-family: var(--adm-font-head);
    background: linear-gradient(135deg, #7b5cff, #4a35c8);
    box-shadow: 0 0 14px rgba(123, 92, 255, 0.35);
}
.admin-header__user-info strong { display: block; font-size: 0.85rem; line-height: 1.15; }
.admin-header__user-info small { display: block; font-size: 0.68rem; color: rgba(255, 255, 255, 0.45); }

/* ========== SHELL — sabit header+sidebar, kayan orta içerik ========== */
html:has(body.yonetim-body),
body.yonetim-body {
    height: 100%;
    overflow: hidden;
}

body.yonetim-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-height: 100vh;
}

body.yonetim-body > .pc-ambient {
    position: fixed;
}

body.yonetim-body > .admin-header {
    position: relative;
    top: auto;
    flex-shrink: 0;
    z-index: 1100;
}

.pd-shell,
.admin-shell {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.pd-workspace,
.admin-workspace {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pd-content,
.admin-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.15rem 1.35rem 1.5rem;
}

.pd-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--pc-line);
    padding: 0.85rem 1.35rem 1.1rem;
    color: var(--pc-muted);
    font-size: 0.78rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    align-items: center;
    background: color-mix(in srgb, var(--pc-glass) 70%, transparent);
}

.pd-footer strong {
    color: var(--pc-ink);
    font-family: var(--adm-font-head);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pd-footer strong span { color: var(--adm-accent-hover); }

/* ========== SIDEBAR ========== */
.admin-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(14, 14, 20, 0.99) 0%, rgba(9, 9, 12, 0.99) 48%, rgba(7, 7, 10, 1) 100%);
    border-right: 1px solid rgba(123, 92, 255, 0.2);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04), 10px 0 52px rgba(0, 0, 0, 0.38);
    position: relative;
    top: auto;
    height: 100%;
    max-height: 100%;
    align-self: stretch;
    overflow: hidden;
    z-index: 100;
    display: flex;
    flex-direction: column;
}
.admin-sidebar__inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    padding: 0.75rem 0.7rem 0.85rem;
    gap: 0.4rem;
    overflow: hidden;
}
.admin-sidebar__switcher {
    flex-shrink: 0;
    order: 0;
    padding: 0.7rem 0.75rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.admin-sidebar__switcher-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}
.admin-sidebar__switcher-eyebrow i { font-size: 0.58rem; color: var(--adm-accent-hover); }
.admin-sidebar__switcher-title {
    display: block;
    margin-top: 0.28rem;
    font-family: var(--adm-font-head);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f5f5f7;
    line-height: 1.15;
}
.admin-sidebar__switcher-title span { color: var(--adm-accent-hover); }
.admin-sidebar__switcher-desc {
    margin: 0.3rem 0 0;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.66rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.4);
}

.admin-sidebar__dock {
    flex-shrink: 0;
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.admin-sidebar__dock-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}
.admin-sidebar__dock-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    min-height: 7.1rem;
    padding: 0.7rem 0.65rem 0.65rem;
    border-radius: 14px;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid rgba(123, 92, 255, 0.32);
    background: linear-gradient(155deg, rgba(123, 92, 255, 0.3) 0%, rgba(14, 10, 20, 0.92) 58%, rgba(10, 10, 14, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-sidebar__dock-tile--scan {
    border-color: rgba(94, 234, 212, 0.28);
    background: linear-gradient(155deg, rgba(50, 40, 90, 0.5) 0%, rgba(14, 10, 20, 0.92) 55%, rgba(10, 10, 14, 0.96) 100%);
}
.admin-sidebar__dock-tile:hover,
.admin-sidebar__dock-tile.is-active {
    transform: translateY(-2px);
    border-color: rgba(155, 140, 255, 0.55);
    box-shadow: 0 14px 32px rgba(123, 92, 255, 0.22);
}
.admin-sidebar__dock-tile-glow {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 70%;
    background: radial-gradient(ellipse at 50% 0%, rgba(155, 140, 255, 0.35), transparent 70%);
    pointer-events: none;
}
.admin-sidebar__dock-tile::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(155, 140, 255, 0.75), transparent);
    opacity: 0.55;
}
.admin-sidebar__dock-tile-icon {
    position: relative;
    z-index: 1;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.28);
    color: #c4b5ff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}
.admin-sidebar__dock-tile-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.admin-sidebar__dock-tile-copy strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.admin-sidebar__dock-tile-copy small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.45);
}
.admin-sidebar__dock-tile-arrow {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    z-index: 1;
}

.admin-sidebar__body {
    flex: 0 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    order: 2;
}
.admin-sidebar__nav {
    flex: 0 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 0.15rem 0.2rem 0.35rem 0.1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(123, 92, 255, 0.35) transparent;
}

.admin-sidebar__zone {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.85rem 0.15rem 0.35rem;
}
.admin-sidebar__zone span {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(196, 181, 255, 0.72);
    white-space: nowrap;
}
.admin-sidebar__zone::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--adm-accent);
    box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.18);
    flex-shrink: 0;
}
.admin-sidebar__zone::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(123, 92, 255, 0.28), rgba(255, 255, 255, 0.04));
}

.admin-sidebar__group {
    margin-bottom: 0.22rem;
    border-radius: 11px;
    background: transparent;
    border: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.admin-sidebar__group.is-active,
.admin-sidebar__group.is-open {
    border-color: rgba(123, 92, 255, 0.2);
    background: rgba(123, 92, 255, 0.06);
}
.admin-sidebar__group-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.62rem;
    border: none;
    background: transparent;
    color: #e5e7eb;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
}
.admin-sidebar__group-btn:hover,
.admin-sidebar__group.is-active > .admin-sidebar__group-btn,
.admin-sidebar__group.is-open > .admin-sidebar__group-btn {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}
.admin-sidebar__icon {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(155, 140, 255, 0.95);
    font-size: 0.86rem;
    flex-shrink: 0;
}
.admin-sidebar__group.is-active .admin-sidebar__icon,
.admin-sidebar__group.is-open .admin-sidebar__icon,
.admin-sidebar__group-btn:hover .admin-sidebar__icon {
    background: rgba(123, 92, 255, 0.2);
    border-color: rgba(123, 92, 255, 0.28);
    color: #ddd6fe;
}
.admin-sidebar__copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.admin-sidebar__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(245, 245, 247, 0.94);
    line-height: 1.25;
}
.admin-sidebar__desc {
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.08rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-sidebar__group.is-active .admin-sidebar__desc,
.admin-sidebar__group.is-open .admin-sidebar__desc { color: rgba(196, 181, 255, 0.68); }
.admin-sidebar__meta { display: inline-flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.admin-sidebar__count {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.admin-sidebar__group.is-active .admin-sidebar__count,
.admin-sidebar__group.is-open .admin-sidebar__count {
    color: #ddd6fe;
    background: rgba(123, 92, 255, 0.18);
    border-color: rgba(123, 92, 255, 0.26);
}
.admin-sidebar__chevron {
    font-size: 0.62rem;
    transition: transform 0.2s, opacity 0.2s, color 0.2s;
    opacity: 0.45;
    color: rgba(255, 255, 255, 0.55);
}

/* Mobil: accordion */
.admin-sidebar__items {
    display: none;
    padding: 0 0.45rem 0.55rem;
}
.admin-sidebar__group.is-open .admin-sidebar__items { display: block; }
.admin-sidebar__group.is-open .admin-sidebar__chevron { transform: rotate(90deg); }

/* Masaüstü flyout */
@media (min-width: 1101px) {
    .admin-sidebar { overflow: hidden; }
    .admin-sidebar__inner { overflow: hidden; }
    .admin-sidebar__body { overflow-x: hidden; overflow-y: auto; }
    .admin-sidebar__nav { overflow: visible; }
    .admin-sidebar__group { overflow: visible; }
    .admin-sidebar__group .admin-sidebar__items {
        display: none;
        position: fixed;
        left: calc(var(--sidebar-w) + 0.55rem);
        top: auto;
        width: 304px;
        max-height: min(72vh, 540px);
        margin: 0;
        padding: 0.45rem 0.45rem 0.55rem;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: linear-gradient(180deg, rgba(18, 14, 28, 0.98), rgba(10, 10, 16, 0.99));
        box-shadow: 0 22px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(123, 92, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        z-index: var(--adm-flyout-z);
        overflow-y: auto;
        overflow-x: hidden;
    }
    .admin-sidebar__group.is-open .admin-sidebar__items {
        display: block;
        animation: sidebarFlyoutIn 0.16s ease;
    }
    .admin-sidebar__group.is-open .admin-sidebar__chevron {
        transform: none;
        opacity: 1;
        color: #ddd6fe;
    }
    .admin-sidebar__items::before {
        content: '';
        position: absolute;
        left: -6px;
        top: 1.15rem;
        width: 10px;
        height: 10px;
        border-left: 1px solid rgba(123, 92, 255, 0.32);
        border-bottom: 1px solid rgba(123, 92, 255, 0.32);
        background: rgba(14, 10, 20, 0.98);
        transform: rotate(45deg);
    }
}
@keyframes sidebarFlyoutIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.admin-sidebar__items-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin: 0 0 0.45rem;
    padding: 0.55rem;
    border-radius: 10px;
    background: rgba(123, 92, 255, 0.1);
    border: 1px solid rgba(123, 92, 255, 0.18);
}
.admin-sidebar__items-head-copy { min-width: 0; display: flex; flex-direction: column; gap: 0.12rem; }
.admin-sidebar__items-head-copy strong {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}
.admin-sidebar__items-head-copy span {
    font-size: 0.66rem;
    color: rgba(196, 181, 255, 0.7);
}
.admin-sidebar__items-head em {
    flex-shrink: 0;
    font-style: normal;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.22rem 0.4rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.58rem 0.62rem;
    margin-bottom: 0.12rem;
    border-radius: 10px;
    text-decoration: none;
    color: #f3f4f6;
    border-left: 2px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.admin-sidebar__link:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.admin-sidebar__link.is-active {
    background: rgba(123, 92, 255, 0.14);
    border-left-color: var(--adm-accent);
    color: #fff;
}
.admin-sidebar__link-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(155, 140, 255, 0.95);
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-sidebar__link:hover .admin-sidebar__link-icon {
    border-color: rgba(123, 92, 255, 0.3);
    color: #ddd6fe;
}
.admin-sidebar__link.is-active .admin-sidebar__link-icon {
    background: var(--adm-accent);
    color: #fff;
    border-color: transparent;
}
.admin-sidebar__link-copy { flex: 1; min-width: 0; }
.admin-sidebar__link-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgba(245, 245, 247, 0.95);
}
.admin-sidebar__link-desc {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.66rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.42);
}
.admin-sidebar__link:hover .admin-sidebar__link-desc,
.admin-sidebar__link.is-active .admin-sidebar__link-desc {
    color: rgba(196, 181, 255, 0.75);
}
.admin-sidebar__link-arrow {
    flex-shrink: 0;
    font-size: 0.65rem;
    opacity: 0.7;
    color: #ddd6fe;
}

.admin-sidebar__footer {
    flex: 0 0 auto;
    order: 4;
    width: 100%;
    margin-top: auto;
    padding: 0.75rem 0.35rem 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}
.admin-sidebar__footer-copy {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}
.admin-sidebar__footer-note {
    font-size: 0.58rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.32);
}

.admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: var(--adm-flyout-backdrop-z);
}

/* Portal: sayfa kayar, header üstte yapışır */
.admin-header--portal.admin-header--premium {
    position: sticky;
    top: 0;
}

.auth-upload {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.75rem;
}
.auth-upload .header-upload { width: 180px; height: 180px; margin: 0 auto; }
.auth-upload .header-upload__stage { width: 160px; height: 160px; margin: 10px auto; }
.auth-upload .header-upload__core { inset: 42px; font-size: 2rem; }

@media (max-width: 1199.98px) {
    .admin-header__brand-meta { display: none; }
    .admin-header__brand-title { font-size: 1.55rem; }
    .admin-header__brand-upload { width: 58px; height: 58px; }
    .admin-header__brand-upload .header-upload__stage { width: 54px; height: 54px; }
    .admin-header__brand-upload .header-upload__core { inset: 12px; font-size: 1.05rem; }
}

@media (max-width: 1100px) {
    .admin-header__bar {
        grid-template-columns: 1fr auto;
        min-height: 78px;
        --adm-header-h: 78px;
    }
    .admin-header__command-deck { display: none; }
    .admin-header__toggle { display: grid; place-items: center; }
    .admin-header__actions-deck { min-width: 0; }
    .admin-header__user-info { display: none; }
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        max-height: 100vh;
        transition: left 0.3s ease;
        z-index: 1200;
    }
    body.admin-sidebar-open .admin-sidebar { left: 0; }
    .pd-shell { min-height: 0; }

    /* Portal: sidebar yok — komut merkezi alt satırda kalır */
    .admin-header--portal .admin-header__bar {
        grid-template-columns: 1fr auto;
        min-height: auto;
        padding-bottom: 0.85rem;
        gap: 0.75rem;
    }
    .admin-header--portal .admin-header__command-deck {
        display: flex;
        grid-column: 1 / -1;
        order: 3;
    }
    .admin-header--portal .admin-header__brand-zone {
        border-right: none;
        padding-right: 0;
    }
    .admin-header--portal .admin-header__nav--tiles {
        padding-bottom: 0.25rem;
    }
}
