:root {
    --THEME_COLOR: #D4AF37;
    --THEME_COLOR_GRADIENT_HOVER: rgba(212, 175, 55, 0.55);
    --bg: #070707;
    --panel: #000000a6;
    --card: #0000004d;
    --card-2: #00000066;
    --border: rgba(255, 255, 255, 0.06);
    --border-2: rgba(255, 255, 255, 0.08);
    --text: #fff;
    --muted: #ffffff59;
    --muted-2: #ffffff40;
    --hover: #ffffff08;
    --success: #22c55e;
    --danger: #ef4444;
    --info: #D4AF37;
    --warn: #f59e0b;
    --lime: #D4AF37;
    --gold: #D4AF37;
    --radius: 0;
    --radius-sm: 0;
    --shadow: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    overflow: hidden;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.app {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100%;
    background:
        radial-gradient(ellipse at 16% 0%, color-mix(in srgb, var(--THEME_COLOR) 8%, transparent) 0%, transparent 40%),
        #000;
}

.sidebar {
    display: flex;
    flex-direction: column;
    padding: 0 0 10px;
    background: #0003;
    border-right: 1px solid var(--border);
}

.brand {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 18px 16px;
    background: #0000004d;
    border-bottom: 1px solid var(--border);
}
.brand::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--THEME_COLOR);
    box-shadow: 0 0 12px color-mix(in srgb, var(--THEME_COLOR) 55%, transparent);
}

.brand-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--THEME_COLOR);
}

.brand-sub {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.server-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% - 20px);
    margin: 12px 10px 4px;
    padding: 8px 10px;
    border: 1px solid var(--border-2);
    border-radius: 0;
    background: #0000004d;
    text-align: left;
}

