:root {
            --primary-bg: #f3f4f6;
            --sidebar-bg: #ffffff;
            --text-main: #1e293b;
            --text-light: #64748b;
            --accent-teal: #0ea5e9;
            --accent-cyan: #06b6d4; /* رنگ فیروزه‌ای مخصوص آمبولانس */
            --accent-price: #f59e0b; /* رنگ زرد/نارنجی قیمت */
            --border-color: #e2e8f0;
            --transition-speed: 0.3s;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Vazirmatn', sans-serif; text-decoration: none; outline: none; -webkit-tap-highlight-color: transparent; }

        body { background-color: var(--primary-bg); color: var(--text-main); display: flex; height: 100vh; overflow: hidden; }

        /* --- Mobile Menu --- */
        .mobile-menu-btn { display: none; position: fixed; top: 20px; right: 20px; z-index: 1001; background: white; border: none; width: 45px; height: 45px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); color: var(--accent-cyan); font-size: 20px; cursor: pointer; align-items: center; justify-content: center; }
        .overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(2px); z-index: 1002; }
        .overlay.active { display: block; }

        /* --- Sidebar --- */
        .sidebar { width: 260px; background-color: var(--sidebar-bg); border-left: 1px solid var(--border-color); display: flex; flex-direction: column; padding: 20px; z-index: 1000; transition: transform var(--transition-speed); flex-shrink: 0; height: 100vh; }
        .sidebar.active { transform: translateX(0); }
        .brand-logo { font-size: 22px; font-weight: 800; color: var(--accent-teal); display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid #f1f5f9; }
        .nav-menu { display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; }
        .nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 12px; color: var(--text-light); font-weight: 500; font-size: 14px; transition: 0.2s; white-space: nowrap; }
        .nav-item:hover { background-color: #f1f5f9; color: var(--accent-teal); transform: translateX(-5px); }
        .nav-item i { width: 20px; text-align: center; font-size: 18px; }
        .sidebar-footer { margin-top: auto; border-top: 1px solid #f1f5f9; padding-top: 20px; display: flex; align-items: center; gap: 10px; }
        .user-avatar { width: 40px; height: 40px; background: #e0f2fe; color: #0284c7; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }

        /* --- Main Content --- */
        .main-content { flex: 1; padding: 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; scroll-behavior: smooth; }

        .page-header { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
        .back-btn { width: 40px; height: 40px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; color: var(--text-main); box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: 0.2s; cursor: pointer; flex-shrink: 0; }
        .back-btn:hover { background-color: var(--accent-cyan); color: white; transform: translateX(3px); }
        .page-title { font-size: 24px; font-weight: 800; color: var(--text-main); }

        /* --- Calculator Layout --- */
        .calculator-layout {
            display: grid;
            grid-template-columns: 2fr 1fr; /* دسکتاپ: دو ستون */
            gap: 25px;
            align-items: start;
        }

        /* Config Card */
        .config-card {
            background: white;
            padding: 25px;
            border-radius: 20px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            gap: 25px;
            border: 1px solid var(--border-color);
            animation: fadeIn 0.3s ease-out;
        }

        .config-group { display: flex; flex-direction: column; gap: 12px; }
        .group-label { font-size: 15px; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
        .group-label i { color: var(--accent-cyan); }

        /* Custom Radio Buttons */
        .options-container { display: flex; background: #f1f5f9; padding: 5px; border-radius: 12px; gap: 5px; flex-wrap: wrap; }
        .option-label {
            flex: 1;
            text-align: center;
            padding: 12px 10px;
            font-size: 14px;
            cursor: pointer;
            border-radius: 10px;
            transition: 0.2s;
            color: var(--text-light);
            font-weight: 600;
            white-space: nowrap;
            min-width: 80px; /* حداقل عرض در موبایل */
        }
        .option-radio { display: none; }
        
        .option-radio:checked + .option-label {
            background: white;
            color: var(--accent-cyan);
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        /* Result Card */
        .result-card {
            background: white;
            padding: 25px;
            border-radius: 20px;
            box-shadow: 0 10px 30px -5px rgba(6, 182, 212, 0.15);
            display: flex;
            flex-direction: column;
            gap: 25px;
            border: 1px solid var(--border-color);
            position: sticky;
            top: 20px;
            animation: fadeIn 0.4s ease-out;
        }

        .price-display {
            text-align: center;
            padding: 25px 15px;
            background: #fffbeb;
            border-radius: 16px;
            border: 2px dashed var(--accent-price);
        }
        .price-label { font-size: 13px; color: #92400e; margin-bottom: 5px; font-weight: 600; }
        .price-amount { font-size: 28px; font-weight: 900; color: var(--accent-price); font-family: 'Segoe UI', sans-serif; letter-spacing: 1px; }
        .price-unit { font-size: 13px; color: #92400e; font-weight: 600; }

        .info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed #e2e8f0; font-size: 14px; }
        .info-label { color: var(--text-light); }
        .info-value { font-weight: 700; color: var(--text-main); font-family: 'Segoe UI', sans-serif; }

        .full-table-btn {
            background-color: var(--accent-cyan);
            color: white;
            border: none;
            padding: 14px;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: 0.2s;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .full-table-btn:hover { background-color: #0891b2; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3); }

        /* --- Responsive --- */
        @media (max-width: 768px) {
            body { display: block; overflow: auto; }
            .mobile-menu-btn { display: flex; }
            .sidebar { position: fixed; top: 0; right: 0; height: 100vh; width: 280px; transform: translateX(100%); box-shadow: -5px 0 20px rgba(0,0,0,0.1); z-index: 1003; }
            .sidebar.active { transform: translateX(0); }
            
            .main-content { padding: 80px 20px 20px 20px; height: auto; overflow: visible; }
            
            .calculator-layout { grid-template-columns: 1fr; gap: 20px; } /* تک ستونه شدن */
            
            .result-card { position: static; /* نتیجه در جای خود (پایین) نمایش داده شود */ }
            
            .options-container { flex-wrap: wrap; }
            .option-label { flex: 1 1 45%; /* دکمه‌ها در دو ستون در موبایل */ }
        }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }