/* ==========================================================================
   FITNESS VAULT — CARBON OBSIDIAN & KINETIC VOLT-EMERALD REDESIGN SYSTEM
   Covers:
   1. Shared Design System, Surface Hierarchy, Typography & Accessibility
   2. Public Landing Page, Interactive Product Tour & Member Journey Simulator
   3. Desktop App Showcase & Dark Hardware Preview Overrides
   4. Workspace Shell (Sidebar, Header, Navigation, Modals, Tables)
   5. Gym Overview Dashboard (Pulse Telemetry, KPIs, Chart, Renewal Queue)
   6. Coordinated Motion System & Reduced-Motion Fallbacks
   ========================================================================== */

:root {
  --fv-obsidian-950: #06080C;
  --fv-obsidian-900: #090C12;
  --fv-obsidian-850: #0E131C;
  --fv-obsidian-800: #121824;
  --fv-obsidian-750: #171F2E;
  --fv-obsidian-700: #1E283A;
  --fv-line-subtle: rgba(244, 243, 238, 0.08);
  --fv-line-default: #222C3C;
  --fv-line-strong: #334258;
  --fv-volt: #C8FF2E;
  --fv-volt-hover: #DCFF6B;
  --fv-volt-dim: rgba(200, 255, 46, 0.12);
  --fv-volt-border: rgba(200, 255, 46, 0.36);
  --fv-emerald: #34D399;
  --fv-emerald-dim: rgba(52, 211, 153, 0.14);
  --fv-cyan: #38BDF8;
  --fv-cyan-dim: rgba(56, 189, 248, 0.14);
  --fv-amber: #FBBF24;
  --fv-amber-dim: rgba(251, 191, 36, 0.15);
  --fv-coral: #F87171;
  --fv-coral-dim: rgba(248, 113, 113, 0.15);
  --fv-shadow-lg: 0 24px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(244, 243, 238, 0.06);
  --fv-shadow-card: 0 14px 34px -12px rgba(0, 0, 0, 0.55);
  --fv-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --body: var(--font-sans);
  --heading: var(--font-display);
}

/* Global typography & numeric discipline */
html,
body {
  font-family: var(--font-sans) !important;
  background-color: var(--fv-obsidian-900);
  color: var(--ink);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-synthesis: weight style !important;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: var(--font-sans) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  font-synthesis: weight !important;
}

.marketing-refresh .hero h1,
.marketing-refresh .section-heading h2,
.marketing-refresh .landing-day-intro h2,
.marketing-refresh .landing-story-copy h2,
.marketing-refresh .faq-section h2,
.marketing-refresh .final-cta h2,
.marketing-refresh .fv-desktop-copy h2 {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.06 !important;
}

