@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  --background: #FFFFFF;
  --foreground: #0F172A;
  --card: #FFFFFF;
  --card-foreground: #0F172A;
  --primary: #0891B2;
  --primary-foreground: #FFFFFF;
  --secondary: #10B981;
  --secondary-foreground: #FFFFFF;
  --muted: #F1F5F9;
  --muted-foreground: #64748B;
  --border: #E2E8F0;
  --surface-alt: #F8FAFC;
  --input: #E2E8F0;
  --ring: rgba(8, 145, 178, 0.5);
  --destructive: #EF4444;
  --destructive-foreground: #FFFFFF;
  --warning: #F59E0B;
  --warning-foreground: #FFFFFF;
  --info: #3B82F6;
  --info-foreground: #FFFFFF;
  --purple: #8B5CF6;
  --radius: 12px;
  --radius-lg: 8px;
  --radius-full: 9999px;
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --background: #0F172A;
  --foreground: #F8FAFC;
  --card: #1E293B;
  --card-foreground: #F8FAFC;
  --muted: #1E293B;
  --muted-foreground: #94A3B8;
  --border: #334155;
  --surface-alt: #1E293B;
  --input: #334155;
  --ring: rgba(8, 145, 178, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  transition: background var(--transition-base), color var(--transition-base);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.body-text {
  color: var(--muted-foreground);
  line-height: 1.75;
  font-size: 1rem;
}

.bg-surface-alt {
  background: var(--surface-alt);
}

.mono {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
}

.clickable {
  cursor: pointer;
}

.clickable:hover td {
  background: var(--surface-alt);
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  background: var(--muted);
  color: var(--foreground);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  transition: all var(--transition-base);
  font-family: inherit;
  line-height: 1.5;
  white-space: nowrap;
}

.btn:hover {
  background: var(--muted);
  border-color: var(--primary);
}

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

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: #0e7490;
  border-color: #0e7490;
}

.btn-success {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #FFFFFF;
}

.btn-success:hover {
  background: #059669;
  border-color: #059669;
}

.btn-danger {
  background: var(--destructive);
  border-color: var(--destructive);
  color: var(--destructive-foreground);
}

.btn-danger:hover {
  background: #DC2626;
  border-color: #DC2626;
}

.btn-warning {
  background: var(--warning);
  border-color: var(--warning);
  color: #FFFFFF;
}

.btn-warning:hover {
  background: #D97706;
  border-color: #D97706;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--muted);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  background: var(--muted);
  color: var(--foreground);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
}

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */

.landing-page {
  min-height: 100vh;
  background: var(--background);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 4px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-base);
}

[data-theme="dark"] .landing-nav {
  background: rgba(15, 23, 42, 0.9);
}

.landing-nav .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
}

.landing-nav .logo-text .drop {
  color: var(--primary);
  font-size: 1.5rem;
}

.landing-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-nav .nav-links a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-base);
}

.landing-nav .nav-links a:hover {
  color: var(--foreground);
  text-decoration: none;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 24px 80px;
  text-align: center;
  background: var(--background);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/static/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
}

[data-theme="dark"] .hero::before {
  opacity: 0.25;
}

[data-theme="dark"] .roi-slider {
  background: #334155;
}

[data-theme="dark"] .roi-slider::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.5);
}

[data-theme="dark"] .roi-slider::-moz-range-thumb {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.5);
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.08;
  pointer-events: none;
}

.hero-glow.red,
.hero-glow.teal {
  background: var(--primary);
  top: 10%;
  left: 15%;
}

.hero-glow.green {
  background: var(--secondary);
  bottom: 10%;
  right: 15%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.2);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  color: var(--foreground);
}

.hero h1 .accent {
  color: var(--primary);
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.hero-stat .number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--foreground);
}

.hero-stat .number.red,
.hero-stat .number.teal {
  color: var(--primary);
}

.hero-stat .number.green {
  color: var(--secondary);
}

.hero-stat .label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* Stats Section */
.stats-section {
  padding: 80px 24px;
  background: var(--surface-alt);
}

.stats-section .stats-grid {
  max-width: 1200px;
  margin: 0 auto;
}

/* Solution Cards */
.solution-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition-base);
}

.solution-card:hover {
  border-color: var(--primary);
}

.solution-card .solution-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(8, 145, 178, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.solution-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 8px;
}

.solution-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Verification Data Display */
.verification-display {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  font-family: 'Space Mono', monospace;
}

.verification-display .data-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

.verification-display .data-row:last-child {
  border-bottom: none;
}

.verification-display .data-label {
  color: var(--muted-foreground);
}

.verification-display .data-value {
  color: var(--foreground);
  font-weight: 700;
}

/* CTA Section */
.cta-section {
  background: var(--primary);
  padding: 80px 24px;
  text-align: center;
  color: var(--primary-foreground);
}

.cta-section h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--primary-foreground);
}

.cta-section p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background: var(--primary-foreground);
  color: var(--primary);
  border-color: var(--primary-foreground);
}

