/* ═══════════════════════════════════════════════════════════════════
   Talents — Ochiq statistika portali
   ───────────────────────────────────────────────────────────────────
   EXECUTIVE DASHBOARD 4.0 — NEXT-GEN BENTO & INTELLIGENCE SHELL
   • Left Intelligence Sidebar / Navigation Dock
   • Floating Glassmorphic Top Command Bar & Pill Filters
   • Asymmetric Creative Bento Grid System
   • 5 Distinct Vibrant Direction Tiles
   • Glowing Laser Progress & Orbital Pulsing Loaders
   • Ultra-Clean Porcelain Light & Obsidian Deep Dark Modes
   ═══════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;

  /* ── Sirtlar (Surfaces) ────────────────────────────────────────── */
  --plane: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --surface-3: #e5ebf5;
  --sidebar-bg: rgba(255, 255, 255, 0.88);
  --topbar-bg: rgba(255, 255, 255, 0.82);

  /* ── Tipografiya ───────────────────────────────────────────────── */
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-muted: #64748b;
  --ink-faint: #94a3b8;

  /* ── Chiziqlar va Hoshiyalar ───────────────────────────────────── */
  --grid: #e2e8f0;
  --axis: #cbd5e1;
  --border: rgba(15, 23, 42, 0.07);
  --border-focus: rgba(79, 70, 229, 0.4);
  --border-card: rgba(15, 23, 42, 0.08);

  /* ── 5 ta yo'nalish (Vibrant & Expressive Accents) ──────────────── */
  --s1: #3b82f6; /* Sport — Electric Blue */
  --s2: #f97316; /* Fan — Sunfire Orange */
  --s3: #10b981; /* IT — Emerald Green */
  --s4: #f59e0b; /* Til — Amber Gold */
  --s5: #ec4899; /* San'at — Rose Fuchsia */
  --gold: #eab308;

  /* ── Ketma-ket (Issiqlik xaritasi) ──────────────────────────────── */
  --q1: #e0f2fe;
  --q2: #bae6fd;
  --q3: #7dd3fc;
  --q4: #38bdf8;
  --q5: #0ea5e9;
  --q6: #0284c7;
  --q7: #0369a1;
  --q8: #2563eb;
  --q9: #1d4ed8;

  /* ── Holatlar ──────────────────────────────────────────────────── */
  --good: #10b981;
  --warn: #f59e0b;
  --crit: #ef4444;

  /* ── Geometriya va Soyalar ─────────────────────────────────────── */
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-pill: 9999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05), 0 1px 4px -1px rgba(15, 23, 42, 0.02);
  --shadow: 0 6px 22px -3px rgba(15, 23, 42, 0.06), 0 2px 8px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 4px 14px -2px rgba(15, 23, 42, 0.03);
  --shadow-glow: 0 0 32px -4px rgba(79, 70, 229, 0.22);

  --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

/* ── Qorong'i mavzu (Obsidian Deep Dark Theme) ───────────────────── */
:root[data-theme="dark"] {
  color-scheme: dark;
  --plane: #080c14;
  --surface: #101623;
  --surface-2: #172033;
  --surface-3: #222e47;
  --sidebar-bg: rgba(16, 22, 35, 0.88);
  --topbar-bg: rgba(16, 22, 35, 0.84);

  --ink: #f8fafc;
  --ink-2: #cbd5e1;
  --ink-muted: #94a3b8;
  --ink-faint: #64748b;

  --grid: #1a2336;
  --axis: #2a3752;
  --border: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(129, 140, 248, 0.45);
  --border-card: rgba(255, 255, 255, 0.08);

  --s1: #60a5fa;
  --s2: #fb923c;
  --s3: #34d399;
  --s4: #fbbf24;
  --s5: #f472b6;
  --gold: #fde047;

  --q1: #0d2847;
  --q2: #103663;
  --q3: #134882;
  --q4: #185ba3;
  --q5: #1e6ec4;
  --q6: #2563eb;
  --q7: #3b82f6;
  --q8: #60a5fa;
  --q9: #93c5fd;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 20px 40px -6px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 36px -4px rgba(96, 165, 250, 0.25);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --plane: #080c14;
    --surface: #101623;
    --surface-2: #172033;
    --surface-3: #222e47;
    --sidebar-bg: rgba(16, 22, 35, 0.88);
    --topbar-bg: rgba(16, 22, 35, 0.84);

    --ink: #f8fafc;
    --ink-2: #cbd5e1;
    --ink-muted: #94a3b8;
    --ink-faint: #64748b;

    --grid: #1a2336;
    --axis: #2a3752;
    --border: rgba(255, 255, 255, 0.07);
    --border-focus: rgba(129, 140, 248, 0.45);
    --border-card: rgba(255, 255, 255, 0.08);

    --s1: #60a5fa;
    --s2: #fb923c;
    --s3: #34d399;
    --s4: #fbbf24;
    --s5: #f472b6;
    --gold: #fde047;

    --q1: #0d2847;
    --q2: #103663;
    --q3: #134882;
    --q4: #185ba3;
    --q5: #1e6ec4;
    --q6: #2563eb;
    --q7: #3b82f6;
    --q8: #60a5fa;
    --q9: #93c5fd;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 20px 40px -6px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 36px -4px rgba(96, 165, 250, 0.25);
  }
}

