:root {
  --tblr-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body {
  background: #f6f8fb;
  font-family: var(--tblr-font-sans-serif);
  transition: background-color 0.4s ease;
}
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .card {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
  }
  .apexcharts-canvas {
    page-break-inside: avoid !important;
  }
}
h1, h2, h3, h4, h5, h6, .navbar-brand, .card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.019em;
}

/* Hide standard navbar & footer on landing page */
body:has(#landing:not(.hidden)) .navbar {
  display: none !important;
}
body:has(#landing:not(.hidden)) .footer {
  display: none !important;
}
body:has(#landing:not(.hidden)) {
  background-color: #fafbfe !important;
}

/* Immersive Light SaaS Landing Container */
.landing-bg {
  position: relative;
  min-height: 100vh;
  background: #fafbfe;
  color: #374151;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--tblr-font-sans-serif);
  justify-content: space-between;
}

.landing-mesh {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  background: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(20, 184, 166, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(79, 70, 229, 0.04) 0%, transparent 35%);
  filter: blur(80px);
  opacity: 0.9;
  pointer-events: none;
}

.landing-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  color: white;
}
.landing-logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

/* Sub-badge sparkle */
.sparkle-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulseSparkle 2s infinite alternate;
  vertical-align: middle;
  margin-right: 4px;
}
@keyframes pulseSparkle {
  0% { opacity: 0.5; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.25); }
}

/* Gradient Typography */
.landing-title {
  font-size: clamp(2rem, 1.2rem + 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.landing-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4b5563;
  max-width: 540px;
  text-wrap: pretty;
}

/* Visual Section Dividers & Headers */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  text-align: center;
  max-width: 500px;
  margin: 0.5rem auto 2.5rem;
}

/* Premium Features / Services Cards */
.landing-card {
  background: white;
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}
.landing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.18);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.06), 0 2px 8px rgba(99, 102, 241, 0.02);
}
.card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.bg-emerald-lt-light { background: rgba(16, 185, 129, 0.08); color: #059669; }
.bg-indigo-lt-light { background: rgba(99, 102, 241, 0.08); color: #4f46e5; }
.bg-amber-lt-light  { background: rgba(245, 158, 11, 0.08); color: #d97706; }

/* Redesigned Feature Showcase Styles */
.features-main-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.features-main-subtitle {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.5;
}
.feature-showcase-row {
  margin-bottom: 2rem;
  transition: all 0.4s ease;
}
.feature-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
}
.text-emerald {
  color: #059669;
}
.text-amber {
  color: #d97706;
}
.feature-title-lg {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  line-height: 1.25;
}
.feature-desc-lg {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #64748b;
  font-weight: 400;
}
.feature-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.feature-showcase-row:hover .feature-icon-lg {
  transform: scale(1.08) rotate(3deg);
  filter: brightness(0.95);
}

/* Feature Mockup Card Wrapper */
.feature-visual-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0,0,0,0.01);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-visual-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.08), 0 2px 10px rgba(0,0,0,0.01);
}

/* SVGs and Mockup animations */
.visual-svg {
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.03));
}

/* Local Privacy Anim */
@keyframes dash {
  to {
    stroke-dashoffset: -20;
  }
}
.pulse-dash {
  animation: dash 12s linear infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.2; }
  50% { transform: scale(1.1); opacity: 0.6; }
  100% { transform: scale(0.95); opacity: 0.2; }
}
.pulse-ring {
  transform-origin: center;
  animation: pulseRing 3s ease-in-out infinite;
}
.pulse-ring-inner {
  transform-origin: center;
  animation: pulseRing 3s ease-in-out infinite;
  animation-delay: 1.5s;
}
@keyframes floatFile {
  0% { transform: translate(0, 0); }
  50% { transform: translate(0, -8px); }
  100% { transform: translate(0, 0); }
}
.float-xlsx-file {
  animation: floatFile 4s ease-in-out infinite;
}

