/* ===================================================
   dPaPay — Design System v2
   Modern, professional SaaS marketplace theme
   Inspired by Fiverr, Claude.com, Loom
   =================================================== */
:root {
  /* Brand */
  --purple:       #1dbf73;
  --purple-dark:  #19a463;
  --purple-light: #86efac;
  --purple-50:    #e6faf0;
  --purple-100:   #ccf5e0;
  --purple-200:   #99ebc1;
  --purple-300:   #66e0a2;
  --purple-400:   #33d683;
  --purple-500:   #1dbf73;
  --purple-600:   #16a34a;
  --purple-700:   #15803d;

  /* Neutrals */
  --white:        #ffffff;
  --gray-50:      #f8fafc;
  --gray-100:     #f1f5f9;
  --gray-200:     #e2e8f0;
  --gray-300:     #cbd5e1;
  --gray-400:     #94a3b8;
  --gray-500:     #64748b;
  --gray-600:     #475569;
  --gray-700:     #334155;
  --gray-800:     #1e293b;
  --gray-900:     #0f172a;

  /* Accents */
  --green:        #059669;
  --green-light:  #34d399;
  --green-50:     #ecfdf5;
  --green-brand:       #1dbf73;
  --green-brand-dark:  #17a963;
  --green-brand-light: #7beb9f;
  --green-brand-50:    #e6faf0;
  --green-brand-100:   #cdf0da;
  --amber:        #d97706;
  --amber-light:  #fbbf24;
  --amber-50:     #fffbeb;
  --blue:         #2563eb;
  --blue-50:      #eff6ff;
  --red:          #dc2626;
  --red-50:       #fef2f2;
  --red-100:      #fee2e2;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #1dbf73 0%, #19a463 50%, #46d996 100%);
  --gradient-subtle: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  --gradient-hero: linear-gradient(180deg, #f8fafc 0%, #eef2ff 50%, #f5f3ff 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);

  /* Radius */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.04);
  --shadow-green: 0 4px 14px rgba(29,191,115,0.25);
  --shadow-green-lg: 0 8px 30px rgba(29,191,115,0.3);

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  --nav-height: 64px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---- Container ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  height: var(--nav-height);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo-accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.desktop-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.2s;
  padding: 4px 0;
  position: relative;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform 0.2s;
  border-radius: 2px;
}
.desktop-nav a:hover { color: var(--gray-900); }
.desktop-nav a:hover::after { transform: scaleX(1); }
.desktop-nav .nav-cta {
  background: var(--green-brand);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s;
}
.desktop-nav .nav-cta::after { display: none; }
.desktop-nav .nav-cta:hover {
  background: var(--green-brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  pointer-events: none;
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-nav-overlay.open {
  pointer-events: auto;
  display: block;
  opacity: 1;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--white);
  padding: 80px 28px 28px;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -8px 0 30px rgba(0,0,0,0.1);
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s;
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover { color: var(--purple); }

/* ---- Animated background grid ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-bg-grid {
  position: absolute;
  inset: -50% -50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(800px) rotateX(6deg);
  transform-origin: center top;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
  0% { transform: perspective(800px) rotateX(6deg) translateY(0); }
  100% { transform: perspective(800px) rotateX(6deg) translateY(64px); }
}
.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.1) 0%, rgba(139,92,246,0.06) 30%, transparent 70%);
  animation: glowPulse 6s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  text-align: center;
  padding: 90px 0 60px;
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
}
.hero > * { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-brand-50);
  color: var(--green-brand-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  border: 1px solid rgba(29,191,115,0.2);
  box-shadow: 0 1px 4px rgba(29,191,115,0.08);
  animation: fadeInUp 0.6s ease-out;
}
.hero-badge svg {
  color: var(--green-brand);
}
.hero h1 {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2.8px;
  color: #1a1a2e;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}
.hero h1 span {
  color: var(--green-brand);
  -webkit-text-fill-color: var(--green-brand);
}
.hero .subtitle {
  font-size: 18px;
  color: #6b7280;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.75;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}
.hero-search-wrapper {
  margin: 0 auto 36px;
  max-width: 640px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out 0.25s both;
}
.hero-search {
  display: flex;
  background: var(--white);
  border: 2px solid #d1d5db;
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}
.hero-search:focus-within {
  border-color: var(--green-brand);
  box-shadow: 0 4px 28px rgba(29,191,115,0.15);
}
.hero-search input {
  flex: 1;
  border: none;
  padding: 18px 24px;
  font-size: 16px;
  font-family: var(--font);
  color: var(--gray-800);
  outline: none;
  background: transparent;
  min-width: 0;
}
.hero-search input::placeholder {
  color: #9ca3af;
  font-size: 15px;
}
.hero-search button {
  background: var(--green-brand);
  color: var(--white);
  border: none;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  white-space: nowrap;
}
.hero-search button:hover {
  background: var(--green-brand-dark);
}
.hero-search button svg {
  width: 17px;
  height: 17px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.35s both;
}
.hero-trust-row {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 44px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}
.hero-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--green-brand);
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: var(--font);
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--gray-900);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.btn-primary:hover {
  background: #000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}
.btn-green {
  background: var(--green-brand);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(29,191,115,0.3);
}
.btn-green:hover {
  background: var(--green-brand-dark);
  box-shadow: 0 6px 20px rgba(29,191,115,0.35);
  transform: translateY(-2px);
}
.btn-outline {
  background: var(--white);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}
.btn-purple {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(29,191,115,0.25);
}
.btn-purple:hover {
  box-shadow: var(--shadow-green-lg);
  transform: translateY(-2px);
}

/* ---- Section ---- */
section { padding: 90px 0; }
section:nth-child(even) { background: var(--gray-50); }
.section-title {
  font-size: 34px;
  font-weight: 800;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -1px;
  line-height: 1.15;
}
.section-subtitle {
  font-size: 16px;
  color: #6b7280;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.75;
}

/* ---- How It Works (Buyer + Provider) ---- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}
.audience-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.audience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}
.audience-card:hover::before { opacity: 1; }
.audience-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--purple-200);
}
.audience-card .card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.audience-card .card-badge.buyer {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.audience-card .card-badge.provider {
  background: var(--purple-50);
  color: var(--purple-700);
  border: 1px solid var(--purple-200);
}
.audience-card .card-icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.audience-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.audience-card > p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}
.audience-card ul {
  list-style: none;
  padding: 0;
}
.audience-card ul li {
  font-size: 14px;
  color: var(--gray-600);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.audience-card ul li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Onboarding Steps ---- */
.steps-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.steps-connector {
  display: none;
  position: absolute;
  top: 32px;
  left: 50%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-200), var(--purple-100), transparent);
  transform: translateX(-25%);
  z-index: 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.step {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}
.step:hover::before { opacity: 1; }
.step:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--purple-200);
}
.step-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--purple-50), var(--purple-100));
  color: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  margin: 0 auto 16px;
  border: 2px solid var(--purple-200);
  transition: transform 0.3s;
}
.step:hover .step-icon { transform: scale(1.1); }
.step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ---- Live Listings ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 22px 22px 16px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green-brand);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: rgba(29,191,115,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-4px);
}
.service-card .card-cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--green-brand-50);
  color: var(--green-brand-dark);
  border: 1px solid rgba(29,191,115,0.15);
  margin-bottom: 10px;
}
.service-card h3,
.service-card .card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
  line-height: 1.35;
}
.service-card .desc,
.service-card .card-desc {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
}
.service-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 8px;
}
.service-card .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-brand-dark);
}
.service-card .price-unit {
  font-size: 13px;
  color: var(--gray-400);
}
.service-card .meta {
  font-size: 12px;
  color: var(--gray-400);
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}
.service-card .meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.loading-state, .empty-state, .error-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
  font-size: 15px;
  grid-column: 1 / -1;
}
.category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.cat-btn {
  padding: 6px 18px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--gray-600);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.cat-btn:hover {
  border-color: var(--purple-300);
  color: var(--purple);
  box-shadow: 0 1px 4px rgba(99,102,241,0.1);
}
.cat-btn.active {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ---- On/Off Ramp ---- */
.ramp-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}
.ramp-step {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.ramp-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}
.ramp-step:hover::before { opacity: 1; }
.ramp-step:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--purple-200);
}
.ramp-step .emoji-icon {
  font-size: 40px;
  margin-bottom: 14px;
  display: block;
}
.ramp-step h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.ramp-step p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}
.ramp-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gray-300);
  font-weight: 300;
}
.ramp-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.ramp-buttons .btn {
  padding: 10px 22px;
  font-size: 14px;
}
.ramp-footer {
  text-align: center;
  margin-top: 36px;
  font-size: 14px;
  color: var(--gray-500);
}
.ramp-footer a {
  color: var(--purple);
  font-weight: 500;
}
.ramp-footer a:hover { text-decoration: underline; }

