/* ======================================================
   BarterFlip Design System v2.0
   Brand: Teal + Amber | "Your talent is your currency"
   ====================================================== */

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

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Primary — Teal (WGSN 2026 Transformative Teal) */
  --bf-primary-50:  #f0fdfa;
  --bf-primary-100: #ccfbf1;
  --bf-primary-200: #99f6e4;
  --bf-primary-300: #5eead4;
  --bf-primary-400: #2dd4bf;
  --bf-primary-500: #14b8a6;
  --bf-primary-600: #0d9488;   /* Main brand teal */
  --bf-primary-700: #0f766e;
  --bf-primary-800: #115e59;
  --bf-primary-900: #134e4a;

  /* Accent — Amber (currency/warmth) */
  --bf-amber-300:   #fcd34d;
  --bf-amber-400:   #fbbf24;
  --bf-amber-500:   #f59e0b;   /* Main accent amber */
  --bf-amber-600:   #d97706;

  /* Neutrals */
  --bf-slate-50:    #f8fafc;
  --bf-slate-100:   #f1f5f9;
  --bf-slate-200:   #e2e8f0;
  --bf-slate-600:   #475569;
  --bf-slate-700:   #334155;
  --bf-slate-800:   #1e293b;
  --bf-slate-900:   #0f172a;

  /* Semantic */
  --bf-success:     #059669;
  --bf-error:       #dc2626;
  --bf-warning:     #d97706;
  --bf-info:        #0d9488;

  /* Shadows */
  --bf-shadow-sm:   0 1px 3px rgba(13,148,136,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --bf-shadow-md:   0 4px 16px rgba(13,148,136,0.12), 0 2px 4px rgba(0,0,0,0.04);
  --bf-shadow-lg:   0 12px 40px rgba(13,148,136,0.18), 0 4px 6px rgba(0,0,0,0.05);
  --bf-shadow-xl:   0 24px 60px rgba(13,148,136,0.22), 0 8px 16px rgba(0,0,0,0.06);

  /* Radius */
  --bf-radius-sm:   8px;
  --bf-radius-md:   12px;
  --bf-radius-lg:   16px;
  --bf-radius-xl:   24px;
  --bf-radius-2xl:  32px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--bf-slate-800);
  background: #f8fafc;
}

/* ── Typography helpers ── */
.bf-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.bf-subheading {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bf-tagline {
  font-style: italic;
  color: var(--bf-primary-600);
  font-weight: 600;
}

/* ──────────────────────────────────────────
   LOGO
────────────────────────────────────────── */
.bf-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.bf-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--bf-primary-600), var(--bf-primary-700));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(13,148,136,0.4);
  flex-shrink: 0;
}
.bf-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bf-slate-900);
}
.bf-logo-text span {
  color: var(--bf-primary-600);
}
.bf-logo-tag {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--bf-primary-600);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  line-height: 1;
  margin-top: 1px;
}

/* ──────────────────────────────────────────
   NAVIGATION
────────────────────────────────────────── */
.bf-nav {
  background: white;
  border-bottom: 1px solid rgba(13,148,136,0.1);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.bf-nav-link {
  color: var(--bf-slate-600);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.15s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.bf-nav-link:hover {
  color: var(--bf-primary-600);
  border-bottom-color: var(--bf-primary-300);
}
.bf-nav-link.active {
  color: var(--bf-primary-600);
  border-bottom-color: var(--bf-primary-600);
}

/* ──────────────────────────────────────────
   BUTTONS
────────────────────────────────────────── */
.bf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: var(--bf-radius-md);
  transition: all 0.18s ease;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
  white-space: nowrap;
}
.bf-btn-sm  { padding: 8px 16px; font-size: 0.8rem; border-radius: var(--bf-radius-sm); }
.bf-btn-md  { padding: 10px 20px; font-size: 0.9rem; }
.bf-btn-lg  { padding: 14px 28px; font-size: 1rem; }
.bf-btn-xl  { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--bf-radius-lg); }

/* Primary (teal) */
.bf-btn-primary {
  background: linear-gradient(135deg, var(--bf-primary-600), var(--bf-primary-700));
  color: white;
  box-shadow: 0 2px 8px rgba(13,148,136,0.35);
}
.bf-btn-primary:hover {
  background: linear-gradient(135deg, var(--bf-primary-500), var(--bf-primary-600));
  box-shadow: 0 4px 16px rgba(13,148,136,0.45);
  transform: translateY(-1px);
}
.bf-btn-primary:active { transform: translateY(0); }

/* Accent (amber/gold) */
.bf-btn-accent {
  background: linear-gradient(135deg, var(--bf-amber-400), var(--bf-amber-500));
  color: var(--bf-slate-900);
  box-shadow: 0 2px 8px rgba(245,158,11,0.35);
}
.bf-btn-accent:hover {
  background: linear-gradient(135deg, var(--bf-amber-300), var(--bf-amber-400));
  box-shadow: 0 4px 16px rgba(245,158,11,0.45);
  transform: translateY(-1px);
}

/* Ghost */
.bf-btn-ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}
.bf-btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.55);
}

/* Outline teal */
.bf-btn-outline {
  background: transparent;
  color: var(--bf-primary-600);
  border: 1.5px solid var(--bf-primary-300);
}
.bf-btn-outline:hover {
  background: var(--bf-primary-50);
  border-color: var(--bf-primary-600);
}

/* Secondary */
.bf-btn-secondary {
  background: var(--bf-slate-100);
  color: var(--bf-slate-700);
  border: 1px solid var(--bf-slate-200);
}
.bf-btn-secondary:hover {
  background: var(--bf-slate-200);
}

/* Danger */
.bf-btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}
.bf-btn-danger:hover { opacity: 0.9; transform: translateY(-1px); }

/* ──────────────────────────────────────────
   CARDS
────────────────────────────────────────── */
.bf-card {
  background: white;
  border-radius: var(--bf-radius-lg);
  border: 1px solid rgba(13,148,136,0.08);
  box-shadow: var(--bf-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.bf-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bf-shadow-lg);
  border-color: rgba(13,148,136,0.2);
}

/* Service card (backward compat) */
.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(13,148,136,0.18);
}

/* ──────────────────────────────────────────
   HERO & GRADIENTS
────────────────────────────────────────── */
.bf-hero-gradient {
  background: linear-gradient(135deg, var(--bf-primary-800) 0%, var(--bf-primary-700) 45%, #134e4a 100%);
}
.bf-hero-gradient-warm {
  background: linear-gradient(135deg, var(--bf-primary-800) 0%, var(--bf-primary-700) 50%, #1c4532 100%);
}
.bf-gradient-teal {
  background: linear-gradient(135deg, var(--bf-primary-600), var(--bf-primary-700));
}
.bf-gradient-amber {
  background: linear-gradient(135deg, var(--bf-amber-400), var(--bf-amber-600));
}
.bf-gradient-section {
  background: linear-gradient(135deg, var(--bf-primary-50), #ecfdf5);
}

/* ──────────────────────────────────────────
   BADGES & TAGS
────────────────────────────────────────── */
/* Credit badge */
.credit-badge {
  background: linear-gradient(135deg, var(--bf-primary-600), var(--bf-primary-700));
  color: white;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
}

/* Status badges */
.status-pending     { background: #fef3c7; color: #92400e; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.status-in_progress { background: #ccfbf1; color: #115e59; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.status-completed   { background: #d1fae5; color: #065f46; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.status-cancelled   { background: #fee2e2; color: #991b1b; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.status-disputed    { background: #fce7f3; color: #9d174d; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

/* Pill tag */
.bf-tag {
  background: var(--bf-primary-50);
  color: var(--bf-primary-700);
  border: 1px solid var(--bf-primary-100);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ──────────────────────────────────────────
   CATEGORY PILLS
────────────────────────────────────────── */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  border: 2px solid transparent;
  font-family: 'Inter', sans-serif;
}
.cat-pill:hover, .cat-pill.active {
  border-color: currentColor;
  background: rgba(13,148,136,0.06);
}

/* ──────────────────────────────────────────
   RATING STARS
────────────────────────────────────────── */
.stars { color: var(--bf-amber-500); }

/* ──────────────────────────────────────────
   VERIFIED BADGE
────────────────────────────────────────── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--bf-primary-600);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ──────────────────────────────────────────
   TOAST NOTIFICATIONS
────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 14px 20px;
  border-radius: var(--bf-radius-md);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  animation: slideIn 0.3s ease;
  max-width: 360px;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast-success { background: linear-gradient(135deg, var(--bf-primary-600), var(--bf-primary-700)); }
.toast-error   { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast-info    { background: linear-gradient(135deg, var(--bf-primary-500), var(--bf-primary-700)); }
.toast-warning { background: linear-gradient(135deg, var(--bf-amber-500), var(--bf-amber-600)); }

@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ──────────────────────────────────────────
   AVATAR
────────────────────────────────────────── */
.avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bf-primary-500), var(--bf-primary-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

/* ──────────────────────────────────────────
   TABS
────────────────────────────────────────── */
.tab-active {
  border-bottom: 3px solid var(--bf-primary-600);
  color: var(--bf-primary-600);
  font-weight: 600;
}

/* ──────────────────────────────────────────
   ANIMATIONS
────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
.animate-pulse { animation: pulse 1.5s ease-in-out infinite; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.4s ease forwards; }

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--bf-radius-md);
}

/* ──────────────────────────────────────────
   TRANSACTION TYPES
────────────────────────────────────────── */
.tx-credit  { color: var(--bf-success); font-weight: 600; }
.tx-debit   { color: var(--bf-error); font-weight: 600; }

/* ──────────────────────────────────────────
   EMPTY STATE
────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}
.empty-state i    { font-size: 3rem; margin-bottom: 16px; display: block; color: var(--bf-primary-200); }
.empty-state h3   { font-size: 1.2rem; font-weight: 700; color: var(--bf-slate-600); margin-bottom: 8px; }
.empty-state p    { font-size: 0.9rem; color: #9ca3af; }

/* ──────────────────────────────────────────
   FORMS & INPUTS
────────────────────────────────────────── */
.bf-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--bf-slate-200);
  border-radius: var(--bf-radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--bf-slate-800);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.bf-input:focus {
  border-color: var(--bf-primary-400);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}
.bf-input::placeholder { color: #94a3b8; }

.bf-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bf-slate-700);
  margin-bottom: 5px;
  font-family: 'Inter', sans-serif;
}

/* ──────────────────────────────────────────
   SECTION HEADERS
────────────────────────────────────────── */
.bf-section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bf-slate-900);
  line-height: 1.15;
}
.bf-section-sub {
  font-size: 1.1rem;
  color: var(--bf-slate-600);
  line-height: 1.6;
  margin-top: 8px;
}

/* ──────────────────────────────────────────
   STEP INDICATOR (How It Works)
────────────────────────────────────────── */
.bf-step-num {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  font-weight: 800;
}
.bf-step-num.s1 { background: linear-gradient(135deg, var(--bf-primary-500), var(--bf-primary-700)); color: white; }
.bf-step-num.s2 { background: linear-gradient(135deg, #059669, #047857); color: white; }
.bf-step-num.s3 { background: linear-gradient(135deg, var(--bf-amber-400), var(--bf-amber-600)); color: white; }
.bf-step-num.s4 { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: white; }

/* ──────────────────────────────────────────
   TRUST / ICON BOX
────────────────────────────────────────── */
.bf-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--bf-radius-sm);
  background: var(--bf-primary-50);
  border: 1px solid var(--bf-primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bf-primary-600);
  flex-shrink: 0;
  transition: all 0.18s;
}
.bf-icon-box:hover, .group:hover .bf-icon-box {
  background: var(--bf-primary-600);
  color: white;
  border-color: var(--bf-primary-600);
}

/* ──────────────────────────────────────────
   NOTIFICATION PANEL
────────────────────────────────────────── */
#notif-panel, #user-menu {
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform-origin: top right;
}

/* ──────────────────────────────────────────
   STAT CARD (dashboard)
────────────────────────────────────────── */
.stat-card {
  background: white;
  border-radius: var(--bf-radius-lg);
  padding: 20px 24px;
  border: 1px solid rgba(13,148,136,0.1);
  box-shadow: var(--bf-shadow-sm);
}
.stat-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bf-primary-600);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.04em;
}
.stat-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bf-slate-600);
  margin-top: 2px;
}

/* ──────────────────────────────────────────
   FEATURE HIGHLIGHT BADGE (hero)
────────────────────────────────────────── */
.bf-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ──────────────────────────────────────────
   RESPONSIVE HELPERS
────────────────────────────────────────── */
@media (max-width: 640px) {
  .bf-section-title { font-size: 1.75rem; }
  .bf-section-sub   { font-size: 1rem; }
}

