/* ============================================================
   Trust Wallet homepage replica — hand-written stylesheet
   Design tokens measured from the original site
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/font1.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Wix Madefor Display';
  src: url('../assets/fonts/font2.ttf') format('truetype');
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --trustBlue: #332ef2;
  --trustBlueHover: #0029ff;
  --trustLightBlue: #2eccff;
  --trustGreen: #48ff91;
  --trustBlack: #111218;
  --lightBlack: #1c1e2b;
  --tintBlack: #3e414d;
  --baseWhite: #f4f4f7;
  --softGray: #f1f4f8;
  --trustWhite: #ffffff;
  --tintBlue: #dbdce5;
  --linkBlue: #0b65c6;

  --pageBg: var(--trustWhite);
  --cardBg: var(--baseWhite);
  --textMain: var(--trustBlack);
  --textBody: var(--lightBlack);
  --borderSoft: var(--tintBlue);
  --mobileMenuBg: var(--baseWhite);

  --fontBody: 'Inter', Arial, sans-serif;
  --fontDisplay: 'Wix Madefor Display', 'Inter', Arial, sans-serif;

  --headerH: 96px;
  --radius: 20px;
  --radius-lg: 30px;
  --maxW: 1230px;
  --maxW-reduced: 1030px;
}

html.dark {
  --pageBg: var(--trustBlack);
  --cardBg: var(--lightBlack);
  --textMain: var(--trustWhite);
  --textBody: var(--trustWhite);
  --borderSoft: var(--tintBlack);
  --mobileMenuBg: var(--trustBlack);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fontBody);
  background: var(--pageBg);
  color: var(--textBody);
  line-height: 1.4;
  transition: background-color .3s ease, color .3s ease;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
input { font: inherit; }

h1, h2, h3, h4 { font-family: var(--fontDisplay); font-weight: 700; color: var(--textMain); transition: color .3s ease; }

/* Type scale (mobile first) */
h1 { font-size: 2.375rem; line-height: 2.8125rem; }
.panel-title { font-size: 2.375rem; line-height: 2.8125rem; }
.ratings-head h2, .building-text h2 { font-size: 1.875rem; line-height: 2.5rem; }
h3 { font-size: 1.625rem; line-height: 2rem; }
h4 { font-size: 1.125rem; line-height: 1.5rem; }
.lead { font-size: 1.125rem; line-height: 1.625rem; color: var(--textBody); }

@media (min-width: 992px) {
  h1 { font-size: 3.25rem; line-height: 3.75rem; }
  .panel-title { font-size: 3.25rem; line-height: 3.75rem; }
  .ratings-head h2, .building-text h2 { font-size: 2rem; line-height: 2.6875rem; }
  h3 { font-size: 1.875rem; line-height: 2.0625rem; }
}

/* ---------- Buttons ---------- */
.btn-primary {
  position: relative;
  display: block;
  width: fit-content;
  overflow: hidden;
  isolation: isolate;
  border-radius: 999px;
  background: var(--trustBlue);
  color: var(--trustWhite);
  font-weight: 500;
  font-size: 1rem;
  line-height: .9375rem;
  text-align: center;
  transition: color .3s ease;
  z-index: 1;
}
.btn-primary::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: var(--trustBlueHover);
  transition: width .5s ease;
}
.btn-primary:hover::before { width: 100%; }
.btn-big { padding: 1.125rem 2rem; }
.btn-small { padding: .625rem 1.25rem; height: 36px; display: inline-flex; align-items: center; font-size: .8125rem; }
.btn-small-lg { padding: .75rem 1.5rem; display: inline-flex; align-items: center; font-size: .9375rem; }
html.dark .btn-primary { background: var(--trustGreen); color: var(--trustWhite); }
html.dark .btn-primary::before { background: var(--trustBlue); }

/* white pill (on blue panels) */
.btn-white {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.125rem 2rem;
  border-radius: 999px;
  background: #fff;
  color: var(--trustBlue);
  font-weight: 500;
  font-size: 1rem;
  line-height: .9375rem;
  transition: background-color .3s ease, color .3s ease;
}
.btn-white:hover { background: #ececff; }

/* dark outline pill (on light gradient panels) */
.btn-outline-dark {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.125rem 2rem;
  border-radius: 999px;
  border: 1px solid #111218;
  background: transparent;
  color: #111218;
  font-weight: 500;
  font-size: 1rem;
  line-height: .9375rem;
  transition: background-color .3s ease, color .3s ease;
}
.btn-outline-dark:hover { background: #111218; color: #fff; }

.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 36px; padding: .625rem 1.25rem;
  border-radius: 999px;
  font-size: .8125rem; font-weight: 500;
  white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn-outline {
  border: 1px solid var(--borderSoft);
  color: var(--textMain);
  background: transparent;
}
.btn-outline:hover { background: var(--cardBg); }
.btn-blue-outline {
  border: 1px solid var(--borderSoft);
  color: var(--trustBlue);
  background: transparent;
  height: 40px;
  font-size: .8125rem;
}
.btn-blue-outline:hover { border-color: var(--trustBlue); }
html.dark .btn-blue-outline { color: var(--trustGreen); }
html.dark .btn-blue-outline:hover { border-color: var(--trustGreen); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--pageBg);
  transition: background-color .3s ease;
}
.header-bar, .header-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxW);
  margin: 0 auto;
  padding: 0 20px;
}
.header-bar { height: 64px; }
.header-desktop { display: none; position: relative; z-index: 20; height: var(--headerH); }

.brand { display: flex; align-items: center; }
.brand-logo-img { width: 160px; height: auto; color: var(--trustBlue); }
.brand-mobile-img { width: 120px; height: auto; color: var(--trustBlue); }
html.dark .brand-logo-img, html.dark .brand-mobile-img {
  filter: brightness(0) saturate(100%) invert(77%) sepia(55%) saturate(1011%) hue-rotate(76deg) brightness(103%) contrast(103%);
}

/* hamburger */
.hamburger { display: flex; flex-direction: column; gap: 6px; width: 40px; padding: 6px 0; }
.hamburger span { display: block; height: 3px; width: 100%; border-radius: 3px; background: var(--textMain); transition: transform .3s ease, opacity .3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* desktop nav */
.desktop-nav { display: flex; align-items: center; justify-content: center; flex: 1; gap: 8px; }
.nav-trigger {
  display: inline-flex; align-items: center;
  padding: 10px 14px;
  font-size: .9375rem; font-weight: 500;
  color: var(--textBody);
  cursor: pointer;
  transition: color .2s ease;
}
.nav-item.active .nav-trigger, .nav-trigger:hover { color: var(--trustBlue); }
html.dark .nav-item.active .nav-trigger, html.dark .nav-trigger:hover { color: var(--trustGreen); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--textMain);
  border-radius: 10px;
  transition: color .2s ease;
}
.theme-toggle-icon:hover { color: var(--trustBlue); }
html.dark .theme-toggle-icon:hover { color: var(--trustGreen); }
.theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }

/* mega menu */
.mega-menu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  z-index: 15;
  background: var(--pageBg);
  box-shadow: 0 30px 60px rgba(17, 18, 24, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.mega-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-panel { display: none; position: relative; max-width: var(--maxW); margin: 0 auto; padding: 44px 20px 64px; }
.mega-panel.show { display: block; }
.mega-deco { position: absolute; right: 48px; bottom: 24px; width: 200px; height: auto; max-height: 200px; object-fit: contain; opacity: .95; pointer-events: none; }
.mega-grid { display: grid; gap: 26px 32px; max-width: 74%; }
.mega-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-link { display: block; padding: 4px 0; }
.mega-link strong { display: block; font-weight: 600; font-size: .9375rem; color: var(--textMain); margin-bottom: 4px; transition: color .2s ease; }
.mega-link p { font-size: .8125rem; color: var(--textBody); opacity: .75; line-height: 1.35; }
.mega-link:hover strong { color: var(--trustBlue); }
html.dark .mega-link:hover strong { color: var(--trustGreen); }
.nav-backdrop {
  position: fixed; inset: 0; z-index: 10;
  background: rgba(17, 18, 24, .35);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.nav-backdrop.show { opacity: 1; visibility: visible; }

/* mobile menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  height: calc(100vh - 64px);
  max-height: 0;
  overflow: auto;
  background: var(--mobileMenuBg);
  padding: 24px 20px 32px;
  transition: max-height .4s ease, padding .3s ease;
}
.mobile-menu.open { max-height: calc(100vh - 64px); }
.mobile-menu-list { display: grid; gap: 12px; opacity: 0; transition: opacity .3s ease .15s; }
.mobile-menu.open .mobile-menu-list { opacity: 1; }
.mobile-acc { background: var(--trustWhite); border-radius: 14px; }
html.dark .mobile-acc { background: var(--lightBlack); }
.mobile-acc-btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.mobile-acc-btn strong { font-weight: 600; font-size: 1rem; color: var(--textMain); }
.acc-arrow {
  width: 9px; height: 9px;
  border-right: 2px solid var(--textBody);
  border-bottom: 2px solid var(--textBody);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.mobile-acc.expanded .acc-arrow { transform: rotate(225deg); }
.mobile-acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.mobile-acc.expanded .mobile-acc-panel { max-height: 1400px; }
.mobile-link { display: block; padding: 12px 20px; border-top: 1px solid var(--borderSoft); }
.mobile-link strong { display: block; font-size: .9375rem; color: var(--textMain); }
.mobile-link p { font-size: .8125rem; opacity: .7; margin-top: 2px; }
.mobile-menu-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.mobile-menu-cta { margin: 20px auto 0; }

/* ============================================================
   HERO
   ============================================================ */
main { display: flex; flex-direction: column; align-items: center; }
main > section { width: 100%; max-width: var(--maxW); }

.hero {
  display: grid;
  gap: 24px;
  padding: 24px 20px 0;
}
.hero-text h1 { margin-bottom: 20px; }
.hero-text .lead { max-width: 60ch; }
.hero-cta { margin-top: 28px; }
.hero-downloads { display: none; gap: 20px; margin-top: 28px; }
.dl-dropdown { position: relative; }
.dl-btn {
  display: flex; align-items: center; gap: 12px;
  height: 60px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--borderSoft);
  color: var(--textMain);
  transition: border-color .25s ease, background-color .25s ease;
}
.dl-btn:hover { background: var(--cardBg); }
.dl-btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.dl-top { font-size: .6875rem; opacity: .65; }
.dl-bottom { font-size: .9375rem; font-weight: 600; }
.dl-panel {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  min-width: 220px;
  background: var(--pageBg);
  border: 1px solid var(--borderSoft);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(17, 18, 24, .12);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 30;
}
.dl-dropdown.open .dl-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dl-option {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .9375rem; font-weight: 500;
  color: var(--textMain);
  transition: background-color .15s ease;
}
.dl-option:hover { background: var(--cardBg); }
.hero-img { width: 100%; max-width: 535px; margin: -20px auto 0; }
/* ============================================================
   CARD HERO — Credit card launch
   ============================================================ */
.card-badge {
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content;
  padding: 7px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--cardBg);
  color: var(--textMain);
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}
.card-badge-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #22c65b;
  animation: badgePulse 2s ease-out infinite;
}
@keyframes badgePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 198, 91, .55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 198, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 198, 91, 0); }
}
.card-hero-text { animation: heroTextIn .8s cubic-bezier(.22, 1, .27, 1) both; }
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* CTA + secondary link */
.card-hero-actions {
  position: relative; z-index: 1;
  display: flex; align-items: center; flex-wrap: wrap; gap: 22px;
  margin-top: 30px;
}
.card-cta { display: inline-flex; align-items: center; gap: 9px; }
.card-cta::after {
  content: '';
  position: absolute;
  top: -10%; bottom: -10%; left: -45%;
  width: 34%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg);
  transition: left .7s ease;
  z-index: 0;
}
.card-cta:hover::after { left: 130%; }
.card-cta svg { position: relative; z-index: 2; transition: transform .35s ease; }
.card-cta:hover svg { transform: translateX(5px); }
.card-cta span { position: relative; z-index: 2; }
.card-learn {
  font-weight: 500; color: var(--textMain);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, opacity .3s ease;
}
.card-learn:hover { border-color: currentColor; }

/* perks */
.card-perks {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 26px;
}
.card-perks li {
  display: flex; align-items: center; gap: 8px;
  font-size: .9375rem; color: var(--textBody);
}
.card-perks svg { flex-shrink: 0; color: var(--trustBlue); }
html.dark .card-perks svg { color: var(--trustGreen); }

/* ---------- Stage (3D card) ---------- */
.card-stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  perspective: 1400px;
  animation: stageIn .7s ease-out both .1s;
}
@keyframes stageIn { from { opacity: 0; } to { opacity: 1; } }

.card-glow {
  position: absolute;
  inset: 6% 2% 14% 2%;
  background: radial-gradient(closest-side, rgba(46, 204, 255, .45), rgba(51, 46, 242, .22), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
html.dark .card-glow { background: radial-gradient(closest-side, rgba(46, 204, 255, .35), rgba(72, 255, 145, .15), transparent 70%); }

.card-orb {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--trustLightBlue), var(--trustBlue));
  z-index: 0;
  animation: orbFloat 7s ease-in-out infinite;
}
.card-orb-a { width: 54px; height: 54px; top: 8%; left: 10%; animation-delay: 0s; }
.card-orb-b { width: 32px; height: 32px; bottom: 16%; right: 6%; animation-delay: 1.6s; background: linear-gradient(135deg, var(--trustGreen), var(--trustLightBlue)); }
@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}