.cta-section .btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-form h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--foreground);
}

/* Footer */
.landing-footer,
.footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 12px;
}

.footer-section a,
.footer-section p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  display: block;
  margin-bottom: 8px;
}

.footer-section a:hover {
  color: var(--primary);
  text-decoration: none;
}

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

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  padding: 24px;
}

.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 440px;
}

.login-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--foreground);
}

.login-card .subtitle {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

/* Mode Toggle Tabs */
.mode-toggle {
  display: flex;
  background: var(--muted);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 24px;
}

.mode-toggle .tab {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  transition: all var(--transition-base);
  min-height: 44px;
  touch-action: manipulation;
}

.mode-toggle .tab.active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Login Roles */
.login-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.role-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-base);
  background: var(--card);
  min-height: 44px;
  touch-action: manipulation;
}

.role-card:hover {
  border-color: var(--primary);
}

.role-card.selected {
  border-color: var(--primary);
  background: rgba(8, 145, 178, 0.05);
}

.role-card .role-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.role-card .role-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.role-card .role-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 4px;
}

/* Credential Form Inputs with Icons */
.input-with-icon {
  position: relative;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.input-with-icon input,
.form-group .input-with-icon input {
  padding-left: 40px !important;
}

/* ============================================================
   PLATFORM LAYOUT
   ============================================================ */

.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 24px 16px 60px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  margin-bottom: 6px;
}

.logo .drop {
  color: var(--primary);
  font-size: 1.5rem;
}

.logo h1 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.logo-sub {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  font-weight: 500;
  padding: 0 8px;
  margin-bottom: 28px;
}

.nav-section {
  margin-bottom: 20px;
}

.nav-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  font-weight: 600;
  padding: 0 12px;
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-base);
  user-select: none;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: var(--muted);
  color: var(--foreground);
}

.nav-item.active {
  background: rgba(8, 145, 178, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.nav-item .icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

/* Sidebar User */
.sidebar-user {
  margin-top: auto;
  padding: 12px;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.sidebar-user .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.sidebar-user .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sidebar-user .user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
}

.sidebar-user .user-role {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Main Content */
.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 32px;
  min-height: 100vh;
  background: var(--background);
  transition: background var(--transition-base);
}

.page-header {
  margin-bottom: 32px;
}

.page-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--foreground);
}

.page-header p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* ============================================================
   DASHBOARD - STAT CARDS
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: rgba(8, 145, 178, 0.3);
}

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.stat-card .stat-icon.teal {
  background: rgba(8, 145, 178, 0.1);
  color: var(--primary);
}

.stat-card .stat-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
}

.stat-card .stat-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.stat-card .stat-icon.amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.stat-card .stat-icon.purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
}

.stat-value.red,
.stat-value.teal { color: var(--primary); }
.stat-value.green { color: var(--secondary); }
.stat-value.blue { color: var(--info); }
.stat-value.amber { color: var(--warning); }
.stat-value.purple { color: var(--purple); }

.stat-sub {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 4px;
  font-weight: 400;
}

/* Activity Feed */
.activity-feed {
  list-style: none;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item .activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.activity-item .activity-text {
  font-size: 0.875rem;
  color: var(--foreground);
  line-height: 1.5;
}

.activity-item .activity-time {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 2px;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.card-body {
  padding: 20px;
}

/* ============================================================
   TABLES
   ============================================================ */

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--surface-alt);
}

/* ============================================================
   SITES - SEARCH INPUT WITH ICON
   ============================================================ */

.search-container {
  position: relative;
  margin-bottom: 16px;
}

.search-container .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  pointer-events: none;
}

.search-container input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: inherit;
  transition: all var(--transition-base);
}

.search-container input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.search-container input::placeholder {
  color: var(--muted-foreground);
}

/* ============================================================
   STATUS BADGES
   ============================================================ */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  border: none;
}

.status-DRAFT {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.status-ENG_APPROVED {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.status-CPA_APPROVED {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple);
}

.status-MINTED {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
}

.status-REJECTED {
  background: rgba(239, 68, 68, 0.1);
  color: var(--destructive);
}

.status-VOIDED {
  background: var(--muted);
  color: var(--muted-foreground);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  border: none;
}

.status-indicator.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
}

