/* ============================================================
   Restock Flippers — Main Stylesheet
   Design tokens → Reset → Base → Layout → Sections → Animations
   ============================================================ */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  /* Colors */
  --clr-bg:           #080c10;
  --clr-bg-alt:       #0b1017;
  --clr-bg-surface:   #0e1520;
  --clr-bg-card:      #111a26;
  --clr-bg-card-alt:  #0d1620;

  --clr-cyan:         #00c8ff;
  --clr-cyan-bright:  #00e5ff;
  --clr-cyan-dim:     rgba(0, 200, 255, 0.7);
  --clr-cyan-glow:    rgba(0, 200, 255, 0.18);
  --clr-cyan-border:  rgba(0, 200, 255, 0.14);
  --clr-cyan-border-h:rgba(0, 200, 255, 0.38);

  --clr-green:        #00e676;
  --clr-green-dim:    rgba(0, 230, 118, 0.15);
  --clr-yellow:       #ffd740;
  --clr-red:          #ff5252;

  --clr-text:         #e8f4fb;
  --clr-text-muted:   rgba(232, 244, 251, 0.55);
  --clr-text-faint:   rgba(232, 244, 251, 0.28);

  --clr-border:       rgba(255, 255, 255, 0.06);

  /* Typography */
  --font:             'Space Grotesk', system-ui, sans-serif;

  /* Spacing (4px base unit) */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-cyan:   0 0 24px rgba(0, 200, 255, 0.14), 0 0 48px rgba(0, 200, 255, 0.06);
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255,255,255,0.04) inset;

  /* Nav */
  --nav-h: 68px;

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button {
  font-family: var(--font);
  border: none;
  background: none;
  cursor: pointer;
}

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

/* ─── Bubble Canvas ──────────────────────────────────────── */
#bubbleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Ensure all page content sits above the canvas */
.nav, main, footer {
  position: relative;
  z-index: 1;
}

/* ─── Layout Utilities ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

/* Section shared pattern */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--sp-16);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-cyan);
  margin-bottom: var(--sp-3);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--clr-text);
  margin-bottom: var(--sp-4);
}

.section-desc {
  font-size: 1rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ─── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color var(--t-slow), backdrop-filter var(--t-slow), border-color var(--t-slow);
  border-bottom: 1px solid transparent;
}

/* Frosted glass on scroll — class added by JS */
.nav.is-scrolled {
  background-color: rgba(8, 12, 16, 0.8);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--clr-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.nav__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--clr-cyan));
}

.nav__wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--clr-text);
  white-space: nowrap;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color var(--t-fast);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--clr-text);
}

/* Pill CTA in nav */
.nav__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-bg);
  background: var(--clr-cyan);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  margin-left: var(--sp-2);
  transition: background-color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}

.nav__cta:hover,
.nav__cta:focus-visible {
  background: var(--clr-cyan-bright);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.4);
}

/* Hamburger — hidden on desktop */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  padding: 0;
  flex-shrink: 0;
}

.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

.nav__hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Ambient glow orbs — purely decorative */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.hero__glow--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,200,255,0.13) 0%, transparent 65%);
  top: -120px;
  right: -160px;
}

.hero__glow--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,200,255,0.07) 0%, transparent 70%);
  bottom: 20px;
  left: -140px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--sp-10);
  align-items: center;
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-20);
}

/* Hero copy column */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-cyan);
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid var(--clr-cyan-border);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-6);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-cyan);
  animation: pulse-dot 2s ease infinite;
}

.hero__headline {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--clr-text);
  margin-bottom: var(--sp-6);
}

.hero__headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--clr-cyan) 0%, var(--clr-cyan-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtext {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: var(--sp-10);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}

/* Disabled / "Out of Stock" button */
.btn--disabled {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  cursor: not-allowed;
  opacity: 0.55;
  user-select: none;
}

.btn__icon {
  flex-shrink: 0;
}

.hero__pricing {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
}

.hero__price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-cyan);
}

.hero__twitter {
  font-size: 0.85rem;
  color: var(--clr-text-faint);
}

.hero__twitter-link {
  color: var(--clr-cyan-dim);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}

.hero__twitter-link:hover {
  color: var(--clr-cyan);
}

/* ─── Hero Screenshot ────────────────────────────────────── */
.hero__mockup {
  position: relative;
  margin-right: calc(-1 * var(--sp-6));
  margin-left: calc(-1 * var(--sp-4));
  animation: float 7s ease-in-out infinite;
}

