/* Payment Modal Styling */
.trial-actions {
    display: flex;
    gap: 1rem;
}

.payment-intro {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-method-card.active {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.05);
}

.method-icon {
    font-size: 1.5rem;
}

.method-name {
    display: block;
    font-weight: 600;
}

.method-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.card-brand {
    position: absolute;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.billing-agreement {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 8px;
    line-height: 1.5;
}

.billing-agreement strong {
    color: var(--primary-light);
}

/* Disabled Go Live button if payment not setup */
#activateBtn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

#activateBtn:disabled::after {
    content: ' (Payment Required)';
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Trial Banner */
.trial-banner {
    background: linear-gradient(135deg, #7C3AED 0%, #0066FF 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
}

.trial-banner-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.trial-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.trial-info {
    flex: 1;
}

.trial-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.trial-info p {
    opacity: 0.9;
    font-size: 1rem;
}

.trial-timer {
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.timer-label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.timer-value {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
}

.ghost-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.5);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #C084FC;
}

.ghost-icon {
    font-size: 1.25rem;
}

/* Comparison Section */
.comparison-section {
    margin-bottom: 3rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comparison-card {
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all var(--transition-base);
}

.comparison-card.current {
    border-color: rgba(239, 68, 68, 0.3);
}

.comparison-card.marai {
    border-color: rgba(0, 102, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 217, 255, 0.05) 100%);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.system-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.current-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.ghost-badge-small {
    background: rgba(124, 58, 237, 0.2);
    color: #C084FC;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.comparison-stats {
    display: grid;
    gap: 2rem;
}

.comparison-stat {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.comparison-stat .stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.comparison-stat .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-value.bad {
    color: #EF4444;
}

.stat-value.good {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-improvement {
    font-size: 0.875rem;
    font-weight: 700;
    color: #00FF88;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 6px;
}

/* Ghost Matches Feed */
.ghost-matches {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.ghost-controls {
    display: flex;
    gap: 1rem;
}

.ghost-feed {
    max-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ghost-match {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    animation: ghostFadeIn 0.5s ease;
}

@keyframes ghostFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ghost-match.blocked {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
}

.ghost-match .ghost-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.ghost-details {
    flex: 1;
}

.ghost-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 0.25rem;
}

.ghost-action {
    font-size: 0.875rem;
    font-weight: 700;
    color: #C084FC;
    margin-bottom: 0.5rem;
}

.ghost-match.blocked .ghost-action {
    color: #EF4444;
}

.ghost-info {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.ghost-buyer,
.ghost-seller {
    font-weight: 600;
    color: var(--text-primary);
}

.ghost-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.metric-item {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.ghost-status {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    min-width: 120px;
}

.ghost-status.blocked-status {
    background: rgba(239, 68, 68, 0.1);
}

.status-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.status-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #00FF88;
}

.blocked-status .status-text {
    color: #EF4444;
}

/* Projected Savings */
.projected-savings {
    margin-bottom: 3rem;
}

.savings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.savings-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
}

.savings-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.savings-content {
    flex: 1;
}

.savings-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.savings-value {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.savings-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.875rem;
}

.roi-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.roi-item {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.roi-metric {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.roi-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.roi-value.positive {
    color: #00FF88;
}

.roi-value.highlight {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roi-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Activation CTA */
.activation-cta {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 217, 255, 0.1) 100%);
    border: 2px solid rgba(0, 102, 255, 0.3);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem;
}

.activation-warning {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.warning-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.activation-checklist {
    margin-bottom: 2rem;
}

.activation-checklist h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.checkbox-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-item input[type="checkbox"] {
    cursor: pointer;
}

.activation-summary h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.activation-summary ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activation-summary li {
    padding: 0.75rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 8px;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer .btn {
    flex: 1;
}

/* Disabled nav items */
.nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border-radius: 4px;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 1024px) {

    .comparison-grid,
    .savings-grid {
        grid-template-columns: 1fr;
    }

    .trial-banner-content {
        flex-direction: column;
        text-align: center;
    }
}