.status-indicator.inactive {
  background: var(--muted);
  color: var(--muted-foreground);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.active .status-dot {
  background: var(--secondary);
}

.status-indicator.inactive .status-dot {
  background: var(--muted-foreground);
}

/* ============================================================
   VERIFICATION - WORKFLOW PIPELINE
   ============================================================ */

.pipeline-visual {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}

.pipeline-stage {
  flex: 1;
  padding: 16px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.pipeline-stage:first-child {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.pipeline-stage:last-child {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.pipeline-stage .stage-count {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--foreground);
}

.pipeline-stage .stage-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.pipeline-stage.s-draft {
  border-top: 3px solid var(--info);
}

.pipeline-stage.s-eng {
  border-top: 3px solid var(--warning);
}

.pipeline-stage.s-cpa {
  border-top: 3px solid var(--purple);
}

.pipeline-stage.s-minted {
  border-top: 3px solid var(--secondary);
}

.pipeline-stage.s-rejected {
  border-top: 3px solid var(--destructive);
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  padding: 0;
}

.tab-nav .tab-item {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all var(--transition-base);
  font-family: inherit;
}

.tab-nav .tab-item:hover {
  color: var(--foreground);
}

.tab-nav .tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* Fingerprint Cards */
.fingerprint-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.fingerprint-card .fingerprint-hash {
  font-family: 'Space Mono', monospace;
  font-size: 0.8125rem;
  color: var(--primary);
  word-break: break-all;
  background: var(--muted);
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 8px;
}

/* State Machine */
.state-machine {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}

.state-node {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.4;
  border: 1px solid transparent;
  transition: all var(--transition-base);
}

.state-node.active {
  opacity: 1;
  background: rgba(8, 145, 178, 0.1);
  color: var(--primary);
  border-color: rgba(8, 145, 178, 0.2);
}

.state-arrow {
  color: var(--muted-foreground);
  font-size: 1rem;
}

/* ============================================================
   MODALS / DIALOGS
   ============================================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 520px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--foreground);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  color: var(--foreground);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 400;
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ============================================================
   DETAIL SECTIONS
   ============================================================ */

.detail-section {
  margin-bottom: 24px;
}

.detail-section h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.875rem;
}

.detail-row .label {
  color: var(--muted-foreground);
  font-weight: 400;
}

.detail-row .value {
  color: var(--foreground);
  font-weight: 600;
  font-family: 'Space Mono', monospace;
}

.hash-value {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--primary);
  word-break: break-all;
  font-weight: 400;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 200;
  animation: toastSlideUp 0.3s ease;
  border: 1px solid;
  max-width: 400px;
}

.toast.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
  border-color: rgba(16, 185, 129, 0.2);
}

.toast.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--destructive);
  border-color: rgba(239, 68, 68, 0.2);
}

.toast.info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
  border-color: rgba(59, 130, 246, 0.2);
}

@keyframes toastSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================================
   TWO TOKEN DIAGRAM
   ============================================================ */

.two-token-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.token-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid;
  background: var(--card);
}

.token-card.mpt {
  border-color: rgba(139, 92, 246, 0.2);
}

.token-card.hc {
  border-color: rgba(16, 185, 129, 0.2);
}

.token-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 4px;
}

.token-card .token-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 12px;
}

.token-card .token-stat {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

/* ============================================================
   INVESTOR SECTION
   ============================================================ */

.investor-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.investor-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.investor-card h4 {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}

.investor-card .val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
}

/* ============================================================
   XRPL BADGE
   ============================================================ */

.xrpl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted-foreground);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

/* ============================================================
   RESPONSIVE GRID UTILITIES
   ============================================================ */

.responsive-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

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

.landing-stats {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  gap: 32px;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  gap: 64px;
  align-items: center;
}

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

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

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

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 60;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Sidebar toggle (hidden on desktop) */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  padding: 4px;
}

