/* =====================================================
   WIZARD MODE - FULL (SCOPED)
   ===================================================== */

#wizard-mode .wizard-progress {
    max-width: 600px;
    margin: 0 auto 48px;
    position: relative;
}

#wizard-mode .progress-track {
    position: absolute;
    top: 20px;
    left: 60px;
    right: 60px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    z-index: 0;
}

#wizard-mode .progress-fill {
    height: 100%;
    background: var(--primary-blue);
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
    position: relative;
    overflow: hidden;
}

#wizard-mode .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

#wizard-mode .progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

#wizard-mode .progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#wizard-mode .step-circle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 3px solid var(--gray-200);
    border-radius: 50%;
    transition: all 0.3s ease;
}

#wizard-mode .step-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-400);
}

#wizard-mode .step-check {
    display: none;
    color: white;
    font-size: 16px;
}

#wizard-mode .progress-step.active .step-circle {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    animation: circlePulse 2s infinite;
}

@keyframes circlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}

#wizard-mode .progress-step.active .step-num {
    color: white;
}

#wizard-mode .progress-step.completed .step-circle {
    border-color: var(--success-green);
    background: var(--success-green);
}

#wizard-mode .progress-step.completed .step-num {
    display: none;
}

#wizard-mode .progress-step.completed .step-check {
    display: block;
    animation: checkmarkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

#wizard-mode .step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
}

#wizard-mode .progress-step.active .step-label,
#wizard-mode .progress-step.completed .step-label {
    color: var(--gray-700);
}

/* Steps base */
#wizard-mode .wizard-step {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#wizard-mode .wizard-step.active {
    display: block;
    opacity: 1;
    animation: slideIn 0.4s ease;
}

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

#wizard-mode .step-card {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid var(--gray-200);
}

/* Step header */
#wizard-mode .step-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

#wizard-mode .step-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    border-radius: 14px;
    flex-shrink: 0;
}

#wizard-mode .step-icon i {
    font-size: 24px;
    color: var(--primary-blue);
}

#wizard-mode .step-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

#wizard-mode .step-icon.success i {
    color: var(--success-green);
}

#wizard-mode .step-info h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

#wizard-mode .step-info p {
    font-size: clamp(14px, 2vw, 15px);
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

/* =====================================================
   STEP 1: GEOLOCATION
   ===================================================== */

#wizard-mode .geo-map-visual {
    margin-bottom: 32px;
    display: none;
}

#wizard-mode .region-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

#wizard-mode .region-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    will-change: transform;
}

#wizard-mode .region-card:hover:not(.selected) {
    background: white;
    border-color: var(--gray-200);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

#wizard-mode .region-card.selected {
    background: rgba(37, 99, 235, 0.04);
    border-color: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    animation: selectPulse 0.4s ease;
}

@keyframes selectPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

#wizard-mode .region-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--gray-100);
    flex-shrink: 0;
}

#wizard-mode .region-icon i {
    font-size: 20px;
    color: var(--gray-500);
}

#wizard-mode .region-card.selected .region-icon {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconPop {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

#wizard-mode .region-card.selected .region-icon i {
    color: white;
}

#wizard-mode .region-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

#wizard-mode .region-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

#wizard-mode .region-info {
    font-size: 12px;
    color: var(--gray-400);
}

#wizard-mode .region-latency {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--success-green);
    background: rgba(16, 185, 129, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
}

#wizard-mode .region-latency i {
    font-size: 12px;
}

/* Feedback alert */
#wizard-mode .feedback-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    margin-bottom: 24px;
    animation: alertSlideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes alertSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#wizard-mode .feedback-alert.hidden {
    display: none;
}

#wizard-mode .feedback-alert i {
    font-size: 18px;
    color: var(--warning-amber);
}

#wizard-mode .feedback-alert span {
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.5;
}

/* =====================================================
   STEP 2: WORKLOAD
   ===================================================== */

#wizard-mode .workload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

#wizard-mode .workload-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    will-change: transform;
}

#wizard-mode .workload-card:hover:not(.selected) {
    background: white;
    border-color: var(--gray-200);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

#wizard-mode .workload-card.selected {
    background: rgba(37, 99, 235, 0.04);
    border-color: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    animation: selectPulse 0.4s ease;
}

#wizard-mode .workload-icon-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    flex-shrink: 0;
}

#wizard-mode .workload-icon-wrap i {
    font-size: 24px;
    color: var(--gray-500);
}

#wizard-mode .workload-card.selected .workload-icon-wrap {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#wizard-mode .workload-card.selected .workload-icon-wrap i {
    color: white;
}

