/* ═══════════════════════════════════════════════════════════
   v3.43.0 — Premium Enterprise University Dashboard
   Dark Navy + Glassmorphism + Neon Gradient + Soft Shadows
   ═══════════════════════════════════════════════════════════ */

.tiu-premium-dash {
  /* Color palette — v3.44.12: lightened by ~15% for better readability */
  --bg-deep: #131a2e;             /* was #0a0f1e — too dark */
  --bg-panel: #1a2236;            /* was #131929 */
  --bg-card: rgba(38, 48, 72, 0.65);   /* was rgba(28, 36, 56, 0.65) */
  --bg-card-solid: #252e44;       /* was #1c2438 */
  --border-glass: rgba(148, 163, 184, 0.18);  /* was 0.12 — more visible */
  --border-soft: rgba(148, 163, 184, 0.12);   /* was 0.08 */
  --text-bright: #f1f5f9;
  --text-mid: #cbd5e1;
  --text-dim: #94a3b8;
  --text-faint: #64748b;
  --accent-blue: #60a5fa;
  --accent-purple: #a78bfa;
  --accent-pink: #f472b6;
  --accent-orange: #fb923c;
  --accent-green: #34d399;
  --accent-cyan: #22d3ee;
  --accent-red: #f87171;
  --accent-yellow: #fbbf24;

  /* Gradients */
  --grad-blue: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --grad-purple: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
  --grad-orange: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  --grad-green: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --grad-pink: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);

  /* Effects */
  --glow-blue: 0 0 32px rgba(96, 165, 250, 0.35);
  --glow-purple: 0 0 32px rgba(167, 139, 250, 0.35);
  --glow-orange: 0 0 32px rgba(251, 146, 60, 0.35);
  --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 16px 56px rgba(0, 0, 0, 0.55);

  background: radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(217, 70, 239, 0.10) 0%, transparent 50%),
              var(--bg-deep);
  color: var(--text-bright);
  min-height: 100vh;
  padding: 24px;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ─── Header ─── */
.tiu-premium-dash .pd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(28, 36, 56, 0.6), rgba(28, 36, 56, 0.4));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
}

.tiu-premium-dash .pd-title-wrap { display: flex; flex-direction: column; gap: 4px; }
.tiu-premium-dash .pd-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tiu-premium-dash .pd-subtitle { color: var(--text-dim); font-size: 13px; }
.tiu-premium-dash .pd-header-actions { display: flex; align-items: center; gap: 10px; }
.tiu-premium-dash .pd-icon-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: rgba(28, 36, 56, 0.5);
  color: var(--text-mid);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: all 0.25s ease;
}
.tiu-premium-dash .pd-icon-btn:hover {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(167, 139, 250, 0.2));
  border-color: rgba(96, 165, 250, 0.4);
  color: var(--text-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.25);
}
.tiu-premium-dash .pd-date-chip {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(28, 36, 56, 0.5);
  border: 1px solid var(--border-glass);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ─── Stat cards (top row) ─── */
.tiu-premium-dash .pd-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
@media (max-width: 1024px) { .tiu-premium-dash .pd-stat-row { grid-template-columns: 1fr; } }

.tiu-premium-dash .pd-stat-card {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  background: var(--grad-blue);
  color: white;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}
.tiu-premium-dash .pd-stat-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 50%);
  pointer-events: none;
}
.tiu-premium-dash .pd-stat-card::after {
  content: ''; position: absolute; bottom: -50%; right: -20%;
  width: 180px; height: 180px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.tiu-premium-dash .pd-stat-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-card-hover), var(--glow-blue);
}
.tiu-premium-dash .pd-stat-card.purple { background: var(--grad-purple); }
.tiu-premium-dash .pd-stat-card.purple:hover { box-shadow: var(--shadow-card-hover), var(--glow-purple); }
.tiu-premium-dash .pd-stat-card.orange { background: var(--grad-orange); }
.tiu-premium-dash .pd-stat-card.orange:hover { box-shadow: var(--shadow-card-hover), var(--glow-orange); }