/* Platform main area */
.platform-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.platform-topbar {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1024px) {
  .main-content {
    padding: 24px;
  }

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

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: left 0.3s ease;
    box-shadow: none;
  }

  .sidebar.sidebar-open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }

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

  .sidebar-toggle {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding: 16px;
  }

  .hamburger {
    display: flex;
  }

  .landing-nav .nav-links,
  .landing-nav .nav-right {
    display: none;
  }

  .landing-nav.nav-open {
    flex-wrap: wrap;
  }

  .landing-nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 3;
    padding-top: 16px;
    gap: 16px;
  }

  .landing-nav.nav-open .nav-right {
    display: flex;
    order: 2;
  }

  .two-token-diagram {
    grid-template-columns: 1fr;
  }

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

  .responsive-grid-2,
  .section-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .login-roles {
    grid-template-columns: 1fr;
  }

  .investor-summary {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .pipeline-visual {
    flex-direction: column;
  }

  .pipeline-stage:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .pipeline-stage:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .modal {
    margin: 16px;
    padding: 20px;
  }

  .page-header h2 {
    font-size: 1.5rem;
  }

  .verification-display {
    overflow-x: auto;
  }

  .data-row {
    flex-wrap: wrap;
  }

  .cta-section {
    padding: 60px 20px;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 16px 40px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 0.9375rem;
  }

  .landing-nav {
    padding: 12px 16px;
  }

  .btn-lg {
    padding: 12px 20px;
    font-size: 0.875rem;
  }

  .stats-grid,
  .stats-grid-4,
  .stats-grid-3 {
    grid-template-columns: 1fr !important;
  }

  .responsive-grid-4 {
    grid-template-columns: 1fr;
  }

  .landing-stats {
    gap: 20px;
  }

  .landing-stats .mono {
    font-size: 2rem !important;
  }

  .platform-topbar {
    padding: 12px 16px;
  }

  .section-container {
    gap: 24px;
  }

  .page-header h2 {
    font-size: 1.25rem;
  }
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* ============================================================
   SELECTION
   ============================================================ */

::selection {
  background: rgba(8, 145, 178, 0.2);
  color: var(--foreground);
}

/* ============================================================
   FOCUS VISIBLE
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================================
   TRANSITION UTILITIES
   ============================================================ */

.transition-colors {
  transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

.transition-all {
  transition: all var(--transition-base);
}


.evidence-placeholder {
  margin-top: 16px;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  background: var(--background);
  overflow: hidden;
}

.evidence-placeholder-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 24px;
}

.evidence-placeholder-inner svg {
  opacity: 0.3;
  margin-bottom: 8px;
}

.mrv-page {
  background: linear-gradient(180deg, #0a0f1a 0%, #0f172a 40%, #0a0f1a 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e2e8f0;
  min-height: 100vh;
}

.mrv-nav {
  background: rgba(10, 15, 26, 0.9) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.3) !important;
}

.mrv-nav .hamburger span {
  background: #94a3b8;
}

.mrv-hero {
  background: linear-gradient(180deg, #0a0f1a 0%, #0f172a 100%);
  padding: 8rem 1.5rem 6rem;
}

.mrv-sequence-bar {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mrv-seq-item {
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(51, 65, 85, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.mrv-seq-arrow {
  color: #334155;
  font-size: 0.8rem;
}

.mrv-tabs-row {
  display: flex;
  gap: 2px;
  margin-bottom: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.mrv-tab {
  flex: 1;
  padding: 1rem 0.5rem;
  border: none;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.4);
  border-top: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  min-height: 44px;
  touch-action: manipulation;
}

.mrv-tab:hover {
  background: rgba(30, 41, 59, 0.5);
}

.mrv-tab.active {
  background: rgba(30, 41, 59, 0.8);
  border-top-color: #38bdf8;
}

.mrv-tab-letter {
  font-size: 1.1rem;
  font-weight: 700;
  color: #475569;
  font-family: 'Space Mono', monospace;
  transition: color 0.2s ease;
}

.mrv-tab.active .mrv-tab-letter {
  color: #38bdf8;
}

.mrv-tab-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.mrv-tab.active .mrv-tab-label {
  color: #e2e8f0;
}

.mrv-content-panel {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 2.5rem;
}

@media (max-width: 768px) {
  .mrv-hero {
    padding: 6rem 1rem 4rem;
  }
  .mrv-content-panel {
    padding: 1.5rem;
  }
  .mrv-tab {
    padding: 0.75rem 0.25rem;
    min-height: 44px;
  }
  .mrv-tab-letter {
    font-size: 0.9rem;
  }
  .mrv-tab-label {
    font-size: 0.6rem;
  }
  .mrv-sequence-bar {
    padding: 1rem;
    gap: 0.35rem;
  }
  .mrv-seq-item {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }
  .mrv-content-panel [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .mrv-content-panel [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .mrv-content-panel [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   ROI PROJECTION CALCULATOR
   ============================================================ */

.roi-input-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .roi-input-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.roi-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.roi-input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.roi-input-label-with-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.roi-value-display {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  font-family: 'Space Mono', monospace;
}

.roi-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.roi-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.roi-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.roi-input-prefix {
  position: absolute;
  left: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  pointer-events: none;
}

.roi-input-suffix {
  position: absolute;
  right: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  pointer-events: none;
}

.roi-input.with-prefix {
  padding-left: 1.75rem;
}

.roi-input.with-suffix {
  padding-right: 3rem;
}

/* Slider Styling */
.roi-slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--muted);
  outline: none;
  transition: background var(--transition-base);
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px var(--ring);
}

.roi-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.roi-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px var(--ring);
}

.roi-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.roi-slider-labels .center-label {
  color: var(--primary);
  font-weight: 500;
}

/* Select Styling */
.roi-select {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 0.875rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.roi-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

/* Chart Container */
.roi-chart-container {
  position: relative;
  height: 350px;
  margin: 1.5rem 0;
}

.roi-chart-canvas {
  max-width: 100%;
}

/* Break-even Indicator */
.roi-breakeven-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.roi-breakeven-indicator.success {
  background: rgba(16, 185, 129, 0.1);
  color: rgb(16, 185, 129);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.roi-breakeven-indicator.warning {
  background: rgba(245, 158, 11, 0.1);
  color: rgb(245, 158, 11);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Progress Bar */
.roi-progress-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.roi-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.roi-progress-label {
  color: var(--muted-foreground);
}

.roi-progress-value {
  font-weight: 600;
  font-family: 'Space Mono', monospace;
}

.roi-progress-bar-wrapper {
  position: relative;
  height: 16px;
  background: var(--muted);
  border-radius: 8px;
  overflow: hidden;
}

.roi-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 8px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
  width: 0%;
}

.roi-progress-marker {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--muted-foreground);
  opacity: 0.5;
}

.roi-progress-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.roi-progress-message {
  font-size: 0.875rem;
  color: var(--secondary);
  text-align: center;
  margin-top: 0.75rem;
}

/* Details Panel */
.roi-details-card {
  border: 1px dashed var(--border);
}

.roi-details-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  transition: color var(--transition-base);
}

.roi-details-toggle:hover {
  color: var(--primary);
}

.roi-details-toggle-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--muted-foreground);
}

.roi-details-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.roi-details-grid {
  display: grid;
  gap: 1rem;
  padding-top: 0.5rem;
}

@media (min-width: 640px) {
  .roi-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .roi-details-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.roi-metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(var(--muted), 0.3);
}

.roi-metric-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.roi-metric-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

/* Empty State */
.roi-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  text-align: center;
}

.roi-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.roi-empty-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.roi-empty-description {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  max-width: 28rem;
}

/* Disclaimer */
.roi-disclaimer {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  background: rgba(var(--muted), 0.3);
  padding: 1rem;
  border-radius: 8px;
  border: 1px dashed var(--border);
  margin-top: 1.5rem;
}

/* Tooltip */
.roi-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  color: var(--muted-foreground);
  margin-left: 0.25rem;
}

.roi-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.95);
  color: #F8FAFC;
  font-size: 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  margin-bottom: 0.5rem;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Validation Alert */
.roi-validation-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  color: rgb(245, 158, 11);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.roi-validation-alert svg {
  flex-shrink: 0;
}

/* Results Section */
#roi-results-section {
  display: none;
}