/* ---- Cross-Chain Bridge (Simplified) ---- */
.bridge-section {
  position: relative;
}
.bridge-visual {
  max-width: 860px;
  margin: 0 auto;
  background: var(--gradient-subtle);
  border: 1px solid var(--purple-100);
  border-radius: var(--radius-xl);
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
}
.bridge-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.bridge-visual::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.bridge-visual > * { position: relative; z-index: 1; }
.bridge-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,0.1);
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(99,102,241,0.15);
  margin-bottom: 20px;
}
.bridge-visual h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.bridge-visual > p {
  font-size: 15px;
  color: var(--gray-500);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.bridge-chain-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.bridge-chain-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--purple-200);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  transition: all 0.2s;
}
.bridge-chain-tag:hover { 
  box-shadow: var(--shadow-sm);
  border-color: var(--purple-300);
}
.bridge-chain-tag .tag-icon { font-size: 16px; }
.bridge-chain-tag .tag-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.bridge-chain-tag .tag-status.active {
  background: var(--green-50);
  color: var(--green);
}
.bridge-chain-tag .tag-status.coming {
  background: var(--amber-50);
  color: var(--amber);
}
.bridge-fee-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}
.bridge-fee-row .fee-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bridge-fee-row .fee-label {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}
.bridge-fee-row .fee-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}
.bridge-fee-row .fee-note {
  font-size: 12px;
  color: var(--gray-400);
  margin-left: auto;
}

/* Bridge details expandable */
.bridge-tech-toggle {
  margin-top: 4px;
}
.bridge-tech-toggle summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  transition: color 0.2s;
}
.bridge-tech-toggle summary::-webkit-details-marker { display: none; }
.bridge-tech-toggle summary::marker { display: none; content: ""; }
.bridge-tech-toggle summary::before {
  content: "▶";
  font-size: 10px;
  color: var(--gray-400);
  transition: transform 0.2s;
}
.bridge-tech-toggle[open] > summary::before { transform: rotate(90deg); }
.bridge-tech-toggle summary:hover { color: var(--purple); }
.bridge-tech-content {
  font-size: 13px;
  color: var(--gray-500);
  padding: 12px 0 8px 18px;
  line-height: 1.7;
  max-width: 100%;
}
.bridge-tech-content strong { color: var(--gray-700); }
.bridge-tech-content code {
  background: var(--gray-100);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--purple);
}
.bridge-tech-content ol {
  padding-left: 20px;
  margin: 6px 0;
}
.bridge-tech-content ol li { margin-bottom: 6px; }

/* Bridge Status Widget */
.bridge-status-widget {
  max-width: 860px;
  margin: 20px auto 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}
.bridge-status-widget h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bridge-status-widget .status-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}
.bridge-status-widget .status-row:last-child { border-bottom: none; }
.bridge-status-widget .status-label { color: var(--gray-400); }
.bridge-status-widget .status-value {
  font-weight: 600;
  color: var(--gray-700);
}
.bridge-status-widget .status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.bridge-status-widget .status-dot.green { background: var(--green); }
.bridge-status-widget .status-dot.amber { background: var(--amber); }

/* ---- Escrow / Bridge Chain Cards (Legacy nested, keep for JS) ---- */
.bridge-chains {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}
.bridge-chain-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: all 0.2s;
}
.bridge-chain-card:hover { box-shadow: var(--shadow-md); }
.bridge-chain-card .chain-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.bridge-chain-card .chain-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  background: var(--gray-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.bridge-chain-card .chain-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}
.bridge-chain-card .chain-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: 6px;
}
.bridge-chain-card .chain-status.active {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.bridge-chain-card .chain-status.coming-soon {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.bridge-chain-card .chain-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-top: 4px;
}
.bridge-chain-card .chain-currencies {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bridge-chain-card .chain-currency-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--purple-50);
  color: var(--purple);
  border: 1px solid var(--purple-200);
}
.bridge-fee-display {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.bridge-fee-display .fee-label {
  font-size: 13px;
  color: var(--gray-500);
}
.bridge-fee-display .fee-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}
.bridge-fee-display .fee-note {
  font-size: 11px;
  color: var(--gray-400);
  width: 100%;
}
.bridge-details {
  margin-top: 20px;
  border-top: 1px solid var(--gray-200);
  padding-top: 14px;
}
.bridge-details summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  transition: color 0.2s;
}
.bridge-details summary::-webkit-details-marker { display: none; }
.bridge-details summary::marker { display: none; content: ""; }
.bridge-details summary::before {
  content: "▶";
  font-size: 10px;
  color: var(--gray-400);
  transition: transform 0.2s;
}
.bridge-details[open] > summary::before { transform: rotate(90deg); }
.bridge-details summary:hover { color: var(--purple); }
.bridge-details-content {
  font-size: 13px;
  color: var(--gray-500);
  padding: 12px 0 8px 18px;
  line-height: 1.7;
}
.bridge-details-content strong { color: var(--gray-700); }
.bridge-details-content code {
  background: var(--gray-100);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--purple);
}
.bridge-details-content ol {
  padding-left: 20px;
  margin: 6px 0;
}
.bridge-details-content ol li { margin-bottom: 6px; }