.tiu-premium-dash .pd-stat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.tiu-premium-dash .pd-stat-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.92;
}
.tiu-premium-dash .pd-stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.tiu-premium-dash .pd-stat-value {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.tiu-premium-dash .pd-stat-value.big { font-size: 56px; }
.tiu-premium-dash .pd-stat-breakdown {
  display: flex; gap: 16px;
  font-size: 13px;
  position: relative; z-index: 1;
  opacity: 0.95;
}
.tiu-premium-dash .pd-stat-mini {
  display: flex; align-items: center; gap: 6px;
}
.tiu-premium-dash .pd-stat-mini-icon { font-size: 14px; opacity: 0.85; }
.tiu-premium-dash .pd-stat-mini-value { font-weight: 700; }

/* ─── Secondary stat row (smaller cards) ─── */
.tiu-premium-dash .pd-mini-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.tiu-premium-dash .pd-mini-card {
  padding: 18px;
  border-radius: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}
.tiu-premium-dash .pd-mini-card:hover {
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateY(-2px);
}
.tiu-premium-dash .pd-mini-card .pd-mini-label {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 8px;
}
.tiu-premium-dash .pd-mini-card .pd-mini-value {
  font-size: 26px; font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}
.tiu-premium-dash .pd-mini-card .pd-mini-accent {
  display: inline-block; width: 32px; height: 3px;
  border-radius: 3px;
  margin-top: 8px;
}

/* ─── Chart panel ─── */
.tiu-premium-dash .pd-chart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
@media (max-width: 1100px) { .tiu-premium-dash .pd-chart-grid { grid-template-columns: 1fr; } }

.tiu-premium-dash .pd-chart-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
@media (max-width: 900px) { .tiu-premium-dash .pd-chart-grid-2col { grid-template-columns: 1fr; } }

.tiu-premium-dash .pd-chart-grid-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
@media (max-width: 1100px) { .tiu-premium-dash .pd-chart-grid-3col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .tiu-premium-dash .pd-chart-grid-3col { grid-template-columns: 1fr; } }

.tiu-premium-dash .pd-panel {
  padding: 22px;
  border-radius: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
}
.tiu-premium-dash .pd-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.tiu-premium-dash .pd-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
}
.tiu-premium-dash .pd-panel-subtitle {
  font-size: 12px; color: var(--text-dim);
  margin-top: 2px;
}
.tiu-premium-dash .pd-chart-canvas-wrap {
  position: relative;
  width: 100%;
}
.tiu-premium-dash .pd-chart-canvas-wrap.h-260 { height: 260px; }
.tiu-premium-dash .pd-chart-canvas-wrap.h-300 { height: 300px; }
.tiu-premium-dash .pd-chart-canvas-wrap.h-340 { height: 340px; }
.tiu-premium-dash .pd-chart-canvas-wrap.h-380 { height: 380px; }

/* ─── Gender bar (horizontal percentage) ─── */
.tiu-premium-dash .pd-gender-row {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 14px;
}
.tiu-premium-dash .pd-gender-label {
  font-size: 13px; color: var(--text-mid); width: 60px;
  font-weight: 600;
}
.tiu-premium-dash .pd-gender-track {
  flex: 1; height: 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  overflow: hidden;
  position: relative;
}
.tiu-premium-dash .pd-gender-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--grad-blue);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.5);
}
.tiu-premium-dash .pd-gender-fill.female {
  background: var(--grad-pink);
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.5);
}
.tiu-premium-dash .pd-gender-pct {
  font-weight: 700; color: var(--text-bright); width: 56px;
  text-align: right;
}

