/* Part Replacement Simulator Styles */

.base-car-section {
    margin: 3rem 0;
    text-align: center;
}

.base-car-section h2 {
    color: var(--primary-color);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.base-car-section p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.car-select-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.car-select-label {
    display: block;
    color: var(--accent-color);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    text-align: left;
}

.car-select {
    width: 100%;
    padding: 1.5rem 2rem;
    margin: 0;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.95), rgba(26, 26, 26, 0.95));
    border: 3px solid rgba(255, 107, 53, 0.4);
    border-radius: 15px;
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 107, 53, 0);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff6b35' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2rem center;
    padding-right: 4rem;
    position: relative;
}

.car-select::before {
    content: '🏎️';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.car-select:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(13, 13, 13, 1), rgba(26, 26, 26, 1));
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.3), 0 0 0 4px rgba(255, 107, 53, 0.1);
    transform: translateY(-3px);
}

.car-select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4), 0 0 0 6px rgba(255, 107, 53, 0.2);
    transform: translateY(-3px);
}

.car-select option {
    background: #0d0d0d;
    color: var(--primary-color);
    padding: 1rem;
    font-size: 1rem;
}

.replacement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 1024px) {
    .replacement-grid {
        grid-template-columns: 1fr;
    }
}

.base-car-card,
.modified-car-card,
.replacement-controls {
    background: rgba(232, 232, 232, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.base-car-card h3,
.modified-car-card h3,
.replacement-controls h3 {
    color: var(--accent-color);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.car-info-display {
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
}

.car-info-display h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.car-info-display .info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.car-info-display .info-label {
    font-weight: 600;
    color: rgba(232, 232, 232, 0.7);
}

.car-info-display .info-value {
    color: var(--primary-color);
}

.car-info-display .changed {
    color: var(--accent-color);
    font-weight: 700;
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Replacement Controls */

.part-selector {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(13, 13, 13, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.part-selector h4 {
    color: var(--primary-color);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.donor-select {
    width: 100%;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.95), rgba(26, 26, 26, 0.95));
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff6b35' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.donor-select:hover {
    border-color: rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, rgba(13, 13, 13, 1), rgba(26, 26, 26, 1));
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.donor-select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15), 0 8px 25px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.swap-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--accent-color), #ff8c5a);
    border: none;
    border-radius: 8px;
    color: #0d0d0d;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swap-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.swap-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.reset-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    color: var(--accent-color);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

/* Performance Comparison */

.performance-comparison {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(232, 232, 232, 0.05);
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.performance-comparison h3 {
    color: var(--accent-color);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.perf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.perf-stat {
    padding: 1rem;
    background: rgba(13, 13, 13, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    text-align: center;
}

.perf-stat-label {
    color: rgba(232, 232, 232, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.perf-stat-value {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.perf-stat-change {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.perf-stat-change.positive {
    color: #4ade80;
}

.perf-stat-change.negative {
    color: #f87171;
}

.perf-stat-change.neutral {
    color: rgba(232, 232, 232, 0.5);
}

/* Current Swap Details */

.current-swap-details {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(232, 232, 232, 0.05);
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.current-swap-details h3 {
    color: var(--accent-color);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.swap-details-card {
    background: rgba(13, 13, 13, 0.6);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    padding: 2rem;
}

.swap-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
    flex-wrap: wrap;
    gap: 1rem;
}

.swap-details-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.swap-emoji {
    font-size: 2rem;
    animation: rotate 2s ease-in-out infinite;
}

.feasibility-badge-large {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.swap-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.swap-detail-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.swap-detail-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(232, 232, 232, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.swap-detail-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.difficulty-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.75rem 0 0.5rem;
}

.difficulty-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
    box-shadow: 0 0 10px currentColor;
}

.difficulty-percent {
    font-size: 1.2rem;
    font-weight: 700;
}

.swap-details-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.swap-details-section.warning-section {
    background: rgba(251, 191, 36, 0.05);
    border-left-color: #fbbf24;
}

.swap-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.warning-section .swap-section-title {
    color: #fbbf24;
}

.swap-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.swap-list-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    line-height: 1.6;
    color: rgba(232, 232, 232, 0.9);
}

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

.swap-list-bullet {
    color: var(--accent-color);
    font-weight: 700;
    flex-shrink: 0;
}

.warning-item .swap-list-bullet {
    color: #fbbf24;
}

.swap-details-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 107, 53, 0.2);
}

.swap-footer-note {
    color: rgba(232, 232, 232, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* Replacement History */

.replacement-history {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(232, 232, 232, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
}

.replacement-history h3 {
    color: var(--accent-color);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.history-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(13, 13, 13, 0.5);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.history-item-header {
    color: var(--accent-color);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.history-item-detail {
    color: var(--primary-color);
    margin: 0.5rem 0;
    font-family: 'Outfit', sans-serif;
}

.feasibility-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.feasibility-easy {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid #4ade80;
}

.feasibility-medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.feasibility-hard {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid #f87171;
}

.feasibility-impossible {
    background: rgba(248, 113, 113, 0.3);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.feasibility-notes {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.feasibility-notes ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.feasibility-notes li {
    color: var(--primary-color);
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

/* Custom Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.98), rgba(26, 26, 26, 0.98));
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(255, 107, 53, 0.2);
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-title .emoji {
    font-size: 2rem;
    animation: rotate 2s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.modal-close {
    background: rgba(255, 107, 53, 0.15);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
}

.modal-close:hover {
    background: rgba(255, 107, 53, 0.3);
    border-color: var(--accent-color);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    color: var(--primary-color);
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid rgba(255, 107, 53, 0.5);
}

.modal-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.modal-info-label {
    font-weight: 600;
    color: rgba(232, 232, 232, 0.7);
}

.modal-info-value {
    color: var(--primary-color);
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.modal-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    line-height: 1.6;
}

.modal-list li:last-child {
    border-bottom: none;
}

.modal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 107, 53, 0.3);
    display: flex;
    justify-content: flex-end;
}

.modal-button {
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--accent-color), #ff8c5a);
    border: none;
    border-radius: 10px;
    color: #0d0d0d;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(13, 13, 13, 0.5);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color), #ff8c5a);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff8c5a, var(--accent-color));
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.98), rgba(26, 26, 26, 0.98));
    border: 2px solid;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    min-width: 350px;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 107, 53, 0.2);
    backdrop-filter: blur(10px);
    pointer-events: all;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-color: #4ade80;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(34, 197, 94, 0.1));
}

.toast.warning {
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
}

.toast.error {
    border-color: #f87171;
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.1), rgba(239, 68, 68, 0.1));
}

.toast.info {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 140, 90, 0.1));
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.toast-icon {
    font-size: 2rem;
    line-height: 1;
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.toast-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(232, 232, 232, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.toast-close:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.2);
}

.toast-message {
    color: rgba(232, 232, 232, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-left: 3rem;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-color);
    border-radius: 0 0 15px 15px;
    animation: progress 3s linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .selector-section h2 {
        font-size: 1.4rem;
    }

    .base-car-selector label {
        font-size: 0.85rem;
    }

    #baseCarSelect {
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
    }

    .parts-grid h3 {
        font-size: 1rem;
    }

    .part-selector label {
        font-size: 0.8rem;
    }

    .part-selector select {
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
    }

    .part-action-btn {
        font-size: 0.85rem;
        padding: 0.75rem 1.25rem;
    }

    .current-swap-details h3 {
        font-size: 1.15rem;
    }

    .swap-details-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .swap-details-title {
        font-size: 1.05rem;
    }

    .feasibility-badge-large {
        font-size: 0.75rem;
        padding: 0.45rem 0.9rem;
    }

    .swap-details-grid {
        grid-template-columns: 1fr;
    }

    .detail-item-label {
        font-size: 0.75rem;
    }

    .detail-item-value {
        font-size: 0.9rem;
    }

    .swap-notes h4,
    .swap-warnings h4 {
        font-size: 1rem;
    }

    .swap-notes p,
    .swap-warnings p {
        font-size: 0.85rem;
    }

    .swap-notes li,
    .swap-warnings li {
        font-size: 0.85rem;
    }

    .performance-comparison h2 {
        font-size: 1.4rem;
    }

    .comparison-grid {
        gap: 1rem;
    }

    .metric-label {
        font-size: 0.75rem;
    }

    .metric-value {
        font-size: 1rem;
    }

    .metric-change {
        font-size: 0.75rem;
    }

    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
        font-size: 0.85rem;
    }

    .toast-title {
        font-size: 0.9rem;
    }

    .toast-message {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .selector-section h2 {
        font-size: 1.2rem;
    }

    .base-car-selector label {
        font-size: 0.8rem;
    }

    #baseCarSelect {
        font-size: 0.8rem;
        padding: 0.75rem 0.9rem;
    }

    .parts-grid h3 {
        font-size: 0.9rem;
    }

    .part-selector label {
        font-size: 0.75rem;
    }

    .part-selector select {
        font-size: 0.8rem;
        padding: 0.75rem 0.9rem;
    }

    .part-action-btn {
        font-size: 0.8rem;
        padding: 0.7rem 1.1rem;
    }

    .current-swap-details h3 {
        font-size: 1rem;
    }

    .swap-details-title {
        font-size: 0.95rem;
    }

    .feasibility-badge-large {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    .detail-item-label {
        font-size: 0.7rem;
    }

    .detail-item-value {
        font-size: 0.85rem;
    }

    .swap-notes h4,
    .swap-warnings h4 {
        font-size: 0.9rem;
    }

    .swap-notes p,
    .swap-warnings p {
        font-size: 0.8rem;
    }

    .swap-notes li,
    .swap-warnings li {
        font-size: 0.8rem;
    }

    .performance-comparison h2 {
        font-size: 1.2rem;
    }

    .metric-label {
        font-size: 0.7rem;
    }

    .metric-value {
        font-size: 0.9rem;
    }

    .metric-change {
        font-size: 0.7rem;
    }

    .toast {
        font-size: 0.8rem;
    }

    .toast-title {
        font-size: 0.85rem;
    }

    .toast-message {
        font-size: 0.75rem;
    }
}
