/**
 * CarMatch - Preference Quiz Styles
 * Facebook Dark Theme
 */

/* ============================================================================
   PROMPT MODAL
   ============================================================================ */

.carmatch-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.carmatch-prompt-modal.visible {
    opacity: 1;
}

.carmatch-prompt-content {
    background: #242526;
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    border: 1px solid #3a3b3c;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.carmatch-prompt-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #b0b3b8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
}

.carmatch-prompt-close:hover {
    color: #e4e6eb;
}

.carmatch-prompt-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.3);
}

.carmatch-prompt-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

.carmatch-prompt-title {
    font-size: 22px;
    font-weight: 700;
    color: #e4e6eb;
    margin: 0 0 10px 0;
}

.carmatch-prompt-text {
    font-size: 14px;
    color: #b0b3b8;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.carmatch-prompt-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 16px;
}

.carmatch-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #e4e6eb;
}

.carmatch-feature-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.carmatch-prompt-start {
    width: 100%;
    padding: 14px 24px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.carmatch-prompt-start:hover {
    background: #166fe5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.carmatch-prompt-skip {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.carmatch-prompt-skip button {
    background: none;
    border: none;
    color: #b0b3b8;
    font-size: 13px;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s;
}

.carmatch-prompt-skip button:hover {
    color: #e4e6eb;
}

/* ============================================================================
   MAIN QUIZ CONTAINER
   ============================================================================ */

.carmatch-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #18191a;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carmatch-container.visible {
    opacity: 1;
}

/* Header */
.carmatch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #3a3b3c;
    background: #242526;
}

.carmatch-back {
    background: none;
    border: none;
    color: #b0b3b8;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.carmatch-back svg {
    width: 24px;
    height: 24px;
}

.carmatch-back:hover {
    color: #e4e6eb;
}

.carmatch-title {
    font-size: 18px;
    font-weight: 700;
    color: #1877f2;
}

/* New branded header (v2.1.0) */
.carmatch-header-brand {
    text-align: center;
    flex: 1;
}

.carmatch-brand-logo {
    font-size: 14px;
    font-weight: 800;
    color: #e4e6eb;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.carmatch-brand-logo .brand-pro {
    color: #1877f2;
}

.carmatch-brand-title {
    font-size: 18px;
    font-weight: 700;
    color: #1877f2;
    line-height: 1.2;
}

.carmatch-brand-subtitle {
    font-size: 10px;
    color: #6a6a6a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.carmatch-counter {
    font-size: 14px;
    color: #b0b3b8;
    font-weight: 500;
}

/* Progress Bar */
.carmatch-progress-container {
    padding: 16px 20px 8px;
    background: #242526;
}

.carmatch-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
}