/* ---- Trust & Security ---- */
.trust-section {
  max-width: 860px;
  margin: 0 auto;
}
.trust-main {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  transition: all 0.3s;
}
.trust-main:hover { box-shadow: var(--shadow-lg); }
.trust-main h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 8px;
}
.trust-main > .trust-intro {
  font-size: 15px;
  color: var(--gray-500);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.trust-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.trust-feature {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.trust-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}
.trust-feature:hover::before { opacity: 0.6; }
.trust-feature:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--purple-200);
  transform: translateY(-2px);
}
.trust-feature .tf-icon {
  font-size: 28px;
  margin-bottom: 10px;
}
.trust-feature h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  line-height: 1.4;
}
.trust-feature p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Escrow Simplified Badges */
.trust-feature .escrow-cycle {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.escrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.escrow-badge.locked {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.escrow-badge.released {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.escrow-badge.cancelled {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.escrow-badge.expired {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}
.escrow-badge.pending {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.escrow-badge.failed {
  background: #fce4ec;
  color: #880e4f;
  border: 1px solid #f8bbd0;
}

/* Security Scanner inline */
.scanner-inline {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.scanner-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}
.scanner-item.clean {
  background: var(--green-50);
  color: var(--green);
  border-color: var(--green-light);
}
.scanner-item.blocked {
  background: var(--amber-50);
  color: var(--amber);
  border-color: var(--amber-light);
}
.scanner-item.scanned {
  background: var(--blue-50);
  color: var(--blue);
  border-color: #93c5fd;
}
.scanner-item .si-num {
  font-size: 20px;
  font-weight: 700;
}

/* Trust Security Row */
.trust-security-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.trust-security-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}
.trust-security-card:hover { 
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.trust-security-card .ts-icon {
  font-size: 24px;
  margin-bottom: 8px;
}
.trust-security-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.trust-security-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Escrow Dev Tools (hidden by default) */
.escrow-dev-tools {
  margin-top: 28px;
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
}
.escrow-dev-tools summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  transition: color 0.2s;
}
.escrow-dev-tools summary::-webkit-details-marker { display: none; }
.escrow-dev-tools summary::marker { display: none; content: ""; }
.escrow-dev-tools summary::before {
  content: "▶";
  font-size: 10px;
  color: var(--gray-400);
  transition: transform 0.2s;
}
.escrow-dev-tools[open] > summary::before { transform: rotate(90deg); }
.escrow-dev-tools summary:hover { color: var(--purple); }
.escrow-dev-tools .escrow-intro {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.6;
}
.escrow-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.escrow-form .full-width { grid-column: 1 / -1; }
.escrow-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}
.escrow-form input, .escrow-form select, .escrow-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.escrow-form input:focus, .escrow-form select:focus, .escrow-form textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-50);
}
.escrow-form textarea {
  resize: vertical;
  min-height: 60px;
}
.escrow-form .btn { justify-content: center; }

/* Escrow Result */
.escrow-result {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 16px;
}
.escrow-result.error {
  background: #fef2f2;
  border-color: #fca5a5;
}
.escrow-result h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-900);
}
.escrow-result .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  color: var(--gray-600);
}
.escrow-result .detail-row .label { color: var(--gray-400); }
.escrow-result .detail-row .val { font-weight: 500; }
.escrow-result .btn {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}
.escrow-result .tx-hash {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-400);
  word-break: break-all;
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--gray-50);
  border-radius: 4px;
}

/* Active Escrow */
.active-escrow {
  background: var(--white);
  border: 2px solid var(--purple-200);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
}
.active-escrow .escrow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.active-escrow .escrow-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}
.active-escrow .escrow-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.active-escrow .escrow-detail-item {
  font-size: 13px;
}
.active-escrow .escrow-detail-item .label {
  color: var(--gray-400);
  display: block;
  margin-bottom: 2px;
}
.active-escrow .escrow-detail-item .value {
  font-weight: 600;
  color: var(--gray-800);
}
.active-escrow .escrow-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.escrow-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.escrow-step:last-child { border-bottom: none; }
.escrow-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--purple-50);
  color: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--purple-100);
}
.escrow-step-content { flex: 1; }
.escrow-step-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.escrow-step-content p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Escrow Timer */
.escrow-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-50);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--amber-light);
}
.escrow-timer.urgent {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fca5a5;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.escrow-section.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Cross-chain notice */
.bridge-notice-inline {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #4338ca;
}
.bridge-notice-inline strong {
  display: block;
  margin-bottom: 4px;
}
.bridge-notice-chains {
  display: inline-flex;
  gap: 6px;
  margin: 6px 0;
  flex-wrap: wrap;
}
.bridge-notice-chain-tag {
  background: #e0e7ff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
}
.bridge-notice-chain-tag.native {
  background: #d1fae5;
  color: #065f46;
}

/* ---- CTA Banner ---- */
.cta-banner {
  text-align: center;
  padding: 80px 48px;
  background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
  border-radius: var(--radius-xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29,191,115,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(29,191,115,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.cta-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 30px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-banner .btn-primary {
  background: var(--green-brand);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(29,191,115,0.25);
}
.cta-banner .btn-primary:hover {
  background: var(--green-brand-dark);
  box-shadow: 0 6px 20px rgba(29,191,115,0.35);
  transform: translateY(-2px);
}
.cta-banner .btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.25);
}
.cta-banner .btn-outline:hover {
  border-color: var(--green-brand);
  background: rgba(29,191,115,0.1);
  transform: translateY(-2px);
}

/* ---- FAQ ---- */
.faq-grid {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 6px 0;
}
.faq-item:first-of-type {
  border-top: 1px solid var(--gray-200);
}
.faq-item summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ""; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--gray-400);
  transition: transform 0.2s;
}
.faq-item[open] > summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover { color: var(--purple); }
.faq-item .faq-content {
  font-size: 14px;
  color: var(--gray-500);
  padding: 0 0 20px 0;
  line-height: 1.7;
}
.faq-item .faq-content ul {
  padding-left: 18px;
  margin: 8px 0;
}
.faq-item .faq-content ul li { margin-bottom: 4px; }
.faq-item .faq-content strong { color: var(--gray-700); }
.faq-item .faq-content a {
  color: var(--purple);
  font-weight: 500;
}
.faq-item .faq-content a:hover { text-decoration: underline; }

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 56px 0 40px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
footer .footer-links a {
  font-size: 14px;
  color: var(--gray-400);
  transition: color 0.2s;
}
footer .footer-links a:hover { color: var(--gray-600); }
footer .logo {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}
footer p {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.8;
}
footer .footer-legal {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  text-align: left;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
footer .footer-legal h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 8px;
}
footer .footer-rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
}
footer .footer-rules-grid .allowed h5 {
  color: var(--green);
  margin-bottom: 4px;
  font-size: 13px;
}
footer .footer-rules-grid .prohibited {
  background: var(--red-50);
  border-radius: 6px;
  padding: 12px;
}
footer .footer-rules-grid .prohibited h5 {
  color: var(--red);
  margin-bottom: 4px;
  font-size: 13px;
}
footer .footer-rules-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer .footer-rules-grid ul li {
  padding-left: 16px;
  position: relative;
  color: var(--gray-500);
}
footer .footer-rules-grid .allowed ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
}
footer .footer-rules-grid .prohibited ul li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: var(--red);
}
footer .footer-disclaimer {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 10px;
  line-height: 1.6;
}

