/* ===================================
   BIAS v4.0 ONBOARDING ENHANCEMENTS
   New 6-Step Wizard Styles
   =================================== */

/* ===================================
   STEP 3: TRADING ACCOUNT CONNECTION
   =================================== */

.accounts-connection-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar for account list */
.accounts-connection-container::-webkit-scrollbar {
    width: 8px;
}

.accounts-connection-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.accounts-connection-container::-webkit-scrollbar-thumb {
    background: var(--electric-blue);
    border-radius: 4px;
}

.accounts-connection-container::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}

.account-input-card {
    background: rgba(20, 25, 35, 0.9);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.account-input-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--electric-blue), var(--neon-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.account-input-card:hover {
    border-color: var(--electric-blue);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
    transform: translateX(4px);
}

.account-input-card:hover::before {
    opacity: 1;
}

.account-number-badge {
    flex-shrink: 0;
}

.number-circle {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--electric-blue), var(--neon-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-display);
    color: white;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(176, 38, 255, 0.7);
    }
}

.account-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    font-size: 15px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    outline: none;
}

.account-input:focus {
    border-color: var(--electric-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.account-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.2);
}

.account-input::placeholder {
    color: var(--text-secondary);
}

.verify-account-btn {
    padding: 14px 28px;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid var(--electric-blue);
    border-radius: 12px;
    color: var(--electric-blue);
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font-display);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.verify-account-btn:hover:not(:disabled) {
    background: var(--electric-blue);
    color: white;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.verify-account-btn:active:not(:disabled) {
    transform: translateY(0);
}

.verify-account-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.verify-account-btn.verified {
    background: var(--success-green);
    border-color: var(--success-green);
    color: white;
    animation: successPulse 0.6s ease-out;
}

.verify-account-btn.error {
    background: var(--success-green);
    border-color: var(--success-green);
    color: white;
    animation: shake 0.5s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.8);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.connection-info {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.connected-count {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--electric-blue);
}

.connected-count i {
    font-size: 20px;
}

.no-account-section {
    text-align: center;
    padding: 24px;
    background: rgba(176, 38, 255, 0.05);
    border: 1px dashed rgba(176, 38, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 24px;
}

.no-account-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15px;
}

.create-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--neon-purple), var(--electric-blue));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(176, 38, 255, 0.3);
}

.create-account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(176, 38, 255, 0.5);
}

.skip-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.skip-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    box-shadow: none;
}

/* ===================================
   STEP 5: DYNAMIC PRICING ENGINE
   =================================== */

.pricing-calculator {
    background: rgba(20, 25, 35, 0.95);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
}

.price-breakdown {
    margin-bottom: 32px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 15px;
}

.breakdown-value {
    font-weight: 600;
    color: var(--electric-blue);
    font-family: var(--font-display);
}

.breakdown-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
    margin: 16px 0;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.total-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-display);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.subscription-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.subscription-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.subscription-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(176, 38, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subscription-card:hover::before {
    opacity: 1;
}

.subscription-card:hover {
    border-color: var(--electric-blue);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    transform: translateY(-4px);
}

.subscription-card.active {
    border-color: var(--electric-blue);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.4);
}

.subscription-card.selected {
    border-color: var(--success-green);
    background: rgba(0, 255, 136, 0.15);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
    transform: scale(1.02);
}

.subscription-card.selected::after {
    content: '✓';
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    background: var(--success-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    animation: checkmarkPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.subscription-card.featured {
    border-color: var(--neon-purple);
}

.subscription-card.best-value {
    border-color: var(--gold);
}

.plan-badge {
    font-size: 14px;
    font-weight: 600;
    color: var(--electric-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--success-green);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.discount-badge.gold {
    background: var(--gold);
    color: var(--deep-navy);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.plan-price {
    margin: 16px 0;
}

.price-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.price-period {
    font-size: 18px;
    color: var(--text-secondary);
}

.plan-billing {
    color: var(--text-secondary);
    font-size: 14px;
}

.best-value-tag {
    background: linear-gradient(135deg, var(--gold), var(--neon-purple));
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 12px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* ===================================
   MOBILE RESPONSIVENESS
   =================================== */

@media (max-width: 768px) {
    .account-input-card {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    
    .number-circle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .verify-account-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .subscription-options {
        grid-template-columns: 1fr;
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    .total-value {
        font-size: 28px;
    }
    
    .accounts-connection-container {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .account-fields {
        gap: 8px;
    }
    
    .account-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .number-circle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .pricing-calculator {
        padding: 20px;
    }
}
