/* Demo Analytics Dashboard - shared styles */

:root {
  --page: #ffffff;
  --surface: #f8fafc;
  --ink: #0b1220;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-tint: #eef2ff;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

h3, h4 {
  font-weight: 700;
}

p {
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

/* Form fields, used across login/dashboard */
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

/* Public header */
.public-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.public-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.brand-logo-dark {
  height: 30px;
  filter: brightness(0) invert(1);
}

.auth-side-logo {
  height: 44px;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.public-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s ease;
}

.public-nav a:hover {
  color: var(--accent);
}

.public-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.public-nav-panel {
  display: none;
}

/* Footer */
.public-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 56px 0 32px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid .brand {
  margin-bottom: 12px;
}

.footer-col p {
  color: var(--muted);
  font-size: 14px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 14px;
}

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

.footer-links a {
  font-size: 14px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Hero */
.hero {
  padding: 72px 0 96px;
}

.hero-3d {
  position: relative;
  overflow: hidden;
}

.hero-still,
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-still {
  object-fit: cover;
  opacity: 0.32;
}

.hero-3d .container {
  position: relative;
  z-index: 2;
}

.hero-3d .hero-visual .shape-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-tint);
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-note {
  font-size: 14px;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-visual .shape-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.hero-visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-card.metric-card {
  bottom: -24px;
  left: -24px;
}

.floating-card.trend-card {
  top: -20px;
  right: -20px;
}

.floating-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-icon svg {
  width: 20px;
  height: 20px;
}

.floating-card .metric-value {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}

.floating-card .metric-label {
  font-size: 12px;
  color: var(--muted);
}

/* Logo strip */
.logo-strip {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logo-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.logo-strip span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.logo-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* Section shell */
.section {
  padding: 96px 0;
}

.section-tint {
  background: var(--accent-tint);
}

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
}

/* Split feature (image + text alternating) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse .split-visual {
  order: 2;
}

.split-visual {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.split-visual .chart-placeholder-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 200px;
  padding-top: 20px;
}

.chart-placeholder-bars .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  border-radius: 6px 6px 0 0;
}

.split h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 16px;
}

.split p {
  color: var(--muted);
  margin-bottom: 20px;
}

.check-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.check-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-value {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 6px;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 28px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-band .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-band .btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .feature-card, .btn-primary {
    transition: none !important;
  }
  .mini-dash-kpis,
  .mini-dash-bars,
  .mini-dash-spark,
  .mini-dash-bars span {
    transition: none !important;
  }
  .mini-dash-main.switching .mini-dash-kpis,
  .mini-dash-main.switching .mini-dash-bars,
  .mini-dash-main.switching .mini-dash-spark {
    opacity: 1;
    transform: none;
  }
}

/* Auth pages */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-side {
  background: var(--ink);
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-side::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.45), transparent 70%);
  right: -160px;
  bottom: -160px;
}

.auth-side .brand {
  color: #fff;
}

.auth-side-content h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 16px;
  max-width: 420px;
}

.auth-side-content p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 400px;
}

.auth-side-foot {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card .brand {
  margin-bottom: 36px;
}

.auth-card h1 {
  font-size: 26px;
  margin-bottom: 8px;
}

.auth-card > p {
  color: var(--muted);
  margin-bottom: 28px;
}

.auth-tabs {
  display: flex;
  background: var(--surface);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
}

.auth-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.field-group {
  margin-bottom: 18px;
}

.form-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 14px;
}

.form-row-between a {
  color: var(--accent);
  font-weight: 500;
}

.form-msg {
  font-size: 14px;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  display: none;
}

.form-msg.show {
  display: block;
}

.form-msg.error {
  background: #fef2f2;
  color: #b91c1c;
}

.form-msg.success {
  background: #ecfdf5;
  color: #047857;
}

.demo-callout {
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 26px;
}

.demo-callout-copy {
  margin-bottom: 14px;
}

.demo-callout-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-hover);
  margin-bottom: 6px;
}

.demo-callout-copy p {
  font-size: 14.5px;
  color: var(--ink);
  margin: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

altcha-widget {
  color-scheme: light;
  --altcha-color-base: #ffffff;
  --altcha-color-base-content: #0b1220;
  --altcha-border-color: #e2e8f0;
  --altcha-border-radius: 10px;
  --altcha-max-width: 100%;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
}

.auth-switch a, .auth-switch button {
  color: var(--accent);
  font-weight: 600;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 24px;
  }

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

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split.reverse .split-visual {
    order: 0;
  }

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

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-side {
    display: none;
  }
}

