:root {
  --bg: #09090b;
  --bg-deep: #050507;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f2ee;
  --muted: rgba(244, 242, 238, 0.55);
  --accent: #c97930;
  --accent-hover: #d8873b;
  --highlight: #f2c94c;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(20, 60, 120, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 75%, rgba(15, 50, 100, 0.35) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(15, 50, 100, 0.3) 0%, transparent 45%),
    #050510;
}

body.is-loading {
  overflow: hidden;
}

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

h1, h2, h3, p, ul, ol {
  margin-top: 0;
}

/* -- Page loader -- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #09090b;
  transition: opacity 280ms ease, visibility 280ms ease;
}

body:not(.is-loading) .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__inner {
  width: min(320px, 100%);
}

.page-loader__track {
  overflow: hidden;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.page-loader__bar {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), #fff, rgba(255, 255, 255, 0.8));
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
  animation: buffer-load 2s ease-in-out forwards;
}

@keyframes buffer-load {
  0% { transform: scaleX(0.08); }
  35% { transform: scaleX(0.48); }
  70% { transform: scaleX(0.76); }
  100% { transform: scaleX(1); }
}

/* ============================
   NAV BAR (PvX style)
   ============================ */
.nav-bar {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1280px, calc(100% - 2rem));
  padding: 0.65rem 1.5rem;
  background: rgba(8, 12, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(80, 140, 220, 0.1);
  border-radius: 999px;
  animation: fade-in 0.6s ease-out 0.3s both;
}

.nav-bar.nav-instant {
  animation: none;
  opacity: 1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1 1 0;
  min-width: 0;
}

.nav-right {
  justify-content: flex-end;
}

.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(calc(-50% - 0.25em));
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #fff;
}

.nav-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 180ms ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(100, 160, 240, 0.25);
  background: rgba(60, 120, 220, 0.08);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-cta-outline:hover {
  background: rgba(60, 120, 220, 0.15);
  border-color: rgba(100, 160, 240, 0.4);
  box-shadow: 0 0 20px rgba(60, 120, 220, 0.15);
}

.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 180ms ease;
}

.nav-hamburger:hover {
  color: #fff;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0.75rem;
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(80, 140, 220, 0.15);
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 160px;
  z-index: 200;
}

.nav-dropdown.is-open {
  display: block;
}

.nav-dropdown__link {
  display: block;
  padding: 0.6rem 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 180ms ease, background 180ms ease;
}

.nav-dropdown__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* ============================
   LANDING PAGE HERO
   ============================ */
.landing {
  position: relative;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}


.hero-bg::after {
  display: none;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(20, 60, 120, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 75%, rgba(15, 50, 100, 0.3) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(15, 50, 100, 0.25) 0%, transparent 45%);
  pointer-events: none;
  transition: transform 0.1s linear;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-glow {
  display: none;
}


/* -- Background video -- */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-bg-video.is-ready {
  opacity: 1;
}

.hero-bg-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  pointer-events: none;
  opacity: 0.25;
  transition: opacity 0.4s ease;
}

/* Hide still once the video is loaded and scrubbing */
.hero-bg:has(.hero-bg-video.is-ready) .hero-bg-still {
  opacity: 0;
}


.hero {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100vh;
  padding: 18vh 2rem 4rem;
  text-align: center;
}


.hero-content {
  max-width: 900px;
}

/* -- Entrance animations -- */
@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes clip-reveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(80, 140, 220, 0.15);
  background: rgba(20, 40, 70, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.badge-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(160, 200, 255, 0.7);
}

/* Headline */
.hero h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(3.5rem, 8vw, 6.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6), 0 0 60px rgba(40, 100, 200, 0.08);
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

.h1-light {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  display: inline-block;
  animation: fade-in 0.6s ease-out 0.7s both;
}

/* Subtitle */
.hero-sub {
  margin: 0 auto 2.2rem;
  max-width: 560px;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

/* CTA row */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #09090b;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 0 24px rgba(80, 140, 240, 0.15);
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(80, 140, 240, 0.25);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(170, 200, 245, 0.55);
  font-size: 0.84rem;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 180ms ease;
}

.btn-text:hover {
  color: #fff;
}

.btn-text .arrow {
  font-size: 1.2rem;
  line-height: 1;
}

/* ============================
   SECTIONS BELOW HERO
   ============================ */
