/* Popup thông báo hết số trang đọc thử */
.trial-limit-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    animation: fadeIn 0.3s ease-in-out;
}

.trial-limit-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trial-limit-popup {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
}

.trial-limit-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

.trial-limit-header i {
    font-size: 60px;
    margin-bottom: 10px;
    display: block;
}

.trial-limit-header h2 {
    margin: 10px 0 5px 0;
    font-size: 24px;
    font-weight: 600;
}

.trial-limit-header p {
    margin: 5px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.trial-limit-body {
    padding: 30px;
    text-align: center;
}

.trial-limit-body .message {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 25px;
}

.trial-limit-body .highlight {
    color: #667eea;
    font-weight: 600;
}

.trial-limit-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.trial-limit-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.trial-limit-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.trial-limit-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.trial-limit-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.trial-limit-btn-secondary:hover {
    background: #e0e0e0;
}

.trial-limit-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trial-limit-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .trial-limit-popup {
        width: 95%;
        max-width: none;
    }

    .trial-limit-header h2 {
        font-size: 20px;
    }

    .trial-limit-body {
        padding: 20px;
    }

    .trial-limit-actions {
        flex-direction: column;
    }

    .trial-limit-btn {
        width: 100%;
    }
}
