/* ======================================================
   Bellatrix Capital - Payment & Premium Styles
   ====================================================== */

/* Payment Overlay */
.payment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.payment-modal {
    background: var(--bg-card, #1a1a2e);
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    position: relative;
    border: 1px solid var(--border-color, #2a2a4a);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.payment-modal.success {
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary, #888);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary, #fff);
}

.payment-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.payment-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* QR Code */
.qr-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin: 0 auto;
    width: fit-content;
}

.qr-code {
    width: 200px;
    height: 200px;
}

/* Payment Details */
.payment-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color, #2a2a4a);
}

.payment-instruction {
    font-size: 0.9rem;
    color: var(--text-secondary, #888);
    text-align: center;
}

.payment-status {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* Success */
.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 16px;
}

.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.plan-features-list li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features-list li i {
    color: #10b981;
}

/* Payment Toast */
.payment-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10001;
    animation: slideIn 0.3s ease;
    font-size: 0.95rem;
}

.payment-toast.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.payment-toast.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* Premium Lock Overlay */
.premium-overlay {
    position: relative;
}

.premium-lock {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(8px);
    z-index: 2;
}

.premium-lock i.fa-lock {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 8px;
}

.premium-lock h4 {
    color: #ffd700;
    margin: 0;
    font-size: 1rem;
}

.premium-lock p {
    color: var(--text-secondary, #888);
    font-size: 0.85rem;
    margin: 0;
}

.premium-lock .btn {
    margin-top: 8px;
}

/* Confidence Badge */
.confidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.confidence-badge.premium-only {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.confidence-badge.free-tier {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* Payment Method Selector */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.payment-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--bg-default, #0d0d1a);
    border: 2px solid var(--border-color, #2a2a4a);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary, #888);
}

.payment-method-btn:hover,
.payment-method-btn.active {
    border-color: var(--accent-primary, #3b82f6);
    color: var(--text-primary, #fff);
    background: rgba(59, 130, 246, 0.05);
}

.payment-method-btn img,
.payment-method-btn i {
    height: 28px;
    font-size: 1.5rem;
}

.payment-method-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Pricing Cards Enhanced */
.pricing-card {
    position: relative;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-color, #2a2a4a);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
    border-color: var(--accent-primary, #3b82f6);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
}

.pricing-card .popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.plan-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.plan-price .interval {
    font-size: 1rem;
    color: var(--text-secondary, #888);
    font-weight: 400;
}

/* Premium Feature Badge */
.premium-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.premium-feature-badge i {
    font-size: 0.7rem;
}

/* Confidence meter with premium indicator */
.confidence-meter {
    position: relative;
    width: 100%;
    height: 6px;
    background: var(--bg-default, #0d0d1a);
    border-radius: 3px;
    overflow: visible;
    margin: 8px 0;
}

.confidence-meter .free-zone {
    position: absolute;
    left: 30%;
    width: 40%;
    height: 100%;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
}

.confidence-meter .premium-zone-low {
    position: absolute;
    left: 0;
    width: 30%;
    height: 100%;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 3px 0 0 3px;
}

.confidence-meter .premium-zone-high {
    position: absolute;
    right: 0;
    width: 30%;
    height: 100%;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 0 3px 3px 0;
}

.confidence-meter .confidence-marker {
    position: absolute;
    top: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    transform: translateX(-50%);
}

/* Responsive */
@media (max-width: 768px) {
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-modal {
        padding: 24px;
        margin: 16px;
    }
}

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

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