.section-shell {
  width: min(1100px, calc(100% - 3rem));
  margin: 0 auto;
}

.section-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(160, 200, 255, 0.5);
  margin: 0 0 1.2rem;
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 3rem;
}

/* -- Scroll reveal -- */
.offer-section,
.how-section,
.automate-section,
.final-cta {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.offer-section.is-visible,
.how-section.is-visible,
.automate-section.is-visible,
.final-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- THE OFFER (inside .landing, over the wave) -- */
.offer-section {
  position: relative;
  z-index: 3;
  padding: 8rem 0 6rem;
}

.offer-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.offer-headline {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.h2-light {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
}

.offer-body {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto 0.75rem;
  max-width: 520px;
}

.offer-body--muted {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.92rem;
  margin-bottom: 2.2rem;
}

.offer-actions {
  display: flex;
  justify-content: center;
}

/* -- HOW IT WORKS -- */
.how-section {
  position: relative;
  z-index: 3;
  padding: 6rem 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  padding: 2rem 1.8rem;
  border: 1px solid rgba(80, 140, 220, 0.08);
  border-radius: 20px;
  background: rgba(15, 20, 35, 0.6);
  transition: border-color 300ms ease, background 300ms ease;
}

.step-card:hover {
  border-color: rgba(80, 140, 220, 0.2);
  background: rgba(20, 30, 50, 0.6);
}

.step-number {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(100, 160, 240, 0.5);
  margin-bottom: 1.2rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.6rem;
}

.step-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* -- WHAT WE AUTOMATE -- */
.automate-section {
  position: relative;
  z-index: 3;
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem 2rem;
  border: 1px solid rgba(80, 140, 220, 0.08);
  border-radius: 20px;
  background: rgba(15, 20, 35, 0.5);
  transition: border-color 300ms ease, background 300ms ease;
}

.feature-card:hover {
  border-color: rgba(80, 140, 220, 0.18);
  background: rgba(20, 30, 50, 0.5);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(60, 120, 220, 0.08);
  border: 1px solid rgba(80, 140, 220, 0.12);
  color: rgba(140, 190, 255, 0.7);
  margin-bottom: 1.2rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem;
}

.feature-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
}

/* -- BOTTOM CTA -- */
.final-cta {
  position: relative;
  z-index: 3;
  padding: 6rem 0 8rem;
  text-align: center;
}

.final-cta-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 1rem;
}

.final-cta-sub {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  max-width: 480px;
  margin: 0 auto 2.2rem;
}

.btn-primary--lg {
  padding: 0.75rem 2rem;
  font-size: 0.92rem;
}

/* ============================
   AUTOMATIONS PAGE (kept from previous design)
   ============================ */
.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Automations page uses its own nav style matching the landing */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.brand {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #f7f5f1;
}

.eyebrow,
.card-label {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.28em;
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 188px;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.primary-cta {
  background: #fff;
  color: #09090b;
}

.secondary-cta {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(244, 242, 238, 0.9);
}

.primary-cta:hover,
.secondary-cta:hover {
  transform: translateY(-1px);
}

.primary-cta:hover {
  background: rgba(255, 255, 255, 0.88);
}

.secondary-cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

/* -- Automations hero -- */
.automation-hero {
  padding: 4rem 0 2rem;
}

.automation-hero .eyebrow {
  margin-bottom: 1rem;
}

.automation-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.automation-hero .subtext {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 52ch;
}

/* -- Scenario card -- */
.scenario-card {
  margin: 0 auto;
  max-width: 560px;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(36, 40, 46, 0.92), rgba(28, 32, 38, 0.94));
  box-shadow: var(--shadow);
}

.scenario-card .card-label {
  margin-bottom: 1.4rem;
}

