/* ============================================================
   FleetLook — dashboard: diagramma, animatsiya, yangi komponentlar (v3.2)
   style.css dagi o'zgaruvchilardan (--bg3, --text, --accent ...) foydalanadi.
   ============================================================ */

/* Paydo bo'lish animatsiyasi */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal-on { animation: revealIn .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes revealIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* KPI plitkalari */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi {
  background: linear-gradient(160deg, var(--bg3), var(--bg4));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 16px;
  position: relative; overflow: hidden; transition: transform .2s, border-color .2s;
}
.kpi:hover { transform: translateY(-2px); border-color: var(--border2); }
.kpi::after { content: ''; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%; background: var(--kpi-glow, rgba(108,99,255,.14)); filter: blur(6px); }
.kpi-icon { font-size: 1.15rem; margin-bottom: 8px; display: block; }
.kpi-val { font-family: var(--font-head); font-size: clamp(1.05rem, 1.75vw, 1.45rem); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.kpi-val.txt { font-size: 1.02rem; white-space: normal; line-height: 1.25; }
.kpi-label { font-size: 0.72rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }
.kpi-sub { font-size: 0.75rem; color: var(--text2); margin-top: 3px; }
.kpi.green { --kpi-glow: rgba(34,197,94,.16); }
.kpi.red { --kpi-glow: rgba(239,68,68,.16); }
.kpi.yellow { --kpi-glow: rgba(245,158,11,.16); }
.kpi.blue { --kpi-glow: rgba(59,130,246,.16); }

/* Vizual kartalar */
.viz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.viz-grid.wide { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.viz-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; min-width: 0; margin-bottom: 16px; }
.viz-grid > .viz-card { margin-bottom: 0; }
.viz-card.full { grid-column: 1 / -1; }
.viz-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text2); margin-bottom: 4px; }
.viz-sub { font-size: 0.78rem; color: var(--text3); margin-bottom: 16px; line-height: 1.5; }
.viz-note { font-size: 0.78rem; color: var(--text3); margin-top: 14px; line-height: 1.6; }
.viz-note a, .viz-sub a { color: var(--accent2); text-decoration: underline; }
.gauge-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }

/* Donut */
.fl-donut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.fl-donut svg { max-width: 100%; height: auto; flex: 0 0 auto; }
.fl-seg { cursor: pointer; }
.fl-donut-val { font-family: var(--font-head); font-size: 28px; font-weight: 800; fill: var(--text); }
.fl-donut-lbl { font-size: 11px; fill: var(--text3); text-transform: uppercase; letter-spacing: .06em; }
.fl-legend { list-style: none; display: grid; gap: 7px; min-width: 150px; flex: 1 1 150px; padding: 0; margin: 0; }
.fl-legend li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 8px; align-items: center; font-size: 0.82rem; padding: 3px 6px; border-radius: 6px; cursor: default; }
.fl-legend li:hover { background: rgba(255,255,255,.04); }
.fl-legend .dot { width: 10px; height: 10px; border-radius: 3px; }
.fl-legend .lbl { color: var(--text2); min-width: 0; overflow-wrap: anywhere; }   /* uzun (ruscha) yorliq kesilmasdan o'raladi */
.fl-legend .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.fl-legend .pct { color: var(--text3); font-size: 0.75rem; min-width: 36px; text-align: right; }

/* Gauge */
.fl-gauge { text-align: center; }
.fl-gauge svg { display: block; max-width: 230px; margin: 0 auto; }
.fl-gauge-val { font-family: var(--font-head); font-size: 26px; font-weight: 800; fill: var(--text); }
.fl-gauge-scale { font-size: 9.5px; fill: var(--text3); }
.fl-gauge-label { font-size: 0.8rem; font-weight: 600; margin-top: 2px; }
.fl-gauge-sub { font-size: 0.72rem; color: var(--text3); margin-top: 2px; }
.fl-tick { cursor: help; }