#wizard-mode .workload-content {
    flex: 1;
}

#wizard-mode .workload-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

#wizard-mode .workload-content p {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

#wizard-mode .workload-specs {
    display: flex;
    gap: 12px;
}

#wizard-mode .workload-specs span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--gray-400);
}

#wizard-mode .workload-specs i {
    font-size: 12px;
}

#wizard-mode .workload-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    z-index: 1;
}

#wizard-mode .workload-badge.db {
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
}

#wizard-mode .workload-badge.scale {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success-green);
}

#wizard-mode .workload-badge.power {
    background: rgba(239, 68, 68, 0.08);
    color: var(--error-red);
}

/* =====================================================
   STEP 3: TRAFFIC
   ===================================================== */

#wizard-mode .traffic-visual {
    background: linear-gradient(135deg, var(--gray-50), white);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    border: 1px solid var(--gray-100);
}

#wizard-mode .traffic-display {
    text-align: center;
    margin-bottom: 32px;
}

#wizard-mode .traffic-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    letter-spacing: -0.02em;
}

#wizard-mode .traffic-label {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 8px;
}

#wizard-mode .traffic-slider-wrap {
    max-width: 500px;
    margin: 0 auto;
}

#wizard-mode .traffic-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 12px;
}

#wizard-mode .traffic-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
}

#wizard-mode .traffic-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.5);
}

#wizard-mode .traffic-slider::-webkit-slider-thumb:active {
    transform: scale(1.05);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.4);
}

#wizard-mode .traffic-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
}

#wizard-mode .traffic-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.5);
}

#wizard-mode .traffic-scale {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 8px;
}

#wizard-mode .resource-suggestion {
    background: white;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    margin-bottom: 32px;
}

#wizard-mode .suggestion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#wizard-mode .suggestion-header i {
    font-size: 20px;
    color: var(--warning-amber);
}

#wizard-mode .suggestion-header span {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

#wizard-mode .suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

#wizard-mode .suggestion-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 10px;
    transition: all 0.3s ease;
}

#wizard-mode .suggestion-item:hover {
    transform: translateY(-3px);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#wizard-mode .suggestion-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-100);
    transition: transform 0.3s ease;
}

#wizard-mode .suggestion-item:hover .suggestion-icon {
    transform: scale(1.1) rotate(5deg);
}

#wizard-mode .suggestion-icon i {
    font-size: 16px;
    color: var(--primary-blue);
}

#wizard-mode .suggestion-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
}

#wizard-mode .suggestion-label {
    font-size: 11px;
    color: var(--gray-400);
}

/* =====================================================
   STEP 4: RESULTS
   ===================================================== */

#wizard-mode .results-card {
    max-width: 1100px;
}

#wizard-mode .selection-summary {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 12px;
}

#wizard-mode .summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-600);
}

#wizard-mode .summary-item i {
    font-size: 16px;
    color: var(--gray-400);
}

#wizard-mode .provider-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 8px;
    border: 1px solid var(--gray-100);
}

#wizard-mode .provider-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

#wizard-mode .provider-tier {
    font-size: 12px;
    color: var(--gray-500);
}

#wizard-mode .score-circle.alt {
    background: linear-gradient(135deg, var(--gray-600), var(--gray-700));
}

#wizard-mode .score-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

#wizard-mode .score-max {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

#wizard-mode .score-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--success-green);
}

#wizard-mode .spec-item i {
    font-size: 14px;
    color: var(--gray-400);
}

#wizard-mode .btn-view-plan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

#wizard-mode .btn-view-plan:hover {
    background: var(--primary-dark);
    color: white;
}

#wizard-mode .btn-view-plan:active {
    transform: scale(0.97);
}

#wizard-mode .btn-view-plan.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

#wizard-mode .btn-view-plan.secondary:hover {
    background: var(--gray-200);
}

/* Results placeholder */
#wizard-mode .results-placeholder {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-400);
}

#wizard-mode .placeholder-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: spin 2s linear infinite;
}

#wizard-mode .results-placeholder p {
    font-size: 16px;
    color: var(--gray-500);
}

/* Step actions */
#wizard-mode .step-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
    flex-wrap: wrap;
}

/* =====================================================
   RESPONSIVE - WIZARD FULL
   ===================================================== */

@media (max-width: 992px) {
    #wizard-mode .results-comparison {
        grid-template-columns: 1fr;
    }

    #wizard-mode .wizard-progress {
        margin-bottom: 36px;
    }
}

