:root {
    --bg: #07070c;
    --bg-elevated: #0b0b14;      /* Eingabefelder, eingelassene Flächen */
    --bg-card: #12111f;          /* Karten */
    --border: #262347;
    --border-soft: #1b1932;
    --text: #e8e8f3;
    --text-muted: #8a8aa6;
    --accent: #7c6cf5;
    --accent-2: #5b4bd8;
    --accent-hover: #8b7df8;
    --gold: #d9b27c;
    --success: #3ba55d;
    --danger: #ed4245;
    --radius: 20px;
    --radius-sm: 12px;
    --font: 'Inter', 'Segoe UI', Roboto, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
    margin: 0;
    font-family: var(--font);
    background:
        radial-gradient(ellipse 70% 480px at 50% 0%, rgba(58, 46, 140, .22) 0%, transparent 70%),
        var(--bg);
    background-repeat: no-repeat;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Landing / Login ---- */
.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background:
        radial-gradient(ellipse 60% 55% at 50% 30%, rgba(60, 48, 150, .28) 0%, rgba(20, 18, 42, .5) 45%, transparent 75%);
}

.eyebrow {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .5em;
    padding-left: .5em;
    color: var(--text-muted);
    margin: 0 0 6px;
}

.gradient-title, .landing h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.1;
    background: linear-gradient(90deg, #b6a6ff 0%, #8474f6 55%, #d9b27c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 28px rgba(124, 108, 245, .35));
}

.login-card {
    width: 100%;
    max-width: 418px;
    margin-top: 150px;
    padding: 33px;
    background: linear-gradient(180deg, rgba(20, 19, 36, .92), rgba(15, 14, 28, .92));
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(124, 108, 245, .04);
    text-align: center;
}
.login-card .btn { width: 100%; justify-content: center; padding: 14px 24px; }
.login-note { margin: 18px 0 0; font-size: 14px; color: var(--text-muted); }
.login-lead { margin: 0 0 24px; font-size: 14px; line-height: 1.55; color: var(--text-muted); text-align: left; }

.landing p { color: var(--text-muted); font-size: 15px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    box-shadow: 0 8px 24px rgba(91, 75, 216, .35);
    color: #fff;
    font: 700 15px var(--font);
    cursor: pointer;
    transition: filter .15s, box-shadow .15s, background .15s;
}
.btn:hover { filter: brightness(1.1); box-shadow: 0 10px 30px rgba(91, 75, 216, .5); }
.btn.secondary { background: var(--bg-elevated); border-color: var(--border); box-shadow: none; font-weight: 600; color: var(--text); }
.btn.secondary:hover { background: #12111f; border-color: var(--accent); filter: none; }
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn.danger { background: linear-gradient(135deg, #f0575a, #c93336); box-shadow: 0 8px 24px rgba(237, 66, 69, .25); }

/* ---- Topbar ---- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: rgba(9, 9, 16, .78);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 20;
}
.topbar .brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: 10px; font-weight: 500; letter-spacing: .4em; color: var(--text-muted); }
.brand-text strong { font-size: 17px; font-weight: 700; background: linear-gradient(90deg, #b6a6ff, #8474f6 60%, #d9b27c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar .user { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.topbar img.avatar { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 2px var(--border); }

/* ---- Server-Liste ---- */
.server-grid {
    max-width: 940px;
    margin: 48px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: border-color .15s, box-shadow .15s;
}
.server-card:hover { border-color: var(--accent); box-shadow: 0 0 40px rgba(124, 108, 245, .16); }
.server-card img.icon, .server-card div.icon {
    width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 14px;
    background: var(--bg-elevated); box-shadow: 0 0 0 2px var(--border);
}
.server-card h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.page-title { text-align: center; margin: 44px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -.01em; }

/* ---- Dashboard Layout ---- */
.dash-layout { display: flex; min-height: calc(100vh - 62px); }

.sidebar {
    width: 250px;
    background: rgba(9, 9, 16, .6);
    border-right: 1px solid var(--border-soft);
    padding: 20px 12px;
    flex-shrink: 0;
}
.sidebar .guild-name {
    padding: 4px 10px 16px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 12px;
}
.sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 2px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: color .12s, background .12s;
}
.sidebar .nav-item:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.sidebar .nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(124, 108, 245, .22), rgba(91, 75, 216, .1));
    border-color: rgba(124, 108, 245, .35);
    box-shadow: 0 0 24px rgba(124, 108, 245, .12);
}

.content { flex: 1; min-width: 0; padding: 36px 44px; }
.module-section > .card, .module-section > .stat-grid { max-width: 820px; }
.module-section { display: none; }
.module-section.active { display: block; }

.card {
    background: linear-gradient(180deg, rgba(20, 19, 36, .92), rgba(15, 14, 28, .92));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.card h2 { margin-top: 0; font-size: 18px; font-weight: 700; letter-spacing: -.005em; }
.card p.desc { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin-top: -8px; margin-bottom: 22px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; }
.field select, .field input[type=text], .field input[type=number] {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text);
    font: 400 14px var(--font);
    transition: border-color .15s, box-shadow .15s;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 108, 245, .18); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.toggle-row .label { font-size: 14px; font-weight: 500; }
