:root {
    --bg-top: #07111f;
    --bg-bottom: #112a3b;
    --surface: rgba(8, 20, 35, 0.76);
    --surface-strong: rgba(10, 25, 43, 0.92);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 214, 102, 0.35);
    --text: #eef6ff;
    --muted: #a7bfd4;
    --accent: #ffb84d;
    --accent-strong: #ff8a1c;
    --emerald: #67f1b5;
    --glow: 0 30px 80px rgba(0, 0, 0, 0.35);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --transition: 180ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 184, 77, 0.18), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(103, 241, 181, 0.12), transparent 20%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 62%, #08111d 100%);
}

.background-pattern {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 92%);
    opacity: 0.45;
    pointer-events: none;
}

.background-pattern::before,
.background-pattern::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
}

.background-pattern::before {
    width: 340px;
    height: 340px;
    right: -80px;
    top: 80px;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.26), transparent 70%);
}

.background-pattern::after {
    width: 300px;
    height: 300px;
    left: -90px;
    bottom: 120px;
    background: radial-gradient(circle, rgba(103, 241, 181, 0.16), transparent 70%);
}

.container {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 40px;
}

header { margin-bottom: 22px; }

.header-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background:
        linear-gradient(135deg, rgba(255, 184, 77, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(8, 20, 35, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.header-left {
    justify-self: start;
    display: flex;
    align-items: center;
}

.header-center {
    min-width: 0;
    text-align: center;
}

.header-right {
    justify-self: end;
    display: flex;
    align-items: center;
}

.logo {
    width: clamp(112px, 14vw, 156px);
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.9rem, 4vw, 3.25rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #fff9ef;
    text-wrap: balance;
}

.header-stats {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

main {
    display: block;
}

.workflow-stage {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--glow);
    max-width: 760px;
    margin: 0 auto;
    padding: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)), var(--surface-strong);
    backdrop-filter: blur(20px);
}

.verification-body p {
    color: var(--muted);
    line-height: 1.75;
}
.stat-card,
.card,
.verification-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.step-title h2,
.step-title h2,
.verification-details h3,
.loading-text {
    font-family: 'Space Grotesk', sans-serif;
}

.step-indicator {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.step-dot {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-weight: 800;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.step-dot.active,
.step-dot.completed {
    color: #0a1522;
    border-color: transparent;
    background: linear-gradient(135deg, #ffd979, var(--accent-strong));
    transform: scale(1.05);
}

.step-line { height: 2px; background: rgba(255, 255, 255, 0.09); }
.step-line.active { background: linear-gradient(90deg, #ffd979, var(--accent-strong)); }

.card {
    border-radius: 26px;
    backdrop-filter: blur(12px);
}

.generator-box { padding: 24px; }
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.35s ease forwards; }

.step-title { margin-bottom: 18px; }
.step-title h2 { font-size: 1.5rem; letter-spacing: -0.03em; }

.input-group { margin-bottom: 18px; }

label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #fff6de;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

input[type="text"] {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.18);
    color: var(--text);
    font: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input[type="text"]::placeholder { color: rgba(167, 191, 212, 0.82); }

input[type="text"]:focus {
    outline: none;
    border-color: var(--line-strong);
    box-shadow: 0 0 0 4px rgba(255, 184, 77, 0.12);
}

.continue-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffd979, var(--accent-strong));
    color: #132236;
    font: inherit;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    box-shadow: 0 16px 30px rgba(255, 138, 28, 0.28);
}

.continue-button:hover { transform: translateY(-2px); filter: brightness(1.02); }
.continue-button i { transition: transform var(--transition); }
.continue-button:hover i { transform: translateX(4px); }

.connected-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(103, 241, 181, 0.12);
    color: #d9ffef;
}

#connected-username,
#final-username { font-weight: 800; }

.spins-selector h3 {
    margin-bottom: 14px;
    color: #fff6de;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.spins-selector {
    margin-bottom: 26px;
}

.spin-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.spin-option {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    justify-items: start;
    padding: 16px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.spin-option:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 184, 77, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.spin-option.active {
    border-color: rgba(255, 184, 77, 0.5);
    background: linear-gradient(180deg, rgba(255, 184, 77, 0.18), rgba(255, 184, 77, 0.08));
    box-shadow: inset 0 0 0 1px rgba(255, 184, 77, 0.22);
}

.spin-option:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) 40px;
    text-align: right;
}

.spin-option:nth-child(even) .spin-icon {
    order: 2;
}

.spin-option span {
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.35;
}

.spin-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
}

.verification-info { margin-bottom: 16px; }