@media (max-width: 720px) {
  .public-nav, .public-nav-actions .btn-secondary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .public-header .container {
    height: 68px;
  }

  .public-nav-panel.open {
    display: flex;
  }

  .public-nav-panel {
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow);
  }

  .public-nav-panel a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    font-weight: 500;
  }

  .public-nav-panel .btn {
    margin-top: 12px;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }

  .section {
    padding: 56px 0;
  }

  .cta-band {
    padding: 48px 24px;
  }

  .floating-card {
    display: none;
  }
}

@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============ Landing page: dark variant ============ */
body.landing-dark {
  --page: #0a0f1c;
  --surface: #121a2b;
  --ink: #f8fafc;
  --text: #cbd5e1;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-tint: rgba(99, 102, 241, 0.14);
}

body.landing-dark .public-header {
  background: rgba(10, 15, 28, 0.88);
  border-bottom-color: var(--line);
}

body.landing-dark .public-header .brand-logo,
body.landing-dark .public-footer .brand-logo {
  filter: brightness(0) invert(1);
}

body.landing-dark .nav-toggle {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

body.landing-dark .public-nav-panel {
  background: var(--surface);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

body.landing-dark .public-nav-panel a {
  border-bottom-color: var(--line);
}

body.landing-dark .feature-card {
  background: var(--surface);
  border-color: var(--line);
}

body.landing-dark .feature-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

body.landing-dark .split-visual {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

body.landing-dark .floating-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

body.landing-dark .cta-band {
  background: #050810;
  border: 1px solid var(--line);
}

body.landing-dark .btn-secondary {
  border-color: var(--line);
}

body.landing-dark .btn-secondary:hover {
  border-color: var(--accent);
}

/* ============ Dashboard shell ============ */
.dash {
  display: flex;
  min-height: 100vh;
  background: var(--surface);
}

.dash-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}

.dash-sidebar .brand {
  color: #fff;
  padding: 24px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-nav {
  list-style: none;
  margin: 0;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.15s ease, color 0.15s ease;
}

.dash-nav a svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.dash-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.dash-nav a.active {
  background: var(--accent);
  color: #fff;
}

.dash-sidebar-foot {
  padding: 16px 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dash-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.dash-user-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-user-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.dash-signout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.dash-signout:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.dash-signout svg {
  width: 16px;
  height: 16px;
}

.dash-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.5);
  z-index: 90;
}

.dash-main {
  flex: 1;
  margin-left: 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dash-topbar {
  height: 68px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.dash-topbar h1 {
  font-size: 19px;
}

.dash-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.dash-menu-toggle svg {
  width: 19px;
  height: 19px;
}

.dash-topbar-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dash-content {
  padding: 28px;
  flex: 1;
}

.dash-content > .page-head {
  margin-bottom: 24px;
}

.page-head p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}

/* Cards & metrics */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.metric-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.metric-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.metric-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-tile-icon svg {
  width: 19px;
  height: 19px;
}

.metric-tile-delta {
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.metric-tile-delta.up {
  background: #ecfdf5;
  color: #047857;
}

.metric-tile-delta.down {
  background: #fef2f2;
  color: #b91c1c;
}

.metric-tile-value {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 27px;
  color: var(--ink);
  margin-bottom: 4px;
}

.metric-tile-label {
  font-size: 13.5px;
  color: var(--muted);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.panel-head h3 {
  font-size: 16.5px;
}

.panel-head p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

.chart-box {
  position: relative;
  height: 320px;
}

.chart-3d {
  height: 340px;
  overflow: hidden;
  background: #f8fafc;
  border-radius: 12px;
}

.chart-3d canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.chart-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.chart-3d-labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 8px 12px;
  font-size: 11.5px;
  color: var(--muted);
  background: linear-gradient(transparent, rgba(255,255,255,0.92) 40%);
  pointer-events: none;
}

.chart-3d-labels span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.chart-3d-labels i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
}

.chart-box.short {
  height: 240px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  position: relative;
  padding-right: 20px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

table.data-table th {
  text-align: left;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

table.data-table th:last-child,
table.data-table td:last-child {
  padding-right: 20px;
}

table.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

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

.cell-strong {
  color: var(--ink);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-green { background: #ecfdf5; color: #047857; }
.badge-amber { background: #eff6ff; color: #1d4ed8; }
.badge-red { background: #fef2f2; color: #b91c1c; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-blue { background: var(--accent-tint); color: var(--accent-hover); }

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.toolbar .input-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.toolbar .input-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.toolbar .input-search input {
  padding-left: 38px;
}

.toolbar select {
  width: auto;
  min-width: 140px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 10px;
}

.pagination .btn {
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-row-copy h4 {
  font-size: 14.5px;
  margin-bottom: 3px;
}

.toggle-row-copy p {
  font-size: 13px;
  color: var(--muted);
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.switch-track::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch input:checked + .switch-track {
  background: var(--accent);
}

.switch input:checked + .switch-track::before {
  transform: translateX(20px);
}

.dash-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow);
  z-index: 300;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.dash-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ============ Landing revamp: hero + bento + screens ============ */
.hero-new {
  padding: 88px 0 104px;
}

.hero-new-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.hero-new-copy h1 {
  font-family: "Orbitron", "Manrope", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.08;
  text-shadow: 0 0 24px rgba(99, 102, 241, 0.45);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
  display: inline-block;
}

.hero-proof {
  display: flex;
  gap: 28px;
  margin: 28px 0 14px;
}

.hero-proof div {
  display: flex;
  flex-direction: column;
}

.hero-proof strong {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}

.hero-proof span {
  font-size: 13px;
  color: var(--muted);
}

.demo-window {
  position: relative;
  background: rgba(18, 26, 43, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  overflow: visible;
  transform: rotate(1deg);
}

.demo-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: block;
}

.demo-window-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.demo-window-body {
  padding: 18px;
}

.demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.demo-metrics div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
}

.demo-metrics span {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}

.demo-metrics label {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.demo-spark {
  width: 100%;
  height: 90px;
  display: block;
  margin-bottom: 14px;
}

.demo-rows div {
  display: grid;
  grid-template-columns: 24px 1fr 64px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-rows i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(129, 140, 248, 0.35);
  display: block;
}

.demo-rows b {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  display: block;
}

.demo-rows u {
  height: 18px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.25);
  display: block;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}

.bento-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.bento-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
}

.bento-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.bento-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-hover);
}

.bento-mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
}

.bento-mini-bars .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  border-radius: 6px 6px 0 0;
}

.tour-visual {
  padding: 0;
  overflow: hidden;
}

.tour-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.tour-3d {
  background: #0a0f1c;
  border-color: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  min-height: 380px;
  overflow: hidden;
  position: relative;
}

.tour-3d::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
  top: -140px;
  right: -140px;
  pointer-events: none;
}

.tour-dash-scene {
  position: relative;
  width: 100%;
  max-width: 420px;
  perspective: 1200px;
  z-index: 1;
}

.mini-dash {
  display: grid;
  grid-template-columns: 118px 1fr;
  background: rgba(18, 26, 43, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: rotateY(-12deg) rotateX(8deg);
  transition: transform 0.5s ease;
}

.tour-3d:hover .mini-dash {
  transform: rotateY(-4deg) rotateX(2deg);
}

.mini-dash-side {
  background: rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.mini-dash-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #6366f1;
  display: block;
  margin-bottom: 6px;
}

.mini-dash-link {
  width: auto;
  height: auto;
  border-radius: 7px;
  background: transparent;
  display: block;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.55);
  padding: 6px 8px;
  line-height: 1.2;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.mini-dash-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mini-dash-link:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 1px;
}

.mini-dash-link.active {
  background: rgba(129, 140, 248, 0.22);
  color: #fff;
  width: auto;
}

.mini-dash-title-text {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.01em;
}

.mini-dash-main.switching .mini-dash-kpis,
.mini-dash-main.switching .mini-dash-bars,
.mini-dash-main.switching .mini-dash-spark {
  opacity: 0;
  transform: translateY(6px);
}

.mini-dash-kpis,
.mini-dash-bars,
.mini-dash-spark {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.mini-dash-bars span {
  transition: height 0.4s ease;
}

.mini-dash-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  padding-top: 10px;
}

.mini-dash-dots span {
  width: 14px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.2s ease, width 0.2s ease;
}

.mini-dash-dots span.on {
  background: #818cf8;
  width: 22px;
}

.mini-dash-main {
  padding: 16px;
}

.mini-dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mini-dash-title {
  width: 110px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  display: block;
}

.mini-dash-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
}

.mini-dash-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  display: block;
}

.mini-dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mini-dash-kpis div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
}

