:root {
    --bg: #110f18;
    --panel: #1b1626;
    --panel-2: #251d34;
    --text: #f4edf8;
    --muted: #b9adc5;
    --brand: #b778ff;
    --brand-2: #e0b36f;
    --border: rgba(255,255,255,0.12);
    --danger: #ff6b6b;
    --success: #72d486;
    --warning: #f0c86c;
    --shadow: 0 18px 50px rgba(0,0,0,0.35);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(183,120,255,0.20), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(224,179,111,0.16), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: var(--brand-2);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(17, 15, 24, 0.82);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 1.1rem;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #130f18;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    background: rgba(255,255,255,0.08);
    text-decoration: none;
}

.main-nav .nav-button {
    color: #130f18;
    background: var(--brand-2);
    font-weight: 700;
}

.main-nav .nav-button:hover {
    background: #f2c881;
    color: #130f18;
}

.main-content {
    padding: 48px 0 64px;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
}

.panel,
.hero-card,
.form-card,
.table-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035));
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 24px 0;
}

.eyebrow {
    color: var(--brand-2);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

h1,
h2,
h3 {
    line-height: 1.1;
    margin: 0 0 16px;
}

h1 {
    font-size: clamp(2.3rem, 6vw, 4.8rem);
    letter-spacing: -0.05em;
}

h2 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 16px;
}

.lead {
    color: var(--muted);
    font-size: 1.15rem;
    max-width: 64ch;
}

.hero-actions,
.actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #130f18;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.95rem;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background: #c997ff;
    text-decoration: none;
}

.button.secondary {
    background: rgba(255,255,255,0.09);
    color: var(--text);
    border: 1px solid var(--border);
}

.button.secondary:hover {
    background: rgba(255,255,255,0.14);
}

.hero-card {
    padding: 26px;
}

.stat-grid {
    display: grid;
    gap: 14px;
}

.stat {
    padding: 18px;
    border-radius: 18px;
    background: rgba(0,0,0,0.20);
    border: 1px solid var(--border);
}

.stat strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
}

.stat span {
    color: var(--muted);
    font-size: 0.92rem;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255,255,255,0.055);
    border: 1px solid var(--border);
}

.card p:last-child {
    margin-bottom: 0;
}

.form-card {
    max-width: 720px;
    padding: 26px;
}

label {
    display: block;
    margin: 0 0 6px;
    color: var(--muted);
    font-weight: 650;
}

input,
textarea,
select {
    width: 100%;
    min-height: 42px;
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.25);
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.help {
    color: var(--muted);
    font-size: 0.92rem;
}

.notice {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.07);
}

.notice.error {
    border-color: rgba(255,107,107,0.5);
    color: #ffd1d1;
}

.notice.success {
    border-color: rgba(114,212,134,0.5);
    color: #d8ffe0;
}

.table-card {
    padding: 0;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

tr:last-child td {
    border-bottom: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.badge.good {
    background: rgba(114,212,134,0.15);
    color: #a6f0b4;
}

.badge.warn {
    background: rgba(240,200,108,0.15);
    color: #f7d98e;
}

.badge.bad {
    background: rgba(255,107,107,0.15);
    color: #ffb0b0;
}

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    padding: 26px 0;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 780px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .grid.two,
    .grid.three {
        grid-template-columns: 1fr;
    }

    th,
    td {
        padding: 12px;
    }
}
.grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 0;
    width: 38px;
    min-height: 42px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    font-size: 1rem;
}

.password-toggle:hover {
    background: rgba(255,255,255,0.15);
}

@media (max-width: 900px) {
    .grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .grid.four {
        grid-template-columns: 1fr;
    }
}
select {
    background-color: #120f19;
    color: var(--text);
}

select option {
    background-color: #120f19;
    color: #f4edf8;
}

select option:checked,
select option:hover {
    background-color: #2b2140;
    color: #ffffff;
}