/* Gorizontal ustunlar */
.fl-hbars { display: grid; gap: 9px; }
.fl-hrow { display: grid; grid-template-columns: minmax(84px, 170px) 1fr auto; gap: 12px; align-items: center; font-size: 0.82rem; }
.fl-hlabel { color: var(--text2); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; line-height: 1.25; }   /* uzun (ruscha) yorliq 2 qatorgacha o'raladi, kesilmaydi */
.fl-htrack { position: relative; height: 12px; background: var(--border); border-radius: 99px; overflow: hidden; cursor: help; }
.fl-hfill, .fl-hinner { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.fl-hfill { opacity: .9; }
.fl-hinner { z-index: 1; }
.fl-hval { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.fl-hnote { color: var(--text3); font-weight: 400; margin-left: 6px; font-size: 0.74rem; }
.fl-empty { color: var(--text3); font-size: 0.85rem; padding: 18px 0; text-align: center; }

/* Ustunli (stacked) diagramma */
.fl-cols { width: 100%; }
.fl-plot { position: relative; margin-left: 38px; border-bottom: 1px solid var(--border2); }
.fl-grid { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--border); pointer-events: none; }
.fl-grid span { position: absolute; left: -38px; top: -8px; width: 32px; text-align: right; font-size: 0.66rem; color: var(--text3); }
.fl-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 3px; }
.fl-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; cursor: help; border-radius: 4px 4px 0 0; transition: background .15s; }
.fl-col:hover { background: rgba(255,255,255,.05); }
.fl-stack { width: 100%; height: 100%; display: flex; flex-direction: column-reverse; }
.fl-cseg { width: 100%; }
.fl-cseg:last-child { border-radius: 4px 4px 0 0; }
.fl-axis { display: flex; gap: 3px; margin: 6px 0 0 38px; }
.fl-alab { flex: 1 1 0; min-width: 0; font-size: 0.64rem; color: var(--text3); text-align: center; white-space: nowrap; overflow: visible; }
.fl-clegend { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 0 38px; font-size: 0.76rem; color: var(--text2); }
.fl-clegend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Vaqt chizig'i */
.fl-timeline { display: grid; gap: 6px; }
.fl-tl-axis { position: relative; height: 16px; margin-left: 190px; font-size: 0.66rem; color: var(--text3); }
.fl-tl-axis span { position: absolute; transform: translateX(-50%); }
.fl-tl-row { display: grid; grid-template-columns: 180px 1fr; gap: 10px; align-items: center; }
.fl-tl-label { font-size: 0.78rem; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-tl-label small { display: block; color: var(--text3); font-size: 0.68rem; overflow: hidden; text-overflow: ellipsis; }
.fl-tl-track { position: relative; height: 14px; background: var(--border); border-radius: 99px; overflow: hidden; }
.fl-tl-bar { position: absolute; top: 0; bottom: 0; border-radius: 99px; transform-origin: left center; cursor: help; opacity: .92; }

/* Talab vs fayl */
.fl-cover { display: grid; gap: 26px; }
.fl-chead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; font-size: 0.85rem; }
.fl-clabel { color: var(--text2); font-weight: 600; }
.fl-cnum { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.fl-ctrack { position: relative; height: 14px; background: var(--border); border-radius: 99px; cursor: help; }
.fl-cfill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.fl-creq { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #e8eaf0; border-radius: 2px; }
.fl-creq span { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 0.66rem; color: var(--text2); white-space: nowrap; }
.fl-cnote { font-size: 0.74rem; color: var(--text3); margin-top: 22px; }

/* Tooltip */
.fl-tip { position: fixed; z-index: 1000; pointer-events: none; background: #0b0d12; color: var(--text); border: 1px solid var(--border2); border-radius: 8px; padding: 8px 11px; font-size: 0.78rem; line-height: 1.5; white-space: pre-line; max-width: 280px; box-shadow: 0 8px 28px rgba(0,0,0,.5); opacity: 0; transition: opacity .12s; }
.fl-tip.on { opacity: 1; }

/* Chiplar (yuk turlari, tasnif) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 0.8rem; background: var(--bg4); border: 1px solid var(--border); color: var(--text2); transition: transform .15s, border-color .15s; }
.chip:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--text); }
.chip.on { background: rgba(108,99,255,.14); border-color: rgba(108,99,255,.35); color: var(--text); }
.chip.green { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.3); color: #86efac; }
.chip.red { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); color: #fca5a5; }
.chip.yellow { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.3); color: #fcd34d; }
.chip.muted { opacity: .55; }
.chip b { font-weight: 700; }

/* Jadvallar */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.tbl th { text-align: left; padding: 8px 10px; color: var(--text3); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border2); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.03); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .muted { color: var(--text3); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.pill.green { background: rgba(34,197,94,.14); color: #86efac; }
.pill.red { background: rgba(239,68,68,.14); color: #fca5a5; }
.pill.yellow { background: rgba(245,158,11,.14); color: #fcd34d; }
.pill.gray { background: rgba(139,144,160,.14); color: var(--text2); }

/* Ma'lumot juftliklari */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 22px; }
.kv > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.kv span { font-size: 0.7rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; }
.kv b { font-weight: 600; font-size: 0.9rem; overflow-wrap: anywhere; }

/* Yuklanish skeleti */
.skel-wrap { display: grid; gap: 14px; }
.skel { border-radius: var(--radius); height: 120px; background: linear-gradient(100deg, var(--bg3) 30%, var(--bg4) 50%, var(--bg3) 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border: 1px solid var(--border); }
.skel.tall { height: 240px; }
.skel.short { height: 64px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Qidiruv maslahati va tab qatori */
.search-hint { font-size: 0.78rem; color: var(--text3); margin-top: 10px; line-height: 1.55; min-height: 1.2em; }
/* Profil tablari: Swiper (public/vendor/swiper) — BITTA qator, barmoq/sichqoncha bilan siljiydi, konteynerdan chiqmaydi */
.profile-tabs.swiper { display: block; width: 100%; overflow: hidden; position: relative; }
.profile-tabs .swiper-wrapper { align-items: stretch; }
.profile-tabs .ptab.swiper-slide { width: auto; height: auto; flex: 0 0 auto; white-space: nowrap; text-align: center; padding: 10px 12px; }   /* ixcham: 1280 px da hamma 10 tab sig'adi */
.profile-tabs .ptab::after { bottom: 0; }
.profile-tabs.swiper:not(.swiper-initialized) .swiper-wrapper { overflow-x: auto; scrollbar-width: thin; }   /* Swiper yuklanmasa — oddiy aylantirish */
.profile-tabs.swiper:not(.swiper-initialized) .ptab { flex: 0 0 auto; }
.profile-tabs.swiper.swiper-initialized { cursor: grab; }
.profile-tabs.swiper.swiper-initialized:active { cursor: grabbing; }
/* Swiper Navigation strelkalari: chetda yana tab borligini ko'rsatadi va bosilganda suradi (siljish tugagan tomonda yashirin) */
.profile-tabs .ptab-nav { display: none; position: absolute; top: 0; bottom: 1px; width: 36px; z-index: 6; align-items: center; padding: 0; border: 0; color: var(--text); cursor: pointer; transition: opacity .2s, color .2s; }
.profile-tabs.swiper-initialized .ptab-nav { display: flex; }
.profile-tabs .ptab-prev { left: 0; justify-content: flex-start; padding-left: 4px; background: linear-gradient(to right, var(--bg, #0b0d12) 60%, transparent); }
.profile-tabs .ptab-next { right: 0; justify-content: flex-end; padding-right: 4px; background: linear-gradient(to left, var(--bg, #0b0d12) 60%, transparent); }
.profile-tabs .ptab-nav .ic { width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: var(--bg2, rgba(255,255,255,.06)); border: 1px solid var(--border, rgba(255,255,255,.1)); transition: background .2s, border-color .2s; }
.profile-tabs .ptab-nav:hover .ic, .profile-tabs .ptab-nav:focus-visible .ic { background: var(--accent); border-color: var(--accent); color: #fff; }
.profile-tabs .ptab-nav.swiper-button-disabled, .profile-tabs .ptab-nav.swiper-button-lock { opacity: 0; pointer-events: none; }
.tab-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 0.62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(34,197,94,.16); color: #86efac; border: 1px solid rgba(34,197,94,.35); vertical-align: 1px; }
@media (max-width: 640px) { .ptab { padding: 9px 11px; font-size: 0.82rem; } }
.ptab { white-space: nowrap; }
.vehicle-ev { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); }

@media (max-width: 640px) {
  .viz-grid, .viz-grid.wide { grid-template-columns: 1fr; }
  .viz-card { padding: 16px; }
  .fl-hrow { grid-template-columns: minmax(70px, 110px) 1fr auto; gap: 8px; }
  .fl-tl-row { grid-template-columns: 110px 1fr; }
  .fl-tl-axis { margin-left: 120px; }
  .kv { grid-template-columns: 1fr; }
}

/* Harakatni kamaytirish: animatsiyalar o'chadi */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal-on, .skel { animation: none; }
  .kpi, .chip { transition: none; }
}

/* ── Yangi: aylana progress, hayot chizig'i, BASIC kartalari, natijalar dashboardi ── */
.fl-ring { display: inline-block; }
.fl-ring-val { font-family: var(--font-head); font-size: 17px; font-weight: 800; fill: var(--text); }

.fl-ms { display: grid; gap: 10px; }
.fl-ms-axis { position: relative; height: 16px; margin-left: 210px; font-size: 0.66rem; color: var(--text3); }
.fl-ms-axis span { position: absolute; transform: translateX(-50%); }
.fl-ms-row { display: grid; grid-template-columns: 200px 1fr; gap: 10px; align-items: center; }
.fl-ms-label { font-size: 0.82rem; color: var(--text); font-weight: 600; line-height: 1.3; min-width: 0; }
.fl-ms-label small { display: block; font-weight: 400; color: var(--text3); font-size: 0.7rem; margin-top: 2px; }
.fl-ms-track { position: relative; height: 4px; background: var(--border2); border-radius: 99px; }
.fl-ms-dot { position: absolute; top: 50%; width: 15px; height: 15px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid var(--bg3); cursor: help; box-shadow: 0 0 0 3px rgba(255,255,255,.05); }

.basic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.basic-card { background: var(--bg4); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 14px; align-items: center; transition: transform .2s, border-color .2s; }
.basic-card:hover { transform: translateY(-2px); border-color: var(--border2); }
.basic-card.acute { border-color: rgba(239,68,68,.5); box-shadow: 0 0 0 1px rgba(239,68,68,.25) inset; }
.basic-card .bc-main { min-width: 0; flex: 1; }
.basic-card .bc-name { font-weight: 700; font-size: 0.86rem; }
.basic-card .bc-desc { font-size: 0.72rem; color: var(--text3); margin: 3px 0 7px; line-height: 1.45; }
.basic-card .bc-row { font-size: 0.78rem; color: var(--text2); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.basic-card .bc-row b { color: var(--text); }

.view-toggle { display: inline-flex; border: 1px solid var(--border2); border-radius: 99px; overflow: hidden; }
.view-toggle button { background: transparent; border: none; color: var(--text2); font-family: var(--font-body); font-size: 0.8rem; padding: 7px 14px; cursor: pointer; transition: background .15s, color .15s; }
.view-toggle button.active { background: var(--accent); color: #fff; }
.view-toggle button:hover:not(.active) { color: var(--text); background: rgba(255,255,255,.05); }
.multi-header .view-toggle { margin-left: auto; }

#resultsViz { margin-bottom: 18px; }
.tbl.sortable th[data-sort] { cursor: pointer; user-select: none; }
.tbl.sortable th[data-sort]:hover { color: var(--text); }
.tbl.sortable th.sorted-asc::after { content: ''; display: inline-block; margin-left: 6px; vertical-align: 2px; border: 4px solid transparent; border-top-width: 0; border-bottom: 5px solid var(--accent2); }
.tbl.sortable th.sorted-desc::after { content: ''; display: inline-block; margin-left: 6px; vertical-align: 1px; border: 4px solid transparent; border-bottom-width: 0; border-top: 5px solid var(--accent2); }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl tbody tr.clickable td:first-child { font-weight: 600; }

@media (max-width: 640px) {
  .fl-ms-row { grid-template-columns: 1fr; gap: 6px; }
  .fl-ms-axis { margin-left: 0; }
  .basic-grid { grid-template-columns: 1fr; }
  .multi-header .view-toggle { margin-left: 0; }
}

/* Faoliyat: profil to'liqligi */
.complete-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.complete-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 4px 18px; font-size: 0.8rem; flex: 1; min-width: 220px; }
.complete-list li.ok { color: var(--text); }
.complete-list li.ok::first-letter { color: var(--green); font-weight: 700; }
.complete-list li.no { color: var(--text3); }
@media (max-width: 640px) { .complete-list { grid-template-columns: 1fr; } }

/* Ishonchlilik (risk bahosi) */
.trust-hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.trust-ring { flex: 0 0 auto; }
.trust-ring .fl-ring-val { font-size: 2.1rem; }
.trust-main { flex: 1; min-width: 240px; }
.trust-verdict { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; line-height: 1.1; margin-bottom: 6px; }
.trust-verdict.green { color: var(--green); } .trust-verdict.yellow { color: #fbbf24; } .trust-verdict.red { color: var(--red); }
.trust-meta { font-size: 0.82rem; color: var(--text2); margin-bottom: 12px; }
.trust-heads { margin-bottom: 4px; }
.trust-warn { margin-top: 10px; color: #fcd34d; }
.trust-advice { margin: 0; padding-left: 18px; font-size: 0.86rem; line-height: 1.7; color: var(--text2); }
.trust-advice li::marker { color: var(--accent2); }
.flag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.flag { background: var(--bg4); border: 1px solid var(--border); border-left-width: 4px; border-radius: 10px; padding: 12px 14px; }
.flag-critical { border-left-color: var(--red); } .flag-high { border-left-color: #f87171; } .flag-medium { border-left-color: var(--yellow, #f59e0b); } .flag-low { border-left-color: var(--text3); } .flag-info { border-left-color: var(--border2); }
.flag-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.9rem; }
.flag-comp { margin-left: auto; font-size: 0.7rem; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; }
.flag-pts { font-size: 0.75rem; font-weight: 700; color: var(--red); }
.flag-detail { margin-top: 6px; font-size: 0.82rem; color: var(--text2); line-height: 1.55; }
.flag-ev { margin: 8px 0 0; padding-left: 18px; font-size: 0.78rem; color: var(--text3); line-height: 1.55; }
.net-details { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; background: var(--bg4); }
.net-details summary { cursor: pointer; font-size: 0.85rem; color: var(--text2); padding: 4px 0; }
.net-details[open] summary { margin-bottom: 8px; color: var(--text); }
.tbl a[data-open-dot] { color: var(--accent2); text-decoration: underline; }
@media (max-width: 640px) { .trust-hero { justify-content: center; text-align: center; } .trust-heads { justify-content: center; } .trust-verdict { font-size: 1.5rem; } .flag-comp { margin-left: 0; width: 100%; } }
@media (prefers-reduced-motion: no-preference) { .flag { animation: flagIn .45s ease both; } @keyframes flagIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } } }

/* Kuzatuv va o'zgarishlar */
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.btn-watch { background: transparent; border: 1px solid var(--border2); color: var(--text); font-family: var(--font-body); font-size: 0.85rem; padding: 10px 16px; border-radius: 99px; cursor: pointer; transition: all .15s; }
.btn-watch:hover { border-color: var(--accent); color: var(--accent2); }
.btn-watch.on { background: rgba(108,99,255,.16); border-color: var(--accent); color: #c4b5fd; }
.watch-section { padding: 8px 24px 40px; }
.watch-inner { max-width: 1100px; margin: 0 auto; }
.watch-title { margin-bottom: 18px; }
.watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.watch-card { position: relative; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.watch-card:hover, .watch-card:focus-visible { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 28px rgba(108,99,255,.15); outline: none; }
.watch-name { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; padding-right: 22px; line-height: 1.3; }
.watch-meta { font-size: 0.75rem; color: var(--text3); margin: 4px 0 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.watch-chg { font-size: 0.8rem; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.watch-ev { font-size: 0.76rem; color: var(--text2); line-height: 1.4; }
.watch-x { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; border: none; background: transparent; color: var(--text3); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.watch-x:hover { background: rgba(239,68,68,.15); color: var(--red); }
.watch-note { margin-top: 14px; font-size: 0.78rem; color: var(--text3); line-height: 1.6; }
.chg-day { margin-bottom: 14px; }
.chg-date { font-size: 0.74rem; font-weight: 700; letter-spacing: .06em; color: var(--text3); text-transform: uppercase; margin-bottom: 8px; }
.chg-arrow { color: var(--accent2); }

/* PDF hisobot */
.btn-pdf { background: var(--accent); border: 1px solid var(--accent); color: #fff; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; padding: 10px 18px; border-radius: 99px; cursor: pointer; transition: all .15s; }
.btn-pdf:hover:not(:disabled) { background: var(--accent2); border-color: var(--accent2); }
.btn-pdf:disabled { opacity: .75; cursor: progress; }
.btn-pdf.busy::after { content: ''; display: inline-block; width: 11px; height: 11px; margin-left: 8px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; vertical-align: -1px; animation: pdfSpin .8s linear infinite; }
@keyframes pdfSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn-pdf.busy::after { animation: none; } }
.pdf-status { margin: -4px 0 18px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.82rem; line-height: 1.55; border: 1px solid var(--border2); background: rgba(108,99,255,.08); color: var(--text); }
.pdf-status.ok { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.30); }
.pdf-status.err { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.35); }
.pdf-status a { color: var(--accent2); text-decoration: underline; font-weight: 600; }

/* SVG ikonlar (sprite: index.html). Rang — joriy matn rangidan (currentColor), o'lcham — shriftdan (1em) */
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.15em; }
.ic-fill { fill: currentColor; }
.logo-icon .ic { width: 1.5rem; height: 1.5rem; vertical-align: -0.3em; }
.input-icon { display: flex; align-items: center; color: var(--text3); }
.input-icon .ic { width: 1.15rem; height: 1.15rem; }
.error-icon .ic { width: 3rem; height: 3rem; }
.feature-icon { color: var(--accent2); }
.feature-icon .ic { width: 1.9rem; height: 1.9rem; stroke-width: 1.6; }
.kpi-icon { color: var(--accent2); }
.kpi.green .kpi-icon { color: var(--green); }
.kpi.red .kpi-icon { color: var(--red); }
.kpi.yellow .kpi-icon { color: var(--yellow); }
.kpi.blue .kpi-icon { color: #60a5fa; }
.kpi-icon .ic { width: 1.35rem; height: 1.35rem; }
.check-icon { display: inline-flex; margin-top: 1px; }
.check-icon .ic { width: 1.1rem; height: 1.1rem; }
.check-icon.ok, .ic-ok { color: var(--green); }
.check-icon.no, .ic-no { color: var(--red); }
.check-icon.info { color: #60a5fa; }
.chip .ic { width: 0.95em; height: 0.95em; }
.chip.green .ic { color: var(--green); }
.chip.red .ic { color: var(--red); }
.chip.yellow .ic { color: var(--yellow); }
.viz-note .ic, .fl-empty .ic { width: 1.05em; height: 1.05em; vertical-align: -0.2em; margin-right: 2px; color: #60a5fa; }
.viz-note.trust-warn .ic { color: var(--yellow); }
.fl-empty .ic { color: var(--green); }
.btn-back .ic, .btn-watch .ic, .btn-pdf .ic, .view-toggle .ic { width: 1.05em; height: 1.05em; vertical-align: -0.17em; margin-right: 3px; }
.btn-watch.on .ic { color: #fbbf24; }
.step-arrow .ic { width: 1.6rem; height: 1.6rem; color: var(--text3); }
.chg-arrow .ic { width: 0.95em; height: 0.95em; vertical-align: -0.12em; }
.watch-chg .ic, .pdf-status .ic { width: 1.05em; height: 1.05em; vertical-align: -0.2em; }
.watch-chg .ic { color: var(--green); }
.pdf-status.ok .ic { color: var(--green); }
.pdf-status.err .ic { color: var(--red); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; color: var(--text2); background: rgba(255,255,255,.04); padding: 1px 5px; border-radius: 4px; }

/* ---- Mamlakat tanlagich (3.14.0) ---- */
.country-switch { margin-right: 8px; }
.country-menu { min-width: 300px; max-height: 70vh; overflow-y: auto; }
.country-menu .lang-code { width: 34px; }
.us-only { }
.non-us-only { display: none; }
body.country-other .us-only { display: none !important; }
body.country-other .non-us-only { display: revert; }
body.country-other .stats-row, body.country-other .features, body.country-other .how-section, body.country-other #watchSection { display: none !important; }
.flag-good { border-left-color: var(--green, #22c55e); }
.country-profile .multi-header { margin-bottom: 18px; }
.country-profile .tbl .chip { cursor: pointer; }
.country-profile a { color: var(--accent2); text-decoration: underline; text-decoration-color: rgba(139,131,255,.4); text-underline-offset: 2px; }
.country-profile a:hover { color: #fff; text-decoration-color: currentColor; }
.country-profile a:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; border-radius: 3px; }
@media (max-width: 640px) { .country-menu { min-width: 250px; max-width: calc(100vw - 32px); } .country-switch { margin-right: 4px; } }

/* ---- FMC (3.15.0) ---- */
.nw { white-space: nowrap; }
.fmc-warn { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0; font-size: 0.88rem; line-height: 1.5; }
.fmc-warn .ic { flex: 0 0 auto; width: 1.1em; height: 1.1em; margin-top: 0.15em; color: var(--red); }
#fmcResults .tbl .chip { white-space: nowrap; cursor: pointer; }
#fmcResults .tbl td:last-child { text-align: right; }

/* ---- Logistika belgisi (3.16.0) ---- */
.badge-logistics { background: rgba(108,99,255,.16); color: #c4c0ff; border: 1px solid rgba(108,99,255,.45); }
.badge-logistics .ic { width: 1em; height: 1em; vertical-align: -0.15em; margin-right: 2px; }
