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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
}

.header {
    background: rgba(0,0,0,0.2);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.logout-btn {
    background: rgba(255, 59, 48, 0.8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 59, 48, 0.3);
    white-space: nowrap;
}

.logout-btn:hover {
    background: rgba(255, 59, 48, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 59, 48, 0.3);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.welcome-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.plan-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
    text-align: center;
}

.plan-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.plan-card.featured {
    border: 2px solid #00a86b;
    background: rgba(0, 168, 107, 0.1);
}

.plan-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #00a86b;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features li:before {
    content: "✅";
    margin-right: 0.5rem;
}

.subscribe-btn {
    background: linear-gradient(135deg, #00a86b, #00d4aa);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, #00d4aa, #00a86b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 107, 0.3);
}

/* Rainbow Glow Purchase Button */
.purchase-btn {
    background: linear-gradient(135deg, #2ed573, #00b894);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.purchase-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 0, 150, 0.4), 
        rgba(0, 255, 255, 0.4), 
        rgba(255, 255, 0, 0.4), 
        rgba(0, 255, 0, 0.4), 
        rgba(255, 0, 0, 0.4), 
        rgba(255, 0, 255, 0.4), 
        transparent
    );
    transition: left 0.5s ease;
}

.purchase-btn:hover::before {
    left: 100%;
}

.purchase-btn:hover {
    background: linear-gradient(135deg, #00b894, #2ed573);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(46, 213, 115, 0.3),
        0 0 20px rgba(255, 0, 150, 0.5),
        0 0 40px rgba(0, 255, 255, 0.3),
        0 0 60px rgba(255, 255, 0, 0.2);
    border: 2px solid transparent;
    background-clip: padding-box;
    animation: rainbow-glow 2s ease-in-out infinite alternate;
}

@keyframes rainbow-glow {
    0% {
        box-shadow: 
            0 8px 20px rgba(46, 213, 115, 0.3),
            0 0 20px rgba(255, 0, 150, 0.5),
            0 0 40px rgba(0, 255, 255, 0.3),
            0 0 60px rgba(255, 255, 0, 0.2);
    }
    25% {
        box-shadow: 
            0 8px 20px rgba(46, 213, 115, 0.3),
            0 0 20px rgba(0, 255, 255, 0.5),
            0 0 40px rgba(255, 255, 0, 0.3),
            0 0 60px rgba(0, 255, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 8px 20px rgba(46, 213, 115, 0.3),
            0 0 20px rgba(255, 255, 0, 0.5),
            0 0 40px rgba(0, 255, 0, 0.3),
            0 0 60px rgba(255, 0, 0, 0.2);
    }
    75% {
        box-shadow: 
            0 8px 20px rgba(46, 213, 115, 0.3),
            0 0 20px rgba(0, 255, 0, 0.5),
            0 0 40px rgba(255, 0, 0, 0.3),
            0 0 60px rgba(255, 0, 255, 0.2);
    }
    100% {
        box-shadow: 
            0 8px 20px rgba(46, 213, 115, 0.3),
            0 0 20px rgba(255, 0, 0, 0.5),
            0 0 40px rgba(255, 0, 255, 0.3),
            0 0 60px rgba(255, 0, 150, 0.2);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    opacity: 0;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}

.modal.show {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    opacity: 0.7;
}

.modal-title {
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.modal-btn.paypal {
    background: linear-gradient(135deg, #0070ba, #003087);
}

.modal-btn.patreon {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
}

.modal-btn.selly {
    background: linear-gradient(135deg, #6c5ce7, #5f3dc4);
}

.modal-btn.discord {
    background: linear-gradient(135deg, #5865f2, #4752c4);
}

.savings-badge {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.patreon-btn {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.patreon-btn:hover {
    background: linear-gradient(135deg, #ff6b35, #ff4500);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.3);
}

.selly-btn {
    background: linear-gradient(135deg, #6c5ce7, #5f3dc4);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.selly-btn:hover {
    background: linear-gradient(135deg, #5f3dc4, #4c63d2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.discord-btn {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.discord-btn:hover {
    background: linear-gradient(135deg, #4752c4, #3c45a5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .user-details {
        align-items: center;
        gap: 0.3rem;
    }
    
    .logout-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
}
