:root {
    --bg: #050816;
    --bg-card: #0f172a;
    --bg-card-soft: #111827;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.1);
    --accent-danger: #f97373;
    --accent-danger-soft: rgba(248, 113, 113, 0.12);
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at 0% 0%, #1d283a, var(--bg));
    color: var(--text);
}

/* Navbar */

.navbar {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(16px);
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.95),
        rgba(15, 23, 42, 0.75)
    );
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.brand-logo {
    font-size: 1.2rem;
}

.brand-text {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text);
}

/* Layout */

.page {
    max-width: 960px;
    margin: 1.75rem auto 3rem;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.25rem;
}

@media (max-width: 800px) {
    .page {
        grid-template-columns: 1fr;
    }
}

.card {
    background: radial-gradient(circle at top left, #0b1120, #020617);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.9);
    padding: 1.5rem 1.75rem;
}

.side-card {
    background: radial-gradient(circle at top, #020617, #020617);
    border-color: rgba(30, 64, 175, 0.6);
}

/* Typography */

h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

h2 {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.lead {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

p {
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

code {
    background: rgba(15, 23, 42, 0.9);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Hints */

.hint,
.small-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.small-hint {
    margin-top: 0.75rem;
}

.hint-list {
    padding-left: 1rem;
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hint-list li + li {
    margin-top: 0.25rem;
}

/* Status / badges */

.status-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: var(--text-muted);
}

.status-user {
    background: rgba(15, 23, 42, 0.8);
}

.status-admin {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

/* Forms */

.form {
    margin-top: 0.75rem;
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.btn.primary {
    background: linear-gradient(90deg, #38bdf8, #22c55e);
    border-color: transparent;
    color: #02131f;
    font-weight: 500;
}

.btn.full-width {
    width: 100%;
    margin-top: 0.25rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.6);
}

/* Alerts */

.alert {
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.alert-error {
    background: var(--accent-danger-soft);
    border: 1px solid var(--accent-danger);
    color: #fecaca;
}

/* Flag box */

.flag-box {
    margin-top: 0.75rem;
    padding: 0.9rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(56, 189, 248, 0.4);
    background: radial-gradient(circle at top left, #022c22, #020617);
}

.flag-pre {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    background: rgba(15, 23, 42, 0.9);
    padding: 0.5rem 0.6rem;
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
}

/* Footer */

.footer {
    max-width: 960px;
    margin: 0 auto 1.5rem;
    padding: 0 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: flex-end;
}