/* ============================================================
   INFILTRATION CALCULATOR STYLES
   ============================================================ */

.infiltration-input-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .infiltration-input-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .infiltration-input-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.infiltration-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.infiltration-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: 'Space Mono', monospace;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  resize: vertical;
  min-height: 80px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.infiltration-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.infiltration-results-grid {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: rgba(var(--muted), 0.3);
  border-radius: 8px;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .infiltration-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .infiltration-results-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.infiltration-result-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  border-radius: 6px;
  background: var(--background);
  border: 1px solid var(--border);
}

.infiltration-result-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.infiltration-result-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  font-family: 'Space Mono', monospace;
}

/* AOI2 Live Display */
.roi-aoi2-display {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(8, 145, 178, 0.06);
  border: 1px solid rgba(8, 145, 178, 0.15);
  font-size: 0.875rem;
  color: var(--foreground);
  font-family: 'Space Mono', monospace;
}

/* Calculated Annual Gallons (read-only banner) */
.roi-calculated-gallons-display {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.map-address-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

.map-address-bar .roi-input {
  flex: 1;
  min-width: 0;
}

.map-address-bar .btn {
  white-space: nowrap;
  padding: 0.5rem 1.25rem;
}

.satellite-map-container {
  width: 100%;
  height: 800px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  background: var(--card);
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  z-index: 1;
}

.map-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.map-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.map-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  align-items: center;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.map-legend-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-circle-info {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(8,145,178,0.1), rgba(16,185,129,0.08));
  border: 1px solid rgba(8,145,178,0.3);
  border-radius: 8px;
  font-size: 0.85rem;
}

.map-info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.map-info-label {
  color: var(--muted-foreground);
  font-weight: 500;
}

.map-info-value {
  color: var(--foreground);
  font-weight: 700;
  font-family: 'Space Mono', monospace;
}

@media (max-width: 640px) {
  .map-address-bar {
    flex-direction: column;
  }
  .satellite-map-container {
    height: 600px;
  }
  .map-legend {
    flex-direction: column;
    gap: 0.5rem;
  }
  .map-circle-info {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.wayback-slider-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 12px 16px;
}

.wayback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.wayback-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wayback-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--border), var(--primary));
  outline: none;
  cursor: pointer;
}

.wayback-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.15s;
}

.wayback-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.wayback-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer;
}

.satellite-map-container .gmnoprint[controlwidth] {
  transform: scale(1.25);
  transform-origin: top center;
}

.roi-input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color-scheme: dark;
  cursor: pointer;
}

.roi-input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  padding: 4px;
  filter: invert(0.7);
}

.roi-input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

[data-theme="light"] .roi-input[type="date"],
.light .roi-input[type="date"] {
  color-scheme: light;
}

[data-theme="light"] .roi-input[type="date"]::-webkit-calendar-picker-indicator,
.light .roi-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: none;
}

@media (max-width: 768px) {
  .roi-input-grid {
    grid-template-columns: 1fr !important;
  }

  .infiltration-input-grid {
    grid-template-columns: 1fr !important;
  }

  .infiltration-results-grid {
    grid-template-columns: 1fr !important;
  }

  .roi-details-grid {
    grid-template-columns: 1fr !important;
  }

  .roi-chart-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .roi-chart-canvas {
    min-width: 500px;
  }

  .page-header h2 {
    font-size: 1.5rem !important;
  }

  .card-header h3 {
    font-size: 1rem !important;
  }

  .roi-slider-container {
    padding: 0 4px;
  }
}