.stat-card strong,
.tour-stats strong,
.price-amount strong,
.fv-pulse-item strong,
.fv-chart-summary strong,
.recent-amount,
.mini-stats strong,
.data-table td,
.fv-desktop-kpis strong,
.fv-3d-badge,
.fv-3d-step,
.fv-3d-stat-pill b,
.hero-proof-item strong {
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.label-accent,
.small-overline,
.hero-eyebrow,
.cta-kicker,
.nav-caption,
.fv-3d-badge,
.fv-3d-step {
  font-family: var(--font-mono) !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase;
}

/* Refined Buttons & Interactive Controls */
.btn {
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 160ms var(--fv-ease-out),
              background-color 160ms var(--fv-ease-out),
              border-color 160ms var(--fv-ease-out),
              box-shadow 160ms var(--fv-ease-out),
              color 160ms var(--fv-ease-out);
}

.btn-primary {
  background: linear-gradient(180deg, #D4FF47 0%, #BCEF1E 100%) !important;
  color: #070A0E !important;
  border: 1px solid #DCFF6B !important;
  box-shadow: 0 8px 24px -6px rgba(200, 255, 46, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #E0FF70 0%, #C8FF2E 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(200, 255, 46, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.btn-secondary,
.btn-dark {
  background: rgba(22, 29, 40, 0.85) !important;
  color: var(--ink) !important;
  border: 1px solid #2E3B4E !important;
}

.btn-secondary:hover:not(:disabled),
.btn-dark:hover:not(:disabled) {
  background: #1C2534 !important;
  border-color: var(--fv-volt-border) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Semantic Status Pills */
.pill {
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  padding: 4px 10px;
}

.pill-success {
  background: var(--fv-emerald-dim) !important;
  color: #6EE7B7 !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
}

.pill-warning {
  background: var(--fv-amber-dim) !important;
  color: #FCD34D !important;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
}

.pill-danger {
  background: var(--fv-coral-dim) !important;
  color: #FCA5A5 !important;
  border: 1px solid rgba(248, 113, 113, 0.35) !important;
}

/* ==========================================================================
   PUBLIC LANDING PAGE (.marketing.marketing-refresh)
   ========================================================================== */

.marketing.marketing-refresh {
  background-color: var(--fv-obsidian-950);
  background-image:
    radial-gradient(950px 520px at 14% 3%, rgba(200, 255, 46, 0.09), transparent 65%),
    radial-gradient(850px 480px at 88% 8%, rgba(52, 211, 153, 0.07), transparent 65%),
    linear-gradient(180deg, #07090E 0%, #0A0E15 45%, #07090E 100%);
  position: relative;
}

/* Sticky Glass Header with Scroll Progress & Section Spy */
.marketing-refresh .marketing-header {
  background: rgba(11, 15, 22, 0.78) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(244, 243, 238, 0.09) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
}

.marketing-refresh .marketing-header.is-scrolled {
  background: rgba(9, 12, 18, 0.92) !important;
  border-color: rgba(200, 255, 46, 0.24) !important;
}

.marketing-refresh .marketing-header nav a {
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 600;
  transition: color 150ms ease, background-color 150ms ease;
}

.marketing-refresh .marketing-header nav a:hover,
.marketing-refresh .marketing-header nav a.is-active {
  color: var(--fv-volt) !important;
  background: rgba(200, 255, 46, 0.09);
}

/* Hero Section */
.marketing-refresh .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(200, 255, 46, 0.09);
  border: 1px solid rgba(200, 255, 46, 0.28);
  color: var(--fv-volt) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.marketing-refresh .hero-eyebrow i {
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px;
  background: var(--fv-volt) !important;
  box-shadow: 0 0 12px var(--fv-volt);
}

.marketing-refresh .hero-title-accent {
  color: var(--fv-volt) !important;
  text-shadow: 0 0 38px rgba(200, 255, 46, 0.22);
}

/* Live Sample Workspace Discovery Card in Hero */
.fv-sample-discovery {
  margin: 22px 0 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(19, 26, 38, 0.92), rgba(13, 18, 27, 0.92));
  border: 1px solid rgba(200, 255, 46, 0.26);
  box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.55);
}

.fv-sample-discovery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.fv-sample-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(200, 255, 46, 0.15);
  border: 1px solid rgba(200, 255, 46, 0.38);
  color: var(--fv-volt);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.fv-sample-discovery-head strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.fv-sample-discovery > p {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.fv-sample-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fv-sample-pills a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 243, 238, 0.12);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 150ms var(--fv-ease-out);
}

.fv-sample-pills a:hover {
  background: rgba(200, 255, 46, 0.14);
  border-color: var(--fv-volt);
  color: var(--fv-volt);
  transform: translateY(-1px);
}

/* Interactive Product Tour Window in Hero */
.marketing-refresh .product-demo {
  background: #0D121B !important;
  border: 1px solid rgba(244, 243, 238, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: var(--fv-shadow-lg);
  overflow: hidden;
}

.marketing-refresh .tour-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #090D14 !important;
  border-bottom: 1px solid #1E2736 !important;
  padding: 11px 16px !important;
}

.tour-open-demo {
  margin-left: auto;
  color: var(--fv-volt) !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(200, 255, 46, 0.1);
  border: 1px solid rgba(200, 255, 46, 0.28);
  transition: background-color 150ms ease, transform 150ms ease;
}

.tour-open-demo:hover {
  background: rgba(200, 255, 46, 0.2);
  transform: translateX(2px);
}

.marketing-refresh .tour-bars i {
  background: linear-gradient(180deg, #C8FF2E 0%, #34D399 100%) !important;
  border-radius: 5px 5px 2px 2px !important;
  box-shadow: 0 0 16px rgba(200, 255, 46, 0.22);
}

/* Spotlight Hover Effect on Landing & Pricing Cards */
.marketing-refresh .feature-card,
.marketing-refresh .price-card,
.marketing-refresh .step-card,
.marketing-refresh .landing-simulator,
.marketing-refresh .learning-panel,
.marketing-refresh .operations-release {
  background: linear-gradient(180deg, #111722 0%, #0C1018 100%) !important;
  border: 1px solid #202A3A !important;
  border-radius: 16px !important;
  box-shadow: var(--fv-shadow-card);
  position: relative;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .marketing-refresh .feature-card::before,
  .marketing-refresh .price-card::before,
  .marketing-refresh .step-card::before,
  .fv-download-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(380px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(200, 255, 46, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
  }
  .marketing-refresh .feature-card:hover::before,
  .marketing-refresh .price-card:hover::before,
  .marketing-refresh .step-card:hover::before,
  .fv-download-card:hover::before {
    opacity: 1;
  }
}

.marketing-refresh .feature-card.feature-card-primary {
  border-color: rgba(200, 255, 46, 0.34) !important;
  background: linear-gradient(160deg, #141D28 0%, #0E141D 100%) !important;
}

.marketing-refresh .price-card.featured {
  border: 1.5px solid var(--fv-volt) !important;
  background: linear-gradient(165deg, #152019 0%, #0E141D 55%, #0B1017 100%) !important;
  box-shadow: 0 24px 52px -16px rgba(200, 255, 46, 0.18);
}

/* ==========================================================================
   DESKTOP DOWNLOAD SECTION — DARK HARDWARE SHOWCASE OVERRIDES
   (Fixes legacy light-mode styles in desktop-downloads.css)
   ========================================================================== */

.fv-desktop-section {
  border-top: 1px solid var(--fv-line-default) !important;
  border-bottom: 1px solid var(--fv-line-default) !important;
}

.fv-desktop-window {
  background: #0D121B !important;
  border: 1px solid #253144 !important;
  border-radius: 16px !important;
  box-shadow: var(--fv-shadow-lg) !important;
}

.fv-desktop-titlebar {
  background: #080B10 !important;
  border-bottom: 1px solid #1E2736 !important;
  color: var(--muted) !important;
}

.fv-desktop-sidebar {
  background: #0A0E15 !important;
  border-right: 1px solid #1E2736 !important;
}

.fv-desktop-main {
  background: #0E141E !important;
}

.fv-desktop-card,
.fv-desktop-kpis > div {
  background: #141C28 !important;
  border: 1px solid #243044 !important;
  border-radius: 12px !important;
  color: var(--ink) !important;
}

.fv-desktop-card span,
.fv-desktop-kpis span,
.fv-desktop-card small {
  color: var(--muted) !important;
}

.fv-desktop-card strong,
.fv-desktop-kpis strong {
  color: var(--ink) !important;
}

.fv-desktop-bars i {
  background: linear-gradient(180deg, var(--fv-volt) 0%, var(--fv-emerald) 100%) !important;
}

.fv-download-card {
  background: linear-gradient(180deg, #121824 0%, #0D121B 100%) !important;
  border: 1px solid #232E40 !important;
  border-radius: 16px !important;
  color: var(--ink) !important;
  box-shadow: var(--fv-shadow-card) !important;
  position: relative;
  overflow: hidden;
  transition: transform 180ms var(--fv-ease-out), border-color 180ms var(--fv-ease-out) !important;
}

.fv-download-card:hover {
  transform: translateY(-3px);
  border-color: var(--fv-volt-border) !important;
}

.fv-download-card-primary {
  background: linear-gradient(165deg, #162219 0%, #101722 65%, #0C1119 100%) !important;
  border-color: var(--fv-volt) !important;
}

.fv-download-badge {
  background: rgba(200, 255, 46, 0.14) !important;
  color: var(--fv-volt) !important;
  border: 1px solid rgba(200, 255, 46, 0.32) !important;
  border-radius: 999px !important;
}

.fv-download-card h3 {
  color: var(--ink) !important;
}

.fv-download-card p,
.fv-download-meta {
  color: var(--muted) !important;
}

.fv-download-meta {
  border-top: 1px solid #222C3D !important;
}

.fv-desktop-Trust {
  background: rgba(16, 22, 32, 0.85) !important;
  border: 1px solid #232E40 !important;
  border-radius: 14px !important;
}

/* ==========================================================================
   WORKSPACE SHELL & GYM OVERVIEW DASHBOARD (.app-shell)
   ========================================================================== */

.app-shell {
  background: var(--fv-obsidian-950) !important;
}

.sidebar {
  background: #090D14 !important;
  border-right: 1px solid #1D2636 !important;
}

.nav-item {
  border-radius: 10px !important;
  font-weight: 600;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.nav-item:hover {
  background: rgba(244, 243, 238, 0.05) !important;
  color: #FFFFFF !important;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(200, 255, 46, 0.16) 0%, rgba(200, 255, 46, 0.05) 100%) !important;
  color: var(--fv-volt) !important;
  border: 1px solid rgba(200, 255, 46, 0.34) !important;
  box-shadow: inset 3px 0 0 var(--fv-volt);
}

.topbar {
  background: rgba(9, 13, 20, 0.82) !important;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid #1D2636 !important;
}

/* Overview Operational Pulse Strip */
.fv-overview-pulse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(18, 25, 36, 0.95) 0%, rgba(14, 20, 30, 0.95) 100%);
  border: 1px solid #232E40;
  box-shadow: var(--fv-shadow-card);
}

.fv-pulse-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-right: 10px;
  border-right: 1px solid rgba(244, 243, 238, 0.08);
}

.fv-pulse-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.fv-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--fv-emerald);
  box-shadow: 0 0 10px var(--fv-emerald);
  flex-shrink: 0;
}

.fv-pulse-item span {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.fv-pulse-item strong {
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.fv-pulse-item strong.is-positive {
  color: var(--fv-volt);
}

.fv-pulse-item strong.is-negative {
  color: var(--fv-coral);
}

/* Overview Primary Action Bar */
.overview-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

/* KPI Stat Cards */
.stats-grid .stat-card {
  background: linear-gradient(180deg, #121926 0%, #0E131D 100%) !important;
  border: 1px solid #222D3F !important;
  border-radius: 15px !important;
  padding: 20px !important;
  box-shadow: var(--fv-shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 160ms var(--fv-ease-out), border-color 160ms var(--fv-ease-out);
}

.stats-grid .stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 255, 46, 0.35) !important;
}

.stat-top span:first-child {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.stat-icon {
  background: rgba(200, 255, 46, 0.12) !important;
  color: var(--fv-volt) !important;
  border: 1px solid rgba(200, 255, 46, 0.26) !important;
  border-radius: 10px !important;
}

.stat-meter {
  margin-top: 12px;
  height: 6px;
  border-radius: 999px;
  background: rgba(244, 243, 238, 0.08);
  overflow: hidden;
}

.stat-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fv-volt) 0%, var(--fv-emerald) 100%);
}

.stat-submeta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(244, 243, 238, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.stat-submeta strong.is-pos {
  color: var(--fv-emerald);
}

.stat-submeta strong.is-neg {
  color: var(--fv-coral);
}

/* Financial Overview Chart & 6-Month Summary */
.fv-chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(9, 13, 20, 0.65);
  border: 1px solid #1F293A;
}

.fv-chart-summary > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fv-chart-summary span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.fv-chart-summary strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.fv-chart-summary strong.is-positive {
  color: var(--fv-volt);
}

.fv-chart-summary strong.is-negative {
  color: var(--fv-coral);
}

.chart-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.fv-chart-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

/* Priority Membership Follow-Up Queue inside Overview */
.fv-overview-queue {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #212B3B;
}

.fv-overview-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.fv-overview-queue-head strong {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.fv-overview-queue-list {
  display: grid;
  gap: 8px;
}

.fv-queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(9, 13, 20, 0.68);
  border: 1px solid #202B3B;
  transition: border-color 140ms ease;
}

.fv-queue-row:hover {
  border-color: rgba(200, 255, 46, 0.32);
}

.fv-queue-member {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fv-queue-member > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fv-queue-member strong {
  font-size: 0.9rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fv-queue-member small {
  font-size: 0.77rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fv-queue-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fv-queue-actions .btn {
  padding: 6px 10px !important;
  font-size: 0.78rem !important;
  min-height: 32px !important;
}

/* Recent Activity Semantic Styling */
.activity-bubble.is-payment {
  background: rgba(200, 255, 46, 0.14) !important;
  color: var(--fv-volt) !important;
  border: 1px solid rgba(200, 255, 46, 0.3) !important;
}

.activity-bubble.is-checkin {
  background: var(--fv-cyan-dim) !important;
  color: var(--fv-cyan) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.recent-amount.is-payment {
  color: var(--fv-volt) !important;
  font-weight: 800;
}

.recent-amount.is-checkin {
  color: var(--muted) !important;
}

/* Responsive Breakpoints for New Overview & Hero Elements */
@media (max-width: 980px) {
  .fv-overview-pulse {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fv-pulse-item:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .fv-overview-pulse {
    grid-template-columns: 1fr;
  }
  .fv-pulse-item {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(244, 243, 238, 0.07);
  }
  .fv-pulse-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .fv-chart-summary {
    grid-template-columns: 1fr;
  }
  .fv-queue-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .fv-queue-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   ACCESSIBILITY & REDUCED-MOTION GUARANTEE
   ========================================================================== */

/* ==========================================================================
   3D SPATIAL HERO STAGE, 3D BENTO GALLERY & DASHBOARD ALIGNMENT OVERRIDES
   ========================================================================== */

/* 3D Hero Stage & Floating Spatial Layers (.fv-hero-3d-rig) */
.marketing-refresh .hero-visual.fv-hero-3d-rig {
  position: relative;
  perspective: 1400px;
  transform-style: preserve-3d;
  padding: 22px 18px 24px;
  isolation: isolate;
}

.marketing-refresh .hero-visual.fv-hero-3d-rig::before {
  display: none !important;
}

.marketing-refresh .fv-3d-StageGlow {
  position: absolute;
  inset: 8% 4% 10% 6%;
  background: radial-gradient(circle at 50% 45%, rgba(200, 255, 46, 0.22), rgba(52, 211, 153, 0.1) 52%, transparent 75%);
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
}

.marketing-refresh .fv-3d-backdrop-card {
  position: absolute;
  top: -6px;
  right: -4px;
  width: 248px;
  height: 152px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(200, 255, 46, 0.34);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
  transform: translate3d(8px, -8px, -28px) rotate(3deg);
  z-index: 1;
  pointer-events: none;
}

.marketing-refresh .fv-3d-backdrop-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05) brightness(0.84);
}

.marketing-refresh .fv-3d-backdrop-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 255, 46, 0.35);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.marketing-refresh .fv-3d-backdrop-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fv-volt);
  box-shadow: 0 0 8px var(--fv-volt);
}

.marketing-refresh .hero-visual.fv-hero-3d-rig .product-demo {
  position: relative;
  z-index: 2;
  background: rgba(16, 21, 29, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top-color: rgba(200, 255, 46, 0.38) !important;
  border-radius: 18px !important;
  box-shadow:
    0 32px 70px -20px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
  transform: rotateX(var(--fv-tilt-x, 2.2deg)) rotateY(var(--fv-tilt-y, -3.2deg));
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease;
}

.marketing-refresh .tour-note {
  background: rgba(200, 255, 46, 0.1) !important;
  border: 1px solid rgba(200, 255, 46, 0.28) !important;
  color: var(--ink) !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
}

.marketing-refresh .tour-note strong {
  color: var(--fv-volt) !important;
  font-weight: 700 !important;
}

.marketing-refresh .fv-3d-float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(12, 16, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 255, 46, 0.34);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.65);
  transform: translateZ(36px);
}

.marketing-refresh .fv-3d-float-top {
  top: 2px;
  left: -6px;
}

.marketing-refresh .fv-3d-float-bottom {
  bottom: 42px;
  right: -6px;
}

.marketing-refresh .fv-3d-float-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(200, 255, 46, 0.14);
  color: var(--fv-volt);
  flex-shrink: 0;
}

.marketing-refresh .fv-3d-float-icon.emerald {
  background: rgba(52, 211, 153, 0.15);
  color: var(--fv-emerald);
}

.marketing-refresh .fv-3d-float-card > div {
  display: grid;
  gap: 1px;
}

.marketing-refresh .fv-3d-float-card small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--fv-volt);
  text-transform: uppercase;
}

.marketing-refresh .fv-3d-float-card strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.marketing-refresh .hero-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.marketing-refresh .hero-proof-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(16, 21, 29, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.marketing-refresh .hero-proof-item strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fv-volt);
}

.marketing-refresh .hero-proof-item span {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}

/* 3D Spatial Architecture & Luxury Gym Bento Gallery (#showcase) */
.marketing-refresh .fv-3d-gallery-section {
  padding-top: 84px;
  padding-bottom: 44px;
}

.marketing-refresh .fv-3d-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  perspective: 1400px;
}

.marketing-refresh .fv-3d-showcase-card {
  grid-column: span 5;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22, 29, 40, 0.88) 0%, rgba(13, 18, 26, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 54px -22px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateX(var(--fv-tilt-x, 0deg)) rotateY(var(--fv-tilt-y, 0deg));
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 240ms ease;
}

.marketing-refresh .fv-3d-showcase-card.fv-3d-card-wide {
  grid-column: span 7;
}

.marketing-refresh .fv-3d-showcase-card:hover {
  border-color: rgba(200, 255, 46, 0.42);
  box-shadow:
    0 30px 68px -20px rgba(0, 0, 0, 0.82),
    0 0 32px -12px rgba(200, 255, 46, 0.24);
}

.marketing-refresh .fv-3d-card-media {
  position: relative;
  height: 248px;
  overflow: hidden;
  background: #080A0E;
}

.marketing-refresh .fv-3d-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.marketing-refresh .fv-3d-showcase-card:hover .fv-3d-card-media img {
  transform: scale(1.045);
}

.marketing-refresh .fv-3d-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.12) 0%, rgba(8, 10, 14, 0.35) 50%, rgba(13, 18, 26, 0.96) 100%);
  pointer-events: none;
}