/* ================================================
   AI & Crypto 101 — Beginner Guide
   ================================================ */
.guide-101 {
  background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 50%, #ecfdf5 100%);
  border-top: 1px solid var(--purple-100);
  border-bottom: 1px solid var(--purple-100);
}
.guide-101 .section-subtitle {
  margin-bottom: 40px;
}

/* Concept cards */
.guide-concepts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto 48px;
}
.guide-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.guide-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--purple-200);
}
.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.guide-card.ai-card::before { background: linear-gradient(90deg, var(--purple), var(--purple-light)); }
.guide-card.crypto-card::before { background: linear-gradient(90deg, var(--green), var(--green-light)); }
.guide-card.why-card::before { background: linear-gradient(90deg, var(--blue), #60a5fa); }
.guide-card .gc-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}
.guide-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.guide-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}
.guide-card p + p {
  margin-top: 10px;
}
.guide-card .highlight {
  display: inline-block;
  background: var(--purple-50);
  color: var(--purple);
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 4px;
}
.guide-getting-started {
  max-width: 860px;
  margin: 0 auto 48px;
}
.guide-getting-started h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 28px;
}
.start-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.start-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 24px;
  transition: all 0.3s ease;
}
.start-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: var(--purple-200);
}
.start-step .step-emoji {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--purple-50), var(--purple-100));
  border: 2px solid var(--purple-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform 0.3s;
}
.start-step:hover .step-emoji {
  transform: scale(1.1);
}
.start-step .step-body {
  flex: 1;
}
.start-step .step-body h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}
.start-step .step-body p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}
.start-step .step-body .step-highlight {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-50);
  padding: 2px 10px;
  border-radius: 6px;
}

/* Glossary */
.glossary-inline {
  max-width: 720px;
  margin: 0 auto;
}
.glossary-inline h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 20px;
}
.glossary-term {
  border-bottom: 1px solid var(--gray-200);
}
.glossary-term:first-of-type {
  border-top: 1px solid var(--gray-200);
}
.glossary-term summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  transition: color 0.2s;
}
.glossary-term summary::-webkit-details-marker { display: none; }
.glossary-term summary::marker { display: none; content: ''; }
.glossary-term summary .gloss-emoji {
  font-size: 18px;
  flex-shrink: 0;
}
.glossary-term summary .gloss-arrow {
  margin-left: auto;
  font-size: 14px;
  color: var(--gray-400);
  transition: transform 0.2s;
}
.glossary-term[open] > summary .gloss-arrow {
  transform: rotate(180deg);
}
.glossary-term summary:hover { color: var(--purple); }
.glossary-term .gloss-content {
  font-size: 14px;
  color: var(--gray-500);
  padding: 0 0 16px 32px;
  line-height: 1.7;
}
.glossary-term .gloss-content strong { color: var(--gray-700); }
.glossary-term .gloss-content code {
  background: var(--gray-100);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.guide-101 .guide-note {
  text-align: center;
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.guide-101 .guide-note a {
  color: var(--purple);
  font-weight: 500;
}
.guide-101 .guide-note a:hover {
  text-decoration: underline;
}

/* ---- Animations ---- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* ================================================
   MOBILE
   ================================================ */
@media (max-width: 768px) {
  body.menu-open { overflow: hidden; }
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .mobile-nav-overlay {
  pointer-events: none; display: block; }

  header {
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 36px; letter-spacing: -1.5px; }
  .hero-badge { font-size: 12px; padding: 5px 14px; }
  .hero .subtitle { font-size: 16px; }
  .hero-search-wrapper { margin: 0 auto 28px; }
  .hero-search input { padding: 14px 18px; font-size: 15px; }
  .hero-search button { padding: 0 22px; font-size: 14px; }
  .hero-trust-row { gap: 20px; margin-top: 36px; }

  .steps { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .audience-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .trust-features { grid-template-columns: 1fr; }
  .trust-security-row { grid-template-columns: 1fr; }
  .bridge-chains { grid-template-columns: 1fr; }
  .bridge-visual { padding: 32px 24px; }

  .ramp-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
  }
  .ramp-arrow { display: none; }
  .ramp-step { padding: 24px; }

  section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .section-subtitle { margin-bottom: 36px; }

  .guide-concepts { grid-template-columns: 1fr; }
  .guide-card { padding: 24px 20px; }

  .trust-main { padding: 28px 20px; }
  .escrow-form { grid-template-columns: 1fr; }
  .active-escrow .escrow-details { grid-template-columns: 1fr; }
  .bridge-fee-display { flex-direction: column; align-items: flex-start; }
  .bridge-fee-row { flex-direction: column; align-items: flex-start; }
  .bridge-fee-row .fee-note { margin-left: 0; }
  .cta-banner { padding: 50px 24px; }
  .cta-banner h2 { font-size: 28px; }
  footer .footer-rules-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 30px; letter-spacing: -1px; }
  .container { padding: 0 16px; }
  .section-title { font-size: 24px; }
  .audience-card { padding: 28px 20px; }
  .bridge-visual { padding: 28px 16px; }
  .bridge-visual h3 { font-size: 22px; }
  .trust-main { padding: 24px 16px; }
  .trust-main h3 { font-size: 20px; }
  .cta-banner h2 { font-size: 24px; }
  .cta-banner { padding: 40px 20px; }
}

/* ---- Getting Started: Dual Paths ---- */
.path-fork {
  position: relative;
  text-align: center;
  margin: 32px 0 24px;
}
.path-fork-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--purple);
  opacity: 0.3;
}
.path-fork-label {
  position: relative;
  display: inline-block;
  background: var(--white);
  padding: 4px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.3px;
}
.dual-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.path-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s ease;
}
.path-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
  transform: translateY(-2px);
}
.path-a { border-top: 3px solid var(--purple); }
.path-b { border-top: 3px solid #10b981; }
.path-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.path-icon { font-size: 24px; }
.path-header h4 { margin: 0; font-size: 16px; color: var(--gray-800); }
.path-badge {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.2px;
}
.path-a .path-badge { background: #f3e8ff; color: var(--purple); }
.path-b .path-badge { background: #d1fae5; color: #059669; }
.path-desc { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin-bottom: 16px; }
.path-steps { display: flex; flex-direction: column; gap: 14px; }
.pstep { display: flex; gap: 12px; align-items: flex-start; }
.pstep-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  margin-top: 2px;
}
.path-a .pstep-num { background: var(--purple); }
.path-b .pstep-num { background: #10b981; }
.pstep-body { flex: 1; }
.pstep-body strong { display: block; font-size: 14px; color: var(--gray-800); margin-bottom: 2px; }
.pstep-body p { margin: 0; font-size: 13px; color: var(--gray-500); line-height: 1.6; }

@media (max-width: 768px) {
  .dual-paths { grid-template-columns: 1fr; }
  .path-card { padding: 20px; }
}

/* ---- Donate Section ---- */
.donate-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: linear-gradient(135deg, #faf5ff 0%, #fff 50%, #ecfdf5 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 800px;
  margin: 0 auto;
}
.donate-left, .donate-right { display: flex; flex-direction: column; gap: 8px; }
.donate-icon { font-size: 32px; }
.donate-left h3, .donate-right h3 { margin: 0; font-size: 18px; color: var(--gray-800); }
.donate-left p, .donate-right p { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin: 0; }
.donate-address {
  display: flex; gap: 8px; align-items: center;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px;
  padding: 10px 14px; margin-top: 4px;
}
.donate-address code { font-size: 12px; color: var(--gray-600); word-break: break-all; flex: 1; }
.donate-note { font-size: 11px !important; color: var(--gray-400) !important; margin-top: 4px !important; }

@media (max-width: 768px) {
  .donate-card { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
}

/* ---- Pagination ---- */
#pagination-controls {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 24px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}
.page-btn {
  appearance: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.page-btn:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-50); }
.page-btn.active { background: var(--purple); border-color: var(--purple); color: var(--white); }
.page-btn.disabled, .page-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.page-ellipsis { padding: 0 6px; color: var(--gray-400); font-size: 13px; }
.page-info {
  margin-left: 12px;
  font-size: 12px;
  color: var(--gray-400);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .page-btn { padding: 8px 10px; font-size: 12px; }
  .page-info { display: none; }
}

/* ================================================
   WIZARD OVERLAYS — Buy / Sell Flows
   ================================================ */

/* Overlay backdrop */
.wiz-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: wizFadeIn 0.2s ease;
}
.wiz-overlay.open {
  display: flex;
}
@keyframes wizFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes wizSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Panel */
.wiz-panel {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 28px 24px;
  position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,0.2);
  animation: wizSlideUp 0.25s ease-out;
}

/* Close */
.wiz-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  z-index: 10;
}
.wiz-close:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