/* ─── Top regions list ─── */
.tiu-premium-dash .pd-region-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border-soft);
}
.tiu-premium-dash .pd-region-item:last-child { border-bottom: none; }
.tiu-premium-dash .pd-region-rank {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
  flex-shrink: 0;
  background: rgba(96, 165, 250, 0.15);
  color: var(--accent-blue);
}
.tiu-premium-dash .pd-region-rank.first { background: var(--grad-orange); color: white; box-shadow: 0 0 16px rgba(251, 146, 60, 0.4); }
.tiu-premium-dash .pd-region-rank.second { background: rgba(167, 139, 250, 0.25); color: #c4b5fd; }
.tiu-premium-dash .pd-region-rank.third { background: rgba(244, 114, 182, 0.25); color: #f9a8d4; }
.tiu-premium-dash .pd-region-info { flex: 1; min-width: 0; }
.tiu-premium-dash .pd-region-name {
  font-size: 13px; font-weight: 600; color: var(--text-bright);
  margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tiu-premium-dash .pd-region-progress-track {
  height: 6px; border-radius: 3px;
  background: rgba(15, 23, 42, 0.6);
  overflow: hidden;
}
.tiu-premium-dash .pd-region-progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.tiu-premium-dash .pd-region-count {
  font-size: 14px; font-weight: 700; color: var(--text-bright);
  min-width: 50px; text-align: right;
}

/* ─── Animations ─── */
.tiu-premium-dash .pd-fade-in { opacity: 0; animation: pd-fade-up 0.6s ease forwards; }
.tiu-premium-dash .pd-fade-in.d1 { animation-delay: 0.05s; }
.tiu-premium-dash .pd-fade-in.d2 { animation-delay: 0.1s; }
.tiu-premium-dash .pd-fade-in.d3 { animation-delay: 0.15s; }
.tiu-premium-dash .pd-fade-in.d4 { animation-delay: 0.2s; }
.tiu-premium-dash .pd-fade-in.d5 { animation-delay: 0.25s; }
.tiu-premium-dash .pd-fade-in.d6 { animation-delay: 0.3s; }
@keyframes pd-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Pulse for active TIU Dashboard sidebar item ─── */
.nav-item.active-dashboard-glow {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(167, 139, 250, 0.18)) !important;
  border-left: 3px solid var(--accent-blue) !important;
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.25) !important;
  position: relative;
}
.nav-item.active-dashboard-glow::after {
  content: ''; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-blue), 0 0 24px var(--accent-blue);
  animation: pd-pulse 1.5s ease-in-out infinite;
}
@keyframes pd-pulse {
  0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(0.9); }
  50%      { opacity: 1;   transform: translateY(-50%) scale(1.1); }
}

/* ─── Loading skeleton ─── */
.tiu-premium-dash .pd-skeleton {
  background: linear-gradient(90deg, rgba(28, 36, 56, 0.4), rgba(48, 60, 88, 0.6), rgba(28, 36, 56, 0.4));
  background-size: 200% 100%;
  animation: pd-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes pd-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Mobile tweaks ─── */
@media (max-width: 768px) {
  .tiu-premium-dash { padding: 14px; }
  .tiu-premium-dash .pd-header { padding: 14px; flex-wrap: wrap; gap: 12px; }
  .tiu-premium-dash .pd-title { font-size: 20px; }
  .tiu-premium-dash .pd-stat-value { font-size: 32px; }
  .tiu-premium-dash .pd-stat-value.big { font-size: 40px; }
  .tiu-premium-dash .pd-panel { padding: 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   v3.44.0: Mega expansion styles
   ═══════════════════════════════════════════════════════════════ */

.tiu-premium-dash .pd-mega-zone {
  margin-top: 30px;
}

.tiu-premium-dash .pd-mega-section {
  margin-top: 38px;
}

.tiu-premium-dash .pd-mega-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-bright);
  margin: 0 0 18px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.12));
  border-left: 4px solid var(--accent-blue);
  border-radius: 10px;
  letter-spacing: 0.2px;
}

/* Stripe-style data tables for matrices */
.tiu-premium-dash .pd-spec-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.12);
}
.tiu-premium-dash .pd-spec-matrix {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 13px;
}
.tiu-premium-dash .pd-spec-matrix thead th {
  background: rgba(99, 102, 241, 0.18);
  color: var(--text-bright);
  font-weight: 700;
  padding: 12px 10px;
  text-align: center;
  border-bottom: 2px solid rgba(99, 102, 241, 0.3);
  position: sticky;
  top: 0;
  white-space: nowrap;
}
.tiu-premium-dash .pd-spec-matrix thead th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: rgba(99, 102, 241, 0.22);
}
.tiu-premium-dash .pd-spec-matrix tbody td {
  padding: 10px;
  text-align: center;
  color: var(--text-bright);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}