/* Glow layer behind the screenshot */
.hero__mockup::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(0,200,255,0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__mockup > * {
  position: relative;
  z-index: 1;
}

.mockup-window {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-cyan-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-cyan);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--clr-border);
}

.mockup-dots {
  display: flex;
  gap: var(--sp-2);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot--red    { background: #ff5f57; }
.mockup-dot--yellow { background: #febc2e; }
.mockup-dot--green  { background: #28c840; }

.mockup-titlebar__label {
  font-size: 0.75rem;
  color: var(--clr-text-faint);
  margin-left: var(--sp-2);
  font-weight: 500;
}

.mockup-tabs {
  display: flex;
  border-bottom: 1px solid var(--clr-border);
  padding: 0 var(--sp-4);
}

.mockup-tab {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-text-faint);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.mockup-tab--active {
  color: var(--clr-cyan);
  border-bottom-color: var(--clr-cyan);
}

.mockup-body {
  padding: var(--sp-3) 0;
}

.mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
  gap: var(--sp-4);
}

.mockup-row:last-of-type {
  border-bottom: none;
}

.mockup-row__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mockup-row__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-row__site {
  font-size: 0.72rem;
  color: var(--clr-text-faint);
}

/* Status badges in mockup */
.mockup-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.mockup-badge--monitoring {
  color: var(--clr-cyan);
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.2);
}

.mockup-badge--detected {
  color: var(--clr-yellow);
  background: rgba(255, 215, 64, 0.1);
  border: 1px solid rgba(255, 215, 64, 0.2);
}

.mockup-badge--success {
  color: var(--clr-green);
  background: var(--clr-green-dim);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.mockup-badge--idle {
  color: var(--clr-text-faint);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Mockup status bar */
.mockup-statusbar {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--clr-border);
  margin-top: var(--sp-1);
}

.mockup-status-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.7rem;
  color: var(--clr-text-faint);
  font-weight: 500;
}

.mockup-status-item--success {
  color: var(--clr-green);
}

.mockup-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-cyan);
  animation: pulse-dot 1.6s ease infinite;
  flex-shrink: 0;
}

/* Hero screenshot (replaces coded mockup window) */
.hero__screenshot {
  width: 100%;
  display: block;
  border: 1px solid rgba(0, 200, 255, 0.22);
  border-radius: var(--r-lg);
  box-shadow:
    0 0 0 1px rgba(0,200,255,0.06),
    0 8px 40px rgba(0,0,0,0.6),
    0 0 60px rgba(0,200,255,0.14),
    0 0 120px rgba(0,200,255,0.07);
}

/* ─── Features ───────────────────────────────────────────── */
.features {
  padding: var(--sp-32) 0;
  background: var(--clr-bg-alt);
  /* Subtle top/bottom separators */
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.feature-card {
  position: relative;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-cyan-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  overflow: hidden;
}

/* Top-left corner glow on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top left, rgba(0,200,255,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t-slow);
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--clr-cyan-border-h);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-3px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid var(--clr-cyan-border);
  border-radius: var(--r-md);
  color: var(--clr-cyan);
  margin-bottom: var(--sp-5);
  transition: background-color var(--t-base), box-shadow var(--t-base);
}

.feature-card:hover .feature-card__icon-wrap {
  background: rgba(0, 200, 255, 0.14);
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.2);
}

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* Staggered reveal delay for feature cards */
.features__grid .feature-card:nth-child(1) { transition-delay: 0ms; }
.features__grid .feature-card:nth-child(2) { transition-delay: 60ms; }
.features__grid .feature-card:nth-child(3) { transition-delay: 120ms; }
.features__grid .feature-card:nth-child(4) { transition-delay: 180ms; }
.features__grid .feature-card:nth-child(5) { transition-delay: 240ms; }
.features__grid .feature-card:nth-child(6) { transition-delay: 300ms; }

/* ─── Dashboard Preview ───────────────────────────────────── */
.dash-preview {
  padding: var(--sp-32) 0;
}

.dash-preview__panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  align-items: start;
}

.dash-preview__window {
  width: 100%;
}

.dash-panel {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-cyan-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-slow), box-shadow var(--t-slow);
  animation: float 7s ease-in-out infinite;
}

/* Offset each panel's floating phase */
.dash-preview__panels .dash-panel:nth-child(2) { animation-delay: -2.3s; }
.dash-preview__panels .dash-panel:nth-child(3) { animation-delay: -4.6s; }