/* UZ Map Highlight Anim */
.map-highlight-region {
  transition: fill 0.3s ease;
}
.feature-visual-card:hover .map-highlight-region {
  fill: rgba(99, 102, 241, 0.32) !important;
}
@keyframes floatTooltip {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}
.map-tooltip-pop {
  animation: floatTooltip 3s ease-in-out infinite;
}
.map-pin {
  transition: transform 0.3s ease;
}
.feature-visual-card:hover .map-pin {
  transform: scale(1.15);
}

/* Drill-Down Node Anim */
.drill-node {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.feature-visual-card:hover .drill-node.level-2.active {
  transform: scale(1.05) translate(3px, 0);
}
.feature-visual-card:hover .drill-node.level-3 {
  transform: scale(1.03) translate(5px, 0);
}
.drill-line {
  stroke-dasharray: 4 2;
  animation: dash 15s linear infinite;
}

/* Browser Mockup Image Frame */
.browser-mockup {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  transition: transform 0.5s ease;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: floatBrowser 6s infinite ease-in-out;
}
.browser-header {
  background: #f1f5f9;
  height: 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-red   { background-color: #ef4444; }
.dot-yellow{ background-color: #f59f00; }
.dot-green { background-color: #10b981; }

.browser-address {
  background: white;
  height: 20px;
  flex-grow: 1;
  margin: 0 40px;
  border-radius: 4px;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.browser-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* Interactive Mock Dashboard */
.mock-dashboard {
  background: #fafbfe;
  font-family: var(--tblr-font-sans-serif);
  padding: 1rem;
  border-radius: 0 0 12px 12px;
  user-select: none;
}
.mock-section-card {
  background: white;
  border: 1px solid rgba(99, 102, 241, 0.06);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
  transition: all 0.3s ease;
  height: 100%;
}
.mock-section-card:hover {
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.03);
}
.mock-section-title {
  font-size: 0.55rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
  display: block;
}
.mock-kpi-card {
  background: white;
  border: 1px solid rgba(99, 102, 241, 0.06);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
  transition: all 0.3s ease;
}
.mock-kpi-card:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.12);
}
.mock-kpi-label {
  font-size: 0.45rem;
  color: #94a3b8;
  display: block;
  line-height: 1.2;
}
.mock-kpi-val {
  font-size: 0.7rem;
  font-weight: 700;
  color: #1e293b;
  display: block;
  margin-top: 0.1rem;
  transition: color 0.3s ease;
}
.mock-bar-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.mock-bar-shipped {
  background: linear-gradient(180deg, #818cf8 0%, #4f46e5 100%);
  border-radius: 2px 2px 0 0;
  width: 100%;
  transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.12);
}
.mock-map-path {
  stroke: #ffffff;
  stroke-width: 0.6;
  cursor: pointer;
  transition: fill 0.3s ease, stroke 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease;
}
.mock-map-path:hover {
  stroke: #4f46e5;
  stroke-width: 1.4;
  filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.22));
}

@keyframes floatBrowser {
  0%, 100% { transform: translate3d(0, 0px, 0) rotate(0.5deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(-0.5deg); }
}

/* Light SaaS Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.16);
}
.card-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  top: -40px;
  right: -40px;
  z-index: 1;
  pointer-events: none;
}

/* Premium Dropzone in Light Mode */
.glass-dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  background: rgba(248, 250, 252, 0.5);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.glass-dropzone:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.03);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.05);
}
.glass-dropzone.dragover {
  transform: scale(1.01);
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.03);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.08);
}
.glass-dropzone.disabled {
  pointer-events: none;
  opacity: 0.4;
}

.floating-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease, background 0.3s ease;
}
.glass-dropzone:hover .floating-icon-wrap {
  transform: translateY(-4px);
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}

.spreadsheet-icon {
  transition: transform 0.3s ease;
}
.glass-dropzone:hover .spreadsheet-icon {
  animation: iconWiggle 1s ease-in-out infinite alternate;
}
@keyframes iconWiggle {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}