@media (max-width: 768px) {
    #wizard-mode .wizard-progress {
        max-width: 100%;
        margin-bottom: 28px;
        padding: 0 8px;
    }

    #wizard-mode .progress-track {
        left: 40px;
        right: 40px;
        top: 16px;
        height: 3px;
    }

    #wizard-mode .step-circle {
        width: 36px;
        height: 36px;
    }

    #wizard-mode .step-num {
        font-size: 12px;
    }

    #wizard-mode .step-label {
        font-size: 11px;
    }

    #wizard-mode .step-card {
        padding: 20px 16px;
        border-radius: 16px;
        margin: 0 4px;
    }

    #wizard-mode .step-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        margin-bottom: 24px;
    }

    #wizard-mode .step-icon {
        margin: 0 auto;
        width: 48px;
        height: 48px;
    }

    #wizard-mode .step-icon i {
        font-size: 20px;
    }

    #wizard-mode .step-info h2 {
        font-size: 1.2rem;
    }

    #wizard-mode .step-info p {
        font-size: 13px;
    }

    #wizard-mode .region-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    #wizard-mode .region-card {
        padding: 12px;
        gap: 10px;
    }

    #wizard-mode .region-card .region-icon {
        width: 36px;
        height: 36px;
    }

    #wizard-mode .region-card .region-icon i {
        font-size: 16px;
    }

    #wizard-mode .region-card .region-name {
        font-size: 13px;
    }

    #wizard-mode .region-card .region-countries {
        font-size: 10px;
    }

    #wizard-mode .workload-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    #wizard-mode .workload-card {
        padding: 14px 12px;
    }

    #wizard-mode .workload-card .workload-icon {
        width: 40px;
        height: 40px;
    }

    #wizard-mode .workload-card .workload-title {
        font-size: 13px;
    }

    #wizard-mode .workload-card .workload-desc {
        font-size: 10px;
    }

    #wizard-mode .suggestion-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    #wizard-mode .suggestion-item {
        padding: 10px 6px;
    }

    #wizard-mode .suggestion-icon {
        width: 32px;
        height: 32px;
    }

    #wizard-mode .suggestion-value {
        font-size: 12px;
    }

    #wizard-mode .suggestion-label {
        font-size: 9px;
    }

    #wizard-mode .selection-summary {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 12px;
    }

    #wizard-mode .summary-chip {
        padding: 6px 10px;
        font-size: 11px;
    }

    #wizard-mode .traffic-display {
        padding: 16px;
    }

    #wizard-mode .traffic-number {
        font-size: 2.2rem;
    }

    #wizard-mode .traffic-unit {
        font-size: 0.9rem;
    }

    #wizard-mode .step-actions {
        flex-direction: column;
        gap: 8px;
        padding-top: 16px;
    }

    #wizard-mode .btn-next,
    #wizard-mode .btn-back,
    #wizard-mode .btn-calculate,
    #wizard-mode .btn-restart,
    #wizard-mode .btn-compare {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }

    #wizard-mode .progress-fill::after {
        animation: none;
    }
}

@media (max-width: 480px) {
    #wizard-mode .wizard-progress {
        margin-bottom: 20px;
    }

    #wizard-mode .progress-track {
        left: 30px;
        right: 30px;
    }

    #wizard-mode .step-circle {
        width: 32px;
        height: 32px;
    }

    #wizard-mode .step-num {
        font-size: 11px;
    }

    #wizard-mode .progress-step .step-label {
        display: none;
    }

    #wizard-mode .step-card {
        padding: 16px 12px;
        margin: 0;
        border-radius: 12px;
    }

    #wizard-mode .step-icon {
        width: 44px;
        height: 44px;
    }

    #wizard-mode .step-info h2 {
        font-size: 1.1rem;
    }

    #wizard-mode .region-cards,
    #wizard-mode .workload-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    #wizard-mode .region-card,
    #wizard-mode .workload-card {
        padding: 10px;
    }

    #wizard-mode .region-card .region-icon,
    #wizard-mode .workload-card .workload-icon {
        width: 32px;
        height: 32px;
    }

    #wizard-mode .region-card .region-name,
    #wizard-mode .workload-card .workload-title {
        font-size: 12px;
    }

    #wizard-mode .region-card .region-countries,
    #wizard-mode .workload-card .workload-desc {
        font-size: 9px;
    }

    #wizard-mode .suggestion-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #wizard-mode .traffic-number {
        font-size: 1.8rem;
    }

    #wizard-mode .traffic-unit {
        font-size: 0.85rem;
    }
}
