/* ================================
   Usage Limit Modal Styles
   ================================ */

/* Modal Overlay */
.usage-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.usage-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 24px;
    box-shadow: 
        0 24px 48px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 480px;
    width: 90%;
    padding: 48px;
    text-align: center;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Title */
.usage-modal-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 32px;
    line-height: 1.2;
}

/* Usage Stats */
.usage-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}

.usage-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.usage-number {
    font-size: 48px;
    font-weight: 700;
    color: #6366f1;
    line-height: 1;
}

.usage-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.usage-divider {
    font-size: 36px;
    color: #cbd5e1;
    font-weight: 300;
    margin: 0 8px;
}

/* Message */
.usage-message {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Actions */
.usage-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.usage-actions .btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.usage-actions .btn-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.35);
}

.usage-actions .btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.45);
}

.usage-actions .btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.usage-actions .btn-secondary:hover {
    background: #e2e8f0;
}

/* Usage Counter in UI */
#usage-counter {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    z-index: 100;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.25);
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .usage-modal-content {
        padding: 32px 24px;
        margin: 20px;
    }
    
    .usage-modal-content h3 {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .usage-number {
        font-size: 36px;
    }
    
    .usage-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .usage-actions .btn {
        width: 100%;
    }
    
    #usage-counter {
        bottom: 70px; /* Above mobile navigation */
        right: 16px;
        left: 16px;
        text-align: center;
    }
}