/* Step indicator dots */
.wiz-steps {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 24px;
  padding: 0 20px;
}
.wiz-step {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
  white-space: nowrap;
}
.wiz-step .wiz-s-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  background: var(--gray-200);
  color: var(--gray-500);
  transition: all 0.2s;
}
.wiz-step.done {
  color: var(--purple);
  border-color: var(--purple-200);
  background: var(--purple-50);
}
.wiz-step.done .wiz-s-num {
  background: var(--purple);
  color: var(--white);
}
.wiz-step.active {
  color: var(--gray-900);
  border-color: var(--purple);
  background: var(--white);
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}
.wiz-step.active .wiz-s-num {
  background: var(--purple);
  color: var(--white);
}

/* Body */
.wiz-body {
  padding: 0 4px;
}
.wiz-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.wiz-sub {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Form fields */
.wiz-field {
  margin-bottom: 16px;
}
.wiz-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.wiz-req {
  color: var(--red);
}
.wiz-field input[type="text"],
.wiz-field input[type="number"],
.wiz-field select,
.wiz-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wiz-field input:focus,
.wiz-field select:focus,
.wiz-field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-50);
}
.wiz-field textarea {
  resize: vertical;
  min-height: 80px;
}
.wiz-field select {
  cursor: pointer;
  max-width: 260px;
}

/* Checkbox */
.wiz-check-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  color: var(--gray-600) !important;
  cursor: pointer;
  line-height: 1.5;
  padding: 8px 0;
}
.wiz-check-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
}

/* Actions */
.wiz-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.wiz-actions .btn {
  min-width: 120px;
  justify-content: center;
}

/* Review card (buy) */
.wiz-review-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 8px;
}
.wiz-review-card .r-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}
.wiz-review-card .r-row:last-child {
  border-bottom: none;
}
.wiz-review-card .r-label {
  color: var(--gray-400);
  flex-shrink: 0;
  margin-right: 12px;
}
.wiz-review-card .r-val {
  color: var(--gray-800);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}
.wiz-review-card .r-val.price {
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
}
.wiz-review-card .r-section {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 4px;
}

/* Preview card (sell) */
.wiz-preview-card {
  background: var(--white);
  border: 2px solid var(--purple-200);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 8px;
  transition: box-shadow 0.2s;
}
.wiz-preview-card:hover {
  box-shadow: var(--shadow-md);
}
.wiz-preview-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.wiz-preview-card .p-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
}
.wiz-preview-card .p-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--green);
}
.wiz-preview-card .p-price-unit {
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 400;
}
.wiz-preview-card .p-meta {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--gray-400);
}
.wiz-preview-card .p-cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--purple-50);
  color: var(--purple);
  border: 1px solid var(--purple-200);
  margin-top: 12px;
}

/* Result card (done) */
.wiz-result-card {
  background: var(--green-50);
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 8px;
  text-align: left;
}
.wiz-result-card .result-row {
  padding: 6px 0;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(134,239,172,0.3);
}
.wiz-result-card .result-row:last-child {
  border-bottom: none;
}
.wiz-result-card .result-label {
  color: var(--gray-400);
}
.wiz-result-card .result-val {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 13px;
  word-break: break-all;
}

/* Success state */
.wiz-success {
  text-align: center;
  padding: 10px 0;
}
.wiz-success-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: wizPop 0.4s ease;
}
@keyframes wizPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Pay status */
.wiz-pay-status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.5;
}
.wiz-pay-status.info {
  background: var(--blue-50);
  color: var(--blue);
  border: 1px solid #bfdbfe;
}
.wiz-pay-status.success {
  background: var(--green-50);
  color: var(--green);
  border: 1px solid #86efac;
}
.wiz-pay-status.error {
  background: var(--red-50);
  color: var(--red);
  border: 1px solid #fca5a5;
}

/* Service card Buy + Sell buttons */
.service-card .card-actions {
  display: flex;
  gap: 8px;
}
.service-card .card-buy-btn {
  padding: 7px 18px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  background: var(--green-brand);
  color: var(--white);
  letter-spacing: 0.2px;
}
.service-card .card-buy-btn:hover {
  background: var(--green-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29,191,115,0.3);
}

/* ================================================
   REGISTRATION OVERLAY — Dark Theme, Animated
   ================================================ */
#register-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px;
  animation: regFadeIn 0.25s ease;
}
#register-overlay.open {
  display: flex;
}
@keyframes regFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes regSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.reg-panel {
  background: #1a1a2e;
  border: 1px solid #2d2d50;
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: regSlideUp 0.3s ease-out;
}
.reg-panel h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.3px;
}
.reg-panel .reg-sub {
  color: #94a3b8;
  font-size: 14px;
  margin: 0 0 24px;
  line-height: 1.6;
}
.reg-input-wrap {
  position: relative;
  margin-bottom: 12px;
}
.reg-input-wrap input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #334155;
  border-radius: 10px;
  background: #0f172a;
  color: #f1f5f9;
  font-size: 15px;
  font-family: var(--font-mono);
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.reg-input-wrap input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}
.reg-input-wrap input::placeholder {
  color: #475569;
  font-family: var(--font);
}
.reg-input-wrap .reg-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}
.reg-input-wrap .reg-input-icon.valid {
  color: #22c55e;
}
.reg-input-wrap .reg-input-icon.invalid {
  color: #ef4444;
}
.reg-hint {
  font-size: 12px;
  color: #64748b;
  margin: -4px 0 16px 4px;
  line-height: 1.5;
}
.reg-hint code {
  background: #1e293b;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--purple-light);
  font-size: 11px;
}
.reg-error {
  font-size: 13px;
  color: #ef4444;
  margin: 6px 0 0;
  padding: 8px 12px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px;
  display: none;
}
.reg-error.visible {
  display: block;
}
.reg-success {
  font-size: 13px;
  color: #22c55e;
  margin: 6px 0 0;
  padding: 8px 12px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 8px;
  display: none;
}
.reg-success.visible {
  display: block;
}
.reg-panel .reg-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.reg-panel .reg-actions button {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
  border: none;
}
.reg-btn-primary {
  flex: 1;
  background: var(--purple);
  color: #fff;
}
.reg-btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}
.reg-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.reg-btn-secondary {
  background: #1e293b;
  color: #94a3b8;
}
.reg-btn-secondary:hover {
  background: #334155;
  color: #f1f5f9;
}
.reg-format-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(99,102,241,0.12);
  color: var(--purple-light);
  border: 1px solid rgba(99,102,241,0.2);
  margin-top: 8px;
}
.reg-format-badge svg {
  width: 12px;
  height: 12px;
}

/* Wallet badge in header */
.wallet-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-pill);
  padding: 4px 14px 4px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-light);
}
.wallet-badge .wallet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}
.wallet-badge .wallet-disconnect {
  margin-left: 4px;
  cursor: pointer;
  opacity: 0.5;
  font-size: 14px;
  transition: opacity 0.15s;
}
.wallet-badge .wallet-disconnect:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .reg-panel {
    padding: 24px 20px;
  }
  .reg-panel h3 {
    font-size: 20px;
  }
  .reg-panel .reg-actions {
    flex-direction: column;
  }
  .reg-panel .reg-actions button {
    width: 100%;
  }
}

/* ================================================
   RATING MODAL
   ================================================ */