.carmatch-progress-bar.yellow {
    background: linear-gradient(90deg, #ffc107 0%, #ffca28 100%);
}

.carmatch-progress-bar.light-green {
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
}

.carmatch-progress-bar.green {
    background: linear-gradient(90deg, #00d9a5 0%, #00b894 100%);
}

.carmatch-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    color: #b0b3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Deck */
.carmatch-deck {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    background: #18191a;
}

/* Card */
.carmatch-card {
    width: 100%;
    max-width: 340px;
    background: #242526;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    border: 1px solid #3a3b3c;
}

.carmatch-card:active {
    cursor: grabbing;
}

.carmatch-card-image {
    position: relative;
    height: 260px;
    background: #18191a;
}

.carmatch-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carmatch-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.carmatch-swipe-indicator {
    position: absolute;
    top: 16px;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.carmatch-swipe-indicator svg {
    width: 28px;
    height: 28px;
}

.carmatch-swipe-indicator.like {
    right: 16px;
    background: rgba(0, 217, 165, 0.95);
    color: white;
    border: 2px solid #00d9a5;
    transform: rotate(12deg);
}

.carmatch-swipe-indicator.dislike {
    left: 16px;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border: 2px solid #ef4444;
    transform: rotate(-12deg);
}

.carmatch-card-info {
    padding: 16px;
}

.carmatch-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #e4e6eb;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carmatch-card-subtitle {
    font-size: 14px;
    color: #b0b3b8;
    margin-bottom: 12px;
}

.carmatch-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.carmatch-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #1877f2;
}

.carmatch-card-stat {
    font-size: 13px;
    color: #b0b3b8;
}

.carmatch-card-score {
    font-size: 12px;
    color: #b0b3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Feed Question - clarifies purpose of swiping */
.carmatch-feed-question {
    text-align: center;
    padding: 12px 20px 0;
    font-size: 14px;
    color: #b0b3b8;
    background: #18191a;
    font-weight: 500;
}

/* Action Buttons */
.carmatch-actions {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px 20px;
    background: #18191a;
}

.carmatch-action {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.carmatch-action svg {
    width: 26px;
    height: 26px;
}

.carmatch-action.dislike {
    background: #242526;
    border: 2px solid #ef4444;
    color: #ef4444;
}

.carmatch-action.dislike:hover {
    transform: scale(1.1);
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.carmatch-action.like {
    background: #242526;
    border: 2px solid #1877f2;
    color: #1877f2;
}

.carmatch-action.like:hover {
    transform: scale(1.1);
    background: #1877f2;
    color: white;
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.4);
}

/* Hints */
.carmatch-hint {
    display: flex;
    justify-content: space-between;
    padding: 0 32px 12px;
    font-size: 11px;
    color: #b0b3b8;
    background: #18191a;
}

/* Done Button - Make it prominent and impossible to miss */
.carmatch-done-container {
    padding: 12px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, transparent 0%, rgba(24, 119, 242, 0.1) 100%);
    border-top: 1px solid rgba(24, 119, 242, 0.3);
    animation: carmatch-pulse-bg 2s ease-in-out infinite;
}

@keyframes carmatch-pulse-bg {
    0%, 100% { background: linear-gradient(180deg, transparent 0%, rgba(24, 119, 242, 0.1) 100%); }
    50% { background: linear-gradient(180deg, transparent 0%, rgba(24, 119, 242, 0.2) 100%); }
}

.carmatch-done-btn {
    padding: 14px 32px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.4);
    animation: carmatch-pulse-btn 1.5s ease-in-out infinite;
}

@keyframes carmatch-pulse-btn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.carmatch-done-btn:hover {
    transform: scale(1.05);
    background: #166fe5;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.5);
    animation: none;
}

.carmatch-done-hint {
    font-size: 12px;
    color: #b0b3b8;
    text-align: center;
}

/* Loading */
.carmatch-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #18191a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.carmatch-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #1877f2;
    border-radius: 50%;
    animation: carmatch-spin 1s linear infinite;
}

@keyframes carmatch-spin {
    to { transform: rotate(360deg); }
}

.carmatch-loading-text {
    font-size: 14px;
    color: #b0b3b8;
}

/* Error */
.carmatch-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #18191a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    text-align: center;
}

.carmatch-error p {
    color: #ef4444;
    font-size: 15px;
}

.carmatch-error button {
    padding: 12px 24px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Complete/Out of Listings */
.carmatch-complete {
    text-align: center;
    padding: 40px 20px;
}

.carmatch-complete-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.carmatch-complete h3 {
    font-size: 22px;
    color: #e4e6eb;
    margin: 0 0 8px 0;
}

.carmatch-complete p {
    font-size: 15px;
    color: #b0b3b8;
    margin: 0 0 24px 0;
}

/* ============================================================================
   RESULTS SCREEN
   ============================================================================ */

.carmatch-results {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    overflow-y: auto;
    background: #18191a;
}

.carmatch-results-header {
    margin-bottom: 28px;
}

.carmatch-results-icon {
    font-size: 56px;
    margin-bottom: 14px;
}

.carmatch-results-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #e4e6eb;
    margin: 0 0 8px 0;
}

.carmatch-results-header p {
    font-size: 14px;
    color: #b0b3b8;
    margin: 0;
}

.carmatch-results-stats {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
}

.carmatch-stat {
    text-align: center;
}

.carmatch-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1877f2;
}

