:root {
    --bg: #080914;
    --panel: #111426;
    --panel-2: #171b31;
    --text: #f7f7fb;
    --muted: #b8bdd5;
    --brand: #6c5ce7;
    --accent: #00cec9;
    --line: rgba(255,255,255,.12);
    --shadow: 0 24px 70px rgba(0,0,0,.35);
    --radius: 24px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(108,92,231,.45), transparent 35%),
        radial-gradient(circle at 90% 15%, rgba(0,206,201,.25), transparent 28%),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.site-header,
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.site-header { padding: 24px 0; }
.site-footer { padding: 34px 0 48px; color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 14px;
    display: inline-grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: white; font-weight: 900;
}
nav, .footer-links { display: flex; align-items: center; gap: 18px; color: var(--muted); }
nav a:hover, .footer-links a:hover { color: var(--text); }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: center; padding: 64px 0 50px; }
.hero-copy h1, .page-hero h1 { font-size: clamp(44px, 7vw, 82px); line-height: .92; letter-spacing: -.06em; margin: 10px 0 24px; }
.lead { font-size: clamp(18px, 2vw, 23px); line-height: 1.55; color: var(--muted); max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-weight: 800; font-size: 12px; }
.button, button.button {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; cursor: pointer; border-radius: 999px; padding: 14px 22px;
    background: linear-gradient(135deg, var(--brand), #8f7dff);
    color: white; font-weight: 800; box-shadow: 0 10px 30px rgba(108,92,231,.35);
}
.button.small { padding: 9px 14px; font-size: 14px; }
.button.ghost, button.ghost { background: rgba(255,255,255,.08); box-shadow: none; border: 1px solid var(--line); }
.hero-actions, .action-row, .preset-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.fineprint, .muted { color: var(--muted); }
.fineprint { font-size: 13px; }
.panel, .feature-card, .price-card, .hero-card {
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.preview-card { padding: 34px; min-height: 440px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.preview-card h3 { font-size: 36px; line-height: 1; margin: 26px 0 8px; }
.mini-circle { position: relative; min-height: 260px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.2); }
.mini-circle span { position: absolute; background: rgba(255,255,255,.12); border: 1px solid var(--line); padding: 10px 12px; border-radius: 999px; font-weight: 800; }
.mini-circle span:nth-child(1) { left: 35%; top: 4%; }
.mini-circle span:nth-child(2) { right: 4%; top: 35%; }
.mini-circle span:nth-child(3) { left: 30%; bottom: 4%; }
.mini-circle span:nth-child(4) { left: 2%; top: 40%; }
.mini-circle span:nth-child(5) { left: 36%; top: 40%; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.section { padding: 42px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .price-card { padding: 26px; }
.feature-card h2, .price-card h2 { margin-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { padding: 16px 18px; border: 1px solid var(--line); background: rgba(255,255,255,.06); border-radius: 16px; }
.checklist li::before { content: '✓'; color: var(--accent); font-weight: 900; margin-right: 10px; }
.page-hero { padding: 54px 0 28px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 30px 0 70px; }
.price-card.featured { outline: 2px solid var(--accent); transform: translateY(-10px); }
.price { font-size: 46px; font-weight: 900; margin: 0 0 10px; }
.price span { font-size: 16px; color: var(--muted); }
.price-card ul { color: var(--muted); line-height: 1.9; }
.generator-shell { display: grid; grid-template-columns: 440px 1fr; gap: 22px; padding: 24px 0 70px; align-items: start; }
.controls-panel, .preview-panel { padding: 22px; }
.controls-panel h1 { font-size: 36px; line-height: 1; letter-spacing: -.04em; margin: 0 0 10px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 8px; margin: 14px 0; color: var(--muted); font-size: 14px; font-weight: 700; }
input, textarea, select {
    width: 100%; border: 1px solid var(--line); border-radius: 14px;
    background: rgba(0,0,0,.22); color: var(--text); padding: 13px 14px;
    font: inherit; outline: none;
}
textarea { min-height: 74px; resize: vertical; }
.supporters-input { min-height: 180px; }
.preset-row button {
    border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.08);
    border-radius: 999px; padding: 9px 12px; cursor: pointer; font-weight: 800;
}
.status { min-height: 22px; color: var(--accent); font-weight: 700; }
canvas { width: 100%; height: auto; border-radius: 22px; background: #15172b; display: block; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); text-align: left; padding: 12px; color: var(--muted); }
.notice { padding: 14px 16px; border: 1px solid var(--line); background: rgba(0,206,201,.08); border-radius: 16px; color: var(--text); }
@media (max-width: 900px) {
    .hero, .split, .generator-shell { grid-template-columns: 1fr; }
    .grid-3, .pricing-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: none; }
    .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
    nav { flex-wrap: wrap; }
}


.field-grid-2 { margin-top: 10px; }
.preview-panel { display: grid; gap: 14px; }
.preview-panel .fineprint { margin: 0; }
@media (min-width: 901px) {
    .preview-panel { position: sticky; top: 18px; }
}

.collector-box {
    margin: 18px 0 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(0,0,0,.16);
}
.input-action-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}
.input-action-row .button {
    white-space: nowrap;
    min-height: 46px;
}
.collector-status {
    min-height: 22px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 750;
    color: var(--muted);
}
.collector-status.loading { color: #ffd166; }
.collector-status.success { color: var(--accent); }
.collector-status.error { color: #ff8f9f; }
.collector-results {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.ranked-supporters {
    display: grid;
    gap: 7px;
    margin-top: 10px;
    max-height: 260px;
    overflow: auto;
    padding-right: 4px;
}
.ranked-supporter {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.07);
}
.ranked-supporter span { font-weight: 800; }
.ranked-supporter small { color: var(--muted); text-align: right; }
button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 560px) {
    .input-action-row { grid-template-columns: 1fr; }
    .ranked-supporter { align-items: flex-start; flex-direction: column; }
    .ranked-supporter small { text-align: left; }
}
