/*
 * Novademi yönetim teması (Learnio yönetim paneli düzeni). admin.css ve admin-page-blocks.css'ten
 * SONRA yüklenir: aynı tasarım değişkenlerini yeni paletle yeniden tanımlar (eski ve yeni tüm
 * ekranlar birlikte renk değiştirir), yeni kabuğu (lx-*) ve içerik alanındaki ortak bileşenleri
 * (kart, tablo, düğme, form, etiket, sekme, filtre çubuğu, istatistik kartı) biçimlendirir.
 * Açık tema varsayılan; koyu tema html.dark.
 */

/* ───────────── Palet ───────────── */
:root {
    color-scheme: light;
    --bg: #f5f6f8;
    --bg-accent: #f0f2f5;
    --panel: #ffffff;
    --ink: #16181d;
    --ink-soft: #2b2e35;
    --muted: #636768;
    --muted-2: #9aa0a8;
    --line: #dfe2e7;
    --line-soft: #eceef2;
    --brand: #e8590c;
    --brand-2: #c2410c;
    --brand-soft: rgba(255, 138, 0, .12);
    --accent: #d96a00;
    --accent-soft: rgba(255, 138, 0, .12);
    --danger: #c62828;
    --danger-soft: #fdecec;
    --ok: #15803d;
    --ok-soft: #eaf7ee;
    --warn: #b45309;
    --warn-soft: #fff5e6;
    --info: #1d4ed8;
    --info-soft: #eaf1ff;
    --focus: #ff8a00;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 9px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .04);
    --shadow-lg: 0 8px 28px rgba(16, 24, 40, .1);
    --text-base: 14px;
    --text-sm: .86rem;
    --text-xs: .76rem;
    --side-w: 264px;

    /* Learnio accent family */
    --lx-accent: #ff8a00;
    --lx-accent-strong: #ff9d00;
    --lx-accent-text: #a34a00;
    --lx-accent-dim: rgba(255, 138, 0, .16);
    --lx-primary: #ef5b25;
    --lx-primary-hover: #d64a18;
    --lx-on-primary: #ffffff;
    --lx-side: #17181b;
    --lx-side-2: #1f2024;
    --lx-side-text: #c9cbcf;
    --lx-side-muted: #7b8088;
    --lx-side-line: rgba(255, 255, 255, .06);
    --lx-chip-top: #ffffff;
    --lx-chip-bottom: #eceee9;
    --lx-chip-ring: rgba(163, 74, 0, .3);
    --lx-topbar: rgba(255, 255, 255, .86);
    --lx-hover: #f4f5f7;
    --lx-row-hover: #fafafb;
    --lx-bar-gradient: linear-gradient(180deg, #ff8a00 0%, #ffc580 60%, rgba(255, 138, 0, .12) 100%);
}

html.dark {
    color-scheme: dark;
    --bg: #0b0b0c;
    --bg-accent: #141416;
    --panel: #141416;
    --ink: #f3f4f6;
    --ink-soft: #e5e7eb;
    --muted: #a3a6ab;
    --muted-2: #6b7077;
    --line: #2c2d31;
    --line-soft: #222326;
    --brand: #ff8a00;
    --brand-2: #ff9d00;
    --brand-soft: rgba(255, 138, 0, .16);
    --accent: #ff9d00;
    --accent-soft: rgba(255, 138, 0, .16);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, .14);
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, .12);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, .13);
    --info: #93c5fd;
    --info-soft: rgba(96, 165, 250, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, .45);
    --lx-accent-text: #ffb04d;
    --lx-side: #0f0f10;
    --lx-side-2: #18181a;
    --lx-chip-top: #26272b;
    --lx-chip-bottom: #111214;
    --lx-chip-ring: rgba(255, 138, 0, .45);
    --lx-topbar: rgba(11, 11, 12, .82);
    --lx-hover: #1b1c1f;
    --lx-row-hover: #18191b;
    --lx-bar-gradient: linear-gradient(180deg, #ff9d00 0%, #a34a00 60%, rgba(255, 138, 0, .08) 100%);
}

html body,
html body.shell,
html .shell,
html.dark body,
html.dark body.shell,
html.dark .shell {
    background: var(--bg) !important;
    color: var(--ink);
    font-size: var(--text-base);
}

/* ───────────── Kabuk ───────────── */
.lx-shell {
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr);
    min-height: 100vh;
    background: var(--bg);
}
.lx-shell.is-collapsed { --side-w: 84px; }