@media (max-width: 480px) {
  .roi-metric-card {
    padding: 0.625rem;
  }

  .roi-metric-value {
    font-size: 1.125rem;
  }

  .roi-progress-container {
    padding: 0;
  }

  .map-address-bar {
    flex-direction: column;
    gap: 8px;
  }

  .map-address-bar .btn {
    width: 100%;
    justify-content: center;
  }

  .card {
    padding: 0.75rem;
  }

  .card-body {
    padding: 0.75rem;
  }
}

.wp-page {
  background: linear-gradient(180deg, #0a0f1a 0%, #0f172a 40%, #0a0f1a 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e2e8f0;
  min-height: 100vh;
}

.wp-top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
}

.wp-hero {
  background: linear-gradient(180deg, #0a0f1a 0%, #111827 50%, #0f172a 100%);
  padding: 10rem 1.5rem 5rem;
  text-align: center;
  border-bottom: 1px solid rgba(43, 183, 200, 0.15);
}

.wp-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.wp-hero-eyebrow {
  color: #2bb7c8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.wp-hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f8fafc;
  margin: 0 0 0.75rem 0;
  line-height: 1;
}

.wp-hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #94a3b8;
  font-weight: 400;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.wp-hero-tagline {
  font-size: 0.95rem;
  color: #64748b;
  font-style: italic;
  margin: 0 0 2rem 0;
}

.wp-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #475569;
}

.wp-layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
}

.wp-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 2rem 0 2rem 1.5rem;
  border-right: 1px solid rgba(51, 65, 85, 0.2);
}

.wp-sidebar-label {
  color: #475569;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
}

.wp-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wp-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.wp-nav-item:hover {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.4);
}

.wp-nav-item.active {
  color: #e2e8f0;
  background: rgba(43, 183, 200, 0.08);
  border-left-color: #2bb7c8;
}

.wp-nav-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  min-width: 20px;
}

.wp-nav-item.active .wp-nav-num {
  color: #2bb7c8;
}

.wp-nav-title {
  font-weight: 500;
}

.wp-main {
  flex: 1;
  min-width: 0;
  padding: 0 2rem 4rem 2rem;
}

.wp-section {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.15);
}

.wp-section:last-child {
  border-bottom: none;
}

.wp-section-header {
  margin-bottom: 2.5rem;
}

.wp-section-badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #2bb7c8;
  background: rgba(43, 183, 200, 0.1);
  border: 1px solid rgba(43, 183, 200, 0.2);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}

.wp-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.wp-section-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

.wp-section-body {
  max-width: 100%;
}

.wp-subsection-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 2.5rem 0 1rem 0;
  letter-spacing: -0.01em;
}

.wp-body-text {
  font-size: 0.925rem;
  line-height: 1.8;
  color: #94a3b8;
  margin: 0 0 1rem 0;
}

.wp-body-text strong {
  color: #e2e8f0;
}

.wp-callout-card {
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.wp-callout-cyan {
  background: linear-gradient(135deg, rgba(43, 183, 200, 0.08) 0%, rgba(43, 183, 200, 0.02) 100%);
  border: 1px solid rgba(43, 183, 200, 0.25);
}

.wp-callout-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.wp-callout-large {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: #2bb7c8;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.wp-callout-sub {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}

.wp-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}

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

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

.wp-point-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.wp-point-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.wp-point-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.35rem;
}

