:root {
    --bg: #070707;
    --panel: rgba(18, 18, 18, .94);
    --panel-soft: #171717;
    --line: rgba(255,255,255,.09);
    --text: #f8f8f8;
    --muted: #9b9b9b;
    --red: #ff2727;
    --red-dark: #8f0505;
    --green: #30d17b;
    --amber: #ffba3b;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -15%, rgba(255, 39, 39, .18), transparent 38%),
        radial-gradient(circle at 100% 100%, rgba(255, 39, 39, .08), transparent 35%),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button { font: inherit; }

.page-shell {
    min-height: 100dvh;
    width: min(100% - 28px, 520px);
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 30px 0;
}

.generator-card {
    width: 100%;
    padding: clamp(25px, 7vw, 38px);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(23,23,23,.98), var(--panel));
    box-shadow: 0 24px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,39,39,.04) inset;
    text-align: center;
}

.brand-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 23px;
    color: #fff;
    background: linear-gradient(145deg, var(--red), var(--red-dark));
    box-shadow: 0 16px 35px rgba(255,39,39,.25);
}
.brand-icon svg { fill: currentColor; }

.eyebrow {
    margin: 0 0 8px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
}

h1 {
    margin: 0;
    font-size: clamp(30px, 9vw, 43px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.description {
    max-width: 390px;
    margin: 15px auto 24px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.info-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-soft);
    text-align: left;
}
.info-box strong { display: block; margin-top: 4px; font-size: 14px; }
.info-label { color: var(--muted); font-size: 12px; }
.status-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(48,209,123,.1), 0 0 18px rgba(48,209,123,.6);
}

.generate-button {
    position: relative;
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 15px 18px;
    border: 0;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(100deg, #a50000, var(--red));
    box-shadow: 0 15px 34px rgba(255,39,39,.2);
    cursor: pointer;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: .035em;
    transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}
.generate-button:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.08); }
.generate-button:not(:disabled):active { transform: translateY(0); }
.generate-button:disabled { cursor: not-allowed; opacity: .72; box-shadow: none; }
.button-icon { font-size: 24px; line-height: 1; }
.generate-button.loading .button-icon { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: translateY(4px); opacity: .45; } }

.message {
    min-height: 24px;
    margin-top: 16px;
    padding: 0 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}
.message.success { color: var(--green); }
.message.warning { color: var(--amber); }
.message.error { color: #ff6b6b; }
.message.info { color: #d0d0d0; }

.privacy-note {
    margin: 17px 0 0;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    color: #6f6f6f;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 380px) {
    .page-shell { width: min(100% - 18px, 520px); }
    .generator-card { border-radius: 21px; }
    .generate-button { font-size: 12px; }
}
