/* ============================================================
   Navoiy viloyati yuridik xizmat markazlari
   Premium Light Glassmorphism · 3D · Full-width
   ============================================================ */
:root {
  --navy: #1f3b73;
  --navy-dark: #142a52;
  --navy-light: #2f54a8;
  --gold: #c9a227;
  --gold-soft: #e9d28a;
  --text: #1b2740;
  --muted: #5d6b85;
  --green: #157347;

  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .74);
  --glass-border: rgba(255, 255, 255, .85);
  --glass-edge: rgba(160, 180, 220, .35);

  --shadow-sm: 0 2px 8px rgba(31, 59, 115, .06), 0 1px 2px rgba(31, 59, 115, .05);
  --shadow-md: 0 10px 30px rgba(31, 59, 115, .10), 0 2px 8px rgba(31, 59, 115, .06);
  --shadow-lg: 0 24px 60px rgba(31, 59, 115, .16), 0 8px 20px rgba(31, 59, 115, .08);

  --r-lg: 26px;
  --r-md: 20px;
  --r-sm: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

button { cursor: pointer; font-family: inherit; }
a, button, input, .dchip, .fchip { touch-action: manipulation; }

/* Klaviatura fokusi — aniq ko'rinadigan halqa (WCAG) */
:focus-visible {
  outline: 3px solid rgba(47, 84, 168, .6);
  outline-offset: 2px;
  border-radius: 6px;
}
.topbar :focus-visible, .footer :focus-visible {
  outline-color: rgba(243, 217, 137, .85);
}
body.dark :focus-visible { outline-color: rgba(140, 175, 240, .8); }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.58;
  background: #e9eef8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5,
.brand-text strong, .stat b, .drawer-stats .ds b,
.chart-row .cval, .hero-badge, .staff-role {
  font-family: 'Manrope', 'Inter', -apple-system, sans-serif;
}

/* Film grain — premium tekstura */
body::after {
  content: '';
  position: fixed; inset: -50%;
  z-index: 3; pointer-events: none;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.2s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.5%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}
body.dark::after { opacity: .05; }

/* Yuqori loading-bar */
#loadbar {
  position: fixed; top: 0; left: 0; z-index: 120;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), #5c7ec9, var(--navy-light));
  background-size: 300% 100%;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px rgba(201, 162, 39, .55);
  opacity: 0;
  transition: width .35s ease, opacity .3s ease .15s;
  animation: loadbarFlow 1.4s linear infinite;
}
@keyframes loadbarFlow { 0% { background-position: 0 0; } 100% { background-position: 300% 0; } }
#loadbar.go { opacity: 1; }

/* Sahifa o'tish animatsiyasi */
#app.page-in { animation: pageIn .45s cubic-bezier(.22,.9,.3,1); }
@keyframes pageIn {
  0% { transform: translateY(14px); }
  100% { transform: none; }
}

