/* ============================
   ☕ Kaffeekränzchen Admin Panel
   Premium Dark Dashboard
   ============================ */

:root {
    --bg: #0a0706;
    --surface: #141010;
    --surface-2: #1c1614;
    --surface-3: #251e1a;
    --border: rgba(244, 232, 212, 0.06);
    --border-hover: rgba(244, 232, 212, 0.12);
    --gold: #d4a053;
    --gold-light: #e8c87e;
    --gold-dim: #b38539;
    --gold-glow: rgba(212, 160, 83, 0.12);
    --cream: #f4e8d4;
    --cream-50: rgba(244, 232, 212, 0.5);
    --cream-30: rgba(244, 232, 212, 0.3);
    --cream-15: rgba(244, 232, 212, 0.15);
    --cream-08: rgba(244, 232, 212, 0.08);
    --green: #4ade80;
    --red: #ef4444;
    --blue: #60a5fa;
    --purple: #a78bfa;
    --discord: #5865F2;
    --radius: 12px;
    --radius-lg: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', -apple-system, sans-serif;
    color: var(--cream);
    line-height: 1.6;
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #1a0f08; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ---- LOGIN OVERLAY ---- */
.login-overlay {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at 30% 20%, rgba(50, 30, 15, 0.5), transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(40, 20, 10, 0.4), transparent 60%),
                var(--bg);
    padding: 20px;
}
.login-overlay.hidden { display: none; }

.login-card {
    max-width: 400px; width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(212,160,83,0.04);
    animation: fadeInUp 0.5s ease forwards;
}
.login-logo {
    width: 64px; height: 64px; border-radius: 14px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.login-card h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem; font-weight: 800;
    margin-bottom: 6px;
}
.login-card > p {
    color: var(--cream-50); font-size: 0.85rem;
    margin-bottom: 24px;
}
.login-methods { display: flex; flex-direction: column; gap: 12px; }

.login-method-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 20px; border-radius: var(--radius);
    font-size: 0.9rem; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: all 0.2s ease; border: none;
}
.discord-login {
    background: var(--discord); color: white;
    box-shadow: 0 4px 16px rgba(88,101,242,0.25);
}
.discord-login:hover {
    background: #4752c4; transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(88,101,242,0.35);
}

.login-divider {
    display: flex; align-items: center; gap: 12px;
    color: var(--cream-30); font-size: 0.78rem;
}
.login-divider::before, .login-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

.login-form { display: flex; flex-direction: column; gap: 10px; }
.login-form input {
    padding: 12px 16px; background: var(--surface-2);
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--cream); font-family: inherit; font-size: 0.9rem;
    transition: border-color 0.2s ease;
    outline: none;
}
.login-form input:focus { border-color: var(--gold); }
.login-form input::placeholder { color: var(--cream-30); }

.login-submit {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #1a0f08; border: none; border-radius: var(--radius);
    font-family: inherit; font-size: 0.9rem; font-weight: 800;
    cursor: pointer; transition: all 0.2s ease;
}
.login-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }

.login-hint {
    margin-top: 16px; font-size: 0.75rem; color: var(--cream-30);
}

