:root {
    --bg: #08111f;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.88);
    --text: #e5eefc;
    --muted: #96a8c6;
    --line: rgba(148, 163, 184, 0.18);
    --primary: #60a5fa;
    --success: #34d399;
    --danger: #fb7185;
    --secondary: #94a3b8;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 30%),
        radial-gradient(circle at right, rgba(52, 211, 153, 0.12), transparent 25%),
        linear-gradient(180deg, #07101c, #0b1220 45%, #0a1020 100%);
    min-height: 100vh;
}

.bg-orb {
    position: fixed;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
}

.orb-1 {
    top: -80px;
    left: -80px;
    background: #3b82f6;
}

.orb-2 {
    bottom: -100px;
    right: -60px;
    background: #10b981;
}

.topbar,
.container {
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 34px;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    background: rgba(8, 17, 31, 0.42);
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.brand-badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    box-shadow: var(--shadow);
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 800;
}

.brand-subtitle {
    font-size: 0.86rem;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px;
}

.center-wrap {
    min-height: calc(100vh - 140px);
    display: grid;
    place-items: center;
}

.glass-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: 24px;
}

.auth-card {
    width: min(100%, 460px);
    padding: 34px;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 24px;
}

.section-kicker {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 8px;
}

h1,
h2 {
    margin: 0 0 10px;
}

.muted {
    color: var(--muted);
    line-height: 1.65;
}

.grid {
    display: grid;
    gap: 22px;
    margin-bottom: 22px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

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

.pill {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
}

.pill-success {
    background: rgba(16, 185, 129, 0.14);
    color: #9ff0cf;
}

.pill-danger {
    background: rgba(244, 63, 94, 0.14);
    color: #ffc1cb;
}

.stats {
    display: grid;
    gap: 14px;
}

.stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 6px;
}

.stat strong {
    display: block;
    line-height: 1.5;
    word-break: break-word;
}

.action-row,
.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-stack {
    display: grid;
    gap: 8px;
}

label {
    font-weight: 700;
    font-size: 0.94rem;
}

input {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.58);
    color: var(--text);
    padding: 14px 16px;
    border-radius: 16px;
    outline: none;
    transition: 0.18s ease;
}

input:focus {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-line input {
    width: auto;
    margin: 0;
}

.btn {
    border: 0;
    color: white;
    padding: 12px 16px;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.14s ease, opacity 0.14s ease;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.btn-danger {
    background: linear-gradient(135deg, #fb7185, #e11d48);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569);
}

.console {
    min-height: 420px;
    max-height: 420px;
    overflow: auto;
    border-radius: 20px;
    padding: 18px;
    background: #020617;
    border: 1px solid var(--line);
    color: #dbeafe;
    line-height: 1.55;
    white-space: pre-wrap;
    margin: 0 0 16px;
    font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
    font-size: 13px;
}

.command-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

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

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

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

th {
    color: var(--muted);
    font-size: 0.88rem;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.flash {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.flash-success {
    background: rgba(16, 185, 129, 0.12);
}

.flash-error {
    background: rgba(244, 63, 94, 0.12);
}

@media (max-width: 720px) {
    .topbar {
        padding: 18px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .container {
        padding: 18px;
    }

    .command-bar {
        grid-template-columns: 1fr;
    }
}