:root {
    --bg: #0c0f18;
    --panel: #151a26;
    --glass: rgba(255, 255, 255, 0.06);
    --primary: #e60000;
    --text: #e5e9f0;
    --muted: #8b92a6;
    --border: #1e2433;
    --accent: #4dd0e1;
}

* { box-sizing: border-box; }

body.page {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 10% 20%, rgba(230, 0, 0, 0.15), transparent 25%), radial-gradient(circle at 80% 0%, rgba(77, 208, 225, 0.18), transparent 30%), var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(12, 15, 24, 0.75);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 5;
}

.brand { font-weight: 700; letter-spacing: 0.5px; }

.nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-link {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-link.active, .nav-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.user-chip {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-name { font-weight: 600; }
.user-guild { color: var(--muted); font-size: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.ghost-btn, .primary-btn {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }
.ghost-btn.danger { border-color: #e57373; color: #ff8a80; }

.primary-btn {
    background: linear-gradient(120deg, var(--primary), #ff2f4c);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(230, 0, 0, 0.35);
}

.content {
    padding: 20px;
    display: grid;
    gap: 16px;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.card.glass {
    background: var(--glass);
}

.card.full { grid-column: 1 / -1; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    color: var(--muted);
    margin: 0 0 4px 0;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }

input, textarea {
    width: 100%;
    background: #0f1420;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    color: var(--text);
    margin-bottom: 8px;
}

label { display: block; font-size: 13px; margin: 8px 0 4px; color: var(--muted); }

form { display: flex; flex-direction: column; gap: 4px; }

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.stacked { padding: 10px; background: #0f1420; border: 1px solid var(--border); border-radius: 12px; }

.log-stream {
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: "SFMono-Regular", "Consolas", monospace;
}

.log-entry {
    padding: 10px;
    border-radius: 10px;
    background: #0f1420;
    border: 1px solid var(--border);
}

.log-entry.info { border-color: var(--accent); }
.log-entry.warning { border-color: #ffb74d; }
.log-entry.error { border-color: #ef5350; }
.log-entry.system { border-color: #e60000; }

.hero {
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: center;
}

.bullets { list-style: none; padding-left: 0; color: var(--muted); }
.bullets li { margin-bottom: 6px; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .nav { max-width: 100%; overflow-x: auto; }
    .panel-grid { grid-template-columns: 1fr; }
}
