:root {
    --bg: #071013;
    --panel: #101b1f;
    --panel-2: #13282d;
    --ink: #f3f7ed;
    --muted: #9bb0aa;
    --line: #254147;
    --acid: #c5ff47;
    --coral: #ff6d4d;
    --cyan: #39d6d3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(57, 214, 211, .16), transparent 28rem),
        linear-gradient(135deg, #071013 0%, #0a1517 48%, #111c19 100%);
    font-family: "Trebuchet MS", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
.topbar {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 72px);
    border-bottom: 1px solid var(--line);
    background: rgba(7, 16, 19, .82);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 20;
}
.brand { display: flex; gap: 12px; align-items: center; font-size: 18px; }
.brand-mark {
    color: #071013;
    background: var(--acid);
    border-radius: 3px;
    padding: 4px 8px;
    font-weight: 900;
    letter-spacing: 0;
}
nav { display: flex; gap: 18px; align-items: center; color: var(--muted); }
.nav-primary { color: var(--acid); }
main { padding: 0 clamp(18px, 5vw, 72px) 56px; }
.hero {
    min-height: calc(100vh - 124px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 42px;
    align-items: center;
    padding: 54px 0;
}
.eyebrow { color: var(--acid); text-transform: uppercase; font-size: 13px; font-weight: 800; margin: 0 0 12px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; }
h1 { font-size: clamp(42px, 7vw, 92px); max-width: 920px; }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: 24px; }
.hero-copy { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.button, button {
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--ink);
    padding: 12px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
}
.button.primary, button { background: var(--acid); color: #071013; border-color: var(--acid); }
.button.ghost { background: transparent; }
.signal-panel {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(16, 27, 31, .94), rgba(12, 25, 26, .76));
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.signal-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}
.signal-row span { color: var(--coral); font-weight: 900; }
.signal-meter { height: 16px; background: #071013; margin-top: 26px; overflow: hidden; border-radius: 4px; }
.signal-meter i { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--acid)); }
.section, .data-section { margin-top: 34px; }
.section-head, .dashboard-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}
.plan-card p { color: var(--muted); line-height: 1.7; }
.plan-type { color: var(--cyan); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.plan-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-bottom strong { font-size: 30px; color: var(--acid); }
.auth-wrap, .pay-shell { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 42px 0; }
.auth-card, .pay-card {
    width: min(460px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
}
label { display: grid; gap: 8px; margin: 16px 0; color: var(--muted); }
input {
    width: 100%;
    border: 1px solid var(--line);
    background: #071013;
    color: var(--ink);
    border-radius: 5px;
    padding: 13px 14px;
    font-size: 16px;
}
.wide { width: 100%; margin-top: 8px; }
.alert { background: rgba(255, 109, 77, .14); color: #ffc3b6; border: 1px solid rgba(255,109,77,.4); padding: 12px; border-radius: 5px; margin: 16px 0; }
.muted { color: var(--muted); }
.success-text { color: var(--acid); font-weight: 800; }
.form-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.form-links a {
    color: var(--cyan);
    font-weight: 800;
}
.wide-link {
    display: block;
    text-align: center;
}
.empty-card {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    border-radius: 8px;
    padding: 24px;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line); }
th { color: var(--acid); font-size: 13px; text-transform: uppercase; }
code { color: var(--cyan); }
.status { padding: 4px 8px; border-radius: 4px; background: #22353a; color: var(--muted); font-weight: 800; }
.status.paid, .status.used { background: rgba(197,255,71,.14); color: var(--acid); }
.status.pending { background: rgba(255,109,77,.14); color: #ffc3b6; }
.empty { text-align: center; color: var(--muted); }
dl div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 20px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 800; }
.footer {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
    padding: 24px clamp(18px, 5vw, 72px);
    border-top: 1px solid var(--line);
}

@media (max-width: 880px) {
    .topbar { height: auto; padding-top: 16px; padding-bottom: 16px; gap: 16px; align-items: flex-start; flex-direction: column; }
    .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 34px; }
    .plan-grid { grid-template-columns: 1fr; }
    .section-head, .dashboard-head { align-items: flex-start; flex-direction: column; }
}
