/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --accent: #6366f1;
    --bg-dark: #0a0e1a;
    --bg-card: rgba(15, 20, 40, 0.85);
    --bg-card-border: rgba(99, 102, 241, 0.15);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --success: #10b981;
    --glow-primary: rgba(14, 165, 233, 0.3);
    --glow-accent: rgba(99, 102, 241, 0.3);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* Background gradient orbs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-primary), transparent 70%);
    top: -200px;
    right: -100px;
    animation: orbMove1 15s ease-in-out infinite;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-accent), transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: orbMove2 18s ease-in-out infinite;
}

@keyframes orbMove1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-80px, 80px); }
}

@keyframes orbMove2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(80px, -60px); }
}

/* ===== CONTAINER ===== */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 20px;
    animation: fadeInUp 0.8s ease-out;
}

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

/* ===== CARD ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 24px;
    padding: 40px 32px;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(99, 102, 241, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.5), rgba(99, 102, 241, 0.5), transparent);
}

/* ===== BRAND ===== */
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.brand-icon {
    width: 56px;
    height: 56px;
    animation: brandPulse 3s ease-in-out infinite;
}

.brand-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.3));
}

@keyframes brandPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* ===== DIVIDER ===== */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bg-card-border), transparent);
    margin-bottom: 28px;
}

/* ===== CONTENT ===== */
.content {
    margin-bottom: 28px;
}

.shield-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

.shield-icon svg {
    width: 100%;
    height: 100%;
}

.shield-check {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: checkDraw 1.5s ease-out 0.5s forwards;
}

@keyframes checkDraw {
    to { stroke-dashoffset: 0; }
}

.title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.subtitle {
    font-size: 0.938rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
}

/* ===== TURNSTILE WRAPPER ===== */
.turnstile-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 65px;
}

/* ===== STATUS MESSAGE ===== */
.status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 24px;
    transition: all 0.4s ease;
}

.status.verified {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.status-icon {
    font-size: 0.875rem;
}

.status-text {
    font-size: 0.813rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.4s ease;
}

.status.verified .status-text {
    color: var(--success);
}

/* ===== CTA BUTTON ===== */
.cta-button {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #1e293b, #334155);
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.cta-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cta-button:not(:disabled) {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow:
        0 4px 15px rgba(14, 165, 233, 0.3),
        0 0 40px rgba(99, 102, 241, 0.15);
    opacity: 1;
    animation: buttonReveal 0.5s ease-out;
}

@keyframes buttonReveal {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cta-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(14, 165, 233, 0.4),
        0 0 60px rgba(99, 102, 241, 0.2);
}

.cta-button:not(:disabled):active {
    transform: translateY(0);
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.button-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:not(:disabled):hover .button-arrow {
    transform: translateX(4px);
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    z-index: 1;
}

.cta-button:not(:disabled) .button-shine {
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* ===== FOOTER NOTE ===== */
.footer-note {
    margin-top: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.6;
}

/* ===== SUCCESS ANIMATION ===== */
.card.success {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(16, 185, 129, 0.08);
}

.card.success::before {
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), rgba(14, 165, 233, 0.5), transparent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }

    .card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .brand-icon {
        width: 48px;
        height: 48px;
    }

    .brand-name {
        font-size: 1.375rem;
    }

    .title {
        font-size: 1.125rem;
    }

    .cta-button {
        padding: 14px 20px;
        font-size: 0.938rem;
    }
}

@media (max-width: 360px) {
    .card {
        padding: 28px 20px;
    }
}