/* Buttons */
.btn-indigo-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white !important;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.18);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-indigo-gradient:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.28);
  transform: translateY(-1px);
}
.btn-indigo-gradient:active {
  transform: translateY(1px);
}

.btn-outline-glass {
  background: white;
  color: #374151 !important;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.btn-outline-glass:hover {
  background: #f8fafc;
  border-color: rgba(99, 102, 241, 0.3);
  color: #1f2937 !important;
  transform: translateY(-1px);
}
.btn-outline-glass:active {
  transform: translateY(1px);
}

/* Schema Tag Styling */
.schema-container {
  background: rgba(248, 250, 252, 0.8);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.05);
}
.schema-tag {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  background: rgba(99, 102, 241, 0.05);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.1);
  cursor: help;
  position: relative;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}
.schema-tag:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: #4338ca;
}

/* CSS-driven hide dropzone & action row when progress active */
.glass-card:has(.glass-progress-card.active) #dropzone,
.glass-card:has(.glass-progress-card.active) .action-row {
  display: none !important;
}

/* Glass Progress Overhaul */
.glass-progress-card {
  display: none;
  background: white;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.06);
  position: relative;
  z-index: 2;
}
.glass-progress-card.active {
  display: block !important;
  animation: fadeInUp 0.4s ease forwards;
}
.glass-progress-card .progress {
  background: rgba(99, 102, 241, 0.06);
  border-radius: 99px;
  height: 7px;
}
.glass-progress-card .progress-bar {
  background: linear-gradient(90deg, #6366f1 0%, #10b981 100%);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
}

/* Error Banner Overhaul */
.glass-error-banner {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
}

/* Something Special: Gauge Simulator */
.simulator-container {
  background: white;
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.02);
}
.simulator-input {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: #1e293b;
  font-weight: 500;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
}
.simulator-input:focus {
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.simulator-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-excellent { background-color: rgba(16, 185, 129, 0.1); color: #059669; }
.badge-healthy   { background-color: rgba(132, 204, 22, 0.1); color: #4d7c0f; }
.badge-watch     { background-color: rgba(245, 158, 11, 0.1); color: #d97706; }
.badge-problem   { background-color: rgba(249, 115, 22, 0.1); color: #c2410c; }
.badge-critical  { background-color: rgba(239, 68, 68, 0.1); color: #dc2626; }

/* Modern Entry/Exit Transition for Landing Page */
#landing {
  opacity: 1;
  transform: scale(1);
  transition:
    display 0.5s,
    opacity 0.5s ease-in-out,
    transform 0.5s ease-in-out;
  transition-behavior: allow-discrete;
}
#landing.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.98);
}

/* Modern Entry/Exit Transition for Dashboard */
#dashboard {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition:
    display 0.6s,
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-behavior: allow-discrete;
}
@starting-style {
  #dashboard {
    opacity: 0;
    transform: translateY(20px);
  }
}
#dashboard:not(.ready) {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

/* Vector Map (Uzbekistan Choropleth) Styling */
#chart-map {
  position: relative;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.01);
}
#chart-map svg {
  width: 100%;
  height: 100%;
  display: block;
}
.region {
  stroke: #ffffff;
  stroke-width: 1.2;
  transition: fill 0.25s ease, stroke 0.25s ease, stroke-width 0.25s ease;
  cursor: pointer;
}
.region:hover {
  stroke: #0f172a;
  stroke-width: 2.5;
}
.region.no-data {
  fill: #f1f5f9;
}
.region.active {
  stroke: #4f46e5 !important;
  stroke-width: 3.5 !important;
  filter: drop-shadow(0px 2px 4px rgba(79, 70, 229, 0.4));
}
.card-filtered {
  border-color: rgba(79, 70, 229, 0.4) !important;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
}
.region-label {
  font-family: var(--tblr-font-sans-serif);
  font-size: 10px;
  font-weight: 600;
  fill: #1e293b;
  pointer-events: none;
  text-anchor: middle;
  user-select: none;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85), 0 -1px 2px rgba(255, 255, 255, 0.85);
}
.map-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.75rem;
  color: #64748b;
  font-size: 0.95rem;
}
.map-tooltip {
  position: absolute;
  display: none;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -115%);
  transition: opacity 0.15s ease;
}
.map-tooltip.active {
  display: block;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.8rem;
  color: #475569;
}
.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.map-legend .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.card {
  border: 1px solid rgba(32, 107, 196, 0.08);
  box-shadow: 0 4px 16px rgba(32, 107, 196, 0.02);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(32, 107, 196, 0.05);
}
.filter-chip {
  transition: all 0.2s ease;
  font-weight: 500;
  padding: 0.35rem 0.7rem !important;
  border-radius: 6px !important;
}
.filter-chip:hover:not(.active) {
  background: rgba(32, 107, 196, 0.1) !important;
  color: var(--tblr-primary) !important;
}
.table-vcenter tr {
  transition: background-color 0.15s ease;
}

