/* Upgrade Modal Styles */
.upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.upgrade-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.upgrade-modal-content {
    position: relative;
    max-width: 480px;
    width: 90%;
    background: linear-gradient(135deg, #2a2d3a 0%, #1f2129 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.upgrade-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.upgrade-icon svg {
    width: 48px;
    height: 48px;
}

.upgrade-modal h2 {
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.upgrade-modal p {
    text-align: center;
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.feature-benefits {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.feature-benefits h3 {
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.feature-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-benefits li {
    color: #e4e7eb;
    font-size: 14px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-benefits li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #e4e7eb;
}

/* Notifications */
.notification,
.upgrade-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    max-width: 400px;
    background: #2a2d3a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: notificationSlide 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@keyframes notificationSlide {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e4e7eb;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: white;
}

.notification-info {
    border-left: 3px solid #3b82f6;
}

.notification-success {
    border-left: 3px solid #10b981;
}

.notification-warning {
    border-left: 3px solid #f59e0b;
}

.notification-error {
    border-left: 3px solid #ef4444;
}

.upgrade-notification {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.upgrade-cta {
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.upgrade-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Feature Gating Styles */
.disabled,
.pro-feature {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed !important;
}

.disabled::after,
.pro-feature::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2129;
    color: #e4e7eb;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.disabled:hover::after,
.pro-feature:hover::after {
    opacity: 1;
}

/* Lock Icon Overlay */
.pro-feature::before {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .upgrade-modal-content {
        width: 95%;
        padding: 24px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .notification,
    .upgrade-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