.rating-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 16px;
  animation: regFadeIn 0.2s ease;
}
.rating-overlay.open {
  display: flex;
}
.rating-panel {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 30px 70px rgba(0,0,0,0.2);
  animation: regSlideUp 0.25s ease-out;
}
.rating-panel h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 6px;
}
.rating-panel .rating-sub {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0 0 20px;
  line-height: 1.5;
}
.star-rating {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}
.star-btn {
  background: none;
  border: none;
  font-size: 36px;
  cursor: pointer;
  padding: 4px;
  color: #d1d5db;
  transition: all 0.15s;
  line-height: 1;
}
.star-btn:hover,
.star-btn.hover,
.star-btn.active {
  color: #f59e0b;
  transform: scale(1.15);
}
.star-btn:active {
  transform: scale(0.95);
}
.rating-panel textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--gray-800);
  resize: vertical;
  min-height: 72px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.rating-panel textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-50);
}
.rating-panel .rating-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.rating-panel .rating-actions button {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.rating-skip-btn {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
}
.rating-skip-btn:hover {
  background: var(--gray-200);
}
.rating-submit-btn {
  flex: 1;
  background: var(--purple);
  border: none;
  color: #fff;
}
.rating-submit-btn:hover {
  background: var(--purple-dark);
}
.rating-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.rating-result {
  text-align: center;
  padding: 16px;
  font-size: 14px;
  color: var(--gray-600);
}
.rating-result .rating-check {
  font-size: 40px;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .rating-panel {
    padding: 24px 20px;
  }
  .star-btn {
    font-size: 30px;
  }
  .rating-panel .rating-actions {
    flex-direction: column;
  }
  .rating-panel .rating-actions button {
    width: 100%;
  }
}

/* ================================================
   WIZARD — MOBILE
   ================================================ */
@media (max-width: 768px) {
  .wiz-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .wiz-panel {
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px 20px 20px;
    animation: wizSlideUpMobile 0.28s ease-out;
  }
  @keyframes wizSlideUpMobile {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .wiz-steps {
    gap: 2px;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wiz-step {
    font-size: 10px;
    padding: 3px 8px;
    gap: 3px;
  }
  .wiz-step .wiz-s-num {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
  .wiz-title {
    font-size: 18px;
  }
  .wiz-actions {
    flex-direction: column;
  }
  .wiz-actions .btn {
    width: 100%;
  }
  .wiz-review-card .r-row {
    flex-direction: column;
    gap: 2px;
  }
  .wiz-review-card .r-val {
    text-align: left;
  }
}
@media (max-width: 480px) {
  .wiz-panel {
    padding: 20px 16px 16px;
  }
  .wiz-step {
    font-size: 9px;
    padding: 2px 6px;
  }
}

/* ================================================
   TRUST BLOCK — Stats row
   ================================================ */
.trust-block {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 24px 0;
}
.trust-stat {
  text-align: center;
}
.trust-stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 4px;
}
.trust-stat-label {
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 500;
}
@media (max-width: 768px) {
  .trust-block {
    gap: 28px;
  }
  .trust-stat-num {
    font-size: 26px;
  }
}
@media (max-width: 480px) {
  .trust-block {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }
}

/* ================================================
   FEATURES GRID — 3-column
   ================================================ */
.features-grid-wide {
  grid-template-columns: repeat(3, 1fr) !important;
  max-width: 1020px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .features-grid-wide {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 640px) {
  .features-grid-wide {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================
   HOW IT WORKS — Tech details expandable
   ================================================ */
.how-tech-details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 24px;
  max-width: 600px;
}
.how-tech-details summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  user-select: none;
}
.how-tech-details summary::-webkit-details-marker { display: none; }
.how-tech-details summary::marker { display: none; content: ""; }
.how-tech-details summary::before {
  content: "▶";
  font-size: 10px;
  color: var(--gray-400);
  transition: transform 0.2s;
}
.how-tech-details[open] > summary::before { transform: rotate(90deg); }
.how-tech-details summary:hover { color: var(--purple); }
.how-tech-content {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  padding: 16px 0 8px;
  text-align: left;
}
.how-tech-content strong { color: var(--gray-700); }
.how-chains {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.how-chain-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}
.how-chain-tag.native {
  background: var(--purple-50);
  color: var(--purple);
  border-color: var(--purple-200);
}
.how-arrow {
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 300;
}

.showcase-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.showcase-section {
  padding: 40px 0;
}
.showcase-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.showcase-chip {
  background: var(--green-brand-50);
  border: 1px solid rgba(29,191,115,0.2);
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 13px;
  color: var(--green-brand-dark);
  font-weight: 600;
  transition: all 0.2s;
}
.showcase-chip:hover {
  background: var(--green-brand-100);
  border-color: rgba(29,191,115,0.35);
  transform: translateY(-1px);
}
.showcase-chip.chip-highlight {
  border-color: var(--green-brand);
  box-shadow: 0 0 0 1px rgba(29,191,115,0.15);
}

/* ================================================
   AI AGENT PROMPT SECTION
   ================================================ */
.agent-prompt-section {
  background: linear-gradient(180deg, var(--gray-50) 0%, #eef2ff 100%);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 80px 0;
  position: relative;
}
.agent-prompt-header {
  text-align: center;
  margin-bottom: 44px;
}
.agent-prompt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--purple-200);
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(99,102,241,0.08);
}
.agent-prompt-badge svg {
  width: 14px;
  height: 14px;
}
.agent-prompt-header h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.agent-prompt-subtitle {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}
.agent-conversation {
  max-width: 620px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chat-bubble {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.chat-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.chat-avatar svg {
  width: 100%;
  height: 100%;
}
.human-avatar {
  background: var(--purple-100);
  border: 1.5px solid var(--purple-200);
  color: var(--purple);
}
.ai-avatar {
  background: var(--blue-50);
  border: 1.5px solid #bfdbfe;
  color: #2563eb;
}
.chat-content {
  flex: 1;
  min-width: 0;
}
.chat-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.chat-message {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.6;
  position: relative;
}
.human-msg {
  background: var(--purple-50);
  border: 1px solid var(--purple-200);
  color: var(--gray-800);
  border-radius: 14px 14px 14px 4px;
}
.human-msg p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-800);
}
.ai-msg {
  background: var(--blue-50);
  border: 1px solid #bfdbfe;
  border-radius: 14px 14px 4px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-700);
}
.ai-status-line svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #2563eb;
}
.ai-status-line.success {
  color: #065f46;
}
.ai-status-line.success svg {
  color: #059669;
}
.ai-status-line .status-spinner {
  animation: spin 1s linear infinite;
}
.agent-commands {
  text-align: center;
}
.commands-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.command-chips {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--purple);
}
.chip:hover {
  border-color: var(--purple-200);
  color: var(--purple-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.chip:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .agent-prompt-section {
    padding: 60px 0;
  }
  .agent-prompt-header h2 {
    font-size: 28px;
  }
  .agent-prompt-subtitle {
    font-size: 15px;
  }
  .agent-conversation {
    max-width: 100%;
    margin-bottom: 32px;
  }
  .chat-message {
    padding: 12px 14px;
    font-size: 14px;
  }
  .chip {
    font-size: 13px;
    padding: 8px 16px;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .agent-prompt-header h2 {
    font-size: 24px;
  }
  .chat-avatar {
    width: 32px;
    height: 32px;
    padding: 6px;
  }
  .chat-message {
    font-size: 13px;
    padding: 10px 12px;
  }
  .ai-status-line {
    font-size: 13px;
  }
  .command-chips {
    flex-direction: column;
    align-items: center;
  }
  .chip {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* ── Instant Buy (Digital Assets) ── */
.service-card .card-buy-btn.instant-buy {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 12px;
}
.service-card .card-buy-btn.instant-buy:hover {
  background: linear-gradient(135deg, #047857, #059669);
}
.instant-buy-panel {
  padding: 8px 4px;
}
.instant-buy-header {
  text-align: center;
  padding: 12px 0;
}

/* ================================================
   DEPOSIT ADDRESS CARD — Any Wallet Payment Flow
   ================================================ */
.deposit-address-card {
  background: var(--white);
  border: 2px solid var(--purple-200);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: box-shadow 0.2s;
}
.deposit-address-card:hover {
  box-shadow: var(--shadow-md);
}
.deposit-amount-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.deposit-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.deposit-field {
  margin-bottom: 16px;
}
.deposit-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.deposit-address-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.deposit-address {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-800);
  background: var(--gray-50);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  word-break: break-all;
  line-height: 1.5;
  user-select: all;
}
.deposit-dtag-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.deposit-dtag {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--purple);
  background: var(--purple-50);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--purple-200);
  min-width: 80px;
  text-align: center;
  user-select: all;
}
.deposit-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: var(--font);
  flex-shrink: 0;
}
.deposit-copy-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-50);
}
.deposit-copy-btn:active {
  transform: scale(0.96);
}
.deposit-expiry {
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--amber-50);
  border: 1px solid var(--amber-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--amber);
  text-align: center;
}
.deposit-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--blue-50);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--blue);
  line-height: 1.5;
}
.deposit-note svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Polling status */
.deposit-poll-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-600);
}
.poll-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--gray-200);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: pollSpin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes pollSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .deposit-amount {
    font-size: 26px;
  }
  .deposit-address-row {
    flex-direction: column;
    align-items: stretch;
  }
  .deposit-dtag-row {
    flex-direction: column;
    align-items: stretch;
  }
  .deposit-copy-btn {
    justify-content: center;
  }
  .deposit-address-card {
    padding: 18px 14px;
  }
}

/* ================================================
   AGENTS PAGE — Inline styles replacement
   ================================================ */