/* Fade Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────
   NOZIM ANALYTICS AUTHENTICATION STYLES
   ───────────────────────────────────────────────────────────── */
#auth-screen {
  opacity: 1;
  transform: scale(1);
  transition:
    display 0.5s,
    opacity 0.5s ease-in-out,
    transform 0.5s ease-in-out;
  transition-behavior: allow-discrete;
  z-index: 100;
}
#auth-screen.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.98);
}
.auth-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  position: relative;
}
.btn-telegram {
  background: #54a9eb;
  color: white !important;
  border: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(84, 169, 235, 0.2);
}
.btn-telegram:hover {
  background: #4196d7;
  box-shadow: 0 6px 16px rgba(84, 169, 235, 0.3);
  transform: translateY(-1px);
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.5rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.auth-divider:not(:empty)::before { margin-right: .75em; }
.auth-divider:not(:empty)::after { margin-left: .75em; }

/* Floating labels */
.form-floating-custom {
  position: relative;
  margin-bottom: 1.25rem;
}
.form-floating-custom .form-control {
  height: 48px;
  padding: 1.25rem 0.75rem 0.25rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.form-floating-custom .form-control:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: white;
}
.form-floating-custom label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.75rem;
  pointer-events: none;
  transform-origin: 0 0;
  transition: all 0.15s ease-in-out;
  color: #64748b;
  font-size: 0.85rem;
}
.form-floating-custom .form-control:focus ~ label,
.form-floating-custom .form-control:not(:placeholder-shown) ~ label {
  transform: scale(0.8) translateY(-0.5rem) translateX(0.15rem);
  color: #4f46e5;
}

/* Telegram Verification Modal Overlay */
.tg-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.tg-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.tg-modal-card {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  padding: 2.2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tg-modal-overlay.active .tg-modal-card {
  transform: scale(1);
}
.tg-modal-logo {
  width: 56px;
  height: 56px;
  background: #54a9eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(84, 169, 235, 0.25);
}

/* Segmented Digits */
.code-input-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 1.5rem 0;
}
.code-digit {
  width: 44px;
  height: 48px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  transition: all 0.15s ease;
  background: #f8fafc;
}
.code-digit:focus {
  outline: none;
  border-color: #54a9eb;
  box-shadow: 0 0 0 3px rgba(84, 169, 235, 0.15);
  background: white;
}

.tg-wait-spinner {
  width: 40px;
  height: 40px;
  margin: 4px auto 0;
  border: 3px solid rgba(84, 169, 235, 0.2);
  border-top-color: #54a9eb;
  border-radius: 50%;
  animation: tg-wait-spin 0.9s linear infinite;
}
@keyframes tg-wait-spin {
  to { transform: rotate(360deg); }
}

