/* Tarotify Token Paywall Styles */

.tarotify-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.tarotify-modal-content {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 25%, #c084fc 50%, #e879f9 75%, #f472b6 100%);
    color: white;
    padding: 3rem 2.5rem;
    border-radius: 24px;
    max-width: 440px;
    margin: 1rem;
    text-align: center;
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.tarotify-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 24px;
    pointer-events: none;
}

.tarotify-modal-content h3 {
    font-size: 1.75rem;
    margin: 0 0 1rem 0;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.tarotify-modal-content p {
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    line-height: 1.5;
    opacity: 0.9;
    font-weight: 400;
}

.usage-counter {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    font-size: 1rem;
    margin-bottom: 2rem !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.tarotify-btn-primary {
    background: rgba(255, 255, 255, 1);
    color: #6b21a8;
    border: none;
    padding: 1.125rem 2.75rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 220px;
    text-transform: none;
    letter-spacing: -0.025em;
}

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

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

.tarotify-btn-primary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

.tarotify-btn-primary:active {
    transform: translateY(-1px);
}

.tarotify-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tarotify-dashboard-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    text-transform: none;
    letter-spacing: -0.025em;
}

.tarotify-dashboard-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.5);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a855f7 100%);
}

/* Error messages */
.error-message {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 0.9rem;
}

/* Protected content states */
.tarotify-premium-content {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.tarotify-premium-content.checking {
    opacity: 0.6;
    pointer-events: none;
}

.tarotify-premium-content.blocked {
    display: none;
}

/* Loading states */
.tarotify-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

@keyframes tarotify-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse animation for buttons */
@keyframes tarotify-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.tarotify-pulse {
    animation: tarotify-pulse 2s infinite;
}

/* Responsive design */
@media (max-width: 480px) {
    .tarotify-modal-content {
        margin: 1rem 0.5rem;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .tarotify-modal-content h3 {
        font-size: 1.4rem;
    }
    
    .tarotify-modal-content p {
        font-size: 1rem;
    }
    
    .tarotify-btn-primary {
        width: 100%;
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    .tarotify-modal-content {
        margin: 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .tarotify-btn-primary {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Premium Banner Styles */
.tarotify-premium-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 25%, #c084fc 50%, #e879f9 75%, #f472b6 100%);
    color: white;
    padding: 0;
    z-index: 999999;
    box-shadow: 0 -4px 20px rgba(139, 92, 246, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.tarotify-premium-banner.show {
    transform: translateY(0);
}

.tarotify-premium-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.tarotify-premium-banner .banner-text {
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    flex: 1;
}

.tarotify-premium-banner .banner-cta {
    background: rgba(255, 255, 255, 1);
    color: #6b21a8;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    margin: 0 1rem;
    white-space: nowrap;
}

.tarotify-premium-banner .banner-cta:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    color: #6b21a8;
    text-decoration: none;
}

.tarotify-premium-banner .banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
    line-height: 1;
}

.tarotify-premium-banner .banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile responsive for premium banner */
@media (max-width: 768px) {
    .tarotify-premium-banner .banner-content {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tarotify-premium-banner .banner-text {
        font-size: 0.9rem;
        flex: 1;
        min-width: 0;
    }
    
    .tarotify-premium-banner .banner-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        margin: 0 0.5rem;
    }
    
    .tarotify-premium-banner .banner-close {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .tarotify-premium-banner .banner-content {
        padding: 0.6rem 0.75rem;
    }
    
    .tarotify-premium-banner .banner-text {
        font-size: 0.85rem;
    }
    
    .tarotify-premium-banner .banner-cta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin: 0 0.25rem;
    }
}