:root {
    color-scheme: dark;
    --bg: #090b12;
    --panel: #121620;
    --border: #252a38;
    --accent: #7467f5;
    --muted: #9099ad;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: #f4f5fa;
    font-family: Inter, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
}
.brand {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -3px;
}
.brand span { color: var(--accent); }
.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--muted);
}
aside {
    position: fixed;
    inset: 0 auto 0 0;
    width: 230px;
    padding: 30px 22px;
    border-right: 1px solid var(--border);
    background: #0d1019;
    display: flex;
    flex-direction: column;
}
nav { margin-top: 45px; flex: 1; }
nav a {
    display: block;
    color: var(--muted);
    padding: 13px 16px;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 6px;
}
nav a:hover, nav a.active {
    background: #22203c;
    color: #b4aaff;
}
main {
    margin-left: 230px;
    padding: 35px;
    max-width: 1700px;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}
h1 { font-size: 32px; margin: 10px 0; }
h2 { font-size: 18px; margin: 0 0 15px; }
p, small, .muted { color: var(--muted); }
section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 24px;
    margin-bottom: 22px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stats h2 { font-size: 36px; margin: 12px 0 0; }
.columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
}
input, textarea {
    display: block;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #090c14;
    color: white;
    padding: 13px;
    font: inherit;
    margin: 8px 0 18px;
}
textarea { resize: vertical; }
input:focus, textarea:focus {
    outline: 2px solid var(--accent);
}
button {
    background: var(--accent);
    border: 0;
    border-radius: 8px;
    color: white;
    padding: 13px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
button:hover { filter: brightness(1.15); }
.secondary {
    background: #202534;
    width: 100%;
    margin-top: 12px;
}
.status {
    padding: 9px 14px;
    background: #292235;
    color: #b9a4f0;
    border-radius: 8px;
    font-size: 12px;
}
.provider, .history-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}
.provider {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    gap: 10px;
}
.history-item span {
    float: right;
    color: var(--muted);
    font-size: 12px;
}
.history-item p { overflow-wrap: anywhere; }
footer { color: var(--muted); font-size: 12px; }
.login-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}
.login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px;
}
.login-card button { width: 100%; }
.login-card small {
    display: block;
    text-align: center;
    margin-top: 25px;
}
label { font-size: 13px; }
.error { color: #ff8181; }
@media (max-width: 850px) {
    aside { position: relative; width: 100%; }
    nav { display: flex; flex-wrap: wrap; margin-top: 18px; }
    main { margin: 0; padding: 20px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .columns { grid-template-columns: 1fr; }
}