.lx-side {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(420px 260px at -20% -10%, rgba(255, 138, 0, .12), transparent 60%),
        linear-gradient(180deg, var(--lx-side-2), var(--lx-side));
    color: var(--lx-side-text);
    border-right: 1px solid var(--lx-side-line);
    z-index: 30;
}
.lx-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 22px 18px;
    color: #fff;
    text-decoration: none;
}
.lx-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
    color: #241000;
    background: linear-gradient(180deg, #ffb13d, #ff7a00);
    box-shadow: 0 6px 18px rgba(255, 122, 0, .35);
    flex: none;
}
.lx-brand-text { display: grid; line-height: 1.1; min-width: 0; }
.lx-brand-text strong { font-size: 17px; letter-spacing: .12em; text-transform: uppercase; }
.lx-brand-text span { font-size: 11px; color: var(--lx-side-muted); letter-spacing: .04em; }
.lx-side-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 4px 14px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .12) transparent;
}
.lx-group { margin-top: 10px; }
.lx-group-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px 6px;
    background: none;
    border: 0;
    color: var(--lx-side-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}
.lx-group-head i { font-size: 10px; transition: transform .15s ease; }
.lx-group.is-closed .lx-group-head i { transform: rotate(-90deg); }
.lx-group.is-closed .lx-group-items { display: none; }
.lx-group-items { display: grid; gap: 2px; }
.lx-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 6px 10px;
    border-radius: 13px;
    color: var(--lx-side-text);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.lx-link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.lx-link.is-active {
    color: var(--lx-accent-strong);
    background: linear-gradient(90deg, rgba(255, 138, 0, .26), rgba(255, 138, 0, .08) 70%, rgba(255, 138, 0, .02));
    box-shadow: inset 0 0 0 1px rgba(255, 157, 0, .18);
}
.lx-chip {
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12.5px;
    color: #ffae3d;
    background: radial-gradient(circle at 50% 20%, #2c2d31, #121315 72%);
    box-shadow: inset 0 0 0 1px rgba(255, 138, 0, .38), 0 2px 6px rgba(0, 0, 0, .35);
}
.lx-link.is-active .lx-chip { box-shadow: inset 0 0 0 1px rgba(255, 157, 0, .75), 0 0 14px rgba(255, 138, 0, .35); }
.lx-link-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #241000;
    background: var(--lx-accent);
}
.lx-side-foot {
    padding: 12px 14px 18px;
    border-top: 1px solid var(--lx-side-line);
}
.lx-shell.is-collapsed .lx-brand-text,
.lx-shell.is-collapsed .lx-link-label,
.lx-shell.is-collapsed .lx-group-head span,
.lx-shell.is-collapsed .lx-badge { display: none; }
.lx-shell.is-collapsed .lx-link { justify-content: center; padding: 6px; }
.lx-shell.is-collapsed .lx-group-head { justify-content: center; }
.lx-shell.is-collapsed .lx-brand { justify-content: center; padding-inline: 0; }

.lx-main { min-width: 0; display: flex; flex-direction: column; }
.lx-topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 72px;
    padding: 0 28px;
    background: var(--lx-topbar);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line-soft);
}
.lx-icon-btn {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}
.lx-icon-btn:hover { background: var(--lx-hover); border-color: var(--muted-2); }
.lx-icon-btn.is-plain { background: transparent; border-color: transparent; border-radius: 10px; }
.lx-topbar-title { font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-topbar-spacer { flex: 1; }
.lx-search { position: relative; width: min(320px, 34vw); }
.lx-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.lx-search input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-accent);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}
.lx-search input:focus { outline: none; border-color: var(--lx-accent); box-shadow: 0 0 0 3px var(--lx-accent-dim); background: var(--panel); }
.lx-search ul {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 40;
}
.lx-search ul a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.lx-search ul a:hover { background: var(--lx-hover); }
.lx-search ul small { color: var(--muted); }
.lx-role {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1d4ed8;
    background: #e8efff;
    white-space: nowrap;
}
html.dark .lx-role { color: #93c5fd; background: rgba(59, 130, 246, .16); }
.lx-content { padding: 26px 30px 48px; min-width: 0; }
.lx-page-head { margin: 0 0 22px; }
.lx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.lx-crumbs a { color: var(--muted); text-decoration: none; }
.lx-crumbs a:hover { color: var(--ink); }
.lx-crumbs i.fa-chevron-right { font-size: 9px; opacity: .7; }
.lx-crumbs span:last-child { color: var(--ink); font-weight: 500; }
.lx-page-head h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.lx-page-head p { margin: 6px 0 0; font-size: 15px; color: var(--muted); max-width: 860px; }
.lx-api-down {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--danger-soft);
    color: var(--danger);
}
.lx-backdrop { display: none; }