.marketing-refresh .fv-3d-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 255, 46, 0.35);
  color: var(--fv-volt);
  font-size: 0.68rem;
  font-weight: 700;
}

.marketing-refresh .fv-3d-floating-ui {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 13px;
  background: rgba(12, 16, 23, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}

.marketing-refresh .fv-3d-stat-pill {
  display: grid;
  gap: 2px;
}

.marketing-refresh .fv-3d-stat-pill span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.marketing-refresh .fv-3d-stat-pill b {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.marketing-refresh .fv-3d-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(200, 255, 46, 0.14);
  border: 1px solid rgba(200, 255, 46, 0.32);
  color: var(--fv-volt);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.marketing-refresh .fv-3d-live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fv-volt);
  box-shadow: 0 0 8px var(--fv-volt);
}

.marketing-refresh .fv-3d-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.marketing-refresh .fv-3d-step {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fv-volt);
}

.marketing-refresh .fv-3d-card-body h3 {
  font-size: 1.32rem !important;
  font-weight: 700 !important;
  color: var(--ink);
  margin: 0;
}

.marketing-refresh .fv-3d-card-body p {
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--muted);
  margin: 0;
}

/* Story 3D Stack & 4-Column Toolkit Grid */
.marketing-refresh .fv-story-3d-stack {
  position: relative;
  perspective: 1200px;
  padding-bottom: 18px;
}