.login-error {
    color: var(--red); font-size: 0.82rem; font-weight: 600;
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ---- ADMIN NAV ---- */
.admin-nav {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 56px;
    background: rgba(10, 7, 6, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.admin-nav-left { display: flex; align-items: center; gap: 10px; }
.admin-back {
    color: var(--cream-50); text-decoration: none; font-size: 0.82rem;
    font-weight: 600; padding: 4px 10px; border-radius: 6px;
    transition: all 0.2s ease;
}
.admin-back:hover { color: var(--cream); background: var(--cream-08); }
.admin-nav-logo { width: 28px; height: 28px; border-radius: 6px; }
.admin-nav-title {
    font-family: 'Outfit', sans-serif; font-weight: 700;
    font-size: 0.95rem; color: var(--gold-light);
}
.admin-nav-right { display: flex; align-items: center; gap: 10px; }
.admin-user {
    font-size: 0.82rem; color: var(--cream-50); font-weight: 600;
    padding: 4px 10px; background: var(--cream-08);
    border-radius: 6px;
}
.admin-logout {
    padding: 6px 12px; background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2); border-radius: 6px;
    color: var(--red); font-family: inherit; font-size: 0.78rem;
    font-weight: 700; cursor: pointer; transition: all 0.2s ease;
}
.admin-logout:hover { background: rgba(239,68,68,0.2); }

/* ---- TABS ---- */
.admin-tabs {
    display: flex; gap: 4px; padding: 12px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.admin-tab {
    padding: 8px 18px; border-radius: 8px;
    background: transparent; border: 1px solid transparent;
    color: var(--cream-50); font-family: inherit;
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s ease;
    white-space: nowrap;
}
.admin-tab:hover { background: var(--cream-08); color: var(--cream); }
.admin-tab.active {
    background: var(--gold-glow); color: var(--gold-light);
    border-color: rgba(212,160,83,0.2);
}

/* ---- CONTENT ---- */
.admin-content {
    display: none; padding: 24px;
    max-width: 1100px; margin: 0 auto;
    animation: fadeIn 0.3s ease;
}
.admin-content.active { display: block; }

.admin-section-header {
    margin-bottom: 24px;
}
.admin-section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem; font-weight: 800;
    margin-bottom: 4px;
}
.admin-section-header p {
    color: var(--cream-50); font-size: 0.85rem;
}

/* ---- STATS GRID ---- */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px; margin-bottom: 24px;
}
.stat-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    position: relative; overflow: hidden;
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.stat-card.highlight {
    background: linear-gradient(135deg, rgba(74,222,128,0.06), var(--surface));
    border-color: rgba(74,222,128,0.15);
}
.stat-icon { font-size: 1.6rem; flex-shrink: 0; }
.stat-info { display: flex; flex-direction: column; flex: 1; }
.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem; font-weight: 800; color: var(--cream);
    line-height: 1.1;
}
.stat-label { font-size: 0.72rem; color: var(--cream-30); font-weight: 600; }
.stat-trend {
    font-size: 0.72rem; font-weight: 800; padding: 2px 8px;
    border-radius: 100px;
}
.stat-trend.up { background: rgba(74,222,128,0.1); color: var(--green); }
.stat-trend.down { background: rgba(239,68,68,0.1); color: var(--red); }
.stat-trend.neutral { background: var(--cream-08); color: var(--cream-30); }
.stat-pulse {
    position: absolute; top: 12px; right: 12px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(74,222,128,0.5);
    animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---- CHART ---- */
.chart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px; margin-bottom: 20px;
}
.chart-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 700; margin-bottom: 16px;
}
.chart-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.chart-header h3 { margin-bottom: 0; }
.chart-period { display: flex; gap: 4px; }
.period-btn {
    padding: 4px 10px; border-radius: 6px;
    background: transparent; border: 1px solid var(--border);
    color: var(--cream-50); font-family: inherit;
    font-size: 0.72rem; font-weight: 700; cursor: pointer;
    transition: all 0.2s ease;
}
.period-btn:hover { border-color: var(--border-hover); }
.period-btn.active {
    background: var(--gold-glow); color: var(--gold-light);
    border-color: rgba(212,160,83,0.2);
}
.chart-area { height: 220px; position: relative; }
.chart-area canvas { width: 100% !important; height: 100% !important; }

/* Page list */
.page-list { display: flex; flex-direction: column; gap: 8px; }
.page-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; background: var(--surface-2);
    border-radius: 8px; transition: all 0.2s ease;
}
.page-row:hover { background: var(--surface-3); }
.page-row-name { flex: 1; font-size: 0.85rem; font-weight: 600; }
.page-row-bar {
    flex: 2; height: 6px; background: var(--cream-08);
    border-radius: 3px; overflow: hidden;
}
.page-row-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold));
    transition: width 0.6s ease;
}
.page-row-count { font-size: 0.78rem; color: var(--cream-50); font-weight: 700; min-width: 40px; text-align: right; }

/* Geo list */
.geo-list { display: flex; flex-direction: column; gap: 8px; }

/* ---- NEWS ---- */
.btn-create-news {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #1a0f08; border: none; border-radius: var(--radius);
    font-family: inherit; font-size: 0.9rem; font-weight: 800;
    cursor: pointer; transition: all 0.2s ease;
    margin-bottom: 20px;
}
.btn-create-news:hover { filter: brightness(1.1); transform: translateY(-2px); }

.news-editor {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden; margin-bottom: 24px;
    animation: fadeInUp 0.3s ease;
}
.editor-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.editor-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 700;
}
.editor-close {
    background: none; border: none; color: var(--cream-50);
    font-size: 1.2rem; cursor: pointer; padding: 4px 8px;
    transition: color 0.2s ease;
}
.editor-close:hover { color: var(--red); }

.editor-body { padding: 20px; }

.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block; font-size: 0.78rem; font-weight: 700;
    color: var(--cream-50); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 10px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px; color: var(--cream);
    font-family: inherit; font-size: 0.88rem;
    transition: border-color 0.2s ease; outline: none;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--cream-30); }

.form-group.inline {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px;
}
.form-group.inline label { margin-bottom: 0; flex: 1; }
.form-group.inline input[type="color"] {
    width: 36px; height: 28px; padding: 2px;
    border-radius: 6px; cursor: pointer;
    background: var(--surface-2);
}

.color-picker { display: flex; gap: 8px; }
.color-opt {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid transparent; cursor: pointer;
    transition: all 0.2s ease;
}
.color-opt.gold { background: linear-gradient(135deg, #d4a053, #b38539); }
.color-opt.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.color-opt.green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.color-opt.red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.color-opt.purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.color-opt.active { border-color: var(--cream); transform: scale(1.15); }
.color-opt:hover { transform: scale(1.1); }

.editor-actions {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px;
}
.btn-preview, .btn-draft, .btn-publish {
    padding: 10px 18px; border-radius: 8px;
    font-family: inherit; font-size: 0.85rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s ease; border: none;
}
.btn-preview {
    background: var(--cream-08); color: var(--cream);
    border: 1px solid var(--border);
}
.btn-preview:hover { background: var(--cream-15); }
.btn-draft { background: var(--surface-3); color: var(--cream-50); }
.btn-draft:hover { color: var(--cream); }
.btn-publish {
    background: linear-gradient(135deg, var(--green), #16a34a);
    color: white; box-shadow: 0 4px 16px rgba(74,222,128,0.2);
}
.btn-publish:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(74,222,128,0.3); }

/* News Preview */
.news-preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px; margin-bottom: 20px;
}
.news-preview h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 700; margin-bottom: 16px;
}
.preview-frame {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 20px;
    min-height: 100px;
}
.btn-close-preview {
    margin-top: 12px; padding: 8px 16px;
    background: var(--cream-08); border: none;
    border-radius: 6px; color: var(--cream-50);
    font-family: inherit; cursor: pointer;
    transition: all 0.2s ease;
}
.btn-close-preview:hover { color: var(--cream); }

/* News List */
.news-list h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 700; margin-bottom: 14px;
}
.news-items { display: flex; flex-direction: column; gap: 10px; }
.news-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius); transition: all 0.2s ease;
}
.news-item:hover { border-color: var(--border-hover); }
.news-item-status {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0;
}
.news-item-status.live { background: var(--green); box-shadow: 0 0 6px rgba(74,222,128,0.5); }
.news-item-status.draft { background: var(--cream-30); }
.news-item-info { flex: 1; }
.news-item-title { font-weight: 700; font-size: 0.9rem; }
.news-item-date { font-size: 0.72rem; color: var(--cream-30); }
.news-item-actions { display: flex; gap: 6px; }
.news-item-btn {
    padding: 4px 10px; border-radius: 5px;
    background: var(--cream-08); border: none;
    color: var(--cream-50); font-size: 0.72rem;
    font-family: inherit; font-weight: 600;
    cursor: pointer; transition: all 0.2s ease;
}
.news-item-btn:hover { background: var(--cream-15); color: var(--cream); }
.news-item-btn.delete:hover { background: rgba(239,68,68,0.15); color: var(--red); }

/* ---- SERVER ---- */
.server-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px; margin-bottom: 24px;
}
.server-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden; transition: all 0.2s ease;
}
.server-card:hover { border-color: var(--border-hover); }
.server-card-header {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.server-card-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 700;
}
.server-status-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--cream-30);
    transition: all 0.3s ease;
}
.server-status-dot.online {
    background: var(--green);
    box-shadow: 0 0 10px rgba(74,222,128,0.5);
}
.server-status-dot.offline {
    background: var(--red);
    box-shadow: 0 0 10px rgba(239,68,68,0.5);
}

