:root {
    --bg: #0b1324;
    --bg-soft: #111b31;
    --panel: rgba(255,255,255,0.06);
    --panel-border: rgba(255,255,255,0.10);
    --text: #eef4ff;
    --muted: #9fb3cf;
    --accent: #7c5cff;
    --accent-2: #245dd8;
    --success: #1f9d68;
    --warning: #c88916;
    --danger: #b84a62;
    --input: rgba(255,255,255,0.05);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(124,92,255,0.18), transparent 24%),
        radial-gradient(circle at top right, rgba(31,157,104,0.10), transparent 22%),
        linear-gradient(180deg, #09101d 0%, #0f1830 100%);
    color: var(--text);
}

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

.admin-shell {
    min-height: 100vh;
    padding: 24px;
}

.admin-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.brand h1 {
    margin: 0;
    font-size: 28px;
}

.brand p {
    margin: 6px 0 0 0;
    color: var(--muted);
}

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

.card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 22px;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 22px;
}

.stack {
    display: grid;
    gap: 22px;
}

.flash {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--panel-border);
}

.flash-error {
    background: rgba(184,74,98,0.18);
}

.flash-success {
    background: rgba(31,157,104,0.18);
}

.flash-warning {
    background: rgba(200,137,22,0.18);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--panel-border);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.muted {
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success {
    background: rgba(31,157,104,0.18);
    color: #dff8ec;
}

.badge-warning {
    background: rgba(200,137,22,0.18);
    color: #fff0cf;
}

.badge-neutral {
    background: rgba(124,92,255,0.16);
    color: #ece6ff;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

label {
    font-size: 14px;
    font-weight: 700;
}

input, select, textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--panel-border);
    background: var(--input);
    color: var(--text);
    font-size: 15px;
}

textarea {
    min-height: 120px;
    resize: vertical;
    font-family: Arial, sans-serif;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
}

.btn-secondary {
    background: var(--accent-2);
}

.btn-success {
    background: var(--success);
}

.btn-warning {
    background: var(--warning);
}

.btn-danger {
    background: var(--danger);
}

.btn-neutral {
    background: #4e6a8a;
}

.section-title {
    margin: 0 0 14px 0;
    font-size: 22px;
}

.subtext {
    margin: 0 0 16px 0;
    color: var(--muted);
    line-height: 1.6;
}

.inline-form {
    display: inline;
}

.user-row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.small {
    font-size: 13px;
}

@media (max-width: 980px) {
    .grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