.chat-line {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.chat-line:last-child {
  margin-bottom: 0;
}

.chat-label {
  flex-shrink: 0;
  width: 5.5rem;
  padding-top: 0.55rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.chat-label.system-label {
  color: var(--highlight);
}

.chat-bubble {
  padding: 0.65rem 1rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 380px;
}

.chat-bubble.outbound {
  background: rgba(201, 121, 48, 0.15);
  color: #f2c293;
  border: 1px solid rgba(201, 121, 48, 0.2);
}

.chat-bubble.inbound {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.chat-bubble.notify {
  background: rgba(242, 201, 76, 0.1);
  color: #f9f1c6;
  border: 1px solid rgba(242, 201, 76, 0.15);
}

.chat-divider {
  margin: 1.2rem 0;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* -- Bottom CTA -- */
.bottom-cta {
  padding: 3rem 0 5rem;
  text-align: center;
}

.bottom-cta h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* ============================
   WORKSPACE (Automations page)
   ============================ */
.workspace {
  padding: 5.5rem 0 3rem;
  min-height: 100vh;
}

.workspace__shell {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.workspace__header {
  margin-bottom: 2rem;
}

.workspace__header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}

.workspace__cta {
  text-align: center;
  padding: 3rem 0 2rem;
}

/* -- Tabs -- */
.ws-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0;
}

.ws-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.35);
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
  margin-bottom: -1px;
}

.ws-tab:hover {
  color: rgba(255, 255, 255, 0.6);
}

.ws-tab.is-active {
  color: #fff;
  border-bottom-color: rgba(100, 160, 240, 0.6);
}

.ws-tab svg {
  opacity: 0.5;
  transition: opacity 200ms ease;
}

.ws-tab.is-active svg {
  opacity: 0.85;
}

.ws-tab--disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.ws-tab--disabled:hover {
  color: rgba(255, 255, 255, 0.35);
}

.ws-tab__soon {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* -- Panel -- */
.ws-panel {
  position: relative;
  min-height: 480px;
}

.ws-demo {
  display: none;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  animation: ws-fade-in 0.3s ease-out;
}

.ws-demo.is-active {
  display: grid;
}

@keyframes ws-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sidebar */
.ws-demo__sidebar {
  padding: 1.5rem 0;
}

.ws-demo__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
}

.ws-demo__desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.42);
  margin: 0 0 1.5rem;
}

.ws-demo__meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ws-demo__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ws-demo__meta-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.ws-demo__meta-value {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Demo view */
.ws-demo__view {
  padding: 1.5rem;
  border: 1px solid rgba(80, 140, 220, 0.08);
  border-radius: 16px;
  background: rgba(10, 15, 28, 0.6);
}

.ws-demo__view-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(100, 160, 240, 0.4);
  margin-bottom: 1.2rem;
}

.ws-demo__view .scenario-card {
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

/* ============================
   VISUAL FLOW DEMO
   ============================ */
.ws-demo--flow {
  display: none;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: flex-start;
  gap: 0;
  padding: 2rem 0;
}

.ws-demo--flow.is-active {
  display: grid;
}

/* Step */
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.flow-step__label {
  text-align: center;
}

.flow-step__num {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(100, 160, 240, 0.45);
  margin-bottom: 0.3rem;
}

.flow-step__text {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

/* Connector */
.flow-connector {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 5.5rem;
  align-self: flex-start;
}

.flow-connector__line {
  width: 24px;
  height: 1px;
  background: rgba(100, 160, 240, 0.15);
}

.flow-connector__badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(100, 160, 240, 0.4);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(100, 160, 240, 0.12);
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(10, 20, 40, 0.8);
}

/* ============================
   PHONE MOCKUP
   ============================ */
.phone {
  position: relative;
  width: 220px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(20, 24, 36, 1) 0%, rgba(14, 18, 28, 1) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(60, 120, 220, 0.06);
  overflow: hidden;
}

.phone__notch {
  width: 80px;
  height: 20px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 0 0 14px 14px;
  position: relative;
  z-index: 2;
}

.phone__screen {
  padding: 0.8rem 1rem 1.2rem;
  min-height: 320px;
}

/* -- Call screen -- */
.phone__screen--call {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(220, 50, 50, 0.08) 0%, transparent 60%);
}

.call-ui {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.call-ui__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
}

.call-ui__number {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.call-ui__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(240, 80, 80, 0.85);
}

.call-ui__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.call-ui__dot--red {
  background: rgba(240, 80, 80, 0.8);
  box-shadow: 0 0 8px rgba(240, 80, 80, 0.4);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.call-ui__time {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.25);
}

/* -- SMS screen -- */
.phone__screen--sms {
  display: flex;
  flex-direction: column;
  padding-top: 0.4rem;
}

.sms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.6rem;
}

.sms-header__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.sms-header__tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(74, 222, 128, 0.6);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.1);
}

