/* 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.8);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #141414 0%, #1A1A1A 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: #8C8C8C;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #FFFFFF;
}

.modal h2 {
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFD700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #B3B3B3;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #0B0B0C;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.modal .btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: #E50914;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.modal .btn-primary:hover {
    background: #F52F3A;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.modal-footer {
    margin-top: 24px;
    text-align: center;
    color: #8C8C8C;
    font-size: 14px;
}

.modal-footer a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.modal-footer a:hover {
    color: #FFDD33;
    text-decoration: underline;
}

/* Premium Modal Styles */
.premium-modal {
    max-width: 600px;
}

.premium-header {
    text-align: center;
    margin-bottom: 32px;
}

.premium-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.subtitle {
    color: #B3B3B3;
    font-size: 16px;
}

.premium-benefits {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.premium-benefits h3 {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 16px;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    color: #E6E6E6;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.premium-price {
    text-align: center;
    margin: 32px 0;
}

.price-tag {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #E7C200 100%);
    color: #0B0B0C;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: bold;
}

.price-tag .amount {
    font-size: 36px;
}

.price-tag .period {
    font-size: 18px;
    opacity: 0.8;
}

.price-info {
    color: #B3B3B3;
    margin-top: 12px;
    font-size: 14px;
}

.btn-premium-cta {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #E50914 0%, #F52F3A 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-premium-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
}

.guarantee {
    text-align: center;
    color: #8C8C8C;
    font-size: 12px;
    margin-top: 16px;
}

/* Book tile styles */
.content-tile {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.content-tile .tile-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Notification styles */
.notification {
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    background: #22c55e !important;
}

.notification-error {
    background: #ef4444 !important;
}

.notification-info {
    background: #3b82f6 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 24px;
        margin: 20px;
    }
    
    .modal h2 {
        font-size: 24px;
    }
    
    .form-group input {
        font-size: 16px;
    }
    
    .premium-modal {
        max-width: 95%;
    }
}