:root {
    --bg: #0b0d12;
    --panel: #121620;
    --panel-2: #181d29;
    --line: #252b39;
    --text: #f6f7fb;
    --muted: #9ba6b8;
    --accent: #7c5cff;
    --accent-2: #45d4ff;
    --success: #42d392;
    --danger: #ff6978;
    --warning: #f4bd50;
    --radius: 18px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at top, #151a2a 0, var(--bg) 42rem); color: var(--text); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11,13,18,.82); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; box-shadow: 0 10px 30px rgba(124,92,255,.35); }
nav { display: flex; align-items: center; gap: 18px; color: #c8cede; font-size: 14px; }
nav a:hover { color: white; }
.nav-button, .button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 700; cursor: pointer; background: linear-gradient(135deg, var(--accent), #6548e8); color: white; box-shadow: 0 10px 28px rgba(124,92,255,.2); }
.button.secondary, .nav-button { background: var(--panel-2); box-shadow: none; border: 1px solid var(--line); }
.button.danger { background: #56262d; box-shadow: none; }
.button.small { padding: 8px 11px; border-radius: 9px; font-size: 12px; }
.button.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; }
.hero { padding: 100px 0 72px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 48px; }
.eyebrow { display: inline-flex; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(124,92,255,.45); background: rgba(124,92,255,.12); color: #c8bfff; font-size: 13px; font-weight: 750; }
h1 { font-size: clamp(44px, 7vw, 78px); line-height: .98; letter-spacing: -.055em; margin: 18px 0 22px; }
h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 14px; letter-spacing: -.03em; }
h3 { margin: 0 0 10px; }
p { color: var(--muted); line-height: 1.65; }
.hero-actions, .action-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card, .card { background: linear-gradient(180deg, rgba(24,29,41,.95), rgba(17,21,30,.95)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.hero-card { padding: 26px; }
.card { padding: 24px; }
.status-line { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.status-line:last-child { border-bottom: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 16px var(--success); }
.section { padding: 48px 0 80px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(124,92,255,.14); color: #c8bfff; margin-bottom: 18px; font-weight: 900; }
.page-head { padding: 64px 0 28px; }
.auth-wrap { width: min(480px, calc(100% - 32px)); margin: 70px auto; }
label { display: block; font-size: 13px; font-weight: 700; color: #cbd2df; margin: 0 0 8px; }
input, select, textarea { width: 100%; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--line); background: #0f131b; color: white; outline: none; font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.14); }
textarea { min-height: 110px; resize: vertical; }
.form-group { margin-bottom: 17px; }
.form-help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.form-error { color: #ff9ca6; background: rgba(255,105,120,.1); border: 1px solid rgba(255,105,120,.25); border-radius: 10px; padding: 11px 13px; margin-bottom: 16px; }
.flash { margin-top: 22px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); }
.flash-success { background: rgba(66,211,146,.1); border-color: rgba(66,211,146,.3); }
.flash-error { background: rgba(255,105,120,.1); border-color: rgba(255,105,120,.3); }
.price { font-size: 46px; font-weight: 850; letter-spacing: -.045em; margin: 14px 0 6px; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.check-list { list-style: none; padding: 0; margin: 22px 0; }
.check-list li { padding: 9px 0 9px 28px; position: relative; color: #d4dae5; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 80px; }
.license-box { background: #0d1017; border: 1px dashed #3b4354; border-radius: 13px; padding: 16px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .09em; display: flex; align-items: center; justify-content: space-between; gap: 12px; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #252b39; }
.badge-active, .badge-trialing { background: rgba(66,211,146,.15); color: #82efb8; }
.badge-inactive, .badge-canceled, .badge-revoked, .badge-unpaid { background: rgba(255,105,120,.13); color: #ff98a2; }
.badge-past_due { background: rgba(244,189,80,.14); color: #ffd782; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 20px; }
.admin-tabs a { padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; color: #c8cede; }
.admin-tabs a.active { background: var(--panel-2); color: white; border-color: #3a4253; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 13px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #9fa9ba; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.inline-form { display: inline-flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; min-width: 120px; padding: 8px 9px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { padding: 20px; }
.stat strong { display: block; font-size: 30px; letter-spacing: -.04em; }
.muted { color: var(--muted); }
.code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: #0d1017; border: 1px solid var(--line); padding: 12px; border-radius: 10px; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; margin-top: 40px; }
.footer-row { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
@media (max-width: 820px) {
    .hero, .grid-3, .grid-2, .account-grid, .stat-grid { grid-template-columns: 1fr; }
    nav { gap: 10px; }
    nav a:not(.nav-button) { display: none; }
    .hero { padding-top: 65px; }
}

.payment-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; padding-bottom: 80px; }
.pay-amount { padding: 24px 0; display: grid; gap: 8px; }
.pay-amount span { color: var(--muted); font-weight: 700; }
.pay-amount strong { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.04em; overflow-wrap: anywhere; }
.notice { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(69,212,255,.25); background: rgba(69,212,255,.08); color: #c9eefa; line-height: 1.55; margin-top: 14px; }
.notice.warning { border-color: rgba(244,189,80,.32); background: rgba(244,189,80,.09); color: #ffe1a0; }
.checking-line { display: flex; align-items: center; gap: 10px; padding: 18px 0; color: #d6dbea; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--accent-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.split-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.toggle-line { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
details { border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 800; color: #d8deea; }
.details-body { padding: 4px 16px 16px; }
.text-link { color: #bdb4ff; text-decoration: underline; text-underline-offset: 3px; }
.badge-paid { background: rgba(66,211,146,.15); color: #82efb8; }
.badge-pending { background: rgba(69,212,255,.13); color: #86e4ff; }
.badge-confirming { background: rgba(244,189,80,.14); color: #ffd782; }
.badge-expired, .badge-canceled { background: rgba(255,105,120,.13); color: #ff98a2; }
@media (max-width: 820px) { .payment-grid { grid-template-columns: 1fr; } }
