/* BAĞDAR — дизайн жүйесі. Бренд түстері логотиптен: жасыл → көгілдір → көк, қою теңіз көгі. */
:root {
  --green: #16C35A; --teal: #0E9F8E; --blue: #1673E6; --navy: #0C3547;
  --grad: linear-gradient(135deg, #22C55E 0%, #0EA5A0 52%, #1D6FE0 100%);
  --bg: #EEF3F7; --surface: #FFFFFF; --surface-2: #F4F7FA; --surface-3: #E9EFF4; --border: #E1E8EF;
  --text: #0F2533; --text-2: #4A5D6E; --text-3: #8A9BAA; --accent: #0E9F8E; --accent-2: #0B8577; --accent-soft: rgba(14, 159, 142, .12);
  --ok: #16A34A; --warn: #D97706; --bad: #DC2626; --gold: #F5B700; --star: #F59E0B;
  --shadow-1: 0 1px 2px rgba(12, 37, 52, .06), 0 2px 10px rgba(12, 37, 52, .07);
  --shadow-2: 0 10px 34px rgba(12, 37, 52, .16), 0 2px 6px rgba(12, 37, 52, .06);
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px; --panel-w: 410px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #08131B; --surface: #0E1D28; --surface-2: #132634; --surface-3: #1A3242; --border: #1E3546;
  --text: #E7EFF5; --text-2: #A6B7C5; --text-3: #6C8598; --accent: #23C4AE; --accent-2: #3AD6C0; --accent-soft: rgba(35, 196, 174, .14);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 10px rgba(0, 0, 0, .3);
  --shadow-2: 0 12px 38px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent); text-decoration: none; }