/* ── Reset & Asosiy ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  background: var(--plane);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

a {
  color: var(--s1);
  text-decoration: none;
  transition: color 0.15s ease;
}

/* ── 🚀 Top Glowing Neon Laser Progress Bar ──────────────────────── */
#top-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--s1), #8b5cf6, var(--s5));
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.85), 0 0 6px var(--s5);
  z-index: 99999;
  pointer-events: none;
  transition: width 0.2s ease, opacity 0.3s ease;
}

/* ── 🌀 Fullscreen & Route Page Loader ───────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: color-mix(in srgb, var(--plane) 85%, transparent);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transform: translateY(-8px);
}

.spinner-ring {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 0deg, transparent 0%, var(--s1) 50%, #8b5cf6 80%, var(--s5) 100%);
  animation: spin 1.1s linear infinite;
  box-shadow: 0 0 36px rgba(79, 70, 229, 0.35);
}

.spinner-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--surface);
  border-radius: 50%;
}

.spinner-orbit {
  position: absolute;
  inset: -6px;
  border: 1.5px dashed color-mix(in srgb, var(--s1) 40%, transparent);
  border-radius: 50%;
  animation: spin-rev 6s linear infinite;
}

.spinner-logo {
  position: relative;
  z-index: 2;
  font-size: 28px;
  font-weight: 850;
  color: var(--s1);
  letter-spacing: -0.03em;
  animation: pulse-logo 1.5s ease-in-out infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes spin-rev {
  100% { transform: rotate(-360deg); }
}

@keyframes pulse-logo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.loader-text {
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.loader-sub {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   🏛️ 1. EXECUTIVE APP SHELL LAYOUT
   ═══════════════════════════════════════════════════════════════════ */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* ── Chap Boshqaruv Dok-Paneli (Creative Sidebar) ────────────────── */
.app-sidebar {
  width: 270px;
  min-width: 270px;
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--sidebar-bg);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 18px;
  z-index: 90;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.4);
  flex-shrink: 0;
  position: relative;
  transition: transform 0.25s ease;
}

.brand-mark:hover {
  transform: scale(1.05) rotate(-2deg);
}

.brand-glyph {
  font-size: 22px;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.brand-text {
  min-width: 0;
}

.brand-name {
  margin: 0;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.brand-desc {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--ink-muted);
  font-weight: 550;
  letter-spacing: 0.01em;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: color-mix(in srgb, var(--good) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--good) 24%, transparent);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 650;
  color: var(--good);
  align-self: flex-start;
}

.live-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* ── Sidebar Navigatsiya Menyusi ─────────────────────────────────── */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 24px 0;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13.5px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--ink);
  transform: translateX(3px);
}

.nav-item-icon {
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  transition: color 0.15s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.nav-item:hover .nav-item-icon {
  color: var(--s1);
  transform: scale(1.1);
}

.nav-item-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item.on {
  background: color-mix(in srgb, var(--s1) 12%, transparent);
  color: var(--s1);
  font-weight: 750;
}

.nav-item.on .nav-item-icon {
  color: var(--s1);
}

.nav-item.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: var(--s1);
  box-shadow: 0 0 10px var(--s1);
}

/* ── Sidebar Pastki Boshqaruv Qismi ──────────────────────────────── */
.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.seg {
  display: inline-flex;
  background: var(--surface-2);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  width: 100%;
}

.seg button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-main);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--s1);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 650;
  font-family: var(--font-main);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
  transform: translateY(-1px);
}

.theme-icon {
  font-size: 14px;
  color: var(--gold);
}

.telemetry-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 550;
  padding: 4px 6px;
}

.telemetry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
}

