.material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
            font-size: 24px;
        }

        body {
            background-color: var(--bg-main);
            color: var(--text-main);
            min-height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            font-family: 'Red Hat Display', sans-serif;
            margin: 0;
        }

        #app {
            width: 100%;
            max-width: 480px;
            height: 100%;
            min-height: 100%;
            background: var(--bg-main);
            box-shadow: var(--shadow-default);
            position: relative;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: none;
        }

        .screen {
            padding: var(--space-md);
            padding-top: calc(var(--space-md) + env(safe-area-inset-top));
            animation: fadeIn 0.4s ease-out;
            min-height: 100%;
            display: flex;
            flex-direction: column;
            background: var(--bg-main);
            padding-bottom: 0px !important;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        #splash-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--brand-secondary);
            z-index: 9998;
            transition: opacity 0.5s ease;
        }

        #splash-overlay.fade-out {
            opacity: 0;
            pointer-events: none;
        }

        #splash-screen {
            position: fixed;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 480px;
            height: 100%;
            background: var(--brand-secondary);
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: space-between;
            z-index: 9999;
            transition: opacity 0.5s ease;
            padding: 48px 32px;
            box-sizing: border-box;
        }

        #splash-screen.fade-out {
            opacity: 0;
            pointer-events: none;
        }

        .splash-text-top {
            font-size: 36px;
            color: rgba(255, 255, 255, 0.7);
            font-weight: 400;
            line-height: 1.2;
            margin-bottom: 24px;
            opacity: 0;
            animation: fadeInUp 0.8s ease-out forwards;
            animation-delay: 0.2s;
        }

        .splash-text-main {
            font-size: 36px;
            color: white;
            font-weight: 700;
            line-height: 1.2;
            opacity: 0;
            animation: fadeInUp 0.8s ease-out forwards;
            animation-delay: 0.6s;
        }

        .splash-bottom {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 16px;
            margin-top: auto;
            padding-bottom: 32px;
        }

        #splash-screen .splash-logo {
            width: 220px;
            /* Increased from 140px */
            /* Increased from 80px */
            height: auto;
            filter: brightness(0) invert(1);
            animation: splashPulse 2s ease-in-out infinite;
        }

        /* Text Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .splash-brand-name {
            color: white;
            font-size: 1.5rem;
            font-weight: 500;
            letter-spacing: 0.5px;
        }

        @keyframes splashPulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }



        .w-full {
            width: 100%;
        }

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

        .mb-4 {
            margin-bottom: var(--space-sm);
        }

        .mb-8 {
            margin-bottom: var(--space-lg);
        }

        .mt-4 {
            margin-top: var(--space-sm);
        }

        .text-muted {
            color: var(--text-muted);
        }

        .selection-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            padding: var(--space-md);
            display: flex;
            align-items: center;
            width: 100%;
            margin-bottom: var(--space-sm);
            cursor: pointer;
            transition: var(--transition-fast);
            box-shadow: var(--shadow-default);
        }

        .selection-card:hover {
            border-color: var(--brand-secondary);
            transform: translateY(-2px);
            box-shadow: var(--shadow-default);
        }

        .select-tile {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            padding: var(--space-sm);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            min-height: 100px;
            cursor: pointer;
            transition: var(--transition-fast);
            box-shadow: var(--shadow-default);
        }

        .select-tile:hover {
            border-color: var(--brand-secondary);
            color: var(--brand-secondary);
            transform: translateY(-2px);
        }

        .vehicle-card-body {
            background: var(--bg-card);
            border: 1px solid var(--border-card-color);
            border-radius: var(--radius-sm);
            padding: var(--space-md);
            margin-bottom: var(--space-md);
            box-shadow: var(--shadow-default);
        }

        .vehicle-title-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 4px;
        }

        .vehicle-title {
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .vehicle-subtitle {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .vehicle-color {
            font-size: 0.85rem;
            color: var(--text-main);
            margin-bottom: 12px;
            font-weight: 500;
        }

        .vehicle-specs {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .vehicle-spec.highlight {
            color: var(--brand-secondary);
            font-weight: 600;
            background: rgba(99, 102, 241, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
        }

        .vehicle-spec-divider {
            width: 4px;
            height: 4px;
            background: #CBD5E1;
            border-radius: 50%;
        }

        .vehicle-price-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding-top: 12px;
            border-top: 1px solid var(--border-color);
        }

        .vehicle-price-info {
            color: var(--text-muted);
            width: 20px;
            height: 20px;
        }

        .vehicle-price {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--brand-primary);
        }

        .strategy-card {
            background: var(--bg-card);
            box-shadow: var(--shadow-default);
            border: 1px solid var(--border-card-color);
            border-radius: var(--radius-sm);
            padding: var(--space-md);
            margin-bottom: var(--space-md);
        }

        .strategy-item {
            margin-bottom: 20px;
        }

        .strategy-item:last-child {
            margin-bottom: 0;
        }

        .strategy-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }

        .strategy-title,
        .strategy-price {
            font-weight: 700;
            font-size: 1rem;
            color: var(--text-main);
        }

        .strategy-desc {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .strategy-bar-bg {
            width: 100%;
            height: 8px;
            background: #E2E8F0;
            border-radius: 999px;
            overflow: hidden;
        }

        .strategy-bar-fill {
            height: 100%;
            border-radius: 999px;
        }

        .history-card {
            background: var(--bg-card);
            border: 1px solid var(--border-card-color);
            border-radius: var(--radius-sm);
            padding: var(--space-md);
            margin-bottom: var(--space-md);
                box-shadow: var(--shadow-default);
        }

        .history-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .history-item:last-child {
            margin-bottom: 0;
        }

        .history-date {
            font-weight: 600;
            color: var(--text-main);
            font-size: 0.9rem;
        }

        .history-price-row {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .history-price {
            font-weight: 600;
            color: var(--text-main);
            font-size: 1rem;
        }

        .calculator-card {
            background: var(--bg-card);
            border-radius: var(--radius-sm);
            padding: var(--space-md);
            box-shadow: var(--shadow-default);
            margin-bottom: var(--space-md);
            border: 1px solid var(--border-card-color);
        }

        .calc-header {
            background: var(--text-main);
            color: white;
            border-radius: var(--radius-sm);
            padding: var(--space-md);
            text-align: center;
            margin-bottom: var(--space-md);
        }

        .calc-header h3 {
            margin: 0 0 8px 0;
            font-size: 1rem;
            opacity: 0.9;
            font-weight: 500;
        }

        .calc-header .calc-result {
            font-size: clamp(2rem, 5vw, 2.5rem);
            font-weight: 700;
            color: white;
            margin: 0;
        }

        .calc-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 16px;
        }

        .calc-field label {
            display: block;
            font-size: 0.85rem;
            color: #111827;
            margin-bottom: 6px;
        }

        .calc-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            font-size: 1rem;
            color: #111827;
            font-weight: 500;
            outline: none;
            transition: border-color 0.2s;
        }

        .calc-input:focus {
            border-color: var(--brand-primary);
        }

        .calc-input.readonly {
            background-color: #f3f4f6;
            color: #4b5563;
            border-color: #e5e7eb;
        }

        .calc-input-group {
            position: relative;
        }

        .calc-symbol {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            font-weight: 500;
        }

        .calc-input.has-symbol {
            padding-left: 28px;
        }

        .info-icon {
            float: right;
            color: #9ca3af;
            font-size: 16px;
            cursor: help;
        }

        .trend-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .bg-red {
            background-color: #F87171;
        }

        .bg-green {
            background-color: #34D399;
        }

        .bg-orange {
            background-color: #FBBF24;
        }

        .header-logo {
            text-align: center;
            margin-bottom: var(--space-lg);
            display: flex;
        }

        .header-logo img {
            width: 120px;
            height: auto;
        }

        .sticky-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            background: #fff;
            box-shadow: var(--shadow-default);
            padding: 20px 24px;
            padding-top: calc(20px + env(safe-area-inset-top, 0px));
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sticky-header.has-back {
            justify-content: flex-start;
        }

        .sticky-header .back-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-main);
            margin-left: -8px;
            border-radius: 50%;
            transition: background 0.2s;
            z-index: 2;
        }

        .sticky-header .back-btn:hover {
            background-color: rgba(0, 0, 0, 0.05);
        }

        .sticky-header.has-back .header-logo {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            margin: 0;
            display: flex;
        }

        .sticky-header .header-logo {
            margin: 0;
        }

        .sticky-header .header-logo img {
            width: 120px;
            height: auto;
        }

        /* TEST: Simulated Dynamic Island */
        .simulated-notch {
            position: fixed;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 126px;
            height: 37px;
            background: #000;
            border-radius: 0 0 24px 24px;
            z-index: 10000;
            pointer-events: none;
        }

        /* Add extra top padding when simulated notch is active */
        body.has-simulated-notch .screen {
            padding-top: calc(var(--space-md) + 70px) !important;
        }

        body.has-simulated-notch .sticky-header {
            padding-top: calc(16px + 70px) !important;
            margin-top: calc(-24px - 70px) !important;
        }

        /* Also target absolute positioned elements like back buttons */
        body.has-simulated-notch button[style*="position: absolute"][style*="top"] {
            top: calc(16px + 50px) !important;
        }

        /* iOS Keyboard Open State */
        body.keyboard-open .footer {
            display: none !important;
        }

        body.keyboard-open .screen {
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch;
        }

        body.keyboard-open #app {
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch;
        }

        /* Custom Range Input */
        .calc-range {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 4px;
            background: #e5e7eb;
            border-radius: 2px;
            outline: none;
            cursor: pointer;
            /* Dynamic background for progress */
            background-image: linear-gradient(#5348ce, #5348ce);
            background-repeat: no-repeat;
            background-size: var(--progress, 0%) 100%; 
        }

        /* Thumb: Webkit */
        .calc-range::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 32px; /* Wider */
            height: 16px;
            border-radius: 4px; /* Rectangle */
            background: #ffffff;
            border: 0.5px solid rgba(0,0,0,0.04);
            cursor: pointer;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            margin-top: -3px; /* (Thumb height - Track height) / 2 = (24 - 4) / 2 = 10 */
        }

        /* Thumb: Firefox */
        .calc-range::-moz-range-thumb {
            width: 32px; /* Wider */
            height: 16px;
            border-radius: 4px; /* Rectangle */
            background: #ffffff;
            border: 0.5px solid rgba(0,0,0,0.04);
            cursor: pointer;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            border: none;
        }

        /* Hide footer when keyboard is open (input focus) */
        body.keyboard-open .app-footer {
            display: none !important;
        }