:root {
    color-scheme: dark;
    font-family: Inter, "Segoe UI", sans-serif;
    background: #08111f;
    color: #e8eef8;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #132644, #08111f 55%); }
.site-header { min-height: 68px; padding: 0 28px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid #24344e; background: #091322e8; }
.brand { color: #f8fbff; text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.brand span { color: #7dd3fc; margin-left: 8px; font-weight: 600; }
.main-nav { display: flex; gap: 18px; margin-right: auto; }
.main-nav a, td a, .form-actions a, .table-actions a { color: #7dd3fc; text-decoration: none; }
.session { display: flex; align-items: center; gap: 18px; color: #aebdd3; }
.session form { margin: 0; }
.link-button { border: 0; padding: 0; background: transparent; color: #7dd3fc; }
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 48px auto; }
.auth-card, .content-card { width: min(480px, 100%); margin: 0 auto; padding: 32px; border: 1px solid #2a3d5d; border-radius: 18px; background: #0e1b2ee8; box-shadow: 0 24px 70px #0008; }
.auth-card.wide { width: min(720px, 100%); }
.wide-card { width: 100%; }
.form-card { width: min(760px, 100%); }
.eyebrow { margin: 0 0 8px; color: #38bdf8; font-size: .75rem; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: 1rem; }
p { color: #aebdd3; line-height: 1.6; }
.form-stack { display: grid; gap: 10px; margin-top: 24px; }
label { color: #dbe7f7; font-size: .88rem; font-weight: 650; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid #344968; border-radius: 9px; background: #081321; color: #fff; font: inherit; }
textarea { resize: vertical; }
button, .primary-link { display: inline-flex; justify-content: center; padding: 12px 16px; border: 0; border-radius: 9px; background: #0284c7; color: #fff; text-decoration: none; font-weight: 750; cursor: pointer; }
.validation { color: #fda4af; font-size: .85rem; }
.validation:empty { display: none; }
.mfa-grid { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: center; margin: 24px 0; }
.qr-code { padding: 12px; border-radius: 10px; background: #fff; }
.qr-code svg { display: block; width: 100%; height: auto; }
.manual-key { display: block; padding: 12px; overflow-wrap: anywhere; color: #bae6fd; background: #081321; border-radius: 8px; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 24px 0; }
.recovery-codes code { padding: 10px; text-align: center; background: #081321; border-radius: 7px; color: #bae6fd; }
.notice { margin: 0 0 18px; padding: 13px 16px; border: 1px solid; border-radius: 10px; }
.notice.success { color: #bbf7d0; border-color: #166534; background: #052e20; }
.notice.error { color: #fecaca; border-color: #991b1b; background: #450a0a; }
.page-heading, .section-heading, .card-heading, .danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-heading { margin-bottom: 28px; }
.page-heading h1, .section-heading h2 { margin-bottom: 4px; }
.button-row, .form-actions, .table-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.secondary-link { display: inline-flex; padding: 11px 15px; border: 1px solid #385173; border-radius: 9px; color: #bae6fd; text-decoration: none; }
.action-grid, .summary-grid, .subscription-grid { display: grid; gap: 16px; }
.action-grid { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
.action-card { padding: 22px; border: 1px solid #2a496f; border-radius: 14px; color: #eef7ff; text-decoration: none; background: #0a2038; }
.action-card strong, .action-card span { display: block; }
.action-card span { margin-top: 8px; color: #9fb3cb; }
.summary-grid { grid-template-columns: repeat(3, 1fr); margin: 28px 0; }
.summary-grid article { padding: 18px; border: 1px solid #263b59; border-radius: 12px; background: #091728; }
.summary-grid span, .summary-grid strong, .summary-grid small { display: block; }
.summary-grid span, dt { color: #91a8c2; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.summary-grid strong { margin-top: 8px; }
.summary-grid small { margin-top: 6px; color: #9fb3cb; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid #263752; text-align: left; vertical-align: middle; }
th { color: #91a8c2; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; }
td { color: #dbe7f7; }
td code { color: #bae6fd; }
.status { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #263752; color: #dbeafe; font-size: .76rem; }
.status.active, .status.published { color: #bbf7d0; background: #14532d; }
.status.suspended, .status.retired, .status.expired, .status.revoked { color: #fecaca; background: #7f1d1d; }
.status.trial, .status.draft, .status.graceperiod, .status.pending { color: #fde68a; background: #713f12; }
.empty-state { padding: 30px; border: 1px dashed #36506f; border-radius: 12px; text-align: center; color: #9fb3cb; }
fieldset { display: grid; gap: 10px; margin: 12px 0; padding: 18px; border: 1px solid #2d4362; border-radius: 12px; }
legend { padding: 0 8px; color: #bae6fd; font-weight: 700; }
.two-column { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.two-column > div { display: grid; gap: 8px; }
.subscription-grid { grid-template-columns: repeat(2, 1fr); }
.subscription-card { padding: 20px; border: 1px solid #2a3d5d; border-radius: 14px; background: #091728; }
.card-heading strong, .card-heading small { display: block; }
.card-heading small { margin-top: 4px; color: #91a8c2; }
dl { display: grid; gap: 10px; }
dl div { display: flex; justify-content: space-between; gap: 14px; }
dd { margin: 0; text-align: right; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin-top: 18px; padding-top: 18px; border-top: 1px solid #263752; }
.inline-form label { grid-column: 1 / -1; }
.inline-form input { min-width: 0; }
.danger-zone { margin-top: 32px; padding: 20px; border: 1px solid #7f1d1d; border-radius: 12px; background: #2b0c12; }
.danger-zone p { margin: 4px 0 0; }
.danger-button { background: #b91c1c; }
.danger-text { color: #fda4af; }
.table-actions form { margin: 0; }
.subscription-actions { margin: 14px 0; }
.subscription-actions form { margin: 0; }
@media (max-width: 760px) { .site-header { flex-wrap: wrap; padding-block: 14px; } .main-nav { order: 3; width: 100%; } .page-heading, .danger-zone { align-items: flex-start; flex-direction: column; } .mfa-grid, .two-column, .action-grid, .summary-grid, .subscription-grid { grid-template-columns: 1fr; } .qr-code { max-width: 220px; } .recovery-codes { grid-template-columns: 1fr; } }
