/* RevenueOps AI — Interactive Demo Shell
   Dark luxury SaaS dashboard aesthetic */

:root {
  --bg: #08090D;
  --bg-alt: #0E1017;
  --bg-card: #13151D;
  --bg-card-hover: #191C27;
  --border: #1E2130;
  --border-accent: rgba(232, 160, 50, 0.35);
  --fg: #F2F0ED;
  --fg-muted: #8A8D9B;
  --fg-dim: #5A5D6B;
  --accent: #E8A032;
  --accent-bright: #F5BB50;
  --accent-glow: rgba(232, 160, 50, 0.12);
  --accent-strong: rgba(232, 160, 50, 0.25);
  --danger: #D94040;
  --success: #3DAA6D;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --max-w: 1140px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── DEMO SHELL LAYOUT ──────────────────────────────────── */
.demo-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.demo-sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.demo-sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.demo-logo-brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-logo-brand span {
  color: var(--accent);
}

.demo-logo-sub {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 3px;
}

.demo-nav-section {
  padding: 16px 12px 8px;
}

.demo-nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 0 8px;
  margin-bottom: 6px;
}

.demo-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.demo-nav-item:hover {
  background: var(--bg-card);
  color: var(--fg);
  text-decoration: none;
}

.demo-nav-item.active {
  background: var(--accent-glow);
  color: var(--accent-bright);
  border: 1px solid var(--border-accent);
}

.demo-nav-item.flagship {
  border: 1px solid rgba(232, 160, 50, 0.2);
  background: linear-gradient(135deg, rgba(232, 160, 50, 0.06), transparent);
}

.demo-nav-item.flagship .flagship-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #0A0A0F;
  padding: 1px 6px;
  border-radius: 3px;
}

.demo-nav-item .nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.demo-sidebar-cta {
  margin: auto 12px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.demo-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #0A0A0F;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.demo-cta-btn:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Main content */
.demo-main {
  margin-left: 248px;
  flex: 1;
  min-height: 100vh;
  background: var(--bg);
}

/* Top bar */
.demo-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.demo-breadcrumb {
  font-size: 14px;
  color: var(--fg-muted);
}

.demo-breadcrumb span {
  color: var(--fg);
  font-weight: 600;
}

.demo-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.demo-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: 4px 10px;
  border-radius: 20px;
}

.demo-live-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-muted);
}

.demo-live-dot span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Demo content area */
.demo-content {
  padding: 36px 32px;
}

/* Section header */
.demo-section-header {
  margin-bottom: 28px;
}

.demo-section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.demo-section-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 8px;
}

.demo-section-desc {
  font-size: 15px;
  color: var(--fg-muted);
  max-width: 560px;
}

/* Metric cards grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: all 0.2s;
}

.metric-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 6px;
}

.metric-value.accent { color: var(--accent); }
.metric-value.success { color: var(--success); }

.metric-sub {
  font-size: 12px;
  color: var(--fg-dim);
}

/* Revenue chart */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

.chart-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 20px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
  padding-top: 10px;
}

.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.chart-bar {
  width: 100%;
  max-width: 40px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--accent), var(--accent-bright));
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.chart-bar:hover {
  filter: brightness(1.15);
  transform: scaleY(1.03);
}

.chart-bar-label {
  font-size: 10px;
  color: var(--fg-dim);
  text-align: center;
}

.chart-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--fg);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.chart-bar:hover .chart-tooltip {
  opacity: 1;
}

/* Activity feed */
.activity-feed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.activity-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.activity-header span {
  color: var(--accent);
  font-size: 12px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg-card-hover); }

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.activity-body { flex: 1; }

.activity-action {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.4;
}

.activity-action strong {
  color: var(--accent-bright);
  font-weight: 600;
}

.activity-time {
  font-size: 11px;
  color: var(--fg-dim);
  margin-top: 2px;
}

/* Agent section */
.agent-section {
  margin-bottom: 48px;
}

.agent-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
}

.agent-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.agent-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.agent-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}

.agent-card-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.agent-card-stats {
  display: flex;
  gap: 16px;
}

.agent-stat {
  display: flex;
  flex-direction: column;
}

.agent-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-bright);
}

.agent-stat-label {
  font-size: 11px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.coming-soon-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px dashed var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 12px;
}