@media (max-width: 960px) {
    .lx-shell, .lx-shell.is-collapsed { grid-template-columns: minmax(0, 1fr); --side-w: 280px; }
    .lx-side {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }
    .lx-shell.is-nav-open .lx-side { transform: none; }
    .lx-shell.is-nav-open .lx-backdrop { display: block; position: fixed; inset: 0; z-index: 29; border: 0; background: rgba(0, 0, 0, .45); }
    .lx-shell.is-collapsed .lx-brand-text, .lx-shell.is-collapsed .lx-link-label, .lx-shell.is-collapsed .lx-group-head span { display: initial; }
    .lx-topbar { padding: 0 16px; }
    .lx-content { padding: 20px 16px 40px; }
    .lx-search, .lx-role { display: none; }
}

/* ───────────── İçerik: ortak bileşenler ───────────── */
.lx-content .card,
.lx-content .content-editor-panel {
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.lx-content .card:not(.is-flush):not(.card-table):not(.content-hub-table-card):not(.content-editor-panel) { padding: 20px 22px; }
.lx-content .content-editor-panel-head {
    padding: 18px 22px 14px;
    background: transparent;
    border-bottom: 1px solid var(--line-soft);
}
.lx-content .content-editor-panel-head strong { font-size: 16px; font-weight: 700; color: var(--ink); }
.lx-content .content-editor-panel-head span { font-size: 13px; color: var(--muted); font-weight: 500; }

/* Düğmeler: Learnio hap biçimi */
.lx-content .btn,
.lx-content button.btn,
.lx-content a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--lx-primary);
    color: var(--lx-on-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(255, 106, 61, .22);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.lx-content .btn:hover { background: var(--lx-primary-hover); }
.lx-content .btn.secondary {
    background: var(--panel);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: none;
}
.lx-content .btn.secondary:hover { background: var(--lx-hover); border-color: var(--muted-2); }
.lx-content .btn.danger { background: var(--panel); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); box-shadow: none; }
.lx-content .btn.danger:hover { background: var(--danger-soft); }
/* admin.css her .btn yazısını !important ile beyaza zorluyor; Sil düğmesi okunur kalsın. */
.lx-content .btn.danger, .lx-content .btn.danger:hover { color: var(--danger) !important; }
.lx-content .btn.sm { min-height: 32px; padding: 0 13px; font-size: 13px; }
.lx-content .btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* Form alanları */
.lx-content input[type='text'],
.lx-content input[type='search'],
.lx-content input[type='email'],
.lx-content input[type='number'],
.lx-content input[type='url'],
.lx-content input[type='tel'],
.lx-content input[type='password'],
.lx-content input[type='date'],
.lx-content input[type='datetime-local'],
.lx-content input:not([type]),
.lx-content select,
.lx-content textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.lx-content textarea { min-height: 96px; line-height: 1.5; }
.lx-content input:focus,
.lx-content select:focus,
.lx-content textarea:focus { outline: none; border-color: var(--lx-accent); box-shadow: 0 0 0 3px var(--lx-accent-dim); }
.lx-content input[type='checkbox'],
.lx-content input[type='radio'] { accent-color: var(--lx-primary); width: 16px; height: 16px; }
.lx-content .content-editor-label { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); text-transform: none; }
.lx-content .content-editor-field { gap: 6px; }
.lx-content .idn-note, .lx-content .field-hint { color: var(--muted); font-size: 12.5px; }

/* Etiketler (durum) */
.lx-content .pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    background: var(--bg-accent);
    color: var(--muted);
    border: 0;
}
.lx-content .pill.ok { background: var(--ok-soft); color: var(--ok); }
.lx-content .pill.warn { background: var(--warn-soft); color: var(--warn); }
.lx-content .pill.off { background: var(--bg-accent); color: var(--muted); }
.lx-content .pill.danger, .lx-content .pill.bad { background: var(--danger-soft); color: var(--danger); }
.lx-content .pill.info { background: var(--info-soft); color: var(--info); }