.verification-status.modern {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 184, 77, 0.12), rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.verification-badge {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffd979, var(--accent-strong));
    color: #102130;
    box-shadow: 0 14px 26px rgba(255, 138, 28, 0.25);
}

.verification-details h3 {
    margin-bottom: 6px;
    font-size: 1.3rem;
    line-height: 1.1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.status-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(103, 241, 181, 0.14);
    color: var(--emerald);
}

.verification-card { overflow: hidden; border-radius: 22px; }

.verification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(90deg, rgba(255, 184, 77, 0.2), rgba(255, 255, 255, 0.04));
    color: #fff5dd;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.verification-body { padding: 20px 18px 22px; }
.verification-body p { text-align: center; }

.captcha-container {
    width: min(100%, 320px);
    margin: 18px auto 0;
}

#fake-captcha {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(7, 16, 27, 0.7);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#fake-captcha:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 184, 77, 0.26);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.captcha-header,
.captcha-footer {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.85rem;
}

.captcha-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.captcha-checkbox {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 14px;
}

.captcha-checkbox span { font-size: 1rem; font-weight: 700; }

.checkbox-container {
    position: relative;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.checkbox-container .fa-check {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity var(--transition), transform var(--transition);
}

.checkbox-animate .fa-check {
    opacity: 1;
    transform: scale(1);
}

.checkbox-container .fa-check.fa-spin {
    opacity: 1;
    color: #111111;
    animation: captchaCheckSpin 0.9s linear infinite;
}
.captcha-footer { text-align: right; border-top: 1px solid rgba(255, 255, 255, 0.08); }

.username-warning {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 103, 103, 0.12);
    border: 1px solid rgba(255, 103, 103, 0.18);
    color: #ffd4d4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-card {
    padding: 18px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.stat-label {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.stat-value { font-size: 1.08rem; font-weight: 800; color: var(--text); }

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 999px;
    background: var(--emerald);
    box-shadow: 0 0 0 8px rgba(103, 241, 181, 0.12);
    animation: pulseDot 1.8s infinite;
}

#online-count.count-change { color: var(--accent); }

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 10, 18, 0.82);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.loading-overlay.show { opacity: 1; visibility: visible; }

.loading-content {
    width: min(100%, 420px);
    padding: 28px;
    border-radius: 28px;
    background: rgba(8, 20, 35, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    box-shadow: var(--glow);
}

.loading-spinner {
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 2.6rem;
}

.loading-spinner i {
    display: inline-block;
    animation: loadingSpinnerRotate 0.9s linear infinite !important;
}

.loading-text { margin-bottom: 16px; font-size: 1.3rem; }
.loading-text.highlight { color: var(--accent); }

.loading-progress {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.loading-progress .progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffd979, var(--accent-strong));
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(103, 241, 181, 0.28); }
    70% { box-shadow: 0 0 0 10px rgba(103, 241, 181, 0); }
    100% { box-shadow: 0 0 0 0 rgba(103, 241, 181, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loadingSpinnerRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes captchaCheckSpin {
    from { transform: scale(1) rotate(0deg); }
    to { transform: scale(1) rotate(360deg); }
}

@media (max-width: 1100px) {
    .container { width: min(100% - 24px, 1240px); }
    .header-content { grid-template-columns: 1fr; }
    .header-content {
        border-radius: 28px;
        justify-items: center;
        text-align: center;
        gap: 14px;
    }
    .header-left,
    .header-right { justify-self: center; }
    .header-stats { justify-content: center; }
}

@media (max-width: 760px) {
    .container { padding-top: 14px; padding-bottom: 26px; }
    .workflow-stage { padding: 20px; border-radius: 24px; }
    .verification-status.modern { grid-template-columns: 1fr; }
    .header-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, 320px);
        max-width: 320px;
    }
    .step-indicator { gap: 8px; }
    .step-dot { width: 38px; height: 38px; }
    .spin-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .spin-option {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 10px;
        padding: 14px 10px;
    }
    .spin-option:nth-child(even) {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .spin-option:nth-child(even) .spin-icon {
        order: 0;
    }
    .spin-option span {
        font-size: 0.88rem;
        line-height: 1.3;
    }
    .spin-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 16px 14px;
        border-radius: 24px;
    }
    .generator-box,
    .loading-content { padding: 18px; }
    h1 { font-size: 2.1rem; }
    .verification-details h3 { font-size: 1.1rem; }
    .step-title h2 {
        font-size: 1.28rem;
    }
    .spins-selector h3 {
        font-size: 0.88rem;
        line-height: 1.5;
    }
    .spin-option {
        border-radius: 16px;
    }
}