.server-details { padding: 16px 20px; }
.server-detail {
    display: flex; justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.server-detail:last-child { border-bottom: none; }
.detail-label { font-size: 0.82rem; color: var(--cream-50); font-weight: 600; }
.detail-value {
    font-size: 0.82rem; font-weight: 700; color: var(--cream);
    font-family: 'JetBrains Mono', monospace;
}

.server-actions {
    padding: 12px 20px; background: var(--surface-2);
    border-top: 1px solid var(--border);
    display: flex; gap: 8px;
}
.server-btn {
    padding: 8px 16px; border-radius: 8px;
    font-family: inherit; font-size: 0.82rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s ease; border: none;
}
.server-btn.refresh {
    background: var(--cream-08); color: var(--cream);
    border: 1px solid var(--border);
}
.server-btn.refresh:hover { background: var(--cream-15); }
.server-btn.start {
    background: linear-gradient(135deg, var(--green), #16a34a);
    color: white;
}
.server-btn.stop {
    background: linear-gradient(135deg, var(--red), #dc2626);
    color: white;
}

/* Console */
.console-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.console-header {
    padding: 14px 20px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.console-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 700;
}
.console-hint { font-size: 0.72rem; color: var(--cream-30); }

.console-output {
    height: 250px; overflow-y: auto; padding: 14px 18px;
    background: #080604;
    font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
    line-height: 1.8;
}
.console-line { color: var(--cream-50); }
.console-line.system { color: var(--gold); }
.console-line.error { color: var(--red); }
.console-line.success { color: var(--green); }
.console-line.info { color: var(--blue); }

.console-input-row {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: #0c0a08;
    border-top: 1px solid var(--border);
}
.console-prompt {
    color: var(--gold); font-family: 'JetBrains Mono', monospace;
    font-weight: 700; font-size: 0.9rem;
}
.console-input {
    flex: 1; background: transparent; border: none;
    color: var(--cream); font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem; outline: none;
}
.console-input::placeholder { color: var(--cream-30); }
.console-send {
    padding: 6px 14px; background: var(--gold-glow);
    border: 1px solid rgba(212,160,83,0.2); border-radius: 6px;
    color: var(--gold-light); font-family: inherit;
    font-size: 0.75rem; font-weight: 700; cursor: pointer;
    transition: all 0.2s ease;
}
.console-send:hover {
    background: rgba(212,160,83,0.2);
}

/* ---- EXPERIMENTS ---- */
.experiments-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.experiment-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px; transition: all 0.2s ease;
}
.experiment-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.exp-icon { font-size: 2rem; margin-bottom: 10px; }
.experiment-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 700; margin-bottom: 6px;
}
.experiment-card p {
    font-size: 0.82rem; color: var(--cream-50); margin-bottom: 14px; line-height: 1.5;
}
.exp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.exp-btn {
    padding: 8px 16px; border-radius: 8px;
    font-family: inherit; font-size: 0.82rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s ease; border: none;
}
.exp-btn.activate {
    background: linear-gradient(135deg, var(--green), #16a34a);
    color: white;
}
.exp-btn.activate:hover { filter: brightness(1.1); transform: translateY(-1px); }
.exp-btn.deactivate {
    background: var(--cream-08); color: var(--cream-50);
    border: 1px solid var(--border);
}
.exp-btn.deactivate:hover { color: var(--cream); }
.exp-status {
    margin-top: 10px; font-size: 0.75rem; color: var(--cream-30);
    font-weight: 600;
}

/* Theme controls */
.theme-controls { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }

/* Heatmap */
.heatmap-stats { display: flex; flex-direction: column; gap: 8px; }
.heatmap-row {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem;
}
.heatmap-row > span:first-child { width: 120px; flex-shrink: 0; }
.heatmap-bar {
    flex: 1; height: 8px; background: var(--cream-08);
    border-radius: 4px; overflow: hidden;
}
.heatmap-fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold));
    transition: width 1s ease;
}
.heatmap-pct { font-size: 0.75rem; color: var(--cream-50); font-weight: 700; min-width: 35px; text-align: right; }

/* ---- TOAST ---- */
.admin-toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 10px 24px;
    background: var(--gold); color: #1a0f08;
    border-radius: 10px; font-size: 0.85rem; font-weight: 800;
    z-index: 10000; opacity: 0; pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 6px 24px rgba(212,160,83,0.3);
}
.admin-toast.show {
    opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .admin-nav { padding: 0 12px; }
    .admin-nav-title { font-size: 0.82rem; }
    .admin-back { display: none; }
    .admin-tabs { gap: 2px; padding: 8px 12px; }
    .admin-tab { padding: 6px 12px; font-size: 0.78rem; }
    .admin-content { padding: 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .server-grid { grid-template-columns: 1fr; }
    .experiments-grid { grid-template-columns: 1fr; }
    .console-output { height: 180px; font-size: 0.7rem; }
    .editor-actions { flex-direction: column; }
    .stat-value { font-size: 1.2rem; }
    .heatmap-row > span:first-child { width: 80px; font-size: 0.72rem; }
    .login-card { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .admin-user { display: none; }
}