/* Tablolar */
.lx-content .content-hub-table-card,
.lx-content .card-table { padding: 0; overflow: hidden; }
.lx-content .wp-list-table,
.lx-content .content-hub-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    color: var(--ink);
    background: transparent;
}
.lx-content .wp-list-table thead th,
.lx-content .content-hub-table thead th {
    padding: 13px 18px;
    background: var(--bg-accent);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
    white-space: nowrap;
}
.lx-content .wp-list-table tbody td,
.lx-content .content-hub-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
    background: transparent;
}
.lx-content .wp-list-table tbody tr:last-child td,
.lx-content .content-hub-table tbody tr:last-child td { border-bottom: 0; }
.lx-content .content-hub-row:hover td,
.lx-content .wp-list-table tbody tr:hover td { background: var(--lx-row-hover); }
.lx-content .content-hub-row.is-selected td { background: var(--brand-soft); }
.lx-content .cat-row-link strong { font-weight: 600; color: var(--ink); }
.lx-content .cat-row-link:hover strong { color: var(--lx-accent-text); text-decoration: none; }
.lx-content .muted, .lx-content small.muted { color: var(--muted); }

/* Filtre çubuğu (Learnio filtre kartı) */
.lx-content .admin-list-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: transparent;
    border: 0;
}
.lx-content .admin-list-bar-filters { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; min-width: 0; }
.lx-content .admin-list-field { position: relative; display: flex; align-items: center; min-width: 170px; }
.lx-content .admin-list-search { flex: 1 1 260px; max-width: 420px; }
.lx-content .admin-list-search > i { position: absolute; left: 14px; color: var(--muted); font-size: 13px; pointer-events: none; }
.lx-content .admin-list-search input { padding-left: 38px; border-radius: 999px; background: var(--bg-accent); }
.lx-content .admin-list-field select { border-radius: 999px; background: var(--bg-accent); padding-right: 34px; }
.lx-content .admin-list-bar-actions { display: flex; align-items: center; gap: 10px; }
.lx-content .admin-list-count { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* Sekmeler */
.lx-content .content-hub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 5px;
    margin-bottom: 18px;
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    box-shadow: var(--shadow);
}
.lx-content .content-hub-tabs > a,
.lx-content .content-hub-tabs > button {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.lx-content .content-hub-tabs > a:hover,
.lx-content .content-hub-tabs > button:hover { color: var(--ink); background: var(--lx-hover); }
.lx-content .content-hub-tabs > .is-active {
    color: var(--lx-accent-text);
    background: var(--brand-soft);
    box-shadow: inset 0 0 0 1px rgba(255, 138, 0, .25);
}
/* admin.css sekme bağlantılarına !important ile sabit renk veriyor (gri / eski kırmızı); iki temada da okunsun. */
.lx-content .content-hub-tabs > a { color: var(--muted) !important; }
.lx-content .content-hub-tabs > a:hover { color: var(--ink) !important; }
.lx-content .content-hub-tabs > a.is-active { color: var(--lx-accent-text) !important; }
.lx-content .content-hub-tabs a em { background: var(--bg-accent); color: var(--muted); }
.lx-content .content-hub-tabs a.is-active em { background: var(--brand-soft); color: var(--lx-accent-text); }
/* Telefonda şerit iki satıra kırılıyor; hap biçimi ovale dönmesin. */
@media (max-width: 640px) { .lx-content .content-hub-tabs { border-radius: 18px; } }

/* Uyarılar */
.lx-content .alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
    background: var(--danger-soft);
    color: var(--danger);
    font-weight: 500;
}
.lx-content .alert.success,
.lx-content .alert.idn-ok { border-color: color-mix(in srgb, var(--ok) 25%, transparent); background: var(--ok-soft); color: var(--ok); }