.marketing-refresh .fv-story-main-figure {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 60px -22px rgba(0, 0, 0, 0.75);
}

.marketing-refresh .fv-story-main-figure img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.marketing-refresh .fv-story-sub-figure {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(200, 255, 46, 0.38);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.75);
}

.marketing-refresh .fv-story-sub-figure img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.marketing-refresh .fv-story-sub-badge {
  padding: 9px 12px;
  background: rgba(12, 16, 23, 0.95);
  display: grid;
  gap: 2px;
}

.marketing-refresh .fv-story-sub-badge span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fv-volt);
}

.marketing-refresh .fv-story-sub-badge strong {
  font-size: 0.78rem;
  color: var(--ink);
}

.marketing-refresh .landing-toolkit {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-top: 20px !important;
}

.marketing-refresh .landing-toolkit > div {
  padding: 22px !important;
  border-radius: 16px !important;
  background: rgba(16, 21, 29, 0.84) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

/* Workspace Sidebar, Topbar & Dashboard Overview Alignment Fixes */
.app-shell .sidebar-nav {
  overflow: visible !important;
  max-height: none !important;
  flex: 1 0 auto !important;
}

.app-shell .topbar,
.app-shell .topbar-left,
.app-shell .topbar-right {
  display: flex !important;
  align-items: center !important;
}

.app-shell .topbar-right {
  justify-content: flex-end !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.app-shell .topbar-help {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  text-decoration: none !important;
}

.app-shell .round-avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(200, 255, 46, 0.14) !important;
  border: 1px solid rgba(200, 255, 46, 0.35) !important;
  color: var(--fv-volt) !important;
  font-weight: 700 !important;
}

.app-shell .date-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  white-space: nowrap !important;
}

