/* Hero — Premium Animated Dashboard */
.hero-2 .hero-image2 {
  position: relative;
  overflow: visible;
  padding-bottom: 0;
  margin-bottom: 0;
}

@media (min-width: 1200px) {
  .th-hero-wrapper.hero-2 {
    min-height: auto;
    height: auto;
    display: block;
    justify-content: flex-start;
    padding-top: 72px;
    padding-bottom: 48px;
    box-sizing: border-box;
  }

  .hero-2 > .container {
    display: flex;
    flex: 1;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-2 > .container > .row {
    align-items: center !important;
    width: 100%;
    margin-top: 0;
  }

  .hero-2 .col-xl-5,
  .hero-2 .col-xl-7 {
    align-self: center;
    padding-top: 0;
  }

  .hero-2 .col-xl-7 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0;
  }

  .hero-2 .hero-image2 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    margin-top: 0;
  }

  .hero-2 .hero-style2 {
    padding: 0 !important;
    margin: 0;
  }

  .hero-2 .hero-style2 .hero-title {
    margin-top: 0;
  }

  .hero-dashboard-wrap {
    width: min(100%, 560px);
    margin: 0 auto;
    padding-top: 0;
  }

  .hero-dashboard {
    max-height: none;
  }

  .hd-chart-wrap {
    height: 120px;
  }
}

.hero-dashboard-wrap {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  perspective: 1200px;
}

.hd-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hd-glow-1 {
  width: 200px;
  height: 200px;
  background: rgba(69, 111, 248, 0.3);
  top: -50px;
  right: -40px;
  animation: hdGlowDrift 7s ease-in-out infinite;
}

.hd-glow-2 {
  width: 140px;
  height: 140px;
  background: rgba(28, 78, 255, 0.2);
  bottom: 20px;
  left: -30px;
  animation: hdGlowDrift 9s ease-in-out infinite reverse;
}

@keyframes hdGlowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.08); }
}

.hero-dashboard {
  --hd-blue: #456ff8;
  --hd-blue-light: #7ba3ff;
  --hd-cyan: #38bdf8;
  --hd-green: #22c55e;
  --hd-border: rgba(255, 255, 255, 0.1);
  position: relative;
  padding: 14px 16px 12px;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(14, 22, 52, 0.98) 0%, rgba(5, 8, 22, 0.99) 55%, rgba(10, 16, 40, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(69, 111, 248, 0.08),
    0 40px 100px rgba(69, 111, 248, 0.22),
    0 16px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-dashboard.is-switching {
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.hero-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(69, 111, 248, 0.5), transparent 40%, transparent 60%, rgba(56, 189, 248, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-dashboard::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: conic-gradient(from 200deg, transparent, rgba(69, 111, 248, 0.07), transparent 25%);
  animation: hdShimmer 12s linear infinite;
  pointer-events: none;
}

.hd-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

@keyframes hdShimmer {
  to { transform: rotate(360deg); }
}

.hd-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.hd-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hd-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hd-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #456ff8 0%, #1c4eff 50%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(69, 111, 248, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: hdIconPulse 3s ease-in-out infinite;
}

@keyframes hdIconPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(69, 111, 248, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 10px 40px rgba(69, 111, 248, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

.hd-title {
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
  letter-spacing: -0.02em;
}

.hd-subtitle {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
}

.hd-pills {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hd-pill {
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  background: transparent;
  font-family: inherit;
  line-height: 1.2;
}

.hd-pill:hover {
  color: rgba(255, 255, 255, 0.7);
}

.hd-pill.is-active {
  background: rgba(69, 111, 248, 0.25);
  color: #fff;
  box-shadow: 0 2px 8px rgba(69, 111, 248, 0.2);
}

.hd-live {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hd-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  animation: hdPulse 1.5s ease-in-out infinite;
}

@keyframes hdPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 12px #4ade80; }
  50% { opacity: 0.6; transform: scale(0.8); box-shadow: 0 0 20px #4ade80; }
}

.hd-ai-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(69, 111, 248, 0.12) 0%, rgba(56, 189, 248, 0.06) 100%);
  border: 1px solid rgba(69, 111, 248, 0.2);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hd-ai-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: hdAiSweep 4s ease-in-out infinite;
}

@keyframes hdAiSweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

.hd-ai-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #456ff8, #6366f1);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.hd-ai-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hd-ai-text strong {
  color: #7dd3fc;
}

.hd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.hd-card {
  position: relative;
  padding: 10px 10px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hd-border);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  animation: hdCardIn 0.7s cubic-bezier(0.34, 1.2, 0.64, 1) both;
  animation-delay: var(--hd-delay, 0ms);
}

@keyframes hdCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hd-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(69, 111, 248, 0.15) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hd-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(69, 111, 248, 0.4);
  box-shadow: 0 16px 40px rgba(69, 111, 248, 0.15);
}