.mini-dash-kpis i {
  display: block;
  font-style: normal;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.mini-dash-kpis b {
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
}

.mini-dash-spark {
  width: 100%;
  height: 58px;
  display: block;
  margin-bottom: 10px;
}

.mini-dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 74px;
  margin-bottom: 12px;
}

.mini-dash-bars span {
  flex: 1;
  background: linear-gradient(180deg, #818cf8, #4f46e5);
  border-radius: 4px 4px 0 0;
  display: block;
}

.mini-dash-rows div {
  display: grid;
  grid-template-columns: 20px 1fr 52px;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mini-dash-rows i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(129, 140, 248, 0.4);
  display: block;
}

.mini-dash-rows b {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  display: block;
}

.mini-dash-rows u {
  height: 16px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.28);
  display: block;
}

.tour-dash-card {
  position: absolute;
  background: #121a2b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
}

.tour-dash-card strong {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}

.tour-dash-card span {
  font-size: 11px;
  color: #94a3b8;
}

.tour-dash-card.card-a {
  top: -18px;
  right: -8px;
  transform: rotate(4deg);
}

.tour-dash-card.card-b {
  bottom: -16px;
  left: -10px;
  transform: rotate(-3deg);
}

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

.screen-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.screen-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.screen-card strong {
  font-size: 12px;
  color: var(--accent-hover);
  letter-spacing: 0.06em;
}

