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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
        }

        .header h1 {
            font-size: 2.5rem;
            color: #1a202c;
            margin-bottom: 10px;
        }

        .header p {
            font-size: 1.1rem;
            color: #4a5568;
        }

        @media (max-width: 640px) {
            .header h1 {
                font-size: 1.8rem;
            }
            .header p {
                font-size: 0.95rem;
            }
        }

        .main-grid {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 30px;
            margin-bottom: 40px;
            align-items: start;
        }

        @media (max-width: 1024px) {
            .main-grid {
                gap: 20px;
            }
        }

        @media (max-width: 768px) {
            .main-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

        .input-panel {
            background: white;
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
            height: fit-content;
        }

        @media (min-width: 769px) {
            .input-panel {
                position: sticky;
                top: 20px;
            }
        }

        .input-panel h2 {
            font-size: 1.5rem;
            color: #1a202c;
            margin-bottom: 10px;
        }

        .input-panel p {
            color: #718096;
            font-size: 0.9rem;
            margin-bottom: 30px;
        }

        .form-group {
            margin-bottom: 30px;
        }

        .form-group label {
            display: block;
            font-size: 1rem;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 12px;
        }

        .slider-container {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        @media (max-width: 480px) {
            .slider-container {
                gap: 10px;
            }
        }

        input[type="range"] {
            flex: 1;
            height: 6px;
            border-radius: 3px;
            background: #e2e8f0;
            outline: none;
            -webkit-appearance: none;
            appearance: none;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #3182ce;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #3182ce;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .value-display {
            font-size: 1.5rem;
            font-weight: 700;
            color: #3182ce;
            min-width: 80px;
            text-align: right;
            white-space: nowrap;
        }

        @media (max-width: 480px) {
            .value-display {
                font-size: 1.2rem;
                min-width: 60px;
            }
        }

        .value-display.green {
            color: #22c55e;
        }

        .value-display.red {
            color: #ef4444;
        }

        .calculate-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
        }

        .calculate-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(49, 130, 206, 0.3);
        }

        .calculate-btn:active {
            transform: translateY(0);
        }

        .calculate-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .pricing-info {
            background: #f0f9ff;
            border-left: 4px solid #3b82f6;
            padding: 15px;
            border-radius: 8px;
            font-size: 0.85rem;
            color: #1e40af;
            margin-top: 20px;
            line-height: 1.6;
        }

        .pricing-info strong {
            display: block;
            margin-bottom: 8px;
            color: #1e3a8a;
        }

        .results-panel {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        @media (max-width: 768px) {
            .results-panel {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 15px;
            }
        }

        @media (max-width: 480px) {
            .results-panel {
                grid-template-columns: 1fr;
                gap: 15px;
            }
        }

        .kpi-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
            display: flex;
            align-items: flex-start;
            gap: 20px;
        }

        @media (max-width: 480px) {
            .kpi-card {
                padding: 20px;
                gap: 15px;
            }
        }

        .kpi-card.green {
            background: linear-gradient(135deg, #f0fdf4 0%, #f0fdf4 100%);
            border-left: 4px solid #22c55e;
        }

        .kpi-card.blue {
            background: linear-gradient(135deg, #f0f9ff 0%, #f0f9ff 100%);
            border-left: 4px solid #3b82f6;
        }

        .kpi-card.purple {
            background: linear-gradient(135deg, #faf5ff 0%, #faf5ff 100%);
            border-left: 4px solid #a855f7;
        }

        .kpi-card.orange {
            background: linear-gradient(135deg, #fffbf0 0%, #fffbf0 100%);
            border-left: 4px solid #f97316;
        }

        .kpi-icon {
            font-size: 2.5rem;
            opacity: 0.3;
            flex-shrink: 0;
        }

        @media (max-width: 480px) {
            .kpi-icon {
                font-size: 2rem;
            }
        }

        .kpi-content {
            flex: 1;
            min-width: 0;
        }

        .kpi-label {
            font-size: 0.85rem;
            color: #718096;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .kpi-value {
            font-size: 2rem;
            font-weight: 700;
            color: #1a202c;
            word-break: break-word;
        }

        @media (max-width: 480px) {
            .kpi-value {
                font-size: 1.5rem;
            }
        }

        .kpi-value.green {
            color: #22c55e;
        }

        .kpi-value.blue {
            color: #3b82f6;
        }

        .kpi-value.purple {
            color: #a855f7;
        }

        .kpi-value.orange {
            color: #f97316;
        }

        .breakdown-table {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
            margin-bottom: 30px;
            overflow-x: auto;
        }

        @media (max-width: 480px) {
            .breakdown-table {
                padding: 15px;
            }
        }

        .breakdown-table h3 {
            font-size: 1.2rem;
            color: #1a202c;
            margin-bottom: 20px;
            font-weight: 600;
        }

        .breakdown-table table {
            width: 100%;
            border-collapse: collapse;
            min-width: 300px;
        }

        .breakdown-table th {
            background: #f7fafc;
            padding: 12px;
            text-align: left;
            font-weight: 600;
            color: #2d3748;
            border-bottom: 2px solid #e2e8f0;
            font-size: 0.9rem;
        }

        .breakdown-table td {
            padding: 12px;
            border-bottom: 1px solid #e2e8f0;
            color: #4a5568;
            font-size: 0.9rem;
        }

        @media (max-width: 480px) {
            .breakdown-table th,
            .breakdown-table td {
                padding: 10px;
                font-size: 0.85rem;
            }
        }

        .breakdown-table tr:last-child td {
            border-bottom: none;
        }

        .breakdown-table .label {
            font-weight: 500;
            color: #2d3748;
        }

        .breakdown-table .value {
            text-align: right;
            font-weight: 600;
            color: #1a202c;
        }

        .breakdown-table .positive {
            color: #22c55e;
        }

        .breakdown-table .negative {
            color: #ef4444;
        }

        .charts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
        }

        @media (max-width: 768px) {
            .charts-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

        .chart-container {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
        }

        @media (max-width: 480px) {
            .chart-container {
                padding: 15px;
            }
        }

        .chart-container h3 {
            font-size: 1.2rem;
            color: #1a202c;
            margin-bottom: 20px;
            font-weight: 600;
        }

        @media (max-width: 480px) {
            .chart-container h3 {
                font-size: 1rem;
                margin-bottom: 15px;
            }
        }

        .chart-wrapper {
            position: relative;
            height: 300px;
            margin-bottom: 10px;
        }

        @media (max-width: 480px) {
            .chart-wrapper {
                height: 250px;
            }
        }

        .hidden {
            display: none;
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: #718096;
        }

        .loading::after {
            content: '';
            display: inline-block;
            width: 20px;
            height: 20px;
            margin-left: 10px;
            border: 3px solid #e2e8f0;
            border-top-color: #3182ce;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        .cta-section {
            background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
            color: white;
            padding: 40px;
            border-radius: 12px;
            text-align: center;
            margin-top: 50px;
        }

        .cta-section h2 {
            color: white;
            border-bottom-color: white;
            margin-bottom: 20px;
        }

        .cta-section p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.1rem;
            margin-bottom: 25px;
        }

        .cta-button {
            display: inline-block;
            background: white;
            color: #3182ce;
            padding: 15px 40px;
            border-radius: 8px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            font-size: 1rem;
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }
        .footer {
            text-align: center;
            margin-top: 50px;
            padding: 20px;
            color: #718096;
            font-size: 0.9rem;
        }