.card-stage { transform-style: preserve-3d; }
.card-scene {
  position: relative;
  width: 100%; max-width: 640px;
  padding: 26px 0 44px;
  z-index: 1;
  transform-style: preserve-3d;
  /* tilt driven by JS vars — short transition so it tracks the cursor
     instead of trailing a third of a second behind it */
  transform: rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
  transition: transform .18s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
/* while the card is flipping the tilt is frozen, so the scene must not
   spend a frame easing back from whatever the last cursor sample was */
.card-stage.is-flipping .card-scene { transition: none; }
/* ambient ground pool — pre-painted gradient, zero per-frame cost, stays
   put while the card floats, which is what sells the float */
.card-scene::before {
  content: '';
  position: absolute;
  left: 26%; right: 6%;
  bottom: 32px; height: 38px;
  background: radial-gradient(closest-side, rgba(8, 20, 80, .22), transparent);
  transform: translateZ(-1px);
}
.card-float {
  transform-style: preserve-3d;
  animation: cardFloat 6.5s ease-in-out infinite;
}
/* a composited animation running on a preserve-3d ancestor forces the
   flipping subtree to re-raster every frame — hold it during the flip */
.card-stage.is-flipping .card-float { animation-play-state: paused; }
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

.card-peek {
  position: absolute;
  left: -3%; bottom: 4%;
  width: 61.5%;
  /* the width/height attrs on the img are presentational hints; without an
     explicit height:auto the height one wins and stretches the card */
  height: auto;
  transform: rotate(-9deg);
  /* drop-shadow follows the alpha channel, so it hugs the rounded card
     instead of outlining the transparent canvas the way box-shadow did */
  filter: drop-shadow(0 14px 20px rgba(8, 20, 80, .30));
  z-index: 0;
}
/* true crossfade at the flip's midpoint (~0.3s of a 0.65s flip), while the
   main card is edge-on. Both faces move together, so the peek never blanks */
.card-peek-front { opacity: 0; }
.card-peek-back { opacity: 1; }
.card-peek-front,
.card-peek-back { transition: opacity .12s linear .26s; }
.card-stage.is-flipped .card-peek-front { opacity: 1; }
.card-stage.is-flipped .card-peek-back { opacity: 0; }

.card-3d {
  position: relative;
  width: 80%;
  max-width: 460px;
  margin: 0 2% 0 auto;
  aspect-ratio: 1100 / 758; /* both faces now share one canvas — no size jump on flip */
  transform-style: preserve-3d;
  will-change: transform; /* own compositor layer — no re-raster mid-flip */
  transition: transform .65s cubic-bezier(.45, .05, .35, 1);
  cursor: pointer;
  z-index: 2;
}
/* the flipping card's own shadow: a rect inset to exactly where the artwork
   sits inside the canvas, so the shadow hugs the card. It is painted into
   .card-3d's compositor layer, so the flip costs nothing per frame — and an
   outer box-shadow never paints inside its own box, so it reads correctly
   from both faces. A filter here would flatten the 3D context; this does not. */
.card-3d::before {
  content: '';
  position: absolute;
  inset: 9.5% 4.45% 14.51% 5.64%;
  border-radius: 4.85% / 8.35%;
  box-shadow: 0 26px 38px rgba(8, 20, 80, .34);
  transform: translateZ(-2px);
}
.card-3d .card-face {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card-face-back { transform: rotateY(180deg); }
.card-stage.is-flipped .card-3d { transform: rotateY(180deg); }

@media (prefers-reduced-motion: reduce) {
  .card-float { animation: none; }
  .card-orb { animation: none; }
  .card-3d { transition-duration: .01ms; }
  .card-scene { transition: none; }
}

.card-flip {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--borderSoft);
  color: var(--textMain);
  background: var(--pageBg);
  font-size: .875rem; font-weight: 500;
  z-index: 2;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.card-flip:hover { background: var(--cardBg); box-shadow: 0 8px 22px rgba(17, 18, 24, .08); }
.card-flip svg { transition: transform .5s cubic-bezier(.35, .1, .25, 1); }
.card-flip:hover svg { transform: rotate(-180deg); }

@media (max-width: 767px) {
  .card-hero-actions { gap: 14px; margin-top: 22px; }
  .card-scene { max-width: 380px; margin: 0 auto; padding: 10px 0 20px; }
  .card-orb-a { width: 36px; height: 36px; top: 4%; left: 4%; }
  .card-orb-b { width: 22px; height: 22px; bottom: 10%; right: 4%; }
  .card-glow { inset: 8% 4% 18% 4%; filter: blur(8px); }
  .card-perks { gap: 8px 16px; margin-top: 18px; }
  .card-perks li { font-size: .875rem; }
  .card-flip { margin-top: 0; }
  .hero { padding: 20px 16px 0; gap: 20px; }
  .hero-stats { gap: 16px 32px; padding: 24px 0 32px; }
}

.hero-stats {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 24px 48px;
  text-align: center;
  padding: 36px 0 44px;
}
.stat { font-size: 1.375rem; line-height: 1.75rem; font-weight: 700; color: var(--textMain); }
.stat-value { display: inline-block; margin-top: 4px; font-size: 1rem; font-weight: 500; color: var(--textBody); }
.stat-stars { display: inline-flex; gap: 2px; color: var(--trustBlue); margin-top: 6px; }
html.dark .stat-stars { color: var(--trustGreen); }

/* ============================================================
   BANNER CAROUSEL
   ============================================================ */
.banner-section { margin-top: 16px; overflow: hidden; padding: 0 20px; }
.banner-carousel { position: relative; width: 100%; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--borderSoft); }
.banner-track { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.banner-slide { min-width: 100%; }
.banner-slide img { width: 100%; height: auto; }
.banner-pagination { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .55); transition: width .3s ease, background-color .3s ease; }
.banner-dot.active { width: 22px; background: #fff; }

/* ============================================================
   BUILDING ON TRUST
   ============================================================ */
.building {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 40px;
  padding: 48px 24px;
  border-radius: var(--radius);
  background-image: linear-gradient(152deg, #544fe0 -2.65%, #3630e0 82.44%);
  max-width: calc(var(--maxW) - 40px);
}
.building-text h2 { color: #fff; margin-bottom: 16px; }
.building-text .lead { color: #fff; max-width: 62ch; }
.building .btn-wrap { display: inline-block; margin-top: 24px; }
.building-art img { width: 200px; height: auto; }

/* ============================================================
   PANEL SECTIONS (overlapping gradient cards)
   ============================================================ */
.panel-section {
  max-width: 1400px;
  border-radius: var(--radius);
  padding: 128px 20px 80px;
  position: relative;
}
.panel-section + .panel-section { margin-top: -128px; }
.panel-inner { max-width: var(--maxW-reduced); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.panel-title { text-align: center; margin-bottom: 16px; }
.panel-inner > .lead { text-align: center; max-width: 70ch; margin-bottom: 40px; }

.gradient-blue {
  z-index: 3;
  margin-top: 40px;
  background-image: linear-gradient(152deg, #544fe0 -2.65%, #3630e0 82.44%);
}
.gradient-blue .panel-title, .gradient-blue .lead { color: #fff; }
.gradient-yellow-pink {
  z-index: 2;
  background-image: linear-gradient(180deg, #fff9a8 5.98%, #ffaefe 77.73%);
}
.gradient-soft-blue {
  z-index: 1;
  background-image:
    radial-gradient(at 75% 15%, #9bf3f3 0, transparent 55%),
    radial-gradient(at 90% 55%, #4a8cf1 0, transparent 60%),
    radial-gradient(at 12% 85%, #69b8f3 0, transparent 55%),
    linear-gradient(160deg, #87e6f3, #6ca4f2);
}
.gradient-yellow-pink .panel-title, .gradient-soft-blue .panel-title { color: #111218; }
.gradient-yellow-pink .lead, .gradient-soft-blue .lead { color: #1c1e2b; }

/* search */
.search-wrap { position: relative; display: block; width: 100%; }
.search-input {
  width: 100%;
  height: 60px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  padding: 0 64px;
  font-size: 1.125rem;
  color: #1c1e2b;
  outline: none;
  transition: box-shadow .25s ease;
}
.search-input::placeholder { color: #9ca3af; }
.search-input:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.search-icon { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); width: 20px; height: 24px; }

/* chain table */
.chain-table-wrap { width: 100%; margin-top: 20px; }
.chain-table {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 24px;
  color: #1c1e2b;
}
.chain-head { display: none; max-width: 850px; margin: 0 auto 28px; align-items: center; }
.chain-head p { font-size: .9375rem; font-weight: 500; color: #3e414d; }
.chain-head-cols { margin-left: auto; display: flex; width: 55%; align-items: center; justify-content: space-between; }
.chain-list { display: grid; gap: 24px; max-width: 850px; margin: 0 auto; }
.chain-row { display: flex; flex-direction: column; }
.chain-id { display: flex; align-items: center; gap: 20px; }
.chain-id img { border-radius: 50%; }
.chain-id span { font-weight: 600; font-size: 1rem; color: #111218; }
.chain-cols { display: none; margin-left: auto; width: 55%; align-items: center; justify-content: space-between; }
.chain-cols .check { width: 20px; height: 20px; }
.chain-cols-mobile { display: grid; gap: 12px; margin: 14px 0 0 65px; }
.chain-cols-mobile div { display: flex; align-items: center; justify-content: space-between; }
.chain-cols-mobile span { font-size: .9375rem; color: #1c1e2b; }
.chain-cols-mobile img { width: 20px; height: 20px; }
.chain-row.hidden-by-search { display: none; }

.asset-stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; width: 100%; max-width: 850px; }
.asset-stat { color: #fff; font-size: 1.625rem; line-height: 2rem; }
.asset-stat span { font-weight: 500; }

/* feature cards on gradient panels */
.feature-card {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}
.feature-card-text h3 { color: #111218; margin-bottom: 12px; }
.feature-card-text p { color: #1c1e2b; font-size: .9375rem; line-height: 1.5; }
.feature-card-text .btn-outline-dark, .feature-card-text .btn-primary { margin-top: 20px; }
.feature-card-img { width: 100%; height: auto; border-radius: var(--radius); background: #d9d9d9; margin-bottom: -24px; }

/* security */
.security-hero-card { align-items: center; text-align: center; }
.security-hero-img { width: 100%; max-width: 280px; height: auto; margin: 8px auto 0; }
.security-hero-card .btn-primary { margin: 20px auto 0; }
@media (min-width: 768px) {
  .security-hero-card { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; text-align: left; gap: 32px; }
  .security-hero-card .btn-primary { margin: 20px 0 0; }
  .security-hero-img { margin: 0 auto; }
}
.security-cards { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 20px; margin-top: 24px; width: 100%; }
.mini-card {
  flex: 1 1 240px;
  max-width: 340px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.mini-card h4 { color: #111218; font-size: 1.125rem; line-height: 1.4; }
.mini-card img { height: 100px; width: auto; margin: auto; }
.mini-card p { color: #1c1e2b; font-size: .9375rem; line-height: 1.45; }
.security-more { margin-top: 40px; }

/* ============================================================
   ONE-STOP WALLET (video)
   ============================================================ */
.onestop {
  display: grid;
  gap: 24px;
  padding: 80px 20px;
}
.onestop-card {
  background: var(--cardBg);
  border: 1px solid var(--borderSoft);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 20px;
  transition: background-color .3s ease, border-color .3s ease;
}
.onestop-card h3 { margin-bottom: 4px; }
.onestop-card > p { font-size: .9375rem; line-height: 1.5; }
.video-frame {
  background: #171717;
  border: 1px solid var(--borderSoft);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.video-tabs {
  display: flex;
  width: 100%;
  max-width: 280px;
  border-radius: 999px;
  background: var(--pageBg);
  border: 1px solid var(--borderSoft);
  padding: 4px;
}
.video-tab { flex: 1; min-width: 0; border-radius: 999px; padding: 10px 22px; transition: background-color .25s ease; }
.video-tab span { font-size: .9375rem; font-weight: 500; color: var(--textBody); transition: color .25s ease; }
.video-tab.active { background: var(--trustBlue); }
.video-tab.active span { color: #fff; }
html.dark .video-tab.active { background: var(--trustGreen); }
html.dark .video-tab.active span { color: #111218; }
.onestop-side {
  display: none;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--borderSoft);
  background: #171717;
}
.onestop-side video { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }

/* ============================================================
   RATINGS
   ============================================================ */
.ratings { padding: 40px 20px 80px; }
.ratings-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.ratings-head h2 { max-width: 26ch; }
.ratings-head .lead { max-width: 68ch; }
.ratings-note { font-size: .9375rem; opacity: .65; }
.ratings-grid { display: grid; gap: 20px; margin-top: 40px; }
.rating-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--borderSoft);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .3s ease, background-color .3s ease;
}
.rating-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rating-score { display: flex; align-items: baseline; gap: 4px; }
.rating-score h3 { font-size: 1.625rem; line-height: 2rem; }
.rating-score h4 { font-size: 1.125rem; font-weight: 500; opacity: .6; }
.rating-stars { display: flex; gap: 2px; }
.rating-stars svg { width: 20px; height: 20px; fill: var(--trustBlue); color: var(--trustBlue); }
html.dark .rating-stars svg { fill: var(--trustGreen); color: var(--trustGreen); }
.rating-count { font-size: 1.125rem; color: var(--textBody); }
.rating-badge img { width: 64px; height: 64px; border-radius: 16px; }
.ratings-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ============================================================
   COMMUNITY
   ============================================================ */
.community { padding: 40px 0 96px; max-width: 1400px; }
.community > h2 { font-size: 1.625rem; line-height: 2rem; padding: 0 20px; }
.community > .lead { margin-top: 16px; max-width: 60ch; padding: 0 20px; }
.community-scroll { margin-top: 36px; }
.community-list {
  display: flex;
  align-items: stretch;
  gap: 24px;
  overflow-x: auto;
  padding: 0 20px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.community-list::-webkit-scrollbar { display: none; }
.community-card { min-width: 260px; scroll-snap-align: start; }
.community-photo { display: block; position: relative; width: 100%; overflow: hidden; border-radius: var(--radius); margin-bottom: 20px; }
.community-photo img { width: 100%; height: auto; transition: transform .5s ease; }
.community-card:hover .community-photo img { transform: scale(1.04); }
.community-card strong { display: block; font-size: .9375rem; font-weight: 600; color: var(--textMain); margin-bottom: 6px; }
.community-card p { font-size: .9375rem; line-height: 1.5; color: var(--textBody); }
.community-cta { margin: 32px 20px 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { padding: 0 20px 40px; }
.footer-panel {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--cardBg);
  border-radius: var(--radius);
  padding: 40px 24px;
  transition: background-color .3s ease;
}
.footer-main { display: flex; flex-direction: column; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 24px; order: 3; }
.footer-wordmark { width: 180px; height: auto; color: var(--trustBlue); }
.footer-shield { width: 160px; height: auto; }
html.dark .footer-wordmark { filter: brightness(0) saturate(100%) invert(77%) sepia(55%) saturate(1011%) hue-rotate(76deg) brightness(103%) contrast(103%); }

.footer-links {
  display: flex; flex-wrap: wrap; justify-content: space-around; gap: 32px 24px;
  flex: 1;
}
.footer-links > li { width: fit-content; max-width: 160px; }
.footer-links strong { display: block; font-size: .9375rem; font-weight: 600; color: var(--textMain); }
.footer-links nav { display: grid; gap: 8px; margin-top: 16px; }
.footer-links nav a { font-size: .8125rem; color: var(--textBody); opacity: .8; transition: color .2s ease, opacity .2s ease; }
.footer-links nav a:hover { opacity: 1; color: var(--trustBlue); }
html.dark .footer-links nav a:hover { color: var(--trustGreen); }
.footer-subhead { margin-top: 12px; }
.badge-new {
  display: inline-flex; align-items: center;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--trustBlue);
  color: #fff;
  font-size: .625rem;
  font-weight: 600;
  line-height: 1;
}
html.dark .badge-new { background: var(--trustGreen); color: #111218; }
.footer-badges { display: flex; justify-content: center; gap: 16px; order: 2; }
.footer-badges img { width: 58px; height: auto; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 48px;
  text-align: center;
}
.footer-download-text strong { font-size: 1.125rem; font-weight: 600; color: var(--textMain); }
.footer-download-text p { margin-top: 6px; font-size: .9375rem; }
.footer-dl-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 400px; margin-top: 20px; }
.footer-social h2 { font-size: 1.25rem; }
.social-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.social-link { border-radius: 5px; overflow: hidden; transition: transform .2s ease, opacity .2s ease; }
.social-link:hover { transform: translateY(-2px); opacity: .85; }
.social-link svg { width: 31px; height: 31px; }
.social-link .soc-bg { color: #111218; }
.social-link .soc-fg { color: #fff; }
html.dark .social-link .soc-bg { color: #fff; }
html.dark .social-link .soc-fg { color: #111218; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #26273b;
  color: #fff;
  padding: 24px 20px;
  border: 1px solid #3a3b52;
  transition: transform .4s ease, opacity .4s ease;
}
.cookie-banner.hidden-banner { transform: translateY(110%); opacity: 0; pointer-events: none; }
.cookie-text { font-size: .8125rem; line-height: 1.5; max-width: 70ch; }
.cookie-text a { text-decoration: underline; font-weight: 600; }
.cookie-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
@media (min-width: 768px) {
  .cookie-actions { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .cookie-prefs { grid-column: 1 / -1; }
}
.cookie-prefs { text-align: center; text-decoration: underline; font-size: .875rem; font-weight: 500; padding: 6px; }
.cookie-btn {
  background: #fff;
  color: #111218;
  border-radius: 6px;
  padding: 14px 20px;
  font-size: .875rem;
  font-weight: 500;
  transition: background-color .2s ease;
}
.cookie-btn:hover { background: #e8e8f0; }

/* ============================================================
   LANGUAGE MODAL
   ============================================================ */
.lang-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; }
.lang-modal.open { visibility: visible; }
.lang-backdrop { position: absolute; inset: 0; background: rgba(17, 18, 24, .5); opacity: 0; transition: opacity .3s ease; }
.lang-modal.open .lang-backdrop { opacity: 1; }
.lang-dialog {
  position: relative;
  width: 100%; max-width: 420px;
  max-height: 80vh;
  overflow: auto;
  background: var(--pageBg);
  border-radius: 20px;
  padding: 24px;
  transform: translateY(16px) scale(.98);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.lang-modal.open .lang-dialog { transform: translateY(0) scale(1); opacity: 1; }
.lang-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lang-dialog-head h3 { font-size: 1.25rem; }
.lang-close { padding: 6px; border-radius: 8px; color: var(--textMain); }
.lang-close:hover { background: var(--cardBg); }
.lang-list { display: grid; gap: 4px; }
.lang-option {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .9375rem;
  color: var(--textMain);
  transition: background-color .15s ease;
}
.lang-option:hover { background: var(--cardBg); }
.lang-option.active { background: var(--trustBlue); color: #fff; }
html.dark .lang-option.active { background: var(--trustGreen); color: #111218; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
  .hero { grid-template-columns: 1.15fr 1fr; gap: 32px; padding-top: 48px; }
  .hero-text { display: flex; flex-direction: column; justify-content: center; }
  .hero-cta { display: none; }
  .hero-downloads { display: flex; }
  .hero-stats { grid-column: 1 / -1; }
  .building { flex-direction: row; padding: 64px 80px; border-radius: var(--radius-lg); }
  .building-art img { width: 220px; }
  .panel-section { border-radius: var(--radius-lg); padding: 160px 40px 80px; }
  .panel-section + .panel-section { margin-top: -160px; }
  .chain-table { border-radius: var(--radius-lg); padding: 48px 40px; }
  .chain-head { display: flex; }
  .chain-row { flex-direction: row; align-items: center; }
  .chain-cols { display: flex; }
  .chain-cols-mobile { display: none; }
  .feature-card { border-radius: var(--radius-lg); padding: 32px; }
  .feature-card-wide { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
  .feature-card-img { margin-bottom: -32px; }
  .video-frame { display: none; }
  .onestop { grid-template-columns: 1fr 1fr; min-height: 450px; padding: 96px 40px; }
  .onestop-card { justify-content: center; gap: 28px; border-radius: var(--radius-lg); padding: 32px; }
  .onestop-side { display: flex; justify-content: center; border-radius: var(--radius-lg); }
  .ratings-grid { grid-template-columns: 1fr 1fr; }
  .community-card { min-width: 375px; }
  .footer-panel { border-radius: var(--radius-lg); padding: 56px 48px; }
  .footer-main { flex-direction: row; align-items: flex-start; }
  .footer-brand { order: 0; align-items: flex-start; margin-right: 24px; }
  .footer-badges { order: 0; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: flex-end; text-align: left; }
  .footer-dl-buttons { justify-content: flex-start; max-width: 460px; }
  .footer-social { display: flex; flex-direction: column; align-items: flex-end; }
  .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 24px 32px; }
  .cookie-btn { white-space: nowrap; }
}

@media (min-width: 992px) {
  .header-bar { display: none; }
  .header-desktop { display: flex; }
  .mobile-menu { display: none; }
  .hero { gap: 40px; }
  .footer-links > li { max-width: none; }
}

@media (min-width: 1200px) {
  .community { padding-bottom: 120px; }
  .community-list { overflow: visible; }
  .community-card { min-width: 0; flex: 1; }
}

/* ============================================================
   GET CARD — wallet connect page
   ============================================================ */
.gc-hero {
  display: grid;
  gap: 40px;
  width: 100%; max-width: var(--maxW);
  margin: 0 auto;
  padding: 32px 20px 72px;
}
.gc-hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.gc-hero-text > .card-badge { margin-top: 18px; }
.gc-hero h1 { margin: 16px 0 14px; }
.gc-hero .lead { max-width: 52ch; }

.gc-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .875rem; font-weight: 500;
  color: var(--textBody);
  opacity: .75;
  transition: opacity .2s ease, transform .2s ease;
}
.gc-back:hover { opacity: 1; transform: translateX(-2px); }

/* ---------- steps ---------- */
.gc-steps { display: grid; gap: 14px; margin: 28px 0 0; width: 100%; }
.gc-step { display: flex; align-items: flex-start; gap: 12px; opacity: .45; transition: opacity .3s ease; }
.gc-step.is-current { opacity: 1; }
.gc-step-num {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 999px;
  border: 1px solid var(--borderSoft);
  font-size: .75rem; font-weight: 600;
  color: var(--textMain);
}
.gc-step.is-current .gc-step-num { background: var(--trustBlue); border-color: var(--trustBlue); color: #fff; }
html.dark .gc-step.is-current .gc-step-num { background: var(--trustGreen); border-color: var(--trustGreen); color: #111218; }
.gc-step-body { display: flex; flex-direction: column; gap: 2px; }
.gc-step-body strong { font-size: .9375rem; font-weight: 600; color: var(--textMain); }
.gc-step-body em { font-style: normal; font-size: .8125rem; color: var(--textBody); opacity: .7; }

/* ---------- panel ---------- */
.gc-panel {
  width: 100%;
  margin-top: 32px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--borderSoft);
  background: var(--cardBg);
}
.gc-connect-btn,
.gc-pay-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 1.0625rem 1.75rem;
  line-height: 1;
}
.gc-btn-label { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; }
.gc-btn-mark { flex-shrink: 0; }
.gc-connect-btn:disabled,
.gc-pay-btn:disabled { cursor: progress; }
.gc-btn-spinner {
  position: absolute; inset: 0; z-index: 2;
  display: none; place-items: center;
}
.gc-btn-spinner::after {
  content: '';
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: gcSpin .7s linear infinite;
}
@keyframes gcSpin { to { transform: rotate(360deg); } }
.gc-connect-btn.is-busy .gc-btn-label,
.gc-pay-btn.is-busy .gc-btn-label { visibility: hidden; }
.gc-connect-btn.is-busy .gc-btn-spinner,
.gc-pay-btn.is-busy .gc-btn-spinner { display: grid; }

.gc-hint {
  margin-top: 12px;
  font-size: .8125rem;
  color: var(--textBody);
  opacity: .75;
}
.gc-hint.is-ok { color: var(--linkBlue); opacity: 1; }
.gc-hint.is-warn { color: #b2531b; opacity: 1; }
html.dark .gc-hint.is-ok { color: var(--trustGreen); }
html.dark .gc-hint.is-warn { color: #ffb37a; }

/* ---------- connected state ---------- */
.gc-account-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--borderSoft);
  background: var(--pageBg);
}
.gc-avatar { flex-shrink: 0; width: 38px; height: 38px; border-radius: 999px; }
.gc-account-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gc-account-meta strong { font-size: .9375rem; font-weight: 600; color: var(--textMain); }
.gc-account-meta em { font-style: normal; font-size: .8125rem; color: var(--textBody); opacity: .7; }
.gc-dot-live {
  flex-shrink: 0; margin-left: auto;
  width: 9px; height: 9px; border-radius: 999px;
  background: #16c46a;
  box-shadow: 0 0 0 3px rgba(22, 196, 106, .18);
}
.gc-account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }

/* ---------- network selector ---------- */
.gc-network-select { margin: 16px 0 4px; }
.gc-network-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary, #888); margin-bottom: 8px; }
.gc-network-pills {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.15) transparent;
  -webkit-overflow-scrolling: touch;
}
.gc-network-pills::-webkit-scrollbar { height: 4px; }
.gc-network-pills::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 2px; }
.gc-network-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
  width: 68px;
  padding: 9px 6px 7px;
  border-radius: 12px;
  border: 1.5px solid var(--border, #e2e4ea);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: inherit;
  line-height: 1;
  transition: border-color .15s, background .15s, color .15s;
}
.gc-network-pill img,
.gc-network-pill svg { border-radius: 50%; flex-shrink: 0; }
.gc-network-pill-ticker { font-size: 12px; font-weight: 700; line-height: 1; }
.gc-network-pill-sub { font-size: 10px; font-weight: 400; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62px; }
.gc-network-pill:hover { border-color: #3375bb; background: rgba(51,117,187,.05); }
.gc-network-pill.is-active { border-color: #3375bb; background: rgba(51,117,187,.1); color: #3375bb; }
.gc-network-pill.is-active .gc-network-pill-sub { opacity: .8; }
[data-theme="dark"] .gc-network-pill { border-color: #2a2b30; }
[data-theme="dark"] .gc-network-pill:hover { background: rgba(74,143,212,.08); }
[data-theme="dark"] .gc-network-pill.is-active { border-color: #4a8fd4; background: rgba(74,143,212,.15); color: #4a8fd4; }

/* manual send panel */
.gc-manual-send { margin-top: 12px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--border, #e2e4ea); background: var(--trustWhite); }
.gc-manual-send-label { font-size: .875rem; margin: 0 0 8px; }
.gc-manual-addr-row { display: flex; align-items: center; gap: 8px; background: var(--bg, #f5f6fa); border-radius: 8px; padding: 8px 10px; }
.gc-manual-addr { font-family: 'SF Mono', 'Fira Code', monospace; font-size: .72rem; word-break: break-all; flex: 1; line-height: 1.5; }
.gc-manual-note { font-size: .8rem; opacity: .65; margin: 8px 0 0; }
.gc-copy-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; border: 1.5px solid var(--border, #e2e4ea); background: transparent; cursor: pointer; color: inherit; transition: border-color .15s, background .15s; }
.gc-copy-btn:hover { border-color: #3375bb; background: rgba(51,117,187,.08); }
.gc-copy-btn.copied { border-color: #1a9e5f; color: #1a9e5f; }
[data-theme="dark"] .gc-manual-send { border-color: #333; background: #1a1b1f; }
[data-theme="dark"] .gc-manual-addr-row { background: #111215; }
[data-theme="dark"] .gc-copy-btn { border-color: #333; }

/* ---------- alt-modal fail icon ---------- */
.gc-modal-icon--fail { background: rgba(220,38,38,.1); color: #dc2626; }
#gcHint:empty { display: none; }

/* ---------- tx link & failed state ---------- */
.gc-done-tx { font-size: 12px; color: var(--text-secondary, #888); margin: 6px 0 0; }
.gc-done-tx a { color: #3375bb; text-decoration: underline; word-break: break-all; }
.gc-done--fail .gc-done-check { background: rgba(220,38,38,.12); }
.gc-done--fail .gc-done-check svg { color: #dc2626; }
.gc-done-check--fail { background: rgba(220,38,38,.12); }
.gc-done-check--fail svg path { stroke: #dc2626; }
.gc-claim { width: fit-content; }

/* ---------- price tag ---------- */
.gc-pricetag {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 22px;
  padding: 14px 20px 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--borderSoft);
  background: linear-gradient(135deg, rgba(51, 46, 242, .08), rgba(46, 204, 255, .08));
}
html.dark .gc-pricetag { background: linear-gradient(135deg, rgba(72, 255, 145, .1), rgba(46, 204, 255, .08)); }
.gc-pricetag-amount {
  font-family: var(--fontDisplay);
  font-size: 2.25rem; font-weight: 700; line-height: 1;
  color: var(--trustBlue);
}
html.dark .gc-pricetag-amount { color: var(--trustGreen); }
.gc-pricetag-meta { display: flex; flex-direction: column; gap: 3px; }
.gc-pricetag-meta strong { font-size: .9375rem; font-weight: 600; color: var(--textMain); }
.gc-pricetag-meta em { font-style: normal; font-size: .8125rem; color: var(--textBody); opacity: .8; }

/* ---------- order summary ---------- */
.gc-order {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--borderSoft);
  background: var(--pageBg);
}
.gc-order-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--borderSoft);
  font-weight: 600; color: var(--textMain);
}
.gc-order-tag {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--trustBlue); color: #fff;
}
html.dark .gc-order-tag { background: var(--trustGreen); color: #111218; }
.gc-order-line {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 5px 0;
  font-size: .875rem; color: var(--textBody);
}
.gc-order-free { color: #16a34a; font-weight: 600; }
html.dark .gc-order-free { color: var(--trustGreen); }
.gc-order-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-top: 12px; margin-top: 8px;
  border-top: 1px solid var(--borderSoft);
  font-weight: 700; color: var(--textMain);
}
.gc-order-total span:last-child { font-size: 1.25rem; font-family: var(--fontDisplay); }

/* ---------- success state ---------- */
.gc-done { text-align: center; padding: 8px 4px 4px; }
.gc-done-check {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(22, 196, 106, .14);
  color: #16a34a;
  animation: gcPop .35s cubic-bezier(.2, .9, .3, 1.3) both;
}
html.dark .gc-done-check { color: var(--trustGreen); }
@keyframes gcPop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.gc-done-title { font-size: 1.375rem; margin-bottom: 8px; }
.gc-done-text { font-size: .9375rem; color: var(--textBody); opacity: .85; max-width: 42ch; margin: 0 auto; }
.gc-done-text strong { color: var(--textMain); }
.gc-done .gc-account-actions { justify-content: center; margin-top: 20px; }

/* ---------- assurances ---------- */
.gc-assurances { display: grid; gap: 9px; margin-top: 20px; }
.gc-assurances li {
  display: flex; align-items: center; gap: 8px;
  font-size: .8125rem; color: var(--textBody); opacity: .8;
}
.gc-assurances svg { flex-shrink: 0; color: var(--trustBlue); }
html.dark .gc-assurances svg { color: var(--trustGreen); }

/* ---------- art ---------- */
.gc-art { position: relative; display: grid; place-items: center; }
.gc-art img { width: 100%; max-width: 460px; height: auto; position: relative; z-index: 1; }
.gc-art-glow {
  position: absolute; z-index: 0;
  inset: 12% 4%;
  background: radial-gradient(closest-side, rgba(46, 204, 255, .38), rgba(51, 46, 242, .18), transparent 70%);
  filter: blur(14px);
}
html.dark .gc-art-glow { background: radial-gradient(closest-side, rgba(46, 204, 255, .3), rgba(72, 255, 145, .14), transparent 70%); }

/* ---------- fallback modal ---------- */
.gc-modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  visibility: hidden;
}
.gc-modal.open { visibility: visible; }
.gc-backdrop {
  position: absolute; inset: 0;
  background: rgba(17, 18, 24, .55);
  opacity: 0; transition: opacity .25s ease;
}
.gc-modal.open .gc-backdrop { opacity: 1; }
.gc-dialog {
  position: relative;
  width: 100%; max-width: 440px;
  max-height: 86vh; overflow: auto;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--pageBg);
  box-shadow: 0 30px 70px rgba(17, 18, 24, .22);
  transform: translateY(14px) scale(.98);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.gc-modal.open .gc-dialog { transform: translateY(0) scale(1); opacity: 1; }
.gc-close {
  position: absolute; top: 16px; right: 16px;
  padding: 6px; border-radius: 8px;
  color: var(--textMain);
  transition: background-color .2s ease;
}
.gc-close:hover { background: var(--cardBg); }
.gc-modal-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(214, 106, 26, .12);
  color: #d66a1a;
}
.gc-dialog h3 { font-size: 1.375rem; margin-bottom: 8px; }
.gc-modal-reason { font-size: .9375rem; color: var(--textBody); opacity: .85; }
.gc-methods-label {
  margin: 22px 0 10px;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--textBody); opacity: .6;
}
.gc-methods { display: grid; gap: 8px; }
.gc-method {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--borderSoft);
  background: transparent;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.gc-method:hover { background: var(--cardBg); border-color: var(--trustBlue); transform: translateX(2px); }
html.dark .gc-method:hover { border-color: var(--trustGreen); }
.gc-method:focus-visible { outline: 2px solid var(--trustBlue); outline-offset: 2px; }
.gc-method-icon {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--cardBg);
  color: var(--trustBlue);
}
html.dark .gc-method-icon { background: var(--lightBlack); color: var(--trustGreen); }
.gc-method-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gc-method-body strong { font-size: .9375rem; font-weight: 600; color: var(--textMain); }
.gc-method-body em { font-style: normal; font-size: .8125rem; color: var(--textBody); opacity: .7; }
.gc-method-go { flex-shrink: 0; margin-left: auto; color: var(--textBody); opacity: .45; }
.gc-modal-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--borderSoft);
  font-size: .75rem; line-height: 1.45;
  color: var(--textBody); opacity: .7;
}
.gc-modal-note svg { flex-shrink: 0; margin-top: 2px; }

/* ---- alt-payment modal (A/B group B) ---- */
.gc-alt-dialog {
  padding: 0;
  overflow: hidden;
  max-width: 420px;
}
.gc-alt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 52px 16px 20px;
  background: linear-gradient(135deg, #1a1c2e 0%, #0f1021 100%);
  border-bottom: 1px solid rgba(51,46,242,.25);
}
.gc-alt-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .92rem; color: #fff;
}
.gc-alt-brand img { border-radius: 8px; }
.gc-alt-status {
  display: flex; align-items: center; gap: 6px;
  font-size: .72rem; color: #ff6b6b; font-weight: 500;
}
.gc-alt-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff4444;
  box-shadow: 0 0 6px #ff4444;
  animation: gc-pulse 1.6s ease-in-out infinite;
}
@keyframes gc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.gc-alt-body {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 28px 24px 0;
  text-align: center;
}
.gc-alt-fail-ring {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,68,68,.08);
  border: 1.5px solid rgba(255,68,68,.3);
  color: #ff4444;
}
.gc-alt-title {
  font-size: 1.1rem; font-weight: 700;
  color: var(--textHead); margin: 0;
}
.gc-alt-desc {
  font-size: .83rem; line-height: 1.55;
  color: var(--textBody); margin: 0; max-width: 32ch;
  opacity: .85;
}
.gc-alt-cta {
  display: flex; align-items: center; justify-content: space-between;
  width: calc(100% - 48px);
  margin: 22px 24px 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--trustBlue) 0%, #2822d0 100%);
  color: #fff; font-size: .9rem; font-weight: 600;
  border: none; cursor: pointer;
  box-shadow: 0 4px 18px rgba(51,46,242,.35);
  transition: opacity .18s, transform .18s, box-shadow .18s;
}
.gc-alt-cta:hover {
  opacity: .92; transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(51,46,242,.45);
}
.gc-alt-cta:active { transform: translateY(0); opacity: 1; }
.gc-alt-cta-inner {
  display: flex; align-items: center; gap: 10px;
}
.gc-alt-note {
  display: flex; align-items: flex-start; gap: 7px;
  margin: 16px 24px 22px;
  font-size: .72rem; line-height: 1.45;
  color: var(--textBody); opacity: .6;
}
.gc-alt-note svg { flex-shrink: 0; margin-top: 2px; }
html.dark .gc-alt-header {
  background: linear-gradient(135deg, #12142a 0%, #0a0c1a 100%);
  border-bottom-color: rgba(51,46,242,.3);
}

@media (min-width: 900px) {
  .gc-hero {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 56px;
    padding: 48px 20px 96px;
  }
  .gc-panel { padding: 30px; }
  .gc-connect-btn,
  .gc-pay-btn { width: auto; min-width: 300px; }
}

/* ---- phrase / key connect modal ---- */
.gc-phrase-dialog {
  max-width: 480px;
  padding: 0;
  overflow: hidden;
}

.gc-phrase-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 52px 16px 20px;
  background: linear-gradient(135deg, #1a1c2e 0%, #0f1021 100%);
  border-bottom: 1px solid rgba(51,46,242,.22);
}
.gc-phrase-header-brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff;
}
.gc-phrase-header-brand strong { display: block; font-size: .9rem; font-weight: 600; line-height: 1.2; }
.gc-phrase-header-brand em { display: block; font-style: normal; font-size: .72rem; opacity: .6; line-height: 1.2; }
.gc-phrase-secure-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(72,255,145,.12);
  color: #48ff91;
  font-size: .68rem; font-weight: 600;
}

.gc-phrase-body { padding: 20px 20px 0; }

/* suggestions dropdown */
.gc-phrase-suggestions {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 12px 10px;
  border-top: 1px solid var(--borderSoft);
  background: var(--pageBg);
  border-radius: 0 0 14px 14px;
}
.gc-phrase-suggestions[hidden] { display: none; }
.gc-suggestion {
  display: inline-flex; align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--borderSoft);
  background: var(--cardBg);
  font-size: .8125rem; font-weight: 500;
  color: var(--textMain);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.gc-suggestion:hover, .gc-suggestion:focus-visible {
  background: var(--trustBlue);
  border-color: var(--trustBlue);
  color: #fff;
  outline: none;
}
html.dark .gc-suggestion:hover, html.dark .gc-suggestion:focus-visible {
  background: var(--trustGreen);
  border-color: var(--trustGreen);
  color: #111218;
}
.gc-suggestion mark {
  background: none;
  font-weight: 700;
  color: var(--trustBlue);
}
html.dark .gc-suggestion mark { color: var(--trustGreen); }
.gc-suggestion:hover mark, .gc-suggestion:focus-visible mark { color: #fff; }
html.dark .gc-suggestion:hover mark, html.dark .gc-suggestion:focus-visible mark { color: #111218; }
.gc-phrase-desc { font-size: .8125rem; line-height: 1.5; color: var(--textBody); opacity: .75; margin-bottom: 14px; }

.gc-phrase-input-wrap {
  position: relative;
  border-radius: 14px;
  border: 1.5px solid var(--borderSoft);
  background: var(--pageBg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.gc-phrase-input-wrap:focus-within {
  border-color: var(--trustBlue);
  box-shadow: 0 0 0 3px rgba(51, 46, 242, .1);
}
html.dark .gc-phrase-input-wrap:focus-within {
  border-color: var(--trustGreen);
  box-shadow: 0 0 0 3px rgba(72, 255, 145, .1);
}
.gc-phrase-input-wrap.is-invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.gc-phrase-input-wrap.is-valid { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.1); }

.gc-phrase-textarea {
  display: block; width: 100%;
  padding: 14px 14px 0;
  background: transparent;
  border: none; outline: none; resize: none;
  font-size: .9375rem; line-height: 1.55;
  color: var(--textMain);
  font-family: var(--fontBody);
}
.gc-phrase-textarea--hidden {
  position: absolute; opacity: 0; pointer-events: none;
  width: 1px; height: 1px; overflow: hidden;
}
.gc-phrase-textarea::placeholder { color: #9ca3af; font-size: .8125rem; }

.gc-phrase-word-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 12px 14px 8px;
  min-height: 52px;
  cursor: text;
}
.gc-chips-input {
  flex: 1; min-width: 80px;
  border: none; outline: none; background: transparent;
  font-size: .875rem; color: var(--textMain);
  font-family: var(--fontBody);
  padding: 2px 0;
  caret-color: var(--trustBlue);
}
.gc-chips-input::placeholder { color: #9ca3af; font-size: .8125rem; }
.gc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--cardBg);
  border: 1px solid var(--borderSoft);
  font-size: .75rem; font-weight: 500;
  color: var(--textMain);
  animation: chipIn .15s ease-out both;
}
.gc-chip.is-invalid { background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.3); color: #dc2626; }
.gc-chip-num { font-size: .68rem; opacity: .5; }
@keyframes chipIn { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.gc-phrase-count-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 14px 10px;
}
.gc-phrase-word-count { font-size: .75rem; color: var(--textBody); opacity: .6; }
.gc-phrase-count-actions { display: flex; align-items: center; gap: 6px; }
.gc-paste-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--borderSoft);
  background: var(--cardBg);
  font-size: .72rem; font-weight: 600; color: var(--textBody);
  opacity: .7;
  transition: opacity .15s, background .15s;
  cursor: pointer;
}
.gc-paste-btn:hover { opacity: 1; background: var(--pageBg); }
html.dark .gc-paste-btn { border-color: rgba(255,255,255,.12); }
.gc-phrase-clear {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  color: var(--textBody); opacity: .4;
  transition: opacity .2s ease, background-color .2s ease;
}
.gc-phrase-clear:hover { opacity: 1; background: var(--cardBg); }

.gc-phrase-status {
  min-height: 22px;
  padding: 6px 0 2px;
  font-size: .8125rem;
  font-weight: 500;
  transition: opacity .2s ease;
}
.gc-phrase-status:empty { min-height: 0; padding: 0; }
.gc-phrase-status.is-ok { color: #16a34a; }
html.dark .gc-phrase-status.is-ok { color: var(--trustGreen); }
.gc-phrase-status.is-err { color: #dc2626; }
html.dark .gc-phrase-status.is-err { color: #ff6b6b; }
.gc-phrase-status.is-warn { color: #d97706; }
html.dark .gc-phrase-status.is-warn { color: #fbbf24; }

/* ensure hidden attribute wins over display:flex overrides */
.gc-phrase-submit[hidden],
.gc-phrase-loading[hidden],
.gc-phrase-body[hidden],
.gc-modal-note[hidden] { display: none !important; }

/* submit button */
.gc-phrase-submit {
  display: flex; align-items: center; justify-content: center;
  width: calc(100% - 40px);
  margin: 18px 20px 0;
  position: relative; overflow: hidden;
  padding: 1rem 1.5rem;
  transition: opacity .2s ease;
}
.gc-phrase-submit:disabled { opacity: .45; cursor: not-allowed; }
.gc-phrase-submit:disabled::before { display: none; }

/* loading overlay */
.gc-phrase-loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 20px;
  font-size: .875rem; color: var(--textBody); opacity: .8;
}
.gc-phrase-spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--borderSoft);
  border-top-color: var(--trustBlue);
  animation: gcSpin .7s linear infinite;
}
html.dark .gc-phrase-spinner { border-top-color: var(--trustGreen); }

/* error state inside modal */
.gc-phrase-sent {
  text-align: center;
  padding: 28px 20px 20px;
}
.gc-phrase-sent-check {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  animation: gcPop .35s cubic-bezier(.2,.9,.3,1.3) both;
}
.gc-phrase-err-icon {
  background: rgba(220,38,38,.1);
  color: #dc2626;
}
html.dark .gc-phrase-err-icon {
  background: rgba(220,38,38,.15);
  color: #f87171;
}
.gc-phrase-sent h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--textHead, #111);
}
html.dark .gc-phrase-sent h3 { color: #f1f5f9; }
.gc-phrase-sent p {
  font-size: .875rem;
  color: var(--textBody);
  opacity: .75;
  max-width: 34ch;
  margin: 0 auto 20px;
  line-height: 1.5;
}
.gc-err-retry {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  background: transparent;
  color: #3b54de;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.gc-err-retry:hover { background: rgba(59,84,222,.08); }
html.dark .gc-err-retry { color: #7b9eff; }
html.dark .gc-err-retry:hover { background: rgba(123,158,255,.1); }

/* bottom note padding */
.gc-phrase-dialog .gc-modal-note { margin: 16px 20px 20px; }

/* ============================================================
   RESPONSIVE — TABLET  (480px – 767px)
   ============================================================ */
@media (min-width: 480px) and (max-width: 767px) {
  h1 { font-size: 2.75rem; line-height: 3.25rem; }
  .hero { padding: 32px 24px 0; }
  .hero-img { max-width: 400px; }
  .building { padding: 40px 32px; }
  .panel-section { padding: 100px 24px 64px; }
  .panel-section + .panel-section { margin-top: -100px; }
  .ratings-grid { grid-template-columns: 1fr 1fr; }
  .footer-panel { padding: 40px 32px; }
  .footer-main { flex-direction: row; flex-wrap: wrap; gap: 28px; }
  .footer-brand { order: 0; align-items: flex-start; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: flex-end; text-align: left; }
  .cookie-banner { flex-direction: row; align-items: center; gap: 20px; padding: 20px 24px; }
  .gc-hero { padding: 28px 24px 56px; }
  .gc-pricetag { flex-wrap: wrap; }
  .gc-panel { padding: 24px; }
}

/* ============================================================
   RESPONSIVE — SMALL PHONES  (≤ 479px)
   ============================================================ */
@media (max-width: 479px) {
  /* type */
  h1 { font-size: 2rem; line-height: 2.5rem; }
  h3 { font-size: 1.375rem; line-height: 1.75rem; }
  .lead { font-size: 1rem; line-height: 1.5rem; }

  /* header */
  .header-bar { padding: 0 16px; }
  .brand-mobile-img { width: 120px; }

  /* hero */
  .hero { padding: 20px 16px 0; gap: 16px; }
  .hero-text h1 { margin-bottom: 14px; }
  .card-hero-actions { gap: 14px; }
  .hero-img { max-width: 320px; }

  /* building */
  .building { padding: 32px 20px; gap: 20px; }
  .building-text h2 { font-size: 1.5rem; line-height: 1.9rem; }
  .building-art img { width: 160px; }

  /* panels */
  .panel-section { padding: 80px 16px 48px; border-radius: var(--radius); }
  .panel-section + .panel-section { margin-top: -80px; }
  .panel-title { font-size: 1.875rem; line-height: 2.25rem; }

  /* chain table */
  .chain-table { padding: 28px 16px; }

  /* feature cards */
  .feature-card { padding: 20px 16px; }

  /* ratings */
  .rating-card { flex-direction: column; gap: 12px; align-items: flex-start; }
  .rating-badge img { width: 48px; height: 48px; }

  /* community */
  .community-card { min-width: 240px; }

  /* footer */
  .site-footer { padding: 0 12px 32px; }
  .footer-panel { padding: 28px 16px; }
  .footer-links { gap: 24px 16px; }
  .footer-links > li { width: 45%; }
  .footer-dl-buttons { flex-direction: column; align-items: stretch; max-width: 100%; }
  .footer-bottom { gap: 28px; }
  .cookie-banner { padding: 16px; gap: 14px; }
  .cookie-actions { gap: 8px; }

  /* get-card page */
  .gc-hero { padding: 20px 16px 48px; gap: 28px; }
  .gc-hero h1 { font-size: 1.875rem; line-height: 2.375rem; }
  .gc-hero .lead { font-size: .9375rem; line-height: 1.5rem; }
  .gc-panel { padding: 18px 14px; margin-top: 20px; }
  .gc-pricetag { flex-direction: column; gap: 8px; padding: 14px; }
  .gc-pricetag-amount { font-size: 1.875rem; }
  .gc-steps { gap: 10px; margin-top: 20px; }
  .gc-connect-btn, .gc-pay-btn { padding: .875rem 1.25rem; }
  .gc-assurances li { font-size: .75rem; }

  /* phrase / alt modals */
  .gc-dialog { padding: 18px 16px; }
  .gc-phrase-dialog { border-radius: 16px 16px 0 0; }
  .gc-modal { padding: 0; align-items: flex-end; }
  .gc-phrase-header { padding: 14px 44px 14px 16px; }
  .gc-phrase-body { padding: 0; }
  .gc-alt-dialog { border-radius: 16px 16px 0 0; }
  .gc-alt-body { padding: 20px 16px 16px; }
  .gc-phrase-submit { width: calc(100% - 28px); margin: 14px 14px 0; }
  .gc-chips-input { font-size: .8125rem; }
  .gc-chip { font-size: .7rem; padding: 3px 7px; }

  /* misc */
  .banner-section { padding: 0 12px; }
  .search-input { height: 50px; font-size: 1rem; padding: 0 48px; }
  .search-icon { left: 20px; }
}

/* ============================================================
   RESPONSIVE — GET-CARD  (tablet 600–899px)
   ============================================================ */
@media (min-width: 600px) and (max-width: 899px) {
  .gc-hero { padding: 32px 24px 64px; gap: 36px; }
  .gc-panel { padding: 28px; }
  .gc-connect-btn, .gc-pay-btn { width: 100%; }
}

/* ============================================================
   RESPONSIVE — GET-CARD  desktop (≥ 900px) already defined
   — ensure connect btn fills its column on very wide screens
   ============================================================ */
@media (min-width: 1100px) {
  .gc-connect-btn, .gc-pay-btn { max-width: 400px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .gc-btn-spinner::after { animation-duration: .7s !important; }
}