/* ═══════════════════════════════════════════════════════════════════
   🧭 2. MAIN VIEWPORT & FLOATING COMMAND TOPBAR
   ═══════════════════════════════════════════════════════════════════ */
.app-viewport {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  min-height: 66px;
  background: var(--topbar-bg);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  flex-direction: column;
  gap: 4.5px;
}

.mobile-menu-btn .line {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.page-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-icon {
  display: grid;
  place-items: center;
  color: var(--s1);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--s1) 12%, transparent);
}

.page-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ── Topbar Qalqib Turuvchi Kapsula Filtrlar ──────────────────────── */
.topbar-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 12px 5px 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.filter-pill:hover,
.filter-pill:focus-within {
  border-color: var(--s1);
  background: color-mix(in srgb, var(--s1) 5%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--s1) 10%, transparent);
}

.pill-icon {
  color: var(--s1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pill-label {
  font-weight: 700;
  color: var(--ink-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* Custom select wrapper */
.pill-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pill-select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  padding-right: 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  max-width: 130px;
}

.pill-select option {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.pill-chevron {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--s1);
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
}

.search-pill {
  padding: 5px 12px;
  gap: 8px;
}

.pill-search-input {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
  width: 150px;
  transition: width 0.25s ease;
}

.pill-search-input::placeholder {
  color: var(--ink-muted);
  font-weight: 500;
}

.pill-search-input:focus {
  width: 200px;
}

.filter-clear-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--crit) 8%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--crit) 30%, transparent);
  color: var(--crit);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-clear-pill:hover {
  background: var(--crit);
  color: #ffffff;
  border-color: var(--crit);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--crit) 30%, transparent);
}

.clear-icon {
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ═══════════════════════════════════════════════════════════════════
   🎨 3. BENTO GRID SYSTEM & MAIN WORKSPACE
   ═══════════════════════════════════════════════════════════════════ */
.main-workspace {
  flex: 1;
  width: 100%;
  padding: 28px 32px;
  transition: opacity 0.2s ease;
  box-sizing: border-box;
  overflow-x: hidden;
}

.main-workspace.busy {
  opacity: 0.45;
  pointer-events: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  min-width: 0;
  /* prevent child overflow */
}

.grid > * {
  min-width: 0;
}

.bento-span-12, .c12 { grid-column: span 12; }
.bento-span-8,  .c8  { grid-column: span 8; }
.bento-span-6,  .c6  { grid-column: span 6; }
.bento-span-4,  .c4  { grid-column: span 4; }

/* Default: direct children of .grid without explicit span → full width */
.grid > .card,
.grid > .bento-card,
.grid > .kpis,
.grid > .hero-banner {
  grid-column: span 12;
}

/* Override defaults with span classes (same specificity, later wins) */
.grid > .bento-span-8,  .grid > .c8  { grid-column: span 8; }
.grid > .bento-span-6,  .grid > .c6  { grid-column: span 6; }
.grid > .bento-span-4,  .grid > .c4  { grid-column: span 4; }

/* Also ensure KPI tiles in the bento grid get their span */
.grid > .kpi.bento-span-4 { grid-column: span 4; }
.grid > .kpi.bento-span-6 { grid-column: span 6; }


/* ── 🌟 Bento Showcase Hero Banner ───────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 95%, transparent), color-mix(in srgb, var(--s1) 12%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--s1) 24%, var(--border-card));
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-md), 0 0 40px -12px color-mix(in srgb, var(--s1) 20%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.hero-info {
  flex: 1;
  min-width: 260px;
}

.hero-ambient-glow {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, color-mix(in srgb, var(--s1) 18%, transparent) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--s1) 25%, transparent);
  color: var(--s1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.badge-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s1);
  box-shadow: 0 0 8px var(--s1);
}

.hero-title {
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.25;
}

.hero-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
  max-width: 66ch;
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-card);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.hero-chip:hover {
  transform: translateY(-2px);
}

.hero-chip .chip-icon {
  color: var(--s1);
  display: grid;
  place-items: center;
}

/* ── ⚡ Bento Power Score Card (Quvvat Bali) ─────────────────────── */
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 24px 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.bento-power-card {
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--gold) 10%, var(--surface)));
  border-color: color-mix(in srgb, var(--gold) 35%, var(--border-card));
  box-shadow: var(--shadow), 0 0 30px -10px color-mix(in srgb, var(--gold) 25%, transparent);
}

.power-ambient {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 24%, transparent) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bento-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bento-label {
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.power-trophy-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: var(--gold);
  display: grid;
  place-items: center;
}

