:root {
    --bg-1: #08050f;
    --bg-2: #12071f;
    --surface: rgba(21, 12, 37, 0.88);
    --surface-soft: rgba(255, 255, 255, 0.04);
    --border: rgba(210, 118, 255, 0.28);
    --text-main: #f8f2ff;
    --text-muted: rgba(240, 225, 255, 0.74);
    --text-soft: rgba(240, 225, 255, 0.48);
    --accent-1: #ff4fd8;
    --accent-2: #ca56ff;
    --accent-3: #8f6bff;
    --success: #58ffb7;
    --error: #ff6f96;
    --info: #6ac6ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(1100px 700px at 10% 12%, rgba(255, 79, 216, 0.12), transparent 58%),
        radial-gradient(900px 600px at 88% 8%, rgba(143, 107, 255, 0.14), transparent 62%),
        linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 58%, #09040f 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 30px;
    position: relative;
    overflow-x: hidden;
}

#notice-bar {
    width: 100%;
    background: linear-gradient(90deg, #312e81, #4c1d95);
    color: #f3e8ff;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.container {
    width: 100%;
    max-width: 480px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 90px rgba(201, 86, 255, 0.14);
    backdrop-filter: blur(16px);
    padding: 32px;
    margin-top: 28px;
    position: relative;
    z-index: 1;
    animation: riseIn 0.6s ease-out both;
}

.header {
    text-align: center;
    margin-bottom: 24px;
}

.logo-mark {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 8px 22px rgba(255, 79, 216, 0.42));
}

.logo {
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: clamp(1.8rem, 4.2vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: linear-gradient(95deg, var(--accent-1) 10%, var(--accent-2) 52%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.subtitle {
    color: var(--text-soft);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

input[type="text"] {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 5, 20, 0.88);
    color: var(--text-main);
    padding: 13px 14px;
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input[type="text"]:focus {
    border-color: rgba(255, 79, 216, 0.62);
    box-shadow: 0 0 0 3px rgba(255, 79, 216, 0.16);
}

.count-display {
    text-align: center;
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(92deg, var(--accent-1) 6%, var(--accent-2) 50%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 6px 0;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 79, 216, 0.36), rgba(143, 107, 255, 0.38));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: linear-gradient(130deg, var(--accent-1), var(--accent-2));
    cursor: pointer;
}

.range-labels {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    color: rgba(240, 225, 255, 0.52);
    font-size: 10px;
    font-weight: 600;
}

button {
    width: 100%;
    margin-top: 8px;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #1a0625;
    background: linear-gradient(98deg, #ff5adf 2%, #cc56ff 50%, #8f6bff 100%);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(202, 86, 255, 0.4);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.status {
    margin-top: 18px;
    border-radius: 11px;
    padding: 12px 14px;
    border: 1px solid;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: none;
    background: var(--surface-soft);
}

.status.success { display: block; color: var(--success); border-color: rgba(88, 255, 183, 0.32); }
.status.error { display: block; color: var(--error); border-color: rgba(255, 111, 150, 0.34); }
.status.info { display: block; color: var(--info); border-color: rgba(106, 198, 255, 0.32); }

.seo-content, .faq-content {
    margin-top: 24px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 4, 15, 0.58);
}

.seo-content h2, .faq-content h2 { font-size: 16px; margin-bottom: 10px; }
.seo-content p, .seo-content li { font-size: 12px; line-height: 1.6; color: var(--text-muted); }
.seo-content ol { margin-left: 18px; }

.faq-content details {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}

.faq-content summary { cursor: pointer; font-size: 12px; font-weight: 700; }
.faq-content details p { margin-top: 6px; font-size: 11px; color: var(--text-muted); }

.responsive-ad {
    margin-top: 20px;
    text-align: center;
}

.ad-label {
    font-size: 9px;
    color: rgba(240, 225, 255, 0.34);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer {
    margin-top: 30px;
    text-align: center;
    font-size: 11px;
    color: rgba(240, 225, 255, 0.4);
}

.footer-nav a { color: inherit; text-decoration: none; margin-top: 6px; display: inline-block; }
.footer-nav a:hover { text-decoration: underline; }

.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #2a083a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }