/* ============================================================
   IP Shield — Bootstrap 5 Custom Styles
   Brand: Primary #2463eb | Navy #0A192F | SF Pro / Inter
   ============================================================

   NOTE: Fonts (Inter + Material Symbols) are preloaded in HTML
   with font-display: swap to prevent FOUT and improve LCP
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --ip-primary:       #2563eb;
  --ip-primary-rgb:   37, 99, 235;
  --ip-primary-light: #eff3ff;
  --ip-navy:          #0D1421;
  --ip-success:       #10B981;
  --ip-danger:        #EF4444;
  --ip-warning:       #F59E0B;
  --ip-bg:            #f8fafc;
  --ip-surface:       #ffffff;
  --ip-border:        #e2e8f0;
  --ip-text:          #0f172a;
  --ip-muted:         #64748b;
  --ip-radius:        12px;
  --ip-shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --ip-shadow:        0 4px 20px rgba(0,0,0,0.05);
  --ip-shadow-lg:     0 10px 40px rgba(0,0,0,0.08);

  /* Override Bootstrap */
  --bs-primary:         var(--ip-primary);
  --bs-primary-rgb:     var(--ip-primary-rgb);
  --bs-body-font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
  --bs-body-bg:         var(--ip-bg);
  --bs-body-color:      var(--ip-text);
  --bs-border-color:    var(--ip-border);
  --bs-border-radius:   var(--ip-radius);
  --bs-border-radius-lg: var(--ip-radius);
  --bs-border-radius-sm: 8px;
  --bs-border-radius-pill: 999px;
  --bs-link-color:      var(--ip-primary);
  --bs-link-hover-color: #1a52d0;
}

/* ---------- Global ---------- */
html { scroll-behavior: smooth; }

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--ip-bg);
  color: var(--ip-text);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ip-text);
}

/* ---------- Bootstrap Overrides ---------- */
.btn {
  font-weight: 600;
  border-radius: var(--ip-radius);
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background-color: var(--ip-primary);
  border-color: var(--ip-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--ip-primary-rgb), 0.25);
}
.btn-primary:hover {
  background-color: #1a52d0;
  border-color: #1a52d0;
  box-shadow: 0 6px 20px rgba(var(--ip-primary-rgb), 0.35);
}
.btn-outline-secondary {
  border-color: var(--ip-border);
  color: var(--ip-text);
  background: #fff;
}
.btn-outline-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--ip-text);
}
.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  min-height: 48px;
}
.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  border-radius: 8px;
}

/* Form controls */
.form-control, .form-select {
  border-color: var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--ip-text);
  background-color: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ip-primary);
  box-shadow: 0 0 0 3px rgba(var(--ip-primary-rgb), 0.12);
  outline: none;
}
.form-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ip-muted);
  margin-bottom: 0.375rem;
}

/* Cards */
.card {
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-sm);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--ip-border);
  padding: 1rem 1.5rem;
  font-weight: 600;
}
.card-body { padding: 1.5rem; }

/* Tables */
.table { font-size: 0.875rem; color: var(--ip-text); }
.table th {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ip-muted);
  border-bottom: 1px solid var(--ip-border);
  background: #f8fafc;
  padding: 0.875rem 1.5rem;
}
.table td { padding: 1rem 1.5rem; vertical-align: middle; border-bottom: 1px solid var(--ip-border); }
.table tbody tr:hover { background-color: rgba(0,0,0,0.015); }
.table tbody tr:last-child td { border-bottom: none; }

/* Badge / Pills */
.badge {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.3em 0.75em;
  border-radius: 6px;
}
.badge-success-soft { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.badge-danger-soft  { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.badge-warning-soft { background: #fffbeb; color: #d97706; border: 1px solid #fcd34d; }
.badge-primary-soft { background: var(--ip-primary-light); color: var(--ip-primary); border: 1px solid rgba(var(--ip-primary-rgb),0.2); }
.badge-muted-soft   { background: #f1f5f9; color: var(--ip-muted); border: 1px solid var(--ip-border); }

/* ---------- Pulse dot ---------- */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.status-dot.green { background: var(--ip-success); animation: pulse-green 2s infinite; }
.status-dot.red   { background: var(--ip-danger);  animation: pulse-red 2s infinite; }
.status-dot.blue  { background: var(--ip-primary); animation: pulse-blue 2s infinite; }
@keyframes pulse-green { 0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,.4)} 50%{box-shadow:0 0 0 6px rgba(16,185,129,0)} }
@keyframes pulse-red   { 0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.4)} 50%{box-shadow:0 0 0 6px rgba(239,68,68,0)} }
@keyframes pulse-blue  { 0%,100%{box-shadow:0 0 0 0 rgba(36,99,235,.4)} 50%{box-shadow:0 0 0 6px rgba(36,99,235,0)} }

/* ---------- Progress bars ---------- */
.progress { border-radius: 999px; background: #f1f5f9; }
.progress-bar { background-color: var(--ip-primary); border-radius: 999px; }

/* ---------- Material Symbols ---------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  vertical-align: middle;
}

/* ============================================================
   LAYOUT — Sidebar App Shell
   ============================================================ */
.app-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 280px;
  min-width: 280px;
  background: #fff;
  border-right: 1px solid var(--ip-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* Sidebar brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-bottom: none;
}
.sidebar-brand .brand-icon {
  width: 40px; height: 40px;
  background: var(--ip-primary);
  border-radius: var(--ip-radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-brand .brand-name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; }
.sidebar-brand .brand-sub  { font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ip-muted); }

/* Nav items */
.sidebar-nav { padding: 1rem; flex: 1; }
.sidebar-nav .nav-item { margin-bottom: 0.25rem; }
.sidebar-nav .nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--ip-radius);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ip-muted);
  transition: all 0.15s;
  text-decoration: none;
}
.sidebar-nav .nav-link:hover {
  background: #f8fafc;
  color: var(--ip-primary);
}
.sidebar-nav .nav-link.active {
  background: var(--ip-primary-light);
  color: var(--ip-primary);
  font-weight: 600;
}
.sidebar-nav .nav-link .material-symbols-outlined { font-size: 22px; flex-shrink: 0; }

/* Sidebar footer / plan widget */
.sidebar-footer { padding: 1rem; }
.sidebar-plan {
  background: #f8fafc;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 1rem;
}
.sidebar-plan .plan-label { font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ip-muted); }
.sidebar-plan .plan-name  { font-size: 0.875rem; font-weight: 600; color: var(--ip-text); margin-bottom: 0.75rem; }

/* App main content */
.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-x: hidden; }

/* App header (top bar) */
.app-header {
  height: 64px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ip-border);
  display: flex; align-items: center;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 1rem;
}
.app-header .header-title { font-size: 0.9375rem; font-weight: 600; color: var(--ip-text); }
.app-header .header-sub   { font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ip-muted); }

/* Avatar */
.avatar {
  width: 36px; height: 36px;
  border-radius: var(--ip-radius);
  background: var(--ip-primary-light);
  color: var(--ip-primary);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(var(--ip-primary-rgb), 0.2);
  flex-shrink: 0;
}

/* Mobile overlay */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(4px);
  z-index: 99;
}

/* Content area */
.app-content { flex: 1; padding: 2rem; max-width: 1400px; width: 100%; margin: 0 auto; }

/* ============================================================
   LANDING / MARKETING PAGES
   ============================================================ */
/* Public header */
.public-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ip-border);
  height: 80px;
}
.public-header .container,
.public-header .container-xl { height: 100%; display: flex; align-items: center; }

/* Public nav links (desktop) */
.public-nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ip-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.15s;
  white-space: nowrap;
}
.public-nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  height: 2px; width: 0;
  background: var(--ip-primary);
  transition: width 0.2s;
}
.public-nav-link:hover { color: var(--ip-primary); }
.public-nav-link:hover::after { width: 100%; }
.public-nav-link.active { color: var(--ip-primary); font-weight: 600; }

/* Full-screen mobile nav overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 2rem 2rem;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu-overlay.open { transform: translateX(0); }

.mobile-nav-link {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--ip-text);
  text-decoration: none;
  padding: 0.625rem 0;
  letter-spacing: -0.022em;
  border-bottom: 1px solid var(--ip-border);
  transition: color 0.15s;
  display: block;
}
.mobile-nav-link:hover { color: var(--ip-primary); }
.mobile-nav-link.active { color: var(--ip-primary); }

/* Hero section */
.hero-section {
  padding: 5rem 0;
  background: radial-gradient(ellipse 70% 80% at -5% 40%, rgba(36,99,235,.08) 0%, #fff 65%);
}
.hero-section p[style*="max-width:480px"] {
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 992px) {
  .hero-section p[style*="max-width:480px"] {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Hero keyword highlights */
.hero-hi {
  color: var(--ip-primary);
  font-weight: 600;
}

/* Hero trust strip */
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ip-muted);
  letter-spacing: .01em;
}

/* macOS terminal ambient glow */
.macos-terminal {
  filter: drop-shadow(0 0 48px rgba(36,99,235,.13));
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: #eff3ff;
  border: 1px solid rgba(var(--ip-primary-rgb), 0.15);
  border-radius: 999px;
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ip-primary);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ip-primary);
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* Terminal card (legacy — kept for safety) */
.terminal-card {
  background: #0F172A;
  border-radius: var(--ip-radius);
  overflow: hidden;
  border: 1px solid #1e293b;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.terminal-bar {
  background: rgba(30,41,59,0.6);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(30,41,59,0.5);
  display: flex; align-items: center; justify-content: space-between;
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.terminal-body { padding: 2rem 2.5rem; font-family: "SF Mono", "Fira Code", "Consolas", monospace; font-size: 0.875rem; }

/* ---- macOS Terminal Window ---- */
.macos-terminal {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.07);
  position: relative;
}
.macos-bar {
  background: #2e3140;
  padding: .75rem 1.125rem;
  display: flex;
  align-items: center;
  position: relative;
  user-select: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.macos-dots { display: flex; gap: 7px; flex-shrink: 0; }
.macos-dots span { width: 12px; height: 12px; border-radius: 50%; display: block; }
.macos-dots .d-r { background: #ff5f57; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.macos-dots .d-y { background: #febc2e; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.macos-dots .d-g { background: #28c840; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.macos-window-title {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  font-size: .6875rem;
  font-weight: 500;
  color: #7a7f95;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  letter-spacing: .01em;
  white-space: nowrap;
  pointer-events: none;
}
.macos-body {
  background: #1e2431;
  padding: 1.5rem 1.75rem 2rem;
  min-height: 340px;
}
.macos-body pre {
  margin: 0;
  transition: opacity 380ms ease;
  font-family: 'Fira Code', 'Cascadia Code', 'SF Mono', 'Consolas', 'Courier New', monospace;
  font-size: .875rem;
  line-height: 1.7;
  color: #abb2bf;
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 2;
}

/* Terminal syntax highlight classes */
.t-prompt { color: #98c379; font-weight: 700; }
.t-dir    { color: #61afef; font-weight: 600; }
.t-cmd    { color: #abb2bf; }
.t-url    { color: #61afef; }
.t-key    { color: #56b6c2; }
.t-str    { color: #98c379; }
.t-num    { color: #d19a66; }
.t-bool   { color: #c678dd; }
.t-null   { color: #c678dd; }
.t-punct  { color: #abb2bf; }
.t-cursor {
  display: inline-block;
  width: .55em; height: 1.05em;
  background: #abb2bf;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Feature card */
.feature-card {
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 2rem;
  box-shadow: var(--ip-shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--ip-shadow); }
.feature-icon {
  width: 56px; height: 56px;
  background: var(--ip-primary-light);
  color: var(--ip-primary);
  border-radius: var(--ip-radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.feature-icon .material-symbols-outlined { font-size: 28px; }

/* Pricing card */
.pricing-card {
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 2.5rem;
  box-shadow: var(--ip-shadow-sm);
  display: flex; flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s;
}
.pricing-card:hover { box-shadow: var(--ip-shadow); }
.pricing-card.featured {
  border: 2px solid var(--ip-primary);
  box-shadow: 0 10px 40px rgba(var(--ip-primary-rgb), 0.1);
  transform: translateY(-4px);
  position: relative;
}
.pricing-card.featured .featured-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--ip-primary); color: #fff;
  font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.25rem 0.875rem; border-radius: 999px;
}

/* CTA section */
.cta-section {
  background: #0A1124;
  border-radius: var(--ip-radius);
  padding: 4rem;
  position: relative;
  overflow: hidden;
}
.cta-section::before, .cta-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.cta-section::before { width: 400px; height: 400px; background: rgba(36,99,235,0.2); top: -100px; right: -100px; }
.cta-section::after  { width: 400px; height: 400px; background: rgba(96,165,250,0.1); bottom: -100px; left: -100px; }

/* Scanner card */
.scanner-card { background: #fff; border: 1px solid var(--ip-border); border-radius: var(--ip-radius); overflow: hidden; box-shadow: var(--ip-shadow-sm); }
.scanner-input-wrap { padding: 1.5rem 2rem; border-bottom: 1px solid var(--ip-border); }
.scanner-results { display: grid; grid-template-columns: repeat(3, 1fr); }
.scanner-results > div { padding: 2.5rem; }
.scanner-results > div:not(:last-child) { border-right: 1px solid var(--ip-border); }
.score-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- App stat cards ---------- */
.stat-card {
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 1.5rem;
  box-shadow: var(--ip-shadow-sm);
}
.stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon.blue   { background: #eff3ff; color: var(--ip-primary); }
.stat-icon.orange { background: #fff7ed; color: #f97316; }
.stat-icon.purple { background: #faf5ff; color: #9333ea; }
.stat-icon.green  { background: #f0fdf4; color: #16a34a; }

/* Bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: 0.5rem; height: 200px; padding: 0 0.5rem; position: relative; }
.bar-chart::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(transparent, transparent calc(25% - 1px), #f1f5f9 calc(25% - 1px), #f1f5f9 25%);
  pointer-events: none;
}
.bar-group { flex: 1; display: flex; flex-direction: column; gap: 2px; justify-content: flex-end; height: 100%; position: relative; z-index: 1; }
.bar-clean { background: var(--ip-primary); border-radius: 4px 4px 0 0; transition: filter 0.2s; }
.bar-blocked { background: rgba(var(--ip-primary-rgb), 0.2); border-radius: 4px 4px 0 0; transition: filter 0.2s; }
.bar-group:hover .bar-clean { filter: brightness(1.1); }
.bar-group:hover .bar-blocked { background: rgba(var(--ip-primary-rgb), 0.35); }

/* ---------- Login page ---------- */
.login-page { background: #f8fafc; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.login-card { background: #fff; border: 1px solid var(--ip-border); border-radius: var(--ip-radius); box-shadow: var(--ip-shadow-sm); padding: 3rem; width: 100%; max-width: 480px; }

/* ---------- Public page section spacing ---------- */
.section-spacing { padding: 6rem 0; }
.section-spacing-sm { padding: 4rem 0; }

/* ---------- Alert / AI Banner ---------- */
.ai-banner {
  background: #eff3ff;
  border: 1px solid rgba(var(--ip-primary-rgb), 0.2);
  border-radius: var(--ip-radius);
  padding: 1.25rem;
  box-shadow: 0 0 20px rgba(var(--ip-primary-rgb), 0.08);
}

/* ---------- Risk score bar ---------- */
.risk-bar { height: 6px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.risk-bar-fill { height: 100%; border-radius: 999px; }

/* ---------- Region progress bars ---------- */
.region-bar { height: 8px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.region-bar-fill { height: 100%; background: var(--ip-primary); border-radius: 999px; }

/* ---------- Step indicator ---------- */
.step-indicator {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ip-primary);
  margin-bottom: 1rem;
}
.step-num {
  width: 20px; height: 20px;
  background: var(--ip-primary); color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.625rem; font-weight: 600;
  flex-shrink: 0;
}

/* ---------- Amount select cards ---------- */
.amount-card-label { cursor: pointer; }
.amount-card-label input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.amount-card {
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 1rem;
  background: #fff;
  transition: all 0.15s;
  height: 100%;
}
.amount-card-label:hover .amount-card { border-color: #94a3b8; }
.amount-card-label input:checked ~ .amount-card {
  border-color: var(--ip-primary);
  box-shadow: 0 0 0 3px rgba(var(--ip-primary-rgb), 0.12);
}

/* Payment method */
.payment-method-label { cursor: pointer; display: block; }
.payment-method-label input { position: absolute; opacity: 0; pointer-events: none; }
.payment-method {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  background: #fff;
  transition: all 0.15s;
}
.payment-method-label:hover .payment-method { border-color: #94a3b8; }
.payment-method-label input:checked ~ .payment-method {
  border-color: var(--ip-primary);
  box-shadow: 0 0 0 3px rgba(var(--ip-primary-rgb), 0.12);
}

/* ---------- Public footer ---------- */
.public-footer {
  background: #fff;
  border-top: 1px solid var(--ip-border);
  padding: 4rem 0 2rem;
}
.public-footer .footer-heading {
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--ip-muted); margin-bottom: 1.25rem;
}
.public-footer .footer-link { font-size: 0.875rem; font-weight: 600; color: #475569; text-decoration: none; display: block; margin-bottom: 0.875rem; }
.public-footer .footer-link:hover { color: var(--ip-primary); }

/* ---------- Code snippets ---------- */
code.api-key {
  font-size: 0.75rem;
  font-family: "SF Mono", "Fira Code", monospace;
  background: #f1f5f9;
  border: 1px solid var(--ip-border);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  color: var(--ip-muted);
}

/* ---------- Toggle switch ---------- */
.form-switch .form-check-input {
  width: 2.5em; height: 1.5em;
  cursor: pointer;
}
.form-switch .form-check-input:checked { background-color: var(--ip-primary); border-color: var(--ip-primary); }
.form-switch .form-check-input:focus { box-shadow: 0 0 0 3px rgba(var(--ip-primary-rgb), 0.2); }

/* ---------- QR placeholder ---------- */
.qr-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.qr-cell { border-radius: 2px; aspect-ratio: 1; }
.qr-cell.dark { background: #1e293b; }
.qr-cell.light { background: #e2e8f0; }

/* ---------- Partner tiers grid ---------- */
.tier-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  overflow: hidden;
  background: #fff;
}
.tier-cell {
  padding: 2.5rem;
  display: flex; flex-direction: column;
}
.tier-cell:not(:last-child) { border-right: 1px solid var(--ip-border); }
.tier-cell.featured {
  background: rgba(var(--ip-primary-rgb), 0.02);
  border-right-color: rgba(var(--ip-primary-rgb), 0.2);
  position: relative;
}

/* ---------- Legal content ---------- */
.legal-content h2 { font-size: 1.25rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-content h3 { font-size: 1rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.legal-content p  { color: var(--ip-muted); line-height: 1.7; margin-bottom: 1rem; font-size: 1.0625rem; }
.important-callout {
  background: #fff;
  border-left: 3px solid rgba(var(--ip-primary-rgb), 0.4);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 var(--ip-radius) var(--ip-radius) 0;
  box-shadow: var(--ip-shadow-sm);
}
.compliance-callout { border-left-color: #94a3b8; }

/* ---------- Map placeholder ---------- */
.map-container {
  background: #f8fafc;
  border-radius: 0;
  min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.country-path { fill: #e2e8f0; transition: fill 0.2s; cursor: pointer; }
.country-path:hover { fill: rgba(var(--ip-primary-rgb), 0.3); }
.country-path.active { fill: rgba(var(--ip-primary-rgb), 0.15); stroke: rgba(var(--ip-primary-rgb), 0.3); }
.data-point { fill: var(--ip-primary); stroke: #fff; stroke-width: 2px; }

/* ---------- Partner form ---------- */
.partner-form-card {
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.07);
}

/* ============================================================
   UTILITY CLASSES — Typography & Components
   ============================================================ */

/* Typography utilities */
.text-xs { font-size: .625rem; }
.text-sm { font-size: .75rem; }
.text-base { font-size: .875rem; }
.text-base-lg { font-size: .9375rem; }
.text-lg { font-size: 1rem; }
.text-xl { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.75rem; }
.text-4xl { font-size: 2.5rem; }
.text-5xl { font-size: clamp(2.5rem, 6vw, 4.5rem); }

/* Text styling */
.text-label {
  font-size: .625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ip-muted);
}

.text-label-primary {
  font-size: .625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ip-primary);
}

.text-muted-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ip-muted);
}

.text-caption {
  font-size: .75rem;
  font-weight: 400;
  color: var(--ip-muted);
}

.text-uppercase { text-transform: uppercase; }
.font-weight-400 { font-weight: 400; }
.font-weight-500 { font-weight: 500; }
.font-weight-600 { font-weight: 600; }
.font-weight-700 { font-weight: 700; }

.text-primary { color: var(--ip-primary); }
.text-success { color: var(--ip-success); }
.text-danger { color: #dc2626; }
.text-warning { color: var(--ip-warning); }
.text-muted { color: var(--ip-muted); }

/* Line height utilities */
.lh-tight { line-height: 1.1; }
.lh-normal { line-height: 1.6; }
.lh-relaxed { line-height: 1.7; }
.lh-list { line-height: 1.5; }

/* Icon utilities */
.icon-xs { font-size: 16px; }
.icon-sm { font-size: 18px; }
.icon-base { font-size: 20px; }
.icon-md { font-size: 22px; }
.icon-lg { font-size: 28px; }
.icon-xl { font-size: 32px; }

/* Component utilities */
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ip-bg);
  border: 1px solid var(--ip-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.icon-button:hover {
  border-color: #94a3b8;
}

.icon-button-lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

/* Form styling */
.form-input-lg {
  height: 44px;
  font-size: .9375rem;
}

.form-label-base {
  font-size: .9375rem;
  font-weight: 500;
}

/* Button size variants */
.btn-height-lg {
  height: 56px;
}

.btn-height-md {
  height: 48px;
}

.btn-height-sm {
  height: 40px;
}

.btn-md {
  height: 48px;
  font-size: .9375rem;
  font-weight: 500;
}

.btn-lg {
  height: 56px;
  font-size: 1rem;
  font-weight: 500;
}

/* Card styling */
.card-subtle {
  background: var(--ip-bg);
  border: 1px solid var(--ip-border);
}

.card-elevated {
  background: #fff;
  border: 1px solid #e8edf3;
  box-shadow: 0 20px 60px rgba(0,0,0,.07);
}

/* Badge styling */
.badge-success { background: var(--ip-success); }
.badge-danger { background: #dc2626; }
.badge-warning { background: var(--ip-warning); }
.badge-primary { background: var(--ip-primary); }

/* Circle / pill utilities */
.circle-pill { border-radius: 999px; }
.circle-full { border-radius: 50%; }
.circle-lg { border-radius: 16px; }
.circle-md { border-radius: 12px; }
.circle-sm { border-radius: 8px; }

/* Sizing utilities */
.size-xs { width: 6px; height: 6px; }
.size-sm { width: 20px; height: 20px; }
.size-base { width: 40px; height: 40px; }
.size-md { width: 48px; height: 48px; }
.size-lg { width: 64px; height: 64px; }

/* Dot indicator */
.dot {
  border-radius: 50%;
  display: inline-block;
}

.dot-xs { width: 6px; height: 6px; }
.dot-sm { width: 8px; height: 8px; }
.dot-md { width: 10px; height: 10px; }
.dot-success { background: var(--ip-success); }
.dot-danger { background: #dc2626; }
.dot-primary { background: var(--ip-primary); }
.dot-muted { background: var(--ip-border); }

/* Health status badge */
.health-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: .6875rem;
  font-weight: 600;
  color: var(--ip-success);
}

/* Chart containers */
.chart-container {
  min-height: 200px;
  margin: 0 -0.5rem;
}

.chart-container-lg {
  min-height: 240px;
  margin: 0 -0.5rem;
}

/* Data visualization */
.bar-fill {
  height: 6px;
  border-radius: 999px;
  background: var(--ip-border);
}

.bar-fill-primary {
  background: var(--ip-primary);
}

.bar-fill-light {
  background: var(--ip-primary-light);
}

/* List item styling */
.list-item-base {
  font-size: .9375rem;
  font-weight: 400;
  color: var(--ip-text);
  line-height: 1.5;
}

.list-item-featured {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ip-text);
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.active { display: block; }
  .app-content { padding: 1.25rem; }
  .app-header { padding: 0 1rem; }
  .scanner-results { grid-template-columns: 1fr; }
  .scanner-results > div:not(:last-child) { border-right: none; border-bottom: 1px solid var(--ip-border); }
  .scanner-results > div { padding: 1.75rem; }
  .scanner-input-wrap { padding: 1.25rem 1.5rem; }
  .tier-grid { grid-template-columns: 1fr; }
  .tier-cell:not(:last-child) { border-right: none; border-bottom: 1px solid var(--ip-border); }
  .tier-cell { padding: 2rem; }
  .cta-section { padding: 2.5rem 1.5rem; }
  .hero-section { padding: 3rem 0; }
  .section-spacing { padding: 3rem 0; }
  .partner-form-card { padding: 2rem; }
  .terminal-body { padding: 1.5rem 1.75rem; }
  .pricing-card { padding: 2rem; }
  .pricing-card.featured { transform: none; }
}

@media (max-width: 767.98px) {
  .login-card { padding: 2rem 1.5rem; }
  .table-responsive-stack td, .table-responsive-stack th { display: block; width: 100%; }
  .bar-chart { height: 140px; }

  /* App shell */
  .app-content { padding: 1rem; }
  .app-header { padding: 0 0.75rem; gap: 0.625rem; }

  /* Public page sections */
  .hero-section { padding: 2.5rem 0; }
  .section-spacing { padding: 2.5rem 0; }
  .cta-section { padding: 1.75rem 1.25rem; }
  .cta-section::before, .cta-section::after { display: none; }

  /* Cards & components */
  .feature-card { padding: 1.5rem; }
  .pricing-card { padding: 1.5rem; }
  .tier-cell { padding: 1.5rem; }
  .partner-form-card { padding: 1.5rem; }
  .scanner-input-wrap { padding: 1rem; }
  .scanner-results > div { padding: 1.25rem; }
  .terminal-body { padding: 1.25rem; font-size: .8125rem; }

  /* Statistics map */
  #world-map { height: 220px; }
  .map-container { min-height: 260px; }

  /* Typography scaling */
  .hero-section h1 { letter-spacing: -0.02em; }
  .mobile-nav-link { font-size: 1.5rem; }

  /* Auth pages */
  .login-page { padding: 1.5rem 0; justify-content: flex-start; }
  .login-card { margin-top: 1rem; }

  /* macOS terminal on mobile */
  .macos-body { padding: 1rem 1.125rem 1.5rem; min-height: 220px; }
  .macos-body pre { font-size: .75rem; line-height: 1.6; }
  .macos-window-title { display: none; }

  /* Compact card padding for mini-stat cards on mobile */
  .card.p-4 { padding: 1rem !important; }

  /* Stat card text scale */
  .stat-card [style*="font-size:1.5rem"] { font-size: 1.25rem !important; }

  /* App header title — prevent overflow */
  .app-header .header-title { font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45vw; }

  /* Public header container padding */
  .public-header .container-xl { padding-left: 1rem; padding-right: 1rem; }

  /* Monetize hero CTA buttons full-width on xs */
  .hero-section .btn, .section-spacing .btn-lg { min-width: 0; }
}

/* ============================================================
   ANIMATIONS & TRANSITIONS
   ============================================================ */

/* Scroll-reveal: start invisible + shifted down; JS adds .is-visible */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delays via data-delay attribute */
.fade-up[data-delay="1"] { transition-delay: 0.07s; }
.fade-up[data-delay="2"] { transition-delay: 0.14s; }
.fade-up[data-delay="3"] { transition-delay: 0.21s; }
.fade-up[data-delay="4"] { transition-delay: 0.28s; }
.fade-up[data-delay="5"] { transition-delay: 0.35s; }
.fade-up[data-delay="6"] { transition-delay: 0.42s; }

/* Enhanced card hover lift */
.stat-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ip-shadow);
}

/* Sidebar nav icon scale on hover */
.sidebar-nav .nav-link .material-symbols-outlined {
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.sidebar-nav .nav-link:hover .material-symbols-outlined {
  transform: scale(1.12);
}

/* Button hover lift */
.btn-primary {
  transition: background-color 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease, transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:hover  { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

/* Feature card entrance smoothing (already has transform; extend timing fn) */
.feature-card {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--ip-shadow); }

/* Login card entrance */
.login-card {
  animation: loginCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* jsvectormap container */
#world-map { width: 100%; height: 360px; }
.jvectormap-label {
  background: var(--ip-navy) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: .25rem .625rem !important;
  font-size: .75rem !important;
  font-family: var(--bs-body-font-family) !important;
}

/* ApexCharts theme override */
.apexcharts-tooltip {
  border-color: var(--ip-border) !important;
  box-shadow: var(--ip-shadow) !important;
  font-family: var(--bs-body-font-family) !important;
}
.apexcharts-tooltip-title {
  background: #f8fafc !important;
  border-bottom-color: var(--ip-border) !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
}

/* Password strength bar */
.pw-strength-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--ip-border);
  overflow: hidden;
  transition: all 0.3s ease;
}
.pw-strength-bar .pw-fill {
  height: 100%;
  border-radius: 999px;
  width: 0%;
  transition: width 0.35s ease, background-color 0.35s ease;
}

/* ============================================================
   PAGE LOADER — Secure Shield Loading Animation
   ============================================================ */

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--ip-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide loader when page is ready */
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ---- Shield Container ---- */
.shield-loader {
  position: relative;
  width: 120px;
  height: 140px;
}

/* Shield background */
.shield-loader::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ip-primary) 0%, #1a52d0 100%);
  border-radius: 12px 12px 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
  box-shadow: 0 20px 60px rgba(var(--ip-primary-rgb), 0.4),
              inset 0 2px 8px rgba(255, 255, 255, 0.2);
  animation: shieldPulse 2.4s ease-in-out infinite;
}

/* Shield checkmark icon */
.shield-loader::after {
  content: '✓';
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
  animation: checkmarkScale 2.4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

/* Rotating rings around shield */
.shield-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border: 2px solid transparent;
  border-top-color: var(--ip-primary);
  border-right-color: var(--ip-primary);
  border-radius: 50%;
  animation: rotateRing 3s linear infinite;
  opacity: 0.6;
}

.shield-ring:nth-child(2) {
  width: 200px;
  height: 200px;
  border-top-color: rgba(var(--ip-primary-rgb), 0.4);
  border-right-color: rgba(var(--ip-primary-rgb), 0.4);
  animation: rotateRing 4.5s linear infinite reverse;
  opacity: 0.4;
}

/* Floating particles */
.loader-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--ip-primary);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 3s ease-in-out infinite;
}

.loader-particle:nth-child(3) { animation-delay: 0s; }
.loader-particle:nth-child(4) { animation-delay: 0.75s; }
.loader-particle:nth-child(5) { animation-delay: 1.5s; }

/* Loading text */
.loader-text {
  text-align: center;
  margin-top: 1rem;
}

.loader-text .brand-name {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.loader-text .loading-dots {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.loading-dots span {
  display: inline-block;
  animation: dotBlink 1.4s infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ---- Animations ---- */

@keyframes shieldPulse {
  0% {
    box-shadow: 0 20px 60px rgba(var(--ip-primary-rgb), 0.4),
                inset 0 2px 8px rgba(255, 255, 255, 0.2),
                0 0 0 0 rgba(var(--ip-primary-rgb), 0.7);
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 20px 60px rgba(var(--ip-primary-rgb), 0.4),
                inset 0 2px 8px rgba(255, 255, 255, 0.2),
                0 0 0 40px rgba(var(--ip-primary-rgb), 0);
    transform: scale(1);
  }
}

@keyframes checkmarkScale {
  0%, 10% {
    opacity: 0;
    transform: scale(0.3);
  }
  40% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateRing {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 80px), var(--ty, -80px)) scale(0);
  }
}

@keyframes dotBlink {
  0%, 60%, 100% {
    opacity: 0.4;
  }
  30% {
    opacity: 1;
  }
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
  .shield-loader {
    width: 100px;
    height: 120px;
  }

  .shield-loader::after {
    font-size: 2.5rem;
  }

  .shield-ring {
    width: 140px;
    height: 140px;
  }

  .shield-ring:nth-child(2) {
    width: 180px;
    height: 180px;
  }

  .loader-text .brand-name {
    font-size: 1rem;
  }

  .loader-text .loading-dots {
    font-size: 0.75rem;
  }
}

/* ============================================================
   SCANNER — In-card shield loader overlay
   ============================================================ */

.scanner-results {
  position: relative;
}

.scan-in-card-loader {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: inherit;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scan-in-card-loader.active {
  opacity: 1;
  visibility: visible;
}

.scan-loader-label {
  margin-top: 1.75rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ip-primary);
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.scan-loader-label .loading-dots span {
  color: var(--ip-primary);
}

/* ============================================================
   MONETIZE — Intelligence Validation Pipeline
   ============================================================ */

.pipeline-section {
  padding: 5rem 0;
  background: #fff;
  border-top: 1px solid var(--ip-border);
  border-bottom: 1px solid var(--ip-border);
}

.pipeline-header {
  margin-bottom: 3.5rem;
}

.pipeline-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ip-primary-light);
  color: var(--ip-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.pipeline-eyebrow .material-symbols-outlined {
  font-size: 16px;
}

.pipeline-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.875rem;
}

.pipeline-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* 4-step track */
.pipeline-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  margin-bottom: 2.5rem;
}

.pipeline-step-card {
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.pipeline-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ip-shadow);
}

.pipeline-step-card--earn {
  border-color: rgba(var(--ip-primary-rgb), 0.25);
  background: var(--ip-primary-light);
}

.pipeline-step-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ip-muted);
  margin-bottom: 1.25rem;
}

.pipeline-step-badge--earn {
  color: var(--ip-primary);
}

.pipeline-step-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid var(--ip-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pipeline-step-icon-wrap .material-symbols-outlined {
  font-size: 22px;
  color: var(--ip-primary);
}

.pipeline-step-icon-wrap--earn {
  background: rgba(var(--ip-primary-rgb), 0.1);
  border-color: rgba(var(--ip-primary-rgb), 0.2);
}

.pipeline-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ip-text);
  margin-bottom: 0.625rem;
}

.pipeline-step-desc {
  font-size: 0.8125rem;
  color: var(--ip-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.pipeline-step-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f1f5f9;
  color: var(--ip-muted);
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
}

.pipeline-step-tag--success {
  background: #ecfdf5;
  color: var(--ip-success);
}

/* Arrow connectors */
.pipeline-arrow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 0.875rem;
  padding-top: 3.75rem;
}

.pipeline-arrow .material-symbols-outlined {
  font-size: 22px;
  color: #cbd5e1;
}

/* Stats bar */
.pipeline-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 2rem;
}

.pipeline-stat-item {
  text-align: center;
  flex: 1;
}

.pipeline-stat-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ip-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.pipeline-stat-lbl {
  font-size: 0.8125rem;
  color: var(--ip-muted);
  font-weight: 500;
}

.pipeline-stat-sep {
  width: 1px;
  height: 48px;
  background: var(--ip-border);
  flex-shrink: 0;
}

/* Pipeline responsive */
@media (max-width: 991.98px) {
  .pipeline-track {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .pipeline-arrow {
    display: none;
  }
  .pipeline-stats-bar {
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .pipeline-stat-sep { display: none; }
  .pipeline-stat-item { flex: 0 0 calc(50% - 1.5rem); }
}

@media (max-width: 767.98px) {
  .pipeline-section { padding: 3rem 0; }
  .pipeline-header { margin-bottom: 2.5rem; }
  .pipeline-stat-item { flex: 0 0 calc(50% - 0.75rem); }
  .pipeline-stats-bar { gap: 1rem; }
}

/* ============================================================
   Partner Tier Section (monetize page)
   ============================================================ */

.partner-section {
  background: var(--ip-surface);
  border-top: 1px solid var(--ip-border);
  border-bottom: 1px solid var(--ip-border);
  padding: 5rem 0;
}

.partner-section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.partner-section__sub {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ip-muted);
  margin: 1rem 0 1.5rem;
}

/* Hint pill */
.partner-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.125rem;
  border-radius: 999px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #15803d;
}
.partner-hint .material-symbols-outlined {
  font-size: 1rem;
  color: #16a34a;
}

/* Two-column tier grid */
.partner-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 840px;
  margin: 0 auto;
}

/* Card base */
.partner-card {
  background: var(--ip-surface);
  border: 1px solid var(--ip-border);
  border-radius: calc(var(--ip-radius) + 4px);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}
.partner-card:hover {
  box-shadow: var(--ip-shadow-lg);
}

/* Premium variant */
.partner-card--premium {
  background: linear-gradient(150deg, rgba(var(--ip-primary-rgb), 0.025) 0%, rgba(var(--ip-primary-rgb), 0.055) 100%);
  border-color: rgba(var(--ip-primary-rgb), 0.28);
  box-shadow: 0 8px 32px rgba(var(--ip-primary-rgb), 0.07);
}
.partner-card--premium:hover {
  box-shadow: 0 16px 48px rgba(var(--ip-primary-rgb), 0.13);
}

/* Card head */
.partner-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.partner-card__eyebrow {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ip-muted);
  margin-bottom: 0.375rem;
}
.partner-card--premium .partner-card__eyebrow {
  color: var(--ip-primary);
}
.partner-card__title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ip-text);
  margin: 0;
  line-height: 1.1;
}

/* Higher payout badge */
.partner-card__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  background: var(--ip-primary);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Fields block */
.partner-card__fields {
  padding: 1.25rem 0;
  border-top: 1px solid var(--ip-border);
  border-bottom: 1px solid var(--ip-border);
  margin-bottom: 1.75rem;
}
.partner-card--premium .partner-card__fields {
  border-color: rgba(var(--ip-primary-rgb), 0.15);
}
.partner-card__fields-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ip-muted);
  margin-bottom: 0.75rem;
}

/* Monospace field tags */
.partner-field-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.partner-field-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--ip-muted);
  border: 1px solid var(--ip-border);
  line-height: 1.4;
}
.partner-field-tag--primary {
  background: var(--ip-primary-light);
  color: var(--ip-primary);
  border-color: rgba(var(--ip-primary-rgb), 0.2);
}

/* Feature list */
.partner-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}
.partner-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--ip-text);
  line-height: 1.55;
}
.partner-feature .material-symbols-outlined {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--ip-primary);
}
.partner-feature--note {
  color: var(--ip-muted);
  font-size: 0.8125rem;
}
.partner-feature--note .material-symbols-outlined {
  color: #cbd5e1;
}

/* CTA strip */
.partner-card__cta {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ip-border);
}
.partner-card--premium .partner-card__cta {
  border-top-color: rgba(var(--ip-primary-rgb), 0.15);
}

/* Responsive */
@media (max-width: 640px) {
  .partner-section { padding: 3.5rem 0; }
  .partner-tier-grid { grid-template-columns: 1fr; }
  .partner-card { padding: 1.75rem; }
}

/* ══════════════════════════════════════════════════════
   BILLING TOGGLE (Monthly / Annual)
   ══════════════════════════════════════════════════════ */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .375rem;
  background: var(--ip-bg-secondary, #f1f5f9);
  border-radius: 999px;
  margin-bottom: 2rem;
}
.billing-toggle__btn {
  padding: .5rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ip-muted);
  cursor: pointer;
  transition: all .2s ease;
}
.billing-toggle__btn.active {
  background: var(--ip-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--ip-primary-rgb), .3);
}
.billing-toggle__save {
  font-size: .75rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: .25rem .75rem;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════
   UNLIMITED BADGE
   ══════════════════════════════════════════════════════ */
.badge-unlimited {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .6875rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--ip-primary-rgb), .1), rgba(var(--ip-primary-rgb), .05));
  color: var(--ip-primary);
  border: 1px solid rgba(var(--ip-primary-rgb), .2);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-unlimited .material-symbols-outlined {
  font-size: 14px;
}

/* ══════════════════════════════════════════════════════
   LIMITED OFFER BADGE
   ══════════════════════════════════════════════════════ */
.badge-limited-offer {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .6875rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  animation: pulse-offer 2s ease-in-out infinite;
}
@keyframes pulse-offer {
  0%, 100% { opacity: 1; }
  50%       { opacity: .7; }
}

/* ══════════════════════════════════════════════════════
   TRIAL COUNTDOWN BANNER
   ══════════════════════════════════════════════════════ */
.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #93c5fd;
  border-radius: var(--ip-radius, 12px);
  margin-bottom: 1.5rem;
}
.trial-banner__text {
  font-size: .875rem;
  font-weight: 500;
  color: #1e40af;
}
.trial-banner__days {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ip-primary);
}
.trial-banner--urgent {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-color: #fca5a5;
}
.trial-banner--urgent .trial-banner__text { color: #991b1b; }
.trial-banner--urgent .trial-banner__days  { color: #dc2626; }

/* ══════════════════════════════════════════════════════
   ANNUAL / MONTHLY PRICE SWITCHING (via JS class toggle)
   ══════════════════════════════════════════════════════ */
.price-annual { display: none; }
.billing-annual .price-monthly { display: none; }
.billing-annual .price-annual  { display: block; }
.annual-savings {
  font-size: .75rem;
  font-weight: 600;
  color: #059669;
  margin-top: .25rem;
}

/* ══════════════════════════════════════════════════════
   FREE TRIAL CTA CARD
   ══════════════════════════════════════════════════════ */
.trial-cta-card {
  padding: 2rem;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 2px dashed rgba(var(--ip-primary-rgb), .3);
  border-radius: var(--ip-radius, 12px);
  text-align: center;
  transition: border-color .2s;
}
.trial-cta-card:hover { border-color: var(--ip-primary); }
.trial-cta-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.trial-cta-card__sub {
  font-size: .875rem;
  color: var(--ip-muted);
  margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════════════════════
   POST-TRIAL GATE
   ══════════════════════════════════════════════════════ */
.trial-expired-gate {
  padding: 2.5rem;
  text-align: center;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--ip-radius, 12px);
  margin-bottom: 1.5rem;
}
.trial-expired-gate__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: .5rem;
}
.trial-expired-gate__text {
  font-size: .875rem;
  color: #a16207;
  margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 575.98px) {
  .billing-toggle { flex-wrap: wrap; justify-content: center; }
  .trial-banner   { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════════════════
   MONETIZE — PARTNER CARD PAYOUT RATE DISPLAY
   ══════════════════════════════════════════════════════ */
.partner-card__rate {
  display: flex;
  align-items: baseline;
  gap: .375rem;
  margin: .75rem 0 1.25rem;
}
.partner-card__rate-val {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ip-text, #0f172a);
  letter-spacing: -.03em;
  line-height: 1;
}
.partner-card__rate-per {
  font-size: .8125rem;
  color: var(--ip-muted, #64748b);
}
.partner-card__rate--premium .partner-card__rate-val {
  color: var(--ip-primary, #2563eb);
}