.power-big-val {
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 6px 0;
  font-family: var(--font-main);
}

.power-meter-bar {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
  margin: 8px 0 12px;
}

.power-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--gold), #f97316);
  box-shadow: 0 0 10px var(--gold);
}

.power-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.power-tag {
  font-weight: 750;
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.power-hint {
  color: var(--ink-muted);
  font-weight: 500;
}

/* ── 📊 Bento KPI Stat Tiles ─────────────────────────────────────── */
.kpi {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.kpi:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.kpi-corner-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--s1) 12%, transparent), transparent 70%);
  pointer-events: none;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.k-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: -0.01em;
}

.k-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--s1) 10%, transparent);
  color: var(--s1);
  display: grid;
  place-items: center;
}

.k-value {
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
  margin: 6px 0;
}

.k-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* ── 🎯 Bento Yo'nalishlar Ko'rgazmasi ───────────────────────────── */
.bento-directions-showcase {
  padding: 26px 30px;
}

.bento-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.bento-section-head h2 {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.025em;
  margin: 0 0 4px;
  color: var(--ink);
}

.bento-section-head .sub {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.dir-badges-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dir-mini-pill {
  font-size: 12px;
  font-weight: 650;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
}

.direction-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.dir-bento-tile {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dir-bento-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 10px 24px -4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.dir-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dir-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.dir-tile-pct {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.dir-tile-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.dir-tile-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.dir-tile-track {
  width: 100%;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
}

.dir-tile-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--accent);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════════════
   📈 4. DATA VIZ & TABLES
   ═══════════════════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--ink);
}

.card .sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 550;
}

.card .note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  line-height: 1.5;
}

/* ── Ustunli Diagrammalar (Bars) ─────────────────────────────────── */
.bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bars li {
  display: grid;
  grid-template-columns: 140px 1fr 90px;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.b-name {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}

.b-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.b-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.b-value small {
  color: var(--ink-muted);
  font-size: 11px;
}

/* ── Stack (Demografiya Chizig'i) ─────────────────────────────────── */
.stack {
  height: 20px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  display: flex;
  gap: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}

.stack span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 750;
  border-radius: 4px;
  transition: flex 0.6s ease;
}

.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

/* ── Jadvallar (Tables) ─────────────────────────────────────────── */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

table thead th {
  background: var(--surface-2);
  color: var(--ink-muted);
  font-weight: 750;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table thead th.num,
table tbody td.num {
  text-align: right;
  font-family: var(--font-mono);
}

table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
}

table tbody tr:last-child td {
  border-bottom: 0;
}

table tbody tr:hover {
  background: var(--surface-2);
}

table td.strong {
  font-weight: 750;
  color: var(--ink);
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: var(--surface-3);
  color: var(--ink);
}

.rank.top.r-1 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.rank.top.r-2 {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #ffffff;
}

.rank.top.r-3 {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
}

.minibar {
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--s1);
  display: block;
}

/* ── Issiqlik Xaritasi (Heatmap) ─────────────────────────────────── */
table.heat {
  font-size: 12.5px;
}

table.heat th,
table.heat td {
  padding: 9px 10px;
  border-radius: 6px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 650;
  transition: transform 0.15s ease;
}

table.heat td:hover {
  transform: scale(1.1);
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.heat-scale {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 10px;
}

.heat-scale i {
  width: 22px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

/* ── Grafik Kanvasi ─────────────────────────────────────────────── */
.chart {
  position: relative;
  width: 100%;
  height: 280px;
}

.chart.short {
  height: 220px;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-muted);
  flex-wrap: wrap;
}

.foot-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.official-badge {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-3);
  color: var(--ink-2);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ── 👥 5. Talantlar Kartalari va Ro'yxati (Talents Grid) ────────── */
.kpis {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  min-width: 0;
}

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.person {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  font-family: inherit;
  color: inherit;
}

.person:hover {
  background: var(--surface);
  border-color: var(--border-focus);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.p-photo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--s1) 20%, transparent), color-mix(in srgb, var(--s5) 20%, transparent));
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  font-weight: 800;
  color: var(--s1);
  font-size: 16px;
}

.p-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-photo.big {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  font-size: 26px;
  flex-shrink: 0;
}

.p-photo.empty {
  letter-spacing: -0.01em;
}