.screen-card h3 {
  font-size: 16px;
  margin: 8px 0 6px;
}

.screen-card p {
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .hero-new-grid {
    grid-template-columns: 1fr;
  }

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

  .bento-wide {
    grid-column: span 2;
  }

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

@media (max-width: 640px) {
  .hero-new {
    padding: 56px 0 72px;
  }

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

  .bento-wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

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

  .hero-proof {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

/* Pulse AI chat widget (dashboard only) */
.pulse-chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  z-index: 220;
  transition: transform 0.15s ease, background 0.15s ease;
}

.pulse-chat-fab:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.pulse-chat-fab:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.pulse-chat-fab svg {
  width: 24px;
  height: 24px;
}

.pulse-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 220;
}

.pulse-chat-panel[hidden] {
  display: none;
}

.pulse-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
}

.pulse-chat-head strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
}

.pulse-chat-head span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.pulse-chat-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.pulse-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
}

.pulse-chat-log .msg {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 88%;
}

.pulse-chat-log .msg-you {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
}

.pulse-chat-log .msg-assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}

.pulse-chat-log .msg-pending {
  opacity: 0.7;
}

.pulse-chat-hints {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px 0;
  background: var(--surface);
}

.pulse-chat-hints button {
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.pulse-chat-hints button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pulse-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.pulse-chat-form input {
  flex: 1;
  min-width: 0;
}

.pulse-chat-form button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 0 18px;
  height: 46px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.pulse-chat-form button:hover {
  background: var(--accent-hover);
}

.pulse-chat-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 560px) {
  .pulse-chat-fab {
    right: 16px;
    bottom: 16px;
  }

  .pulse-chat-panel {
    right: 16px;
    left: 16px;
    bottom: 84px;
    width: auto;
  }
}

@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .dash-sidebar {
    transform: translateX(-100%);
  }

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

  .dash-overlay.show {
    display: block;
  }

  .dash-main {
    margin-left: 0;
  }

  .dash-menu-toggle {
    display: flex;
  }

  .dash-content {
    padding: 18px;
  }

  .table-wrap {
    padding-right: 28px;
  }

  table.data-table th:last-child,
  table.data-table td:last-child {
    padding-right: 24px;
  }

  table.data-table th:first-child,
  table.data-table td:first-child {
    padding-left: 18px;
  }

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

@media (max-width: 560px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .dash-topbar {
    padding: 0 16px;
  }

  .dash-content {
    padding: 16px 24px 16px 16px;
  }

  .panel {
    padding: 20px 16px;
  }
}
