/* ========================================
   Blueberry Markets Account Linking Styles
======================================== */

.link-account-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.link-account-card {
    width: 100%;
    max-width: 700px;
    background: rgba(10, 10, 20, 0.9);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(66, 153, 225, 0.3);
}

/* Header */
.link-header {
    text-align: center;
    margin-bottom: 40px;
}

.blueberry-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4299e1, #667eea);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(66, 153, 225, 0.4);
}

.link-title {
    font-family: 'Space Grotesk', monospace;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.link-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Progress Indicator */
.link-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(66, 153, 225, 0.2);
    border: 2px solid rgba(66, 153, 225, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', monospace;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #4299e1, #667eea);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.5);
}

.progress-step.completed .step-circle {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    color: #00ff88;
}

.progress-step span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.progress-line {
    width: 80px;
    height: 2px;
    background: rgba(66, 153, 225, 0.2);
    margin: 0 16px;
}

/* Link Steps */
.link-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.link-step.active {
    display: block;
}

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

.step-title {
    font-family: 'Space Grotesk', monospace;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin: 0 0 12px 0;
}

.step-description {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin: 0 0 32px 0;
}

/* Account Type Selection */
.account-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.account-type-card {
    padding: 32px 24px;
    background: rgba(66, 153, 225, 0.05);
    border: 2px solid rgba(66, 153, 225, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.account-type-card:hover {
    background: rgba(66, 153, 225, 0.1);
    border-color: rgba(66, 153, 225, 0.5);
    transform: translateY(-4px);
}

.account-type-card.selected {
    background: rgba(66, 153, 225, 0.15);
    border-color: #4299e1;
    box-shadow: 0 8px 24px rgba(66, 153, 225, 0.4);
}

.type-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.type-icon.passive-icon {
    background: rgba(66, 153, 225, 0.2);
    color: #4299e1;
}

.type-icon.manual-icon {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.account-type-card h3 {
    font-family: 'Space Grotesk', monospace;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.account-type-card p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(66, 153, 225, 0.3);
    border: 1px solid #4299e1;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #4299e1;
}

.type-badge.gold {
    background: rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
    color: #ffd700;
}

/* Credentials Form */
.credentials-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(66, 153, 225, 0.05);
    border: 1px solid rgba(66, 153, 225, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4299e1;
    background: rgba(66, 153, 225, 0.1);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.toggle-visibility {
    position: absolute;
    right: 12px;
    top: 38px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.toggle-visibility:hover {
    color: #4299e1;
}

.security-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    margin-top: 8px;
}

.security-note i {
    color: #00ff88;
    font-size: 20px;
}

.security-note span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Verification */
.verification-status {
    text-align: center;
    padding: 40px 20px;
}

.verification-spinner {
    font-size: 48px;
    color: #4299e1;
    margin-bottom: 24px;
}

.verification-title {
    font-family: 'Space Grotesk', monospace;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.verification-description {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 32px 0;
}

.verification-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.verify-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(66, 153, 225, 0.05);
    border-radius: 10px;
}

.verify-item i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.3);
}

.verify-item.active i {
    color: #4299e1;
}

.verify-item.completed i {
    color: #00ff88;
}

.verify-item span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Verification Success */
.verification-success {
    text-align: center;
    padding: 40px 20px;
}

.verification-success.hidden {
    display: none;
}

.success-icon {
    font-size: 64px;
    color: #00ff88;
    margin-bottom: 24px;
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-title {
    font-family: 'Space Grotesk', monospace;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.success-description {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 32px 0;
}

.account-summary {
    max-width: 400px;
    margin: 0 auto;
    padding: 24px;
    background: rgba(66, 153, 225, 0.05);
    border: 1px solid rgba(66, 153, 225, 0.3);
    border-radius: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.summary-value {
    font-family: 'Space Grotesk', monospace;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.summary-value.success {
    color: #00ff88;
}

/* Action Buttons */
.link-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.btn-cancel,
.btn-next {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-family: 'Space Grotesk', monospace;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-next {
    background: linear-gradient(135deg, #4299e1, #667eea);
    border: none;
    color: #ffffff;
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.5);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Help Section */
.help-section {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.help-section p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 12px 0;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #4299e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.help-link:hover {
    color: #667eea;
}

/* Responsive */
@media (max-width: 640px) {
    .link-account-card {
        padding: 32px 24px;
    }

    .account-type-grid {
        grid-template-columns: 1fr;
    }

    .link-progress {
        transform: scale(0.9);
    }

    .progress-line {
        width: 40px;
    }
}