.carmatch-stat-label {
    font-size: 12px;
    color: #b0b3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carmatch-profile-strength {
    width: 100%;
    max-width: 360px;
    margin-bottom: 28px;
}

.carmatch-profile-strength-label {
    font-size: 14px;
    color: #e4e6eb;
    margin-bottom: 8px;
}

.carmatch-profile-strength-label span {
    font-weight: 700;
}

.carmatch-profile-strength-label span.high { color: #1877f2; }
.carmatch-profile-strength-label span.medium { color: #ffc107; }
.carmatch-profile-strength-label span.low { color: #ef4444; }

.carmatch-profile-strength-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.carmatch-profile-strength-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.carmatch-profile-strength-fill.high { background: linear-gradient(90deg, #1877f2 0%, #42a5f5 100%); }
.carmatch-profile-strength-fill.medium { background: linear-gradient(90deg, #ffc107 0%, #ffca28 100%); }
.carmatch-profile-strength-fill.low { background: linear-gradient(90deg, #ef4444 0%, #f87171 100%); }

.carmatch-profile-strength-hint {
    font-size: 13px;
    color: #b0b3b8;
    margin: 0;
}

/* Results Preference Tags */
.carmatch-results-prefs {
    width: 100%;
    max-width: 400px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.carmatch-pref-section {
    text-align: left;
}

.carmatch-pref-title {
    font-size: 11px;
    color: #b0b3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.carmatch-pref-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.carmatch-pref-tag {
    background: rgba(24, 119, 242, 0.15);
    color: #42a5f5;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(24, 119, 242, 0.3);
}

.carmatch-pref-score {
    background: rgba(24, 119, 242, 0.3);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.carmatch-pref-empty {
    color: #6a6a6a;
    font-size: 13px;
    font-style: italic;
}

.carmatch-results-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 280px;
}

.carmatch-primary-btn {
    padding: 14px 24px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.carmatch-primary-btn:hover {
    background: #166fe5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.carmatch-secondary-btn {
    padding: 12px 24px;
    background: transparent;
    color: #b0b3b8;
    border: 1px solid #3a3b3c;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.carmatch-secondary-btn:hover {
    background: #3a3b3c;
    color: #e4e6eb;
}

/* ============================================================================
   MY PORTAL SECTION
   ============================================================================ */

.carmatch-portal-section {
    background: #242526;
    border: 1px solid #3a3b3c;
    border-radius: 10px;
    padding: 20px;
}

.carmatch-portal-status {
    text-align: center;
}

.carmatch-portal-status.not-completed p {
    color: #b0b3b8;
    margin: 0 0 6px 0;
    font-size: 14px;
}

.carmatch-portal-status.not-completed .hint {
    font-size: 13px;
    margin-bottom: 14px;
}

.carmatch-portal-strength {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.strength-label {
    font-size: 13px;
    color: #b0b3b8;
}

.strength-value {
    font-size: 16px;
    font-weight: 700;
}

.strength-value.high { color: #1877f2; }
.strength-value.medium { color: #ffc107; }
.strength-value.low { color: #ef4444; }

.carmatch-portal-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 14px;
}

.carmatch-portal-bar-fill {
    height: 100%;
    border-radius: 3px;
}

.carmatch-portal-bar-fill.high { background: linear-gradient(90deg, #1877f2 0%, #42a5f5 100%); }
.carmatch-portal-bar-fill.medium { background: linear-gradient(90deg, #ffc107 0%, #ffca28 100%); }
.carmatch-portal-bar-fill.low { background: linear-gradient(90deg, #ef4444 0%, #f87171 100%); }

.carmatch-portal-prefs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 14px;
}

.pref-item {
    font-size: 13px;
}

.pref-label {
    color: #b0b3b8;
    margin-right: 4px;
}

.pref-value {
    color: #e4e6eb;
    font-weight: 600;
}

.carmatch-retake-btn,
.carmatch-start-btn {
    padding: 10px 20px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.carmatch-retake-btn:hover,
.carmatch-start-btn:hover {
    background: #166fe5;
    transform: translateY(-1px);
}

.carmatch-retake-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #b0b3b8;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .carmatch-header {
        padding: 14px 16px;
    }

    .carmatch-title {
        font-size: 16px;
    }

    .carmatch-counter {
        font-size: 13px;
    }

    .carmatch-progress-container {
        padding: 12px 16px 6px;
    }

    .carmatch-deck {
        padding: 16px;
    }

    .carmatch-card {
        max-width: 100%;
    }

    .carmatch-actions {
        padding: 16px;
    }

    .carmatch-hint {
        padding: 0 24px 10px;
    }

    .carmatch-done-container {
        padding: 10px 16px 16px;
    }

    .carmatch-results {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .carmatch-prompt-content {
        padding: 24px 20px;
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .carmatch-prompt-icon {
        width: 60px;
        height: 60px;
    }

    .carmatch-prompt-icon svg {
        width: 30px;
        height: 30px;
    }

    .carmatch-prompt-title {
        font-size: 20px;
    }

    .carmatch-prompt-text {
        font-size: 13px;
    }

    .carmatch-prompt-start {
        padding: 12px 20px;
        font-size: 14px;
    }

    .carmatch-header {
        padding: 12px 14px;
    }

    .carmatch-title {
        font-size: 15px;
    }

    .carmatch-card-image {
        height: 200px;
    }

    .carmatch-card-info {
        padding: 14px;
    }

    .carmatch-card-title {
        font-size: 16px;
    }

    .carmatch-card-subtitle {
        font-size: 13px;
    }

    .carmatch-card-price {
        font-size: 16px;
    }

    .carmatch-actions {
        gap: 24px;
        padding: 14px;
    }

    .carmatch-action {
        width: 54px;
        height: 54px;
    }

    .carmatch-action svg {
        width: 24px;
        height: 24px;
    }

    .carmatch-done-btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .carmatch-results-header h2 {
        font-size: 22px;
    }

    .carmatch-results-stats {
        gap: 20px;
    }

    .carmatch-stat-value {
        font-size: 26px;
    }

    .carmatch-profile-strength {
        max-width: 100%;
    }

    .carmatch-primary-btn,
    .carmatch-secondary-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
}

@media (max-width: 380px) {
    .carmatch-card-image {
        height: 180px;
    }

    .carmatch-action {
        width: 50px;
        height: 50px;
    }

    .carmatch-action svg {
        width: 22px;
        height: 22px;
    }

    .carmatch-actions {
        gap: 20px;
    }
}

/* iOS safe area support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .carmatch-actions {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .carmatch-done-container {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .carmatch-results-actions {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ============================================================================
   CARMATCH 2.0: LIVE PROFILE PANEL
   ============================================================================ */

/* Main layout - side by side on desktop, stacked on mobile */
.carmatch-main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.carmatch-card-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Profile Panel - Desktop Sidebar */
.carmatch-profile-panel {
    width: 280px;
    background: #242526;
    border-left: 1px solid #3a3b3c;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.profile-panel-header {
    padding: 16px;
    background: #2d2e30;
    border-bottom: 1px solid #3a3b3c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.profile-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: #e4e6eb;
}

.profile-panel-toggle {
    font-size: 12px;
    color: #b0b3b8;
    transition: transform 0.3s ease;
}

.profile-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Profile Sections */
.profile-section {
    margin-bottom: 20px;
}

.profile-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #b0b3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Profile Bars */
.profile-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-bar-label {
    width: 70px;
    font-size: 12px;
    color: #b0b3b8;
    flex-shrink: 0;
}

.profile-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.profile-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #00d9a5);
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    position: relative;
}

/* Pulse animation on bar change */
.profile-bar-fill.pulse {
    animation: barPulse 0.3s ease-out;
}

@keyframes barPulse {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(1.3); }
    100% { transform: scaleY(1); }
}

.profile-bar-value {
    width: 36px;
    font-size: 11px;
    color: #e4e6eb;
    text-align: right;
    font-weight: 600;
    flex-shrink: 0;
}

/* Price Range Display */
.profile-price-range {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 14px;
    border-radius: 8px;
}

.profile-price-range .price-min,
.profile-price-range .price-max {
    font-size: 13px;
    color: #b0b3b8;
}

.profile-price-range .price-sweet {
    font-size: 16px;
    font-weight: 700;
    color: #00d9a5;
}

.profile-price-range .price-arrow {
    color: #3a3b3c;
    font-size: 11px;
}

/* Profile Strength Section */
.profile-strength-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px;
    border-radius: 10px;
    margin-top: 12px;
}

.profile-strength-label {
    font-size: 13px;
    color: #b0b3b8;
    margin-bottom: 10px;
}

#profileStrengthValue {
    font-weight: 700;
    color: #e4e6eb;
}

.profile-strength-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.profile-strength-fill {
    height: 100%;
    background: var(--accent, #ff6b35);
    border-radius: 5px;
    transition: width 0.5s ease, background 0.3s ease;
}

.profile-strength-hint {
    font-size: 11px;
    color: #6a6a6a;
    transition: color 0.3s ease;
}

/* ============================================================================
   CARMATCH 2.0: MOBILE RESPONSIVE - COLLAPSIBLE BOTTOM PANEL
   ============================================================================ */

@media (max-width: 1024px) {
    .carmatch-main-layout {
        flex-direction: column;
        overflow-y: auto; /* Allow scrolling on mobile */
    }

    /* Card area should not grow infinitely - let it shrink */
    .carmatch-card-area {
        flex: 0 1 auto;
        min-height: 0;
    }

    .carmatch-profile-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid #3a3b3c;
        max-height: 40vh;
        flex-shrink: 0; /* Don't shrink the profile panel */
        transition: max-height 0.3s ease;
    }

    .carmatch-profile-panel.collapsed {
        max-height: 52px;
    }

    .carmatch-profile-panel.collapsed .profile-panel-content {
        display: none;
    }

    .profile-panel-header {
        padding: 14px 16px;
    }

    .profile-panel-toggle {
        font-size: 14px;
    }

    .profile-panel-content {
        padding: 14px 16px;
        overflow-y: auto; /* Scroll inside panel if needed */
    }

    /* Horizontal layout for bars on tablet */
    .profile-bars {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 16px;
    }
}

@media (max-width: 768px) {
    .carmatch-profile-panel {
        max-height: 35vh;
    }

    .carmatch-profile-panel.collapsed {
        max-height: 48px;
    }

    .profile-panel-header {
        padding: 12px 14px;
    }

    .profile-panel-title {
        font-size: 13px;
    }

    .profile-panel-content {
        padding: 12px 14px;
    }

    .profile-section {
        margin-bottom: 16px;
    }

    .profile-section-title {
        font-size: 10px;
        margin-bottom: 10px;
    }

    /* Single column on small screens */
    .profile-bars {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .profile-bar-label {
        width: 60px;
        font-size: 11px;
    }

    .profile-bar-track {
        height: 6px;
    }

    .profile-bar-value {
        width: 32px;
        font-size: 10px;
    }

    .profile-price-range {
        padding: 10px 12px;
    }

    .profile-price-range .price-sweet {
        font-size: 14px;
    }

    .profile-price-range .price-min,
    .profile-price-range .price-max {
        font-size: 11px;
    }

    .profile-strength-section {
        padding: 12px;
    }

    .profile-strength-label {
        font-size: 12px;
    }

    .profile-strength-hint {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .carmatch-profile-panel {
        max-height: 30vh;
    }

    .carmatch-profile-panel.collapsed {
        max-height: 44px;
    }

    .profile-panel-header {
        padding: 10px 12px;
    }

    .profile-panel-content {
        padding: 10px 12px;
    }

    .profile-section {
        margin-bottom: 12px;
    }

    .profile-bar-item {
        gap: 8px;
    }
}

/* ============================================================================
   DONE CONTAINER MOBILE: Compact inline style to not block profile bars
   ============================================================================ */

@media (max-width: 768px) {
    .carmatch-done-container {
        padding: 8px 16px 10px;
        flex-direction: row;
        gap: 12px;
        background: rgba(24, 119, 242, 0.15);
        border-top: 1px solid rgba(24, 119, 242, 0.3);
    }

    .carmatch-done-btn {
        padding: 10px 20px;
        font-size: 14px;
        flex-shrink: 0;
    }

    .carmatch-done-hint {
        font-size: 11px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .carmatch-done-container {
        padding: 6px 12px 8px;
        gap: 8px;
    }

    .carmatch-done-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .carmatch-done-hint {
        font-size: 10px;
        display: none; /* Hide hint on very small screens to save space */
    }

    /* Smaller card image for small phones */
    .carmatch-card-image {
        height: 160px;
    }

    .carmatch-card-info {
        padding: 10px 12px;
    }

    .carmatch-card-title {
        font-size: 15px;
    }

    .carmatch-feed-question {
        padding: 8px 16px 0;
        font-size: 12px;
    }

    .carmatch-actions {
        padding: 10px;
    }

    .carmatch-hint {
        padding: 0 16px 6px;
        font-size: 10px;
    }

    /* Compact profile panel on small phones */
    .carmatch-profile-panel {
        max-height: 25vh; /* Smaller for small phones */
    }

    .profile-section {
        margin-bottom: 8px;
    }

    .profile-section-title {
        font-size: 9px;
        margin-bottom: 6px;
    }

    .profile-bar-track {
        height: 5px;
    }

    .profile-bar-label {
        width: 55px;
        font-size: 10px;
    }

    .profile-bar-value {
        width: 28px;
        font-size: 9px;
    }
}

/* Extra small phones (iPhone SE, mini, etc.) */
@media (max-width: 380px) {
    .carmatch-card-image {
        height: 140px;
    }

    .carmatch-card-info {
        padding: 8px 10px;
    }

    .carmatch-card-title {
        font-size: 14px;
    }

    .carmatch-card-subtitle,
    .carmatch-card-price {
        font-size: 12px;
    }

    .carmatch-actions {
        padding: 8px;
        gap: 16px;
    }

    .carmatch-action {
        width: 46px;
        height: 46px;
    }

    .carmatch-action svg {
        width: 20px;
        height: 20px;
    }

    .carmatch-feed-question {
        padding: 6px 12px 0;
        font-size: 11px;
    }

    .carmatch-hint {
        padding: 0 12px 4px;
        font-size: 9px;
    }

    .carmatch-done-container {
        padding: 4px 10px 6px;
    }

    .carmatch-done-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .carmatch-profile-panel {
        max-height: 22vh;
    }

    .profile-panel-header {
        padding: 8px 10px;
    }

    .profile-panel-title {
        font-size: 11px;
    }

    .profile-panel-content {
        padding: 8px 10px;
    }

    .profile-bar-item {
        gap: 6px;
    }

    .profile-bar-label {
        width: 50px;
        font-size: 9px;
    }

    .profile-bar-track {
        height: 4px;
    }

    .profile-bar-value {
        width: 24px;
        font-size: 8px;
    }
}

/* ============================================================================
   CARMATCH 2.0: ENHANCED CARD AREA WITH PROFILE PANEL
   ============================================================================ */

/* Adjust deck when profile panel is visible */
.carmatch-v2 .carmatch-deck {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
    background: #18191a;
    min-height: 0;
}

.carmatch-v2 .carmatch-card {
    max-width: 360px;
}

@media (max-width: 1024px) {
    .carmatch-v2 .carmatch-deck {
        flex: 1;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .carmatch-v2 .carmatch-card {
        max-width: 100%;
    }
}

/* ============================================================================
   COMPLETION SCREEN ENHANCEMENTS (CarMatch 2.0)
   ============================================================================ */

.carmatch-results-summary {
    width: 100%;
    max-width: 400px;
    background: #242526;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.carmatch-results-summary h4 {
    font-size: 14px;
    font-weight: 700;
    color: #e4e6eb;
    margin: 0 0 16px 0;
    text-align: center;
}

.carmatch-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.carmatch-result-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
}

.carmatch-result-label {
    font-size: 10px;
    color: #6a6a6a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.carmatch-result-value {
    font-size: 14px;
    font-weight: 600;
    color: #e4e6eb;
}

.carmatch-result-value.highlight {
    color: #00d9a5;
}

/* Top vehicles liked section */
.carmatch-top-vehicles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.carmatch-vehicle-tag {
    background: rgba(24, 119, 242, 0.2);
    color: #1877f2;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
}

/* ============================================================================
   CARMATCH 2.0: PREFERENCE PORTAL (Full Control Panel)
   ============================================================================ */

.preference-portal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.preference-portal-modal.visible {
    opacity: 1;
}

.preference-portal-content {
    background: #1a1a1a;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid #3a3b3c;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.preference-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #3a3b3c;
    background: #242526;
}

.preference-portal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #e4e6eb;
    margin: 0;
}

.preference-portal-close {
    background: none;
    border: none;
    color: #b0b3b8;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.preference-portal-close svg {
    width: 24px;
    height: 24px;
}

.preference-portal-close:hover {
    color: #e4e6eb;
}

.preference-portal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Portal Overview Section */
.portal-overview {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 28px;
}

.portal-strength-display {
    text-align: center;
}

.portal-strength-circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.portal-strength-circle svg {
    width: 100%;
    height: 100%;
}

.portal-strength-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: #e4e6eb;
}

.portal-strength-label {
    font-size: 11px;
    color: #6a6a6a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.portal-overview-text {
    flex: 1;
}

.portal-overview-text p {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #e4e6eb;
}

.portal-overview-text .hint {
    font-size: 12px;
    color: #6a6a6a;
}

/* Portal Sections */
.portal-section {
    margin-bottom: 28px;
}

.portal-section:last-child {
    margin-bottom: 0;
}

.portal-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #e4e6eb;
    margin: 0 0 16px 0;
}

.portal-section-title svg {
    width: 20px;
    height: 20px;
    color: #1877f2;
}

/* Portal Sliders */
.portal-sliders {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.portal-slider-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 16px;
    border-radius: 10px;
    transition: background 0.2s;
}

.portal-slider-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.portal-slider-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.portal-slider-icon {
    font-size: 18px;
}

.portal-slider-label {
    flex: 1;
    font-size: 14px;
    color: #e4e6eb;
    font-weight: 500;
}

.portal-slider-value {
    font-size: 13px;
    font-weight: 700;
    color: #1877f2;
    min-width: 40px;
    text-align: right;
}

/* Custom Range Slider Styling */
.portal-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.portal-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.4);
}

.portal-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.5);
}

.portal-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.portal-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
}

/* Price Controls */
.portal-price-controls {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.portal-price-field {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 16px;
    border-radius: 10px;
}

.portal-price-field label {
    font-size: 13px;
    color: #b0b3b8;
    width: 80px;
    flex-shrink: 0;
}

.portal-price-field input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.portal-price-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.portal-price-field input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.price-display {
    font-size: 14px;
    font-weight: 700;
    color: #b0b3b8;
    min-width: 60px;
    text-align: right;
}

.price-display.highlight {
    color: #00d9a5;
    font-size: 16px;
}

/* Portal Footer */
.preference-portal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #3a3b3c;
    background: #242526;
}

.portal-cancel-btn {
    padding: 12px 24px;
    background: transparent;
    color: #b0b3b8;
    border: 1px solid #3a3b3c;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.portal-cancel-btn:hover {
    background: #3a3b3c;
    color: #e4e6eb;
}

.portal-save-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.portal-save-btn svg {
    width: 18px;
    height: 18px;
}

.portal-save-btn:hover:not(:disabled) {
    background: #166fe5;
    transform: translateY(-1px);
}

.portal-save-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.portal-save-btn.saved {
    background: #00d9a5;
}

.saving-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: carmatch-spin 1s linear infinite;
}

/* Fine-Tune Button in Portal Section */
.carmatch-tune-btn {
    padding: 10px 20px;
    background: transparent;
    color: #1877f2;
    border: 1px solid #1877f2;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 10px;
}

.carmatch-tune-btn:hover {
    background: rgba(24, 119, 242, 0.1);
}

/* Portal Responsive */
@media (max-width: 640px) {
    .preference-portal-content {
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
    }

    .preference-portal-header {
        padding: 16px 20px;
    }

    .preference-portal-header h2 {
        font-size: 18px;
    }

    .preference-portal-body {
        padding: 20px;
    }

    .portal-overview {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 16px;
    }

    .portal-strength-circle {
        width: 70px;
        height: 70px;
    }

    .portal-strength-value {
        font-size: 16px;
    }

    .portal-section {
        margin-bottom: 24px;
    }

    .portal-section-title {
        font-size: 14px;
    }

    .portal-slider-item {
        padding: 12px 14px;
    }

    .portal-slider-header {
        margin-bottom: 8px;
    }

    .portal-slider-label {
        font-size: 13px;
    }

    .portal-price-field {
        flex-wrap: wrap;
        padding: 12px 14px;
    }

    .portal-price-field label {
        width: 100%;
        margin-bottom: 6px;
    }

    .preference-portal-footer {
        padding: 14px 20px;
    }

    .portal-cancel-btn,
    .portal-save-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* Colors grid on larger screens */
@media (min-width: 480px) {
    .portal-colors {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ============================================================================
   CARMATCH 2.0: MIGRATION MODAL
   ============================================================================ */

.carmatch-migration-modal .migration-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #00d9a5 100%);
    animation: migrationPulse 2s ease-in-out infinite;
}

@keyframes migrationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.carmatch-migration-content {
    max-width: 480px;
}

.carmatch-migration-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.migration-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
}

.migration-benefit .benefit-icon {
    font-size: 18px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.migration-benefit .benefit-text {
    font-size: 13px;
    color: #b0b3b8;
    line-height: 1.4;
}

.carmatch-migration-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0 16px;
}

.migration-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #3a3b3c;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.migration-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #1877f2;
}

.migration-option.recommended {
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
}

.migration-option.recommended:hover {
    background: rgba(24, 119, 242, 0.15);
}

.migration-option-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.migration-option-content {
    flex: 1;
}

.migration-option-title {
    font-size: 15px;
    font-weight: 700;
    color: #e4e6eb;
    margin-bottom: 4px;
}

.migration-option-desc {
    font-size: 13px;
    color: #b0b3b8;
}

.migration-option-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: #1877f2;
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 10px;
}

.carmatch-prompt-skip-btn {
    background: none;
    border: none;
    color: #6a6a6a;
    font-size: 13px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.carmatch-prompt-skip-btn:hover {
    color: #b0b3b8;
}

/* Migration Loading State */
.carmatch-migration-loading {
    text-align: center;
    padding: 48px 24px;
}

.carmatch-migration-loading .carmatch-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
}

.carmatch-migration-loading p {
    font-size: 15px;
    color: #b0b3b8;
    margin: 0;
}

/* Migration Success State */
.carmatch-migration-success {
    text-align: center;
    padding: 32px 24px;
}

.carmatch-migration-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #00d9a5, #00b894);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    animation: successBounce 0.5s ease-out;
}

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

.carmatch-migration-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: #e4e6eb;
    margin: 0 0 10px 0;
}

.carmatch-migration-success p {
    font-size: 14px;
    color: #b0b3b8;
    margin: 0 0 24px 0;
}

.carmatch-migration-success .carmatch-primary-btn {
    margin-bottom: 10px;
}

/* Migration Error State */
.carmatch-migration-error {
    text-align: center;
    padding: 32px 24px;
}

.carmatch-migration-error-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #ef4444;
}

.carmatch-migration-error h3 {
    font-size: 20px;
    font-weight: 700;
    color: #e4e6eb;
    margin: 0 0 10px 0;
}

.carmatch-migration-error p {
    font-size: 14px;
    color: #b0b3b8;
    margin: 0 0 24px 0;
}

.carmatch-migration-error .carmatch-primary-btn {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 480px) {
    .carmatch-migration-content {
        padding: 24px 20px;
    }

    .migration-option {
        padding: 14px;
        gap: 12px;
    }

    .migration-option-icon {
        font-size: 24px;
    }

    .migration-option-title {
        font-size: 14px;
    }

    .migration-option-desc {
        font-size: 12px;
    }

    .migration-option-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
}