.hd-card:hover::before {
  opacity: 1;
}

.hd-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.hd-card-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.hd-card-icon.leads { background: rgba(34, 197, 94, 0.18); color: #4ade80; box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15); }
.hd-card-icon.appts { background: rgba(69, 111, 248, 0.22); color: #93c5fd; box-shadow: 0 4px 12px rgba(69, 111, 248, 0.15); }
.hd-card-icon.conv { background: rgba(163, 120, 255, 0.2); color: #c4b5fd; box-shadow: 0 4px 12px rgba(163, 120, 255, 0.15); }
.hd-card-icon.rev { background: rgba(251, 191, 36, 0.18); color: #fde047; box-shadow: 0 4px 12px rgba(251, 191, 36, 0.12); }

.hd-card-change {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.1);
}

.hd-card-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.42);
  margin: 0 0 3px;
  position: relative;
  z-index: 1;
}

.hd-card-value {
  font-family: "Sora", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.hd-card-value.is-tick {
  color: #7dd3fc;
  text-shadow: 0 0 20px rgba(125, 211, 252, 0.5);
}

.hd-spark {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 22px;
  opacity: 0.7;
  pointer-events: none;
}

.hd-chart-section {
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
}

.hd-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.hd-chart-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.hd-chart-legend {
  display: flex;
  gap: 14px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

.hd-chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hd-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.hd-legend-dot.blue { background: #456ff8; box-shadow: 0 0 8px rgba(69, 111, 248, 0.6); }
.hd-legend-dot.cyan { background: #38bdf8; box-shadow: 0 0 8px rgba(56, 189, 248, 0.6); }

.hd-chart-wrap {
  position: relative;
  height: 82px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hd-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hd-chart-tooltip {
  position: absolute;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(10, 16, 40, 0.95);
  border: 1px solid rgba(69, 111, 248, 0.4);
  font-size: 11px;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.15s ease;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hd-chart-tooltip.is-show {
  opacity: 1;
}

.hd-bottom-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.hd-util {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hd-border);
}

.hd-util-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.hd-util-head strong {
  font-size: 14px;
  color: #fff;
  font-family: "Sora", sans-serif;
}

.hd-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hd-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #456ff8, #38bdf8, #456ff8);
  background-size: 200% 100%;
  animation: hdBarShine 2s linear infinite;
  transition: width 1.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes hdBarShine {
  to { background-position: 200% 0; }
}

.hd-activity {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hd-border);
  overflow: hidden;
}

.hd-activity-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hd-activity-title i {
  color: #fbbf24;
}

.hd-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 44px;
  overflow: hidden;
}

.hd-activity-list li {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: hdActIn 0.4s ease both;
}

.hd-activity-list li:last-child {
  border-bottom: none;
}

.hd-activity-list li i {
  color: #456ff8;
  font-size: 9px;
}

@keyframes hdActIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.hd-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.hd-updated {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
}

.hd-toast-stack {
  position: relative;
}

.hd-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(69, 111, 248, 0.3);
  max-width: 200px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.45s cubic-bezier(0.34, 1.2, 0.64, 1), transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 12px 32px rgba(69, 111, 248, 0.12);
}

.hd-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hd-toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.08));
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.hd-toast-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
}

.hd-toast-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
  line-height: 1.35;
}

.hero-2 .hero-image2::after { display: none; }

/* Logo sizing handled in dentaix-header-robot.css */

.th-hero-wrapper.hero-2 {
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 1199px) {
  .hero-2 .hero-style2 { padding: 0 0 32px 0 !important; }
}

.footer-logo img.dx-logo-footer {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
}

@media (max-width: 1199px) {
  .th-hero-wrapper.hero-2 {
    min-height: auto;
    height: auto;
  }
  .hero-2 .hero-style2 { padding: 0 0 32px 0 !important; }
  .hero-dashboard-wrap { max-width: 480px; }
}

@media (max-width: 767px) {
  .hero-2 .hero-style2 { padding: 0 0 24px 0 !important; }
  .hero-dashboard-wrap { width: 100%; }
  .hero-dashboard { padding: 18px; border-radius: 20px; min-height: auto; }
  .hd-card-value { font-size: 24px; }
  .hd-chart-wrap { height: 140px; }
  .hd-pills { display: none; }
  .hd-ai-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dashboard, .hd-live-dot, .hd-icon, .hd-glow, .hd-ai-strip::before, .hd-progress-bar {
    animation: none;
  }
  .hd-card { animation: none; }
}