.tiu-premium-dash .pd-spec-matrix tbody tr:hover {
  background: rgba(99, 102, 241, 0.06);
}
.tiu-premium-dash .pd-spec-matrix tbody tr:hover td.pd-spec-name {
  background: rgba(99, 102, 241, 0.12);
}
.tiu-premium-dash .pd-spec-matrix td.pd-spec-name {
  text-align: left;
  color: var(--text-bright);
  font-weight: 600;
  max-width: 260px;
  position: sticky;
  left: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1;
}
.tiu-premium-dash .pd-spec-matrix td.pd-spec-code,
.tiu-premium-dash .pd-spec-matrix .pd-spec-code {
  color: var(--text-dim);
  font-family: 'Courier New', monospace;
  font-size: 11px;
}
.tiu-premium-dash .pd-spec-matrix td.pd-total {
  background: rgba(99, 102, 241, 0.12);
  font-weight: 700;
}
.tiu-premium-dash .pd-pct-small {
  color: var(--text-dim);
  font-size: 11px;
}

/* Horizontal bar list (for ranked top/bottom and per-form lists) */
.tiu-premium-dash .pd-bar-list {
  padding: 8px 4px;
}
.tiu-premium-dash .pd-bar-row {
  display: grid;
  grid-template-columns: 28px 1fr 100px 90px;
  gap: 10px;
  align-items: center;
  padding: 8px 6px;
  border-radius: 8px;
  transition: background 0.2s;
  min-height: 40px;
}
.tiu-premium-dash .pd-bar-row:hover {
  background: rgba(99, 102, 241, 0.08);
}
.tiu-premium-dash .pd-bar-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.18);
  color: var(--text-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.tiu-premium-dash .pd-bar-row:nth-child(1) .pd-bar-rank { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.tiu-premium-dash .pd-bar-row:nth-child(2) .pd-bar-rank { background: linear-gradient(135deg, #a3a3a3, #737373); color: #fff; }
.tiu-premium-dash .pd-bar-row:nth-child(3) .pd-bar-rank { background: linear-gradient(135deg, #b45309, #a16207); color: #fff; }
.tiu-premium-dash .pd-bar-name {
  font-size: 13px;
  color: var(--text-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tiu-premium-dash .pd-bar-track {
  height: 10px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.tiu-premium-dash .pd-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.tiu-premium-dash .pd-bar-val {
  font-size: 13px;
  color: var(--text-bright);
  text-align: right;
  white-space: nowrap;
}

/* Rank list (existing pd-rank-list — used by AllRegions, BottomSpecs) — alias to pd-bar-list */
.tiu-premium-dash .pd-rank-list {
  padding: 8px 4px;
}
.tiu-premium-dash .pd-rank-list > .pd-bar-row {
  /* inherits */
}

/* Mini-gender container (used in gender-by-eduform + teacher gender) */
.tiu-premium-dash .pd-mini-gender {
  padding: 18px 8px;
}

/* UZB map — v3.44.10 light neon styling */
.tiu-premium-dash .pd-uzb-region {
  cursor: pointer;
  transition: filter 0.25s ease, stroke-width 0.25s ease, fill-opacity 0.25s ease, transform 0.25s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.tiu-premium-dash .pd-uzb-region:hover {
  fill-opacity: 1 !important;
  filter: brightness(1.2) drop-shadow(0 0 12px currentColor);
  stroke: #ffffff !important;
  stroke-width: 2.5;
  transform: translateY(-1px) scale(1.01);
}

/* Empty-state */
.tiu-premium-dash .pd-empty {
  padding: 30px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* Sidebar pulse glow already exists. Extend to ensure pdMega sections animate in */
@media (max-width: 768px) {
  .tiu-premium-dash .pd-mega-title { font-size: 16px; padding: 12px 14px; }
  .tiu-premium-dash .pd-spec-matrix { font-size: 11px; min-width: 600px; }
  .tiu-premium-dash .pd-spec-matrix thead th,
  .tiu-premium-dash .pd-spec-matrix tbody td { padding: 8px 6px; }
  .tiu-premium-dash .pd-bar-row { grid-template-columns: 24px 1fr 70px 70px; gap: 6px; }
}

/* ═══════════════════════════════════════════════════════════
   v3.44.9 — Fullscreen mode (TIU Dashboard in new tab)
   ═══════════════════════════════════════════════════════════ */

/* When body has .fullscreen-mode, hide sidebar/header/everything else */
body.fullscreen-mode .sidebar,
body.fullscreen-mode .topbar,
body.fullscreen-mode #aiFab,
body.fullscreen-mode #messengerFab,
body.fullscreen-mode .ai-chat-window,
body.fullscreen-mode .messenger-window {
  display: none !important;
}

body.fullscreen-mode .main-content {
  margin-left: 0 !important;
  width: 100% !important;
  padding: 0 !important;
}

body.fullscreen-mode .content-area {
  padding: 0 !important;
  max-width: none !important;
}

/* "Back" pill button shown only in fullscreen mode */
.pd-fullscreen-back {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
  background: var(--bg-card-solid);
  color: var(--text-bright);
  border: 1px solid var(--border-glass);
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.2s;
}
.pd-fullscreen-back:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}

/* PDF export button (top right when fullscreen) */
.pd-pdf-export-btn {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transition: all 0.2s;
}
.pd-pdf-export-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

/* PDF export modal — v3.44.12: high-contrast light theme for readability.
   Previous version used the same dark colors as the dashboard, which made
   labels disappear against the panel background. */
.pd-export-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pd-export-modal {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
  color: #0f172a;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.pd-export-modal h2 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.pd-export-modal .pd-export-sub {
  color: #475569;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.pd-export-section-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.pd-export-section-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  transition: all 0.15s;
  user-select: none;
}
.pd-export-section-list label:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #0f172a;
}
.pd-export-section-list label:has(input:checked) {
  background: #eff6ff;
  border-color: #3b82f6;
}
.pd-export-section-list input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #3b82f6;
  cursor: pointer;
  flex-shrink: 0;
}

.pd-export-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.pd-export-actions button {
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.pd-export-actions .btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.pd-export-actions .btn-secondary:hover { background: #e2e8f0; color: #0f172a; }

.pd-export-actions .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.pd-export-actions .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5); }
.pd-export-actions .btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.pd-export-quick-toggle {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  margin-bottom: 10px;
}
.pd-export-quick-toggle button {
  background: #f1f5f9;
  color: #3b82f6;
  border: 1px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
}
.pd-export-quick-toggle button:hover { background: #eff6ff; border-color: #3b82f6; }

.pd-export-progress {
  margin-top: 14px;
  padding: 12px 14px;
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  font-size: 13.5px;
  color: #1e40af;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   v3.44.10 — Improved map (lighter colors, better tooltip)
   ═══════════════════════════════════════════════════════════ */

.tiu-premium-dash .pd-map-tip-badge {
  margin: 18px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-radius: 32px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
  border: 2px solid rgba(56, 189, 248, 0.4);
  transition: all 0.25s ease;
  /* Center-align by wrapping in flex container above */
}

.tiu-premium-dash .pd-map-tip-badge.active {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
  border-color: #38bdf8;
  box-shadow: 0 6px 28px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.tiu-premium-dash #pdMegaUzbMap {
  text-align: center;  /* centers the tooltip badge */
}

/* Legend bar */
.tiu-premium-dash .pd-map-legend {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.tiu-premium-dash .pd-map-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-mid);
  font-weight: 500;
}

.tiu-premium-dash .pd-map-legend-item span {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* PDF export mode — when exporting, make the map paths fully opaque
   so html2canvas doesn't lose colors when rendering to PNG. */
.tiu-premium-dash.pd-exporting .pd-uzb-region {
  fill-opacity: 1 !important;
}
.tiu-premium-dash.pd-exporting .pd-map-tip-badge {
  display: none !important;
}