/* ──────────────────────────────────────────
   HERO DECORATIVE ORBS
────────────────────────────────────────── */
.bf-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
}
.bf-orb-1 { width: 400px; height: 400px; background: var(--bf-primary-300); top: -80px; left: -80px; }
.bf-orb-2 { width: 500px; height: 500px; background: var(--bf-amber-300); bottom: -100px; right: -100px; }
.bf-orb-3 { width: 280px; height: 280px; background: #5eead4; top: 40%; left: 50%; }

/* ──────────────────────────────────────────
   SCROLLBAR
────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--bf-primary-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bf-primary-500); }

/* ──────────────────────────────────────────
   SELECTION
────────────────────────────────────────── */
::selection {
  background: rgba(13,148,136,0.2);
  color: var(--bf-primary-800);
}

/* ──────────────────────────────────────────
   FOCUS VISIBLE (Accessibility)
────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--bf-primary-500);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS — ANIMATED SECTION
   ═══════════════════════════════════════════════════════════ */

/* ── Outer Section ── */
.hiw-section {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 40%, #ffffff 100%);
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
}
.hiw-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(13,148,136,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Header ── */
.hiw-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 0 24px;
}
.hiw-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdfa;
  color: #0d9488;
  border: 1px solid #99f6e4;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hiw-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 14px;
}
.hiw-title em {
  font-style: normal;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hiw-sub {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.7;
}

/* ── Scene Wrapper ── */
.hiw-scene-wrap {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 0 24px;
}
.hiw-scene {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  min-height: 340px;
}

/* ── Actors (Alice / Bob) ── */
.hiw-actor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 120px;
}
.hiw-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hiw-avatar-teal  { background: linear-gradient(135deg, #0d9488, #0f766e); }
.hiw-avatar-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.hiw-actor:hover .hiw-avatar { transform: scale(1.08); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.hiw-actor-name {
  font-weight: 800;
  font-size: 1rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.hiw-actor-tag {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
  text-align: center;
}
.hiw-credit-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 4px;
  transition: all 0.4s ease;
}
.hiw-badge-earn  { background: #f0fdfa; color: #0f766e; border: 1.5px solid #99f6e4; }
.hiw-badge-spend { background: #fffbeb; color: #92400e; border: 1.5px solid #fde68a; }
.hiw-coin { font-size: 1rem; }

/* ── Arena ── */
.hiw-arena {
  position: relative;
  width: 360px;
  height: 360px;
  flex-shrink: 0;
  margin: 0 auto;
}
.hiw-orbit-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ── Hub ── */
.hiw-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 5;
}
.hiw-hub-inner {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(13,148,136,0.45);
  animation: hubFloat 3s ease-in-out infinite;
}
@keyframes hubFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.hiw-hub-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #0d9488;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hiw-hub-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 20px;
  border: 2px solid rgba(13,148,136,0.4);
  animation: hubPulse 2.4s ease-out infinite;
}
@keyframes hubPulse {
  0%   { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(2.2); }
}

/* ── Service card on orbit ── */
.hiw-service-card {
  position: absolute;
  width: 130px;
  z-index: 6;
  transition: opacity 0.3s ease;
}
.hiw-card-inner {
  background: white;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(13,148,136,0.1);
  border: 1.5px solid rgba(13,148,136,0.15);
  text-align: center;
  transition: all 0.3s ease;
  animation: cardFloat 3.5s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-8px) rotate(1deg); }
}
.hiw-card-icon  { font-size: 1.6rem; margin-bottom: 6px; }
.hiw-card-title { font-size: 0.75rem; font-weight: 700; color: #0f172a; margin-bottom: 5px; }
.hiw-card-credit {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: white;
  border-radius: 12px;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ── Credit Token Particle ── */
.hiw-token {
  position: absolute;
  z-index: 8;
  font-size: 1.3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  filter: drop-shadow(0 0 8px rgba(251,191,36,0.8));
}

/* ── Orbit Dots ── */
.hiw-orbit-labels { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hiw-orbit-dot {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hiw-dot-top    { top: -4px;     left: 50%;       transform: translateX(-50%); flex-direction: column; }
.hiw-dot-right  { right: -4px;   top: 50%;        transform: translateY(-50%); flex-direction: row-reverse; gap: 8px; }
.hiw-dot-bottom { bottom: -4px;  left: 50%;       transform: translateX(-50%); flex-direction: column-reverse; }
.hiw-dot-left   { left: -4px;    top: 50%;        transform: translateY(-50%); flex-direction: row; gap: 8px; }

.hiw-dot-circle {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.hiw-dot-circle.active {
  background: #0d9488;
  box-shadow: 0 0 0 4px rgba(13,148,136,0.25);
  transform: scale(1.3);
}
.hiw-dot-tooltip {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  background: white;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  pointer-events: none;
}

/* ── Progress Bar ── */
.hiw-progress-bar {
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-top: 24px;
  overflow: hidden;
}
.hiw-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0d9488, #14b8a6);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Step Cards Strip ── */
.hiw-steps-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 0 24px;
}
.hiw-step-card {
  background: white;
  border-radius: 16px;
  padding: 20px 16px;
  border: 1.5px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.hiw-step-card:hover {
  border-color: #99f6e4;
  box-shadow: 0 4px 20px rgba(13,148,136,0.1);
  transform: translateY(-2px);
}
.hiw-step-card.active {
  border-color: #0d9488;
  box-shadow: 0 6px 24px rgba(13,148,136,0.18);
  transform: translateY(-4px);
}
.hiw-step-card-num {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 10px;
}
.hiw-step-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}
.hiw-step-card.active .hiw-step-icon { transform: scale(1.15); }
.hiw-step-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.hiw-step-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.55;
}
.hiw-step-active-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0 0 14px 14px;
}
.hiw-step-card.active .hiw-step-active-bar { opacity: 1; }

/* ── Controls ── */
.hiw-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
}
.hiw-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 10px;
  background: #f0fdfa;
  color: #0d9488;
  border: 1.5px solid #99f6e4;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Inter', sans-serif;
}
.hiw-ctrl-btn:hover {
  background: #0d9488;
  color: white;
  border-color: #0d9488;
}
.hiw-ctrl-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hiw-ctrl-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.hiw-ctrl-dot.active {
  background: #0d9488;
  width: 26px;
  border-radius: 5px;
}

/* ── Message Pop-ups ── */
.hiw-msg {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border: 1.5px solid #f1f5f9;
  white-space: nowrap;
  z-index: 10;
  opacity: 0;
  transform: scale(0.8) translateY(8px);
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.hiw-msg.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.hiw-msg-green { border-color: #99f6e4; }
.hiw-msg-amber { border-color: #fde68a; }

/* ── Scroll-triggered entrance ── */
.hiw-section .hiw-scene-wrap {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hiw-section.visible .hiw-scene-wrap {
  opacity: 1;
  transform: translateY(0);
}
.hiw-section .hiw-steps-strip {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}
.hiw-section.visible .hiw-steps-strip {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hiw-scene { flex-direction: column; min-height: auto; gap: 16px; }
  .hiw-actor { flex-direction: row; width: 100%; justify-content: center; }
  .hiw-arena { width: 280px; height: 280px; }
  .hiw-steps-strip { grid-template-columns: repeat(2, 1fr); }
  .hiw-actor-left, .hiw-actor-right { flex-direction: row; gap: 12px; align-items: center; }
}
@media (max-width: 480px) {
  .hiw-steps-strip { grid-template-columns: 1fr; }
  .hiw-arena { width: 240px; height: 240px; }
}

/* ── Step-specific card content transitions ── */
.hiw-card-inner.flip-exit {
  animation: cardFlipOut 0.2s ease forwards;
}
.hiw-card-inner.flip-enter {
  animation: cardFlipIn 0.3s ease forwards;
}
@keyframes cardFlipOut {
  0%   { opacity: 1; transform: rotateY(0deg) scale(1); }
  100% { opacity: 0; transform: rotateY(-90deg) scale(0.8); }
}
@keyframes cardFlipIn {
  0%   { opacity: 0; transform: rotateY(90deg) scale(0.8); }
  100% { opacity: 1; transform: rotateY(0deg) scale(1); }
}

/* ── Actor highlight ── */
.hiw-actor.highlight .hiw-avatar {
  box-shadow: 0 0 0 6px rgba(13,148,136,0.25), 0 8px 32px rgba(0,0,0,0.2);
  transform: scale(1.1);
}
.hiw-actor.highlight-amber .hiw-avatar {
  box-shadow: 0 0 0 6px rgba(245,158,11,0.25), 0 8px 32px rgba(0,0,0,0.2);
  transform: scale(1.1);
}