.dash-panel:hover {
  box-shadow: var(--shadow-card), var(--shadow-cyan);
}

.dash-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--clr-border);
}

.dash-panel__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash-panel__count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-text-faint);
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.dash-panel__count--live {
  color: var(--clr-cyan);
  background: rgba(0,200,255,0.08);
}

.dash-panel__count--success {
  color: var(--clr-green);
  background: var(--clr-green-dim);
}

.dash-panel__body {
  padding: var(--sp-3) 0;
}

/* Log view variant */
.dash-panel__body--log {
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

/* Dashboard rows */
.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);
  gap: var(--sp-3);
  border-bottom: 1px solid var(--clr-border);
  transition: background-color var(--t-fast);
}

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

.dash-row:hover {
  background: rgba(255,255,255,0.025);
}

.dash-row__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dash-row__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-row__meta {
  font-size: 0.68rem;
  color: var(--clr-text-faint);
}

/* Dashboard badges */
.dash-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-badge--monitor {
  color: var(--clr-cyan);
  background: rgba(0,200,255,0.1);
  border: 1px solid rgba(0,200,255,0.2);
}

.dash-badge--detected {
  color: var(--clr-yellow);
  background: rgba(255,215,64,0.1);
  border: 1px solid rgba(255,215,64,0.2);
}

.dash-badge--success {
  color: var(--clr-green);
  background: var(--clr-green-dim);
  border: 1px solid rgba(0,230,118,0.25);
}

/* Log lines */
.dash-log {
  font-size: 0.72rem;
  font-family: 'Space Grotesk', monospace;
  line-height: 1.6;
  color: var(--clr-text-muted);
  padding: 1px 0;
}

.dash-log--detect { color: var(--clr-yellow); }
.dash-log--success { color: var(--clr-green); }
.dash-log--warn    { color: rgba(255,215,64,0.7); }

.dash-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-cyan);
  animation: pulse-dot 1.6s ease infinite;
  flex-shrink: 0;
}

.dash-empty {
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.75rem;
  color: var(--clr-text-faint);
  font-style: italic;
}

/* ─── Supported Websites ─────────────────────────────────── */
.supported {
  position: relative;
  padding: var(--sp-32) 0;
  background: var(--clr-bg-alt);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
}

/* Decorative grid background using CSS only */
.supported__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
}

.supported__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3) var(--sp-5);
  max-width: 860px;
  margin-inline: auto;
}

.supported__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  padding: var(--sp-3) var(--sp-4);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-cyan-border);
  border-radius: var(--r-md);
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}

.supported__item:hover {
  color: var(--clr-text);
  border-color: var(--clr-cyan-border-h);
  background: var(--clr-bg-card-alt);
}

.supported__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-cyan);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--clr-cyan);
}


/* ─── FAQ ────────────────────────────────────────────────── */
.faq {
  padding: var(--sp-32) 0;
  background: var(--clr-bg-alt);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.faq__list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-cyan-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base);
}

.faq-item.is-open {
  border-color: var(--clr-cyan-border-h);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-text);
  text-align: left;
  transition: color var(--t-fast);
}

.faq-item__trigger:hover {
  color: var(--clr-cyan);
}

.faq-item__chevron {
  color: var(--clr-cyan);
  flex-shrink: 0;
  transition: transform var(--t-base);
}

.faq-item.is-open .faq-item__chevron {
  transform: rotate(180deg);
}

/* Height transition via max-height */
.faq-item__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s ease, padding 0.38s ease;
  padding: 0 var(--sp-6);
}

.faq-item__body[hidden] {
  display: block; /* override hidden so transitions work */
  max-height: 0;
  visibility: hidden;
}

.faq-item.is-open .faq-item__body {
  max-height: 400px;
  padding: 0 var(--sp-6) var(--sp-6);
  visibility: visible;
}

.faq-item__body p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  padding: var(--sp-16) 0;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.footer__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--clr-cyan));
}

.footer__wordmark {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  letter-spacing: -0.01em;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.footer__link {
  font-size: 0.85rem;
  color: var(--clr-text-faint);
  transition: color var(--t-fast);
}

.footer__link:hover {
  color: var(--clr-text-muted);
}

.footer__sep {
  color: var(--clr-text-faint);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--clr-text-faint);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  transition: color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
  color: var(--clr-cyan);
  border-color: var(--clr-cyan-border-h);
  box-shadow: 0 0 14px rgba(0,200,255,0.2);
}

.footer__invite {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  background: rgba(0, 200, 255, 0.06);
  border: 1px solid var(--clr-cyan-border);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--clr-text-faint);
}

/* ─── Focus Styles ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--clr-cyan);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ─── Animations ─────────────────────────────────────────── */

/* Floating animation for mockup + panels */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* Pulsing dot (badge / status indicators) */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__mockup,
  .dash-panel {
    animation: none;
  }

  .hero__badge-dot,
  .mockup-pulse,
  .dash-pulse {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Responsive — Tablet (≤1024px) ─────────────────────── */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-preview__panels {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-inline: auto;
  }

  /* No floating on stacked mobile panels */
  .dash-panel {
    animation: none;
  }

  .supported__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─── Responsive — Mobile (≤768px) ──────────────────────── */
@media (max-width: 768px) {
  .container {
    padding-inline: var(--sp-5);
  }

  /* Nav mobile */
  .nav__hamburger {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-4) var(--sp-5);
    gap: var(--sp-2);
    background: rgba(8, 12, 16, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--clr-border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-base), opacity var(--t-base);
  }

  .nav__menu.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-md);
    font-size: 1rem;
  }

  .nav__cta {
    margin-left: 0;
    text-align: center;
    padding: var(--sp-3) var(--sp-5);
    font-size: 0.95rem;
  }

  /* Hero stacked */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
    padding-top: var(--sp-10);
    padding-bottom: var(--sp-16);
  }

  .hero__headline {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }

  .hero__mockup {
    animation: none;
    margin-right: 0;
  }

  /* Features 1-col */
  .features__grid {
    grid-template-columns: 1fr;
  }

  /* Supported sites */
  .supported__list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Section spacing */
  .features,
  .dash-preview,
  .supported,
  .faq {
    padding: var(--sp-20) 0;
  }

  .section-header {
    margin-bottom: var(--sp-10);
  }
}

/* ─── Responsive — Small mobile (≤480px) ────────────────── */
@media (max-width: 480px) {
  .supported__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .mockup-statusbar {
    flex-wrap: wrap;
    gap: var(--sp-2);
  }

  .hero__actions {
    align-items: stretch;
  }

  .btn--disabled {
    justify-content: center;
  }
}

/* ============================================================
   FlippersAIO Mockup Styles (fm- prefix)
   Full app window UI components for hero + GUI showcase
   ============================================================ */

/* ─── App Window Shell ───────────────────────────────────── */
.fm-window {
  user-select: none;
  -webkit-user-select: none;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border: 1px solid rgba(0, 196, 224, 0.18);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 196, 224, 0.06),
    0 8px 40px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(0, 196, 224, 0.12);
  display: flex;
  flex-direction: column;
}

/* Hero variant — clipped height */
.fm-window--hero {
  max-height: 580px;
}

/* ─── Title Bar ──────────────────────────────────────────── */
.fm-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 38px;
  background: #080c0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.fm-titlebar__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fm-titlebar__dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.fm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fm-dot--red    { background: #ff5f57; }
.fm-dot--yellow { background: #febc2e; }
.fm-dot--green  { background: #28c840; }

.fm-titlebar__name {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.fm-titlebar__beta {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #00C4E0;
  background: rgba(0, 196, 224, 0.12);
  border: 1px solid rgba(0, 196, 224, 0.2);
  padding: 1px 5px;
  border-radius: 4px;
}

.fm-titlebar__controls {
  display: flex;
  gap: 4px;
  align-items: center;
}

.fm-ctrl-btn {
  width: 26px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #52525b;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  cursor: default;
  line-height: 1;
}

/* ─── App Body (sidebar + main) ──────────────────────────── */
.fm-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ─── Sidebar ────────────────────────────────────────────── */
.fm-sidebar {
  width: 160px;
  flex-shrink: 0;
  background: #0d1217;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Dashboard sidebar nav variant */
.fm-sidebar--nav {
  width: 140px;
}

.fm-sidebar__section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3f3f46;
}

.fm-sidebar__plus {
  font-size: 12px;
  color: #00C4E0;
  line-height: 1;
  font-weight: 400;
}

.fm-sidebar__search {
  margin: 0 8px 8px;
  width: calc(100% - 16px);
  background: #131b22;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 10px;
  color: #71717a;
  font-family: 'Inter', system-ui, sans-serif;
  outline: none;
}

.fm-sidebar__search::placeholder {
  color: #3f3f46;
}

/* Site section header in group list */
.fm-sidebar__site-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 3px;
}

.fm-site-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fm-sidebar__site-name {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #52525b;
}

/* Task group row */
.fm-group-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 20px;
  cursor: default;
  position: relative;
}

.fm-group-row--active {
  background: rgba(0, 196, 224, 0.1);
  border: 1px solid rgba(0, 196, 224, 0.2);
  border-radius: 5px;
  margin: 1px 6px;
  padding: 5px 8px 5px 14px;
}

.fm-group-row__name {
  font-size: 10px;
  color: #71717a;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-group-row--active .fm-group-row__name {
  color: #ffffff;
}

.fm-group-row__count {
  font-size: 9px;
  font-family: 'Courier New', monospace;
  color: #3f3f46;
}

.fm-checkout-badge {
  font-size: 9px;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Dashboard nav items */
.fm-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 11px;
  color: #71717a;
  cursor: default;
  position: relative;
}

.fm-nav-item--active {
  color: #ffffff;
  background: rgba(0, 196, 224, 0.08);
  border-left: 2px solid #00C4E0;
  padding-left: 10px;
}

.fm-nav-item__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: inherit;
}

