/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', Arial, sans-serif;
    background: linear-gradient(45deg, #000 0%, #1a1a1a 50%, #000 100%);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    color: #fff;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(29, 185, 84, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(29, 185, 84, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 500px;
    width: 100%;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.spotify-card {
    background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
    border-radius: 25px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(29, 185, 84, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.spotify-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.spotify-logo {
    margin-bottom: 20px;
}

.logo-circle {
    width: 100px;
    height: 100px;
    background: #1DB954;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(29, 185, 84, 0.3);
}

.spotify-logo img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.features {
    margin-bottom: 30px;
    text-align: right;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 500;
}

.feature::before {
    content: '✓';
    margin-left: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}

.price {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.price-period {
    font-size: 1.2rem;
    opacity: 0.8;
    font-weight: 300;
}

.buy-button {
    display: block;
    width: 100%;
    padding: 20px 35px;
    background: #fff;
    color: #1DB954;
    border: none;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Vazir', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.buy-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: #f8f8f8;
}

.buy-button:active {
    transform: translateY(-1px);
}

.guarantee {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .spotify-card {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .buy-button {
        font-size: 1.2rem;
        padding: 16px 25px;
    }
    
    .logo-circle {
        width: 80px;
        height: 80px;
    }
    
    .spotify-logo img {
        width: 40px;
        height: 40px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spotify-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading state for button */
.buy-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.buy-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #1DB954;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Discount Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    color: white;
    position: relative;
    box-shadow: 0 25px 50px rgba(79, 70, 229, 0.4);
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.popup-header h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.popup-brand {
    background: white;
    color: #4F46E5;
    font-size: 1.5rem;
    font-weight: 900;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.popup-body {
    margin-bottom: 25px;
}

.popup-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 8px;
    opacity: 0.95;
}

.popup-button {
    display: block;
    background: white;
    color: #4F46E5;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Vazir', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    background: #f8fafc;
}

.popup-button:active {
    transform: translateY(0);
}

/* Popup Animation */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-content {
    animation: popupFadeIn 0.5s ease-out;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .popup-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .popup-header h2 {
        font-size: 1.8rem;
    }
    
    .popup-brand {
        font-size: 1.3rem;
    }
    
    .popup-body p {
        font-size: 1rem;
    }
    
    .popup-button {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
}
