/* Premium Automotive Theme Design System */
        :root {
            --auto-dark: #1e293b;
            --auto-medium: #475569;
            --auto-light: #64748b;
            --auto-silver: #cbd5e1;
            --auto-white: #f8fafc;
            --auto-blue: #0ea5e9;
            --auto-green: #10b981;
            --primary: var(--auto-blue);
            --primary-light: #38bdf8;
            --primary-dark: #0284c7;
            --secondary: var(--auto-green);
            --warning: #f59e0b;
            --danger: #ef4444;
            --success: var(--auto-green);
            --bg-primary: #ffffff;
            --bg-secondary: var(--auto-white);
            --surface-elevated: #ffffff;
            --surface-automotive: rgba(14, 165, 233, 0.05);
            --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            --space-xs: 0.25rem;
            --space-sm: 0.5rem;
            --space-md: 1rem;
            --space-lg: 1.5rem;
            --space-xl: 2rem;
            --space-2xl: 3rem;
            --space-3xl: 4rem;
            --radius-sm: 6px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --radius-full: 9999px;
            --shadow-sm: 0 1px 2px 0 rgba(30, 41, 59, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(30, 41, 59, 0.1), 0 2px 4px -1px rgba(30, 41, 59, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(30, 41, 59, 0.1), 0 4px 6px -2px rgba(30, 41, 59, 0.05);
            --shadow-automotive: 0 8px 32px rgba(14, 165, 233, 0.15);
            --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-primary);
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
            color: var(--auto-dark);
            line-height: 1.6;
            min-height: 100vh;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20 50h60M25 45h50M25 55h50" stroke="rgba(14,165,233,0.05)" stroke-width="1" fill="none"/></svg>');
            background-size: 300px 300px;
            animation: roadLines 30s linear infinite;
            pointer-events: none;
            z-index: -1;
        }

        @keyframes roadLines {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-300px);
            }
        }

        .hero {
            background: linear-gradient(135deg, var(--auto-dark) 0%, var(--auto-medium) 50%, var(--primary) 100%);
            color: white;
            padding: var(--space-3xl) var(--space-xl);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .hero::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="3" fill="rgba(255,255,255,0.08)"/></svg>');
            background-size: 100px 100px;
            animation: float 20s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0px) rotate(0deg);
            }

            50% {
                transform: translateY(-10px) rotate(180deg);
            }
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            margin: 0 auto;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: var(--space-sm);
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: var(--space-sm) var(--space-md);
            border-radius: var(--radius-full);
            font-size: 0.875rem;
            font-weight: 500;
            margin-bottom: var(--space-xl);
            animation: fadeInUp 0.6s ease-out;
        }

        .hero-title {
            font-size: clamp(2rem, 5vw, 3rem);
            font-weight: 800;
            margin: 0 0 var(--space-lg) 0;
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            animation: fadeInUp 0.6s ease-out 0.2s both;
        }

        .hero-subtitle {
            font-size: clamp(1rem, 2vw, 1.25rem);
            opacity: 0.9;
            margin: 0;
            animation: fadeInUp 0.6s ease-out 0.4s both;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: var(--space-2xl) var(--space-xl);
        }

        .tabs {
            display: flex;
            background: var(--surface-automotive);
            border-radius: var(--radius-md);
            padding: var(--space-xs);
            margin-bottom: var(--space-xl);
        }

        .tab-btn {
            flex: 1;
            padding: var(--space-md) var(--space-lg);
            background: transparent;
            border: none;
            border-radius: var(--radius-sm);
            font-weight: 600;
            color: var(--auto-medium);
            cursor: pointer;
            transition: var(--transition-base);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-sm);
        }

        .tab-btn.active {
            background: var(--primary);
            color: white;
            box-shadow: var(--shadow-md);
        }

        .tab-btn:not(.active):hover {
            background: rgba(14, 165, 233, 0.1);
            color: var(--primary);
        }

        .calculator-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--space-2xl);
            margin-top: var(--space-2xl);
        }

        @media (max-width: 1024px) {
            .calculator-layout {
                grid-template-columns: 1fr;
                gap: var(--space-xl);
            }
        }

        .calculator-panel {
            background: var(--surface-elevated);
            border-radius: var(--radius-xl);
            padding: var(--space-2xl);
            box-shadow: var(--shadow-automotive);
            border: 1px solid rgba(14, 165, 233, 0.1);
            position: relative;
            overflow: hidden;
        }

        .calculator-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--primary-light));
        }

        .panel-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--auto-dark);
            margin: 0 0 var(--space-lg) 0;
            display: flex;
            align-items: center;
            gap: var(--space-sm);
        }

        .form-section {
            margin-bottom: var(--space-2xl);
        }

        .section-title {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--auto-dark);
            margin: 0 0 var(--space-lg) 0;
            display: flex;
            align-items: center;
            gap: var(--space-sm);
            padding-bottom: var(--space-sm);
            border-bottom: 2px solid var(--surface-automotive);
        }

        .input-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: var(--space-lg);
        }

        .input-group {
            margin-bottom: var(--space-lg);
        }

        .input-label {
            display: block;
            font-weight: 500;
            color: var(--auto-dark);
            margin-bottom: var(--space-sm);
            font-size: 0.875rem;
        }

        .input-field {
            width: 100%;
            padding: var(--space-md);
            border: 2px solid rgba(14, 165, 233, 0.1);
            border-radius: var(--radius-md);
            font-size: 1rem;
            transition: var(--transition-base);
            background: var(--bg-primary);
        }

        .input-field:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
        }

        .input-help {
            font-size: 0.75rem;
            color: var(--auto-medium);
            margin-top: var(--space-xs);
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white;
            border: none;
            padding: var(--space-md) var(--space-xl);
            border-radius: var(--radius-full);
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition-base);
            box-shadow: var(--shadow-md);
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-sm);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .results-panel {
            display: none;
        }

        .results-panel.active {
            display: block;
            animation: fadeInUp 0.6s ease-out;
        }

        .comparison-summary {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--space-lg);
            margin-bottom: var(--space-xl);
        }

        .cost-card {
            background: var(--surface-automotive);
            border-radius: var(--radius-lg);
            padding: var(--space-lg);
            text-align: center;
            border: 2px solid transparent;
            transition: var(--transition-base);
        }

        .cost-card.winner {
            border-color: var(--success);
            background: rgba(16, 185, 129, 0.1);
        }

        .cost-icon {
            font-size: 2rem;
            margin-bottom: var(--space-sm);
        }

        .cost-title {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--auto-dark);
            margin-bottom: var(--space-sm);
        }

        .cost-amount {
            font-size: 2rem;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: var(--space-xs);
        }

        .cost-period {
            font-size: 0.875rem;
            color: var(--auto-medium);
        }

        .savings-highlight {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(14, 165, 233, 0.05));
            border-radius: var(--radius-lg);
            padding: var(--space-lg);
            margin: var(--space-xl) 0;
            text-align: center;
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .savings-amount {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--success);
            margin-bottom: var(--space-sm);
        }

        .savings-label {
            font-size: 1.125rem;
            color: var(--auto-dark);
            margin-bottom: var(--space-sm);
        }

        .savings-period {
            font-size: 0.875rem;
            color: var(--auto-medium);
        }

        .chart-container {
            background: var(--surface-elevated);
            border-radius: var(--radius-lg);
            padding: var(--space-lg);
            margin: var(--space-xl) 0;
            box-shadow: var(--shadow-sm);
        }

        .chart-title {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--auto-dark);
            margin-bottom: var(--space-lg);
            text-align: center;
        }

        .chart-canvas {
            position: relative;
            height: 300px;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

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

        @media (max-width: 768px) {
            .hero {
                padding: var(--space-2xl) var(--space-md);
            }

            .container {
                padding: var(--space-xl) var(--space-md);
            }

            .comparison-summary {
                grid-template-columns: 1fr;
            }

            .input-grid {
                grid-template-columns: 1fr;
            }
        }