/* === components.css === */
/* --- FABS --- */
        .fab-container { position: fixed; bottom: 90px; right: 20px; display: flex; flex-direction: column; gap: 15px; z-index: 998; }
        body.is-tg-app .fab-container { bottom: 20px; }
        .fab { width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); cursor: pointer; transition: 0.3s; border: none; text-decoration: none; }
        .fab-support { background: var(--dark); color: #fff; border: 2px solid var(--border); }
        .fab-ai { background: var(--ai-grad); color: #fff; border: 2px solid #fff; animation: pulse 2s infinite; }
        .fab:hover { transform: scale(1.1); }
        @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(79, 172, 254, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 172, 254, 0); } }

        /* --- LAYOUT & COMPONENTS --- */
        .page { display: none; padding: 20px 15px; max-width: 1200px; margin: 0 auto; min-height: calc(100vh - 150px); animation: fadeScale 0.4s cubic-bezier(0.1, 0.9, 0.2, 1); }
        .page.active { display: block; }
        @keyframes fadeScale { from { opacity: 0; transform: translateY(15px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

        /* Social Proof Toast */
        .sp-toast { position: fixed; bottom: 100px; left: 20px; background: var(--glass-bg); backdrop-filter: blur(10px); border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); z-index: 999; transform: translateX(-150%); transition: 0.5s cubic-bezier(0.1, 0.9, 0.2, 1); border-left: 4px solid var(--primary); color: var(--text-main); font-size: 13px; max-width: 320px; border: 1px solid var(--border); }
        .sp-toast.show { transform: translateX(0); }
        body.is-tg-app .sp-toast { bottom: 20px; }

        /* Compare Bar */
        .compare-bar { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background: var(--dark); color: white; padding: 15px 25px; border-radius: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; z-index: 1005; box-shadow: 0 10px 40px rgba(0,0,0,0.4); transition: 0.4s; width: 90%; max-width: 400px; }
        .compare-bar.show { bottom: 90px; }
        body.is-tg-app .compare-bar.show { bottom: 20px; }

        /* Stories */
        .stories-bar { display: flex; gap: 15px; overflow-x: auto; padding: 5px 0 20px; scrollbar-width: none; }
        .stories-bar::-webkit-scrollbar { display: none; }
        .story { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; flex-shrink: 0; transition: 0.2s; }
        .story-img-wrap { width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: linear-gradient(45deg, var(--warning), var(--primary)); display: flex; align-items: center; justify-content: center; }
        .story-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--bg-card); border: 2px solid var(--bg-main); transition: 0.3s; }
        .story:active .story-img { transform: scale(0.9); }
        .story-title { font-size: 11px; font-weight: 700; color: var(--text-main); width: 68px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        /* Search Box */
        .search-container { position: sticky; top: 10px; z-index: 995; margin-bottom: 25px; transition: 0.3s; }
        body.is-tg-app .search-container { top: 10px; }
        header.scrolled ~ main .search-container { top: 75px; }
        .search-box { background: var(--bg-card); padding: 15px; border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 12px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: 0.3s; align-items: center; }
        .search-container.stuck .search-box { padding: 10px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); background: var(--glass-bg); backdrop-filter: blur(10px); }

        .floating-group { position: relative; flex: 1; min-width: 150px; display: flex; align-items: center; }
        .floating-input { width: 100%; padding: 20px 15px 10px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; outline: none; transition: 0.3s; background: var(--bg-input); color: var(--text-main); font-weight: 600; font-family: inherit; }
        .floating-label { position: absolute; left: 15px; top: 16px; color: var(--text-muted); font-size: 14px; transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; }
        .floating-input:focus { border-color: var(--primary); background: var(--bg-card); box-shadow: 0 0 0 4px rgba(204,0,0,0.08); }
        .floating-input:focus ~ .floating-label, .floating-input:not(:placeholder-shown) ~ .floating-label, .floating-input.has-value ~ .floating-label { top: 6px; font-size: 10px; color: var(--primary); font-weight: 800; text-transform: uppercase; }

        .mic-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted); padding: 5px; transition: 0.3s; z-index: 5; }
        .mic-btn:hover { color: var(--primary); transform: translateY(-50%) scale(1.1); }
        .mic-btn.recording { color: var(--primary); animation: pulse 1s infinite; }

        .quick-dates { display: flex; gap: 8px; margin-top: -5px; padding-left: 5px; margin-bottom: 5px; overflow-x: auto; scrollbar-width: none; }
        .quick-dates span { font-size: 11px; background: var(--bg-input); border: 1px solid var(--border); padding: 4px 10px; border-radius: 12px; cursor: pointer; font-weight: bold; color: var(--text-muted); transition: 0.3s; white-space: nowrap; }
        .quick-dates span:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

        .btn-icon { background: var(--bg-input); border: 1px solid var(--border); border-radius: 12px; padding: 15px; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: 0.3s; color: var(--text-main); }
        .btn-icon:hover { background: var(--primary); color: white; border-color: var(--primary); }

        .controls-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 25px; }
        .filter-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); padding: 10px 18px; border-radius: 20px; cursor: pointer; font-weight: 700; font-size: 13px; transition: 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
        .filter-btn.active, .filter-btn:hover { background: var(--text-main); color: var(--bg-main); border-color: var(--text-main); transform: translateY(-2px); }

        /* Map */
        #map-wrapper { position: relative; margin-bottom: 25px; display: block; }
        #map { height: 400px; width: 100%; border-radius: var(--radius); z-index: 1; border: 1px solid var(--border); box-shadow: var(--shadow); filter: var(--map-filter); transition: 0.3s; }
        [data-theme="dark"] { --map-filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(85%); }
        .btn-search-area { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; background: var(--dark); color: white; border: none; padding: 10px 20px; border-radius: 20px; font-weight: bold; font-size: 13px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.3); display: none; animation: dropDown 0.3s ease; }
        .marker-cluster-custom { background-color: var(--primary-light); border-radius: 50%; }
        .marker-cluster-custom div { background-color: var(--primary); color: white; border-radius: 50%; width: 30px; height: 30px; margin: 5px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; box-shadow: 0 2px 8px rgba(204,0,0,0.4); }
        .map-price-marker { background: var(--bg-card); border: 2px solid var(--text-main); border-radius: 20px; padding: 4px 10px; font-weight: 800; font-size: 13px; color: var(--text-main); box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.3s; white-space: nowrap; text-align: center; }
        .map-price-marker::after { content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); border-width: 6px 6px 0; border-style: solid; border-color: var(--text-main) transparent transparent transparent; transition: 0.3s; }
        .map-price-marker.active { background: var(--primary); color: white; border-color: var(--primary); transform: scale(1.15); z-index: 1000 !important; }
        .map-price-marker.active::after { border-color: var(--primary) transparent transparent transparent; }

        /* View Toggle */
        .view-toggle { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); background: var(--dark); color: white; padding: 12px 24px; border-radius: 30px; font-weight: bold; font-size: 14px; cursor: pointer; z-index: 998; box-shadow: 0 8px 20px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 8px; transition: 0.3s; border: 1px solid rgba(255,255,255,0.1); display: none;}
        .view-toggle:hover { background: #333; transform: translateX(-50%) scale(1.05); }
        body.is-tg-app .view-toggle { bottom: 30px; }
        body.map-view-active { overflow: hidden; }
        body.map-view-active #map-wrapper { display: block; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 800; border-radius: 0; margin: 0; }
        body.map-view-active #map { height: 100%; border-radius: 0; border: none; }
        body.map-view-active .search-container, body.map-view-active .controls-bar { z-index: 900; position: relative; }
        body.map-view-active #stories-bar { display: none; }
        body.map-view-active .cars-grid { position: fixed; bottom: 150px; left: 0; width: 100vw; z-index: 900; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 15px; gap: 15px; pointer-events: auto; scrollbar-width: none; }
        body.map-view-active.is-tg-app .cars-grid { bottom: 80px; }
        body.map-view-active .cars-grid::-webkit-scrollbar { display: none; }
        body.map-view-active .card { flex: 0 0 85%; max-width: 320px; scroll-snap-align: center; margin: 0; box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

        /* Cards */
        .cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
        .card { background: var(--bg-card); border-radius: var(--radius); padding: 15px; box-shadow: var(--shadow); transition: 0.4s cubic-bezier(0.1, 0.9, 0.2, 1); cursor: pointer; display: flex; flex-direction: column; position: relative; border: 2px solid transparent; }
        .card.reveal { opacity: 0; transform: translateY(30px); } .card.reveal.active { opacity: 1; transform: translateY(0); }
        .card:hover, .card.highlight { transform: translateY(-8px); border-color: var(--primary); }

        .card-img-box { position: relative; height: 190px; background: var(--bg-input); border-radius: 12px; overflow: hidden; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; }
        .card-img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform 0.5s, opacity 0.4s; opacity: 0; }
        .card-img.loaded { opacity: 1; }
        .card:hover .card-img { transform: scale(1.05); }

        .card-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 2; }
        .act-btn { background: var(--glass-bg); border: none; border-radius: 50%; width: 35px; height: 35px; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.15); color: var(--text-muted); transition: 0.3s; backdrop-filter: blur(4px); }
        .act-btn.active { color: var(--primary); }
        .act-btn.active-cmp { background: var(--dark); color: #fff; }
        .act-btn:active { transform: scale(0.8); }

        .verified-tag { position: absolute; top: 12px; left: 12px; background: var(--success); color: #fff; padding: 5px 10px; border-radius: 8px; font-size: 10px; font-weight: 800; z-index: 2; box-shadow: 0 2px 8px rgba(39,174,96,0.3); }

        .price-total { border-top: 1px solid var(--border); margin-top: auto; padding-top: 15px; display: flex; justify-content: space-between; align-items: center; }
        .card-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 2px 0 12px; font-size: 11px; color: var(--text-muted); }
        .card-terms span { padding: 6px 8px; border-radius: 8px; background: var(--bg-input); line-height: 1.25; }
        .price-total small { display: block; margin-bottom: 3px; color: var(--text-muted); font-size: 11px; font-weight: 700; }
        .card-total-price { display: block; color: var(--primary); font-size: 21px; font-weight: 900; line-height: 1.1; }
        .card-daily-price { color: var(--text-muted); font-size: 11px; font-weight: 600; }
        .price-total > div:nth-child(2) { display: none; }
        .price-breakdown { display: grid; gap: 7px; margin: -8px 0 16px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; color: var(--text-muted); font-size: 12px; background: var(--bg-card); }
        .price-breakdown div { display: flex; justify-content: space-between; gap: 14px; }
        .price-breakdown b { color: var(--text-main); white-space: nowrap; }
        .price-breakdown .deposit-note { padding-top: 9px; margin-top: 2px; border-top: 1px solid var(--border); }
        .checkout-assurance { margin: -6px 0 18px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }

        /* Profile & Dashboards */
        .partner-switch-container { display: flex; background: var(--bg-input); border-radius: 12px; padding: 5px; margin-bottom: 25px; border: 1px solid var(--border); }
        .p-switch { flex: 1; text-align: center; padding: 10px; border-radius: 8px; font-weight: bold; cursor: pointer; color: var(--text-muted); transition: 0.3s; font-size: 14px; }
        .p-switch.active { background: var(--bg-card); color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

        .loyalty-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(254,187,2,0.15); color: var(--warning); padding: 5px 12px; border-radius: 12px; font-size: 12px; font-weight: 900; border: 1px solid rgba(254,187,2,0.3); margin-top: 5px; }

        .auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
        .auth-btn { width: 100%; border: none; padding: 15px; border-radius: 12px; font-size: 14px; font-weight: bold; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; }
        .diia-btn { background: var(--dark); color: #fff; }
        .diia-btn.verified { background: var(--diia-bg); color: var(--diia-text); pointer-events: none; border: 1px solid var(--success); }
        .bankid-btn { background: var(--bankid-bg); color: var(--bankid-text); }

        .referral-card { background: linear-gradient(135deg, var(--primary), #ff4081); padding: 25px; border-radius: var(--radius); color: white; margin-bottom: 25px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(204,0,0,0.3); }
        .btn-qr { background: var(--primary-light); color: var(--primary); padding: 12px; border-radius: 12px; border: none; font-weight: bold; width: 100%; cursor: pointer; margin-top: 15px; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 8px; }

        .crm-chart-container { display: flex; align-items: flex-end; gap: 5px; height: 60px; margin-top: 15px; padding-bottom: 5px; border-bottom: 1px solid var(--border); }
        .crm-bar { flex: 1; background: var(--primary-light); border-radius: 4px 4px 0 0; position: relative; transition: 0.3s; }
        .crm-bar:hover { background: var(--primary); }

        /* --- LAYOUT & COMPONENTS --- */
        .page { display: none; padding: 20px 15px; max-width: 1200px; margin: 0 auto; min-height: calc(100vh - 150px); animation: fadeScale 0.4s cubic-bezier(0.1, 0.9, 0.2, 1); }
        .page.active { display: block; }
        @keyframes fadeScale { from { opacity: 0; transform: translateY(15px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

        /* Social Proof Toast */
        .sp-toast { position: fixed; bottom: 100px; left: 20px; background: var(--glass-bg); backdrop-filter: blur(10px); border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); z-index: 999; transform: translateX(-150%); transition: 0.5s cubic-bezier(0.1, 0.9, 0.2, 1); border-left: 4px solid var(--primary); color: var(--text-main); font-size: 13px; max-width: 320px; border: 1px solid var(--border); }
        .sp-toast.show { transform: translateX(0); }
        body.is-tg-app .sp-toast { bottom: 20px; }

        /* Compare Bar */
        .compare-bar { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background: var(--dark); color: white; padding: 15px 25px; border-radius: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; z-index: 1005; box-shadow: 0 10px 40px rgba(0,0,0,0.4); transition: 0.4s; width: 90%; max-width: 400px; }
        .compare-bar.show { bottom: 90px; }
        body.is-tg-app .compare-bar.show { bottom: 20px; }

        /* Stories */
        .stories-bar { display: flex; gap: 15px; overflow-x: auto; padding: 5px 0 20px; scrollbar-width: none; }
        .stories-bar::-webkit-scrollbar { display: none; }
        .story { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; flex-shrink: 0; transition: 0.2s; }
        .story-img-wrap { width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: linear-gradient(45deg, var(--warning), var(--primary)); display: flex; align-items: center; justify-content: center; }
        .story-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--bg-card); border: 2px solid var(--bg-main); transition: 0.3s; }
        .story:active .story-img { transform: scale(0.9); }
        .story-title { font-size: 11px; font-weight: 700; color: var(--text-main); width: 68px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        /* Search Box */
        .search-container { position: sticky; top: 10px; z-index: 995; margin-bottom: 25px; transition: 0.3s; }
        body.is-tg-app .search-container { top: 10px; }
        header.scrolled ~ main .search-container { top: 75px; }
        .search-box { background: var(--bg-card); padding: 15px; border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 12px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: 0.3s; align-items: center; }
        .search-container.stuck .search-box { padding: 10px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); background: var(--glass-bg); backdrop-filter: blur(10px); }

        .floating-group { position: relative; flex: 1; min-width: 150px; display: flex; align-items: center; }
        .floating-input { width: 100%; padding: 20px 15px 10px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; outline: none; transition: 0.3s; background: var(--bg-input); color: var(--text-main); font-weight: 600; font-family: inherit; }
        .floating-label { position: absolute; left: 15px; top: 16px; color: var(--text-muted); font-size: 14px; transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; }
        .floating-input:focus { border-color: var(--primary); background: var(--bg-card); box-shadow: 0 0 0 4px rgba(204,0,0,0.08); }
        .floating-input:focus ~ .floating-label, .floating-input:not(:placeholder-shown) ~ .floating-label, .floating-input.has-value ~ .floating-label { top: 6px; font-size: 10px; color: var(--primary); font-weight: 800; text-transform: uppercase; }

        .mic-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted); padding: 5px; transition: 0.3s; z-index: 5; }
        .mic-btn:hover { color: var(--primary); transform: translateY(-50%) scale(1.1); }
        .mic-btn.recording { color: var(--primary); animation: pulse 1s infinite; }

        .quick-dates { display: flex; gap: 8px; margin-top: -5px; padding-left: 5px; margin-bottom: 5px; overflow-x: auto; scrollbar-width: none; }
        .quick-dates span { font-size: 11px; background: var(--bg-input); border: 1px solid var(--border); padding: 4px 10px; border-radius: 12px; cursor: pointer; font-weight: bold; color: var(--text-muted); transition: 0.3s; white-space: nowrap; }
        .quick-dates span:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

        .btn-icon { background: var(--bg-input); border: 1px solid var(--border); border-radius: 12px; padding: 15px; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: 0.3s; color: var(--text-main); }
        .btn-icon:hover { background: var(--primary); color: white; border-color: var(--primary); }

        .controls-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 25px; }
        .filter-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); padding: 10px 18px; border-radius: 20px; cursor: pointer; font-weight: 700; font-size: 13px; transition: 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
        .filter-btn.active, .filter-btn:hover { background: var(--text-main); color: var(--bg-main); border-color: var(--text-main); transform: translateY(-2px); }

        /* Map */
        #map-wrapper { position: relative; margin-bottom: 25px; display: block; }
        #map { height: 400px; width: 100%; border-radius: var(--radius); z-index: 1; border: 1px solid var(--border); box-shadow: var(--shadow); filter: var(--map-filter); transition: 0.3s; }
        [data-theme="dark"] { --map-filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(85%); }
        .btn-search-area { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; background: var(--dark); color: white; border: none; padding: 10px 20px; border-radius: 20px; font-weight: bold; font-size: 13px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.3); display: none; animation: dropDown 0.3s ease; }
        .marker-cluster-custom { background-color: var(--primary-light); border-radius: 50%; }
        .marker-cluster-custom div { background-color: var(--primary); color: white; border-radius: 50%; width: 30px; height: 30px; margin: 5px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; box-shadow: 0 2px 8px rgba(204,0,0,0.4); }
        .map-price-marker { background: var(--bg-card); border: 2px solid var(--text-main); border-radius: 20px; padding: 4px 10px; font-weight: 800; font-size: 13px; color: var(--text-main); box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.3s; white-space: nowrap; text-align: center; }
        .map-price-marker::after { content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); border-width: 6px 6px 0; border-style: solid; border-color: var(--text-main) transparent transparent transparent; transition: 0.3s; }
        .map-price-marker.active { background: var(--primary); color: white; border-color: var(--primary); transform: scale(1.15); z-index: 1000 !important; }
        .map-price-marker.active::after { border-color: var(--primary) transparent transparent transparent; }

        /* View Toggle */
        .view-toggle { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); background: var(--dark); color: white; padding: 12px 24px; border-radius: 30px; font-weight: bold; font-size: 14px; cursor: pointer; z-index: 998; box-shadow: 0 8px 20px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 8px; transition: 0.3s; border: 1px solid rgba(255,255,255,0.1); display: none;}
        .view-toggle:hover { background: #333; transform: translateX(-50%) scale(1.05); }
        body.is-tg-app .view-toggle { bottom: 30px; }
        body.map-view-active { overflow: hidden; }
        body.map-view-active #map-wrapper { display: block; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 800; border-radius: 0; margin: 0; }
        body.map-view-active #map { height: 100%; border-radius: 0; border: none; }
        body.map-view-active .search-container, body.map-view-active .controls-bar { z-index: 900; position: relative; }
        body.map-view-active #stories-bar { display: none; }
        body.map-view-active .cars-grid { position: fixed; bottom: 150px; left: 0; width: 100vw; z-index: 900; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 15px; gap: 15px; pointer-events: auto; scrollbar-width: none; }
        body.map-view-active.is-tg-app .cars-grid { bottom: 80px; }
        body.map-view-active .cars-grid::-webkit-scrollbar { display: none; }
        body.map-view-active .card { flex: 0 0 85%; max-width: 320px; scroll-snap-align: center; margin: 0; box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

        /* Cards */
        .cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
        .card { background: var(--bg-card); border-radius: var(--radius); padding: 15px; box-shadow: var(--shadow); transition: 0.4s cubic-bezier(0.1, 0.9, 0.2, 1); cursor: pointer; display: flex; flex-direction: column; position: relative; border: 2px solid transparent; }
        .card.reveal { opacity: 0; transform: translateY(30px); } .card.reveal.active { opacity: 1; transform: translateY(0); }
        .card:hover, .card.highlight { transform: translateY(-8px); border-color: var(--primary); }

        .card-img-box { position: relative; height: 190px; background: var(--bg-input); border-radius: 12px; overflow: hidden; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; }
        .card-img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform 0.5s, opacity 0.4s; opacity: 0; }
        .card-img.loaded { opacity: 1; }
        .card:hover .card-img { transform: scale(1.05); }

        .card-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 2; }
        .act-btn { background: var(--glass-bg); border: none; border-radius: 50%; width: 35px; height: 35px; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.15); color: var(--text-muted); transition: 0.3s; backdrop-filter: blur(4px); }
        .act-btn.active { color: var(--primary); }
        .act-btn.active-cmp { background: var(--dark); color: #fff; }
        .act-btn:active { transform: scale(0.8); }

        .verified-tag { position: absolute; top: 12px; left: 12px; background: var(--success); color: #fff; padding: 5px 10px; border-radius: 8px; font-size: 10px; font-weight: 800; z-index: 2; box-shadow: 0 2px 8px rgba(39,174,96,0.3); }

        .price-total { border-top: 1px solid var(--border); margin-top: auto; padding-top: 15px; display: flex; justify-content: space-between; align-items: center; }

        /* Profile & Dashboards */
        .partner-switch-container { display: flex; background: var(--bg-input); border-radius: 12px; padding: 5px; margin-bottom: 25px; border: 1px solid var(--border); }
        .p-switch { flex: 1; text-align: center; padding: 10px; border-radius: 8px; font-weight: bold; cursor: pointer; color: var(--text-muted); transition: 0.3s; font-size: 14px; }
        .p-switch.active { background: var(--bg-card); color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

        .loyalty-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(254,187,2,0.15); color: var(--warning); padding: 5px 12px; border-radius: 12px; font-size: 12px; font-weight: 900; border: 1px solid rgba(254,187,2,0.3); margin-top: 5px; }

        .auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
        .auth-btn { width: 100%; border: none; padding: 15px; border-radius: 12px; font-size: 14px; font-weight: bold; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; }
        .diia-btn { background: var(--dark); color: #fff; }
        .diia-btn.verified { background: var(--diia-bg); color: var(--diia-text); pointer-events: none; border: 1px solid var(--success); }
        .bankid-btn { background: var(--bankid-bg); color: var(--bankid-text); }

        .referral-card { background: linear-gradient(135deg, var(--primary), #ff4081); padding: 25px; border-radius: var(--radius); color: white; margin-bottom: 25px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(204,0,0,0.3); }
        .btn-qr { background: var(--primary-light); color: var(--primary); padding: 12px; border-radius: 12px; border: none; font-weight: bold; width: 100%; cursor: pointer; margin-top: 15px; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 8px; }

        .crm-chart-container { display: flex; align-items: flex-end; gap: 5px; height: 60px; margin-top: 15px; padding-bottom: 5px; border-bottom: 1px solid var(--border); }
        .crm-bar { flex: 1; background: var(--primary-light); border-radius: 4px 4px 0 0; position: relative; transition: 0.3s; }
        .crm-bar:hover { background: var(--primary); }

        
.marketplace-proof{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 24px}.marketplace-proof>div,.marketplace-proof>a{display:flex;flex-direction:column;gap:6px;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--bg-card);box-shadow:var(--shadow);color:var(--text-main);text-decoration:none}.marketplace-proof>a{background:var(--primary);border-color:var(--primary);color:#fff}.marketplace-proof span{font-size:12px;line-height:1.45;color:var(--text-muted)}.marketplace-proof>a span{color:rgba(255,255,255,.9)}.booking-steps{margin:12px 0 16px;padding:13px 15px;border:1px solid var(--border);border-radius:12px;background:var(--bg-input);font-size:12px;line-height:1.45}.booking-steps b{display:block;margin-bottom:4px}.booking-steps ol{margin:6px 0 0;padding-left:20px}.booking-steps li+li{margin-top:3px}
@media(max-width:900px){.marketplace-proof{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.marketplace-proof{grid-template-columns:1fr}.marketplace-proof>div,.marketplace-proof>a{padding:14px}}