/* ─── Main Panel ─────────────────────────────────────────── */
.fm-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #080c0f;
  overflow: hidden;
  min-width: 0;
}

/* ─── Panel Header ───────────────────────────────────────── */
.fm-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.fm-panel-header__title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.fm-panel-header__sep {
  color: #3f3f46;
  font-size: 12px;
}

.fm-panel-header__site {
  font-size: 11px;
  color: #52525b;
}

/* ─── Action Bar ─────────────────────────────────────────── */
.fm-action-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.fm-btn-create {
  font-size: 11px;
  font-weight: 600;
  color: #080c0f;
  background: #00C4E0;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

.fm-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #0d1217;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  color: #52525b;
  cursor: pointer;
  font-size: 11px;
  flex-shrink: 0;
}

.fm-action-bar__spacer {
  flex: 1;
}

.fm-search-input {
  background: #0d1217;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 10px;
  color: #71717a;
  width: 130px;
  font-family: 'Inter', system-ui, sans-serif;
  outline: none;
}

.fm-search-input::placeholder {
  color: #3f3f46;
}

/* ─── Stats Strip ────────────────────────────────────────── */
.fm-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #0d1217;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.fm-stat-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.fm-stat-cell:last-child {
  border-right: none;
}

.fm-stat-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fm-stat-icon svg {
  display: block;
}

.fm-stat-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fm-stat-label {
  font-size: 9px;
  color: #52525b;
  white-space: nowrap;
}

.fm-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

/* ─── Task Table ─────────────────────────────────────────── */
.fm-table-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 transparent;
}

.fm-table-wrap::-webkit-scrollbar {
  width: 3px;
}

.fm-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.fm-table-wrap::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 2px;
}

.fm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.fm-table-head {
  background: #0d1217;
  position: sticky;
  top: 0;
  z-index: 1;
}

.fm-th {
  padding: 6px 8px;
  font-size: 9px;
  font-weight: 600;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.fm-th--center {
  text-align: center;
}

.fm-tr--even {
  background: rgba(13, 18, 23, 0.4);
}

.fm-tr--odd {
  background: transparent;
}

.fm-td {
  padding: 6px 8px;
  font-size: 10px;
  color: #71717a;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  vertical-align: middle;
}

.fm-td--name {
  color: #a1a1aa;
  font-weight: 500;
}

.fm-td--mode {
  color: #52525b;
  font-size: 9px;
}

.fm-td--drag {
  color: #3f3f46;
  font-size: 14px;
  padding-right: 4px;
}

.fm-td--check {
  color: #3f3f46;
  font-size: 11px;
  text-align: center;
}

/* ─── Status Badges ──────────────────────────────────────── */
.fm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.fm-badge--checkout {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.fm-badge--queue {
  background: rgba(0, 196, 224, 0.10);
  color: #00C4E0;
}

.fm-badge--queue-detected {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
}

.fm-badge--cart {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}

.fm-badge--idle {
  background: rgba(82, 82, 91, 0.12);
  color: #52525b;
}

.fm-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.6s ease infinite;
  flex-shrink: 0;
}

/* ─── Status Bar ─────────────────────────────────────────── */
.fm-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 12px;
  background: #080c0f;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.fm-statusbar__left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fm-statusbar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}

.fm-statusbar__text {
  font-size: 9px;
  color: #71717a;
}

.fm-statusbar__sep {
  font-size: 9px;
  color: #27272a;
}

.fm-statusbar__version {
  font-size: 9px;
  color: #3f3f46;
}

.fm-statusbar__time {
  font-size: 9px;
  color: #52525b;
  font-family: 'Courier New', monospace;
}

/* ─── Dashboard Main Content ─────────────────────────────── */
.fm-dash-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #080c0f;
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 transparent;
}