/* Sliding Top-Right Telegram Notification */
.tg-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #2b5278; /* Classic Telegram Dark Theme */
  color: white;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  width: 320px;
  display: flex;
  gap: 12px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.tg-toast.active {
  transform: translateX(0);
}
.tg-toast-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #54a9eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(84, 169, 235, 0.3);
}
.tg-toast-body {
  flex-grow: 1;
}
.tg-toast-title {
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 2px;
  color: #e0f2fe;
}
.tg-toast-text {
  font-size: 0.78rem;
  line-height: 1.3;
  color: #f0f9ff;
}

/* SVG Green Checkmark Animation */
.checkmark-wrapper {
  width: 64px;
  height: 64px;
  display: block;
  margin: 1.5rem auto;
}
.checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
  stroke-width: 2.5;
  stroke: #10b981;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #10b981;
  animation: fillCheckmark .4s ease-in-out .4s forwards, scaleCheckmark .3s ease-in-out .9s forwards;
}
.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2.5;
  stroke-miterlimit: 10;
  stroke: #10b981;
  fill: none;
  animation: strokeCheckmark 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheckmark 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}
@keyframes strokeCheckmark {
  100% { stroke-dashoffset: 0; }
}
@keyframes fillCheckmark {
  100% { box-shadow: inset 0px 0px 0px 32px rgba(16, 185, 129, 0.08); }
}
@keyframes scaleCheckmark {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

/* Telegram style Profile Dropdown in Navigation */
.user-profile-item {
  position: relative;
}
.user-avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.user-avatar-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.user-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 220px;
  z-index: 1000;
  padding: 0.5rem 0;
  display: none;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.user-profile-dropdown.show {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.dropdown-user-info {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.dropdown-user-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-user-phone {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}
.dropdown-action-btn {
  width: 100%;
  padding: 0.6rem 1rem;
  text-align: left;
  border: none;
  background: none;
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown-action-btn:hover {
  background: #f8fafc;
  color: #ef4444;
}
.hidden {
  display: none !important;
}

/* ==========================================
   PREMIUM DASHBOARD HEADER REDESIGN
   ========================================== */
.dashboard-header {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  padding: 0.65rem 0 !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.015) !important;
  position: sticky !important;
  top: 0;
  z-index: 1020 !important;
  transition: all 0.3s ease;
}

.brand-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(79, 70, 229, 0.08);
  border-radius: 8px;
  color: #4f46e5;
  transition: all 0.2s ease;
}

.brand-icon-wrapper:hover {
  background: rgba(79, 70, 229, 0.12);
  transform: rotate(5deg);
}

.brand-svg-icon {
  color: #4f46e5 !important;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
}

/* Toolbar & Actions styling */
.data-status-pill {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: #059669;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.data-status-pill:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.file-info-text {
  font-family: var(--tblr-font-sans-serif);
}

/* Modern Glass Buttons */
.btn-outline-glass {
  background: rgba(99, 102, 241, 0.05) !important;
  border: 1px solid rgba(99, 102, 241, 0.18) !important;
  color: #4f46e5 !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 8px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.btn-outline-glass:hover {
  background: rgba(99, 102, 241, 0.1) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08) !important;
}

.btn-outline-glass:active {
  transform: translateY(0);
}

.btn-outline-glass-danger {
  background: rgba(239, 68, 68, 0.05) !important;
  border: 1px solid rgba(239, 68, 68, 0.18) !important;
  color: #ef4444 !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 8px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.btn-outline-glass-danger:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08) !important;
}

.btn-outline-glass-danger:active {
  transform: translateY(0);
}

/* Separator */
.toolbar-separator {
  width: 1px;
  height: 24px;
  background: rgba(226, 232, 240, 0.8);
  margin: 0 0.25rem;
}

/* Language Switcher Styling */
.lang-switcher-group {
  display: inline-flex !important;
  background: rgba(99, 102, 241, 0.04) !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  border-radius: 8px !important;
  padding: 2px !important;
  gap: 2px !important;
}

.lang-switcher-group .lang-btn {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 0.72rem !important;
  padding: 0.22rem 0.6rem !important;
  border-radius: 6px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.lang-switcher-group .lang-btn:hover {
  color: #4f46e5 !important;
  background: rgba(99, 102, 241, 0.06) !important;
  transform: none !important;
}

.lang-switcher-group .lang-btn.active {
  background: #4f46e5 !important;
  color: white !important;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.22) !important;
}

.lang-switcher-group .lang-btn .lang-flag {
  font-size: 1rem !important;
  line-height: 1 !important;
  display: inline-block !important;
  filter: saturate(1.05);
}

/* ─────────────────────────────────────────────────────────────
   Capabilities SVGs & Return Simulator Styles
   ───────────────────────────────────────────────────────────── */

/* Monthly Dynamics diverging bar chart */
.svg-monthly-dynamics {
  overflow: visible;
}
.bar-group {
  cursor: pointer;
}
.bar-sales {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease, opacity 0.35s ease;
  transform-box: fill-box;
  transform-origin: bottom center;
}
.bar-returns {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease, opacity 0.35s ease;
  transform-box: fill-box;
  transform-origin: top center;
}
.bar-group:hover .bar-sales {
  transform: scaleY(1.06) scaleX(1.05);
  filter: brightness(1.08) drop-shadow(0 4px 10px rgba(99, 102, 241, 0.3));
}
.bar-group:hover .bar-returns {
  transform: scaleY(1.1) scaleX(1.05);
  filter: brightness(1.08) drop-shadow(0 4px 10px rgba(239, 68, 68, 0.3));
}
.bar-group text {
  transition: fill 0.3s ease, font-weight 0.3s ease;
}
.bar-group:hover text {
  fill: #0f172a;
  font-weight: 800;
}

/* Risk Heatmap Grid */
.svg-risk-heatmap {
  overflow: visible;
}
.heatmap-cell {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.35s ease, filter 0.35s ease;
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1px;
}
.heatmap-cell:hover {
  transform: scale(1.12);
  stroke: #1e293b;
  stroke-width: 1.5px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.15));
  z-index: 10;
}
.heatmap-tooltip {
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  animation: floatTooltip 3.5s ease-in-out infinite;
}