.sms-thread {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sms {
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  font-size: 0.62rem;
  line-height: 1.45;
  max-width: 88%;
}

.sms--out {
  align-self: flex-end;
  background: rgba(60, 120, 220, 0.22);
  color: rgba(160, 200, 255, 0.8);
  border: 1px solid rgba(60, 120, 220, 0.12);
  border-bottom-right-radius: 4px;
}

.sms--in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 4px;
}

/* -- Notification screen -- */
.phone__screen--notify {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.5rem;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(242, 201, 76, 0.04) 0%, transparent 60%);
}

.notify-card {
  padding: 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.notify-card--secondary {
  opacity: 0.6;
}

.notify-card__header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.notify-card__icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(242, 201, 76, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242, 201, 76, 0.7);
}

.notify-card--secondary .notify-card__icon {
  background: rgba(74, 222, 128, 0.1);
  color: rgba(74, 222, 128, 0.7);
}

.notify-card__app {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  flex: 1;
}

.notify-card__when {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.2);
}

.notify-card__title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

.notify-card__body {
  font-size: 0.6rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--line);
  padding: 3rem 1.5rem 1.5rem;
  background: var(--bg-deep);
}


.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-footer__logo {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #fff;
}

.site-footer__tagline {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0;
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
}

.site-footer__links a {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 180ms ease;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__bottom {
  max-width: 1080px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.site-footer__bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
}

/* -- Legal pages (privacy, terms, sms-consent) -- */
.legal-page {
  padding: 8rem 1.5rem 4rem;
  min-height: 100vh;
}

.legal-container {
  max-width: 720px;
  margin: 0 auto;
}

.legal-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(244, 242, 238, 0.8);
  margin-bottom: 0.75rem;
}

.legal-section ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-section li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(244, 242, 238, 0.8);
  margin-bottom: 0.4rem;
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--accent-hover);
}

.legal-example {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(244, 242, 238, 0.75);
  font-style: italic;
  margin: 0.75rem 0;
}

/* -- Reduced motion: pause video -- */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video {
    animation: none;
  }
}

/* ============================
   LOGIN PAGE
   ============================ */
.nav-link--active {
  color: #fff;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6rem 1.5rem 2rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem 2rem;
  background: rgba(8, 12, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(80, 140, 220, 0.1);
  border-radius: 20px;
  text-align: center;
}

.login-card__logo {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #fff;
  margin-bottom: 0.25rem;
}

.login-card__subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-field {
  text-align: left;
}

.login-field__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.login-field__input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.login-field__input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.login-field__input:focus {
  border-color: rgba(100, 160, 240, 0.4);
  box-shadow: 0 0 0 3px rgba(60, 120, 220, 0.1);
}

.login-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: rgba(60, 120, 220, 0.08);
  border: 1px solid rgba(100, 160, 240, 0.25);
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.login-btn:hover {
  background: rgba(60, 120, 220, 0.15);
  border-color: rgba(100, 160, 240, 0.4);
  box-shadow: 0 0 20px rgba(60, 120, 220, 0.15);
}

.login-request {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0;
}

.login-request a {
  color: rgba(100, 160, 240, 0.9);
  font-weight: 500;
  transition: color 180ms ease;
}

.login-request a:hover {
  color: #fff;
}

.login-error {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #f87171;
  min-height: 1.2em;
  margin-bottom: 0;
}

.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================
   DASHBOARD v2 — Premium Single Page
   ============================ */

/* -- Header -- */
.dash-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dash-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
}

.dash-header__logo {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #fff;
}

.dash-header__signout {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color 450ms ease;
}

.dash-header__signout:hover {
  color: #f87171;
  transition: color 125ms ease;
}

/* -- Main content -- */
.dash-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 2rem 4rem;
  opacity: 0;
  animation: dash-fadein 300ms ease-out forwards;
}

/* -- Stepper -- */
.dash-stepper {
  text-align: center;
  margin-bottom: 48px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.dash-stepper__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.dash-stepper__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
  max-width: 600px;
}

.dash-stepper__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
}

.dash-stepper__circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  transition: all 300ms ease-out;
}

.dash-stepper__circle--completed {
  background: var(--accent);
  border-color: var(--accent);
}

.dash-stepper__circle--completed svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

.dash-stepper__circle--current {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 121, 48, 0.15);
  animation: stepper-pulse 2s ease infinite;
}