.p-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.p-org {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-meta {
  font-size: 11.5px;
  color: var(--ink-faint);
  font-weight: 600;
}

.p-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.p-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.p-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.p-docs {
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--surface-3);
  padding: 1px 6px;
  border-radius: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 750;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-2);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ── 📑 6. Tablar va Tugmalar (Tabs & Buttons) ───────────────────── */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  width: fit-content;
  margin-bottom: 20px;
}

.tab {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab:hover {
  color: var(--ink);
}

.tab.on {
  background: var(--surface);
  color: var(--s1);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── 🌟 7. Modal Oyna (Glassmorphic Talent Drawer / Modal) ───────── */
.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-fade 0.25s ease-out;
}

.modal {
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
  position: relative;
  animation: modal-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.m-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  z-index: 10;
}

.m-close:hover {
  background: var(--crit);
  color: #ffffff;
  border-color: var(--crit);
  transform: rotate(90deg);
}

.m-body {
  padding: 30px;
}

.m-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.m-k {
  color: var(--ink-muted);
  font-weight: 600;
}

.m-v {
  font-weight: 750;
  color: var(--ink);
  text-align: right;
}

/* ── 🔘 8. Holatlar (State Displays) ─────────────────────────────── */
.state {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-muted);
}

.state h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
}

.state button {
  margin-top: 14px;
  background: var(--s1);
  color: #ffffff;
  border: 0;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
}

/* ── 📋 Modal Ichki Elementlar ───────────────────────────────────── */
.m-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.m-title {
  flex: 1;
  min-width: 0;
}

.m-title h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.m-title p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

.m-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.m-sec {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.m-grid {
  display: flex;
  flex-direction: column;
}

.m-dir {
  margin-bottom: 14px;
}

.m-dir h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
}

.m-dir h4 i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

.m-dir ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-dir li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
}

.m-dir li strong {
  color: var(--ink);
  font-weight: 750;
}

.m-sub {
  font-size: 12px;
  color: var(--ink-muted);
}

.m-dir li p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.m-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.m-links li a {
  font-size: 12.5px;
  color: var(--s1);
  word-break: break-all;
}

/* ── 📎 Hujjatlar ro'yxati (docs) ───────────────────────────────── */
.docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 12px;
  background: var(--surface-2);
  text-decoration: none;
  color: var(--ink-2);
  transition: all 0.2s ease;
  font-size: 12.5px;
  text-align: center;
}

.doc:hover {
  border-color: var(--border-focus);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.doc.img img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.doc-cap {
  font-size: 11px;
  color: var(--ink-muted);
}

.doc-ext {
  font-size: 11px;
  font-weight: 800;
  background: var(--s1);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.doc-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-txt strong {
  font-size: 12.5px;
  color: var(--ink);
}

.doc-txt small {
  font-size: 11px;
  color: var(--ink-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

/* ═══════════════════════════════════════════════════════════════════
   📱 9. RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .direction-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-md);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .bento-span-8, .bento-span-4, .bento-span-6 {
    grid-column: span 12;
  }

  .direction-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-workspace {
    padding: 20px 16px;
  }

  .app-topbar {
    padding: 10px 16px;
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .direction-cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    padding: 20px;
  }

  .hero-title {
    font-size: 20px;
  }

  .bars li {
    grid-template-columns: 110px 1fr 70px;
  }

  .topbar-filters {
    justify-content: flex-start;
  }

  .people {
    grid-template-columns: 1fr;
  }
}

/* ── 🗂 Tableview (Yig'ilgan jadval) ────────────────────────────── */
.tableview {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.tableview summary {
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--surface-2);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
  user-select: none;
}

.tableview summary::before {
  content: "▶";
  font-size: 10px;
  transition: transform 0.2s ease;
}

.tableview[open] summary::before {
  transform: rotate(90deg);
}

.tableview summary:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.tableview .table-wrap {
  margin-top: 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--border);
}

/* ── 🔘 Nav Indicator (Aktiv chiziq) ────────────────────────────── */
.nav-item-indicator {
  display: none;
}

/* ── 💀 Skeleton Loading ─────────────────────────────────────────── */
.skeleton {
  pointer-events: none;
  min-height: 140px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--surface-3) 60%, transparent) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-xl);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── 🔒 Modal ochiq bo'lganda body scroll bloklash ───────────────── */
body.modal-open {
  overflow: hidden;
}

/* ── Tab button inner icon dot ──────────────────────────────────── */
.tab i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  flex-shrink: 0;
}

/* ── Arrow saralash belgisi ─────────────────────────────────────── */
.arrow {
  margin-left: 4px;
  font-size: 11px;
  color: var(--s1);
}