.wp-point-desc {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.wp-quote-block {
  background: rgba(15, 23, 42, 0.4);
  border-left: 3px solid #2bb7c8;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.wp-quote-block p {
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

.wp-highlight-box {
  background: rgba(43, 183, 200, 0.04);
  border: 1px solid rgba(43, 183, 200, 0.15);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.wp-highlight-box p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.wp-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.wp-compare-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 10px;
  padding: 1.25rem;
}

.wp-compare-red { border-color: rgba(239, 68, 68, 0.3); }
.wp-compare-yellow { border-color: rgba(245, 158, 11, 0.3); }
.wp-compare-green { border-color: rgba(16, 185, 129, 0.3); }

.wp-compare-label {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wp-compare-red .wp-compare-label { color: #fca5a5; }
.wp-compare-yellow .wp-compare-label { color: #fbbf24; }
.wp-compare-green .wp-compare-label { color: #6ee7b7; }

.wp-compare-approach {
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.wp-compare-result {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.wp-flywheel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(51, 65, 85, 0.3);
  border-radius: 12px;
}

.wp-flywheel-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 100px;
}

.wp-flywheel-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(43, 183, 200, 0.15);
  border: 1px solid rgba(43, 183, 200, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2bb7c8;
  font-size: 0.8rem;
  font-weight: 700;
}

.wp-flywheel-text {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  max-width: 120px;
}

.wp-flywheel-arrow {
  color: #475569;
  font-size: 1.2rem;
}

.wp-flywheel-loop {
  font-size: 1.5rem;
  color: #2bb7c8;
}

.wp-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.wp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.wp-table th {
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wp-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.2);
  color: #cbd5e1;
}

.wp-table td strong {
  color: #2bb7c8;
}

.wp-split-visual {
  margin: 1.5rem 0;
}

.wp-split-bar {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  height: 60px;
}

.wp-split-investor {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(43, 183, 200, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.wp-split-investor span {
  color: #7dd3fc;
  font-weight: 700;
  font-size: 0.9rem;
}

.wp-split-platform {
  background: linear-gradient(135deg, rgba(168, 232, 224, 0.15) 0%, rgba(168, 232, 224, 0.08) 100%);
  border: 1px solid rgba(168, 232, 224, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.wp-split-platform span {
  color: #a8e8e0;
  font-weight: 700;
  font-size: 0.9rem;
}

.wp-split-label {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 500;
}

.wp-example-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.wp-example-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.wp-example-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wp-example-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 6px;
}

.wp-example-label {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.wp-example-value {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2bb7c8;
}

.wp-mint-sequence {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(51, 65, 85, 0.3);
  border-radius: 12px;
}

.wp-mint-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
}

.wp-mint-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(43, 183, 200, 0.12);
  border: 1px solid rgba(43, 183, 200, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2bb7c8;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  flex-shrink: 0;
}

.wp-mint-text {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.wp-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.wp-stat-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.wp-stat-value {
  font-family: 'Space Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2bb7c8;
  margin-bottom: 0.25rem;
}

.wp-stat-label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.wp-code-block {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-family: 'Space Mono', monospace;
}

.wp-code-label {
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.wp-code-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.3rem 0;
  font-size: 0.8rem;
}

.wp-code-key {
  color: #6ee7b7;
  min-width: 130px;
}

.wp-code-val {
  color: #94a3b8;
}

.wp-data-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 10px;
  padding: 1.25rem;
}

.wp-data-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.wp-data-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.35rem;
}

.wp-data-card p {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.wp-layers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 1.5rem 0;
}

.wp-layer {
  width: 100%;
  max-width: 600px;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.wp-layer-1 {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.wp-layer-2 {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.wp-layer-3 {
  background: rgba(43, 183, 200, 0.08);
  border: 1px solid rgba(43, 183, 200, 0.25);
}
.wp-layer-4 {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.wp-layer-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
}

.wp-layer p {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
}

.wp-layer-arrow {
  color: #475569;
  font-size: 1.2rem;
  padding: 0.25rem 0;
}

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

.wp-site-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}

.wp-site-status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.wp-status-active {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.wp-status-prospect {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.wp-status-validation {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.wp-site-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.25rem 0;
}

.wp-site-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.wp-site-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.wp-site-key {
  color: #64748b;
  font-weight: 600;
}

.wp-hierarchy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(51, 65, 85, 0.3);
  border-radius: 10px;
}

.wp-hier-item {
  background: rgba(43, 183, 200, 0.1);
  border: 1px solid rgba(43, 183, 200, 0.25);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
}

.wp-hier-arrow {
  color: #475569;
  font-size: 0.9rem;
}

.wp-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  padding-left: 2rem;
}

.wp-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #2bb7c8, rgba(43, 183, 200, 0.2));
}

.wp-timeline-phase {
  position: relative;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 12px;
  padding: 1.5rem;
}

.wp-timeline-phase::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 1.75rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid #475569;
}

.wp-timeline-phase.wp-phase-active::before {
  background: #2bb7c8;
  border-color: #2bb7c8;
  box-shadow: 0 0 8px rgba(43, 183, 200, 0.4);
}

.wp-phase-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.wp-phase-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #2bb7c8;
  background: rgba(43, 183, 200, 0.1);
  border: 1px solid rgba(43, 183, 200, 0.25);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wp-phase-date {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.wp-phase-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.75rem 0;
}

.wp-phase-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wp-phase-list li {
  font-size: 0.82rem;
  color: #94a3b8;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.wp-phase-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #475569;
}

.wp-phase-active .wp-phase-list li::before {
  background: #2bb7c8;
}

.wp-team-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 12px;
  padding: 1.5rem;
}

.wp-team-type {
  font-size: 0.65rem;
  font-weight: 700;
  color: #2bb7c8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.wp-team-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.5rem 0;
}

.wp-blurred-content {
  filter: blur(6px);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

.wp-coming-soon-overlay {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 1rem;
}

.wp-coming-soon-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 20px;
  background: rgba(43, 183, 200, 0.12);
  border: 1px solid rgba(43, 183, 200, 0.3);
  color: #2bb7c8;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.wp-coming-soon-text {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.wp-glossary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.wp-glossary-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(51, 65, 85, 0.2);
}

.wp-glossary-item dt {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2bb7c8;
  min-width: 110px;
  flex-shrink: 0;
}

.wp-glossary-item dd {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.wp-mobile-toc-wrap {
  display: none;
}

.wp-mobile-toc {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 10px;
  overflow: hidden;
}

.wp-mobile-toc-trigger {
  padding: 0.75rem 1rem;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wp-mobile-toc-trigger::-webkit-details-marker {
  display: none;
}

.wp-mobile-toc-trigger::after {
  content: '\25BC';
  font-size: 0.6rem;
  color: #475569;
  transition: transform 0.2s;
}

.wp-mobile-toc[open] .wp-mobile-toc-trigger::after {
  transform: rotate(180deg);
}

.wp-mobile-toc-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(51, 65, 85, 0.3);
  max-height: 50vh;
  overflow-y: auto;
}

.wp-mobile-toc-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.15);
}

.wp-mobile-toc-item:hover {
  background: rgba(43, 183, 200, 0.06);
  color: #e2e8f0;
}

@media (max-width: 1024px) {
  .wp-sidebar {
    display: none;
  }
  .wp-main {
    padding: 0 1.5rem 4rem 1.5rem;
  }
  .wp-mobile-toc-wrap {
    display: block;
    position: sticky;
    top: 72px;
    z-index: 50;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.2);
  }
}

@media (max-width: 768px) {
  .wp-hero {
    padding: 7rem 1rem 3rem;
  }
  .wp-main {
    padding: 0 1rem 3rem 1rem;
  }
  .wp-section {
    padding: 3rem 0;
  }
  .wp-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .wp-grid-3,
  .wp-comparison-grid,
  .wp-site-grid {
    grid-template-columns: 1fr;
  }
  .wp-grid-2 {
    grid-template-columns: 1fr;
  }
  .wp-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .wp-flywheel {
    flex-direction: column;
  }
  .wp-flywheel-arrow {
    transform: rotate(90deg);
  }
  .wp-timeline {
    padding-left: 1.5rem;
  }
  .wp-timeline-phase::before {
    left: -2rem;
  }
  .wp-glossary-item {
    flex-direction: column;
    gap: 0.25rem;
  }
  .wp-glossary-item dt {
    min-width: auto;
  }
  .wp-code-row {
    flex-direction: column;
    gap: 0.15rem;
  }
  .wp-code-key {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .wp-hero-title {
    letter-spacing: 0.06em;
  }
  .wp-grid-5 {
    grid-template-columns: 1fr;
  }
  .wp-stats-row {
    grid-template-columns: 1fr;
  }
  .wp-split-bar {
    flex-direction: column;
    height: auto;
  }
  .wp-split-investor,
  .wp-split-platform {
    padding: 0.75rem;
  }
}

/* ============================================================================
   Scenario Save/Load System
   ============================================================================ */

.projection-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.projection-modal-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-width: 540px;
  width: 92%;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.projection-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.projection-modal-header h3 {
  font-size: 1.125rem;
  margin: 0;
  font-weight: 700;
}

.projection-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--muted-foreground);
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.projection-modal-close:hover {
  color: var(--foreground);
  background: var(--muted);
}

.projection-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.projection-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.projection-input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.7;
}

.projection-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  gap: 12px;
}

.projection-list-item:hover {
  background: var(--muted);
}

.projection-list-item.active {
  border-color: var(--primary);
  background: rgba(8, 145, 178, 0.06);
}

/* Active Scenario Bar */
.active-scenario-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  margin-top: 8px;
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.25);
  border-radius: 8px;
  gap: 12px;
}

