/* Welcome Modal Styling */
#welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #2e0b4e 0%, #000 100%);
    z-index: 20000;
    /* Above everything */
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.welcome-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.welcome-icon {
    font-size: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    animation: bounceIcon 2s infinite ease-in-out;
}

@keyframes bounceIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.welcome-title {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.welcome-text {
    font-size: 16px;
    color: #d1d5db;
    line-height: 1.5;
    margin-bottom: 25px;
}

.welcome-reward {
    font-size: 48px;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.welcome-btn {
    background: linear-gradient(90deg, #7c3aed, #db2777);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-btn:active {
    transform: scale(0.95);
    box-shadow: 0 5px 10px rgba(124, 58, 237, 0.3);
}

/* Confetti Container */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* ==============================================
   CHANNEL VERIFICATION MODAL - PREMIUM DESIGN
   ============================================== */

.channel-verify-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    z-index: 21000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

.channel-verify-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
    width: 92%;
    max-width: 380px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: channelSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

@keyframes channelSlideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.channel-verify-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.channel-verify-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow:
        0 10px 30px rgba(102, 126, 234, 0.4),
        0 0 60px rgba(102, 126, 234, 0.2);
    animation: iconPulse 2s ease-in-out infinite;
}

.channel-verify-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5); }
}

.channel-verify-badge {
    background: linear-gradient(90deg, #f093fb, #f5576c);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.channel-verify-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.channel-verify-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}


.channel-verify-benefits {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    text-align: left;
}

.benefit-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.benefit-icon {
    font-size: 18px;
    width: 28px;
    text-align: center;
}

.channel-verify-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    box-shadow:
        0 8px 25px rgba(0, 136, 204, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.channel-join-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.channel-join-btn svg {
    width: 20px;
    height: 20px;
}

.channel-verify-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.channel-verify-btn:active {
    transform: scale(0.97);
}

.channel-verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.verify-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.channel-verify-note {
    font-size: 12px;
    color: #f87171;
    margin-top: 16px;
    min-height: 18px;
    transition: opacity 0.3s;
}

/* Particles Background */
.channel-verify-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.channel-verify-particles::before,
.channel-verify-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    animation: floatParticle 8s ease-in-out infinite;
}

.channel-verify-particles::before {
    top: -100px;
    right: -100px;
    animation-delay: -2s;
}

.channel-verify-particles::after {
    bottom: -100px;
    left: -100px;
    animation-delay: -4s;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.15) 0%, transparent 70%);
}

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(0, -20px) scale(1); }
    75% { transform: translate(-30px, -10px) scale(0.9); }
}