[hidden] { display: none !important; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.center { text-align: center; }
.block { display: block; width: 100%; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

#map { position: fixed; inset: 0; }

/* ───────── Splash ───────── */
#splash { position: fixed; inset: 0; z-index: 100; background: #fff; display: grid; place-content: center; justify-items: center; gap: 14px; transition: opacity .5s; }
:root[data-theme="dark"] #splash { background: #08131B; }
#splash img { width: min(300px, 62vw); animation: pop .7s cubic-bezier(.2, 1.4, .4, 1); }
:root[data-theme="dark"] #splash img { filter: drop-shadow(0 0 30px rgba(35, 196, 174, .25)); border-radius: 24px; }
.splash-bar { width: 180px; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 4px; animation: slide 1.1s ease-in-out infinite; }
.splash-msg { color: var(--text-3); margin: 0; font-size: 13px; }
#splash.gone { opacity: 0; pointer-events: none; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ───────── Панель ───────── */
.panel { position: fixed; z-index: 20; top: 12px; left: 12px; bottom: 12px; width: var(--panel-w); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.panel.collapsed { transform: translateX(calc(-100% - 12px)); }
.panel-toggle { position: absolute; right: -30px; top: 76px; width: 30px; height: 44px; border-radius: 0 10px 10px 0; background: var(--surface); box-shadow: 4px 2px 10px rgba(0, 0, 0, .08); color: var(--text-2); font-size: 20px; }
.panel.collapsed .panel-toggle { transform: rotate(180deg); border-radius: 10px 0 0 10px; }
.sheet-handle { display: none; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px 14px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { width: 34px; height: 34px; }
.brand-word { font: 900 21px/1 'Montserrat', var(--font); letter-spacing: .5px; color: var(--navy); }
:root[data-theme="dark"] .brand-word { color: #E7EFF5; }
.city-wrap { position: relative; margin-left: 4px; }
.city-btn { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; font-size: 13px; }
.caret { font-size: 10px; opacity: .8; }
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 200px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-2); padding: 6px; border: 1px solid var(--border); }
.dropdown button { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 8px; text-align: left; }
.dropdown button:hover, .dropdown button.on { background: var(--surface-2); }
.dropdown button.on b { color: var(--accent); }
.dropdown small { color: var(--text-3); font-size: 11px; }
.head-actions { margin-left: auto; display: flex; gap: 2px; }

.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--text-2); font-size: 17px; flex: none; transition: background .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.sm { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; }
.icon-btn.on, .icon-btn.fav.on { color: #E11D48; }

.search-wrap { position: relative; padding: 0 12px 10px; }
.search { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 14px; padding: 4px 4px 4px 12px; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.s-ico { color: var(--text-3); font-size: 20px; line-height: 1; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; padding: 8px 4px; font-size: 15px; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.ai-btn { padding: 7px 10px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 700; font-size: 12px; white-space: nowrap; box-shadow: 0 2px 8px rgba(14, 159, 142, .35); }
.suggest { position: absolute; z-index: 30; left: 12px; right: 12px; top: calc(100% - 4px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-2); padding: 6px; max-height: 60vh; overflow: auto; }
.sg { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px; border-radius: 9px; }
.sg:hover { background: var(--surface-2); }
.sg .sg-ico { grid-row: span 2; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, #94A3B8) 16%, transparent); font-size: 16px; }
.sg .sg-ico.ai { background: var(--grad); }
.sg b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg small { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-head { padding: 8px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; }
.suggest > .sg:not(:has(.sg-ico)) { display: block; }

.panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.view { padding: 2px 12px 18px; animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ───────── Ортақ компоненттер ───────── */
.scroll-x { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.scroll-x::-webkit-scrollbar { display: none; }
.chips { margin: 2px 0 10px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; font-size: 13px; white-space: nowrap; transition: all .15s; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-chip span { font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; transition: all .15s; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.link { color: var(--accent); font-weight: 600; font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .9); color: var(--navy); }
.pill.ok { background: #DCFCE7; color: #166534; } .pill.gold { background: #FEF3C7; color: #92400E; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; border: 1px solid var(--border); }
.seg button { padding: 6px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.seg.wide { display: flex; margin: 8px 0; } .seg.wide button { flex: 1; }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--surface-3); border-top-color: var(--accent); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; vertical-align: middle; }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: live 1.6s infinite; vertical-align: middle; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.empty { text-align: center; padding: 34px 16px; color: var(--text-2); }
.empty span { font-size: 38px; display: block; margin-bottom: 6px; }
.empty.small { padding: 22px 12px; } .empty.small span { font-size: 28px; }
.empty p { margin: 6px 0 14px; color: var(--text-3); }
.skeleton { height: 54px; border-radius: 10px; margin: 8px 0; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.meter { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin: 8px 0; }
.meter i { display: block; height: 100%; width: var(--w); background: var(--grad); border-radius: 6px; }
.stars { color: var(--surface-3); letter-spacing: 1px; font-size: 14px; }
.stars .star.on { color: var(--star); }
.stars .star.half { background: linear-gradient(90deg, var(--star) 50%, var(--surface-3) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars.sm { font-size: 11px; }
.ai-badge { display: inline-block; padding: 2px 6px; border-radius: 6px; background: var(--grad); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; vertical-align: middle; }

/* ───────── Басты бет ───────── */
.pulse-card { border-radius: var(--r-lg); padding: 14px; background: linear-gradient(135deg, #0C3547, #0E5E68 60%, #117A64); color: #fff; box-shadow: var(--shadow-1); margin-bottom: 14px; position: relative; overflow: hidden; }
.pulse-card::after { content: ''; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 197, 94, .35), transparent 70%); }
.pulse-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; position: relative; z-index: 1; }
.pulse-head b { font-size: 18px; display: block; } .pulse-head small { opacity: .75; font-size: 12px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: rgba(255, 255, 255, .12); padding: 4px 9px; border-radius: 999px; font-weight: 600; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; animation: live 1.6s infinite; }
.pulse-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; z-index: 1; }
.pulse-item { background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 9px 6px; text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: background .15s; }
.pulse-item:hover { background: rgba(255, 255, 255, .18); }
.pulse-item .big { font-size: 16px; font-weight: 800; white-space: nowrap; }
.pulse-item small { font-size: 10.5px; opacity: .8; line-height: 1.2; }
.badge-num { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 8px; background: var(--c); color: #fff; font-weight: 800; font-size: 13px; }
.sec { margin: 6px 0 16px; }
.sec h3, .sec-title { display: flex; justify-content: space-between; align-items: center; font-size: 15px; margin: 4px 0 10px; font-weight: 700; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tool-card { text-align: left; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 2px; transition: transform .15s, border-color .15s; }
.tool-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.tool-card span { font-size: 22px; } .tool-card b { font-size: 13.5px; } .tool-card small { color: var(--text-3); font-size: 11.5px; line-height: 1.3; }
.tool-card.grad-ai { background: linear-gradient(135deg, rgba(34, 197, 94, .16), rgba(29, 111, 224, .16)); border-color: rgba(14, 159, 142, .35); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.2; color: var(--text-2); transition: background .15s; }
.cat-tile:hover { background: var(--surface-2); }
.cat-tile .ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; font-size: 20px; background: color-mix(in srgb, var(--c) 15%, transparent); }
.collections { padding: 2px 0 4px; }
.col-card { flex: none; width: 150px; height: 112px; border-radius: 16px; padding: 12px; text-align: left; color: #fff; background: linear-gradient(140deg, var(--g1), var(--g2)); display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; box-shadow: var(--shadow-1); transition: transform .15s; }
.col-card:hover { transform: translateY(-2px); }
.col-card .col-ico { position: absolute; right: 8px; top: 6px; font-size: 34px; opacity: .9; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2)); }
.col-card b { font-size: 13.5px; line-height: 1.25; } .col-card small { opacity: .85; font-size: 11px; }
.event-row { display: flex; gap: 12px; width: 100%; text-align: left; padding: 10px; border-radius: 12px; align-items: center; }
.event-row:hover { background: var(--surface-2); }
.ev-date { width: 46px; height: 50px; flex: none; border-radius: 11px; background: linear-gradient(160deg, #7C3AED, #DB2777); color: #fff; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.ev-date b { font-size: 18px; } .ev-date small { font-size: 10.5px; opacity: .9; text-transform: uppercase; }
.ev-body { display: grid; gap: 1px; min-width: 0; } .ev-body b { font-size: 13.5px; } .ev-body small { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-row { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px; }
.report-row:hover { background: var(--surface-2); }
.rep-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 17px; flex: none; }
.report-row small { display: block; font-size: 12px; color: var(--text-3); }
.home-foot { text-align: center; padding: 18px 8px 6px; border-top: 1px solid var(--border); margin-top: 10px; color: var(--text-2); font-size: 12px; }
.foot-logo { width: 120px; border-radius: 14px; }
:root[data-theme="dark"] .foot-logo { background: #fff; padding: 4px; }
.home-foot p { margin: 4px 0; }

/* ───────── Нәтижелер ───────── */
.res-head { position: sticky; top: 0; z-index: 3; background: var(--surface); padding: 2px 0 8px; margin: 0 -12px 4px; padding-left: 12px; padding-right: 12px; border-bottom: 1px solid var(--border); }
.res-title { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.res-title > div { flex: 1; min-width: 0; } .res-title b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .res-title small { color: var(--text-3); }
.ai-intent { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); background: var(--accent-soft); padding: 7px 9px; border-radius: 10px; margin-bottom: 8px; }
.intent-chip { background: var(--surface); padding: 2px 8px; border-radius: 999px; font-weight: 600; border: 1px solid var(--border); }
.list { display: flex; flex-direction: column; gap: 2px; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 8px; border-radius: 12px; cursor: pointer; transition: background .12s; }
.item:hover { background: var(--surface-2); }
.item.compact { padding: 8px 6px; }
.item-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: color-mix(in srgb, var(--c) 15%, transparent); }
.item.compact .item-ico { width: 36px; height: 36px; font-size: 16px; }
.item-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.item-title { font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.verified { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 9px; flex: none; }
.ad { font-size: 9.5px; font-weight: 800; color: #92400E; background: #FEF3C7; padding: 1px 6px; border-radius: 5px; text-transform: uppercase; letter-spacing: .04em; flex: none; }
.item-sub { font-size: 12px; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.item-meta { display: flex; gap: 8px; font-size: 12px; align-items: center; flex-wrap: wrap; }
.rate { color: var(--star); font-weight: 700; }
.open { font-weight: 600; } .open.ok { color: var(--ok); } .open.warn { color: var(--warn); } .open.bad { color: var(--bad); } .open.muted { color: var(--text-3); }
.addr-head { margin: 12px 4px 4px; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; display: flex; gap: 8px; align-items: center; }

/* ───────── Нысан карточкасы ───────── */
.place, .event { padding: 0 0 18px; }
.cover { height: 132px; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 70%); border-radius: 0; overflow: hidden; }
.cover::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 12px, transparent 12px 24px); }
.cover .back { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .92); color: var(--navy); z-index: 2; }
.cover-ico { font-size: 54px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); z-index: 1; }
.cover-badges { position: absolute; right: 10px; top: 12px; display: flex; gap: 5px; z-index: 2; }
.pl-head { padding: 12px 14px 4px; }
.pl-head h2 { margin: 0 0 3px; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.pl-sub { color: var(--text-2); font-size: 13px; }
.pl-rating { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 13px; }
.pl-rating b { font-size: 16px; }
.pl-status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; margin-top: 6px; }
.busy { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.b-low { background: #DCFCE7; color: #166534; } .b-mid { background: #FEF3C7; color: #92400E; } .b-high { background: #FEE2E2; color: #991B1B; }
.pl-actions { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; }
.act { flex: 1 0 auto; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 8px; border-radius: 12px; background: var(--surface-2); font-size: 11.5px; font-weight: 600; color: var(--text); border: 1px solid var(--border); }
.act span { font-size: 18px; line-height: 1; }
.act.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.act.on { color: #E11D48; border-color: #FDA4AF; }
.pl-desc { margin: 2px 14px 8px; color: var(--text-2); }
.info { margin: 4px 12px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.info .row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.info .row:last-child { border-bottom: 0; }
.info .row > div { flex: 1; min-width: 0; display: grid; }
.info .row small { color: var(--text-3); font-size: 11.5px; }
.ri { width: 22px; text-align: center; flex: none; }
details.row { display: block !important; }
details.row summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; }
details.row summary::-webkit-details-marker { display: none; }
details.row summary > div { flex: 1; display: grid; }
details[open] .chev { transform: rotate(180deg); }
.chev { transition: transform .2s; color: var(--text-3); }
.week { width: 100%; margin: 8px 0 2px 32px; border-collapse: collapse; font-size: 13px; width: calc(100% - 32px); }
.week td { padding: 3px 0; } .week td:last-child { text-align: right; }
.week tr.today { font-weight: 700; color: var(--accent); }
.features { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 2px; }
.feat { font-size: 12px; padding: 5px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.card-sec { margin: 12px 12px 0; padding: 12px; border-radius: 14px; border: 1px solid var(--border); }
.card-sec h4 { margin: 0 0 10px; font-size: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.busy-bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.bb { flex: 1; height: var(--h); background: color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 4px 4px 2px 2px; transition: height .4s; }
.bb.now { background: var(--grad); box-shadow: 0 0 0 2px var(--accent-soft); }
.busy-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-3); margin-top: 4px; }
.fuel-grid, .live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; }
.fuel-grid div, .live-grid div { background: var(--surface-2); border-radius: 10px; padding: 8px; text-align: center; display: grid; }
.fuel-grid small, .live-grid small { color: var(--text-3); font-size: 11px; }
.fuel-grid b, .live-grid b { font-size: 16px; }
.rv-summary { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.rv-big { display: grid; justify-items: center; } .rv-big b { font-size: 34px; line-height: 1; } .rv-big small { color: var(--text-3); font-size: 11.5px; }
.rv-dist { flex: 1; display: grid; gap: 3px; }
.rv-dist div { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); }
.rv-dist i { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); position: relative; overflow: hidden; }
.rv-dist i::after { content: ''; position: absolute; inset: 0; width: var(--w); background: var(--star); border-radius: 6px; }
.rv-form { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: var(--surface-2); margin-bottom: 10px; }
.rv-form textarea, .rv-form input, .modal input, .modal select, .modal textarea { width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 9px 11px; outline: 0; resize: vertical; }
.rv-form textarea:focus, .rv-form input:focus, .modal input:focus, .modal select:focus, .modal textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rv-row { display: flex; gap: 8px; } .rv-row input { flex: 1; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { display: none; }
.star-input label { font-size: 26px; color: var(--surface-3); cursor: pointer; transition: color .1s, transform .1s; line-height: 1; }
:root[data-theme="dark"] .star-input label { color: #2B4659; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.star-input label:hover { transform: scale(1.15); }
.rv-item { padding: 10px 2px; border-top: 1px solid var(--border); }
.rv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-item p { margin: 6px 0 0; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.rv-reply { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: 13px; }
.pl-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px 0; }

/* ───────── Маршрут ───────── */
.rt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 0 8px; }
.rt-head b { font-size: 16px; flex: 1; }
.rt-points { position: relative; display: grid; gap: 6px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.rt-pt { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 3px 4px 3px 8px; }
.rt-pt input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 7px 2px; }
.dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 11px; flex: none; }
.dot.a { background: var(--ok); } .dot.b { background: var(--bad); }
.swap { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-1); border: 1px solid var(--border); font-size: 15px; z-index: 2; }
.rt-suggest { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px; max-height: 300px; overflow: auto; }
.modes { display: flex; gap: 6px; margin: 10px 0; }
.mode { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid transparent; font-size: 11px; font-weight: 600; color: var(--text-2); }
.mode span { font-size: 19px; }
.mode.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px; color: var(--text-2); }
.rt-options { display: grid; gap: 6px; }
.rt-opt { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--border); display: grid; gap: 3px; }
.rt-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.rt-opt > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.rt-opt b { font-size: 18px; }
.rt-opt small { color: var(--text-2); }
.mini-traffic { display: flex; height: 5px; border-radius: 4px; overflow: hidden; gap: 1px; margin-top: 4px; }
.mini-traffic i { flex: 1; } .mini-traffic .l0 { background: #22C55E; } .mini-traffic .l1 { background: #F59E0B; } .mini-traffic .l2 { background: #EF4444; }
.rt-actions { display: flex; gap: 8px; margin: 12px 0; } .rt-actions .btn.primary { flex: 1; }
.eco { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(22, 163, 74, .09); margin-bottom: 8px; }
.eco span { font-size: 22px; } .eco small { display: block; color: var(--text-2); font-size: 12px; }
.steps-title { margin: 14px 0 6px; font-size: 14px; display: flex; gap: 6px; align-items: baseline; }
.steps, .tr-legs { list-style: none; padding: 0; margin: 0; }
.steps li, .tr-legs li { display: flex; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px dashed var(--border); cursor: pointer; }
.steps li:hover { background: var(--surface-2); }
.steps li > div, .tr-legs li > div { display: grid; } .steps small, .tr-legs small { color: var(--text-3); font-size: 12px; }
.st-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-size: 17px; flex: none; font-weight: 700; }
.line-badge { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--c); color: #fff !important; font-weight: 800; font-size: 11px; }
.st-ico.line-badge { height: 32px; border-radius: 9px; }
.tr-summary { display: grid; padding: 4px 2px 8px; } .tr-summary b { font-size: 22px; } .tr-summary small { color: var(--text-2); }
.tr-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; margin-bottom: 10px; } .tr-bar i { background: var(--c); }
.taxi-list { display: grid; gap: 6px; margin-bottom: 12px; }
.taxi { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--border); text-align: left; }
.taxi.on { border-color: var(--accent); background: var(--accent-soft); }
.taxi .ti { font-size: 26px; } .taxi > div { flex: 1; display: grid; } .taxi small { color: var(--text-3); } .taxi .price { font-size: 16px; }

/* ───────── AI чат ───────── */
.assistant { display: flex; flex-direction: column; height: 100%; padding-bottom: 10px; }
.panel-body[data-view="assistant"] { display: flex; flex-direction: column; overflow: hidden; }
.panel-body[data-view="assistant"] .view { flex: 1; min-height: 0; }
.chat { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 10px; min-height: 0; }
.msg { display: flex; flex-direction: column; gap: 6px; max-width: 92%; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 10px 13px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); line-height: 1.45; }
.msg.user .bubble { background: var(--accent); color: #fff; border-color: var(--accent); border-bottom-right-radius: 5px; }
.msg.bot .bubble { border-bottom-left-radius: 5px; }
.engine { display: block; margin-top: 6px; font-size: 10.5px; color: var(--text-3); }
.muted.block { display: block; margin-top: 6px; font-size: 12px; }
.chat-places { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px; }
.typing { display: inline-flex; gap: 4px; padding: 13px 15px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-sugg { padding: 6px 0; }
.chat-input { display: flex; gap: 6px; align-items: center; padding: 6px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); }
.chat-input:focus-within { border-color: var(--accent); }
.chat-input input { flex: 1; border: 0; outline: 0; background: none; padding: 6px; min-width: 0; }

/* ───────── Сақталғандар, профиль, iso ───────── */
.hist { display: block; width: 100%; text-align: left; padding: 10px; border-radius: 10px; }
.hist:hover { background: var(--surface-2); }
.prof-card { text-align: center; padding: 16px; border-radius: 16px; background: var(--surface-2); display: grid; justify-items: center; gap: 6px; }
.prof-ava { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 800; box-shadow: 0 6px 18px rgba(14, 159, 142, .35); }
.prof-name { border: 0; background: none; text-align: center; font-size: 17px; font-weight: 700; outline: 0; border-bottom: 1px dashed var(--border); padding: 3px; }
.lvl { display: grid; } .lvl small { color: var(--text-3); }
.prof-card .meter { width: 100%; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.stat-grid div { text-align: center; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--border); display: grid; }
.stat-grid b { font-size: 18px; } .stat-grid small { color: var(--text-3); font-size: 11px; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bdg { text-align: center; padding: 10px 4px; border-radius: 12px; background: var(--surface-2); opacity: .45; filter: grayscale(1); display: grid; gap: 2px; }
.bdg.on { opacity: 1; filter: none; background: var(--accent-soft); }
.bdg span { font-size: 22px; } .bdg small { font-size: 11px; font-weight: 600; }
.settings { display: grid; gap: 6px; }
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); gap: 8px; }
.pad { padding: 0 2px; }
.iso-score { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); margin: 8px 0; }
.iso-score small { display: block; color: var(--text-2); font-size: 12px; }
.ring { --p: 50; width: 58px; height: 58px; border-radius: 50%; flex: none; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0); display: grid; place-items: center; }
.ring b { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 16px; }
.iso-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.iso-cat { display: grid; justify-items: center; padding: 8px 2px; border-radius: 12px; border: 1px solid var(--border); }
.iso-cat span { font-size: 18px; } .iso-cat b { font-size: 15px; } .iso-cat small { font-size: 10.5px; color: var(--text-3); text-align: center; line-height: 1.15; }

/* ───────── Карта үстіндегі элементтер ───────── */
.top-right { position: fixed; z-index: 15; top: 12px; right: 12px; display: flex; gap: 8px; align-items: center; }
.ctrl-pill, .ctrl.round { height: 40px; padding: 0 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-1); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.ctrl.round { width: 40px; padding: 0; justify-content: center; }
.lang-seg { background: var(--surface); box-shadow: var(--shadow-1); border: 0; }
.popover { position: absolute; top: calc(100% + 8px); right: 0; width: 290px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 14px; border: 1px solid var(--border); }
.pop-title { font-weight: 700; margin-bottom: 10px; }
.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.style-btn { display: grid; justify-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--text-2); }
.sw { width: 54px; height: 44px; border-radius: 10px; border: 2px solid transparent; display: block; background-size: cover; }
.style-btn.on .sw { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.style-btn.on { color: var(--accent); }
.sw-light { background: linear-gradient(135deg, #F2EFE9 40%, #AAD3DF 40% 55%, #F2EFE9 55%), #F2EFE9; }
.sw-dark { background: linear-gradient(135deg, #1F2A33 45%, #2D4152 45% 52%, #1F2A33 52%); }
.sw-minimal { background: linear-gradient(135deg, #FAFAF8 45%, #D7DDE2 45% 50%, #FAFAF8 50%); border-color: var(--border); }
.sw-satellite { background: radial-gradient(circle at 30% 30%, #5E7A44, #2F4A2B 60%, #3B4F5F); }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 8px 2px; cursor: pointer; font-weight: 500; }
.toggle input { display: none; }
.toggle i { width: 38px; height: 22px; border-radius: 22px; background: var(--surface-3); position: relative; transition: background .2s; flex: none; }
.toggle i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.toggle input:checked + i { background: var(--accent); }
.toggle input:checked + i::after { transform: translateX(16px); }
.legend { font-size: 11.5px; color: var(--text-2); display: grid; gap: 4px; margin-top: 6px; }
.lg { display: inline-block; width: 14px; height: 5px; border-radius: 3px; background: var(--c); margin: 0 3px 1px 6px; vertical-align: middle; }

.pulse-chips { position: fixed; z-index: 10; bottom: 16px; left: calc(var(--panel-w) + 26px); display: flex; gap: 6px; transition: left .35s; }
.panel.collapsed ~ .pulse-chips { left: 16px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px 0 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-1); font-weight: 600; font-size: 12.5px; }
span.pchip { padding-left: 11px; }
.pchip i { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 999px; background: var(--c); color: #fff; font-style: normal; font-weight: 800; font-size: 12px; }
.pchip.on { box-shadow: 0 0 0 2px var(--accent), var(--shadow-1); }
.pchip.online { gap: 7px; }

.map-ctrls { position: fixed; z-index: 10; right: 12px; bottom: 96px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.ctrl-group { display: flex; flex-direction: column; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-1); overflow: hidden; }
.ctrl-group button { width: 42px; height: 42px; font-size: 22px; font-weight: 500; }
.ctrl-group button + button { border-top: 1px solid var(--border); }
.ctrl { width: 42px; height: 42px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-1); display: grid; place-items: center; font-size: 18px; }
.ctrl:hover, .ctrl-group button:hover { background: var(--surface-2); }
.ctrl.txt { font-weight: 800; font-size: 13px; }
.ctrl.on { background: var(--accent); color: #fff; }
.ctrl.busy { animation: spin 1s linear infinite; }
#compass span { display: inline-block; transform: rotate(-45deg); color: var(--bad); transition: transform .2s; }
.fab { position: fixed; z-index: 10; right: 12px; bottom: 36px; height: 46px; padding: 0 18px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(14, 159, 142, .45); display: inline-flex; align-items: center; gap: 6px; transition: transform .15s; }
.fab:hover { transform: translateY(-2px); }
.maplibregl-ctrl-bottom-right { right: 64px; bottom: 0; }
.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-ctrl-scale { background: rgba(255, 255, 255, .7); border-color: #4A5D6E; font-size: 10px; }

.broadcasts { position: fixed; z-index: 25; top: 64px; right: 12px; width: min(380px, calc(100vw - 24px)); display: grid; gap: 8px; }
.bcast { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-2); border-left: 4px solid var(--blue); animation: fadeIn .3s; }
.bcast.warning { border-color: var(--warn); } .bcast.alert { border-color: var(--bad); } .bcast.success { border-color: var(--ok); }
.bcast > div { flex: 1; } .bcast p { margin: 2px 0 0; color: var(--text-2); font-size: 13px; }
.bc-ico { font-size: 20px; }

.tool-chip { position: fixed; z-index: 22; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: var(--shadow-2); white-space: nowrap; }
.tool-chip .link { color: #5EEAD4; }

.ctx { position: fixed; z-index: 45; width: 220px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-2); padding: 6px; border: 1px solid var(--border); }
.ctx-head { font-size: 11px; color: var(--text-3); padding: 6px 10px; font-variant-numeric: tabular-nums; }
.ctx button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; }
.ctx button:hover { background: var(--surface-2); }

.modal { position: fixed; inset: 0; z-index: 60; background: rgba(4, 16, 24, .45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fadeIn .2s; }
.modal-card { width: min(440px, 100%); background: var(--surface); border-radius: var(--r-xl); padding: 20px; box-shadow: var(--shadow-2); max-height: 90vh; overflow: auto; }
.modal-card h3 { margin: 0 0 4px; }
.modal-card form { display: grid; gap: 10px; margin-top: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.rep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rep-type { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; border: 1.5px solid var(--border); cursor: pointer; }
.rep-type input { display: none; }
.rep-type span { font-size: 22px; } .rep-type small { font-size: 11.5px; font-weight: 600; }
.rep-type:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.rep-loc { font-size: 12.5px; color: var(--text-2); display: flex; gap: 8px; align-items: center; }
.big-emoji { font-size: 54px; animation: pop .5s; }
.progress { height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; margin: 14px 0; }
.progress i { display: block; height: 100%; width: 40%; background: var(--grad); animation: slide 1s ease-in-out infinite; }

.toasts { position: fixed; z-index: 70; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow-2); font-weight: 600; animation: fadeIn .25s; transition: opacity .35s, transform .35s; }
.toast.out { opacity: 0; transform: translateY(8px); }

.maintenance { position: fixed; inset: 0; z-index: 90; background: rgba(8, 19, 27, .92); color: #fff; display: grid; place-items: center; text-align: center; padding: 20px; }
.maintenance img { width: 72px; }

/* ───────── BAĞDAR Drive — навигация HUD (Amap стилі) ───────── */
.nav-hud { position: fixed; inset: 0; z-index: 30; pointer-events: none; display: flex; flex-direction: column; align-items: center; padding-top: 12px; color: #fff; }
.nh-top { pointer-events: auto; width: min(540px, calc(100% - 24px)); background: linear-gradient(180deg, #1D3149, #142438); border-radius: 20px; padding: 12px 16px 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .08); position: relative; }
.nh-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nh-ico { width: 62px; height: 66px; display: grid; place-items: center; flex: none; }
.nh-svg { width: 46px; height: 60px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3)); }
.nh-flag { font-size: 40px; }
.nh-txt { min-width: 0; flex: 1; }
.nh-dist { font: 800 40px/1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nh-dist small { font-size: 20px; font-weight: 700; opacity: .85; margin-left: 5px; }
.nh-street { font-size: 17px; font-weight: 600; opacity: .92; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-lanes { display: flex; justify-content: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); }
.nh-lanes .ln { width: 42px; height: 48px; border-radius: 9px; display: grid; place-items: center; color: #62758B; background: rgba(255, 255, 255, .04); }
.nh-lanes .ln.on { color: #FFFFFF; background: rgba(34, 211, 106, .2); box-shadow: inset 0 -3px 0 #22D36A; }
.nh-lanes .ln svg { width: 26px; height: 34px; }
.nh-then { position: absolute; left: 14px; bottom: -32px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 0 0 12px 12px; background: #142438; font-size: 13px; font-weight: 600; }
.nh-mini { width: 16px; height: 21px; }
.nh-left { align-self: flex-start; margin: 16px 0 0 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; pointer-events: auto; }
.nh-speed { width: 74px; height: 74px; border-radius: 50%; background: #fff; color: #10212F; display: grid; place-content: center; text-align: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); border: 3px solid #fff; transition: border-color .2s, color .2s; }
.nh-speed b { font: 800 27px/1 var(--font); font-variant-numeric: tabular-nums; }
.nh-speed small { font-size: 10px; color: #5B6B7A; font-weight: 600; }
.nh-speed.over { border-color: #E53935; color: #E53935; animation: overspeed 1s infinite; }
@keyframes overspeed { 50% { box-shadow: 0 0 0 8px rgba(229, 57, 53, .25), 0 8px 22px rgba(0, 0, 0, .3); } }
.lim { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 5px solid #E53935; color: #111; font: 800 16px/1 var(--font); font-style: normal; flex: none; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.nh-limit-wrap { margin-left: 15px; }
.nh-cam { display: flex; align-items: center; gap: 6px; background: #fff; color: #111; border-radius: 999px; padding: 4px 4px 4px 14px; font-weight: 800; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); animation: fadeIn .25s; }
.nh-cam b { font-size: 16px; font-variant-numeric: tabular-nums; }
.nh-cam .cam-ico { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid #E53935; display: grid; place-items: center; font-size: 15px; background: #fff; }
.nh-cam .lim { width: 36px; height: 36px; border-width: 4px; font-size: 14px; }
.nh-progress { position: absolute; right: 16px; top: 190px; bottom: 150px; width: 10px; border-radius: 6px; pointer-events: none; }
.np-track { position: absolute; inset: 0; border-radius: 6px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 4px 12px rgba(0, 0, 0, .25); }
.np-pass { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: #A5B0BC; border-radius: 6px; }
.np-car { position: absolute; left: 50%; bottom: 0; width: 20px; height: 20px; margin-left: -10px; margin-bottom: -10px; border-radius: 50%; background: #fff; border: 4px solid #1673E6; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.np-dest { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); font-size: 20px; }
.nh-tools { position: absolute; left: 14px; bottom: 160px; display: flex; flex-direction: column; gap: 8px; pointer-events: auto; }
.nh-tools button { width: 46px; height: 46px; border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); font-size: 18px; font-weight: 800; }
.nh-recenter { position: absolute; left: 50%; bottom: 148px; transform: translateX(-50%); pointer-events: auto; padding: 10px 18px; border-radius: 999px; background: #142438; color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.nh-road { position: absolute; left: 50%; bottom: 98px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 140px); padding: 5px 16px 5px 5px; border-radius: 999px; background: rgba(16, 30, 46, .88); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.nh-road .lim { width: 30px; height: 30px; border-width: 3.5px; font-size: 12px; }
.nh-bottom { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(540px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); pointer-events: auto; }
.nh-bottom .nh-x, .nh-bottom .nh-ov { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); font-size: 20px; font-weight: 700; flex: none; }
.nh-bottom .nh-x:hover { background: #FEE2E2; color: #DC2626; }
.nh-eta { flex: 1; text-align: center; display: grid; }
.nh-eta b { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.nh-eta b span { font-weight: 600; margin-left: 6px; }
.nh-eta small { color: var(--text-2); font-size: 13px; font-weight: 600; }
.tl-count { font-size: 15px; }
.nh-demo { position: absolute; right: 14px; bottom: 82px; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(16, 30, 46, .7); color: rgba(255, 255, 255, .85); }
.nh-arrive { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 16, 24, .45); pointer-events: auto; animation: fadeIn .3s; }
.arr-card { width: min(380px, calc(100% - 32px)); background: var(--surface); color: var(--text); border-radius: 24px; padding: 24px; text-align: center; box-shadow: var(--shadow-2); }
.arr-ico { font-size: 52px; animation: pop .5s; }
.arr-card h3 { margin: 6px 0 2px; font-size: 21px; }
.arr-card p { margin: 0 0 14px; color: var(--text-2); }
.arr-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.arr-stats div { background: var(--surface-2); border-radius: 12px; padding: 10px; display: grid; }
.arr-stats b { font-size: 18px; } .arr-stats small { color: var(--text-3); font-size: 11.5px; }
body.navigating .top-right, body.navigating .fab, body.navigating .pulse-chips, body.navigating .panel-toggle, body.navigating .map-ctrls, body.navigating .maplibregl-ctrl-bottom-right { display: none; }
body.navigating .broadcasts { top: auto; bottom: 160px; }
.nav-car svg { display: block; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.nav-ring { width: 128px; height: 128px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); background: radial-gradient(circle, rgba(22, 115, 230, .18), rgba(22, 115, 230, .04) 70%); position: relative; }
.nav-ring b, .nav-ring i { position: absolute; font: 800 12px/1 var(--font); font-style: normal; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.nav-ring b { top: -7px; left: 50%; margin-left: -4px; color: #FF5A52; }
.nav-ring i:nth-of-type(1) { right: -6px; top: 50%; margin-top: -6px; }
.nav-ring i:nth-of-type(2) { bottom: -7px; left: 50%; margin-left: -4px; }
.nav-ring i:nth-of-type(3) { left: -8px; top: 50%; margin-top: -6px; }
.nav-light { display: flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 10px; color: #fff; font: 800 16px/1 var(--font); font-variant-numeric: tabular-nums; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); border: 2px solid rgba(255, 255, 255, .85); }
.nav-light.green { background: #149447; } .nav-light.red { background: #D93025; }
.nav-light .tl { width: 22px; height: 22px; border-radius: 6px; background: #0B1A26; display: grid; place-items: center; }
.nav-light .tl i { width: 11px; height: 11px; border-radius: 50%; background: #3BEA7E; box-shadow: 0 0 8px #3BEA7E; }
.nav-light.red .tl i { background: #FF4D42; box-shadow: 0 0 8px #FF4D42; }
@media (max-width: 760px) {
  .nh-dist { font-size: 32px; } .nh-street { font-size: 15px; } .nh-ico { width: 52px; } .nh-svg { width: 38px; height: 50px; }
  .nh-lanes .ln { width: 34px; height: 42px; } .nh-speed { width: 62px; height: 62px; } .nh-speed b { font-size: 22px; }
  .nh-progress { top: 210px; bottom: 170px; right: 10px; }
}
/* Маркерлер */
.mk { pointer-events: none; }
.sel-pin { width: 44px; height: 44px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--c); border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); display: grid; place-items: center; animation: drop .45s cubic-bezier(.2, 1.4, .4, 1); position: relative; z-index: 2; margin-bottom: 6px; }
.sel-pin span { transform: rotate(45deg); font-size: 20px; }
.sel-pulse { position: absolute; left: 50%; bottom: -6px; width: 18px; height: 8px; margin-left: -9px; border-radius: 50%; background: color-mix(in srgb, var(--c) 50%, transparent); animation: ring 1.6s infinite; }
@keyframes drop { from { transform: rotate(-45deg) translate(-30px, -30px) scale(.6); opacity: 0; } to { transform: rotate(-45deg); opacity: 1; } }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
.hover-ring { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); animation: pop .25s; }
.ab { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.ab.a { background: var(--ok); } .ab.b { background: var(--bad); }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #1673E6; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(22, 115, 230, .2), 0 2px 6px rgba(0, 0, 0, .3); animation: me 2s infinite; }
@keyframes me { 50% { box-shadow: 0 0 0 14px rgba(22, 115, 230, .08), 0 2px 6px rgba(0, 0, 0, .3); } }
.iso-center { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 6px var(--accent-soft); }

/* Картадағы нүкте / атаусыз ғимарат карточкасы */
.pt-pop { min-width: 230px; }
.pt-head { display: flex; gap: 10px; align-items: flex-start; }
.pt-head > div { display: grid; gap: 2px; min-width: 0; }
.pt-head b { font-size: 14.5px; line-height: 1.25; }
.pt-ico { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: var(--accent-soft); }
.pt-pop .coords { font-variant-numeric: tabular-nums; font-size: 11px; }
.pt-pop .pop-actions .btn.primary { flex: 1; }
.drop-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: #E53935; border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); display: grid; place-items: center; margin-bottom: 4px; animation: drop .4s cubic-bezier(.2, 1.4, .4, 1); }
.drop-pin i { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
/* ───────── Көлік таңдау (3D) ───────── */
.modal-card.wide { width: min(620px, 100%); }
.veh h3 { margin: 0 0 4px; }
.veh-stage { position: relative; height: 270px; margin: 12px 0; border-radius: 18px; overflow: hidden; background: radial-gradient(ellipse at 50% 78%, #1C4A52 0%, #0E2533 45%, #070F16 100%); }
.veh-stage canvas { width: 100%; height: 100%; display: block; }
.veh-stage.no3d { display: grid; place-items: center; }
.veh-badge { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; font-size: 13px; backdrop-filter: blur(6px); }
.veh-loading { position: absolute; inset: 0; display: grid; place-items: center; }
.veh-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.veh-type { display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface-2); font-weight: 600; font-size: 12.5px; color: var(--text-2); transition: all .15s; }
.veh-type svg { width: 64px; height: 27px; color: var(--text-3); }
.veh-type:hover { border-color: var(--accent); }
.veh-type.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.veh-type.on svg { color: var(--accent); }
.veh-colors { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 12px; }
.veh-color { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px var(--border), inset 0 -4px 7px rgba(0, 0, 0, .25); transition: transform .12s; }
.veh-color:hover { transform: scale(1.1); }
.veh-color.on { box-shadow: 0 0 0 3px var(--accent), inset 0 -4px 7px rgba(0, 0, 0, .25); }
/* Навигациядағы көлік нөмірі (көліктің артында, әрқашан оқылады) */
/* ҚР нөмір тақтасының сол жағы: ту + KZ (ақ фонда, нақты тақтадағыдай) */
.kz-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 3px 5px; flex: none; }
.kz-side .kz-flag { display: block; width: 26px; height: 13px; border-radius: 1.5px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25); }
.kz-side i { font: 900 10px/1 Arial, sans-serif; font-style: normal; color: #111418; letter-spacing: .3px; }
.nav-plate { display: flex; align-items: stretch; border: 2.5px solid #111418; border-radius: 6px; background: #fff; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); pointer-events: none; }
.nav-plate b { display: flex; align-items: center; padding: 3px 10px 2px 4px; color: #111418; font: 800 19px/1.1 "Arial Narrow", Arial, sans-serif; letter-spacing: 1.2px; white-space: nowrap; }
/* Мемлекеттік нөмір өрісі (ҚР тақтасына ұқсас) */
.veh-plate { display: grid; gap: 5px; margin-top: 14px; }
.veh-plate-field { display: flex; align-items: stretch; width: min(300px, 100%); border: 2.5px solid #111418; border-radius: 8px; background: #fff; overflow: hidden; }
.veh-plate-field .kz-side { padding: 4px 4px 4px 8px; }
.veh-plate-field .kz-side .kz-flag { width: 30px; height: 15px; }
.veh-plate-field .kz-side i { font-size: 11px; }
.veh-plate-field input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 7px 10px; background: transparent; color: #111418; font: 800 22px/1.1 "Arial Narrow", Arial, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.veh-plate-field:focus-within { box-shadow: 0 0 0 3px var(--accent); }
#veh-plate-msg.bad { color: var(--danger, #DC2626); }
.veh-share { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; margin-top: 4px; }
.veh-share input { width: 17px; height: 17px; accent-color: var(--accent); }
.veh-reg-note { color: var(--text-2); background: var(--accent-soft); padding: 6px 10px; border-radius: 10px; }
.veh-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--c); border: 1px solid var(--border); vertical-align: middle; }
.nh-lane-ind { display: inline-flex; gap: 3px; margin-left: 4px; }
.nh-lane-ind i { width: 7px; height: 14px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.nh-lane-ind i.on { background: #1FE07A; box-shadow: 0 0 6px #1FE07A; }
@media (max-width: 760px) { .veh-stage { height: 210px; } .veh-type svg { width: 52px; } }
/* Попаптар */
.bg-popup .maplibregl-popup-content { background: var(--surface); color: var(--text); border-radius: 14px; box-shadow: var(--shadow-2); padding: 12px 14px; font: inherit; }
.bg-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--surface); }
.bg-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--surface); }
.bg-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--surface); }
.bg-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--surface); }
.bg-popup .maplibregl-popup-close-button { color: var(--text-3); font-size: 18px; right: 4px; top: 2px; }
.pop { display: grid; gap: 4px; min-width: 180px; padding-right: 10px; }
.pop p { margin: 2px 0; }
.pop-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pop-lines { display: flex; gap: 4px; flex-wrap: wrap; }
.pop-near { display: grid; gap: 2px; margin-top: 4px; } .pop-near .link { text-align: left; font-size: 12.5px; }

/* ───────── Мобильді ───────── */
@media (max-width: 760px) {
  .panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; border-radius: 22px 22px 0 0; height: 50vh; transition: height .3s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom); }
  .panel.sheet-peek { height: 150px; } .panel.sheet-half { height: 52vh; } .panel.sheet-full { height: calc(100vh - 48px); height: calc(100dvh - 48px); }
  .panel.collapsed { transform: translateY(110%); }
  .panel-toggle { display: none; }
  .sheet-handle { display: grid; place-items: center; height: 18px; cursor: grab; touch-action: none; }
  .sheet-handle i { width: 42px; height: 5px; border-radius: 5px; background: var(--surface-3); }
  .panel-head { padding-top: 2px; }
  .brand-word { font-size: 18px; }
  .top-right { top: 10px; right: 10px; gap: 6px; }
  .top-right .lang-seg { display: none; }
  .ctrl-pill span { display: none; }
  .ctrl-pill { padding: 0 11px; }
  .pulse-chips { left: 10px !important; top: 10px; bottom: auto; flex-wrap: wrap; max-width: calc(100% - 130px); }
  .pulse-chips .pchip.online { display: none; }
  .map-ctrls { bottom: auto; top: 64px; right: 10px; }
  .map-ctrls .ctrl-group { display: none; }
  .fab { bottom: auto; top: 260px; right: 10px; padding: 0 13px; height: 42px; }
  .fab span { display: none; }
  .broadcasts { top: 56px; right: 8px; left: 8px; width: auto; }
  .nav-bottom { bottom: 12px; gap: 10px; }
  .toasts { bottom: auto; top: 70px; }
  .maplibregl-ctrl-bottom-right { right: 0; bottom: 150px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ───────── Басқа қалаларды жүктеу ───────── */
#city-menu .city-more { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 10px; }
#city-menu .city-more b { color: var(--accent); }
.cdl h3 { margin: 0 0 4px; }
.cdl-list { display: grid; gap: 6px; margin: 12px 0 8px; max-height: min(58vh, 520px); overflow-y: auto; padding-right: 2px; }
.cdl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.cdl-row > div { display: grid; gap: 1px; min-width: 0; }
.cdl-row.ready { border-color: var(--accent); }
.cdl-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.cdl-st.ok { color: var(--accent); }
.cdl-st.busy { color: var(--text-2); }
.cdl-loading { display: grid; place-items: center; padding: 30px; }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; }

/* Пікір: «Сіздің пікіріңіз» және тіркелу шақыруы */
.rv-mine { border: 1.5px solid var(--accent); background: var(--accent-soft); border-radius: 14px; padding: 10px 12px; margin: 8px 0; }
.rv-mine .rv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-mine p { margin: 6px 0; }
.rv-mine-acts { display: flex; gap: 8px; }
.rv-login { display: grid; gap: 8px; justify-items: start; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--border); margin: 8px 0; }
.rv-login p { margin: 0; font-size: 13.5px; }
.rv-row small.muted { flex: 1; align-self: center; }