.scenario-badge {
  display: inline-block;
  background: linear-gradient(135deg, #0891b2, #28b0a0);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.scenario-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  font-size: 1.25rem;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.scenario-close-btn:hover {
  color: var(--foreground);
  background: var(--muted);
}

/* Scenario Quick Switcher */
.scenario-switcher-container {
  position: relative;
}

.scenario-switcher {
  appearance: none;
  -webkit-appearance: none;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--foreground);
  font-size: 0.8125rem;
  padding: 6px 28px 6px 10px;
  cursor: pointer;
  font-family: inherit;
  min-width: 140px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.15s;
}

.scenario-switcher:hover {
  border-color: var(--primary);
}

.scenario-switcher:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

@media (max-width: 640px) {
  .projection-modal-panel {
    width: 96%;
    padding: 16px;
    max-height: 85vh;
  }
  .scenario-switcher {
    min-width: 120px;
    font-size: 0.75rem;
  }
  .active-scenario-bar {
    flex-wrap: wrap;
  }
}

.demo-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.demo-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 100;
  min-width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  padding: 4px;
  animation: hcSlideUp 0.15s ease;
}

.demo-dropdown-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
  transition: background 0.15s;
  font-family: inherit;
}

.demo-dropdown-item:hover {
  background: var(--muted);
}

.demo-item-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
}

.demo-item-detail {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  margin-top: 2px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

@media (max-width: 640px) {
  .demo-dropdown-menu {
    min-width: 240px;
    right: 0;
    left: auto;
  }
}