.toggle-row .sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; inset: 0;
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 26px; transition: .15s;
}
.slider:before {
    content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
    background: #8a8aa6; border-radius: 50%; transition: .15s;
}
.switch input:checked + .slider { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; box-shadow: 0 0 16px rgba(124, 108, 245, .4); }
.switch input:checked + .slider:before { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + .slider { outline: 2px solid var(--accent); outline-offset: 2px; }

.save-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.save-status { font-size: 13px; color: var(--success); opacity: 0; transition: opacity .2s; }
.save-status.show { opacity: 1; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th, table.data-table td {
    text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--border-soft);
}
table.data-table th { color: var(--text-muted); font-weight: 600; font-size: 12px; }
.medal { font-size: 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: linear-gradient(180deg, rgba(20, 19, 36, .92), rgba(15, 14, 28, .92));
    border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.stat-card .num { font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.stat-card .lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ============ Logo ============ */
.brand-logo { width: 30px; height: 30px; object-fit: contain; }
.landing-logo { width: 132px; height: 132px; object-fit: contain; margin-bottom: 12px; filter: drop-shadow(0 8px 28px rgba(124,92,255,.45)); }

/* ============ Allgemein ============ */
.nav-badge { margin-left: auto; background: rgba(124,92,255,.25); color: #cfc6ff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.pill { display: inline-block; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted); font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 10px; margin-left: 6px; vertical-align: middle; }
.pill.over { color: #ff8a8c; border-color: var(--danger); }
.empty { color: var(--text-muted); font-size: 14px; margin: 4px 0; }
.danger-text { color: #ff8a8c !important; }
.field textarea, textarea#eb-content {
    width: 100%; padding: 10px 12px; background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font: inherit; font-size: 14px; resize: vertical; min-height: 60px;
}
.field textarea:focus, .field input:focus { outline: none; border-color: var(--accent); }
.field input[type=text], .field select { font-family: inherit; }
.counter { float: right; font-size: 11px; opacity: .75; }
.counter.over { color: #ff8a8c; opacity: 1; }
.mini-avatar { border-radius: 50%; object-fit: cover; vertical-align: middle; background: var(--bg-elevated); }
.mini-avatar.fallback { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--accent); color: #fff; }
.user-cell { display: flex; align-items: center; gap: 8px; }
table.data-table td.actions { text-align: right; white-space: nowrap; }
table.data-table td.actions .btn { margin-left: 4px; }
.card:has(table.data-table) { overflow-x: auto; }

/* ============ Übersicht ============ */
.bot-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.bot-avatar { width: 52px; height: 52px; border-radius: 50%; }
.bot-name { font-weight: 700; font-size: 16px; }
.bot-sub { color: var(--text-muted); font-size: 13px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.kv-grid > div { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.kv-grid .k { font-size: 12px; color: var(--text-muted); }
.kv-grid .v { font-size: 18px; font-weight: 700; margin-top: 2px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.check { display: flex; gap: 12px; padding: 10px 12px; border-radius: 8px; }
.check.warn { background: rgba(237,66,69,.09); }
.check-label { font-weight: 600; font-size: 14px; }
.check-text { font-size: 13px; color: var(--text-muted); margin-top: 1px; }
.check.warn .check-text { color: #ffb4b5; }

/* ============ Verwarnungen ============ */
.warn-user { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: var(--bg-elevated); }
.warn-user > summary { list-style: none; cursor: pointer; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.warn-user > summary::-webkit-details-marker { display: none; }
.warn-list { padding: 4px 14px 14px; display: grid; gap: 8px; }
.warn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.warn-reason { font-size: 14px; }
.warn-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ============ Embed-Builder ============ */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 24px; align-items: start; max-width: 1200px; }
.builder .card { max-width: none; }
.builder-preview { position: sticky; top: 16px; }
.preview-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.preview-note { font-size: 12px; color: var(--text-muted); margin: 8px 2px 0; }
.tpl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tpl-row select { flex: 1; min-width: 160px; padding: 8px 10px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; }
.eb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.eb-tab { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted); padding: 6px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; }
.eb-tab.active { color: #fff; background: rgba(124,92,255,.2); border-color: var(--accent); }
.eb-tab.add { padding: 6px 12px; }
.eb-group { border-top: 1px solid var(--border); padding: 4px 0; }
.eb-group:first-of-type { border-top: 0; }
.eb-group > summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 10px 0; list-style: none; }
.eb-group > summary::before { content: "▸"; display: inline-block; width: 16px; color: var(--text-muted); transition: transform .12s; }
.eb-group[open] > summary::before { transform: rotate(90deg); }
.eb-group > summary::-webkit-details-marker { display: none; }
.eb-group[open] { padding-bottom: 8px; }
.eb-tab-actions { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.color-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 6px; }
.color-row input[type=color] { width: 44px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; color: var(--text-muted); font-size: 12px; padding: 0; }
.swatch.none { background: var(--bg-elevated); border-color: var(--border); }
.swatch.active { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.field-row { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; display: grid; gap: 8px; }
.field-row input[type=text] { width: 100%; padding: 8px 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; }
.field-row textarea { width: 100%; padding: 8px 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font: inherit; font-size: 14px; resize: vertical; min-height: 56px; }
.field-row textarea:focus, .field-row input:focus { outline: none; border-color: var(--accent); }
.fr-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.fr-actions button { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); border-radius: 6px; width: 26px; height: 26px; cursor: pointer; margin-left: 4px; }
.fr-actions button:disabled { opacity: .35; cursor: default; }
.inline-check { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 2px; background: var(--bg-elevated); border: 1px solid var(--border); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 4px; }
.md-toolbar + textarea { border-radius: 0 0 8px 8px !important; }
.md-toolbar button { min-width: 30px; height: 28px; background: transparent; border: 0; color: var(--text); border-radius: 6px; cursor: pointer; font-size: 13px; padding: 0 6px; }
.md-toolbar button:hover { background: rgba(255,255,255,.08); }
.eb-status { font-size: 13px; }
.eb-status.ok { color: var(--success); } .eb-status.error { color: #ff8a8c; }
.eb-status a { text-decoration: underline; }
.eb-pop { position: fixed; z-index: 100; width: 300px; max-height: 340px; overflow: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.eb-pop[hidden] { display: none; }
.pop-search { width: 100%; padding: 8px 10px; margin-bottom: 6px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; }
.pop-list { display: grid; }
.pop-list button { text-align: left; background: none; border: 0; color: var(--text); padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.pop-list button:hover, .emoji-grid button:hover { background: rgba(255,255,255,.08); }
.pop-list button[hidden] { display: none; }
.pop-list .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pop-h { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin: 6px 4px; }
.pop-empty { color: var(--text-muted); font-size: 13px; padding: 8px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-grid button { background: none; border: 0; border-radius: 6px; padding: 4px; cursor: pointer; font-size: 18px; line-height: 1; }
.emoji-grid img { width: 22px; height: 22px; }

/* ---- Discord-Vorschau ---- */
.dc-preview { background: none; border: 0; border-radius: 0; padding: 0; color: #dbdee1; font-family: "gg sans", "Segoe UI", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.4; min-height: 120px; overflow: hidden; }
.dc-empty { color: #949ba4; font-style: italic; text-align: center; padding: 28px 8px; }
.dc-msg { display: flex; gap: 14px; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.dc-body { min-width: 0; flex: 1; }
.dc-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.dc-name { font-weight: 500; color: #fff; }
.dc-badge { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; border-radius: 3px; padding: 0 4px; line-height: 15px; align-self: center; }
.dc-time { font-size: 12px; color: #949ba4; }
.dc-content { overflow-wrap: anywhere; }
.dc-embed { background: #2b2d31; border-left: 4px solid #1e1f22; border-radius: 4px; padding: 8px 14px 12px 12px; margin-top: 6px; max-width: 520px; }
.dc-e-grid { display: flex; gap: 14px; }
.dc-e-main { flex: 1; min-width: 0; }
.dc-e-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; flex: none; }
.dc-e-author { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-top: 8px; color: #fff; }
.dc-e-author img { width: 24px; height: 24px; border-radius: 50%; }
.dc-e-title { font-weight: 700; color: #fff; margin-top: 8px; overflow-wrap: anywhere; }
.dc-e-title a { color: #00a8fc; }
.dc-e-desc { font-size: 14px; margin-top: 8px; overflow-wrap: anywhere; }
.dc-e-fields { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin-top: 8px; }
.dc-e-field { grid-column: span 12; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.dc-e-field.inline { grid-column: span 4; }
.dc-e-fname { font-weight: 700; color: #fff; margin-bottom: 2px; }
.dc-e-image { display: block; max-width: 100%; max-height: 300px; border-radius: 6px; margin-top: 12px; }
.dc-e-footer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #b5bac1; margin-top: 10px; }
.dc-e-footer img { width: 20px; height: 20px; border-radius: 50%; }
.dc-preview a { color: #00a8fc; text-decoration: none; }
.dc-preview a:hover { text-decoration: underline; }
.dc-preview .mention { background: rgba(88,101,242,.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.dc-preview .emoji { width: 22px; height: 22px; vertical-align: -5px; }
.dc-preview code.inline { background: #1e1f22; border-radius: 4px; padding: 1px 5px; font-family: Consolas, monospace; font-size: .875em; }
.dc-preview pre.codeblock { background: #1e1f22; border: 1px solid #1a1b1e; border-radius: 6px; padding: 8px 10px; margin: 6px 0; overflow-x: auto; }
.dc-preview pre.codeblock code { font-family: Consolas, monospace; font-size: .85em; }
.dc-preview .quote { border-left: 4px solid #4e5058; padding-left: 10px; margin: 2px 0; }
.dc-preview .li { padding-left: 18px; position: relative; }
.dc-preview .li:before { content: "•"; position: absolute; left: 4px; }
.dc-preview .h1 { font-size: 1.5em; font-weight: 700; margin: 4px 0; } .dc-preview .h2 { font-size: 1.25em; font-weight: 700; margin: 4px 0; } .dc-preview .h3 { font-size: 1.1em; font-weight: 700; margin: 4px 0; }
.dc-preview .spoiler { background: #1e1f22; color: transparent; border-radius: 3px; cursor: pointer; padding: 0 2px; }
.dc-preview .spoiler:hover, .dc-preview .spoiler:focus { background: rgba(255,255,255,.08); color: inherit; outline: none; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
    .builder { grid-template-columns: 1fr; }
    .builder-preview { position: static; order: -1; }
}
@media (max-width: 800px) {
    .dash-layout { flex-direction: column; }
    .sidebar { width: 100%; display: flex; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--border); }
    .sidebar .guild-name { display: none; }
    .sidebar .nav-item { white-space: nowrap; padding: 10px 14px; margin: 0 2px 0 0; }
    .content { padding: 20px 14px; }
}


/* ============ Feinschliff im Bot-Control-Stil ============ */
.landing-logo { width: 96px; height: 96px; margin-bottom: 22px; filter: drop-shadow(0 8px 32px rgba(124, 108, 245, .55)); }
.nav-badge { background: rgba(124, 108, 245, .22); color: #cfc6ff; }
.kv-grid > div, .warn-user, .field-row { border-color: var(--border-soft); border-radius: 14px; }
.check { border-radius: var(--radius-sm); }
.field textarea, textarea#eb-content, .tpl-row select, .field-row input[type=text], .pop-search { border-radius: var(--radius-sm); border-color: var(--border-soft); background: var(--bg-elevated); }
.field-row input[type=text], .field-row textarea { background: var(--bg-elevated); }
.field textarea:focus, .tpl-row select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 108, 245, .18); }
.eb-tab { border-radius: 10px; border-color: var(--border-soft); }
.eb-tab.active { background: linear-gradient(135deg, rgba(124, 108, 245, .28), rgba(91, 75, 216, .14)); border-color: rgba(124, 108, 245, .5); }
.eb-pop { background: var(--bg-card); border-color: var(--border); border-radius: 14px; }
.swatch.active { box-shadow: 0 0 0 2px var(--accent); }
.md-toolbar { border-color: var(--border-soft); }

@media (max-width: 800px) {
    .sidebar .nav-item { border-radius: 10px; }
    .sidebar .nav-item.active { border-color: rgba(124, 108, 245, .35); }
    .login-card { margin-top: 64px; padding: 24px; }
    .gradient-title, .landing h1 { font-size: 38px; }
    .topbar { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== Caruzo Dashboard 2.0 ===== */
.dashboard-hero { overflow:hidden; position:relative; background:linear-gradient(145deg,rgba(30,28,60,.94),rgba(14,14,26,.96)); }
.dashboard-hero::after { content:""; position:absolute; inset:-50% -20% auto auto; width:280px; height:280px; border-radius:50%; background:radial-gradient(circle,rgba(124,108,245,.18),transparent 68%); pointer-events:none; animation:dashGlow 5s ease-in-out infinite; }
@keyframes dashGlow { 50% { transform:scale(1.18) translate(-12px,14px); opacity:.65; } }
.eyebrow-small { font-size:11px; letter-spacing:.18em; color:var(--accent-hover); font-weight:800; }
#serverStatsChart { width:100%; display:block; margin-top:12px; border-radius:14px; background:rgba(0,0,0,.12); }
.log-groups { display:grid; gap:10px; }
.log-group { border:1px solid var(--border-soft); border-radius:14px; overflow:hidden; background:rgba(9,9,17,.35); }
.log-group > summary { cursor:pointer; list-style:none; padding:12px 14px; font-weight:700; display:flex; justify-content:space-between; align-items:center; }
.log-group > summary span { color:var(--text-muted); font-size:12px; font-weight:500; }
.log-group > summary::-webkit-details-marker { display:none; }
.log-group .toggle-row { margin:0; border-top:1px solid var(--border-soft); border-radius:0; padding:10px 14px; }
.field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.field input, .field textarea, .field select { width:100%; }
.field input, .field textarea { background:var(--bg-elevated); border:1px solid var(--border); color:var(--text); border-radius:10px; padding:10px 12px; font:inherit; }
.field textarea { resize:vertical; min-height:90px; }
.field small { display:block; color:var(--text-muted); margin-top:6px; }
.stack-list { display:grid; gap:8px; margin-top:16px; }
.stack-item { display:flex; justify-content:space-between; align-items:center; gap:14px; border:1px solid var(--border-soft); background:rgba(8,8,16,.45); border-radius:12px; padding:11px 12px; }
.stack-item small { display:block; color:var(--text-muted); margin-top:4px; overflow-wrap:anywhere; }
.stat-card { transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; animation:statIn .5s both; }
.stat-card:hover { transform:translateY(-3px); border-color:rgba(124,108,245,.55); box-shadow:0 12px 28px rgba(0,0,0,.24); }
@keyframes statIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
.module-section.active > .card { animation:sectionIn .28s ease both; }
@keyframes sectionIn { from { opacity:.35; transform:translateY(6px); } to { opacity:1; transform:none; } }
@media (max-width:700px){ .field-grid{grid-template-columns:1fr;} .stack-item{align-items:flex-start;flex-direction:column;} }

/* ===== Caruzo Dashboard 3.0: Logging / Live Preview / Economy Admin ===== */
.module-section > .logging-shell,
.module-section > .live-config-card,
.module-section > .economy-admin-card,
.module-section > .giveaway-dashboard-card,
.module-section > .economy-stats-grid { max-width: 1180px; }

/* Logging im Stil der Referenzbilder */
.logging-shell { padding: 0; overflow: hidden; background: linear-gradient(180deg, rgba(28,35,45,.96), rgba(20,25,34,.98)); border-color: rgba(148,163,184,.15); }
.logging-title-row { display:flex; align-items:flex-start; gap:14px; padding:22px 24px 8px; }
.logging-title-row h2 { font-size:24px; margin:0 0 8px; }
.logging-title-row .desc { margin:0; }
.logging-icon { width:28px; height:28px; border-radius:6px; display:grid; place-items:center; background:#f2f3f5; color:#20242c; font-weight:900; transform:rotate(90deg); box-shadow:0 0 0 1px rgba(255,255,255,.1); }
.logging-tabs { display:flex; gap:4px; padding:0 24px; border-bottom:1px solid rgba(148,163,184,.18); }
.logging-tab { appearance:none; border:0; background:transparent; color:#aeb5bf; padding:12px 14px 11px; font:700 13px var(--font); cursor:pointer; position:relative; }
.logging-tab::after { content:""; position:absolute; left:10px; right:10px; bottom:-1px; height:2px; border-radius:2px; background:transparent; }
.logging-tab.active { color:#fff; }
.logging-tab.active::after { background:#5eb8ff; box-shadow:0 0 12px rgba(94,184,255,.5); }
.logging-panel { display:none; padding:18px 24px 24px; }
.logging-panel.active { display:block; }
.logging-help { border-left:2px solid #f2f3f5; padding-left:12px; color:#eef0f3; font-size:13px; line-height:1.45; margin-bottom:18px; }
.log-search-wrap { position:relative; margin-bottom:12px; }
.log-search-wrap input { width:100%; height:42px; padding:0 42px 0 14px; background:#29313b; border:1px solid rgba(255,255,255,.04); border-radius:8px; color:#fff; font:500 13px var(--font); outline:none; }
.log-search-wrap input:focus { border-color:rgba(94,184,255,.5); box-shadow:0 0 0 3px rgba(94,184,255,.11); }
.log-search-wrap span { position:absolute; right:14px; top:50%; transform:translateY(-50%); color:#d7dce3; font-size:18px; pointer-events:none; }
.log-toolbar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding-bottom:14px; border-bottom:1px solid rgba(148,163,184,.18); margin-bottom:4px; }
.log-toolbar select { min-width:210px; height:38px; padding:0 10px; background:#202731; color:#eef0f3; border:1px solid rgba(255,255,255,.06); border-radius:7px; }
.log-toolbar .btn.secondary { background:#1a2028; border-color:rgba(255,255,255,.05); color:#f0f1f3; border-radius:7px; }
.log-groups { gap:0; }
.sapphire-log-group { border:0; border-bottom:1px solid rgba(148,163,184,.18); border-radius:0; background:transparent; }
.sapphire-log-group > summary { padding:17px 0 10px; font-size:15px; color:#fff; }
.sapphire-log-group > summary > span:first-child { color:#fff; font-size:15px; font-weight:800; }
.sapphire-log-group .log-count { color:#9aa4af; background:#1b222c; padding:3px 7px; border-radius:999px; font-size:10px; }
.log-type-list { display:grid; gap:4px; padding:0 0 16px; }
.log-type-row { min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:7px 8px; border-radius:6px; background:#1b232c; border:1px solid rgba(255,255,255,.02); transition:opacity .15s, background .15s, transform .15s; }
.log-type-row:hover { background:#202a35; transform:translateX(1px); }
.log-type-row.disabled { opacity:.48; }
.log-type-row[hidden], .sapphire-log-group[hidden] { display:none !important; }
.log-type-name { font-size:12px; font-weight:600; color:#eef0f3; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.log-type-controls { display:flex; align-items:center; gap:7px; flex-shrink:0; }
.log-clear-btn { width:20px; height:20px; display:grid; place-items:center; background:transparent; border:1px solid #687381; border-radius:4px; color:#dfe3e8; cursor:pointer; line-height:1; padding:0; }
.log-clear-btn:hover { color:#fff; border-color:#ff7b7e; background:rgba(237,66,69,.13); }
.log-enable-pill { position:relative; cursor:pointer; }
.log-enable-pill input { position:absolute; opacity:0; pointer-events:none; }
.log-enable-pill span { display:inline-flex; align-items:center; justify-content:center; min-width:38px; height:24px; padding:0 7px; border-radius:5px; background:#2f9e67; color:#fff; font-size:9px; font-weight:900; letter-spacing:.04em; }
.log-enable-pill.off span { background:#3b424c; color:#aeb5bf; }
.log-channel-select { width:112px; max-width:180px; height:26px; padding:0 5px; border:0; border-radius:4px; background:linear-gradient(90deg,#5146d9,#7b3fd4); color:#fff; font:700 10px var(--font); cursor:pointer; }
.log-channel-select option { background:#1f2731; color:#fff; }
.log-style-preview { display:flex; gap:0; max-width:570px; margin-top:22px; border-radius:8px; overflow:hidden; background:#2b2d31; box-shadow:0 10px 30px rgba(0,0,0,.25); }
.log-style-accent { width:5px; background:#ed4245; }
.log-style-body { flex:1; padding:13px 15px; font-family:"gg sans","Segoe UI",sans-serif; }
.log-style-author { display:flex; align-items:center; gap:8px; font-size:12px; color:#b5bac1; margin-bottom:7px; }
.log-style-author img { width:22px; height:22px; border-radius:50%; }
.log-style-body > strong { color:#f2f3f5; font-size:15px; }
.log-style-fields { display:grid; grid-template-columns:max-content 1fr; gap:4px 12px; margin:12px 0 10px; font-size:12px; }
.log-style-fields span { color:#949ba4; }.log-style-fields b { color:#dbdee1; font-weight:500; }
.log-style-body small { color:#949ba4; }

/* Welcome & Booster Live Preview */
.live-config-card { padding:24px; overflow:visible; }
.live-config-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.live-config-head h2 { margin-bottom:8px; font-size:21px; }
.live-badge { flex:none; padding:6px 9px; border-radius:999px; border:1px solid rgba(87,242,135,.35); background:rgba(87,242,135,.08); color:#7cf59f; font-size:10px; font-weight:900; letter-spacing:.08em; }
.live-badge.booster { color:#f7a4ff; border-color:rgba(244,127,255,.35); background:rgba(244,127,255,.08); }
.live-config-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(360px,.9fr); gap:26px; align-items:start; }
.discord-live-preview { position:sticky; top:86px; border:1px solid #3f4147; border-radius:13px; background:#1e1f22; padding:0; overflow:hidden; box-shadow:0 20px 50px rgba(0,0,0,.3); transition:opacity .2s, filter .2s; }
.discord-live-preview.preview-disabled { opacity:.5; filter:saturate(.45); }
.discord-live-preview.preview-disabled::after { content:"DEAKTIVIERT"; position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); z-index:5; padding:7px 12px; border-radius:6px; background:rgba(0,0,0,.78); color:#fff; font-size:11px; font-weight:900; letter-spacing:.1em; }
.discord-preview-label { display:flex; justify-content:space-between; align-items:center; padding:9px 12px; background:#2b2d31; border-bottom:1px solid #3f4147; color:#b5bac1; font:700 11px var(--font); }
.discord-message-shell { display:flex; gap:12px; padding:18px 14px 22px; min-height:210px; font-family:"gg sans","Segoe UI",Helvetica,Arial,sans-serif; }
.discord-bot-avatar { width:40px; height:40px; border-radius:50%; flex:none; object-fit:cover; }
.discord-message-main { min-width:0; flex:1; }
.discord-message-author { color:#f2f3f5; font-size:15px; font-weight:600; display:flex; align-items:center; gap:6px; }
.discord-message-author > span { color:#fff; background:#5865f2; border-radius:3px; padding:1px 4px; font:800 9px var(--font); }
.discord-message-author small { color:#949ba4; font-size:11px; font-weight:400; }
.live-message-content { color:#dbdee1; font-size:14px; min-height:5px; margin:2px 0 5px; }
.live-message-content .mention { background:rgba(88,101,242,.3); color:#c9cdfb; border-radius:3px; padding:0 2px; }
.live-embed { position:relative; max-width:520px; min-height:110px; margin-top:5px; padding:12px 12px 10px 16px; background:#2b2d31; border-radius:4px; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; }
.live-embed::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--live-color,#5865f2); }
.live-embed-inner { min-width:0; }
.live-embed-title { color:#f2f3f5; font-size:15px; line-height:1.3; font-weight:700; overflow-wrap:anywhere; }
.live-embed-desc.dc-preview { color:#dbdee1; font-size:14px; line-height:1.35; margin-top:7px; min-height:0; overflow-wrap:anywhere; }
.live-embed-footer { margin-top:12px; color:#b5bac1; font-size:11px; }
.live-embed-thumb { width:80px; height:80px; border-radius:6px; object-fit:cover; }
.live-embed-image { grid-column:1/-1; width:100%; max-height:250px; object-fit:cover; border-radius:6px; margin-top:4px; }
.live-embed-image[hidden], .live-embed-thumb[hidden] { display:none; }

.divider { height:1px; margin:18px 0; background:linear-gradient(90deg,transparent,var(--border-soft),transparent); border:0; }

/* Economy Admin */
.economy-stats-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.card-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.admin-pill { padding:6px 9px; border-radius:999px; background:rgba(240,179,95,.12); border:1px solid rgba(240,179,95,.28); color:#f0b35f; font-size:10px; font-weight:900; letter-spacing:.08em; }
.admin-pill.purple { color:#c8bcff; background:rgba(124,108,245,.12); border-color:rgba(124,108,245,.35); }
.field-grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.giveaway-preview-mini { display:flex; gap:12px; align-items:center; margin:4px 0 18px; padding:12px 14px; border:1px solid var(--border-soft); background:rgba(124,108,245,.06); border-radius:12px; }
.giveaway-preview-mini > span { width:38px; height:38px; border-radius:10px; display:grid; place-items:center; background:rgba(124,108,245,.14); font-size:20px; }
.giveaway-preview-mini strong { display:block; font-size:13px; }.giveaway-preview-mini small { display:block; color:var(--text-muted); margin-top:3px; font-size:11px; }
.pending-giveaways { margin-top:20px; border-top:1px solid var(--border-soft); padding-top:16px; }
.pending-giveaways h3 { font-size:13px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.08em; }
.pending-giveaway { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:10px 12px; border:1px solid var(--border-soft); border-radius:10px; margin-top:7px; background:rgba(8,8,16,.35); }
.pending-giveaway small { display:block; color:var(--text-muted); margin-top:3px; }
.status-dot { color:#72f09a; font-size:9px; font-weight:900; letter-spacing:.08em; }
.status-dot::before { content:""; display:inline-block; width:6px; height:6px; margin-right:5px; border-radius:50%; background:#57f287; box-shadow:0 0 10px #57f287; animation:livePulse 1.7s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity:.35; transform:scale(.8); } }

@media (max-width: 1050px) {
    .live-config-grid { grid-template-columns:1fr; }
    .discord-live-preview { position:static; order:-1; }
}
@media (max-width: 760px) {
    .log-type-row { align-items:flex-start; flex-direction:column; }
    .log-type-controls { width:100%; }
    .log-channel-select { flex:1; width:auto; }
    .economy-stats-grid, .field-grid.three { grid-template-columns:1fr; }
    .live-config-head, .card-title-row { flex-direction:column; }
}

/* ===== Caruzo Dashboard 4.0: Live Stats / Custom Command Preview ===== */
.module-section > .live-stats-card,
.module-section > .module-health-card,
.module-section > .custom-command-card { max-width: 1180px; }

.live-stats-card { padding: 24px; min-height: 430px; }
.live-stats-header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; position:relative; z-index:2; }
.live-stats-header h2 { margin:4px 0 6px; }
.live-metric-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0 14px; position:relative; z-index:2; }
.live-metric { padding:13px 14px; border:1px solid rgba(255,255,255,.07); border-radius:14px; background:rgba(5,6,13,.28); box-shadow:inset 0 1px 0 rgba(255,255,255,.025); }
.live-metric span { display:block; color:#aeb4c2; font-size:11px; font-weight:700; letter-spacing:.02em; }
.live-metric strong { display:block; margin-top:5px; font-size:25px; color:#fff; }
.live-metric small { display:block; margin-top:3px; color:#8e96a6; font-size:10px; }
.live-metric.purple strong { color:#b5aaff; }.live-metric.green strong { color:#7af3a5; }.live-metric.amber strong { color:#f4c276; }
.live-chart-wrap { position:relative; z-index:2; padding:6px 8px 2px; border:1px solid rgba(255,255,255,.055); border-radius:16px; background:linear-gradient(180deg,rgba(5,6,13,.34),rgba(5,6,13,.13)); overflow:hidden; }
#serverStatsChart { width:100%; height:230px; display:block; margin:0; border-radius:12px; background:transparent; }
.live-chart-foot { display:flex; align-items:center; gap:7px; margin-top:10px; color:#8d95a5; font-size:10px; position:relative; z-index:2; }
.live-dot { width:7px; height:7px; border-radius:50%; background:#57f287; box-shadow:0 0 12px rgba(87,242,135,.8); animation:livePulse 1.7s ease-in-out infinite; }

.module-health-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:18px; }
.module-health-item { appearance:none; width:100%; display:grid; grid-template-columns:42px minmax(0,1fr) 20px; align-items:center; gap:11px; text-align:left; padding:12px 13px; border:1px solid var(--border-soft); border-radius:13px; background:rgba(8,8,16,.38); color:var(--text); cursor:pointer; transition:transform .18s ease,border-color .18s ease,background .18s ease; }
.module-health-item:hover { transform:translateY(-2px); border-color:rgba(124,108,245,.5); background:rgba(124,108,245,.07); }
.module-health-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; background:rgba(124,108,245,.1); font-size:18px; }
.module-health-item strong { display:block; font-size:16px; }.module-health-item small { display:block; margin-top:2px; color:var(--text-muted); font-size:11px; }
.module-health-item b { color:#858da0; font-size:18px; text-align:right; }

.custom-command-card { overflow:visible; }
.custom-command-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(360px,.9fr); gap:26px; align-items:start; margin-top:18px; }
.custom-command-preview { position:sticky; top:86px; }
.cc-preview-thread { padding:15px 0 8px; }
.cc-user-line { display:flex; gap:12px; padding:5px 14px 11px; transition:opacity .2s,filter .2s; }
.cc-user-line.will-delete { opacity:.36; filter:saturate(.35); }
.cc-user-line.will-delete::after { content:'wird nach Ausführung gelöscht'; align-self:center; margin-left:auto; color:#f0b35f; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.cc-preview-avatar { width:40px; height:40px; flex:none; display:grid; place-items:center; border-radius:50%; background:linear-gradient(135deg,#725bdc,#4e9fe6); color:#fff; font-weight:800; }
.cc-author { color:#f2f3f5; font:600 15px "gg sans","Segoe UI",sans-serif; }.cc-author small { color:#949ba4; font-size:11px; font-weight:400; margin-left:5px; }
.cc-trigger-text { color:#dbdee1; margin-top:2px; font:14px "gg sans","Segoe UI",sans-serif; overflow-wrap:anywhere; }
.cc-bot-shell { min-height:92px; padding-top:9px; padding-bottom:12px; border-top:1px solid rgba(255,255,255,.035); }
.cc-response.dc-preview { min-height:30px; margin-top:3px; color:#dbdee1; font-size:14px; }
.cc-preview-meta { display:flex; gap:7px; align-items:center; padding:10px 12px; border-top:1px solid #3f4147; background:#25272b; }
.cc-preview-meta span { padding:4px 7px; border-radius:6px; background:#1e1f22; color:#b9bec8; font-size:9px; font-weight:800; letter-spacing:.03em; }
.cc-match-badge { border:1px solid rgba(91,92,246,.32); }.cc-cooldown-badge { border:1px solid rgba(87,242,135,.22); }

@media (max-width: 900px) {
    .live-metric-grid, .module-health-grid { grid-template-columns:1fr; }
    .custom-command-layout { grid-template-columns:1fr; }
    .custom-command-preview { position:static; order:-1; }
}

/* ===== V5 Games / Security / Designer ===== */
.richest-card{overflow:hidden}.richest-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin-top:14px}.rich-player{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--border);background:rgba(255,255,255,.025);border-radius:14px}.rich-player strong,.rich-player small{display:block}.rich-player small{color:var(--text-muted);margin-top:2px}.rich-rank{font-size:20px;min-width:30px;text-align:center}.designer-box{margin:16px 0;padding:14px;border:1px solid rgba(139,125,248,.25);background:linear-gradient(145deg,rgba(139,125,248,.08),rgba(255,255,255,.015));border-radius:16px}.designer-box h3{margin:0 0 12px}.core-guards{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px}.core-guards span{padding:8px 10px;border:1px solid rgba(87,242,135,.2);background:rgba(87,242,135,.06);border-radius:999px;color:#b9f8ca;font-size:12px;font-weight:700}.game-control-table{margin:18px 0;border:1px solid var(--border);border-radius:14px;overflow:hidden}.game-control-head,.game-control-row{display:grid;grid-template-columns:minmax(120px,1.25fr) 76px minmax(90px,.7fr) minmax(110px,.85fr) minmax(110px,.85fr) minmax(120px,.9fr);gap:10px;align-items:center;padding:10px 12px}.game-control-head{background:rgba(255,255,255,.04);color:var(--text-muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.game-control-row{border-top:1px solid var(--border)}.game-control-row input[type=number]{width:100%;padding:8px 9px}.mini-check{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:800}.cooldown-input{position:relative}.cooldown-input small{position:absolute;right:9px;top:50%;transform:translateY(-50%);color:var(--text-muted);pointer-events:none}.cooldown-input input{padding-right:34px!important}.history-table-wrap{overflow:auto;margin-top:12px}.game-history-table{min-width:1160px}.history-result{max-width:260px;white-space:normal}.cell-sub{display:block;color:var(--text-muted);margin-top:3px}.fair-details summary{cursor:pointer;font-weight:700;white-space:nowrap}.fair-details small{display:block;min-width:250px;margin-top:7px;line-height:1.5}.status-dot.danger{background:rgba(237,66,69,.12);color:#ff9a9d;border:1px solid rgba(237,66,69,.2)}
@media(max-width:900px){.game-control-head{display:none}.game-control-row{grid-template-columns:1fr 80px;gap:8px}.game-control-row>input,.game-control-row>.cooldown-input{grid-column:1/-1}.richest-grid{grid-template-columns:1fr}}

.vip-max-input{border-color:rgba(241,196,15,.28)!important;background:linear-gradient(180deg,rgba(241,196,15,.055),rgba(255,255,255,.02))!important}.vip-admin-card{border-color:rgba(241,196,15,.16)!important;background:radial-gradient(circle at 90% 0,rgba(241,196,15,.07),transparent 34%),var(--card)!important}