.fm-dash-content::-webkit-scrollbar {
  width: 3px;
}

.fm-dash-content::-webkit-scrollbar-track {
  background: transparent;
}

.fm-dash-content::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 2px;
}

/* ─── Stat Cards Row ─────────────────────────────────────── */
.fm-stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.fm-card {
  background: #0d1217;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px;
}

.fm-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.fm-card__label {
  font-size: 10px;
  color: #71717a;
}

.fm-card__icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fm-card__value {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.fm-card__sub {
  font-size: 9px;
  color: #52525b;
  margin-bottom: 3px;
}

.fm-card__change {
  font-size: 9px;
  font-weight: 600;
}

.fm-card__change--up   { color: #22c55e; }
.fm-card__change--down { color: #ef4444; }

/* ─── Two-col row ────────────────────────────────────────── */
.fm-row-2col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.fm-row-2col-alt {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px;
}

/* ─── Performance Chart ──────────────────────────────────── */
.fm-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.fm-card__title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.fm-chart-toggles {
  display: flex;
  gap: 4px;
}

.fm-toggle-btn {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: none;
  cursor: default;
  font-family: 'Inter', system-ui, sans-serif;
}

.fm-toggle-btn--active {
  background: #00C4E0;
  color: #080c0f;
}

.fm-toggle-btn--inactive {
  background: transparent;
  color: #52525b;
}

.fm-chart-area {
  height: 120px;
  background: #080c0f;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.fm-chart-area svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Donut Chart / Site Checkouts ──────────────────────── */
.fm-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fm-donut-wrap svg {
  display: block;
}

.fm-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fm-legend-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fm-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fm-legend-label {
  font-size: 9px;
  color: #71717a;
  flex: 1;
}

.fm-legend-pct {
  font-size: 9px;
  color: #a1a1aa;
  font-weight: 600;
}

.fm-legend-bar-track {
  width: 100%;
  height: 2px;
  background: #131b22;
  border-radius: 1px;
  overflow: hidden;
  margin-top: -2px;
  margin-bottom: 2px;
}

.fm-legend-bar-fill {
  height: 100%;
  border-radius: 1px;
}

/* ─── Task Statistics mini grid ─────────────────────────── */
.fm-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.fm-mini-stat {
  background: #131b22;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fm-mini-stat__icon {
  width: 18px;
  height: 18px;
  margin-bottom: 2px;
}

.fm-mini-stat__value {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.fm-mini-stat__label {
  font-size: 9px;
  color: #52525b;
}

/* ─── Recent Orders table ────────────────────────────────── */
.fm-orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.fm-orders-actions {
  display: flex;
  gap: 4px;
}

.fm-orders-btn {
  font-size: 9px;
  color: #71717a;
  background: #131b22;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 3px 7px;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: default;
}

.fm-orders-table {
  width: 100%;
  border-collapse: collapse;
}

.fm-orders-thead {
  background: #131b22;
}

.fm-orders-th {
  font-size: 9px;
  font-weight: 600;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 8px;
  text-align: left;
  white-space: nowrap;
}

.fm-orders-tr--even {
  background: rgba(19, 27, 34, 0.4);
}

.fm-orders-td {
  font-size: 9px;
  color: #71717a;
  padding: 5px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  vertical-align: middle;
}

.fm-orders-td--product {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fm-product-badge {
  width: 24px;
  height: 24px;
  background: #131b22;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  color: #00C4E0;
  flex-shrink: 0;
}

.fm-orders-td--profit-up   { color: #22c55e; font-weight: 600; }
.fm-orders-td--profit-null { color: #52525b; }

/* ─── Responsive — hide mockup on small screens ──────────── */
@media (max-width: 768px) {
  .fm-sidebar {
    display: none;
  }

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

  .fm-stat-cards {
    grid-template-columns: 1fr;
  }

  .fm-row-2col,
  .fm-row-2col-alt {
    grid-template-columns: 1fr;
  }
}
