:root {
    --bg: #080b11;
    --panel: rgba(18, 23, 34, .86);
    --panel-solid: #111722;
    --panel-soft: #151c29;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(65, 204, 255, .24);
    --text: #f1f6fb;
    --muted: #8d9aad;
    --cyan: #38c7ff;
    --cyan-2: #5de4dc;
    --blue: #2e78ff;
    --green: #43d39e;
    --amber: #f6bd52;
    --red: #ff667d;
    --radius: 16px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.5; overflow-x: hidden; }
a { color: var(--cyan); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
code, pre { font-family: "Cascadia Code", Consolas, monospace; }

.ambient { position: fixed; z-index: -2; width: 620px; height: 620px; border-radius: 50%; filter: blur(115px); opacity: .11; pointer-events: none; }
.ambient-one { background: #168cff; left: -260px; top: 5vh; }
.ambient-two { background: #30e0ca; right: -340px; bottom: -180px; }

.topbar { position: sticky; z-index: 50; top: 0; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 4vw; background: rgba(8, 11, 17, .84); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); letter-spacing: .04em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(56, 199, 255, .48); border-radius: 11px; background: linear-gradient(145deg, rgba(56,199,255,.2), rgba(46,120,255,.08)); color: var(--cyan); font-weight: 900; box-shadow: inset 0 0 22px rgba(56,199,255,.07), 0 0 25px rgba(56,199,255,.08); }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .28em; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav > a, .nav-logout button { display: inline-flex; min-height: 38px; align-items: center; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.topnav > a:hover, .topnav > a.active, .nav-logout button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.topnav > a.active { color: var(--cyan); }
.nav-logout { margin: 0; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 22px; cursor: pointer; }

.page-shell { width: min(1500px, 92vw); min-height: calc(100vh - 132px); margin: 0 auto; padding: 44px 0 72px; }
.footer { width: min(1500px, 92vw); min-height: 60px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: #667386; font-size: 12px; }
.eyebrow { display: block; margin-bottom: 9px; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .22em; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading h1 { margin: 0; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.045em; line-height: 1.08; }
.page-heading p { margin: 10px 0 0; color: var(--muted); }
.heading-actions, .hero-actions, .action-row { display: flex; align-items: center; gap: 10px; }

.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; background: linear-gradient(135deg, var(--cyan), #2595ff); color: #021018; font-weight: 800; font-size: 13px; cursor: pointer; box-shadow: 0 10px 30px rgba(56,199,255,.14); transition: transform .18s ease, filter .18s ease; }
.button:hover { color: #021018; filter: brightness(1.08); transform: translateY(-1px); }
.button-ghost { border-color: var(--line-strong); background: rgba(56,199,255,.06); color: var(--cyan); box-shadow: none; }
.button-ghost:hover { color: var(--cyan); }
.button-danger { border-color: rgba(255,102,125,.3); background: rgba(255,102,125,.1); color: var(--red); box-shadow: none; }
.button-danger:hover { color: var(--red); }
.button-small { min-height: 34px; padding: 0 12px; font-size: 12px; }
.button-full { width: 100%; }
.button:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }

.hero { min-height: 620px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 6vw; }
.hero-copy h1 { margin: 0; font-size: clamp(52px, 7vw, 94px); line-height: .96; letter-spacing: -.065em; }
.hero-copy h1 span { background: linear-gradient(90deg, var(--cyan), var(--cyan-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p { max-width: 650px; margin: 28px 0; color: var(--muted); font-size: 18px; }
.hero-visual { position: relative; width: min(470px, 40vw); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.core-logo { position: relative; z-index: 2; width: 160px; height: 160px; display: grid; place-content: center; text-align: center; border: 1px solid rgba(56,199,255,.4); border-radius: 38px; background: radial-gradient(circle at 30% 20%, rgba(56,199,255,.2), rgba(17,23,34,.92) 66%); box-shadow: 0 0 80px rgba(56,199,255,.18), inset 0 0 40px rgba(56,199,255,.08); transform: rotate(3deg); }
.core-logo span { color: var(--cyan); font-size: 56px; font-weight: 900; line-height: 1; }
.core-logo small { margin-top: 10px; color: var(--muted); letter-spacing: .3em; }
.orbit { position: absolute; border: 1px solid rgba(56,199,255,.18); border-radius: 50%; }
.orbit-a { inset: 9%; animation: spin 22s linear infinite; }
.orbit-b { inset: 22%; border-style: dashed; animation: spin 16s linear infinite reverse; }
.orbit-a:before, .orbit-b:before { content: ""; position: absolute; width: 9px; height: 9px; top: -5px; left: 50%; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.signal { position: absolute; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(8,11,17,.8); color: var(--muted); font-size: 9px; letter-spacing: .16em; }
.signal-one { top: 9%; left: 7%; }.signal-two { right: 0; top: 38%; }.signal-three { left: 2%; bottom: 18%; }
@keyframes spin { to { transform: rotate(360deg); } }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 0 50px; }
.feature-card, .panel, .table-card, .license-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.feature-card { padding: 28px; }
.feature-card h3 { margin: 20px 0 8px; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-number { color: var(--cyan); font: 700 11px/1 Consolas, monospace; }

.auth-wrap { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 30px 0; }
.auth-panel { width: min(460px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: rgba(17,23,34,.9); box-shadow: var(--shadow); }
.auth-panel-wide { width: min(660px, 100%); }
.auth-panel h1 { margin: 0; font-size: 40px; letter-spacing: -.04em; }
.auth-panel > p { color: var(--muted); }
.auth-foot { margin: 22px 0 0; text-align: center; font-size: 13px; }

.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.span-two { grid-column: span 2; }
label { display: flex; flex-direction: column; gap: 7px; color: #cbd5e1; font-size: 12px; font-weight: 700; }
label small { color: var(--muted); font-weight: 400; }
.check-option { min-height: 68px; flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(5,8,13,.45); cursor: pointer; }
.check-option input { flex: 0 0 auto; width: 18px; min-height: 18px; margin: 0; padding: 0; }
.check-option span strong, .check-option span small { display: block; }
.check-option span small { margin-top: 3px; }
input, select, textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: rgba(5,8,13,.68); color: var(--text); transition: border .18s, box-shadow .18s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(56,199,255,.55); box-shadow: 0 0 0 3px rgba(56,199,255,.08); }
input:disabled { opacity: .66; }
.file-picker { min-height: 88px; flex-direction: row; align-items: center; padding: 18px; border: 1px dashed rgba(56,199,255,.28); border-radius: 12px; background: rgba(56,199,255,.035); cursor: pointer; }
.file-picker input { width: auto; max-width: 45%; border: 0; background: transparent; padding: 0; }
.file-picker span strong, .file-picker span small { display: block; }

.alert { position: relative; margin-bottom: 18px; padding: 13px 42px 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-solid); font-size: 13px; }
.alert-success { border-color: rgba(67,211,158,.28); color: #91f0cb; }.alert-error { border-color: rgba(255,102,125,.28); color: #ff9dad; }.alert-warning { border-color: rgba(246,189,82,.28); color: #f7d997; }
.alert button { position: absolute; right: 12px; top: 9px; border: 0; background: transparent; color: inherit; font-size: 20px; cursor: pointer; }
.notice-panel { display: flex; flex-direction: column; gap: 4px; margin: 0 0 24px; padding: 18px 20px; border: 1px solid rgba(246,189,82,.25); border-radius: 12px; background: rgba(246,189,82,.06); color: #f7d997; }
.notice-panel span { color: var(--muted); font-size: 13px; }.notice-danger { border-color: rgba(255,102,125,.28); background: rgba(255,102,125,.06); color: #ff9dad; }

.section-block { margin-top: 34px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.section-title h2, .panel h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.section-title p, .muted { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.panel { padding: 24px; }
.form-panel { margin-bottom: 24px; }
.narrow-panel { max-width: 650px; }
.split-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }.split-layout.uneven { grid-template-columns: 1.5fr .75fr; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 13px; margin-bottom: 26px; }
.stat-grid article { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(21,28,41,.92), rgba(13,18,27,.86)); }
.stat-grid span { display: block; min-height: 38px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.stat-grid strong { display: block; margin: 6px 0 12px; font-size: 34px; line-height: 1; }
.stat-grid a { font-size: 11px; }

.license-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }.license-grid.large { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.license-card { padding: 24px; }
.license-top { display: flex; justify-content: space-between; align-items: center; }
.platform { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.license-card h3 { margin: 24px 0 6px; font-size: 21px; }.license-card > code { color: var(--cyan); font-size: 12px; }
.license-card dl, .detail-list { margin: 25px 0 0; }
.license-card dl div, .detail-list div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); font-size: 12px; } dd { margin: 0; text-align: right; font-size: 12px; overflow-wrap: anywhere; }

.badge { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.035); color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.badge-active, .badge-approved { border-color: rgba(67,211,158,.25); background: rgba(67,211,158,.07); color: var(--green); }
.badge-pending, .badge-grace { border-color: rgba(246,189,82,.26); background: rgba(246,189,82,.07); color: var(--amber); }
.badge-suspended, .badge-revoked, .badge-expired, .badge-disabled, .badge-denied, .badge-install_limit { border-color: rgba(255,102,125,.25); background: rgba(255,102,125,.07); color: var(--red); }

.download-list { display: flex; flex-direction: column; gap: 10px; }.download-list.full { gap: 13px; }
.download-row { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(17,23,34,.72); }
.file-icon { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--cyan); font: 800 10px/1 Consolas, monospace; }
.file-main { min-width: 0; flex: 1; }.file-main strong, .file-main span { display: block; }.file-main p { margin: 5px 0; color: #bec8d5; font-size: 13px; }.file-main span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.file-main > div { display: flex; align-items: center; gap: 8px; }.private-pill { display: inline-flex !important; width: auto; padding: 3px 6px; border-radius: 5px; background: rgba(56,199,255,.09); color: var(--cyan) !important; font-size: 8px !important; letter-spacing: .1em; }

.table-card { overflow: hidden; margin-top: 20px; }.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.02); }
tr:last-child td { border-bottom: 0; } td.right, th.right { text-align: right; }.wide-cell { max-width: 420px; }
.table-person { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }.table-person span:last-child strong, .table-person span:last-child small { display: block; }
.table-person small, .table-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.avatar { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: rgba(56,199,255,.09); color: var(--cyan); font-weight: 800; }.avatar-key { color: var(--cyan-2); background: rgba(93,228,220,.08); }
.link-action { border: 0; padding: 0; background: transparent; color: var(--cyan); font-size: 11px; cursor: pointer; white-space: nowrap; }.link-action.warning { color: var(--amber); }.link-action.success { color: var(--green); }
.inline-actions { display: flex; align-items: center; gap: 10px; }.inline-actions form { margin: 0; }
.badge-completed { border-color: rgba(67,211,158,.25); background: rgba(67,211,158,.07); color: var(--green); }
.badge-claimed, .badge-cloudflare, .badge-building, .badge-protecting, .badge-waf, .badge-publishing, .badge-retry { border-color: rgba(56,199,255,.25); background: rgba(56,199,255,.07); color: var(--cyan); }
.badge-failed, .badge-cancelled { border-color: rgba(255,102,125,.25); background: rgba(255,102,125,.07); color: var(--red); }
.search-bar { display: flex; align-items: center; gap: 10px; max-width: 620px; }.search-bar input { flex: 1; }

.mini-list { display: flex; flex-direction: column; }.mini-list > a, .mini-list.payments > div { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }.mini-list > a:last-child, .mini-list.payments > div:last-child { border-bottom: 0; }.mini-list > a > span:nth-child(2), .mini-list.payments > div > span:first-child { min-width: 0; flex: 1; }.mini-list strong, .mini-list small { display: block; }.mini-list small { color: var(--muted); font-size: 10px; }
.action-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.fixed-ports { display: flex; flex-wrap: wrap; gap: 10px; }
.fixed-ports span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 11px; }
.fixed-ports strong { margin-left: 5px; color: var(--text); }
.release-form { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.release-form input { min-width: 160px; min-height: 34px; padding: 6px 9px; }
.service-note { margin-top: 18px; }
.secret-panel { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; padding: 20px 22px; border: 1px solid rgba(56,199,255,.28); border-radius: 14px; background: linear-gradient(110deg, rgba(56,199,255,.09), rgba(21,28,41,.8)); }.secret-panel div > span, .secret-panel div > code, .secret-panel div > small { display: block; }.secret-panel div > span { color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: .15em; }.secret-panel code { margin: 6px 0; overflow-wrap: anywhere; }.secret-panel small { color: var(--muted); }

.tabs { margin-top: 20px; }.tab-buttons { display: flex; gap: 5px; margin-bottom: 18px; overflow-x: auto; }.tab-buttons button { min-height: 38px; padding: 0 13px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }.tab-buttons button.active { border-color: var(--line); background: var(--panel-soft); color: var(--cyan); }.tab-pane { display: none; }.tab-pane.active { display: block; }
.check-list { display: flex; flex-direction: column; margin: 22px 0; border: 1px solid var(--line); border-radius: 10px; }.check-list div { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }.check-list div:last-child { border-bottom: 0; }.check-list strong { margin-left: auto; font-size: 10px; }.check-dot { width: 8px; height: 8px; border-radius: 50%; }.check-dot.ok { background: var(--green); box-shadow: 0 0 10px rgba(67,211,158,.4); }.check-dot.bad { background: var(--red); }
.empty-state { padding: 42px 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; background: rgba(17,23,34,.38); }.empty-state.standalone { max-width: 750px; margin: 9vh auto; }.empty-state.compact { padding: 22px; }.empty-state h1, .empty-state h2, .empty-state h3 { margin: 0 0 8px; }.empty-state p { margin: 0 0 18px; color: var(--muted); }.empty-state.compact p { margin: 0; }.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid var(--line-strong); border-radius: 15px; color: var(--cyan); font-weight: 900; }
.copy-field { display: flex; align-items: stretch; margin: 20px 0; }.copy-field code { flex: 1; padding: 13px; border: 1px solid var(--line); border-radius: 9px 0 0 9px; background: #080c13; overflow-wrap: anywhere; }.copy-field button { border: 1px solid var(--line); border-left: 0; border-radius: 0 9px 9px 0; background: var(--panel-soft); color: var(--cyan); cursor: pointer; }.code-block, pre { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #080c13; overflow: auto; color: #bceaff; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }.api-doc { margin-top: 20px; }.api-doc h2:not(:first-child) { margin-top: 30px; }

@media (max-width: 1180px) { .stat-grid { grid-template-columns: repeat(3, 1fr); }.topnav > a, .nav-logout button { padding: 0 8px; } }
@media (max-width: 900px) {
    .topbar { padding: 0 20px; }.nav-toggle { display: block; }.topnav:not(.public-nav) { position: absolute; top: 71px; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #0d121b; box-shadow: var(--shadow); }.topnav.open { display: flex; }.topnav:not(.public-nav) > a, .topnav:not(.public-nav) .nav-logout button { width: 100%; justify-content: flex-start; }
    .hero { min-height: auto; grid-template-columns: 1fr; padding: 80px 0 40px; }.hero-visual { width: min(420px, 80vw); }.feature-grid, .split-layout, .split-layout.uneven { grid-template-columns: 1fr; }.form-grid.three { grid-template-columns: repeat(2, 1fr); }.stat-grid { grid-template-columns: repeat(2, 1fr); }.page-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
    .page-shell { width: min(94vw, 100%); padding-top: 28px; }.public-nav a:first-child { display: none; }.hero-copy h1 { font-size: 50px; }.hero-copy p { font-size: 15px; }.feature-grid, .form-grid.two, .form-grid.three, .stat-grid { grid-template-columns: 1fr; }.span-two { grid-column: auto; }.auth-panel { padding: 25px 20px; }.hero-visual { width: 92vw; }.download-row { align-items: flex-start; flex-wrap: wrap; }.download-row .button { width: 100%; }.footer { flex-direction: column; justify-content: center; gap: 4px; }.secret-panel { align-items: flex-start; flex-direction: column; }.secret-panel .button { width: 100%; }.heading-actions { width: 100%; flex-wrap: wrap; }.release-form { align-items: stretch; flex-direction: column; }.release-form input, .release-form .button { width: 100%; }
}