.app-shell .fv-pulse-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 10px 14px !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.app-shell .fv-pulse-item strong {
  margin-left: 0 !important;
  font-size: 0.95rem !important;
}

@media (min-width: 1100px) {
  .app-shell .overview-layout,
  .app-shell .overview-layout.overview-priority {
    display: grid !important;
    grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.35fr) !important;
    gap: 20px !important;
    align-items: start !important;
  }
  .app-shell .overview-priority > .chart-card {
    order: 0 !important;
  }
}

.app-shell .chart-key {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  margin: 12px 0 14px !important;
}

.app-shell .dot-green,
.app-shell .dot-blue {
  display: inline-block !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  margin-right: 6px !important;
}

.app-shell .dot-green {
  background: var(--fv-volt) !important;
  box-shadow: 0 0 8px rgba(200, 255, 46, 0.5) !important;
}

.app-shell .dot-blue {
  background: #94A3B8 !important;
}

.app-shell .fv-setup-checklist {
  margin-top: 24px !important;
}

@media (max-width: 1080px) {
  .marketing-refresh .fv-3d-showcase-card,
  .marketing-refresh .fv-3d-showcase-card.fv-3d-card-wide {
    grid-column: span 6;
  }
  .marketing-refresh .landing-toolkit {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 780px) {
  .marketing-refresh .fv-3d-gallery-grid {
    grid-template-columns: 1fr;
  }
  .marketing-refresh .fv-3d-showcase-card,
  .marketing-refresh .fv-3d-showcase-card.fv-3d-card-wide {
    grid-column: 1 / -1;
  }
  .marketing-refresh .hero-proof-strip {
    grid-template-columns: 1fr;
  }
  .marketing-refresh .fv-3d-backdrop-card,
  .marketing-refresh .fv-3d-float-card {
    display: none;
  }
  .marketing-refresh .fv-story-sub-figure {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