.dash-stepper__circle--current::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.dash-stepper__circle--upcoming {
  border-color: rgba(255, 255, 255, 0.15);
}

@keyframes stepper-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201, 121, 48, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(201, 121, 48, 0.08); }
}

.dash-stepper__name {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

.dash-stepper__node--completed .dash-stepper__name {
  color: var(--text);
  font-weight: 500;
}

.dash-stepper__node--current .dash-stepper__name {
  color: var(--text);
  font-weight: 600;
}

.dash-stepper__connector {
  flex: 1;
  height: 2px;
  min-width: 40px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 0.5rem;
  margin-bottom: 1.85rem; /* align with circles, not labels */
}

.dash-stepper__connector--completed {
  background: var(--accent);
}

.dash-stepper__context {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1.5rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* -- Activity feed -- */
.dash-activity__title {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.dash-activity__feed {
  min-height: 250px;
}

/* Empty state */
.dash-activity__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  text-align: center;
}

.dash-activity__empty-icon {
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 0.75rem;
}

.dash-activity__empty-text {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 320px;
}

/* Feed items */
.dash-activity__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.88rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 450ms ease;
}

.dash-activity__item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  transition: background-color 125ms ease;
}

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

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

.dash-activity__dot--missed_call { background: #ef4444; }
.dash-activity__dot--sms_sent { background: #3b82f6; }
.dash-activity__dot--reply { background: var(--accent); }
.dash-activity__dot--booked { background: #22c55e; }
.dash-activity__dot--opted_out,
.dash-activity__dot--re_opted_in { background: rgba(255, 255, 255, 0.3); }

.dash-activity__desc {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text);
  min-width: 0;
}

.dash-activity__time {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Date separators */
.dash-activity__date-sep {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0 0.5rem;
}

.dash-activity__date-sep::before,
.dash-activity__date-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.dash-activity__date-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes dash-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================
   DASHBOARD V2
   ============================ */

.dash-v2-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 2rem 4rem;
  opacity: 0;
  animation: dash-fadein 300ms ease-out forwards;
}

.dash-v2-header__inner {
  max-width: 1200px;
}

/* -- Time Range Toggle -- */
.dash-v2-range {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 4px;
  width: fit-content;
}

.dash-v2-range__btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 200ms ease;
}

.dash-v2-range__btn:hover {
  color: var(--text);
}

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

/* -- KPI Scorecards -- */
.dash-v2-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-v2-kpi {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.dash-v2-kpi__accent {
  height: 3px;
  width: 100%;
}

.dash-v2-kpi--red .dash-v2-kpi__accent { background: #ef4444; }
.dash-v2-kpi--green .dash-v2-kpi__accent { background: #22c55e; }
.dash-v2-kpi--accent .dash-v2-kpi__accent { background: var(--accent); }
.dash-v2-kpi--blue .dash-v2-kpi__accent { background: #3b82f6; }

.dash-v2-kpi__body {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 20px 20px 8px;
}

.dash-v2-kpi__number {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.dash-v2-kpi__trend {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  display: none;
}

.dash-v2-kpi__trend--up {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.dash-v2-kpi__trend--down {
  display: inline-block;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.dash-v2-kpi__label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0 20px 16px;
}

.dash-v2-kpi__empty-hint {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.6;
  padding: 0 20px 16px;
  display: block;
}

/* -- Two-Panel Layout -- */
.dash-v2-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dash-v2-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
}

.dash-v2-panel__title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.dash-v2-panel__subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 20px;
}

/* -- Chart -- */
.dash-v2-chart-wrap {
  position: relative;
  height: 250px;
}

.dash-v2-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.dash-v2-chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-v2-chart-empty p {
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.6;
}

/* -- Activity Feed -- */
.dash-v2-feed {
  max-height: 340px;
  overflow-y: auto;
}

.dash-v2-feed__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
}

.dash-v2-feed__empty-icon {
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 0.75rem;
}

.dash-v2-feed__empty-text {
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.6;
}

.dash-v2-feed__date-sep {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0 0.4rem;
}

.dash-v2-feed__date-sep::before,
.dash-v2-feed__date-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.dash-v2-feed__date-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-v2-feed__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 200ms ease;
}

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

.dash-v2-feed__item--clickable {
  cursor: pointer;
}

.dash-v2-feed__item--clickable:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.dash-v2-feed__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-v2-feed__dot--missed_call { background: #ef4444; }
.dash-v2-feed__dot--sms_sent { background: #3b82f6; }
.dash-v2-feed__dot--reply { background: var(--accent); }
.dash-v2-feed__dot--booked { background: #22c55e; }
.dash-v2-feed__dot--opted_out,
.dash-v2-feed__dot--re_opted_in { background: rgba(255, 255, 255, 0.3); }

/* AI Receptionist */
.dash-v2-feed__dot--answered { background: #8b5cf6; }
.dash-v2-feed__dot--transferred { background: #3b82f6; }
.dash-v2-feed__dot--voicemail { background: rgba(255, 255, 255, 0.3); }

/* Review Collection */
.dash-v2-feed__dot--requested { background: #eab308; }
.dash-v2-feed__dot--completed { background: #22c55e; }
.dash-v2-feed__dot--declined { background: #ef4444; }

/* Job Reminders */
.dash-v2-feed__dot--sent { background: #3b82f6; }
.dash-v2-feed__dot--confirmed { background: #22c55e; }
.dash-v2-feed__dot--rescheduled { background: #eab308; }
.dash-v2-feed__dot--no_response { background: rgba(255, 255, 255, 0.3); }

/* Maintenance */
.dash-v2-feed__dot--prompted { background: #f97316; }

.dash-v2-feed__desc {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-v2-feed__time {
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* -- Slide-Out Conversation Viewer -- */
.dash-v2-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.dash-v2-slideout {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: #111114;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 300ms ease;
}

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

.dash-v2-slideout__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.dash-v2-slideout__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.dash-v2-slideout__close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.dash-v2-slideout__close:hover {
  color: var(--text);
}

.dash-v2-slideout__messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-v2-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.dash-v2-msg--assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.dash-v2-msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
}

.dash-v2-msg__time {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

.dash-v2-slideout__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.85rem;
  color: var(--muted);
}

/* -- Skeleton Shimmer -- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.dash-v2-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.dash-v2-kpi .dash-v2-skeleton {
  width: 80px;
  height: 32px;
}

/* -- Mobile -- */
@media (max-width: 768px) {
  .dash-v2-main {
    padding: 24px 1rem 3rem;
  }

  .dash-v2-header__inner {
    padding: 0 1rem;
  }

  .dash-v2-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .dash-v2-panels {
    grid-template-columns: 1fr;
  }

  .dash-v2-slideout {
    width: 100vw;
  }
}

/* -- Overview Page -- */
.dash-overview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.dash-overview-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.dash-overview-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  padding: 3px 10px;
  border-radius: 99px;
}

.dash-v2-kpis--three {
  grid-template-columns: repeat(3, 1fr);
}

/* -- Automation Cards Grid -- */
.dash-auto-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.dash-auto-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 200ms ease, transform 100ms ease;
}

.dash-auto-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.dash-auto-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-auto-card__name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dash-auto-card__badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}

.dash-auto-card__badge--active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.dash-auto-card__badge--paused {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.dash-auto-card__badge--setting_up,
.dash-auto-card__badge--pending_approval {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.dash-auto-card__metric {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.dash-auto-card__metric-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
}

.dash-auto-card__last {
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.7;
}

.dash-auto-card__stepper-text {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.8;
  line-height: 1.4;
}

/* -- Detail View Header -- */
.dash-detail-back {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  transition: color 200ms ease;
}

.dash-detail-back:hover {
  color: var(--text);
}

/* Single-automation info bar */
.dash-single-auto-bar {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.dash-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-detail-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-detail-header__name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.dash-detail-header__badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

/* -- Overview feed automation tags -- */
.dash-v2-feed__auto-tag {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  flex-shrink: 0;
}

/* -- Mobile overrides -- */
@media (max-width: 768px) {
  .dash-v2-kpis--three {
    grid-template-columns: 1fr;
  }

  .dash-auto-cards {
    grid-template-columns: 1fr;
  }

  .dash-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================
   AFFILIATE PROGRAM PAGE
   ============================ */
.affiliate-page {
  padding-top: 5rem;
}

.aff-hero {
  padding: 8rem 0 6rem;
  text-align: center;
}

.aff-hero__heading {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 1.5rem;
}

.aff-hero__sub {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  margin: 0 auto 2.2rem;
}

.aff-hero__actions {
  display: flex;
  justify-content: center;
}

.aff-steps {
  padding: 4rem 0 6rem;
}

.aff-cta {
  padding: 4rem 0 8rem;
  text-align: center;
}

.aff-cta__signin {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.aff-cta__signin a {
  color: rgba(100, 160, 240, 0.9);
  font-weight: 500;
  transition: color 180ms ease;
}

.aff-cta__signin a:hover {
  color: #fff;
}

.aff-placeholder {
  text-align: center;
  padding: 4rem 2rem;
}

.aff-placeholder__heading {
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
}

.aff-placeholder__text {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .nav-bar {
    padding: 0.6rem 0.75rem;
    border-radius: 18px;
    width: calc(100% - 1rem);
    overflow: visible;
  }

  .nav-left .nav-link {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-right {
    display: none;
  }

  .nav-logo {
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    transform: translateX(calc(-50% - 0.09em));
  }

  .login-card {
    padding: 2rem 1.5rem;
  }

  /* Dashboard v2 responsive */
  .dash-header__inner {
    padding: 0 1rem;
  }

  .dash-main {
    padding: 32px 1rem 3rem;
  }

  .hero {
    padding: 7rem 1.25rem 3rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-glow {
    width: 400px;
    height: 300px;
  }

  .workspace {
    padding-top: 6rem;
  }

  .automation-hero {
    padding-top: 5rem;
  }

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

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

  .ws-demo {
    grid-template-columns: 1fr;
  }

  .ws-demo--flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-connector {
    padding-top: 0;
    flex-direction: column;
    align-self: center;
    padding: 0.8rem 0;
  }

  .flow-connector__line {
    width: 1px;
    height: 20px;
  }

  .phone {
    width: 260px;
  }

  .ws-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ws-tab span {
    white-space: nowrap;
  }

  .section-shell {
    width: min(100% - 2rem, 1100px);
  }

  .offer-section {
    padding: 6rem 0 4rem;
  }

  .how-section,
  .automate-section {
    padding: 4rem 0;
  }

  .final-cta {
    padding: 4rem 0 6rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer__brand {
    align-items: center;
  }

  .site-footer__links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .site-footer__bottom {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1.25rem, 1180px);
  }

  .chat-line {
    flex-direction: column;
    gap: 0.3rem;
  }

  .chat-label {
    width: auto;
    padding-top: 0;
  }

  .chat-bubble {
    max-width: 100%;
  }

  .scenario-card {
    padding: 1.3rem;
  }

  /* Dashboard stepper — vertical on mobile */
  .dash-stepper__track {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-width: 280px;
  }

  .dash-stepper__node {
    flex-direction: row;
    gap: 1rem;
  }

  .dash-stepper__connector {
    width: 2px;
    height: 32px;
    min-width: unset;
    margin: 0.25rem 0 0.25rem 14px;
    margin-bottom: 0;
  }

  .dash-stepper__name {
    font-size: 0.85rem;
  }

  .aff-hero {
    padding: 6rem 0 4rem;
  }

  .aff-steps {
    padding: 2rem 0 4rem;
  }

  .aff-cta {
    padding: 2rem 0 6rem;
  }
}

/* ===== AFFILIATE PORTAL ===== */

/* -- Portal nav -- */
.aff-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-deep, #050507);
  border-bottom: 1px solid var(--line);
  height: 60px;
}
.aff-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.aff-nav__logo {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.aff-nav__hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}
.aff-nav__links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.aff-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.aff-nav__link svg {
  opacity: 0.85;
}
.aff-nav__link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.aff-nav__link--active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}
.aff-nav__group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.aff-nav__group-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 0.5rem 0.5rem 0.5rem 0.25rem;
  white-space: nowrap;
}
.aff-nav__divider {
  width: 1px;
  height: 24px;
  background: var(--line-strong, rgba(255,255,255,0.12));
  margin: 0 0.5rem;
}
.aff-nav__signout {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-family: inherit;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.aff-nav__signout:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

/* -- Portal main layout -- */
.aff-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
.aff-page-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* -- Stat cards -- */
.aff-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.aff-stats--3 { grid-template-columns: repeat(3, 1fr); }
.aff-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.aff-stat__accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.aff-stat--earned .aff-stat__accent { background: #22c55e; }
.aff-stat--pending .aff-stat__accent { background: #eab308; }
.aff-stat--deals .aff-stat__accent { background: var(--accent); }
.aff-stat--calls .aff-stat__accent { background: #3b82f6; }
.aff-stat__number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.75rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}
.aff-stat__label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* -- Chart panel -- */
.aff-chart-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.aff-chart-panel__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.aff-chart-wrap {
  position: relative;
  height: 250px;
}

/* -- Activity feed -- */
.aff-feed {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.aff-feed__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.aff-feed__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.aff-feed__item:last-child { border-bottom: none; }
.aff-feed__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.aff-feed__icon--deal { background: rgba(34,197,94,0.15); color: #22c55e; }
.aff-feed__icon--commission { background: rgba(234,179,8,0.15); color: #eab308; }
.aff-feed__icon--leads { background: rgba(59,130,246,0.15); color: #3b82f6; }
.aff-feed__text {
  flex: 1;
  font-size: 0.875rem;
}
.aff-feed__time {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

/* -- Leaderboard -- */
.aff-boards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.aff-board {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}
.aff-board__title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.aff-board__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.aff-board__row:last-child { border-bottom: none; }
.aff-board__row--me {
  background: rgba(201,121,48,0.08);
  border-radius: 8px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin: 0 -0.5rem;
}
.aff-board__rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.aff-board__rank--1 { background: rgba(255,215,0,0.2); color: #FFD700; }
.aff-board__rank--2 { background: rgba(192,192,192,0.2); color: #C0C0C0; }
.aff-board__rank--3 { background: rgba(205,127,50,0.2); color: #CD7F32; }
.aff-board__name {
  flex: 1;
  font-size: 0.875rem;
}
.aff-board__bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.aff-board__bar {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.aff-board__value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 48px;
  text-align: right;
}

/* -- Resources -- */
.aff-resources {
  display: grid;
  gap: 1.5rem;
}
.aff-resource-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}
.aff-resource-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.aff-script-section {
  border-bottom: 1px solid var(--line);
}
.aff-script-section:last-child { border-bottom: none; }
.aff-script-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.aff-script-toggle:hover { color: var(--accent); }
.aff-script-toggle__arrow {
  transition: transform 0.2s;
  color: var(--muted);
}
.aff-script-section--open .aff-script-toggle__arrow {
  transform: rotate(180deg);
}
.aff-script-body {
  display: none;
  padding: 0 0 1rem 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}
.aff-script-section--open .aff-script-body {
  display: block;
}
.aff-badge--soon {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(234,179,8,0.15);
  color: #eab308;
  font-weight: 600;
}
.aff-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.aff-download-btn:hover { background: var(--accent-hover); }

/* -- Payouts table -- */
.aff-table-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.aff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.aff-table th {
  text-align: left;
  padding: 0.85rem 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.aff-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.aff-table tr:last-child td { border-bottom: none; }
.aff-table__status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.aff-table__status--paid { background: rgba(34,197,94,0.15); color: #22c55e; }
.aff-table__status--pending { background: rgba(234,179,8,0.15); color: #eab308; }

/* -- Skeleton loading -- */
.aff-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: aff-shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes aff-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* -- Affiliate Portal Responsive -- */
@media (max-width: 768px) {
  .aff-nav__hamburger { display: block; }
  .aff-nav__links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-deep, #050507);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
  }
  .aff-nav__links--open { display: flex; }
  .aff-nav__group {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .aff-nav__group-label {
    padding: 0.75rem 2rem 0.25rem;
    font-size: 0.6rem;
    color: var(--accent);
  }
  .aff-nav__divider {
    width: auto;
    height: 1px;
    margin: 0.25rem 1.5rem;
  }
  .aff-nav__link {
    padding: 0.75rem 2rem 0.75rem 2.5rem;
    width: 100%;
  }
  .aff-nav__link--active { border-bottom: none; background: rgba(201,121,48,0.1); }
  .aff-nav__signout {
    margin: 0.5rem 2rem;
    text-align: center;
  }
  .aff-stats { grid-template-columns: repeat(2, 1fr); }
  .aff-stats--3 { grid-template-columns: 1fr; }
  .aff-boards { grid-template-columns: 1fr; }
  .aff-main { padding: 1.5rem 1rem; }
}