/* Divider */
.demo-divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ── DEMO BANNER ─────────────────────────────────────────── */
.demo-banner {
  position: sticky;
  top: 64px;
  z-index: 49;
  background: var(--danger);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  letter-spacing: 0.02em;
}

.demo-banner .banner-btn {
  background: #fff;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.15s;
}

.demo-banner .banner-btn:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

/* ── LEAD TABLE ──────────────────────────────────────────── */
.demo-lead-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.demo-lead-table table {
  width: 100%;
  border-collapse: collapse;
}

.demo-lead-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.demo-lead-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.demo-lead-table tr:last-child td { border-bottom: none; }
.demo-lead-table tr:hover td { background: var(--bg-card-hover); }

.demo-lead-table .lead-name { color: var(--fg); font-weight: 600; }
.demo-lead-table .lead-city { color: var(--fg-muted); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-new { background: rgba(232, 160, 50, 0.15); color: var(--accent); border: 1px solid rgba(232, 160, 50, 0.3); }
.status-contacted { background: rgba(59, 130, 246, 0.15); color: #3B82F6; border: 1px solid rgba(59, 130, 246, 0.3); }
.status-appointment { background: rgba(61, 170, 109, 0.15); color: var(--success); border: 1px solid rgba(61, 170, 109, 0.3); }

/* ── SCAN BANNER ─────────────────────────────────────────── */
.demo-scan-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(232, 160, 50, 0.08), rgba(232, 160, 50, 0.03));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 8px;
}

.scan-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: scan-pulse 1.5s ease-in-out infinite;
}

@keyframes scan-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.7; }
}

.scan-indicator::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.demo-scan-text { font-size: 14px; color: var(--fg-muted); }
.demo-scan-text strong { color: var(--accent-bright); font-weight: 700; }
.demo-scan-text .scan-count { color: var(--accent); font-weight: 700; }

/* ── NURTURE TIMELINE ────────────────────────────────────── */
.demo-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 8px 0 16px;
  margin-bottom: 24px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  position: relative;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: var(--border);
}

.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 24px);
  width: 0;
  height: 2px;
  background: var(--accent);
  animation: timeline-animate 1s ease-out forwards;
}

@keyframes timeline-animate {
  from { width: 0; }
  to { width: calc(100% - 48px); }
}

.timeline-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 1;
  margin-bottom: 8px;
}

.timeline-time {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.timeline-channel {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}

.timeline-preview {
  font-size: 10px;
  color: var(--fg-dim);
  text-align: center;
  max-width: 100px;
  line-height: 1.4;
}

.timeline-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--success);
  margin-top: 4px;
}

/* ── CHAT WINDOW ────────────────────────────────────────── */
.demo-chat-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.chat-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.chat-header-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.chat-messages {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-bubble-row.ai { flex-direction: row-reverse; }

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.chat-avatar.homeowner { background: var(--bg-alt); border: 1px solid var(--border); color: var(--fg-dim); }
.chat-avatar.ai { background: var(--accent-glow); border: 1px solid var(--border-accent); color: var(--accent); }

.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
}

.chat-bubble.homeowner {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-bubble.ai {
  background: linear-gradient(135deg, var(--accent-glow), rgba(232, 160, 50, 0.06));
  border: 1px solid var(--border-accent);
  border-bottom-right-radius: 4px;
  color: var(--fg);
}

.chat-caption {
  text-align: center;
  font-size: 12px;
  color: var(--fg-dim);
  margin: 10px 0 16px;
}

.chat-booking-card {
  background: linear-gradient(135deg, rgba(61, 170, 109, 0.1), rgba(61, 170, 109, 0.04));
  border: 1px solid rgba(61, 170, 109, 0.3);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.booking-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(61, 170, 109, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.booking-details { flex: 1; }

.booking-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 4px;
}

.booking-info {
  font-size: 12px;
  color: var(--fg-muted);
}

/* ── REACTIVATION TABLE ─────────────────────────────────── */
.demo-customer-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.demo-customer-table table {
  width: 100%;
  border-collapse: collapse;
}

.demo-customer-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.demo-customer-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
}

.demo-customer-table tr:last-child td { border-bottom: none; }
.demo-customer-table tr:hover td { background: var(--bg-card-hover); }

.demo-customer-table .cust-name { color: var(--fg); font-weight: 600; }
.demo-customer-table .offer-tag { font-size: 11px; color: var(--fg-dim); }

.status-sent { color: var(--fg-dim); }
.status-opened { color: #3B82F6; }
.status-replied { color: var(--success); font-weight: 600; }

/* ── REVIEW WORKFLOW ─────────────────────────────────────── */
.demo-review-workflow {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 8px 0 16px;
  margin-bottom: 24px;
}

.review-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
  position: relative;
}

.review-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: var(--border);
}