.server-avatar {
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: var(--THEME_COLOR);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.server-meta { flex: 1; min-width: 0; }
.server-meta strong {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.server-meta small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.chev { width: 14px; height: 14px; color: var(--muted); }

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6b6b6b;
    display: inline-block;
}
.status-dot.online { background: var(--success); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); }
.status-dot.starting { background: var(--warn); animation: pulse 1.2s infinite; }
.status-dot.error { background: var(--danger); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.nav { flex: 1; overflow: auto; padding: 8px 0 12px; }
.nav-label {
    color: var(--muted-2);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 16px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 16px;
    border-radius: 0;
    color: #fff6;
    margin-bottom: 1px;
    border: none;
    border-left: 2px solid transparent;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nav-item:hover { background: #ffffff05; color: #ffffffb3; }
.nav-item.active {
    background: color-mix(in srgb, var(--THEME_COLOR) 8%, #0000004d);
    border-left-color: var(--THEME_COLOR);
    color: #fff;
    box-shadow: inset 0 0 18px color-mix(in srgb, var(--THEME_COLOR) 6%, transparent);
}
.nav-item.active svg { color: var(--THEME_COLOR); }

.sidebar-footer { padding-top: 8px; border-top: 1px solid var(--border); }

.main {
    margin: 0;
    background: var(--panel);
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 24px;
    background: #0000004d;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.crumbs {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.top-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-2);
    border-radius: 0;
    display: grid;
    place-items: center;
    color: #ddd;
    position: relative;
    background: #0000004d;
}
.icon-btn:hover { background: var(--THEME_COLOR_GRADIENT_HOVER); border-color: var(--THEME_COLOR); }
.notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background: var(--danger);
    border-radius: 0;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    border-radius: 0;
    background: #0000004d;
    border: 1px solid var(--border);
}
.user-chip strong {
    display: block;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.user-chip small { color: var(--muted); font-size: 10px; }
.user-chip:hover { background: var(--hover); }

.page {
    flex: 1;
    overflow: auto;
    padding: 22px 24px 36px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.page-head h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--THEME_COLOR);
    text-shadow: 0 0 18px color-mix(in srgb, var(--THEME_COLOR) 26%, transparent);
}
.page-head p {
    color: var(--muted);
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border-radius: 0;
    border: 1px solid var(--border-2);
    background: #0000004d;
    color: #fff;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.btn:hover { background: var(--THEME_COLOR_GRADIENT_HOVER); border-color: var(--THEME_COLOR); }
.btn.primary {
    background: var(--THEME_COLOR);
    color: #fff;
    border-color: var(--THEME_COLOR);
    box-shadow: 0 0 12px color-mix(in srgb, var(--THEME_COLOR) 18%, transparent);
}
.btn.primary:hover { background: var(--THEME_COLOR_GRADIENT_HOVER); }
.btn.danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    margin-top: 14px;
}
.dash-layout .span-right { grid-column: 2; grid-row: 1 / span 3; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 16px 18px;
}
.card h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card .sub { color: var(--muted); font-size: 11px; margin-top: 4px; }

.stat-card .label {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.stat-card .value {
    font-size: 26px;
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: 0.02em;
    color: #fff;
}
.stat-card .hint { color: var(--muted-2); font-size: 11px; margin-top: 8px; }

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 18px 0 16px;
}
.controls { display: flex; gap: 8px; flex-wrap: wrap; }
.connect-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.connect-chip {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0000004d;
    border: 1px solid var(--border-2);
    border-radius: 0;
    padding: 6px 12px;
    font-size: 11px;
    color: var(--muted);
    max-width: 100%;
}
.connect-chip code { color: #ddd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.timeline { display: flex; flex-direction: column; gap: 16px; }
.tl-item { display: flex; gap: 12px; }
.tl-icon {
    width: 28px;
    height: 28px;
    border-radius: 0;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.tl-icon.green { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.tl-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.tl-icon.blue { background: rgba(212, 175, 55, 0.15); color: var(--THEME_COLOR); }
.tl-item strong { display: block; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.tl-item span { color: var(--muted); font-size: 11px; }

.quick-list { display: flex; flex-direction: column; }
.quick-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    color: #e8e8e8;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.quick-item:last-child { border-bottom: 0; }
.quick-item:hover { color: #fff; }
.quick-item .chev { margin-left: auto; }

.link { color: var(--THEME_COLOR); font-size: 12px; }
.link:hover { text-decoration: underline; }

.table-wrap { overflow: auto; }

.econ-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.econ-toolbar .select { min-width: 220px; }
.econ-toolbar .input { flex: 1; }
.econ-table input.input { min-width: 80px; }
.econ-table input[type="checkbox"] { accent-color: var(--THEME_COLOR); }
.econ-add {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.econ-help {
    background: color-mix(in srgb, var(--THEME_COLOR) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--THEME_COLOR) 22%, transparent);
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #d7e8f6;
}
.econ-help strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.econ-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}
.econ-overview-card {
    text-align: left;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    min-height: 112px;
}
.econ-overview-card:hover { border-color: color-mix(in srgb, var(--THEME_COLOR) 45%, var(--border)); }
.econ-overview-card .label {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}
.econ-overview-card .value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0 6px;
    color: var(--THEME_COLOR);
    font-variant-numeric: tabular-nums;
}
.econ-overview-card .hint { color: var(--muted); font-size: 11px; }
.econ-group { margin-bottom: 28px; }
.econ-group-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--THEME_COLOR);
    margin: 8px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.econ-shop { margin-bottom: 16px; }
.econ-cat { margin-top: 14px; }
.econ-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 2px 10px;
    border-bottom: 1px solid var(--border);
}
.econ-cat-head h4 {
    font-size: 12px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.econ-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 4px;
}
.econ-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 12px;
    background: var(--hover);
    border: 1px solid var(--border);
    font-size: 12px;
}
.econ-chip b { font-weight: 600; }
.econ-chip em {
    font-style: normal;
    font-weight: 700;
    color: var(--THEME_COLOR);
    font-variant-numeric: tabular-nums;
}
.econ-price {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--THEME_COLOR);
}
.econ-price-input {
    font-weight: 700;
    width: 130px;
    color: var(--THEME_COLOR);
}
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left;
    color: var(--muted);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
}
td { padding: 14px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr { transition: background 0.16s ease; }
tbody tr:hover { background: #ffffff05; }
.td-title { font-weight: 600; }
.td-desc { color: var(--muted); font-size: 12px; margin-top: 3px; }
.meta { display: flex; align-items: center; gap: 6px; color: var(--muted); }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.badge.log { background: rgba(212, 175, 55, 0.18); color: var(--THEME_COLOR); }
.badge.warn { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.badge.ok { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.badge.err { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.badge.gold { background: rgba(212, 160, 23, 0.18); color: #eab308; }
.badge.red { background: #7f1d1d; color: #fecaca; }
.badge.green { background: #14532d; color: #bbf7d0; }

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    color: var(--muted);
}

.range-tabs { display: flex; gap: 6px; }
.range-tabs button {
    height: 28px;
    padding: 0 12px;
    border-radius: 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #0000004d;
    border: 1px solid var(--border);
}
.range-tabs button.active { background: var(--THEME_COLOR); color: #fff; border-color: var(--THEME_COLOR); }

.chart {
    height: 320px;
    margin-top: 8px;
}
.chart svg { width: 100%; height: 100%; }

.tabs {
    display: flex;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
    overflow-x: auto;
}
.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 2px 14px;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.tab.active { color: #fff; border-bottom-color: var(--THEME_COLOR); }
.tab { transition: color 0.16s ease, border-color 0.16s ease; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.field .help { color: var(--muted); font-size: 11px; }
.input, .select, textarea.input {
    background: #0000004d;
    border: 1px solid var(--border-2);
    border-radius: 0;
    padding: 10px 12px;
    outline: none;
    font-family: Montserrat, sans-serif;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--THEME_COLOR); }
textarea.input { min-height: 110px; resize: vertical; }
.prefix {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-2);
    border-radius: 0;
    overflow: hidden;
    background: #0000004d;
}
.prefix span {
    padding: 10px 12px;
    background: #0000004d;
    color: var(--muted);
    border-right: 1px solid var(--border-2);
}
.prefix input { border: 0; flex: 1; background: transparent; padding: 10px 12px; outline: none; }

.color-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.color-row:last-child { border-bottom: 0; }
.swatch {
    width: 42px;
    height: 42px;
    border-radius: 0;
    border: 1px solid var(--border-2);
    padding: 0;
    overflow: hidden;
}
.swatch input { width: 150%; height: 150%; margin: -10px; border: 0; cursor: pointer; }
.color-row .meta-col { flex: 1; }
.color-row input.hex { width: 140px; }

.dropzone {
    border: 1px dashed var(--border-2);
    border-radius: 0;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    text-align: center;
    padding: 24px;
    background: #0000004d;
    cursor: pointer;
}
.dropzone:hover { border-color: var(--THEME_COLOR); }
.dropzone strong { color: #ddd; font-weight: 600; }
.dropzone.has-file { border-style: solid; color: #fff; }

.f5-banner-preview {
    margin: 16px 0 14px;
    width: 100%;
    aspect-ratio: 1024 / 256;
    max-height: 220px;
    background: #000;
    border: 1px solid var(--border);
    overflow: hidden;
}

.f5-banner-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-logo-preview {
    margin: 16px 0 14px;
    width: 160px;
    height: 160px;
    background: #000;
    border: 1px solid var(--border);
    overflow: hidden;
}

.main-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.webhook-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.webhook-row:last-child { border-bottom: 0; }

.console {
    background: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 210px);
    min-height: 420px;
}
.console-log {
    flex: 1;
    overflow: auto;
    padding: 8px 0;
    font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
    font-size: 13px;
    color: #d4d4d4;
}
.console-line {
    display: grid;
    grid-template-columns: 8ch 26ch minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    padding: 0 16px;
    min-height: 22px;
    line-height: 22px;
}
.console-time {
    color: #8d8d8d;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.console-chan {
    color: #c8c8c8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.console-msg {
    color: #d6d6d6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.console-line.res .console-chan { color: #6fcf6f; }
.console-line.res .console-msg { color: #d8ecd8; }
.console-line.script .console-chan { color: #8b7cf7; }
.console-line.script .console-msg { color: #cdc6ff; }
.console-line.core .console-chan,
.console-line.core .console-msg { color: #f07178; }
.console-line.warn .console-chan,
.console-line.warn .console-msg { color: #e6b450; }
.console-line.err .console-chan,
.console-line.err .console-msg { color: #ff6b6b; }
.console-line.cmd {
    background: #c9a227;
}
.console-line.cmd .console-time,
.console-line.cmd .console-chan,
.console-line.cmd .console-msg {
    color: #1a1a1a;
}
.console-input {
    border-top: 1px solid #2a2a2a;
    padding: 10px 12px;
    background: #181818;
}
.console-input input {
    width: 100%;
    background: #121212;
    border: 1px solid #2f2f2f;
    border-radius: 0;
    padding: 11px 14px;
    outline: none;
    font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
}

.files {
    display: grid;
    grid-template-columns: 300px 1fr;
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    min-height: calc(100vh - 220px);
}
.explorer {
    background: #0003;
    border-right: 1px solid var(--border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.explorer h4 { font-size: 10px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; }
.file-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0 0 10px;
}
.file-crumb {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 0;
}
.file-crumb:hover { color: var(--THEME_COLOR); }
.file-crumb-sep { color: var(--muted-2); font-size: 10px; }
.file-list {
    margin-top: 10px;
    overflow: auto;
    min-height: 0;
    flex: 1;
}
.file-node { display: flex; flex-direction: column; }
.file-hint, .file-error {
    margin-top: 10px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.file-error { color: var(--danger); }
.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 0;
    color: #d4d4d4;
    text-align: left;
}
.file-item span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-item:hover, .file-item.active { background: #0000004d; color: #fff; }
.file-item.active { border-left: 2px solid var(--THEME_COLOR); }
.file-chev {
    width: 12px;
    height: 12px;
    display: grid;
    place-items: center;
    color: var(--muted);
    transform: rotate(0deg);
    transition: transform 0.16s ease;
}
.file-chev.open { transform: rotate(90deg); }
.file-chev svg { width: 12px; height: 12px; }
.editor { display: flex; flex-direction: column; min-width: 0; }
.editor textarea {
    flex: 1;
    background: #0a0a0a;
    border: 0;
    padding: 18px;
    resize: none;
    outline: none;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
}
.editor-empty {
    flex: 1;
    display: grid;
    place-items: center;
    color: var(--muted);
    text-align: center;
}
.editor-foot {
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    color: var(--muted);
    font-size: 12px;
}

.drive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.drive-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 16px;
    min-height: 120px;
}
.drive-card:hover { border-color: var(--THEME_COLOR); }
.drive-card strong { display: block; margin: 10px 0 4px; }
.drive-card span { color: var(--muted); font-size: 12px; }

.sugg-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 18px 20px;
    margin-bottom: 12px;
}
.sugg-top { display: flex; gap: 14px; align-items: flex-start; }
.sugg-num { font-size: 28px; font-weight: 700; color: var(--THEME_COLOR); min-width: 36px; }
.sugg-foot { display: flex; gap: 16px; color: var(--muted); font-size: 13px; margin-top: 12px; }

.patch-card { margin-bottom: 12px; }
.patch-card ul { margin: 12px 0 0 18px; color: #d4d4d4; }
.patch-card li { margin: 6px 0; }

.member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.member:last-child { border-bottom: 0; }
.member .grow { flex: 1; }
.member .tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.invite-box {
    margin-top: 14px;
    padding: 14px;
    background: #00000066;
    border: 1px solid var(--border);
}
.invite-box code {
    display: block;
    margin-top: 6px;
    word-break: break-all;
    color: var(--THEME_COLOR);
    font-size: 12px;
    line-height: 1.45;
}
.modal a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.icon-danger {
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: #7f1d1d;
    color: #fff;
    display: grid;
    place-items: center;
}

.empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 12px;
}
.empty svg { width: 40px; height: 40px; margin: 0 auto 12px; display: block; }

.info-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.toast-stack {
    position: fixed;
    right: 22px;
    top: 22px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    min-width: 280px;
    max-width: 360px;
    background: #000000a6;
    border: 1px solid var(--border-2);
    border-radius: 0;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}
.toast.ok { border-color: rgba(34, 197, 94, 0.45); }
.toast.err { border-color: rgba(239, 68, 68, 0.45); }
.toast strong { display: block; margin-bottom: 4px; }
.toast span { color: var(--muted); font-size: 12px; }

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: grid;
    place-items: center;
    z-index: 40;
}
.modal-backdrop[hidden] {
    display: none !important;
    pointer-events: none;
}
.modal {
    width: min(480px, 92vw);
    background: #000000a6;
    border: 1px solid var(--border-2);
    border-top: 2px solid var(--THEME_COLOR);
    border-radius: 0;
    padding: 22px;
    box-shadow: 0 0 32px color-mix(in srgb, var(--THEME_COLOR) 10%, transparent);
}
.modal h3 {
    margin-bottom: 14px;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--THEME_COLOR);
}
.modal p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.help-grid { display: grid; gap: 12px; }
.help-item { padding: 16px; }

.login-screen {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--THEME_COLOR) 12%, transparent) 0%, transparent 46%),
        rgba(0, 0, 0, 0.84);
    display: grid;
    place-items: center;
    z-index: 80;
}
.login-screen[hidden] {
    display: none !important;
    pointer-events: none;
}
.login-card {
    width: min(420px, 92vw);
    background: #000000a6;
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 0 40px color-mix(in srgb, var(--THEME_COLOR) 14%, transparent);
}
.login-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 22px;
    background: #0000004d;
    border-bottom: 1px solid var(--border);
}
.login-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--THEME_COLOR);
    text-shadow: 0 0 18px color-mix(in srgb, var(--THEME_COLOR) 28%, transparent);
}
.login-sub {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.login-card .input,
.login-card .btn {
    margin: 0 22px;
}
.login-card .btn { width: calc(100% - 44px); height: 40px; }
.login-card small {
    color: var(--danger);
    min-height: 18px;
    margin: 0 22px 16px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.app[hidden] { display: none !important; }

.hud-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
    align-items: start;
}

input[type=range].range {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 0;
    outline: none;
    cursor: pointer;
}

input[type=range].range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--THEME_COLOR);
    border: 0;
    cursor: pointer;
}

.hud-stage {
    position: relative;
    margin-top: 16px;
    height: min(68vh, 640px);
    background:
        radial-gradient(ellipse at center, transparent 28%, rgba(0, 0, 0, 0.45) 100%),
        linear-gradient(180deg, #1a2a36 0%, #0b1218 100%);
    border: 1px solid var(--border);
    overflow: hidden;
}

.hud-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
}

.hud-reset-row {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.hud-style-row {
    display: flex;
    gap: 8px;
    margin: 12px 0 14px;
}

.staff-logo-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: stretch;
    margin-top: 14px;
}

.staff-logo-preview {
    background: #00000066;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
}

.staff-logo-preview img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.staff-logo-drop {
    min-height: 92px;
    padding: 14px;
}

.staff-stage {
    background:
        radial-gradient(ellipse at top, rgba(212, 175, 55, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #1a2a36 0%, #0b1218 100%);
}

.loading-preview-card {
    width: 100%;
}

.loading-stage {
    height: min(82vh, 860px);
    aspect-ratio: unset;
    max-height: none;
    background: #000;
}

.boutique-stage {
    height: min(86vh, 920px);
    background: #000;
    position: relative;
}

.boutique-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 1080px;
    transform-origin: top left;
    background: #000;
}

.shop-admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.shop-admin-item:last-child { border-bottom: 0; }

.shop-admin-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.loading-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 1080px;
    transform-origin: top left;
    background: #000;
}

.status-panel {
    width: 210px;
    background: #000000a6;
    border-left: 3px solid var(--hud-thirst, var(--THEME_COLOR));
    display: flex;
    flex-direction: column;
}

.status-panel .identity {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px 9px;
    background: #0000004d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.status-panel .identity-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    line-height: 1.15;
    text-transform: uppercase;
}

.status-panel .identity-age {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hud-thirst, var(--THEME_COLOR));
    line-height: 1;
}

.status-panel .stat + .stat {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.status-panel .stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px 8px 8px;
}

.status-panel .stat-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0000004d;
}

.status-panel .glyph.droplet,
.status-panel .glyph.food {
    width: 13px;
    height: 13px;
    fill: var(--hud-thirst, var(--THEME_COLOR));
}

.status-panel .glyph.food {
    width: 15px;
    height: 15px;
    fill: var(--hud-hunger, #e89a2e);
}

.status-panel .stat-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-panel .stat-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff59;
    line-height: 1;
}

.status-panel .stat-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.status-panel .stat-fill {
    height: 100%;
    width: 100%;
    transform-origin: left center;
}

.status-panel .stat-fill.thirst { background: var(--hud-thirst, var(--THEME_COLOR)); }
.status-panel .stat-fill.hunger { background: var(--hud-hunger, #e89a2e); }

.player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.16s ease, padding 0.16s ease;
}
.player-row:last-child { border-bottom: 0; }
.player-row:hover,
.member:hover,
.color-row:hover {
    background: #ffffff05;
}

/* Subtle polish */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes softGlow {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--THEME_COLOR) 0%, transparent); }
    50% { box-shadow: 0 0 12px 0 color-mix(in srgb, var(--THEME_COLOR) 18%, transparent); }
}

.page.page-enter > * {
    animation: fadeUp 0.28s ease both;
}
.page.page-enter > *:nth-child(2) { animation-delay: 0.04s; }
.page.page-enter > *:nth-child(3) { animation-delay: 0.08s; }
.page.page-enter > *:nth-child(4) { animation-delay: 0.12s; }

.brand-title {
    text-shadow: 0 0 18px color-mix(in srgb, var(--THEME_COLOR) 28%, transparent);
}

.nav-item,
.btn,
.icon-btn,
.tab,
.range-tabs button,
.quick-item,
.file-item,
.drive-card,
.connect-chip,
.user-chip,
.server-switch,
.dropzone {
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.card,
.stat-card,
.sugg-card,
.patch-card,
.drive-card {
    transition: border-color 0.18s ease, background 0.18s ease;
}

.card:hover,
.stat-card:hover {
    border-color: color-mix(in srgb, var(--THEME_COLOR) 28%, transparent);
    background: #00000066;
}

.stat-card {
    border-left: 2px solid transparent;
}
.stat-card:hover {
    border-left-color: var(--THEME_COLOR);
}

.nav-item:hover { border-left-color: color-mix(in srgb, var(--THEME_COLOR) 50%, transparent); }

.btn:active,
.icon-btn:active { transform: translateY(1px); }
.btn.primary:hover { box-shadow: 0 0 14px color-mix(in srgb, var(--THEME_COLOR) 28%, transparent); }

.status-dot.online { animation: pulse 2.4s ease-in-out infinite; }

.tab:hover { color: #ffffffb3; }

.input, .select, textarea.input, .prefix {
    transition: border-color 0.16s ease, background 0.16s ease;
}
.input:focus, .select:focus, textarea.input:focus {
    background: #00000066;
    box-shadow: inset 3px 0 0 var(--THEME_COLOR);
}

.connect-chip:hover {
    border-color: var(--THEME_COLOR);
    color: #fff;
}
.connect-chip:hover code { color: #fff; }

.quick-item:hover { background: #ffffff05; padding-left: 8px; padding-right: 0; }
.quick-item { transition: background 0.16s ease, padding 0.16s ease, color 0.16s ease; }

.toast {
    animation: slideInRight 0.22s ease;
    border-left: 2px solid var(--THEME_COLOR);
}

.modal-backdrop {
    animation: fadeIn 0.16s ease;
}
.modal {
    animation: fadeUp 0.22s ease;
}

.login-screen {
    animation: fadeIn 0.2s ease;
}
.login-card {
    animation: fadeUp 0.28s ease;
    border-top: 2px solid var(--THEME_COLOR);
}

.page::-webkit-scrollbar,
.nav::-webkit-scrollbar,
.console-log::-webkit-scrollbar {
    width: 8px;
}
.page::-webkit-scrollbar-track,
.nav::-webkit-scrollbar-track,
.console-log::-webkit-scrollbar-track {
    background: transparent;
}
.page::-webkit-scrollbar-thumb,
.nav::-webkit-scrollbar-thumb,
.console-log::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}
.page::-webkit-scrollbar-thumb:hover,
.nav::-webkit-scrollbar-thumb:hover,
.console-log::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--THEME_COLOR) 40%, transparent);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 1100px) {
    .app { grid-template-columns: 88px 1fr; }
    .brand-title, .brand-sub, .server-meta, .nav-label, .nav-item { font-size: 0; }
    .nav-item { justify-content: center; padding: 10px; }
    .nav-item svg { width: 18px; height: 18px; }
    .brand { align-items: center; }
    .server-switch { justify-content: center; width: calc(100% - 16px); }
    .grid-3, .dash-layout, .form-grid, .files, .webhook-row, .hud-layout { grid-template-columns: 1fr; }
    .dash-layout .span-right { grid-column: auto; grid-row: auto; }
}

/* —— Style aligné sur le site anti-cheat Valero —— */
:root {
    --THEME_COLOR: #d4af37;
    --THEME_COLOR_GRADIENT_HOVER: #e0c14a;
    --bg: #0a0a0b;
    --panel: #0a0a0b;
    --card: #121214;
    --card-2: #141416;
    --border: rgba(255, 255, 255, 0.05);
    --border-2: rgba(255, 255, 255, 0.1);
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --muted-2: #71717a;
    --hover: rgba(255, 255, 255, 0.05);
    --radius: 12px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

html, body {
    background: #0a0a0b;
    color: #f4f4f5;
    font-family: Outfit, system-ui, sans-serif;
    font-size: 14px;
}

.app {
    background: #0a0a0b;
}

.sidebar {
    background: #050506;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 12px 12px;
}

.brand {
    background: transparent;
    border-bottom: none;
    padding: 4px 8px 20px;
}
.brand::before { display: none; }
.brand-title {
    font-family: "Space Grotesk", Outfit, sans-serif;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #f4f4f5;
    text-shadow: none;
}
.brand-sub {
    letter-spacing: 0.2em;
    color: rgba(212, 175, 55, 0.9);
}

.server-switch, .icon-btn, .user-chip {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #121214;
}

.server-avatar {
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}

.nav-label {
    letter-spacing: 0.2em;
    font-size: 10px;
    font-weight: 600;
}

.nav-item {
    height: auto;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 12px;
    border-left: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #a1a1aa;
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f4f4f5;
}
.nav-item.active {
    background: rgba(212, 175, 55, 0.15);
    border-left-color: transparent;
    color: #d4af37;
    box-shadow: none;
    font-weight: 600;
}
.nav-item.active svg { color: #d4af37; }

.main { background: transparent; }
.topbar {
    height: 56px;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.crumbs {
    letter-spacing: 0.2em;
    color: rgba(212, 175, 55, 0.9);
    text-transform: uppercase;
}

.page-head h1 {
    font-family: "Space Grotesk", Outfit, sans-serif;
    font-size: 22px;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #f4f4f5;
    text-shadow: none;
}
.page-head p {
    text-transform: none;
    letter-spacing: 0;
    color: #a1a1aa;
}

.btn {
    height: 36px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
}
.btn:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); }
.btn.primary {
    background: #d4af37;
    border-color: #d4af37;
    color: #111;
    box-shadow: none;
}
.btn.primary:hover { background: #e0c14a; border-color: #e0c14a; box-shadow: none; }
.btn.danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: transparent;
    color: #f87171;
}

.card, .modal, .help-item {
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.card:hover { border-color: rgba(255, 255, 255, 0.08); }
.card h3 {
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 600;
    color: #f4f4f5;
}

.field label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 500;
    color: #a1a1aa;
}
.input, .select, textarea.input, .prefix {
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0a0b;
}
.input:focus, .select:focus, textarea.input:focus {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.login-screen {
    background:
        radial-gradient(ellipse at 50% 20%, rgba(212, 175, 55, 0.12), transparent 46%),
        #0a0a0b;
}
.login-card {
    background: rgba(18, 18, 20, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    padding: 8px 0 8px;
    backdrop-filter: blur(12px);
}
.login-head {
    background: transparent;
    border-bottom: none;
    text-align: center;
    padding: 18px 24px 8px;
}
.login-title {
    font-family: "Space Grotesk", Outfit, sans-serif;
    text-transform: none;
    letter-spacing: -0.02em;
    color: #f4f4f5;
    text-shadow: none;
}
.login-sub { text-transform: none; letter-spacing: 0; color: #a1a1aa; }
.login-field {
    margin: 0 24px;
    font-size: 12px;
    font-weight: 500;
    color: #a1a1aa;
}
.login-card .input,
.login-card .btn { margin: 0 24px; width: calc(100% - 48px); }
.login-card .btn { margin-top: 6px; margin-bottom: 6px; height: 40px; }
.login-card small {
    text-transform: none;
    letter-spacing: 0;
    margin: 0 24px 18px;
    color: #f87171;
    min-height: 16px;
}

.stat-card {
    border-left: none;
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}
.stat-card:hover,
.card:hover {
    background: #141416;
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.1);
}
.stat-card .label {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 500;
    color: #71717a;
}
.stat-card .value {
    font-family: "Space Grotesk", Outfit, sans-serif;
    letter-spacing: -0.02em;
    color: #fafafa;
}

.status-line,
.quick-item,
.tl-item strong,
.file-crumb,
.file-hint,
.empty,
.tab,
.range-tabs button,
th,
.badge {
    letter-spacing: 0;
    text-transform: none;
}
.status-line { letter-spacing: -0.02em; font-family: "Space Grotesk", Outfit, sans-serif; }
.quick-item { font-size: 13px; }
.tl-item strong { font-size: 13px; font-weight: 600; }
.tl-icon, .swatch, .icon-danger { border-radius: 10px; }

.badge {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.connect-chip,
.dropzone,
.files,
.drive-card,
.sugg-card,
.toast,
.range-tabs button,
.file-item,
.console-input input {
    border-radius: 12px;
}
.dropzone, .files { overflow: hidden; }
.files { border-color: rgba(255, 255, 255, 0.05); }
.file-item { border-radius: 10px; }
.file-item.active { border-left: none; background: rgba(212, 175, 55, 0.12); color: #d4af37; }
.explorer { background: #0c0c0e; }
.explorer h4 { letter-spacing: 0.16em; }

.tab { font-size: 13px; font-weight: 500; }
.tab.active { color: #d4af37; }
.range-tabs button.active {
    background: #d4af37;
    color: #111;
    border-color: #d4af37;
}

.nav-item:hover { border-left-color: transparent; }
.input:focus, .select:focus, textarea.input:focus {
    background: #0a0a0b;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.btn.primary:hover { box-shadow: none; }

.f5-banner-preview,
.main-logo-preview {
    border-radius: 12px;
    background: #0a0a0b;
    border-color: rgba(255, 255, 255, 0.08);
}

th { font-weight: 600; font-size: 11px; color: #71717a; }
.toast { background: #121214; border-radius: 12px; border-left: 2px solid #d4af37; }
.modal { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.modal h3 { color: #f4f4f5; text-transform: none; letter-spacing: 0; }

.user-chip {
    height: 32px;
    padding: 0 10px;
    background: #121214;
}
.icon-btn {
    width: 36px;
    height: 36px;
    background: #121214;
}

.cfg-top { margin-bottom: 14px; }
.cfg-search {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0c0c0c;
}
.cfg-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    min-height: 62vh;
}
.cfg-list {
    overflow: auto;
    max-height: 70vh;
    padding-right: 6px;
    border-right: 1px solid var(--border);
}
.cfg-cat {
    margin: 14px 0 6px;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.cfg-mod {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    text-align: left;
    color: #d4d4d8;
}
.cfg-mod small { color: var(--muted); font-size: 11px; }
.cfg-mod:hover { background: var(--hover); }
.cfg-mod.on {
    background: color-mix(in srgb, var(--THEME_COLOR) 12%, transparent);
    box-shadow: inset 2px 0 0 var(--THEME_COLOR);
    color: #fff;
}
.cfg-head h2 { font-size: 28px; margin-bottom: 4px; }
.cfg-head p, .cfg-note { color: var(--muted); margin-bottom: 16px; }
.cfg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.cfg-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0c0c0c;
}
.cfg-field b { display: block; }
.cfg-field span { font-size: 11px; color: var(--muted); }
.cfg-field select, .cfg-field input {
    width: 120px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #111;
    padding: 0 8px;
}
.cfg-sw {
    width: 42px;
    height: 24px;
    border-radius: 99px;
    background: #333;
    position: relative;
}
.cfg-sw::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .15s ease;
}
.cfg-sw.on { background: #22c55e; }
.cfg-sw.on::after { transform: translateX(18px); }
@media (max-width: 980px) {
    .cfg-layout, .cfg-grid { grid-template-columns: 1fr; }
}
