:root {
    --bg: #0d1117;
    --panel: #151b23;
    --panel-2: #1b2430;
    --text: #f2f5f7;
    --muted: #9da8b5;
    --border: #2a3442;
    --green: #6ee7a8;
    --green-dark: #1f8f5f;
    --yellow: #f7c948;
    --red: #ff6b6b;
    --blue: #7cc4ff;
    --shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, rgba(110, 231, 168, .10), transparent 35%), var(--bg);
    color: var(--text);
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    background: rgba(11, 15, 20, .92);
    border-right: 1px solid var(--border);
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
}
.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--green), #9fffc8);
    color: #07100b;
    border-radius: 15px;
    font-size: 24px;
}
.brand strong { display: block; }
.brand span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.sidebar nav { display: grid; gap: 8px; }
.sidebar nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--text);
    background: transparent;
}
.sidebar nav a:hover {
    background: var(--panel-2);
    text-decoration: none;
}

.main-content {
    padding: 34px;
    max-width: 1300px;
    width: 100%;
}
.main-content-auth {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    max-width: none;
    min-height: 100vh;
}

.panel, .hero-card, .stat-card {
    background: rgba(21, 27, 35, .92);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.panel { padding: 24px; margin-bottom: 22px; }

h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; }
h1 { font-size: clamp(30px, 4vw, 48px); }
h2 { font-size: 22px; }
p { color: var(--muted); line-height: 1.6; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    color: var(--green);
    margin: 0 0 8px;
    font-weight: 700;
}
.muted { color: var(--muted); }

.button, button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--text);
    padding: 11px 16px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    min-height: 44px;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--green), #9fffc8);
    color: #07100b;
}
.button.ghost { background: transparent; }
.button.danger { color: #fff; border-color: rgba(255, 107, 107, .45); background: rgba(255, 107, 107, .12); }
.full { width: 100%; }

.section-title {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.flash, .alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
.flash-success, .alert-success { background: rgba(110, 231, 168, .12); border-color: rgba(110, 231, 168, .35); }
.flash-error, .alert-error { background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .35); }
.alert-info { background: rgba(124, 196, 255, .12); border-color: rgba(124, 196, 255, .35); }

code {
    background: #0b0f14;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2px 6px;
}

@media (max-width: 900px) {
    .app-shell { display: block; }
    .sidebar {
        position: static;
        height: auto;
        padding: 16px;
    }
    .sidebar nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .sidebar nav a { white-space: nowrap; }
    .main-content { padding: 18px; }
    .section-title { display: block; }
}