.review-arrow { font-size: 14px; color: var(--fg-dim); margin-bottom: 6px; }

.review-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  z-index: 1;
  margin-bottom: 8px;
}

.review-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}

.review-sublabel {
  font-size: 10px;
  color: var(--fg-dim);
  text-align: center;
  max-width: 90px;
  line-height: 1.4;
}

/* ── REVIEW CARDS ────────────────────────────────────────── */
.demo-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.demo-review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.demo-review-card .review-stars {
  color: #F5BB50;
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.demo-review-card .review-text {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 10px;
}

.demo-review-card .review-author {
  font-size: 11px;
  color: var(--fg-dim);
  font-weight: 600;
}

/* ── OPPORTUNITIES LIST ──────────────────────────────────── */
.demo-opportunities-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.demo-opp-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s;
}

.demo-opp-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.priority-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.priority-high { background: rgba(232, 160, 50, 0.15); color: var(--accent); border: 1px solid rgba(232, 160, 50, 0.3); }
.priority-medium { background: rgba(59, 130, 246, 0.15); color: #3B82F6; border: 1px solid rgba(59, 130, 246, 0.3); }

.demo-opp-info { flex: 1; }

.demo-opp-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.demo-opp-meta {
  font-size: 12px;
  color: var(--fg-dim);
}

.demo-opp-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
  white-space: nowrap;
  margin-right: 12px;
}

.campaign-launch-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.campaign-launch-btn:hover {
  background: var(--accent-strong);
  color: var(--accent-bright);
  transform: translateY(-1px);
}

/* ── FLOATING CTA ─────────────────────────────────────────── */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  background: var(--accent);
  color: #0A0A0F;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 14px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(232, 160, 50, 0.35);
  transition: all 0.2s;
  text-decoration: none;
  animation: float-pulse 3s ease-in-out infinite;
}

.floating-cta:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 160, 50, 0.45);
  text-decoration: none;
  color: #0A0A0F;
}

@keyframes float-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(232, 160, 50, 0.35); }
  50% { box-shadow: 0 4px 28px rgba(232, 160, 50, 0.55); }
}

/* ── FORM ELEMENTS ─────────────────────────────────────────────────────── */
.demo-form-input,
.demo-form-select {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--fg);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-form-input:focus,
.demo-form-select:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.demo-form-input::placeholder { color: var(--fg-dim); }

.demo-form-select option { background: var(--bg-alt); color: var(--fg); }

/* ── PROGRESS BAR ──────────────────────────────────────────────────────── */
.progress-step span { transition: color 0.3s; }
.progress-step.done span { color: var(--accent) !important; }
.progress-dot.done { background: var(--accent) !important; }

/* ── COPY BUTTON ───────────────────────────────────────────────────────── */
.copy-btn {
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}

.copy-btn:hover {
  background: var(--accent-strong);
  color: var(--accent-bright);
}

/* ── SLIDER ─────────────────────────────────────────────────────────────── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

/* ── RESPONSIVE FIXES FOR FORMS ────────────────────────────────────────── */
@media (max-width: 768px) {
  #storm-form-container form,
  #leak-form-container form > div:first-child { grid-template-columns: 1fr !important; }
  .demo-reviews-grid { grid-template-columns: 1fr; }
  #leak-results .leak-cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Responsive */
@media (max-width: 768px) {
  .demo-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .demo-shell { flex-direction: column; }

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

  .demo-content { padding: 20px 16px; }

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

  .demo-nav-section { padding: 10px 8px 6px; }

  .demo-sidebar-cta { margin: 8px 12px 12px; }

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

  .demo-banner { top: 0; font-size: 11px; padding: 8px 12px; }

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

  .timeline-step:not(:last-child)::before { display: none; }

  .demo-opp-item { flex-wrap: wrap; }
  .demo-opp-value { margin-bottom: 8px; }

  .floating-cta { bottom: 20px; right: 16px; font-size: 12px; padding: 12px 16px; }
}