/* Treemap Block Distribution */
.svg-treemap {
  overflow: visible;
}
.treemap-block {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
}
.treemap-block:hover {
  transform: scale(1.025);
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.08));
}
.treemap-block rect {
  transition: stroke-width 0.3s ease, fill 0.3s ease, stroke 0.3s ease;
}
.treemap-block:hover rect {
  stroke-width: 2.2px !important;
}

/* Glassmorphic Controls and Dial Card */
.glass-card-dark {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.08);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.02);
}
.simulator-gauge-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.04);
}

/* Custom Sleek Slider Inputs */
.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  outline: none;
  transition: background 0.2s ease;
}
.custom-slider:hover {
  background: #cbd5e1;
}
.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: 4.5px solid #4f46e5;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.35);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s ease, box-shadow 0.2s ease;
}
.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  border-color: #3730a3;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.5);
}
.custom-slider::-webkit-slider-thumb:active {
  transform: scale(1.1);
  border-color: #312e81;
}
.custom-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: 4.5px solid #4f46e5;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.35);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s ease, box-shadow 0.2s ease;
}
.custom-slider::-moz-range-thumb:hover {
  transform: scale(1.25);
  border-color: #3730a3;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.5);
}
.custom-slider::-moz-range-thumb:active {
  transform: scale(1.1);
  border-color: #312e81;
}

/* Custom Simulator Number inputs */
.simulator-num-input {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #4f46e5;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  width: 140px;
  box-shadow: none;
}
.simulator-num-input:focus {
  background: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
  color: #0f172a;
  outline: none;
}