/* Boş durum */
.lx-content .cat-hub-empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.lx-content .cat-hub-empty strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* İstatistik kartları (Learnio: etiket, büyük değer, ikon çipi, mini çubuklar) */
.lx-content .nv-stats { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lx-content .nv-stat {
    position: relative;
    overflow: hidden;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.lx-content .nv-stat::after {
    content: '';
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 44px;
    background:
        linear-gradient(var(--lx-accent), var(--lx-accent)) 0 100% / 4px 30% no-repeat,
        linear-gradient(var(--lx-accent), var(--lx-accent)) 7px 100% / 4px 40% no-repeat,
        linear-gradient(var(--lx-accent), var(--lx-accent)) 14px 100% / 4px 50% no-repeat,
        linear-gradient(var(--lx-accent), var(--lx-accent)) 21px 100% / 4px 62% no-repeat,
        linear-gradient(var(--lx-accent), var(--lx-accent)) 28px 100% / 4px 74% no-repeat,
        linear-gradient(var(--lx-accent), var(--lx-accent)) 35px 100% / 4px 88% no-repeat,
        linear-gradient(var(--lx-accent), var(--lx-accent)) 42px 100% / 4px 100% no-repeat;
    -webkit-mask: linear-gradient(180deg, #000 20%, rgba(0, 0, 0, .15));
    mask: linear-gradient(180deg, #000 20%, rgba(0, 0, 0, .15));
    opacity: .9;
    pointer-events: none;
}
.lx-content .nv-stat .nv-chip,
.lx-content .nv-chip {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 16px;
    color: var(--lx-accent-text);
    background: radial-gradient(circle at 50% 20%, var(--lx-chip-top), var(--lx-chip-bottom) 75%);
    box-shadow: inset 0 0 0 1px var(--lx-chip-ring), 0 2px 6px rgba(0, 0, 0, .06);
}
html.dark .lx-content .nv-stat .nv-chip,
html.dark .lx-content .nv-chip { color: #ffae3d; }
.lx-content .nv-stat__label { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.lx-content .nv-stat__value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.lx-content .nv-stat__hint { font-size: 12.5px; color: var(--muted); padding-right: 54px; }

/* İlerleme çubuğu */
.lx-content .nv-progress__track { background: var(--bg-accent); border-radius: 999px; }
.lx-content .nv-progress__bar { background: linear-gradient(90deg, #ffb13d, var(--lx-accent)); border-radius: 999px; }
.lx-content .nv-progress--done .nv-progress__bar { background: linear-gradient(90deg, #4ade80, var(--ok)); }
.lx-content .nv-ring__arc { stroke: var(--lx-accent); }
.lx-content .nv-ring--done .nv-ring__arc { stroke: var(--ok); }
.lx-content .nv-ring__track { stroke: var(--bg-accent); }

/* Sayfa içi başlıklar (ekranların kendi başlık blokları) */
.lx-content .lmsb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }
.lx-content .lmsb-head-title h1, .lx-content .lmsb-head-title h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.lx-content .lmsb-head-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Sayfalama */
.lx-content .idn-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.lx-content .idn-pager-buttons { display: flex; gap: 8px; }
/* Legacy tables were fixed-layout (equal columns): let content size the columns. */
.lx-content .content-hub-table { table-layout: auto; min-width: 0; }

/* Rol çipleri: eski açık renkler yerine tema değişkenleri (karanlık temada beyaz kalıyordu). */
.lx-content .staff-role-chip { border-radius: 999px; border-color: var(--line); background: var(--bg-accent); color: var(--ink-soft); }
.lx-content .staff-role-chip.is-admin { border-color: color-mix(in srgb, var(--danger) 30%, transparent); background: var(--danger-soft); color: var(--danger); }
.lx-content .staff-role-chip.is-editor,
.lx-content .staff-role-chip.is-member_manager,
.lx-content .staff-role-chip.is-store_manager,
.lx-content .staff-role-chip.is-org_manager,
.lx-content .staff-role-chip.is-instructor { border-color: color-mix(in srgb, var(--lx-accent) 30%, transparent); background: var(--brand-soft); color: var(--lx-accent-text); }

/* İçerik düzenleyici: adres (slug) kutusu */
.lx-content .content-editor-slug { border-color: var(--line-soft); background: var(--bg-accent); }
.lx-content .content-editor-slug-label { color: var(--muted); }
.lx-content .content-editor-slug input { background: var(--panel); }
.lx-content .content-editor-slug.is-locked input { background: var(--bg-accent); color: var(--ink-soft); border-color: var(--line-soft); }
.lx-content .content-editor-slug em { color: var(--muted); }

/* Liste + açılır form düzeni (katalog, kullanıcılar): form kapalıyken liste tam genişlik. */
.cat-hub .cat-hub-layout.is-single { grid-template-columns: minmax(0, 1fr); }
.cat-hub .content-editor-panel-head .cat-hub-close { order: 2; }
.cat-hub .content-editor-panel-head > span { order: 3; flex-basis: 100%; }

/* admin.css sınıfsız her <label>'a sabit gri veriyor (karanlık temada okunmuyor). Aynı özgüllükte:
   kendi sınıfı olan etiketler kendi rengini korur. */
:where(.lx-content) label { color: var(--ink-soft); }