.agents-hero { text-align: center; padding: 60px 0 40px; }
.agents-hero h1 { font-size: 40px; letter-spacing: -1.5px; line-height: 1.1; font-weight: 800; }
.agents-hero p { color: var(--gray-500); max-width: 600px; margin: 12px auto 0; font-size: 15px; }
.agents-hero .hero-badge { margin-bottom: 20px; }
.agent-section { margin-bottom: 48px; }
.agent-section h2 { font-size: 24px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.5px; }
.agent-section h2 .h-icon { font-size: 26px; }
.agent-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.agent-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px 24px; transition: all 0.25s ease; position: relative; overflow: hidden; }
.agent-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-brand); opacity: 0; transition: opacity 0.3s; border-radius: var(--radius) var(--radius) 0 0; }
.agent-card:hover::before { opacity: 1; }
.agent-card:hover { box-shadow: var(--shadow-md); border-color: var(--purple-200); transform: translateY(-3px); }
.agent-card .ac-icon { font-size: 28px; margin-bottom: 10px; display: block; }
.agent-card h3 { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.agent-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }
.agent-steps { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.agent-step { display: flex; align-items: flex-start; gap: 16px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 10px; padding: 18px 22px; transition: all 0.2s; }
.agent-step:hover { box-shadow: var(--shadow-sm); border-color: var(--purple-200); }
.agent-step .as-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: var(--white); background: var(--gradient-brand); margin-top: 2px; }
.agent-step .as-body { flex: 1; }
.agent-step .as-body h4 { font-size: 15px; font-weight: 600; color: var(--gray-900); margin-bottom: 2px; }
.agent-step .as-body p { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin: 0; }
.agent-step .as-body code { background: var(--gray-100); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.agent-code-block { background: #0d1117; color: #e6edf3; padding: 18px; border-radius: 10px; font-size: 13px; overflow-x: auto; margin: 12px 0; line-height: 1.7; }
.agent-code-block .comment { color: #8b949e; }
.agent-code-block .keyword { color: #ff7b72; }
.agent-code-block .string { color: #a5d6ff; }
.agent-code-block .fn { color: #d2a8ff; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; font-size: 14px; color: var(--purple); font-weight: 500; }
.back-link:hover { text-decoration: underline; }
.hero-visual-section { margin-bottom: 0; padding: 0; }
.hero-visual-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: all 0.3s;
}
.hero-visual-wrapper:hover { 
  box-shadow: 0 8px 40px rgba(0,0,0,0.10); 
  transform: translateY(-2px);
}
.hero-visual-img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 768px) { .agent-card-grid { grid-template-columns: 1fr; } }

/* ================================================
   DEV PAGE — Inline styles replacement
   ================================================ */
.dev-hero { text-align: center; padding: 60px 0 40px; }
.dev-hero h1 { font-size: 34px; letter-spacing: -1.2px; font-weight: 800; }
.dev-hero p { color: var(--gray-500); max-width: 600px; margin: 12px auto 0; font-size: 15px; }
.api-section { margin-bottom: 40px; }
.api-section h2 { font-size: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.endpoint { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: box-shadow 0.2s; }
.endpoint:hover { box-shadow: var(--shadow-sm); }
.endpoint-header { display: flex; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; }
.endpoint-header:hover { background: var(--gray-50); }
.method { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 6px; letter-spacing: 0.5px; text-transform: uppercase; }
.method.get { background: #dbeafe; color: #1d4ed8; }
.method.post { background: #d1fae5; color: #059669; }
.method.put { background: #fef3c7; color: #d97706; }
.method.delete { background: #fee2e2; color: #dc2626; }
.endpoint-url { font-family: var(--font-mono); font-size: 14px; color: var(--gray-700); flex: 1; }
.endpoint-desc { font-size: 13px; color: var(--gray-400); }
.endpoint-body { padding: 0 20px 16px; font-size: 13px; color: var(--gray-500); line-height: 1.7; display: none; }
.endpoint-body.open { display: block; }
.endpoint-body code { background: var(--gray-100); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.endpoint-body pre { background: #0d1117; color: #e6edf3; padding: 16px; border-radius: var(--radius-sm); font-size: 12px; overflow-x: auto; margin: 8px 0; }
.auth-badge { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.auth-badge.public { background: #d1fae5; color: #059669; }
.auth-badge.auth { background: #fef3c7; color: #d97706; }
@media (max-width: 768px) { .dev-hero h1 { font-size: 26px; } .endpoint-header { flex-wrap: wrap; } }

/* ================================================
   GUIDE PAGE — Inline styles replacement
   ================================================ */
.guide-header {
  background: var(--gradient-dark);
  color: #fff;
  padding: 56px 0 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.guide-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.guide-header > * { position: relative; z-index: 1; }
.guide-header h1 { font-size: 34px; letter-spacing: -1px; margin: 0 0 8px; font-weight: 800; }
.guide-header p { color: rgba(255,255,255,0.65); font-size: 15px; margin: 0; max-width: 540px; margin: 0 auto; line-height: 1.6; }
.guide-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.guide-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.guide-nav a {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.guide-nav a:hover { background: var(--purple-50); color: var(--purple); border-color: var(--purple-200); }
.guide-back {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}
.guide-back a {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: block;
  font-size: 13px;
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}
.guide-back a:hover { text-decoration: underline; }
.hero-visual-guide-section { background: var(--gray-50); padding: 40px 0; border-bottom: 1px solid var(--gray-200); }
.guide-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 24px 0;
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s;
}
.guide-section:hover { box-shadow: var(--shadow-sm); }
.guide-section h2 {
  font-size: 22px;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--gray-900);
}
.guide-section h2 .h-icon { font-size: 26px; }
.guide-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--gray-800);
}
.guide-section h3:first-of-type { margin-top: 0; }
.guide-section p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0 0 12px;
}
.guide-section p:last-child { margin-bottom: 0; }
.guide-section ul, .guide-section ol {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
  padding-left: 20px;
  margin: 0 0 16px;
}
.guide-section li { margin-bottom: 4px; }
.guide-section code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--purple);
}
.highlight-box {
  background: var(--purple-50);
  border: 1px solid var(--purple-200);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
}
.highlight-box p { margin: 0; font-size: 13px; }
.highlight-box strong { color: var(--purple); }
.tip-box {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
}
.tip-box p { margin: 0; font-size: 13px; }
.tip-box strong { color: #d97706; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ================================================
   LEGAL PAGE — Inline styles replacement
   ================================================ */
.legal-hero { text-align: center; padding: 50px 0 30px; }
.legal-hero h1 { font-size: 32px; letter-spacing: -1px; font-weight: 800; }
.legal-hero p { color: var(--gray-500); max-width: 600px; margin: 10px auto 0; font-size: 14px; }
.legal-section { max-width: 760px; margin: 0 auto; padding: 40px 0; }
.legal-section:not(:last-child) { border-bottom: 1px solid var(--gray-200); }
.legal-section h2 { font-size: 22px; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.legal-section h3 { font-size: 17px; font-weight: 600; color: var(--gray-800); margin: 20px 0 10px; }
.legal-section h4 { font-size: 14px; font-weight: 600; color: var(--gray-700); margin: 16px 0 8px; }
.legal-section p { font-size: 14px; color: var(--gray-500); line-height: 1.8; margin-bottom: 12px; }
.legal-section ul { padding-left: 20px; margin: 8px 0 16px; }
.legal-section ul li { font-size: 14px; color: var(--gray-500); line-height: 1.7; margin-bottom: 4px; }
.legal-section .highlight-box { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 10px; padding: 20px; margin: 16px 0; }
.legal-section .highlight-box.warn { background: var(--amber-50); border-color: var(--amber-light); }
.legal-section .highlight-box.warn p { color: var(--gray-700); }
.last-updated { font-size: 12px; color: var(--gray-400); text-align: center; margin-bottom: 32px; }

/* ================================================
   MISC — Extra utility classes used by HTML
   ================================================ */
body.guide-body { background: var(--gray-50); }

.auth-badge.protected { background: #dbeafe; color: #1d4ed8; }