/* ---------- Ambient animated background ---------- */
.bg-scene {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    linear-gradient(160deg, #f2f6fd 0%, #e8eefa 38%, #e9f1f6 70%, #f4f1e8 100%);
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .55;
  animation: drift 26s ease-in-out infinite alternate;
}
.blob-1 { width: 56vw; height: 56vw; left: -14vw; top: -22vw;
  background: radial-gradient(circle at 35% 35%, #bcd2f8, transparent 65%); }
.blob-2 { width: 44vw; height: 44vw; right: -12vw; top: 4vh;
  background: radial-gradient(circle at 60% 40%, #f3e2ae, transparent 65%);
  animation-delay: -8s; }
.blob-3 { width: 50vw; height: 50vw; left: 22vw; bottom: -28vw;
  background: radial-gradient(circle at 50% 50%, #c4e8d6, transparent 65%);
  animation-delay: -16s; }
.blob-4 { width: 30vw; height: 30vw; right: 8vw; bottom: -6vw;
  background: radial-gradient(circle at 50% 50%, #d4c6f2, transparent 68%);
  opacity: .35; animation-delay: -4s; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(4vw, 3vh, 0) scale(1.08); }
  100% { transform: translate3d(-3vw, -2vh, 0) scale(.96); }
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 59, 115, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 59, 115, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
}

.container { width: 100%; max-width: none; margin: 0 auto; padding: 0 clamp(16px, 2.4vw, 52px); }

/* ---------- Glass primitives ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.9);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(135deg, rgba(20, 42, 82, .88), rgba(31, 59, 115, .84) 55%, rgba(39, 71, 138, .86));
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 8px 32px rgba(20, 42, 82, .28);
  color: #fff;
}
.topbar::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
}
.topbar-inner {
  display: flex; align-items: center; gap: 26px;
  padding-top: 15px; padding-bottom: 15px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; min-width: 0; }
.brand-logo {
  width: 50px; height: 50px; flex: 0 0 50px; border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 18px rgba(0,0,0,.22);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.brand-logo svg { width: 30px; height: 30px; color: #f3d989; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.brand-logo img { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0,0,0,.35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 18px; letter-spacing: .3px; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.brand-text span { font-size: 13px; opacity: .85; }

.search-wrap { position: relative; flex: 1; min-width: 250px; max-width: 540px; margin-left: auto; }
.search-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: rgba(255,255,255,.75); pointer-events: none;
}
#globalSearch {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 4px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.12);
  color: #fff; font-size: 14.5px; outline: none;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
#globalSearch::placeholder { color: rgba(255, 255, 255, .62); }
#globalSearch:focus {
  background: rgba(255, 255, 255, .24);
  border-color: rgba(255, 255, 255, .6);
  box-shadow: inset 0 1px 4px rgba(0,0,0,.1), 0 0 0 4px rgba(243, 217, 137, .18);
}

/* ---------- Top action buttons ---------- */
.top-actions { display: flex; gap: 8px; }
.top-btn {
  height: 44px; min-width: 44px; padding: 0 12px;
  border-radius: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: .5px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 5px 14px rgba(0,0,0,.2);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .2s;
}
.top-btn:hover { transform: scale(1.07); background: rgba(255,255,255,.22); }
.top-btn svg { width: 19px; height: 19px; }
.top-btn .ic-sun { display: none; }
body.dark .top-btn .ic-sun { display: block; }
body.dark .top-btn .ic-moon { display: none; }

/* ---------- District nav ---------- */
.district-nav { background: rgba(255, 255, 255, .05); border-top: 1px solid rgba(255, 255, 255, .1); }
.district-nav .container {
  display: flex; gap: 7px; overflow-x: auto;
  padding-top: 10px; padding-bottom: 10px; scrollbar-width: none;
}
.district-nav .container::-webkit-scrollbar { display: none; }
.dchip {
  flex: 0 0 auto; padding: 7px 17px; border-radius: 999px;
  font-size: 13.5px; color: rgba(255, 255, 255, .9);
  text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  transition: all .22s ease;
}
.dchip:hover { background: rgba(255, 255, 255, .18); transform: translateY(-1px); }
.dchip.active {
  background: linear-gradient(180deg, #ffffff, #f0f3fa);
  color: var(--navy); font-weight: 700; border-color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.25), inset 0 1px 0 #fff;
}

/* ---------- Main ---------- */
#app { padding: clamp(26px, 4vh, 46px) clamp(18px, 3vw, 48px) 70px; min-height: 62vh; perspective: 1400px; }

/* Reveal-on-scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.9,.3,1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(34px, 5vw, 64px) clamp(26px, 4vw, 64px);
  margin-bottom: 38px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(255,255,255,.72), rgba(255,255,255,.46));
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.95);
}
.hero::before {
  content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -240px;
  background: radial-gradient(circle, rgba(201, 162, 39, .18), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.5) 48%, transparent 58%);
  transform: translateX(-120%);
  animation: sheen 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen { 0%, 64% { transform: translateX(-120%); } 88%, 100% { transform: translateX(120%); } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--navy);
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
  border-radius: 999px; padding: 7px 16px; margin-bottom: 18px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.18); }
.hero h1 {
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.16; letter-spacing: -.5px; margin-bottom: 14px;
  background: linear-gradient(115deg, var(--navy-dark) 30%, var(--navy-light) 70%, #5c7ec9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); max-width: 820px; font-size: clamp(14px, 1.2vw, 16.5px); }
.hero-stats { display: flex; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.stat {
  position: relative;
  min-width: 170px; padding: 18px 28px;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(255,255,255,.85), rgba(255,255,255,.5));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-md), inset 0 1px 0 #fff;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
}
.stat:hover { transform: translateY(-7px) rotateX(6deg); box-shadow: var(--shadow-lg), inset 0 1px 0 #fff; }
.stat b {
  display: block; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1;
  background: linear-gradient(140deg, var(--navy), var(--navy-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Section titles ---------- */
.section-title {
  scroll-margin-top: 150px;
  display: flex; align-items: center; gap: 13px;
  margin: 44px 0 22px;
  font-size: clamp(19px, 1.8vw, 25px); color: var(--navy-dark); letter-spacing: -.3px;
}
.section-title .bar {
  width: 6px; height: 26px; border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 2px 8px rgba(201, 162, 39, .4);
}
.section-title .count {
  font-size: 13px; font-weight: 700; color: var(--navy);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
  padding: 3px 13px; border-radius: 999px;
}

/* ---------- District cards (home) ---------- */
.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 22px;
}
.district-card {
  position: relative;
  border-radius: var(--r-md);
  padding: 26px 26px 22px;
  text-decoration: none; color: var(--text);
  background: linear-gradient(150deg, rgba(255,255,255,.78), rgba(255,255,255,.46));
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.95);
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.22,.9,.3,1.4), box-shadow .4s, border-color .3s;
  will-change: transform;
}
.district-card::before {
  content: ''; position: absolute; width: 190px; height: 190px; right: -70px; top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 84, 168, .12), transparent 70%);
  transition: transform .5s ease;
}
.district-card:hover::before { transform: scale(1.7); }
.district-card:hover {
  transform: translateY(-9px) rotateX(4deg) rotateY(-2deg) scale(1.015);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.6) inset;
  border-color: #fff;
}
/* Shahar/Tuman turi belgisi */
.dc-type {
  position: absolute; right: 14px; top: 14px; z-index: 1;
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
  color: var(--navy-light);
  background: rgba(231, 237, 251, .85);
  border: 1px solid rgba(170, 192, 235, .55);
}
.district-card.city .dc-type {
  color: #8a6a12;
  background: rgba(250, 243, 221, .9);
  border-color: rgba(212, 175, 55, .5);
}
/* Shahar kartasi — oltin identitet */
.district-card.city::before {
  background: radial-gradient(circle, rgba(201, 162, 39, .16), transparent 70%);
}
.district-card.city .dc-icon {
  background: linear-gradient(145deg, #fdf6e0, #f1e3b3);
  border-color: #fff;
  box-shadow: 0 6px 16px rgba(168, 130, 26, .25), inset 0 1px 0 #fff;
}
.district-card.city .dc-icon svg { color: #a8821a; }
.district-card.city {
  background:
    linear-gradient(150deg, rgba(255, 252, 243, .9), rgba(253, 248, 232, .55)) padding-box,
    conic-gradient(from var(--ga),
      rgba(201, 162, 39, .75), rgba(255,255,255,.9) 25%,
      rgba(212, 175, 55, .65) 50%, rgba(255,255,255,.9) 75%,
      rgba(201, 162, 39, .75)) border-box;
}
.district-card.city .go { color: #a8821a; }
.district-card.city:hover .go { color: #8a6a12; }
body.dark .district-card.city {
  background:
    linear-gradient(150deg, rgba(58, 48, 24, .85), rgba(38, 33, 20, .7)) padding-box,
    conic-gradient(from var(--ga),
      rgba(201, 162, 39, .6), rgba(120, 100, 40, .3) 25%,
      rgba(227, 198, 104, .55) 50%, rgba(120, 100, 40, .3) 75%,
      rgba(201, 162, 39, .6)) border-box;
}
body.dark .district-card.city .dc-icon { background: linear-gradient(145deg, #4d3f17, #33290e); }
body.dark .district-card.city .dc-icon svg { color: #e3c668; }
body.dark .district-card.city h3 { color: #f2e3b8; }
body.dark .district-card.city .dc-type { color: #e3c668; background: rgba(77, 63, 23, .8); border-color: rgba(201,162,39,.4); }
body.dark .district-card.city .district-meta span { color: #d8c684; background: rgba(58, 48, 24, .8); border-color: rgba(201,162,39,.3); }
body.dark .district-card.city .go { color: #e3c668; }

.dc-top { display: flex; align-items: center; gap: 14px; }
.dc-icon {
  width: 50px; height: 50px; flex: 0 0 50px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #ffffff, #e9effc);
  border: 1px solid #fff;
  box-shadow: 0 6px 16px rgba(31,59,115,.14), inset 0 1px 0 #fff;
  transform: translateZ(26px);
}
.dc-icon svg { width: 24px; height: 24px; color: var(--navy-light); }
.district-card h3 { font-size: 18px; color: var(--navy-dark); letter-spacing: -.2px; transform: translateZ(20px); }
.district-meta { display: flex; gap: 9px; flex-wrap: wrap; transform: translateZ(14px); }
.district-meta span {
  font-size: 12.5px; font-weight: 600; color: var(--navy);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 9px; padding: 4px 11px;
  box-shadow: var(--shadow-sm);
}
.district-card .go {
  margin-top: auto; font-size: 13.5px; color: var(--navy-light); font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .25s ease;
}
.district-card:hover .go { gap: 11px; color: var(--navy); }

/* ---------- Staff cards ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(218px, 100%), 1fr));
  gap: 16px;
}
.staff-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255,255,255,.82), rgba(255,255,255,.5));
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.95);
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.22,.9,.3,1.4), box-shadow .4s;
  will-change: transform;
}
.staff-card:hover {
  transform: translateY(-10px) rotateX(3.5deg) scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.staff-photo {
  position: relative; aspect-ratio: 3 / 3.1; margin: 8px 8px 0;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #e6ecf9, #f2f5fb);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 10px 24px rgba(31,59,115,.14);
}
.staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

.staff-photo .ph-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #9fb1d4;
}
.staff-photo .ph-fallback svg { width: 64px; height: 64px; }
.staff-photo .ph-fallback span { font-size: 12px; font-weight: 600; }
.staff-role {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  font-size: 10.5px; font-weight: 800; letter-spacing: .6px;
  color: #fff;
  background: linear-gradient(135deg, rgba(31, 59, 115, .92), rgba(47, 84, 168, .88));
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 4px 12px rgba(20,42,82,.35), inset 0 1px 0 rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
  padding: 5px 12px; border-radius: 999px;
}
.staff-role.chief {
  background: linear-gradient(135deg, rgba(176, 136, 22, .95), rgba(201, 162, 39, .9));
}
.staff-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.staff-body h4 { font-size: 15.5px; color: var(--navy-dark); line-height: 1.35; letter-spacing: -.1px; }
.staff-body .pos { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tel-link {
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
  margin-top: auto; padding: 8px 12px;
  border-radius: 11px;
  color: var(--navy); font-weight: 700; font-size: 12.8px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
  align-self: flex-start;
}
.tel-link svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--green); }
.tel-link:hover {
  background: #fff; transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31,59,115,.16);
}
.yutuq-toggle {
  margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--green);
  background: rgba(234, 246, 240, .8); border: 1px solid rgba(211, 236, 223, .9);
  border-radius: 10px; padding: 7px 12px; cursor: pointer; text-align: left; font-family: inherit;
  display: flex; align-items: center; gap: 7px;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.yutuq-toggle:hover { background: #eaf6f0; transform: translateY(-1px); }
.yutuq-text {
  display: none; font-size: 12.5px; color: #3c4a5e;
  background: rgba(246, 250, 247, .9); border: 1px solid rgba(220,235,226,.8);
  border-radius: 10px; padding: 10px 12px; margin-top: 8px;
}
.yutuq-text.open { display: block; }
.staff-card.vacant .staff-photo { background: repeating-linear-gradient(45deg, #eef2fa, #eef2fa 14px, #e6ebf6 14px, #e6ebf6 28px); }

/* ---------- Org directory ---------- */
.org-tools {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-bottom: 18px;
  position: sticky; top: 132px; z-index: 30;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}
.org-search { position: relative; flex: 1; min-width: 240px; max-width: 480px; }
.org-search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.org-search input {
  width: 100%; padding: 11px 15px 11px 41px;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 12px; font-size: 14px;
  background: rgba(255,255,255,.8);
  box-shadow: inset 0 1px 3px rgba(31,59,115,.07);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.org-search input:focus {
  border-color: var(--navy-light); background: #fff;
  box-shadow: inset 0 1px 3px rgba(31,59,115,.05), 0 0 0 4px rgba(47, 84, 168, .14);
}
.org-count { font-size: 13.5px; font-weight: 600; color: var(--muted); }

.org-list { display: flex; flex-direction: column; gap: 14px; }
.org-row {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.74), rgba(255,255,255,.46));
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .3s ease, box-shadow .3s ease;
}
.org-row:hover {
  transform: translateY(-3px) scale(1.004);
  box-shadow: var(--shadow-md);
}
.org-head {
  padding: 13px 20px;
  background: linear-gradient(90deg, rgba(31,59,115,.07), rgba(47,84,168,.03) 60%, transparent);
  border-bottom: 1px solid rgba(190, 205, 235, .4);
  display: flex; align-items: center; gap: 12px;
}
.org-head .num {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 800; color: var(--navy);
  background: rgba(255,255,255,.85); border: 1px solid #fff;
  box-shadow: var(--shadow-sm);
  border-radius: 8px; padding: 2px 10px;
}
.org-head h4 { font-size: 15px; color: var(--navy-dark); letter-spacing: -.1px; }
.org-people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px 16px 16px; }
.person {
  position: relative; min-width: 0;
  border-radius: 15px;
  padding: 13px 15px 14px 19px;
  overflow: hidden;
  border: 1px solid;
  transition: transform .25s ease, box-shadow .25s ease;
}
.person:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(31,59,115,.13); }
.person::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
}
.person.r {
  background: linear-gradient(150deg, rgba(47, 84, 168, .12), rgba(47, 84, 168, .035) 70%);
  border-color: rgba(47, 84, 168, .26);
}
.person.r::before { background: linear-gradient(180deg, #5c7ec9, var(--navy)); }
.person.k {
  background: linear-gradient(150deg, rgba(201, 162, 39, .14), rgba(201, 162, 39, .04) 70%);
  border-color: rgba(201, 162, 39, .32);
}
.person.k::before { background: linear-gradient(180deg, var(--gold-soft), #a8821a); }
.person.b {
  background: linear-gradient(150deg, rgba(21, 115, 71, .12), rgba(21, 115, 71, .035) 70%);
  border-color: rgba(21, 115, 71, .26);
}
.person.b::before { background: linear-gradient(180deg, #3da57a, var(--green)); }
.person .label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  color: #fff; margin-bottom: 8px;
  padding: 4px 11px; border-radius: 999px;
  box-shadow: 0 3px 9px rgba(31,59,115,.22), inset 0 1px 0 rgba(255,255,255,.3);
}
.person .label svg { width: 11px; height: 11px; flex: 0 0 11px; }
.person.r .label { background: linear-gradient(135deg, #3a62b8, var(--navy)); }
.person.k .label { background: linear-gradient(135deg, #d4af37, #a8821a); }
.person.b .label { background: linear-gradient(135deg, #2c9568, #115c39); }
.person .fio { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.4; }
.person .tels { display: flex; flex-direction: column; gap: 4px; margin-top: 7px; }
.person .tels a {
  display: inline-flex; align-items: center; gap: 6px;
  width: fit-content;
  font-size: 12.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  padding: 4px 11px; border-radius: 9px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.person .tels a svg { width: 11px; height: 11px; flex: 0 0 11px; opacity: .75; }
.person.r .tels a { color: var(--navy); }
.person.k .tels a { color: #8a6a12; }
.person.b .tels a { color: var(--green); }
.person .tels a:hover { transform: translateY(-2px) scale(1.03); background: #fff; box-shadow: 0 7px 16px rgba(31,59,115,.18); }
.person .empty { font-size: 12.5px; color: #a8b3c7; font-style: italic; }

/* ============================================================
   Ixcham tashkilot kartalari + ichki sahifa
   ============================================================ */
.orgc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(295px, 100%), 1fr));
  gap: 14px;
}
.orgc {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 15px;
  border-radius: 16px;
  text-decoration: none; color: var(--text);
  background: linear-gradient(150deg, rgba(255,255,255,.78), rgba(255,255,255,.5));
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .3s cubic-bezier(.22,.9,.3,1.4), box-shadow .3s, border-color .25s;
  will-change: transform;
  overflow: hidden;
}
.orgc:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: var(--shadow-md);
  border-color: #fff;
}
.orgc-icon {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.5);
}
.orgc-icon svg { width: 22px; height: 22px; }
.orgc.c-maktab .orgc-icon { background: linear-gradient(145deg, #e7edfb, #d4def5); color: var(--navy-light); }
.orgc.c-dmtt .orgc-icon { background: linear-gradient(145deg, #faf3dd, #f1e3b3); color: #a8821a; }
.orgc.c-other .orgc-icon { background: linear-gradient(145deg, #e2f3ea, #c8e7d6); color: var(--green); }
.orgc-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.orgc-name { font-size: 14.5px; font-weight: 800; color: var(--navy-dark); line-height: 1.3; }
.orgc-sub {
  font-size: 12px; color: var(--muted); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.orgc-go {
  width: 28px; height: 28px; flex: 0 0 28px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-light);
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.95);
  transition: transform .25s ease, background .2s;
}
.orgc-go svg { width: 14px; height: 14px; }
.orgc:hover .orgc-go { transform: translateX(4px); background: #fff; }
body.dark .orgc {
  background: linear-gradient(150deg, rgba(28, 42, 76, .72), rgba(20, 32, 60, .55));
  border-color: rgba(120, 145, 195, .3);
}
body.dark .orgc-name { color: #dbe6ff; }
body.dark .orgc-go { background: rgba(42, 60, 102, .75); border-color: rgba(120,145,195,.35); }
body.dark .orgc.c-maktab .orgc-icon { background: linear-gradient(145deg, #2b3f6e, #1d2c52); }
body.dark .orgc.c-dmtt .orgc-icon { background: linear-gradient(145deg, #4d3f17, #33290e); color: #e3c668; }
body.dark .orgc.c-other .orgc-icon { background: linear-gradient(145deg, #1c4733, #122e21); color: #6fd0a3; }

/* Tashkilot ichki sahifasi */
.orgd-head { display: flex; align-items: center; gap: 18px; }
.orgd-icon {
  width: 64px; height: 64px; flex: 0 0 64px;
  border-radius: 19px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.6);
}
.orgd-icon svg { width: 32px; height: 32px; }
.orgd-icon.c-maktab { background: linear-gradient(145deg, #e7edfb, #ccd9f3); color: var(--navy-light); }
.orgd-icon.c-dmtt { background: linear-gradient(145deg, #faf3dd, #eedfa9); color: #a8821a; }
.orgd-icon.c-other { background: linear-gradient(145deg, #e2f3ea, #bfe3cf); color: var(--green); }
body.dark .orgd-icon.c-maktab { background: linear-gradient(145deg, #2b3f6e, #1d2c52); }
body.dark .orgd-icon.c-dmtt { background: linear-gradient(145deg, #4d3f17, #33290e); color: #e3c668; }
body.dark .orgd-icon.c-other { background: linear-gradient(145deg, #1c4733, #122e21); color: #6fd0a3; }
.detail-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px;
}
.detail-people .person.detail {
  border-radius: 19px;
  padding: 22px 22px 22px 27px;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--shadow-md);
}
.detail-people .person.detail .fio { font-size: 16.5px; }
.detail-people .person.detail .tels a { font-size: 14px; padding: 7px 14px; }
.detail-people .person.detail .label { font-size: 11px; padding: 5px 13px; }
.detail-people .person.detail .card-actions { margin-top: 13px; }
.detail-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.detail-nav .btn-ghost { font-size: 13px; padding: 11px 18px; max-width: 100%; }

/* ---------- District page header ---------- */
.dist-head {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 44px) clamp(24px, 3.4vw, 48px);
  overflow: hidden;
  background: linear-gradient(120deg, rgba(255,255,255,.74), rgba(255,255,255,.46));
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.95);
}
.dist-head::before {
  content: ''; position: absolute; width: 440px; height: 440px; right: -120px; top: -210px;
  background: radial-gradient(circle, rgba(201, 162, 39, .15), transparent 65%);
  pointer-events: none;
}
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.breadcrumb a { color: var(--navy-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.dist-head h1 {
  font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.4px;
  background: linear-gradient(115deg, var(--navy-dark) 30%, var(--navy-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dist-head .sub { color: var(--muted); font-size: 14.5px; margin-top: 6px; font-weight: 600; }

/* ---------- Search results ---------- */
.sr-district {
  font-size: 14px; font-weight: 800; color: var(--navy);
  margin: 22px 0 12px;
  display: flex; align-items: center; gap: 9px;
}
.sr-district::before {
  content: ''; width: 9px; height: 9px; border-radius: 3px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  transform: rotate(45deg);
}
.no-results {
  text-align: center; color: var(--muted); padding: 70px 0; font-size: 15.5px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.5);
  border: 1px dashed rgba(160, 180, 220, .5);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 42, 82, .92), rgba(31, 59, 115, .9));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255, 255, 255, .88);
  padding: 30px 0; font-size: 14px;
}
.footer::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
}
.footer-muted { color: rgba(255, 255, 255, .55); margin-top: 5px; font-size: 12.5px; }

mark { background: #ffe9a8; border-radius: 3px; padding: 0 1px; }

::selection { background: rgba(47, 84, 168, .22); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(31, 59, 115, .28);
  border-radius: 8px; border: 3px solid #e9eef8;
}
::-webkit-scrollbar-thumb:hover { background: rgba(31, 59, 115, .45); }

/* ============================================================
   Admin / boshqaruv paneli (left drawer)
   ============================================================ */
.menu-btn {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 14px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 5px 14px rgba(0,0,0,.2);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .2s;
}
.menu-btn span {
  display: block; width: 20px; height: 2.2px; border-radius: 2px; background: #fff;
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
}
.menu-btn:hover { transform: scale(1.08); background: rgba(255,255,255,.22); }
body.drawer-open .menu-btn span:nth-child(1) { transform: translateY(7.2px) rotate(45deg); }
body.drawer-open .menu-btn span:nth-child(2) { opacity: 0; width: 0; }
body.drawer-open .menu-btn span:nth-child(3) { transform: translateY(-7.2px) rotate(-45deg); }

.drawer-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(20, 42, 82, .3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 80;
  width: min(345px, 88vw);
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, rgba(255,255,255,.86), rgba(255,255,255,.68));
  backdrop-filter: blur(30px) saturate(1.7);
  -webkit-backdrop-filter: blur(30px) saturate(1.7);
  border-right: 1px solid rgba(255,255,255,.9);
  box-shadow: 30px 0 80px rgba(20, 42, 82, .25);
  transform: translateX(-104%);
  transition: transform .45s cubic-bezier(.22,.9,.3,1);
  overflow-y: auto;
}
body.drawer-open .drawer { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px 20px;
  position: sticky; top: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(20, 42, 82, .96), rgba(47, 84, 168, .92));
  border-bottom: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 6px 20px rgba(20, 42, 82, .25);
}
.dh-brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.dh-brand img {
  width: 44px; height: 44px; object-fit: contain; flex: 0 0 44px;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.35));
}
.drawer-head h3 { font-size: 15.5px; color: #fff; letter-spacing: -.2px; line-height: 1.2; }
.dh-brand span { font-size: 11.5px; color: rgba(255,255,255,.7); font-weight: 600; }
.drawer-close {
  width: 32px; height: 32px; flex: 0 0 32px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.14); cursor: pointer; color: #fff;
  font-size: 15px; line-height: 1; font-weight: 700;
  transition: all .2s;
}
.drawer-close:hover { background: rgba(255,255,255,.28); transform: rotate(90deg); }
.drawer-sec { padding: 16px 22px 4px; }
.drawer-sec > h4 {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 11px;
}
.drawer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.drawer-stats .ds {
  text-align: center; padding: 11px 6px;
  border-radius: 13px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
}
.drawer-stats .ds b { display: block; font-size: 19px; color: var(--navy); }
.drawer-stats .ds span { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.drawer-links { display: flex; flex-direction: column; gap: 4px; }
.dl-group {
  display: flex; align-items: center; gap: 9px;
  margin: 11px 2px 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--muted);
}
.dl-group:first-child { margin-top: 0; }
.dl-group i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(160,180,220,.45), transparent); }
.dl-group b { font-size: 10.5px; color: var(--navy); }
body.dark .dl-group b { color: #c7d6f5; }
.drawer-links a {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 11px; border-radius: 14px;
  text-decoration: none; font-size: 14px; font-weight: 700; color: var(--text);
  border: 1px solid transparent;
  transition: all .22s ease;
}
.dli {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.dli svg { width: 18px; height: 18px; }
.dli.t { background: linear-gradient(145deg, #eef2fb, #dde6f7); color: var(--navy-light); }
.dli.c { background: linear-gradient(145deg, #faf3dd, #f0e2b0); color: #a8821a; }
.drawer-links a.active .dli {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
body.dark .dli { border-color: rgba(120,145,195,.3); }
body.dark .dli.t { background: linear-gradient(145deg, #2b3f6e, #1d2c52); color: #9db9f2; }
body.dark .dli.c { background: linear-gradient(145deg, #4d3f17, #33290e); color: #e3c668; }
.dl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-links a:hover {
  background: rgba(255,255,255,.85); border-color: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateX(5px);
}
.drawer-links a:hover .dli { transform: scale(1.1) rotate(-4deg); }
.drawer-links a.active {
  background: linear-gradient(135deg, #3a62b8, var(--navy));
  color: #fff;
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 8px 20px rgba(31, 59, 115, .35);
}
.drawer-links a.active .cnt { color: rgba(255,255,255,.8); }
.drawer-links a .cnt { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 800; }
body.dark .drawer-links a:hover { background: rgba(42, 60, 102, .6); border-color: rgba(120,145,195,.3); }
.drawer-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 18px; }
.tool-btn {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  padding: 8px 11px; border-radius: 14px; cursor: pointer;
  text-decoration: none; text-align: left;
  font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--text);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
  transition: all .22s ease;
}
.tool-btn .ti {
  width: 32px; height: 32px; flex: 0 0 32px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #eef2fb, #dde6f7);
  color: var(--navy-light);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.tool-btn .ti.g { background: linear-gradient(145deg, #e2f3ea, #cdeada); color: var(--green); }
.tool-btn .ti.a { background: linear-gradient(145deg, #fbf0dd, #f4e2bd); color: #b07a1a; }
.tool-btn .ti.r { background: linear-gradient(145deg, #fbe3e1, #f4cfcc); color: #b3261e; }
body.dark .tool-btn .ti { background: linear-gradient(145deg, #2b3f6e, #1d2c52); color: #9db9f2; border-color: rgba(120,145,195,.3); }
body.dark .tool-btn .ti.g { background: linear-gradient(145deg, #1c4733, #122e21); color: #6fd0a3; }
body.dark .tool-btn .ti.a { background: linear-gradient(145deg, #4d3f17, #33290e); color: #e3c668; }
body.dark .tool-btn .ti.r { background: linear-gradient(145deg, #4d211e, #331512); color: #e89a94; }
.tool-btn svg { width: 15px; height: 15px; }
.tool-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tool-btn:hover .ti { transform: scale(1.1) rotate(-4deg); }
.tool-btn.full { grid-column: 1 / -1; }
.drawer-foot {
  margin-top: auto; padding: 16px 22px 20px;
  font-size: 11.5px; color: var(--muted);
  border-top: 1px solid rgba(160, 180, 220, .3);
}

/* Katta shrift rejimi */
body.big { zoom: 1.14; }

/* ============================================================
   Extra animations
   ============================================================ */
.brand-logo { animation: logoFloat 5s ease-in-out infinite; }
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.hero h1 { background-size: 220% auto; animation: gradFlow 9s ease-in-out infinite alternate; }
@keyframes gradFlow { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.section-title { position: relative; }
.section-title.in .bar { animation: barPop .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes barPop { 0% { transform: scaleY(0); } 100% { transform: scaleY(1); } }
.dc-icon { animation: iconBob 6s ease-in-out infinite; }
.district-card:nth-child(2n) .dc-icon { animation-delay: -2s; }
.district-card:nth-child(3n) .dc-icon { animation-delay: -4s; }
@keyframes iconBob { 0%,100% { transform: translateZ(26px) translateY(0); } 50% { transform: translateZ(26px) translateY(-4px); } }

.tel-link:hover svg { animation: ring .5s ease; }
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-14deg); }
  50% { transform: rotate(12deg); }
  75% { transform: rotate(-7deg); }
}
.staff-role { animation: badgeIn .55s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes badgeIn { 0% { transform: translateY(-14px) scale(.8); opacity: 0; } 100% { transform: none; opacity: 1; } }
.org-row::after {
  content: ''; display: block; height: 2px; margin: 0 16px;
  background: linear-gradient(90deg, var(--navy-light), var(--gold), var(--green));
  border-radius: 2px; opacity: 0;
  transform: scaleX(.2); transform-origin: left;
  transition: transform .45s ease, opacity .45s ease;
}
.org-row:hover::after { opacity: .5; transform: scaleX(1); }

/* Scroll-to-top floating button */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.9); cursor: pointer;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.65));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  color: var(--navy); font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(16px);
  transition: all .35s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { transform: translateY(-4px); }

/* ============================================================
   Filtr chiplari, diagramma, vCard/QR, yangilanish belgisi
   ============================================================ */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fchip {
  padding: 7px 16px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--navy);
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
  transition: all .22s ease;
}
.fchip:hover { transform: translateY(-2px); background: #fff; }
.fchip.active {
  color: #fff;
  background: linear-gradient(135deg, #3a62b8, var(--navy));
  border-color: rgba(255,255,255,.4);
  box-shadow: 0 6px 16px rgba(31,59,115,.3);
}

.chart-wrap { margin-top: 8px; }
.chart-row {
  display: grid; grid-template-columns: minmax(120px, 170px) 1fr 52px;
  align-items: center; gap: 12px;
  padding: 7px 0;
  text-decoration: none;
}
.chart-row .cname { font-size: 13px; font-weight: 700; color: var(--text); text-align: right; }
.chart-row .cbar {
  height: 22px; border-radius: 8px; position: relative; overflow: hidden;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 3px rgba(31,59,115,.08);
}
.chart-row .cbar i {
  position: absolute; inset: 0; right: auto; width: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #5c7ec9, var(--navy-light) 60%, var(--navy));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  transform-origin: left center;
  transition: width 1.1s cubic-bezier(.22,.9,.3,1);
}
.chart-row:hover .cbar i { background: linear-gradient(90deg, var(--gold-soft), var(--gold)); }
.chart-row .cval { font-size: 13px; font-weight: 800; color: var(--navy); }

.card-actions { display: flex; gap: 7px; margin-top: 9px; }
.mini-btn {
  flex: 1;
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 9px; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--navy);
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all .2s ease;
}
.mini-btn svg { width: 13px; height: 13px; flex: 0 0 13px; }
.mini-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.qr-modal {
  position: fixed; inset: 0; z-index: 90;
  display: none; align-items: center; justify-content: center;
  background: rgba(20, 42, 82, .4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.qr-modal.open { display: flex; }
.qr-box {
  background: linear-gradient(165deg, rgba(255,255,255,.96), rgba(255,255,255,.86));
  border: 1px solid #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 26px 30px;
  text-align: center;
  animation: qrPop .35s cubic-bezier(.34,1.56,.64,1);
  max-width: 320px;
}
@keyframes qrPop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.qr-box h5 { font-size: 14.5px; color: var(--navy-dark); margin-bottom: 4px; }
.qr-box .qr-tel { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.qr-box #qrCanvas { display: flex; justify-content: center; }
.qr-box #qrCanvas img, .qr-box #qrCanvas canvas { border-radius: 10px; }
.qr-box .qr-hint { font-size: 11.5px; color: var(--muted); margin-top: 13px; }
.qr-close {
  margin-top: 14px; padding: 8px 26px; border-radius: 11px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #3a62b8, var(--navy));
  border: none; box-shadow: 0 6px 16px rgba(31,59,115,.3);
  transition: transform .2s;
}
.qr-close:hover { transform: translateY(-2px); }

.update-badge {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .3px;
  color: var(--green);
  background: rgba(234, 246, 240, .8);
  border: 1px solid rgba(211, 236, 223, .95);
  box-shadow: var(--shadow-sm);
  border-radius: 999px; padding: 7px 16px; margin-bottom: 18px;
}
.update-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21,115,71,.35); }
  50% { box-shadow: 0 0 0 6px rgba(21,115,71,0); }
}

/* ============================================================
   Tun rejimi (dark mode)
   ============================================================ */
body.dark {
  --text: #e6ecf9;
  --muted: #9db0d2;
  --glass-border: rgba(120, 145, 195, .28);
  background: #0e1730;
  color: var(--text);
}
body.dark .bg-scene {
  background: linear-gradient(160deg, #0d1530 0%, #101c3c 40%, #0e1d33 72%, #1a1f30 100%);
}
body.dark .blob { opacity: .3; }
body.dark .bg-grid {
  background-image:
    linear-gradient(rgba(140, 170, 230, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 230, .06) 1px, transparent 1px);
}
body.dark .hero,
body.dark .dist-head,
body.dark .district-card,
body.dark .staff-card,
body.dark .org-row,
body.dark .org-tools,
body.dark .drawer,
body.dark .no-results {
  background: linear-gradient(150deg, rgba(28, 42, 76, .72), rgba(20, 32, 60, .55));
  border-color: rgba(120, 145, 195, .3);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(160, 185, 235, .14);
}
body.dark .hero::after { background: linear-gradient(105deg, transparent 38%, rgba(160,185,235,.12) 48%, transparent 58%); }
body.dark .hero h1, body.dark .dist-head h1 {
  background: linear-gradient(115deg, #dbe6ff 30%, #9db9f2 70%, #7e9ce0);
  -webkit-background-clip: text; background-clip: text;
}
body.dark .section-title { color: #dbe6ff; }
body.dark .section-title .count,
body.dark .hero-badge,
body.dark .district-meta span,
body.dark .org-head .num {
  background: rgba(38, 54, 94, .8); border-color: rgba(120,145,195,.35); color: #c7d6f5;
}
body.dark .stat,
body.dark .drawer-stats .ds {
  background: linear-gradient(150deg, rgba(40, 58, 100, .8), rgba(28, 42, 76, .6));
  border-color: rgba(120, 145, 195, .32);
  box-shadow: 0 8px 22px rgba(0,0,0,.32), inset 0 1px 0 rgba(160,185,235,.16);
}
body.dark .stat b { background: linear-gradient(140deg, #cfe0ff, #8fb0ee); -webkit-background-clip: text; background-clip: text; }
body.dark .district-card h3, body.dark .staff-body h4,
body.dark .org-head h4, body.dark .drawer-head h3,
body.dark .qr-box h5 { color: #dbe6ff; }
body.dark .dc-icon {
  background: linear-gradient(145deg, #2b3f6e, #1d2c52);
  border-color: rgba(120,145,195,.35); box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
body.dark .dc-icon svg { color: #9db9f2; }
body.dark .district-card .go { color: #9db9f2; }
body.dark .staff-photo { background: linear-gradient(160deg, #1d2c52, #16233f); }
body.dark .tel-link,
body.dark .person .tels a,
body.dark .mini-btn,
body.dark .fchip,
body.dark .tool-btn,
body.dark .drawer-links a .mini {
  background: rgba(42, 60, 102, .75); border-color: rgba(120,145,195,.35); color: #c7d6f5;
}
body.dark .tel-link:hover, body.dark .person .tels a:hover,
body.dark .mini-btn:hover, body.dark .fchip:hover, body.dark .tool-btn:hover { background: rgba(56, 78, 128, .9); }
body.dark .fchip.active { background: linear-gradient(135deg, #4a72c8, #2a4a8e); color: #fff; }
body.dark .org-head { background: linear-gradient(90deg, rgba(70, 100, 165, .2), rgba(70, 100, 165, .06) 60%, transparent); border-color: rgba(120,145,195,.25); }
body.dark .person.r { background: linear-gradient(150deg, rgba(72, 105, 180, .22), rgba(72, 105, 180, .07) 70%); border-color: rgba(95, 130, 200, .35); }
body.dark .person.k { background: linear-gradient(150deg, rgba(201, 162, 39, .18), rgba(201, 162, 39, .05) 70%); border-color: rgba(201, 162, 39, .35); }
body.dark .person.b { background: linear-gradient(150deg, rgba(45, 150, 100, .18), rgba(45, 150, 100, .05) 70%); border-color: rgba(60, 160, 110, .35); }
body.dark .person.k .tels a { color: #e3c668; }
body.dark .person.b .tels a { color: #6fd0a3; }
body.dark .org-search input {
  background: rgba(28, 42, 76, .8); border-color: rgba(120,145,195,.35); color: var(--text);
}
body.dark .org-search input::placeholder { color: #7488ad; }
body.dark .chart-row .cbar { background: rgba(28, 42, 76, .7); border-color: rgba(120,145,195,.3); }
body.dark .chart-row .cval { color: #c7d6f5; }
body.dark .drawer-links a { color: var(--text); }
body.dark .yutuq-toggle { background: rgba(30, 70, 52, .5); border-color: rgba(60,140,100,.4); color: #6fd0a3; }
body.dark .yutuq-text { background: rgba(26, 48, 40, .6); border-color: rgba(60,140,100,.3); color: #b8cfc2; }
body.dark .staff-role { border-color: rgba(255,255,255,.2); }
body.dark .to-top { background: rgba(40, 58, 100, .9); border-color: rgba(120,145,195,.4); color: #c7d6f5; }
body.dark .qr-box { background: linear-gradient(165deg, rgba(32, 47, 84, .98), rgba(22, 35, 65, .95)); border-color: rgba(120,145,195,.35); }
body.dark .qr-box #qrCanvas img, body.dark .qr-box #qrCanvas canvas { background: #fff; padding: 8px; }
body.dark .update-badge { background: rgba(26, 56, 44, .6); border-color: rgba(60, 140, 100, .35); color: #6fd0a3; }
body.dark ::-webkit-scrollbar-thumb { background: rgba(140, 170, 230, .3); border-color: #0e1730; }
body.dark mark { background: #8a6d1d; color: #fff; }

/* ============================================================
   Premium effektlar: cursor-glow + aylanma gradient ramka
   ============================================================ */
.tilt { position: relative; }
.tilt::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  border-radius: inherit;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, .34), transparent 52%);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.tilt:hover::after { opacity: 1; }
.staff-card.tilt::after { display: none; }
body.dark .tilt::after {
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%),
    rgba(150, 180, 240, .2), transparent 52%);
}

@property --ga {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.district-card, .staff-card {
  border: 1.5px solid transparent;
  background:
    linear-gradient(150deg, rgba(255,255,255,.86), rgba(255,255,255,.58)) padding-box,
    conic-gradient(from var(--ga),
      rgba(201, 162, 39, .55), rgba(255,255,255,.85) 22%,
      rgba(92, 126, 201, .6) 42%, rgba(255,255,255,.85) 62%,
      rgba(61, 165, 122, .5) 80%, rgba(201, 162, 39, .55)) border-box;
  animation: gborder 9s linear infinite;
}
@keyframes gborder { to { --ga: 360deg; } }
.staff-card { animation-delay: -3s; }
body.dark .district-card, body.dark .staff-card {
  background:
    linear-gradient(150deg, rgba(28, 42, 76, .9), rgba(20, 32, 60, .78)) padding-box,
    conic-gradient(from var(--ga),
      rgba(201, 162, 39, .5), rgba(70, 100, 165, .35) 22%,
      rgba(120, 155, 230, .55) 42%, rgba(70, 100, 165, .35) 62%,
      rgba(61, 165, 122, .45) 80%, rgba(201, 162, 39, .5)) border-box;
}

/* ============================================================
   Yangi hero — ikki ustunli, 3D emblema
   ============================================================ */
.hero-split {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 30px; align-items: center;
}
.hero-right { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.emblem-tile {
  width: clamp(200px, 17vw, 270px); aspect-ratio: 1;
  border-radius: 36px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, rgba(255,255,255,.9), rgba(255,255,255,.45));
  border: 1.5px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-lg), inset 0 2px 0 #fff;
  animation: emblemFloat 7s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes emblemFloat {
  0%, 100% { transform: translateY(0) rotateX(6deg) rotateY(-8deg); }
  50% { transform: translateY(-16px) rotateX(-4deg) rotateY(8deg); }
}
.emblem-tile svg {
  width: 58%; height: 58%;
  color: var(--gold);
  filter: drop-shadow(0 10px 22px rgba(201, 162, 39, .45));
}
.emblem-tile img {
  width: 76%; height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(201, 162, 39, .4));
}
body.dark .emblem-tile {
  background: linear-gradient(150deg, rgba(40, 58, 100, .9), rgba(24, 38, 70, .7));
  border-color: rgba(120, 145, 195, .4);
}
.emblem-ring {
  position: absolute; width: clamp(280px, 24vw, 380px); aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(31, 59, 115, .22);
  animation: ringSpin 30s linear infinite;
}
body.dark .emblem-ring { border-color: rgba(140, 170, 230, .25); }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.float-chip {
  position: absolute;
  padding: 9px 16px; border-radius: 14px;
  font-size: 12.5px; font-weight: 800; color: var(--navy);
  background: linear-gradient(150deg, rgba(255,255,255,.94), rgba(255,255,255,.7));
  border: 1px solid #fff;
  box-shadow: var(--shadow-md);
  animation: chipFloat 6s ease-in-out infinite;
  white-space: nowrap;
}
.float-chip b { color: var(--gold); margin-right: 4px; }
.float-chip.c1 { top: 6%; right: 4%; animation-delay: 0s; }
.float-chip.c2 { bottom: 12%; left: 0; animation-delay: -2s; }
.float-chip.c3 { top: 38%; left: -4%; animation-delay: -4s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
body.dark .float-chip {
  background: linear-gradient(150deg, rgba(40, 58, 100, .95), rgba(26, 40, 74, .85));
  border-color: rgba(120, 145, 195, .4); color: #c7d6f5;
}
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn-main, .btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 14px; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 14.5px; font-weight: 800;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}
.btn-main {
  color: #fff;
  background: linear-gradient(135deg, #3a62b8, var(--navy) 60%, var(--navy-dark));
  box-shadow: 0 10px 26px rgba(31, 59, 115, .4), inset 0 1px 0 rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.2);
}
.btn-main:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 34px rgba(31, 59, 115, .5); }
.btn-ghost {
  color: var(--navy);
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-md); }
body.dark .btn-ghost { background: rgba(42, 60, 102, .75); border-color: rgba(120,145,195,.35); color: #c7d6f5; }

/* ============================================================
   Statistika sahifasi
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 22px; margin-top: 22px;
}
.stat-panel {
  border-radius: var(--r-md);
  padding: 26px 28px;
  background: linear-gradient(150deg, rgba(255,255,255,.78), rgba(255,255,255,.5));
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.95);
}
body.dark .stat-panel {
  background: linear-gradient(150deg, rgba(28, 42, 76, .72), rgba(20, 32, 60, .55));
  border-color: rgba(120, 145, 195, .3);
}
.stat-panel h3 { font-size: 16px; color: var(--navy-dark); margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
body.dark .stat-panel h3 { color: #dbe6ff; }
.stat-panel h3 .dot9 { width: 9px; height: 9px; border-radius: 3px; background: linear-gradient(135deg, var(--gold-soft), var(--gold)); transform: rotate(45deg); }
.donut-wrap { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.donut {
  width: 190px; height: 190px; border-radius: 50%;
  position: relative; flex: 0 0 auto;
  box-shadow: var(--shadow-md);
  transform: rotate(-90deg);
}
.donut::after {
  content: ''; position: absolute; inset: 17%;
  border-radius: 50%;
  background: #f3f6fd;
  box-shadow: inset 0 2px 8px rgba(31,59,115,.12);
}
body.dark .donut::after { background: #16223f; }
.donut-center {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(90deg);
}
.donut-center b { font-size: 30px; color: var(--navy); line-height: 1.05; }
body.dark .donut-center b { color: #c7d6f5; }
.donut-center span { font-size: 11px; color: var(--muted); font-weight: 700; }
.legend { display: flex; flex-direction: column; gap: 10px; min-width: 180px; }
.legend .li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.legend .sw { width: 14px; height: 14px; border-radius: 5px; flex: 0 0 14px; box-shadow: var(--shadow-sm); }
.legend .li b { margin-left: auto; font-size: 14.5px; color: var(--navy); }
body.dark .legend .li b { color: #c7d6f5; }
.sw.c-m { background: linear-gradient(135deg, #5c7ec9, var(--navy)); }
.sw.c-d { background: linear-gradient(135deg, var(--gold-soft), #a8821a); }
.sw.c-o { background: linear-gradient(135deg, #3da57a, var(--green)); }
.stack-rows { display: flex; flex-direction: column; gap: 11px; }
.stack-row { display: grid; grid-template-columns: minmax(105px, 150px) 1fr 46px; align-items: center; gap: 12px; text-decoration: none; }
.stack-row .sname { font-size: 12.5px; font-weight: 700; color: var(--text); text-align: right; }
.stack-row .sbar {
  display: flex; height: 20px; border-radius: 7px; overflow: hidden;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.9);
}
body.dark .stack-row .sbar { background: rgba(28, 42, 76, .7); border-color: rgba(120,145,195,.3); }
.stack-row .sbar i { height: 100%; transition: width 1s cubic-bezier(.22,.9,.3,1); width: 0; transform-origin: left center; }
.dchip svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; }
.btn-ghost svg.ic { width: 15px; height: 15px; }
.stack-row .sbar .sm { background: linear-gradient(180deg, #6b8bd4, var(--navy-light)); }
.stack-row .sbar .sd { background: linear-gradient(180deg, var(--gold-soft), #b89221); }
.stack-row .sbar .so { background: linear-gradient(180deg, #46b283, var(--green)); }
.stack-row .stotal { font-size: 12.5px; font-weight: 800; color: var(--navy); }
body.dark .stack-row .stotal { color: #c7d6f5; }
.stack-row:hover .sname { color: var(--navy-light); }

@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-right { min-height: 260px; margin-top: 8px; }
}

/* ============================================================
   Splash kirish ekrani
   ============================================================ */
#splash {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background:
    radial-gradient(900px 500px at 50% 30%, rgba(201, 162, 39, .12), transparent 60%),
    linear-gradient(160deg, #f2f6fd 0%, #e8eefa 50%, #eef0e9 100%);
  transition: opacity .65s ease, visibility .65s;
}
body.dark #splash {
  background:
    radial-gradient(900px 500px at 50% 30%, rgba(201, 162, 39, .1), transparent 60%),
    linear-gradient(160deg, #0d1530 0%, #101c3c 55%, #0e1d33 100%);
}
#splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
#splash img {
  width: clamp(110px, 13vw, 160px);
  filter: drop-shadow(0 16px 36px rgba(201, 162, 39, .45));
  animation: spLogo 1s cubic-bezier(.22,.9,.3,1.4) both;
}
@keyframes spLogo {
  0% { transform: scale(.5) translateY(24px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
#splash .sp-title {
  text-align: center;
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(18px, 2.2vw, 26px); color: var(--navy-dark); line-height: 1.35;
  animation: spText .9s ease .25s both;
}
#splash .sp-title span { font-size: .62em; font-weight: 700; color: var(--muted); letter-spacing: .6px; }
body.dark #splash .sp-title { color: #dbe6ff; }
@keyframes spText { 0% { transform: translateY(14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
#splash .sp-bar {
  width: min(220px, 50vw); height: 4px; border-radius: 4px; overflow: hidden;
  background: rgba(31, 59, 115, .12);
  animation: spText .8s ease .4s both;
}
body.dark #splash .sp-bar { background: rgba(140, 170, 230, .18); }
#splash .sp-bar i {
  display: block; height: 100%; width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), #5c7ec9);
  animation: spFill 1s ease .3s forwards;
}
@keyframes spFill { to { width: 100%; } }

/* ============================================================
   Skeleton shimmer
   ============================================================ */
.sk-wrap { display: flex; flex-direction: column; gap: 22px; }
.sk { position: relative; overflow: hidden; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255,255,255,.85); }
body.dark .sk { background: rgba(28, 42, 76, .5); border-color: rgba(120,145,195,.25); }
.sk::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: skShine 1.1s ease-in-out infinite;
}
body.dark .sk::after { background: linear-gradient(100deg, transparent 30%, rgba(150,180,240,.18) 50%, transparent 70%); }
@keyframes skShine { to { transform: translateX(100%); } }
.sk-hero { height: 200px; border-radius: var(--r-lg); }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px,100%), 1fr)); gap: 20px; }
.sk-card { height: 150px; }

/* ============================================================
   Admin rejimi
   ============================================================ */
[data-admin-only] { display: none !important; }
body.admin [data-admin-only] { display: flex !important; }
p.admin-note[data-admin-only] { font-size: 11.5px; color: var(--muted); line-height: 1.5; padding: 2px 4px 14px; }
body.admin p.admin-note[data-admin-only] { display: block !important; }
.admin-badge {
  position: fixed; left: 18px; bottom: 18px; z-index: 65;
  display: none; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #b3261e, #8a1c16);
  box-shadow: 0 10px 26px rgba(179, 38, 30, .45);
  animation: pulse 2.2s ease-in-out infinite;
}
body.admin .admin-badge { display: inline-flex; }
.edit-btn {
  display: none;
  position: absolute; right: 8px; top: 8px; z-index: 3;
  width: 27px; height: 27px; border-radius: 9px; cursor: pointer;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); border: 1px solid rgba(31,59,115,.2);
  box-shadow: var(--shadow-sm); color: var(--navy);
  transition: transform .2s;
}
.edit-btn:hover { transform: scale(1.12) rotate(-6deg); background: #fff; }
.edit-btn svg { width: 13px; height: 13px; }
body.admin .edit-btn { display: inline-flex; }
body.dark .edit-btn { background: rgba(42, 60, 102, .95); border-color: rgba(120,145,195,.4); color: #c7d6f5; }
.staff-photo .edit-btn { right: 10px; top: auto; bottom: 10px; }
.edit-form { display: flex; flex-direction: column; gap: 11px; text-align: left; min-width: 270px; }
.edit-form label { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.edit-form input {
  padding: 10px 13px; border-radius: 11px; font-size: 14px; font-family: inherit;
  border: 1px solid rgba(31,59,115,.25); background: rgba(255,255,255,.9); outline: none;
}
.edit-form input:focus { border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(47,84,168,.14); }
body.dark .edit-form input { background: rgba(28,42,76,.8); border-color: rgba(120,145,195,.35); color: var(--text); }
.edit-actions { display: flex; gap: 9px; margin-top: 4px; }
.edit-actions .qr-close { margin-top: 0; flex: 1; }
.edit-actions .ghost {
  flex: 1; padding: 8px; border-radius: 11px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--muted);
  background: transparent; border: 1px solid rgba(120,140,180,.35);
}

/* ============================================================
   KIRISH SAHIFASI (auth gate) — 3D premium
   ============================================================ */
#authGate {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(201, 162, 39, .14), transparent 55%),
    radial-gradient(900px 600px at 12% 110%, rgba(92, 126, 201, .25), transparent 60%),
    linear-gradient(160deg, #f2f6fd 0%, #e6edfa 45%, #eef0e6 100%);
  transition: opacity .7s ease, visibility .7s;
}
body.dark #authGate {
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(201, 162, 39, .12), transparent 55%),
    radial-gradient(900px 600px at 12% 110%, rgba(47, 84, 168, .3), transparent 60%),
    linear-gradient(160deg, #0d1530 0%, #101c3c 55%, #0e1d33 100%);
}
#authGate.done { opacity: 0; visibility: hidden; pointer-events: none; }
#authGate[hidden] { display: none; }

/* yulduz-zarrachalar */
.ag-stars { position: absolute; inset: 0; pointer-events: none; }
.ag-stars i {
  position: absolute;
  width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .9), rgba(201, 162, 39, 0) 70%);
  animation: starFloat 9s ease-in-out infinite;
  opacity: .7;
}
body.dark .ag-stars i { background: radial-gradient(circle, rgba(160, 190, 245, .9), transparent 70%); }
.ag-stars i:nth-child(odd) { background: radial-gradient(circle, rgba(92, 126, 201, .8), transparent 70%); }
.ag-stars i:nth-child(1)  { left: 6%;  top: 18%; animation-delay: 0s; }
.ag-stars i:nth-child(2)  { left: 14%; top: 64%; animation-delay: -1s; width: 7px; height: 7px; }
.ag-stars i:nth-child(3)  { left: 22%; top: 32%; animation-delay: -2s; }
.ag-stars i:nth-child(4)  { left: 30%; top: 80%; animation-delay: -3s; }
.ag-stars i:nth-child(5)  { left: 38%; top: 12%; animation-delay: -4s; width: 8px; height: 8px; }
.ag-stars i:nth-child(6)  { left: 46%; top: 56%; animation-delay: -5s; }
.ag-stars i:nth-child(7)  { left: 54%; top: 26%; animation-delay: -6s; }
.ag-stars i:nth-child(8)  { left: 62%; top: 74%; animation-delay: -7s; width: 6px; height: 6px; }
.ag-stars i:nth-child(9)  { left: 70%; top: 40%; animation-delay: -8s; }
.ag-stars i:nth-child(10) { left: 78%; top: 16%; animation-delay: -2.5s; }
.ag-stars i:nth-child(11) { left: 86%; top: 60%; animation-delay: -4.5s; width: 7px; height: 7px; }
.ag-stars i:nth-child(12) { left: 93%; top: 34%; animation-delay: -6.5s; }
.ag-stars i:nth-child(13) { left: 10%; top: 88%; animation-delay: -1.5s; }
.ag-stars i:nth-child(14) { left: 50%; top: 90%; animation-delay: -3.5s; width: 6px; height: 6px; }
.ag-stars i:nth-child(15) { left: 88%; top: 86%; animation-delay: -5.5s; }
.ag-stars i:nth-child(16) { left: 26%; top: 6%;  animation-delay: -7.5s; }
.ag-stars i:nth-child(17) { left: 66%; top: 5%;  animation-delay: -8.5s; width: 7px; height: 7px; }
.ag-stars i:nth-child(18) { left: 96%; top: 8%;  animation-delay: -0.5s; }
@keyframes starFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: .45; }
  50% { transform: translateY(-26px) scale(1.25); opacity: .95; }
}

.ag-scene {
  display: flex; flex-direction: column; align-items: center;
  perspective: 1200px;
  padding: 20px;
  width: 100%; max-width: 460px;
}

/* gerb — halqalar va nur bilan */
.ag-emblem {
  position: relative;
  width: 168px; height: 168px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: -34px; z-index: 2;
  animation: agFloat 6s ease-in-out infinite;
}
@keyframes agFloat {
  0%, 100% { transform: translateY(0) rotateX(4deg); }
  50% { transform: translateY(-12px) rotateX(-3deg); }
}
.ag-emblem img {
  width: 116px; position: relative; z-index: 2;
  filter: drop-shadow(0 18px 36px rgba(168, 130, 26, .5));
}
.ag-glow {
  position: absolute; inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .34), transparent 65%);
  animation: agPulse 3.2s ease-in-out infinite;
}
@keyframes agPulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.22); opacity: 1; }
}
.ag-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px dashed rgba(168, 130, 26, .4);
}
.ag-ring.r1 { inset: -4%; animation: ringSpin 26s linear infinite; }
.ag-ring.r2 { inset: 7%; border-color: rgba(92, 126, 201, .35); animation: ringSpin 18s linear infinite reverse; }

/* shisha karta */
.ag-card {
  width: 100%;
  padding: 56px 38px 30px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(165deg, rgba(255,255,255,.82), rgba(255,255,255,.55));
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1.5px solid transparent;
  background:
    linear-gradient(165deg, rgba(255,255,255,.86), rgba(255,255,255,.6)) padding-box,
    conic-gradient(from var(--ga),
      rgba(201, 162, 39, .6), rgba(255,255,255,.9) 25%,
      rgba(92, 126, 201, .55) 50%, rgba(255,255,255,.9) 75%,
      rgba(201, 162, 39, .6)) border-box;
  animation: gborder 10s linear infinite, agCardIn .9s cubic-bezier(.22,.9,.3,1.3) both;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.95);
}
body.dark .ag-card {
  background:
    linear-gradient(165deg, rgba(28, 42, 76, .92), rgba(20, 32, 60, .8)) padding-box,
    conic-gradient(from var(--ga),
      rgba(201, 162, 39, .5), rgba(70, 100, 165, .35) 25%,
      rgba(120, 155, 230, .5) 50%, rgba(70, 100, 165, .35) 75%,
      rgba(201, 162, 39, .5)) border-box;
}
@keyframes agCardIn {
  0% { transform: translateY(40px) rotateX(14deg) scale(.92); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.ag-card h1 {
  font-size: 25px; letter-spacing: -.3px;
  background: linear-gradient(115deg, var(--navy-dark) 30%, var(--navy-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.dark .ag-card h1 { background: linear-gradient(115deg, #dbe6ff 30%, #9db9f2); -webkit-background-clip: text; background-clip: text; }
.ag-sub { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 5px 0 24px; }

.ag-field {
  position: relative; display: block;
  margin-bottom: 13px;
}
.ag-field > svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--muted); pointer-events: none;
  transition: color .2s;
}
.ag-field:focus-within > svg { color: #a8821a; }
.ag-field input {
  width: 100%;
  padding: 14px 46px;
  border-radius: 15px;
  font-size: 15px; font-family: inherit; font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,.75);
  border: 1.5px solid rgba(170, 190, 230, .5);
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.ag-field input:focus {
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, .18);
}
body.dark .ag-field input { background: rgba(20, 32, 60, .7); border-color: rgba(120,145,195,.4); color: var(--text); }
body.dark .ag-field input:focus { background: rgba(14, 23, 48, .9); }
.ag-eye {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 10px;
  border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.ag-eye:hover { color: var(--navy); background: rgba(31,59,115,.07); }
.ag-eye svg { width: 17px; height: 17px; }

.ag-btn {
  position: relative;
  width: 100%; margin-top: 6px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 15px; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .3px;
  color: #fff;
  background: linear-gradient(135deg, #3a62b8, var(--navy) 55%, var(--navy-dark));
  background-size: 180% auto;
  box-shadow: 0 12px 28px rgba(31, 59, 115, .42), inset 0 1px 0 rgba(255,255,255,.25);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background-position .4s;
}
.ag-btn:hover { transform: translateY(-3px) scale(1.015); background-position: right center; box-shadow: 0 18px 38px rgba(31, 59, 115, .5); }
.ag-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-130%);
  animation: sheen 4.5s ease-in-out infinite;
}
.ag-spin[hidden], .ag-btn-txt[hidden] { display: none; }
.ag-spin {
  display: inline-block; width: 17px; height: 17px;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ag-err {
  margin: 2px 0 10px;
  padding: 10px 14px; border-radius: 12px;
  font-size: 13px; font-weight: 700; color: #b3261e;
  background: rgba(251, 227, 225, .9);
  border: 1px solid rgba(179, 38, 30, .3);
}
body.dark .ag-err { background: rgba(77, 33, 30, .6); color: #e89a94; border-color: rgba(179,38,30,.4); }
.ag-card.shake { animation: agShake .5s ease; }
@keyframes agShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-12px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-7px); }
  80% { transform: translateX(4px); }
}
.ag-note { margin-top: 18px; font-size: 11.5px; color: var(--muted); }

/* Ijtimoiy tarmoqlar */
.socials { display: flex; gap: 11px; justify-content: center; margin-top: 15px; }
.soc {
  width: 40px; height: 40px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .25s;
}
.soc svg { width: 19px; height: 19px; }
.soc.tg { color: #229ED9; }
.soc.ig { color: #D6356F; }
.soc.fb { color: #1877F2; }
.soc:hover { transform: translateY(-4px) scale(1.08); box-shadow: var(--shadow-md); background: #fff; }
body.dark .soc { background: rgba(42, 60, 102, .75); border-color: rgba(120,145,195,.35); }
body.dark .soc:hover { background: rgba(56, 78, 128, .95); }
.socials.foot { justify-content: flex-start; margin: 12px 0 10px; }
.socials.foot .soc { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.socials.foot .soc:hover { background: rgba(255,255,255,.24); }
.ag-foot {
  position: absolute; bottom: 22px; left: 0; right: 0;
  text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: .6px;
  color: var(--muted);
}

/* ---------- Print ---------- */
@media print {
  .topbar, .drawer, .drawer-overlay, .to-top, .footer, .bg-scene, .bg-grid, .org-tools,
  #splash, #loadbar, .admin-badge, .edit-btn { display: none !important; }
  body { background: #fff; }
  .org-row, .staff-card, .dist-head, .hero { box-shadow: none; border: 1px solid #ccc; background: #fff; }
  .rv { opacity: 1 !important; transform: none !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .org-people { grid-template-columns: 1fr; gap: 9px; padding: 12px; }
  .org-tools { position: static; }
}
@media (max-width: 600px) {
  .topbar-inner { gap: 10px; }
  .brand-text strong { font-size: 15.5px; }
  .brand-text span { font-size: 11.5px; }
  .search-wrap { min-width: 100%; order: 3; }
  .staff-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
  .hero-stats { gap: 10px; }
  .stat { min-width: 124px; padding: 13px 16px; flex: 1; }
  #app { padding-left: 14px; padding-right: 14px; }
}

/* ============================================================
   AI yordamchi chat
   ============================================================ */
.ai-fab {
  position: fixed; right: 22px; bottom: 80px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); cursor: pointer;
  background: linear-gradient(145deg, #3a62b8, var(--navy) 60%, var(--navy-dark));
  box-shadow: 0 12px 30px rgba(31,59,115,.45), inset 0 1px 0 rgba(255,255,255,.3);
  color: #fff; display: flex; align-items: center; justify-content: center;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.ai-fab::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(201,162,39,.5);
  animation: aiPing 2.6s ease-out infinite;
}
@keyframes aiPing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.4); opacity: 0; } }
.ai-fab:hover { transform: scale(1.1) rotate(-5deg); }
.ai-fab-ic { width: 27px; height: 27px; }
.ai-fab-close { display: none; font-size: 21px; font-weight: 600; }
body.ai-open .ai-fab-ic { display: none; }
body.ai-open .ai-fab-close { display: block; }
body.ai-open .ai-fab::after { display: none; }

/* ===== Lex AI — yuqori paneldagi tugma (tashqi huquqiy agent) ===== */
.top-lex {
  height: 44px; padding: 0 13px 0 5px; border-radius: 13px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  color: #fff; font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: .3px;
  background: linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 5px 14px rgba(0,0,0,.2);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .2s;
}
.top-lex:hover { transform: scale(1.05); background: rgba(255,255,255,.22); }
.top-lex:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; }
.top-lex img, .top-lex-img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex: none; box-shadow: 0 2px 6px rgba(0,0,0,.28); }
.top-lex-ext { width: 13px; height: 13px; opacity: .75; flex: none; transition: opacity .25s ease; }
.top-lex:hover .top-lex-ext { opacity: 1; }
@media (max-width: 760px) {
  .top-lex { padding: 0; width: 44px; justify-content: center; gap: 0; }
  .top-lex-txt, .top-lex-ext { display: none; }
  .top-lex img, .top-lex-img { width: 30px; height: 30px; border-radius: 9px; }
}
@media print { .top-lex { display: none !important; } }

.ai-panel {
  position: fixed; right: 22px; bottom: 150px; z-index: 70;
  width: min(390px, calc(100vw - 32px)); height: min(560px, calc(100vh - 200px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255,255,255,.9), rgba(255,255,255,.72));
  backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  animation: aiIn .4s cubic-bezier(.22,.9,.3,1.3);
  transform-origin: bottom right;
}
.ai-panel[hidden] { display: none; }
@keyframes aiIn { 0% { transform: translateY(20px) scale(.9); opacity: 0; } 100% { transform: none; opacity: 1; } }
body.dark .ai-panel { background: linear-gradient(165deg, rgba(28,42,76,.94), rgba(20,32,60,.84)); border-color: rgba(120,145,195,.3); }
.ai-head {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px;
  background: linear-gradient(135deg, rgba(20,42,82,.96), rgba(47,84,168,.92));
  color: #fff;
}
.ai-ava { width: 38px; height: 38px; flex:0 0 38px; border-radius: 12px; display:flex; align-items:center; justify-content:center; background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.25); }
.ai-ava svg { width: 21px; height: 21px; }
.ai-head b { font-size: 15px; display: block; }
.ai-head span { font-size: 11.5px; opacity: .8; }
.ai-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 11px; }
.ai-msg {
  max-width: 85%; padding: 11px 14px; border-radius: 16px;
  font-size: 13.8px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word;
}
.ai-msg.bot {
  align-self: flex-start;
  background: rgba(255,255,255,.85); border: 1px solid var(--glass-border);
  color: var(--text); border-bottom-left-radius: 5px;
}
.ai-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #3a62b8, var(--navy));
  color: #fff; border-bottom-right-radius: 5px;
}
body.dark .ai-msg.bot { background: rgba(42,60,102,.7); border-color: rgba(120,145,195,.3); color: var(--text); }
.ai-msg.typing { display: flex; gap: 4px; align-items: center; }
.ai-msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--navy-light); animation: aiDot 1.2s infinite; }
.ai-msg.typing i:nth-child(2){ animation-delay:.2s } .ai-msg.typing i:nth-child(3){ animation-delay:.4s }
@keyframes aiDot { 0%,60%,100%{ transform: translateY(0); opacity:.4 } 30%{ transform: translateY(-5px); opacity:1 } }
.ai-think { font-size: 12.5px; color: var(--navy-light); font-style: italic; animation: aiPulse 1.4s ease-in-out infinite; }
@keyframes aiPulse { 0%,100%{ opacity:.5 } 50%{ opacity:1 } }
.ai-msg.ai-src { margin-top: -4px; padding: 5px 11px; font-size: 11px; line-height: 1.4; color: var(--muted);
  background: transparent; border: none; border-left: 2px solid var(--gold); border-radius: 0; max-width: 90%; opacity: .85; }
body.dark .ai-msg.ai-src { background: transparent; color: var(--muted); }
.ai-chips { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; margin-top: 3px; }
.ai-chips button {
  font-family: inherit; font-size: 12.5px; cursor: pointer;
  padding: 8px 13px; border-radius: 12px; text-align: left;
  color: var(--navy); background: rgba(255,255,255,.7);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.ai-chips button:hover { background: #fff; transform: translateX(3px); }
body.dark .ai-chips button { background: rgba(42,60,102,.6); border-color: rgba(120,145,195,.3); color: #c7d6f5; }
.ai-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--glass-edge); }
.ai-input input {
  flex: 1; padding: 11px 15px; border-radius: 13px; font-size: 14px; font-family: inherit;
  background: rgba(255,255,255,.8); border: 1px solid var(--glass-border); outline: none; color: var(--text);
}
.ai-input input:focus { border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(47,84,168,.14); }
body.dark .ai-input input { background: rgba(20,32,60,.7); border-color: rgba(120,145,195,.35); }
.ai-input button {
  width: 44px; flex: 0 0 44px; border-radius: 13px; border: none; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #3a62b8, var(--navy));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: transform .2s;
}
.ai-input button:hover { transform: scale(1.06); }
.ai-input button svg { width: 18px; height: 18px; }
.ai-input button:disabled { opacity: .5; cursor: default; }
@media (max-width: 560px) {
  .ai-panel { right: 12px; left: 12px; width: auto; bottom: 140px; height: calc(100vh - 220px); }
  .ai-fab { right: 16px; bottom: 72px; }
}
@media print { .ai-fab, .ai-panel { display: none !important; } }

/* AI javobida telefon raqami pill */
.ai-tel { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin: 1px 2px;
  background: rgba(47,84,168,.1); border: 1px solid rgba(47,84,168,.25); border-radius: 9px; padding: 1px 3px 1px 8px; }
.ai-tel a { color: var(--navy); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; font-size: 13px; }
.ai-tel button { border: none; background: transparent; cursor: pointer; font-size: 12px; padding: 3px 5px; border-radius: 7px; line-height: 1; }
.ai-tel button:hover { background: rgba(47,84,168,.15); }
body.dark .ai-tel { background: rgba(120,150,230,.16); border-color: rgba(120,150,230,.3); }
body.dark .ai-tel a { color: #9db9f2; }


/* ============ Admin foydalanuvchi boshqaruv modali ============ */
.um-modal { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center;
  background: rgba(20,42,82,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.um-modal[hidden] { display: none; }
.um-box { width: min(560px, calc(100vw - 28px)); max-height: 86vh; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; background: linear-gradient(165deg, rgba(255,255,255,.96), rgba(255,255,255,.88));
  border: 1px solid #fff; box-shadow: var(--shadow-lg); animation: qrPop .35s cubic-bezier(.34,1.56,.64,1); }
body.dark .um-box { background: linear-gradient(165deg, rgba(32,47,84,.98), rgba(22,35,65,.95)); border-color: rgba(120,145,195,.35); }
.um-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
  background: linear-gradient(135deg, rgba(20,42,82,.96), rgba(47,84,168,.92)); color: #fff; }
.um-head b { font-size: 15.5px; }
.um-head button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.15); color: #fff; cursor: pointer; font-size: 14px; }
.um-tabs { display: flex; gap: 6px; padding: 12px 16px 0; }
.um-tab { flex: 1; padding: 9px; border-radius: 11px 11px 0 0; border: none; cursor: pointer; font-family: inherit;
  font-size: 13.5px; font-weight: 700; color: var(--muted); background: transparent; border-bottom: 2px solid transparent; }
.um-tab.active { color: var(--navy); border-bottom-color: var(--navy); }
body.dark .um-tab.active { color: #9db9f2; border-bottom-color: #9db9f2; }
.um-body { flex: 1; overflow-y: auto; padding: 16px; }
.um-pane[hidden] { display: none; }
.um-pane label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 11px; }
.um-pane input[type=text], .um-pane input:not([type]) { padding: 11px 14px; border-radius: 12px; font-size: 14px; font-family: inherit;
  border: 1px solid rgba(31,59,115,.22); background: rgba(255,255,255,.9); outline: none; color: var(--text); }
body.dark .um-pane input { background: rgba(20,32,60,.8); border-color: rgba(120,145,195,.35); }
.um-pane input:focus { border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(47,84,168,.14); }
.um-chk { flex-direction: row !important; align-items: center; gap: 9px !important; text-transform: none !important; font-weight: 600 !important; color: var(--text) !important; }
.um-chk input { width: 18px; height: 18px; }
.um-save { width: 100%; padding: 13px; border: none; border-radius: 13px; cursor: pointer; color: #fff; font-family: inherit;
  font-size: 14.5px; font-weight: 800; background: linear-gradient(135deg, #3a62b8, var(--navy)); box-shadow: var(--shadow-md); margin-top: 4px; }
.um-save:hover { transform: translateY(-2px); } .um-save:disabled { opacity: .55; }
.um-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 14px; margin-bottom: 8px;
  background: rgba(255,255,255,.7); border: 1px solid var(--glass-border); }
body.dark .um-row { background: rgba(42,60,102,.5); border-color: rgba(120,145,195,.3); }
.um-row .ui { width: 34px; height: 34px; flex:0 0 34px; border-radius: 10px; display:flex; align-items:center; justify-content:center;
  font-size: 13px; font-weight: 800; color:#fff; background: linear-gradient(145deg,#5c7ec9,var(--navy)); }
.um-row.adm .ui { background: linear-gradient(145deg,#d4af37,#a8821a); }
.um-row .uinfo { flex: 1; min-width: 0; }
.um-row .uinfo b { font-size: 13.5px; display: block; color: var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.um-row .uinfo span { font-size: 11.5px; color: var(--muted); }
.um-row .uact { display: flex; gap: 5px; }
.um-row .uact button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(31,59,115,.18); cursor: pointer;
  background: #fff; font-size: 13px; }
body.dark .um-row .uact button { background: rgba(28,42,76,.8); border-color: rgba(120,145,195,.3); }
.um-row .uact .del:hover { background: #fbe3e1; }
.um-msg { padding: 11px 16px; font-size: 13px; font-weight: 600; text-align: center; }
.um-msg.ok { color: var(--green); } .um-msg.err { color: #b3261e; }
.um-search { width:100%; padding:10px 14px; border-radius:11px; margin-bottom:12px; font-size:13.5px; font-family:inherit;
  border:1px solid rgba(31,59,115,.2); background:rgba(255,255,255,.85); outline:none; }
body.dark .um-search { background:rgba(20,32,60,.7); border-color:rgba(120,145,195,.35); color:var(--text); }
@media print { .um-modal { display:none !important; } }

/* Ovozli savol mikrofoni */
#aiMic { width: 44px; flex: 0 0 44px; border-radius: 13px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.8); color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
#aiMic svg { width: 18px; height: 18px; }
#aiMic:hover { background: #fff; }
#aiMic.rec { background: linear-gradient(135deg,#e8533f,#b3261e); color: #fff; border-color: transparent; animation: micPulse 1.2s infinite; }
@keyframes micPulse { 0%,100%{ box-shadow:0 0 0 0 rgba(179,38,30,.5);} 50%{ box-shadow:0 0 0 7px rgba(179,38,30,0);} }
body.dark #aiMic { background: rgba(20,32,60,.7); border-color: rgba(120,145,195,.35); color: #9db9f2; }

/* Rasm yuklash (edit modal) */
.edit-photo { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--glass-edge); }
.edit-photo[hidden] { display: none; }
.ep-prev { width: 74px; height: 88px; flex: 0 0 74px; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg,#e6ecf9,#f2f5fb);
  display: flex; align-items: center; justify-content: center; color: #9fb1d4; border: 1px solid var(--glass-border); }
.ep-prev img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ep-prev svg { width: 38px; height: 38px; }
.ep-side { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.ep-btn { padding: 8px 14px; border-radius: 11px; border: none; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg,#3a62b8,var(--navy)); }
.ep-del { padding: 5px 12px; border-radius: 10px; border: 1px solid rgba(179,38,30,.3); background: transparent; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 600; color: #b3261e; }
.ep-hint { font-size: 11px; color: var(--muted); }
body.dark .ep-prev { background: linear-gradient(160deg,#1d2c52,#16233f); }

/* AI statistika ro'yxatlari */
.ai-top { display: flex; flex-direction: column; gap: 7px; }
.ai-top-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 11px;
  background: rgba(255,255,255,.6); border: 1px solid var(--glass-border); font-size: 13px; }
.ai-top-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ai-top-row b { color: var(--navy); font-weight: 800; flex: 0 0 auto; }
body.dark .ai-top-row { background: rgba(42,60,102,.5); border-color: rgba(120,145,195,.3); }
body.dark .ai-top-row span { color: var(--text); }
body.dark .ai-top-row b { color: #9db9f2; }

/* Soʻnggi soʻrovlar — yigʻiladigan (default yopiq) panel */
.ai-recent > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-recent > summary::-webkit-details-marker { display: none; }
.ai-recent > summary h3 { margin: 0; }
.ai-recent-meta { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color .2s ease; }
.ai-recent-chev { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; }
.ai-recent-chev .cv { width: 18px; height: 18px; }
.ai-recent-chev .cv-u { display: none; }
.ai-recent[open] .ai-recent-chev .cv-d { display: none; }
.ai-recent[open] .ai-recent-chev .cv-u { display: inline; }
.ai-recent[open] .ai-top { margin-top: 16px; }
.ai-recent > summary:hover .ai-recent-meta { color: var(--navy-light); }
body.dark .ai-recent > summary:hover .ai-recent-meta { color: #9db9f2; }

/* AI yordamchi faolligi — butun panel yigʻiladigan (default YOPIQ) */
.ai-activity { margin-bottom: 22px; }
.ai-activity > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.ai-activity > summary::-webkit-details-marker { display: none; }
.ai-activity > summary .section-title { flex: 1; margin: 0; }
.ai-activity > summary .ai-recent-chev { flex: none; color: var(--navy-light); }
body.dark .ai-activity > summary .ai-recent-chev { color: #9fb2d8; }
.ai-activity[open] > summary { margin-bottom: 16px; }
.ai-activity[open] > summary .ai-recent-chev .cv-d { display: none; }
.ai-activity[open] > summary .ai-recent-chev .cv-u { display: inline; }

/* ============ Yuqori tashkilot buyruqlari (akkordeon) ============ */
/* Hero sarlavha + statistika chizigʻi */
.ord-hero-main { display: flex; align-items: center; gap: 16px; }
.ord-hero-ic { flex: none; width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(140deg, #3a62b8, var(--navy) 60%, var(--navy-dark));
  box-shadow: 0 10px 24px rgba(31,59,115,.35), inset 0 1px 0 rgba(255,255,255,.25); }
.ord-hero-ic svg { width: 28px; height: 28px; }
.ord-hero-txt { min-width: 0; }
.ord-hero-txt h1 { margin: 0; }
.ord-stats { display: flex; align-items: center; gap: 22px; margin-top: 18px; padding: 15px 24px; border-radius: 16px;
  background: linear-gradient(145deg, rgba(47,84,168,.07), rgba(47,84,168,.02)); border: 1px solid rgba(47,84,168,.12); width: fit-content; max-width: 100%; flex-wrap: wrap; }
.ord-stat { display: flex; flex-direction: column; line-height: 1.05; }
.ord-stat b { font-family: 'Manrope', Inter, sans-serif; font-size: 26px; font-weight: 800; color: var(--navy); }
.ord-stat span { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.ord-stat-div { width: 1px; height: 30px; background: rgba(47,84,168,.18); }
body.dark .ord-stats { background: linear-gradient(145deg, rgba(120,145,195,.12), rgba(120,145,195,.04)); border-color: rgba(120,145,195,.22); }
body.dark .ord-stat b { color: #dbe6ff; }
body.dark .ord-stat-div { background: rgba(120,145,195,.25); }

.ord-wrap { display: flex; flex-direction: column; gap: 12px; }
.ord-cat { position: relative; border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-md); overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease; }
body.dark .ord-cat { background: linear-gradient(150deg, rgba(28,42,76,.7), rgba(20,32,60,.5)); border-color: rgba(120,145,195,.3); }
.ord-cat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold)); opacity: 0; transition: opacity .25s ease; }
.ord-cat:hover { box-shadow: var(--shadow-lg); }
.ord-cat:hover::before { opacity: .55; }
.ord-cat[open] { box-shadow: var(--shadow-lg); border-color: rgba(47,84,168,.2); }
.ord-cat[open]::before { opacity: 1; }
body.dark .ord-cat[open] { border-color: rgba(120,145,195,.45); }
.ord-cat > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 22px; }
.ord-cat > summary::-webkit-details-marker { display: none; }
.ord-cat > summary:hover { background: rgba(47,84,168,.04); }
body.dark .ord-cat > summary:hover { background: rgba(120,145,195,.07); }
.ord-cat-t { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.ord-ic { position: relative; flex: none; width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy); background: linear-gradient(150deg, rgba(47,84,168,.12), rgba(47,84,168,.05)); border: 1px solid rgba(47,84,168,.14);
  transition: color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.ord-ic svg { width: 24px; height: 24px; }
.ord-n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; color: #4a3a07;
  background: linear-gradient(140deg, var(--gold-soft), var(--gold)); box-shadow: 0 2px 5px rgba(201,162,39,.4); }
.ord-cat:hover .ord-ic, .ord-cat[open] .ord-ic { color: #fff; background: linear-gradient(140deg, #3a62b8, var(--navy)); border-color: transparent; box-shadow: 0 6px 16px rgba(31,59,115,.32); }
body.dark .ord-ic { color: #cdddff; background: linear-gradient(150deg, rgba(120,145,195,.18), rgba(120,145,195,.07)); border-color: rgba(120,145,195,.2); }
.ord-cat-t b { font-size: 15.5px; font-weight: 700; color: var(--navy-dark); line-height: 1.3; }
body.dark .ord-cat-t b { color: #dbe6ff; }
.ord-meta { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.ord-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px 4px 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--navy); background: rgba(47,84,168,.08); border: 1px solid rgba(47,84,168,.12); }
.ord-pill svg { width: 13px; height: 13px; opacity: .85; }
.ord-pill.doc { color: #b23b3b; background: rgba(200,60,60,.07); border-color: rgba(200,60,60,.15); }
body.dark .ord-pill { color: #cdddff; background: rgba(120,145,195,.14); border-color: rgba(120,145,195,.2); }
body.dark .ord-pill.doc { color: #f0a9a9; background: rgba(200,80,80,.14); border-color: rgba(200,80,80,.22); }
.ord-chev { display: inline-flex; width: 20px; height: 20px; color: var(--navy-light); margin-left: 2px; }
.ord-chev .cv { display: inline-flex; }
.ord-chev .cv svg { width: 20px; height: 20px; }
.ord-chev .cv-u { display: none; }
.ord-cat[open] > summary .ord-chev .cv-d { display: none; }
.ord-cat[open] > summary .ord-chev .cv-u { display: inline-flex; }
body.dark .ord-chev { color: #9fb2d8; }

.ord-body { padding: 2px 22px 22px 80px; }
.ord-sub { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-light); margin: 16px 0 10px; }
.ord-sub span { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
body.dark .ord-sub { color: #9fb2d8; }
.ord-links { display: flex; flex-direction: column; gap: 7px; }
.ord-link { display: flex; align-items: center; gap: 6px; }
.ord-link > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; text-decoration: none;
  background: rgba(47,84,168,.05); border: 1px solid rgba(47,84,168,.1); color: var(--navy); font-weight: 600; font-size: 13.5px; transition: background .2s, border-color .2s, transform .15s; }
.ord-link > a:hover { background: rgba(47,84,168,.1); border-color: rgba(47,84,168,.25); transform: translateX(2px); }
.ord-link > a > span { flex: 1; min-width: 0; line-height: 1.4; }
.ord-lic { width: 17px; height: 17px; flex: none; color: var(--navy-light); }
.ord-ext { width: 14px; height: 14px; flex: none; opacity: .5; }
.ord-link > a:hover .ord-ext { opacity: 1; }
body.dark .ord-link > a { background: rgba(120,145,195,.1); border-color: rgba(120,145,195,.2); color: #cdddff; }
body.dark .ord-link > a:hover { background: rgba(120,145,195,.18); }

.ord-addbtn, .ord-newcat { margin-top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 11px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; border: 1px dashed rgba(47,84,168,.4); background: transparent; color: var(--navy); }
.ord-addbtn svg, .ord-newcat svg { width: 16px; height: 16px; }
.ord-addbtn:hover, .ord-newcat:hover { background: rgba(47,84,168,.07); border-style: solid; }
body.dark .ord-addbtn, body.dark .ord-newcat { color: #cdddff; border-color: rgba(120,145,195,.4); }
.ord-newcat { margin-top: 2px; }
.ord-x { flex: none; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(200,60,60,.25); background: rgba(200,60,60,.06); color: #c0392b; }
.ord-x svg { width: 15px; height: 15px; }
.ord-x:hover { background: rgba(200,60,60,.14); }
.ord-cattools { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--glass-border); display: flex; gap: 9px; flex-wrap: wrap; }
.ord-cattools button { font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 7px 13px; border-radius: 9px;
  border: 1px solid rgba(47,84,168,.2); background: transparent; color: var(--navy); }
.ord-cattools button.del { color: #c0392b; border-color: rgba(200,60,60,.25); }
.ord-cattools button:hover { background: rgba(47,84,168,.06); }
.ord-cattools button.del:hover { background: rgba(200,60,60,.1); }
body.dark .ord-cattools button { color: #cdddff; }
.ord-none { color: var(--muted); font-size: 13px; padding: 4px 2px; }
.ord-empty { color: var(--muted); padding: 40px; text-align: center; }
.doc-eb.busy { opacity: .5; pointer-events: none; }

@media (max-width: 620px) {
  .ord-hero-ic { width: 46px; height: 46px; border-radius: 13px; }
  .ord-hero-ic svg { width: 23px; height: 23px; }
  .ord-stats { gap: 14px 18px; padding: 13px 16px; width: 100%; }
  .ord-stat b { font-size: 21px; }
  .ord-cat > summary { padding: 12px 14px; gap: 9px; }
  .ord-ic { width: 40px; height: 40px; border-radius: 11px; }
  .ord-ic svg { width: 21px; height: 21px; }
  .ord-cat-t { gap: 11px; }
  .ord-cat-t b { font-size: 13.5px; }
  .ord-pill { padding: 3px 8px 3px 7px; font-size: 11.5px; }
  .ord-body { padding: 2px 15px 18px; }
}

/* Qidiruvda buyruqlar natijasi */
.sr-buy-wrap { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.sr-buy { border-radius: var(--r-md); background: linear-gradient(150deg, rgba(255,255,255,.8), rgba(255,255,255,.55));
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-md); overflow: hidden; }
body.dark .sr-buy { background: linear-gradient(150deg, rgba(28,42,76,.7), rgba(20,32,60,.5)); border-color: rgba(120,145,195,.3); }
.sr-buy-head { display: flex; align-items: center; gap: 13px; padding: 13px 18px; text-decoration: none; }
.sr-buy-head:hover { background: rgba(47,84,168,.04); }
body.dark .sr-buy-head:hover { background: rgba(120,145,195,.07); }
.sr-buy-head .ord-ic { width: 40px; height: 40px; }
.sr-buy-head .ord-ic svg { width: 21px; height: 21px; }
.sr-buy-head b { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--navy-dark); }
body.dark .sr-buy-head b { color: #dbe6ff; }
.sr-buy-arrow { width: 18px; height: 18px; color: var(--navy-light); flex: none; }
.sr-buy-items { display: flex; flex-direction: column; gap: 6px; padding: 0 18px 14px 71px; }
.sr-buy-item { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  background: rgba(47,84,168,.05); border: 1px solid rgba(47,84,168,.1); color: var(--navy); font-size: 13px; font-weight: 600; }
.sr-buy-item svg { width: 14px; height: 14px; flex: none; opacity: .8; }
.sr-buy-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-buy-item:hover { background: rgba(47,84,168,.1); }
.sr-buy-item.doc { color: #b23b3b; background: rgba(200,60,60,.06); border-color: rgba(200,60,60,.13); }
body.dark .sr-buy-item { background: rgba(120,145,195,.1); border-color: rgba(120,145,195,.2); color: #cdddff; }
body.dark .sr-buy-item.doc { color: #f0a9a9; background: rgba(200,80,80,.12); }
@media (max-width: 620px) { .sr-buy-items { padding: 0 14px 12px 14px; } .sr-buy-head { padding: 12px 14px; } }

/* Namunaviy hujjat shablonlari */
.tpl-group { margin-bottom: 20px; }
.tpl-ext { position: relative; overflow: visible; }
.tpl-badge { position: absolute; bottom: -4px; right: -5px; font-size: 7.5px; font-weight: 800; padding: 1px 3px; border-radius: 4px;
  background: var(--navy); color: #fff; line-height: 1.25; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.tpl-pdf .tpl-badge { background: #c0392b; }
.tpl-doc .tpl-badge, .tpl-docx .tpl-badge { background: #2f54a8; }
.tpl-xls .tpl-badge, .tpl-xlsx .tpl-badge { background: #1e8e5a; }
.tpl-ppt .tpl-badge, .tpl-pptx .tpl-badge { background: #d35400; }

/* ============================================================
   Statistika — yangilangan bento tartib + 3D doira
   ============================================================ */
.stats-bento {
  display: grid; gap: 20px; margin-top: 22px;
  grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.5fr);
  align-items: start;
}
.stats-bento .wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .stats-bento { grid-template-columns: 1fr; } }

.donut-panel .donut-wrap { flex-direction: column; gap: 22px; align-items: center; }
.donut3d {
  position: relative; width: clamp(190px, 22vw, 240px); aspect-ratio: 1;
  filter: drop-shadow(0 14px 28px rgba(31,59,115,.22));
}
.donut-svg { width: 100%; height: 100%; transform: rotate(0deg); overflow: visible; }
.donut-arc { transition: stroke-dasharray 1.3s cubic-bezier(.4,0,.2,1); transition-delay: var(--d, 0s); }
.donut3d .donut-center { position: absolute; inset: 0; transform: none; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut3d .donut-center b { font-size: clamp(30px, 4vw, 42px); font-family: 'Manrope', sans-serif;
  background: linear-gradient(140deg, var(--navy), var(--navy-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.dark .donut3d .donut-center b { background: linear-gradient(140deg, #cfe0ff, #8fb0ee); -webkit-background-clip: text; background-clip: text; }
.donut3d .donut-center span { font-size: 12px; color: var(--muted); font-weight: 700; }
.donut-panel .legend { flex-direction: column; gap: 11px; width: 100%; max-width: 320px; }
.donut-panel .legend .li { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600;
  padding: 9px 14px; border-radius: 12px; background: rgba(255,255,255,.55); border: 1px solid var(--glass-border); }
body.dark .donut-panel .legend .li { background: rgba(42,60,102,.45); border-color: rgba(120,145,195,.3); }
.donut-panel .legend .li .sw { width: 16px; height: 16px; }
.donut-panel .legend .li b { margin-left: auto; font-size: 15px; color: var(--navy); }
.donut-panel .legend .li i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); min-width: 38px; text-align: right; }
body.dark .donut-panel .legend .li b { color: #c7d6f5; }

/* kattaroq, jonli barlar */
.stack-rows .stack-row { padding: 9px 0; }
.stack-rows .sbar { height: 26px; border-radius: 9px; }
.stack-row:hover .sbar { box-shadow: 0 4px 12px rgba(31,59,115,.16); }
.stack-rows.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
@media (max-width: 720px) { .stack-rows.two-col { grid-template-columns: 1fr; } }
.stack-row .sbar i { box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }

/* ============================================================
   E'lon banneri, tug'ilgan kunlar, tashkilot qo'shish/o'chirish
   ============================================================ */
#annBanner { display: flex; align-items: center; gap: 12px; margin: 16px 0 0;
  padding: 13px 18px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(201,162,39,.16), rgba(201,162,39,.06));
  border: 1px solid rgba(201,162,39,.4); box-shadow: var(--shadow-sm); animation: aiIn .4s ease; }
#annBanner[hidden] { display: none; }
.ann-ic { width: 34px; height: 34px; flex:0 0 34px; border-radius: 10px; display:flex; align-items:center; justify-content:center;
  color:#fff; background: linear-gradient(135deg,#d4af37,#a8821a); box-shadow: var(--shadow-sm); }
.ann-ic svg { width: 18px; height: 18px; }
.ann-text { flex: 1; font-size: 14px; font-weight: 600; color: var(--navy-dark); line-height: 1.45; }
body.dark .ann-text { color: #f2e3b8; }
.ann-close { width: 30px; height: 30px; flex:0 0 30px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(201,162,39,.4); background: rgba(255,255,255,.5); color: #8a6a12; font-size: 13px; }
body.dark .ann-close { background: rgba(77,63,23,.5); color: #e3c668; }

/* ============================================================
   TUGʻILGAN KUNLAR — bugungi banner + oyma-oy kalendar sahifa
   EMOJI YOʻQ — faqat inline SVG
   ============================================================ */

/* ---------- (A) Bugungi tugʻilgan kun banneri ---------- */
.bd-banner { position: relative; overflow: hidden; margin: 22px 0 30px; padding: clamp(20px,3vw,34px);
  border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(120% 140% at 12% -10%, rgba(201,162,39,.32), transparent 55%),
    radial-gradient(90% 120% at 100% 0%, rgba(92,126,201,.45), transparent 60%),
    linear-gradient(135deg, var(--navy-dark) 25%, var(--navy) 62%, var(--navy-light));
  border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.22);
  isolation: isolate; animation: bdBannerIn .6s cubic-bezier(.22,.9,.3,1) both; }
@keyframes bdBannerIn { from { opacity:0; transform: translateY(-14px) scale(.985); } to { opacity:1; transform:none; } }
.bd-banner.bd-out { animation: bdBannerOut .38s ease forwards; }
@keyframes bdBannerOut { to { opacity:0; transform: translateY(-22px) scale(.97); max-height:0; margin:0; padding-top:0; padding-bottom:0; } }
.bd-decor { position:absolute; inset:0; width:100%; height:100%; color: var(--gold-soft); z-index:-1; pointer-events:none; }
.bd-banner::after { content:''; position:absolute; inset:0 0 auto 0; height:3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-soft), transparent); opacity:.8; }
.bd-close { position:absolute; top:14px; right:14px; z-index:2; width:38px; height:38px; border-radius:50%;
  display:grid; place-items:center; cursor:pointer; background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22); color:#fff; transition: background .2s, transform .2s; }
.bd-close svg { width:18px; height:18px; }
.bd-close:hover { background: rgba(255,255,255,.24); transform: rotate(90deg); }
.bd-head { display:flex; align-items:center; gap:12px; margin-bottom:18px; padding-right:46px; }
.bd-bar { width:6px; height:28px; border-radius:4px; flex:0 0 auto;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold)); box-shadow:0 2px 10px rgba(201,162,39,.5); }
.bd-head h3 { font-family:'Manrope',sans-serif; font-weight:800; font-size: clamp(18px,2vw,24px); letter-spacing:-.3px; color:#fff; }
.bd-people { display:flex; flex-direction:column; gap:16px; }
.bd-people.multi { display:grid; grid-template-columns: repeat(auto-fit, minmax(min(320px,100%),1fr)); gap:14px; }
.bd-people.multi .bd-person { background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius: var(--r-md); padding:14px; }
.bd-person { display:flex; align-items:center; gap:16px; }
.bd-photo { position:relative; flex:0 0 auto; width:72px; height:80px; border-radius:16px; }
.bd-photo img, .bd-photo > svg { width:72px; height:80px; border-radius:16px; object-fit:cover; object-position:top center;
  background: linear-gradient(160deg,#e6ecf9,#cdd8ef); color: var(--navy); display:block; position:relative; z-index:1; }
.bd-photo > svg { padding:18px; }
.bd-photo-ring { position:absolute; inset:-5px; border-radius:20px; z-index:0;
  background: conic-gradient(from 140deg, var(--gold), var(--gold-soft), #fff5d6, var(--gold)); filter: blur(.3px); opacity:.9;
  animation: bdRing 6s linear infinite; }
@keyframes bdRing { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bd-photo-ring { animation:none; } .bd-banner { animation:none; } }
.bd-text { display:flex; flex-direction:column; gap:5px; min-width:0; }
.bd-eyebrow { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; font-size:11px; font-weight:800; letter-spacing:.6px; text-transform:uppercase; color: var(--gold-soft); }
.bd-eyebrow svg { width:14px; height:14px; }
.bd-name { font-family:'Manrope',sans-serif; font-weight:800; font-size: clamp(17px,1.7vw,21px); letter-spacing:-.3px; color:#fff; line-height:1.2; }
.bd-role { font-size:13px; color: rgba(233,242,255,.82); }
.bd-place { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color: rgba(210,225,255,.78); }
.bd-place svg { width:14px; height:14px; flex:0 0 auto; color: var(--gold-soft); }
.bd-age { display:inline-flex; align-items:baseline; gap:6px; align-self:flex-start; margin-top:3px; padding:5px 13px; border-radius:999px;
  background: linear-gradient(135deg, rgba(201,162,39,.92), rgba(168,130,26,.92)); border:1px solid var(--gold-soft); color:#fff; font-size:13px; font-weight:700; box-shadow:0 4px 14px rgba(201,162,39,.35); }
.bd-age i { font-family:'Manrope',sans-serif; font-style:normal; font-weight:800; font-size:18px; }
.bd-link { display:inline-flex; align-items:center; gap:8px; margin-top:18px; font-size:13.5px; font-weight:700; color:#fff; text-decoration:none;
  padding:9px 16px; border-radius:999px; background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); transition: background .2s, gap .2s; }
.bd-link svg { width:16px; height:16px; }
.bd-link:hover { background: rgba(255,255,255,.22); gap:12px; }

/* ---------- (B) Tugʻilgan kunlar sahifasi ---------- */
.bd-page-hero { display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin:18px 0 8px; padding: clamp(20px,3vw,30px);
  border-radius: var(--r-lg); background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border:1px solid var(--glass-border); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.95); }
.bd-hero-icon { flex:0 0 auto; width:64px; height:64px; border-radius:18px; display:grid; place-items:center;
  background: linear-gradient(145deg, var(--navy), var(--navy-light)); color: var(--gold-soft); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.3); }
.bd-hero-icon svg { width:32px; height:32px; }
.bd-page-hero h1 { font-family:'Manrope',sans-serif; font-weight:800; font-size: clamp(22px,2.6vw,32px); color: var(--navy-dark); letter-spacing:-.5px; }
.bd-page-hero p { margin-top:6px; max-width:62ch; font-size:14px; color: var(--muted); line-height:1.55; }
.bd-hero-stat { margin-left:auto; text-align:center; flex:0 0 auto; padding:14px 22px; border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--navy), var(--navy-light)); color:#fff; box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.25); }
.bd-hero-stat b { display:block; font-family:'Manrope',sans-serif; font-weight:800; font-size:30px; line-height:1; }
.bd-hero-stat span { font-size:12px; color: rgba(233,242,255,.78); }
.bd-upcoming { display:flex; gap:14px; overflow-x:auto; padding:4px 2px 14px; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; }
.bd-upcoming::-webkit-scrollbar { height:7px; }
.bd-upcoming::-webkit-scrollbar-thumb { background: rgba(31,59,115,.22); border-radius:99px; }
.bd-up-card { scroll-snap-align:start; flex:0 0 188px; display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center;
  padding:18px 14px; border-radius: var(--r-md); text-decoration:none; background: var(--glass); border:1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.9); transition: box-shadow .35s; transform-style:preserve-3d; }
.bd-up-card:hover { box-shadow: var(--shadow-lg); }
.bd-up-photo { width:62px; height:68px; border-radius:14px; overflow:hidden; transform: translateZ(20px);
  background: linear-gradient(160deg,#e6ecf9,#f2f5fb); display:grid; place-items:center; color: var(--navy-light); }
.bd-up-photo img { width:100%; height:100%; object-fit:cover; object-position:top center; }
.bd-up-photo svg { width:30px; height:30px; }
.bd-up-card b { font-size:13.5px; color: var(--navy-dark); line-height:1.3; }
.bd-up-place { font-size:11.5px; color: var(--muted); }
.bd-up-when { margin-top:2px; font-size:11px; font-weight:800; letter-spacing:.3px; text-transform:uppercase; color: var(--navy);
  background: rgba(255,255,255,.7); border:1px solid rgba(255,255,255,.95); padding:3px 11px; border-radius:999px; box-shadow: var(--shadow-sm); }
.bd-up-date { font-size:11.5px; color: var(--navy-light); font-weight:700; }
.bd-up-card.is-today { background: linear-gradient(150deg, #fff8e6, #fdf1cf); border-color: var(--gold-soft); box-shadow: var(--shadow-md), 0 0 0 1px rgba(201,162,39,.35) inset; }
.bd-up-card.is-today .bd-up-when { color:#fff; background: linear-gradient(135deg, var(--gold), #a8821a); border-color: var(--gold-soft); }
.bd-calendar { display:grid; grid-template-columns: repeat(auto-fit, minmax(min(330px,100%),1fr)); gap:16px; align-items:start; }
.bd-month { position:relative; border-radius: var(--r-md); overflow:hidden; background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border:1px solid var(--glass-border); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.9);
  transition: box-shadow .35s, transform .35s, opacity .35s; }
.bd-month:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.bd-month.past { opacity:.6; }
.bd-month.past:hover { opacity:1; }
.bd-month.cur { grid-column: span 2; box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(201,162,39,.45) inset;
  background: linear-gradient(160deg, rgba(255,251,239,.86), var(--glass-strong)); }
@media (max-width: 720px) { .bd-month.cur { grid-column: auto; } }
.bd-month-head { display:flex; align-items:center; gap:11px; padding:15px 16px; border-bottom:1px solid var(--glass-edge); }
.bd-month-no { font-family:'Manrope',sans-serif; font-weight:800; font-size:13px; color: var(--navy-light); background: rgba(47,84,168,.1);
  width:30px; height:30px; border-radius:9px; display:grid; place-items:center; flex:0 0 auto; }
.bd-month-head h3 { font-family:'Manrope',sans-serif; font-weight:800; font-size:16.5px; color: var(--navy-dark); letter-spacing:-.2px; }
.bd-month-tag { font-size:10.5px; font-weight:800; letter-spacing:.4px; text-transform:uppercase; color:#fff;
  background: linear-gradient(135deg, var(--gold), #a8821a); padding:3px 10px; border-radius:999px; box-shadow:0 2px 8px rgba(201,162,39,.4); }
.bd-month-count { margin-left:auto; flex:0 0 auto; font-size:12.5px; font-weight:700; color: var(--navy); min-width:26px; text-align:center;
  background: rgba(255,255,255,.72); border:1px solid rgba(255,255,255,.95); padding:3px 11px; border-radius:999px; box-shadow: var(--shadow-sm); }
.bd-month.cur .bd-month-no { background: rgba(201,162,39,.16); color:#a8821a; }
.bd-month-body { padding:8px; display:flex; flex-direction:column; gap:4px; }
.bd-month.cur .bd-month-body { display:grid; grid-template-columns: repeat(auto-fill, minmax(min(280px,100%),1fr)); gap:6px; }
.bd-row { display:flex; align-items:center; gap:11px; padding:8px 10px; border-radius:13px; text-decoration:none; transition: background .2s, transform .2s; }
.bd-row:hover { background: rgba(255,255,255,.65); transform: translateX(2px); }
.bd-row-photo { flex:0 0 auto; width:42px; height:48px; border-radius:11px; overflow:hidden;
  background: linear-gradient(160deg,#e6ecf9,#f2f5fb); display:grid; place-items:center; color: var(--navy-light); }
.bd-row-photo img { width:100%; height:100%; object-fit:cover; object-position:top center; }
.bd-row-photo svg { width:22px; height:22px; }
.bd-row-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.bd-row-info b { font-size:13.2px; color: var(--navy-dark); line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bd-row-place { font-size:11px; color: var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bd-row-meta { flex:0 0 auto; display:flex; align-items:center; gap:8px; }
.bd-today-badge { font-size:10px; font-weight:800; letter-spacing:.3px; text-transform:uppercase; color:#fff;
  background: linear-gradient(135deg, var(--gold), #a8821a); padding:3px 9px; border-radius:999px; box-shadow:0 2px 8px rgba(201,162,39,.4); }
.bd-row-day { text-align:center; padding:4px 9px; border-radius:10px; flex:0 0 auto;
  background: linear-gradient(160deg,#fdf6e1,#f6ebc6); border:1px solid rgba(201,162,39,.25); }
.bd-row-day b { display:block; font-family:'Manrope',sans-serif; font-size:15px; color:#a8821a; line-height:1; }
.bd-row-day i { font-style:normal; font-size:9.5px; font-weight:700; color:#b58f22; }
.bd-row-age { width:30px; height:30px; flex:0 0 auto; display:grid; place-items:center; font-family:'Manrope',sans-serif; font-weight:800; font-size:13px; color: var(--navy);
  background: rgba(47,84,168,.1); border-radius:9px; }
.bd-row.is-today { background: linear-gradient(135deg, #fff8e6, #fdf1cf); box-shadow: inset 0 0 0 1px rgba(201,162,39,.3); }
.bd-empty { display:flex; flex-direction:column; align-items:center; gap:6px; padding:22px 10px; color: rgba(93,107,133,.6); }
.bd-empty svg { width:26px; height:26px; opacity:.5; }
.bd-empty span { font-size:12px; }

/* dark mode */
body.dark .bd-banner { border-color: rgba(120,145,195,.28); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.12); }
body.dark .bd-page-hero { background: linear-gradient(150deg, rgba(28,42,76,.74), rgba(20,32,60,.6)); border-color: rgba(120,145,195,.3); }
body.dark .bd-page-hero h1 { color:#eaf1ff; }
body.dark .bd-page-hero p { color:#9fb0d0; }
body.dark .bd-hero-icon { background: linear-gradient(145deg,#21345f,#2f54a8); }
body.dark .bd-up-card { background: linear-gradient(150deg, rgba(28,42,76,.72), rgba(20,32,60,.55)); border-color: rgba(120,145,195,.3); }
body.dark .bd-up-card b { color:#dbe6ff; }
body.dark .bd-up-place { color:#9fb0d0; }
body.dark .bd-up-when { color:#dbe6ff; background: rgba(40,56,92,.8); border-color: rgba(120,145,195,.4); }
body.dark .bd-up-date { color:#9bb4f0; }
body.dark .bd-up-card.is-today { background: linear-gradient(150deg, #3a3014, #2a230f); border-color: rgba(201,162,39,.45); }
body.dark .bd-up-card.is-today .bd-up-when { color:#fff; }
body.dark .bd-up-photo svg, body.dark .bd-row-photo svg { color:#9bb4f0; }
body.dark .bd-month { background: linear-gradient(150deg, rgba(28,42,76,.72), rgba(20,32,60,.55)); border-color: rgba(120,145,195,.3); }
body.dark .bd-month.cur { background: linear-gradient(160deg, rgba(48,40,18,.7), rgba(28,42,76,.6)); box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(201,162,39,.45) inset; }
body.dark .bd-month-head { border-color: rgba(120,145,195,.22); }
body.dark .bd-month-head h3 { color:#eaf1ff; }
body.dark .bd-month-no { background: rgba(120,145,195,.16); color:#9bb4f0; }
body.dark .bd-month.cur .bd-month-no { background: rgba(201,162,39,.2); color:#e3c668; }
body.dark .bd-month-count { color:#dbe6ff; background: rgba(40,56,92,.7); border-color: rgba(120,145,195,.4); }
body.dark .bd-row:hover { background: rgba(120,145,195,.14); }
body.dark .bd-row-info b { color:#dbe6ff; }
body.dark .bd-row-place { color:#9fb0d0; }
body.dark .bd-row-photo { background: linear-gradient(160deg,#2a3a5e,#1c2a4c); }
body.dark .bd-row-age { color:#dbe6ff; background: rgba(120,145,195,.16); }
body.dark .bd-row-day { background: linear-gradient(160deg,#4d3f17,#33290e); border-color: rgba(201,162,39,.35); }
body.dark .bd-row-day b, body.dark .bd-row-day i { color:#e3c668; }
body.dark .bd-row.is-today { background: linear-gradient(135deg, #3a3014, #2a230f); }
body.dark .bd-empty { color: rgba(159,176,208,.55); }

/* responsive */
@media (max-width: 900px) { .bd-page-hero { flex-direction:column; align-items:flex-start; } .bd-hero-stat { margin-left:0; } }
@media (max-width: 600px) {
  .bd-banner { padding:18px; }
  .bd-person { flex-direction:column; align-items:center; text-align:center; gap:12px; }
  .bd-eyebrow, .bd-place, .bd-age { align-self:center; }
  .bd-photo, .bd-photo img, .bd-photo > svg { width:84px; height:92px; }
  .bd-people.multi { grid-template-columns:1fr; }
  .bd-month-head { flex-wrap:wrap; }
  .bd-calendar { grid-template-columns:1fr; }
}

/* Tashkilot qo'shish tugmasi (org-tools) */
.org-add { display: none; align-items: center; gap: 6px; margin-left: auto;
  padding: 9px 15px; border-radius: 11px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #2c9568, var(--green)); border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 16px rgba(21,115,71,.3); }
.org-add svg { width: 15px; height: 15px; }
.org-add:hover { transform: translateY(-2px); }
body.admin .org-add { display: inline-flex; }
/* Tashkilot o'chirish (karta ustida) */
.orgc { position: relative; }
.orgc-del { display: none; position: absolute; right: 8px; top: 8px; z-index: 4; width: 28px; height: 28px;
  border-radius: 9px; align-items: center; justify-content: center; background: rgba(251,227,225,.95);
  border: 1px solid rgba(179,38,30,.3); color: #b3261e; cursor: pointer; }
.orgc-del svg { width: 14px; height: 14px; }
.orgc-del:hover { background: #fbe3e1; transform: scale(1.1); }
body.admin .orgc-del { display: inline-flex; }
body.admin .orgc .orgc-go { margin-right: 32px; }
body.dark .orgc-del { background: rgba(77,33,30,.9); border-color: rgba(179,38,30,.4); color: #e89a94; }

/* ===================== STATISTIKA — premium hisobot dashboard ===================== */
.st-lead{ display:flex; align-items:stretch; gap:34px; flex-wrap:wrap; margin-top:26px; padding:30px 34px; border-radius:var(--r-lg);
  background: radial-gradient(120% 140% at 0% 0%, rgba(201,162,39,.10), transparent 45%), linear-gradient(150deg, rgba(255,255,255,.82), rgba(255,255,255,.52));
  border:1px solid var(--glass-border); box-shadow:var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter:blur(20px) saturate(1.5); -webkit-backdrop-filter:blur(20px) saturate(1.5); }
.st-lead-item{ display:flex; flex-direction:column; justify-content:center; gap:7px; min-width:180px; }
.st-lead-kicker{ display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:800; letter-spacing:.6px; text-transform:uppercase; color:var(--navy-light); }
.st-lead-kicker svg{ width:16px; height:16px; }
.st-lead-num{ font-family:'Manrope','Inter',sans-serif; font-weight:800; font-size:clamp(42px, 6vw, 72px); line-height:.92; letter-spacing:-2px;
  background:linear-gradient(140deg, var(--navy-dark), var(--navy-light) 70%, #5c7ec9); -webkit-background-clip:text; background-clip:text; color:transparent; }
.st-lead-num.gold{ background:linear-gradient(140deg, #a8821a, var(--gold) 55%, var(--gold-soft)); -webkit-background-clip:text; background-clip:text; }
.st-lead-ctx{ font-size:13px; color:var(--muted); font-weight:600; max-width:210px; }
.st-lead-div{ width:1px; align-self:stretch; background:linear-gradient(180deg,transparent,var(--glass-edge),transparent); }
.st-lead-mini{ justify-content:center; gap:14px; }
.st-mini-row{ display:flex; align-items:baseline; gap:9px; }
.st-mini-row b{ font-family:'Manrope',sans-serif; font-weight:800; font-size:24px; color:var(--navy); min-width:42px; }
.st-mini-row span{ font-size:12.5px; color:var(--muted); font-weight:600; }
body.dark .st-lead{ background: radial-gradient(120% 140% at 0% 0%, rgba(201,162,39,.14), transparent 45%), linear-gradient(150deg, rgba(28,42,76,.74), rgba(20,32,60,.55));
  border-color:rgba(120,145,195,.3); box-shadow:0 22px 56px rgba(0,0,0,.42), inset 0 1px 0 rgba(160,185,235,.16); }
body.dark .st-lead-num{ background:linear-gradient(140deg,#dbe6ff,#9db9f2); -webkit-background-clip:text; background-clip:text; }
body.dark .st-lead-num.gold{ background:linear-gradient(140deg,#e3c668,#f0dca0); -webkit-background-clip:text; background-clip:text; }
body.dark .st-lead-kicker{ color:#9db9f2; }
body.dark .st-mini-row b{ color:#c7d6f5; }

.st-kpi-grid{ display:grid; gap:16px; margin-top:22px; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); }
.st-kpi{ position:relative; display:flex; flex-direction:column; gap:6px; padding:20px 22px; border-radius:var(--r-md);
  background:linear-gradient(150deg, rgba(255,255,255,.85), rgba(255,255,255,.5)); border:1px solid var(--glass-border);
  box-shadow:var(--shadow-md), inset 0 1px 0 #fff; transform-style:preserve-3d; transition:transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s; }
.st-kpi-ic{ width:42px; height:42px; border-radius:12px; margin-bottom:4px; display:grid; place-items:center; box-shadow:var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.7); }
.st-kpi-ic svg{ width:22px; height:22px; }
.st-kpi-ic.k-navy{ background:linear-gradient(145deg,#e7edfb,#d0ddf5); color:var(--navy-light); }
.st-kpi-ic.k-blue{ background:linear-gradient(145deg,#e7edfb,#c6d6f3); color:var(--navy); }
.st-kpi-ic.k-gold{ background:linear-gradient(145deg,#faf3dd,#eedfa9); color:#a8821a; }
.st-kpi-ic.k-green{ background:linear-gradient(145deg,#e2f3ea,#c5e5d5); color:var(--green); }
.st-kpi b{ font-family:'Manrope',sans-serif; font-weight:800; font-size:clamp(26px,2.4vw,34px); line-height:1;
  background:linear-gradient(140deg, var(--navy), var(--navy-light)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.st-kpi-l{ font-size:12.5px; color:var(--muted); font-weight:600; }
body.dark .st-kpi{ background:linear-gradient(150deg, rgba(40,58,100,.8), rgba(28,42,76,.6)); border-color:rgba(120,145,195,.32); box-shadow:0 8px 22px rgba(0,0,0,.32), inset 0 1px 0 rgba(160,185,235,.16); }
body.dark .st-kpi b{ background:linear-gradient(140deg,#cfe0ff,#8fb0ee); -webkit-background-clip:text; background-clip:text; }
body.dark .st-kpi-ic.k-navy, body.dark .st-kpi-ic.k-blue{ background:linear-gradient(145deg,#2b3f6e,#1d2c52); color:#9db9f2; }
body.dark .st-kpi-ic.k-gold{ background:linear-gradient(145deg,#4d3f17,#33290e); color:#e3c668; }
body.dark .st-kpi-ic.k-green{ background:linear-gradient(145deg,#1c4733,#122e21); color:#6fd0a3; }

.st-compose{ display:grid; gap:22px; grid-template-columns:repeat(auto-fit, minmax(min(380px,100%), 1fr)); margin-top:20px; }
.st-prop{ display:flex; flex-direction:column; gap:16px; }
.st-prop-bar{ display:flex; height:46px; border-radius:14px; overflow:hidden; background:rgba(255,255,255,.5); border:1px solid rgba(255,255,255,.9); box-shadow:var(--shadow-sm) inset; }
.st-prop-bar i{ position:relative; height:100%; width:0; transform-origin:left center; display:grid; place-items:center; transition:width 1s cubic-bezier(.22,.9,.3,1); }
.st-prop-bar i em{ font-style:normal; font-family:'Manrope',sans-serif; font-weight:800; font-size:13px; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.28); opacity:0; transition:opacity .5s .6s; }
.st-prop-bar i:hover em, .stat-panel.in .st-prop-bar i em{ opacity:1; }
.st-prop-bar .pm{ background:linear-gradient(180deg,#6b8bd4,var(--navy-light)); }
.st-prop-bar .pd{ background:linear-gradient(180deg,var(--gold-soft),#b89221); }
.st-prop-bar .po{ background:linear-gradient(180deg,#46b283,var(--green)); }
.st-prop-keys{ display:flex; gap:22px; flex-wrap:wrap; }
.st-prop-keys span{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--text); }
.st-prop-note{ font-size:13px; color:var(--muted); line-height:1.5; padding-top:4px; border-top:1px dashed var(--glass-edge); }
body.dark .st-prop-bar{ background:rgba(28,42,76,.7); border-color:rgba(120,145,195,.3); }
body.dark .st-prop-note{ border-color:rgba(120,145,195,.3); }

.st-vs{ display:grid; gap:22px; grid-template-columns:repeat(auto-fit, minmax(min(300px,100%), 1fr)); margin-top:20px; }
.st-vs-card{ display:flex; flex-direction:column; align-items:center; gap:16px; text-align:center; }
.st-vs-head{ display:flex; align-items:center; gap:11px; align-self:stretch; }
.st-vs-ic{ width:38px; height:38px; border-radius:11px; display:grid; place-items:center; box-shadow:var(--shadow-sm); flex:0 0 auto; }
.st-vs-ic svg{ width:20px; height:20px; }
.st-vs-card h3{ margin:0; font-size:17px; color:var(--navy-dark); }
.st-vs-count{ margin-left:auto; font-size:12px; font-weight:700; color:var(--navy); background:rgba(255,255,255,.7); border:1px solid rgba(255,255,255,.95); box-shadow:var(--shadow-sm); padding:4px 12px; border-radius:999px; }
.st-vs-navy .st-vs-ic{ background:linear-gradient(145deg,#e7edfb,#cdd9f3); color:var(--navy-light); }
.st-vs-gold .st-vs-ic{ background:linear-gradient(145deg,#faf3dd,#eedfa9); color:#a8821a; }
.st-vs-rows{ align-self:stretch; display:flex; flex-direction:column; gap:9px; }
.st-vs-row{ display:flex; align-items:center; justify-content:space-between; padding:9px 14px; border-radius:11px; background:rgba(255,255,255,.55); border:1px solid rgba(255,255,255,.85); }
.st-vs-row span{ font-size:13px; color:var(--muted); font-weight:600; }
.st-vs-row b{ font-family:'Manrope',sans-serif; font-weight:800; font-size:17px; color:var(--navy); }
body.dark .st-vs-card h3{ color:#dbe6ff; }
body.dark .st-vs-count{ background:rgba(38,54,94,.8); border-color:rgba(120,145,195,.35); color:#c7d6f5; }
body.dark .st-vs-row{ background:rgba(28,42,76,.6); border-color:rgba(120,145,195,.28); }
body.dark .st-vs-row b{ color:#c7d6f5; }
body.dark .st-vs-navy .st-vs-ic{ background:linear-gradient(145deg,#2b3f6e,#1d2c52); color:#9db9f2; }
body.dark .st-vs-gold .st-vs-ic{ background:linear-gradient(145deg,#4d3f17,#33290e); color:#e3c668; }

.st-gauge{ position:relative; width:172px; height:172px; }
.st-gauge svg{ width:100%; height:100%; transform:rotate(-90deg); }
.st-gauge .g-track{ fill:none; stroke:rgba(140,160,200,.16); stroke-width:14; }
.st-gauge .g-arc{ fill:none; stroke-width:14; stroke-linecap:round; stroke-dasharray:0 999; transition:stroke-dasharray 1.2s cubic-bezier(.22,.9,.3,1); }
.st-gauge-center{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; }
.st-gauge-center b{ font-family:'Manrope',sans-serif; font-weight:800; font-size:30px; color:var(--navy); }
.st-gauge-center i{ font-style:normal; font-size:11px; font-weight:700; color:var(--muted); letter-spacing:.4px; }
.st-gauge-center small{ font-size:10.5px; color:var(--muted); }
body.dark .st-gauge .g-track{ stroke:rgba(140,160,200,.14); }
body.dark .st-gauge-center b{ color:#c7d6f5; }

.st-lead-board{ display:flex; flex-direction:column; gap:11px; }
.st-rank{ display:grid; grid-template-columns:44px minmax(110px,150px) 1fr 56px; align-items:center; gap:14px; padding:11px 14px; border-radius:13px; text-decoration:none;
  background:rgba(255,255,255,.5); border:1px solid rgba(255,255,255,.85); transition:transform .3s, box-shadow .3s; }
.st-rank:hover{ transform:translateX(4px); box-shadow:var(--shadow-md); }
.st-rank-badge{ width:38px; height:38px; position:relative; display:grid; place-items:center; }
.st-rank-badge svg{ width:38px; height:38px; }
.st-rank-badge span{ position:absolute; font-family:'Manrope',sans-serif; font-weight:800; font-size:14px; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.3); }
.st-rank-name{ font-size:14px; font-weight:700; color:var(--text); }
.st-rank-name small{ display:block; font-size:11px; font-weight:600; color:var(--muted); }
.st-rank-bar{ height:14px; border-radius:7px; background:rgba(140,160,200,.16); overflow:hidden; }
.st-rank-bar i{ display:block; height:100%; width:0; transform-origin:left center; border-radius:7px; background:linear-gradient(90deg, var(--navy-light), #6b8bd4); transition:width 1s cubic-bezier(.22,.9,.3,1); }
.st-rank:nth-child(1) .st-rank-bar i{ background:linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.st-rank-val{ text-align:right; font-family:'Manrope',sans-serif; font-weight:800; font-size:17px; color:var(--navy); }
.st-rank-val small{ display:block; font-size:11px; font-weight:600; color:var(--muted); }
body.dark .st-rank{ background:rgba(28,42,76,.6); border-color:rgba(120,145,195,.28); }
body.dark .st-rank-val{ color:#c7d6f5; }
body.dark .st-rank-bar{ background:rgba(140,160,200,.12); }

.st-heat{ display:grid; gap:12px; grid-template-columns:repeat(auto-fill, minmax(150px,1fr)); margin-top:6px; }
.st-heat-cell{ position:relative; display:flex; flex-direction:column; gap:3px; padding:16px 16px 14px; border-radius:var(--r-sm); text-decoration:none; overflow:hidden; border:1px solid rgba(255,255,255,.6); transition:transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; }
.st-heat-cell:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); }
.st-heat-ic{ position:absolute; top:13px; right:13px; opacity:.5; }
.st-heat-ic svg{ width:18px; height:18px; }
.st-heat-name{ font-size:13px; font-weight:700; }
.st-heat-cell b{ font-family:'Manrope',sans-serif; font-weight:800; font-size:26px; line-height:1; }
.st-heat-sub{ font-size:11px; font-weight:600; opacity:.85; }
.st-heat-cell.h1{ background:linear-gradient(150deg,#eef2fb,#e3eaf7); color:var(--navy-dark); }
.st-heat-cell.h2{ background:linear-gradient(150deg,#dbe5f7,#c6d6f1); color:var(--navy-dark); }
.st-heat-cell.h3{ background:linear-gradient(150deg,#9fb6e6,#7e9cda); color:#fff; border-color:rgba(255,255,255,.35); }
.st-heat-cell.h4{ background:linear-gradient(150deg,#3f5fae,#2f54a8); color:#fff; border-color:rgba(255,255,255,.25); }
.st-heat-cell.h5{ background:linear-gradient(150deg,var(--navy-dark),#3a5db0 70%,#c9a227); color:#fff; border-color:rgba(201,162,39,.5); box-shadow:var(--shadow-md), 0 0 0 1px rgba(201,162,39,.4) inset; }
.st-heat-scale{ display:flex; align-items:center; gap:6px; margin-top:18px; font-size:11.5px; font-weight:700; color:var(--muted); }
.st-heat-scale i{ width:26px; height:12px; border-radius:4px; }
.st-heat-scale i.h1{ background:#e3eaf7; } .st-heat-scale i.h2{ background:#c6d6f1; }
.st-heat-scale i.h3{ background:#7e9cda; } .st-heat-scale i.h4{ background:#2f54a8; }
.st-heat-scale i.h5{ background:linear-gradient(90deg,var(--navy-dark),var(--gold)); }
body.dark .st-heat-cell.h1{ background:linear-gradient(150deg,#243559,#1c2b4d); color:#cdd9f3; border-color:rgba(120,145,195,.22); }
body.dark .st-heat-cell.h2{ background:linear-gradient(150deg,#2c4170,#223560); color:#dbe6ff; border-color:rgba(120,145,195,.26); }
body.dark .st-heat-cell.h3{ background:linear-gradient(150deg,#3a5499,#2f4783); color:#fff; }
body.dark .st-heat-cell.h4{ background:linear-gradient(150deg,#496ac4,#3a5db0); color:#fff; }
body.dark .st-heat-cell.h5{ background:linear-gradient(150deg,#3a5db0,#4a6dc8 60%,#c9a227); color:#fff; }

.st-bars .sbar i em{ display:none; }
.st-bars-legend{ flex-direction:row; gap:22px; margin-top:18px; flex-wrap:wrap; }

@media (max-width:880px){ .st-lead{ gap:22px; padding:24px 22px; } .st-lead-div{ display:none; } .st-lead-item{ min-width:140px; } }
@media (max-width:560px){
  .st-lead{ flex-direction:column; gap:18px; }
  .st-lead-num{ font-size:48px; }
  .st-kpi-grid{ grid-template-columns:repeat(2,1fr); }
  .st-rank{ grid-template-columns:38px 1fr 50px; }
  .st-rank-bar{ display:none; }
  .st-heat{ grid-template-columns:repeat(2,1fr); }
}

/* ===================== TUMAN SAHIFASI — mini-statistika ===================== */
.dist-stats{ margin-top:20px; padding:18px 20px; border-radius:var(--r-md);
  background:linear-gradient(150deg, rgba(255,255,255,.82), rgba(255,255,255,.5)); border:1px solid var(--glass-border);
  box-shadow:var(--shadow-md), inset 0 1px 0 #fff; }
.ds-tiles{ display:grid; gap:12px; grid-template-columns:repeat(auto-fit, minmax(130px,1fr)); }
.ds-tile{ display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:12px 14px; border-radius:14px;
  background:rgba(255,255,255,.55); border:1px solid rgba(255,255,255,.8); }
.ds-ic{ width:34px; height:34px; border-radius:10px; display:grid; place-items:center; box-shadow:var(--shadow-sm); margin-bottom:2px; }
.ds-ic svg{ width:18px; height:18px; }
.ds-ic.k-navy{ background:linear-gradient(145deg,#e7edfb,#d0ddf5); color:var(--navy-light); }
.ds-ic.k-blue{ background:linear-gradient(145deg,#e7edfb,#c6d6f3); color:var(--navy); }
.ds-ic.k-gold{ background:linear-gradient(145deg,#faf3dd,#eedfa9); color:#a8821a; }
.ds-ic.k-green{ background:linear-gradient(145deg,#e2f3ea,#c5e5d5); color:var(--green); }
.ds-tile b{ font-family:'Manrope',sans-serif; font-weight:800; font-size:24px; color:var(--navy); line-height:1; }
.ds-tile span{ font-size:12px; color:var(--muted); font-weight:600; }
.ds-prop{ display:flex; height:14px; margin-top:14px; border-radius:8px; overflow:hidden; background:rgba(255,255,255,.5); border:1px solid rgba(255,255,255,.85); }
.ds-prop i{ height:100%; width:0; transition:width 1s cubic-bezier(.22,.9,.3,1); }
.ds-prop .pm{ background:linear-gradient(180deg,#6b8bd4,var(--navy-light)); }
.ds-prop .pd{ background:linear-gradient(180deg,var(--gold-soft),#b89221); }
.ds-prop .po{ background:linear-gradient(180deg,#46b283,var(--green)); }
.ds-keys{ display:flex; gap:18px; flex-wrap:wrap; margin-top:10px; }
.ds-keys span{ display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:600; color:var(--muted); }
body.dark .dist-stats{ background:linear-gradient(150deg, rgba(40,58,100,.8), rgba(28,42,76,.6)); border-color:rgba(120,145,195,.32); }
body.dark .ds-tile{ background:rgba(28,42,76,.55); border-color:rgba(120,145,195,.28); }
body.dark .ds-tile b{ color:#cfe0ff; }
body.dark .ds-ic.k-navy, body.dark .ds-ic.k-blue{ background:linear-gradient(145deg,#2b3f6e,#1d2c52); color:#9db9f2; }
body.dark .ds-ic.k-gold{ background:linear-gradient(145deg,#4d3f17,#33290e); color:#e3c668; }
body.dark .ds-ic.k-green{ background:linear-gradient(145deg,#1c4733,#122e21); color:#6fd0a3; }
body.dark .ds-prop{ background:rgba(28,42,76,.7); border-color:rgba(120,145,195,.3); }

/* ===================== STATISTIKA — ma'lumot to'liqligi ===================== */
.comp-list{ display:flex; flex-direction:column; gap:13px; }
.comp-row{ display:grid; grid-template-columns: minmax(160px,230px) 1fr 64px 46px; align-items:center; gap:14px; }
.comp-label{ font-size:13.5px; font-weight:600; color:var(--text); }
.comp-bar{ height:12px; border-radius:6px; background:rgba(140,160,200,.16); overflow:hidden; }
.comp-bar i{ display:block; height:100%; width:0; border-radius:6px; transition:width 1s cubic-bezier(.22,.9,.3,1); }
.comp-bar i.good{ background:linear-gradient(90deg,#46b283,var(--green)); }
.comp-bar i.mid{ background:linear-gradient(90deg,var(--gold-soft),#b89221); }
.comp-bar i.low{ background:linear-gradient(90deg,#e8896f,#c0492f); }
.comp-val{ text-align:right; font-family:'Manrope',sans-serif; font-weight:800; font-size:15px; color:var(--navy); }
.comp-val small{ font-weight:700; font-size:11px; color:var(--muted); margin-left:3px; }
.comp-pct{ text-align:right; font-family:'Manrope',sans-serif; font-weight:800; font-size:14px; }
.comp-pct.good{ color:var(--green); } .comp-pct.mid{ color:#a8821a; } .comp-pct.low{ color:#c0492f; }
body.dark .comp-val{ color:#cfe0ff; }
body.dark .comp-bar{ background:rgba(140,160,200,.12); }
body.dark .comp-pct.good{ color:#6fd0a3; } body.dark .comp-pct.low{ color:#f0a08c; }
@media (max-width:560px){
  .comp-row{ grid-template-columns:1fr auto; grid-template-areas:'label pct' 'bar val'; gap:6px 12px; }
  .comp-label{ grid-area:label; } .comp-pct{ grid-area:pct; } .comp-bar{ grid-area:bar; } .comp-val{ grid-area:val; text-align:left; }
}

/* ===================== STATISTIKA — hududlar xaritasi (haqiqiy SVG, KMZ'dan) ===================== */
.geo-wrap{ width:100%; max-width:640px; margin:8px auto 0; padding:8px;
  background: radial-gradient(80% 75% at 50% 42%, rgba(92,126,201,.08), transparent 72%); }
.geo-svg{ width:100%; height:auto; display:block; overflow:visible; }
.gm-region{ stroke:#fff; stroke-width:2.5; stroke-linejoin:round; cursor:pointer; transition:filter .2s, stroke-width .2s; }
.gm-regions a:hover .gm-region{ filter:brightness(1.08) saturate(1.08); stroke-width:4; }
.gm-region.h1{ fill:#dce6f8; } .gm-region.h2{ fill:#aec6ee; } .gm-region.h3{ fill:#7e9cda; } .gm-region.h4{ fill:#4a6ec4; } .gm-region.h5{ fill:#2f54a8; }
.gm-badge circle{ fill:#16223f; stroke:#fff; stroke-width:3; cursor:pointer; transition:fill .2s; }
.gm-badge:hover circle{ fill:#2f54a8; }
.gm-num{ fill:#fff; font-family:'Manrope',sans-serif; font-weight:800; font-size:27px; text-anchor:middle; dominant-baseline:central; pointer-events:none; }
.gm-lead{ stroke:#16223f; stroke-width:1.6; stroke-dasharray:3,3; opacity:.45; }
body.dark .gm-lead{ stroke:#9bb4f0; }
body.dark .geo-wrap{ background: radial-gradient(80% 75% at 50% 42%, rgba(92,126,201,.12), transparent 72%); }
body.dark .gm-region{ stroke:#16223f; }
body.dark .gm-region.h1{ fill:#2a3d63; } body.dark .gm-region.h2{ fill:#34508a; } body.dark .gm-region.h3{ fill:#3f5fae; } body.dark .gm-region.h4{ fill:#4a6ec4; } body.dark .gm-region.h5{ fill:#6b8bd4; }
body.dark .gm-badge circle{ fill:#0b1426; stroke:#9bb4f0; }

/* ===================== TASHKILOT HUJJATLARI ===================== */
.doc-list{ display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr)); }
.doc-row{ display:flex; align-items:center; gap:14px; padding:12px 14px; border-radius:var(--r-md);
  background:linear-gradient(150deg, rgba(255,255,255,.82), rgba(255,255,255,.5)); border:1px solid var(--glass-border);
  box-shadow:var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.9); transition:box-shadow .25s, opacity .25s; opacity:.62; }
.doc-row.doc-ready{ opacity:1; }
.doc-row.doc-ready:hover{ box-shadow:var(--shadow-md); }
.doc-row.doc-err{ opacity:.5; }
.doc-ic{ width:44px; height:44px; flex:0 0 auto; border-radius:12px; display:grid; place-items:center;
  background:linear-gradient(145deg,#fbe9e6,#f6d6cf); color:#c0492f; box-shadow:var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.7); }
.doc-ic svg{ width:22px; height:22px; }
.doc-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.doc-info b{ font-size:14px; color:var(--navy-dark); line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.doc-sub{ font-size:11.5px; color:var(--muted); font-weight:600; }
.doc-act{ flex:0 0 auto; display:flex; align-items:center; gap:6px; }
.doc-act a{ width:38px; height:38px; display:none; align-items:center; justify-content:center; border-radius:11px; text-decoration:none;
  background:rgba(255,255,255,.6); border:1px solid var(--glass-border); box-shadow:var(--shadow-sm); transition:transform .2s, background .2s; }
.doc-act a svg{ width:19px; height:19px; }
.doc-row.doc-ready .doc-act a{ display:inline-flex; }
.doc-act a:hover{ transform:translateY(-2px); }
.doc-view{ color:var(--navy-light); }
.doc-view:hover{ background:linear-gradient(145deg,#e7edfb,#d4def5); }
/* Hujjat tahrirlash tugmalari (faqat admin rejimida ko'rinadi) */
.doc-edit{ display:none; align-items:center; gap:6px; margin-left:4px; }
body.admin .doc-edit{ display:inline-flex; }
.doc-eb{ width:34px; height:34px; border-radius:10px; border:1px solid var(--glass-border); background:rgba(255,255,255,.6);
  color:var(--muted); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; transition:transform .2s, color .2s, border-color .2s; }
.doc-eb svg{ width:16px; height:16px; }
.doc-eb:hover{ color:var(--navy-light); border-color:var(--navy-light); transform:translateY(-2px); }
.doc-eb.del:hover{ color:#e5484d; border-color:#e5484d; }
body.dark .doc-eb{ background:rgba(42,60,102,.55); border-color:rgba(120,145,195,.35); color:#c7d6f5; }
.doc-add{ display:none; align-items:center; gap:7px; margin-top:14px; padding:10px 18px; border-radius:var(--r-md);
  border:1.5px dashed var(--glass-border); background:rgba(255,255,255,.5); color:var(--navy-light); cursor:pointer;
  font:inherit; font-weight:600; font-size:.92rem; transition:transform .2s, border-color .2s, background .2s; }
.doc-add svg{ width:16px; height:16px; }
body.admin .doc-add{ display:inline-flex; }
.doc-add:hover{ border-color:var(--navy-light); transform:translateY(-2px); background:rgba(231,237,251,.7); }
body.dark .doc-add{ background:rgba(42,60,102,.4); border-color:rgba(120,145,195,.35); color:#c7d6f5; }
.doc-dl-btn{ color:#c0492f; }
.doc-dl-btn:hover{ background:linear-gradient(145deg,#fbe9e6,#f6d6cf); }
.doc-spin{ width:18px; height:18px; border-radius:50%; border:2px solid rgba(47,84,168,.25); border-top-color:var(--navy-light); animation:docSpin .8s linear infinite; }
.doc-row.doc-ready .doc-spin, .doc-row.doc-err .doc-spin{ display:none; }
@keyframes docSpin{ to{ transform:rotate(360deg); } }
.doc-row.doc-err .doc-act::after{ content:'—'; color:var(--muted); font-weight:800; }
body.dark .doc-row{ background:linear-gradient(150deg, rgba(40,58,100,.78), rgba(28,42,76,.55)); border-color:rgba(120,145,195,.3); }
body.dark .doc-info b{ color:#dbe6ff; }
body.dark .doc-ic{ background:linear-gradient(145deg,#4a2620,#3a1e18); color:#f0a08c; }
body.dark .doc-act a{ background:rgba(40,56,92,.5); border-color:rgba(120,145,195,.3); }
body.dark .doc-view{ color:#9bb4f0; }
body.dark .doc-dl-btn{ color:#f0a08c; }

/* ===================== (2) Hududning kontaktlarini eksport ===================== */
.dist-export{ display:inline-flex; gap:8px; flex-wrap:wrap; }
.dx-btn{ display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border-radius:12px; cursor:pointer; font:inherit; font-weight:600; font-size:.85rem;
  color:var(--navy-light); background:rgba(255,255,255,.72); border:1px solid var(--glass-border); box-shadow:var(--shadow-sm); transition:transform .2s, background .2s, border-color .2s; }
.dx-btn svg{ width:17px; height:17px; flex:0 0 auto; }
.dx-btn:hover{ transform:translateY(-2px); border-color:var(--navy-light); background:linear-gradient(145deg,#e7edfb,#d4def5); }
body.dark .dx-btn{ background:rgba(42,60,102,.55); border-color:rgba(120,145,195,.35); color:#c7d6f5; }
body.dark .dx-btn:hover{ background:rgba(52,72,122,.7); }

/* ===================== (1)+(8) Ma'lumot ish ro'yxati / Hujjat monitoringi ===================== */
.dq-head{ display:flex; align-items:center; gap:18px; justify-content:space-between; flex-wrap:wrap; margin-bottom:12px; }
.dq-head-txt{ flex:1; min-width:220px; }
.dq-head-txt h3{ margin:0 0 5px; }
.dq-note{ margin:0; font-size:12.5px; color:var(--muted); line-height:1.55; max-width:62ch; }
.dq-ring{ --p:0; width:90px; height:90px; flex:0 0 auto; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:conic-gradient(var(--navy-light) calc(var(--p)*1%), rgba(140,160,200,.18) 0); position:relative; }
.dq-ring.gold{ background:conic-gradient(var(--gold) calc(var(--p)*1%), rgba(140,160,200,.18) 0); }
.dq-ring::before{ content:''; position:absolute; inset:9px; border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(31,59,115,.12) inset; }
.dq-ring-num{ position:relative; font-family:'Manrope',sans-serif; font-weight:800; font-size:21px; color:var(--navy); line-height:1; }
.dq-ring-num i{ font-size:12px; font-style:normal; color:var(--muted); }
.dq-ring-lbl{ position:relative; font-size:9px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.4px; margin-top:3px; }
.dq-summary-pills{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.dq-pill{ display:inline-flex; align-items:center; gap:7px; padding:6px 14px; border-radius:999px; font-size:12.5px; font-weight:600; color:var(--muted);
  background:rgba(140,160,200,.12); border:1px solid var(--glass-border); }
.dq-pill b{ font-family:'Manrope',sans-serif; font-weight:800; color:var(--navy); font-size:14px; }
.dq-cats{ display:flex; flex-direction:column; gap:10px; }
.dq-cat{ border-radius:var(--r-md); border:1px solid var(--glass-border); overflow:hidden;
  background:linear-gradient(150deg, rgba(255,255,255,.7), rgba(255,255,255,.45)); }
.dq-sum{ display:flex; align-items:center; gap:12px; padding:13px 16px; cursor:pointer; list-style:none; user-select:none; }
.dq-sum::-webkit-details-marker{ display:none; }
.dq-sum-name{ display:inline-flex; align-items:center; gap:8px; font-weight:700; color:var(--navy-dark); font-size:14.5px; flex:1; min-width:0; }
.dq-sum-name svg{ width:17px; height:17px; color:var(--navy-light); flex:0 0 auto; }
.dq-sum-meta{ font-size:12.5px; color:var(--muted); font-weight:600; white-space:nowrap; }
.dq-sum-meta b{ color:#c0492f; font-family:'Manrope',sans-serif; font-weight:800; }
.dq-chev{ width:18px; height:18px; color:var(--muted); transition:transform .25s; flex:0 0 auto; }
details[open] .dq-chev{ transform:rotate(180deg); }
.dq-body{ display:flex; flex-direction:column; gap:7px; padding:2px 12px 14px; }
.dq-org{ display:flex; align-items:center; gap:12px; padding:10px 14px; border-radius:13px; text-decoration:none;
  background:rgba(255,255,255,.62); border:1px solid var(--glass-border); transition:transform .18s, box-shadow .18s; }
.dq-org:hover{ transform:translateX(3px); box-shadow:var(--shadow-sm); }
.dq-org-name{ flex:1; min-width:0; font-weight:600; font-size:13.5px; color:var(--navy-dark); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dq-tags{ display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.dq-tag{ font-size:11px; font-weight:700; padding:3px 9px; border-radius:999px; white-space:nowrap; }
.dq-tag.k-fio{ background:rgba(192,73,47,.12); color:#c0492f; }
.dq-tag.k-tel{ background:rgba(201,162,39,.18); color:#a8821a; }
.dq-tag.k-doc{ background:rgba(47,84,168,.12); color:var(--navy-light); }
.dq-go{ color:var(--muted); font-size:21px; font-weight:700; flex:0 0 auto; line-height:1; }
.dq-done{ display:flex; align-items:center; gap:16px; }
.dq-done-ic{ width:52px; height:52px; flex:0 0 auto; border-radius:14px; display:grid; place-items:center; color:var(--green);
  background:linear-gradient(145deg, rgba(70,178,131,.16), rgba(21,115,71,.1)); }
.dq-done-ic svg{ width:28px; height:28px; }
.dq-done b{ display:block; font-size:15px; color:var(--navy-dark); margin-bottom:2px; }
.dq-done span{ font-size:12.5px; color:var(--muted); }
body.dark .dq-ring::before{ background:#1a2b4d; box-shadow:0 1px 4px rgba(0,0,0,.3) inset; }
body.dark .dq-ring-num{ color:#dbe6ff; }
body.dark .dq-pill{ background:rgba(120,145,195,.14); }
body.dark .dq-pill b{ color:#cfe0ff; }
body.dark .dq-cat{ background:linear-gradient(150deg, rgba(40,58,100,.6), rgba(28,42,76,.4)); border-color:rgba(120,145,195,.3); }
body.dark .dq-sum-name{ color:#dbe6ff; }
body.dark .dq-org{ background:rgba(40,56,92,.5); border-color:rgba(120,145,195,.3); }
body.dark .dq-org-name{ color:#dbe6ff; }
body.dark .dq-done b{ color:#dbe6ff; }
@media (max-width:600px){
  .dq-org{ flex-wrap:wrap; gap:6px 10px; }
  .dq-org-name{ flex:1 1 100%; white-space:normal; }
  .dq-tags{ justify-content:flex-start; }
  .dq-go{ display:none; }
  .dq-head{ gap:12px; }
}

/* ===================== (3) Ma'lumot tekshiruvi ===================== */
.dv-list{ display:flex; flex-direction:column; gap:8px; margin-top:4px; }
.dv-row{ display:grid; grid-template-columns: minmax(160px,1.6fr) minmax(110px,140px) minmax(150px,1fr) auto auto; align-items:center; gap:10px;
  padding:9px 12px; border-radius:13px; background:rgba(255,255,255,.6); border:1px solid var(--glass-border); }
.dv-ctx{ font-size:13px; font-weight:600; color:var(--navy-dark); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dv-cur{ font-size:12.5px; font-weight:700; color:#c0492f; font-family:'Manrope',sans-serif; text-decoration:line-through; opacity:.8; }
.dv-in{ font:inherit; font-size:13.5px; padding:7px 11px; border-radius:10px; border:1px solid var(--glass-border); background:#fff; color:var(--navy-dark); width:100%; }
.dv-in:focus{ outline:none; border-color:var(--navy-light); box-shadow:0 0 0 3px rgba(47,84,168,.14); }
.dv-sug{ min-width:0; }
.dv-sug .dv-apply{ font:inherit; font-size:12px; font-weight:700; padding:5px 10px; border-radius:9px; cursor:pointer; white-space:nowrap;
  border:1px dashed var(--green); background:rgba(70,178,131,.1); color:var(--green); }
.dv-sug .dv-apply:hover{ background:rgba(70,178,131,.2); }
.dv-flag{ font-size:11.5px; font-weight:700; color:#a8821a; }
.dv-ok{ color:var(--green); font-weight:800; }
.dv-save{ font:inherit; font-size:12.5px; font-weight:700; padding:7px 14px; border-radius:10px; cursor:pointer; white-space:nowrap;
  border:1px solid var(--navy-light); background:var(--navy-light); color:#fff; transition:transform .18s, background .18s; }
.dv-save:hover{ transform:translateY(-2px); background:var(--navy); }
.dv-save:disabled{ opacity:.7; cursor:default; transform:none; }
.dv-row.dv-done{ background:rgba(70,178,131,.1); border-color:rgba(70,178,131,.4); }
.dv-row.dv-done .dv-cur{ display:none; }
.dv-row.dv-done .dv-save{ background:var(--green); border-color:var(--green); }
body.dark .dv-row{ background:rgba(40,56,92,.5); border-color:rgba(120,145,195,.3); }
body.dark .dv-ctx{ color:#dbe6ff; }
body.dark .dv-in{ background:rgba(20,32,60,.7); color:#dbe6ff; border-color:rgba(120,145,195,.35); }
@media (max-width:700px){
  .dv-row{ grid-template-columns:1fr 1fr; }
  .dv-ctx{ grid-column:1 / -1; white-space:normal; }
  .dv-in{ grid-column:1 / -1; }
  .dv-sug{ grid-column:1 / -1; }
}

/* ===================== (5) Tug'ilgan kun AI tabrigi ===================== */
.bd-greet{ display:inline-flex; align-items:center; gap:7px; align-self:flex-start; margin-top:4px; padding:8px 14px; border-radius:11px; cursor:pointer;
  font:inherit; font-weight:600; font-size:.82rem; color:#fff; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.32);
  backdrop-filter:blur(4px); transition:transform .2s, background .2s; }
.bd-greet svg{ width:15px; height:15px; }
.bd-greet:hover{ transform:translateY(-2px); background:rgba(255,255,255,.28); }
.bd-people.multi .bd-greet{ margin-top:8px; }
.greet-box{ max-width:440px; text-align:left; }
.greet-eyebrow{ font-size:11px; font-weight:800; letter-spacing:.6px; text-transform:uppercase; color:var(--gold); margin:-4px 0 10px; }
.greet-box h5{ margin:0 0 2px; font-size:17px; color:var(--navy-dark); }
.greet-body{ min-height:84px; padding:14px 16px; border-radius:14px; background:rgba(140,160,200,.1); border:1px solid var(--glass-border);
  font-size:14.5px; line-height:1.6; color:var(--navy-dark); white-space:pre-wrap; }
.greet-err{ color:#c0492f; font-weight:600; }
.greet-load{ display:flex; gap:6px; justify-content:center; align-items:center; padding:18px 0; }
.greet-load i{ width:9px; height:9px; border-radius:50%; background:var(--navy-light); animation:greetBounce 1s infinite ease-in-out both; }
.greet-load i:nth-child(2){ animation-delay:.15s; } .greet-load i:nth-child(3){ animation-delay:.3s; }
@keyframes greetBounce{ 0%,80%,100%{ transform:scale(.5); opacity:.4; } 40%{ transform:scale(1); opacity:1; } }
.greet-acts{ display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; }
.greet-btn{ font:inherit; font-size:13.5px; font-weight:700; padding:9px 16px; border-radius:11px; cursor:pointer; border:1px solid var(--glass-border);
  background:rgba(255,255,255,.7); color:var(--navy); transition:transform .18s, background .18s; }
.greet-btn:hover{ transform:translateY(-2px); }
.greet-btn.primary{ background:var(--navy-light); color:#fff; border-color:var(--navy-light); }
.greet-btn.primary:disabled{ opacity:.55; cursor:default; transform:none; }
body.dark .greet-box h5{ color:#dbe6ff; }
body.dark .greet-body{ background:rgba(20,32,60,.6); color:#e3ecff; border-color:rgba(120,145,195,.3); }
body.dark .greet-btn{ background:rgba(42,60,102,.6); color:#dbe6ff; border-color:rgba(120,145,195,.35); }

/* ===================== (6) Tahrirlar jurnali ===================== */
.al-filters{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:14px; }
.al-sel{ font:inherit; font-size:13px; font-weight:600; padding:8px 12px; border-radius:11px; border:1px solid var(--glass-border); background:rgba(255,255,255,.7); color:var(--navy-dark); cursor:pointer; }
.al-count{ font-size:12.5px; font-weight:700; color:var(--muted); margin-left:auto; }
.al-list{ display:flex; flex-direction:column; gap:7px; }
.al-row{ display:grid; grid-template-columns: 130px 110px minmax(120px,1.3fr) minmax(180px,2fr); align-items:center; gap:12px;
  padding:10px 14px; border-radius:12px; background:rgba(255,255,255,.55); border:1px solid var(--glass-border); position:relative; }
.al-row::before{ content:''; position:absolute; left:0; top:8px; bottom:8px; width:3px; border-radius:3px; background:var(--navy-light); }
.al-row.add::before{ background:var(--green); } .al-row.del::before{ background:#c0492f; }
.al-when{ font-size:12px; font-weight:700; color:var(--muted); font-variant-numeric:tabular-nums; }
.al-who{ font-size:12.5px; font-weight:800; color:var(--navy); font-family:'Manrope',sans-serif; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.al-where{ font-size:12.5px; font-weight:600; color:var(--navy-dark); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.al-what{ font-size:13px; color:var(--text); line-height:1.45; }
.al-what b{ color:var(--navy-dark); }
.al-what del{ color:#c0492f; text-decoration:line-through; opacity:.85; }
.al-what ins{ color:var(--green); text-decoration:none; font-weight:700; }
.al-arr{ color:var(--muted); margin:0 2px; }
.al-empty{ text-align:center; color:var(--muted); padding:26px 10px; font-size:13.5px; }
body.dark .al-sel{ background:rgba(42,60,102,.55); color:#dbe6ff; border-color:rgba(120,145,195,.35); }
body.dark .al-row{ background:rgba(40,56,92,.45); border-color:rgba(120,145,195,.28); }
body.dark .al-who{ color:#cfe0ff; } body.dark .al-where, body.dark .al-what b{ color:#dbe6ff; }
body.dark .al-what del{ color:#f0a08c; } body.dark .al-what ins{ color:#6fd0a3; }
@media (max-width:740px){
  .al-row{ grid-template-columns:1fr 1fr; gap:4px 10px; }
  .al-what{ grid-column:1 / -1; }
  .al-where{ grid-column:1 / -1; }
}

/* ---------- Saqlash bildirishnomasi (toast) ---------- */
.app-toast{ position:fixed; left:50%; bottom:30px; transform:translateX(-50%) translateY(16px); background:var(--navy-dark,#133157); color:#fff; padding:10px 24px; border-radius:30px; font-size:14px; font-weight:700; font-family:'Manrope',sans-serif; box-shadow:0 10px 30px rgba(10,30,60,.32); opacity:0; visibility:hidden; transition:opacity .25s, transform .25s, visibility .25s; z-index:96; pointer-events:none; }
.app-toast.show{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
body.dark .app-toast{ background:#e8eefc; color:#10233f; box-shadow:0 10px 30px rgba(0,0,0,.5); }
