/* ================================================
   数字无忧 — Digital Worry-Free
   Global Styles
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface-elevated: #1a1a24;
  --surface-hover: #222230;
  --border: #2a2a3a;
  --border-subtle: #1e1e2a;
  --primary: #6c5ce7;
  --primary-hover: #7d6cf0;
  --primary-glow: rgba(108, 92, 231, 0.25);
  --primary-glow-strong: rgba(108, 92, 231, 0.4);
  --accent: #00cec9;
  --accent-glow: rgba(0, 206, 201, 0.2);
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --danger: #e17055;
  --success: #00b894;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --container: 1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Selection ── */
::selection { background: var(--primary); color: #fff; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
p { color: var(--text-secondary); }

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-glow) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 25px var(--primary-glow-strong);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-glow);
  background: rgba(108, 92, 231, 0.05);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-icon {
  width: 44px; height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.btn-icon:hover { border-color: var(--primary); color: var(--primary); }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  transition: all var(--transition-slow);
  background: rgba(10, 10, 15, 0.8);
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.navbar-logo svg { color: var(--primary); }
.navbar-nav { display: flex; align-items: center; gap: 8px; }
.navbar-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.navbar-nav a:hover { color: var(--text-primary); background: var(--surface); }
.navbar-nav a.active { color: var(--primary); background: rgba(108, 92, 231, 0.1); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
  border-color: rgba(108, 92, 231, 0.2);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.3;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  color: var(--primary-glow);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero h1 { margin-bottom: 20px; }
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Stats / Trust Bar ── */
.trust-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.trust-item:hover { background: var(--surface); }
.trust-icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
}
.trust-number {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-bottom: 4px;
}
.trust-label { font-size: 0.85rem; color: var(--text-secondary); }

/* ── Section ── */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 560px; margin: 0 auto; }
.section-dark { background: var(--surface); }

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(108, 92, 231, 0.1);
}
.product-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-elevated);
}
.product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 1;
}
.badge-hot { background: rgba(225, 112, 85, 0.9); color: #fff; }
.badge-new { background: rgba(0, 206, 201, 0.9); color: #fff; }
.badge-recommend { background: rgba(108, 92, 231, 0.9); color: #fff; }
.product-body { padding: 20px; }
.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.product-price {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}
.product-price span { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-3px);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.feature-card:nth-child(1) .feature-icon { background: rgba(108, 92, 231, 0.15); color: var(--primary); }
.feature-card:nth-child(2) .feature-icon { background: rgba(0, 206, 201, 0.15); color: var(--accent); }
.feature-card:nth-child(3) .feature-icon { background: rgba(225, 112, 85, 0.15); color: var(--danger); }
.feature-card:nth-child(4) .feature-icon { background: rgba(0, 184, 148, 0.15); color: var(--success); }
.feature-card:nth-child(5) .feature-icon { background: rgba(253, 203, 110, 0.15); color: #fdcb6e; }
.feature-card:nth-child(6) .feature-icon { background: rgba(162, 155, 254, 0.15); color: var(--primary-glow); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* ── Page Header ── */
.page-header {
  padding: 120px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { max-width: 500px; margin: 0 auto; }

/* ── Filter Bar ── */
.filter-bar {
  padding: 32px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: transparent;
  transition: all var(--transition);
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Payment Page ── */
.payment-layout {
  padding: 100px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.payment-product {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: sticky;
  top: 88px;
}
.payment-product-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-elevated);
}
.payment-product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.payment-product-body { padding: 28px; }
.payment-product-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.payment-product-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.payment-product-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; }
.payment-product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 20px;
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: var(--radius-lg);
}
.price-amount {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.price-label { font-size: 0.85rem; color: var(--text-muted); }

.payment-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.payment-section-title span { color: var(--text-muted); font-weight: 400; font-size: 0.85rem; }

/* ── Wallet Cards ── */
.wallet-grid { display: flex; flex-direction: column; gap: 16px; }
.wallet-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  text-align: left;
}
.wallet-card:hover {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.05);
  transform: translateX(4px);
  box-shadow: 0 4px 20px var(--primary-glow);
}
.wallet-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.75rem;
}
.wallet-card:nth-child(1) .wallet-icon { background: rgba(0, 206, 201, 0.15); }
.wallet-card:nth-child(2) .wallet-icon { background: rgba(108, 92, 231, 0.15); }
.wallet-card:nth-child(3) .wallet-icon { background: rgba(225, 112, 85, 0.15); }
.wallet-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.wallet-info p { font-size: 0.8rem; color: var(--text-muted); }
.wallet-arrow { margin-left: auto; color: var(--text-muted); transition: all var(--transition); }
.wallet-card:hover .wallet-arrow { color: var(--primary); transform: translateX(4px); }

.payment-notice {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(253, 203, 110, 0.08);
  border: 1px solid rgba(253, 203, 110, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.payment-notice svg { flex-shrink: 0; color: #fdcb6e; margin-top: 2px; }
.payment-notice p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Copy Notification ── */
.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.875rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}
.copy-toast.show { transform: translateX(-50%) translateY(0); }
.copy-toast svg { color: var(--success); }

/* ── Footer ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.875rem; color: var(--text-secondary); margin-top: 12px; line-height: 1.7; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.8px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-socials { display: flex; gap: 8px; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.animate-in { animation: fadeInUp 0.5s ease forwards; }
.animate-delay-1 { animation-delay: 80ms; }
.animate-delay-2 { animation-delay: 160ms; }
.animate-delay-3 { animation-delay: 240ms; }
.animate-delay-4 { animation-delay: 320ms; }
.animate-delay-5 { animation-delay: 400ms; }
.animate-delay-6 { animation-delay: 480ms; }

/* ── Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-elevated) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .payment-layout { grid-template-columns: 1fr; }
  .payment-product { position: static; }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 140px 0 80px; }
  .hero h1 { font-size: 2rem; }
  .product-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 60px 0; }
  .filter-bar { justify-content: center; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Focus States ── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ================================================
   CheckoutButton — PoC Component Styles
   ================================================ */

.checkout-button-root {
  width: 100%;
}

/* ── Wallet info strip ── */
.cb-wallet-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 206, 201, 0.06);
  border: 1px solid rgba(0, 206, 201, 0.18);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cb-wallet-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.cb-wallet-addr {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.cb-wallet-balances {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: var(--font-mono);
}

.cb-wallet-net {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(0, 206, 201, 0.1);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}

/* ── Modal animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Main button variants ── */
.checkout-button-root .btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.checkout-button-root .btn-primary {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(108, 92, 231, 0.35);
}

.checkout-button-root .btn-primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.5);
}

.checkout-button-root .btn-primary:not(:disabled):active {
  transform: translateY(0);
}

.checkout-button-root .btn-success {
  background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 184, 148, 0.35);
  cursor: default;
}

.checkout-button-root .btn-danger-outline {
  background: transparent;
  color: #ff5252;
  border: 1.5px solid rgba(255, 82, 82, 0.4);
}

.checkout-button-root .btn-danger-outline:hover {
  background: rgba(255, 82, 82, 0.08);
}

.checkout-button-root .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.checkout-button-root .btn-primary.cb-loading {
  background: linear-gradient(135deg, #4a40b0 0%, #7d6cf0 100%);
  animation: cb-pulse 1.5s ease-in-out infinite;
}

@keyframes cb-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(108, 92, 231, 0.35); }
  50%       { box-shadow: 0 4px 30px rgba(108, 92, 231, 0.6); }
}

/* ── Spinner ── */
.checkout-button-root .btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Status line ── */
.cb-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  margin-top: 8px;
  padding: 0 2px;
}

.cb-status-ready    { color: var(--text-muted); }
.cb-status-waiting { color: var(--text-muted); }
.cb-status-working { color: #f0a500; }
.cb-status-done    { color: var(--success); }
.cb-status-error   { color: #ff5252; }

/* ── Status dot ── */
.cb-status .status-dot,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-warning { background: #f0a500; animation: dot-blink 1s ease-in-out infinite; }
.dot-success { background: var(--success); }
.dot-error   { background: #ff5252; }
.dot-muted   { background: var(--text-muted); }

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Polling indicator ── */
.cb-polling {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(240, 165, 0, 0.06);
  border: 1px solid rgba(240, 165, 0, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  color: rgba(240, 165, 0, 0.8);
}

.cb-polling-label {
  color: var(--text-muted);
}

/* ── Loading dots ── */
.dot-anim {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0a500;
  display: inline-block;
  animation: dot-bounce 1.2s ease-in-out infinite both;
}

.dot-anim:nth-child(2) { animation-delay: 0.16s; }
.dot-anim:nth-child(3) { animation-delay: 0.32s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1;   }
}

/* ── Tx result ── */
.cb-tx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
}

.cb-tx-success {
  background: rgba(0, 184, 148, 0.08);
  border: 1px solid rgba(0, 184, 148, 0.2);
  color: var(--success);
}

.cb-tx-error {
  background: rgba(255, 82, 82, 0.06);
  border: 1px solid rgba(255, 82, 82, 0.2);
  color: #ff5252;
}

.cb-tx-link {
  color: inherit;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.cb-tx-link:hover { opacity: 1; text-decoration: underline; }
