/* Trust Wallet branding, wallet modal, cards page */

/* ── Video Section ─────────────────────────────────────────────────────── */
.tw-video-section {
  width: 100%;
  padding: 80px 0;
  background: var(--white);
}
.tw-video-section .shared_container__HLW1U {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.tw-video-section__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tw-video-section__title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}
.tw-video-section__desc {
  font-size: 17px;
  color: var(--text-gray);
  max-width: 380px;
  line-height: 1.6;
  margin: 0;
}
.tw-video-section__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.tw-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  background: #f0f2ff;
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(5, 0, 255, 0.12);
}
.tw-video-section__media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tw-video-phone-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.tw-video-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 0, 255, 0.12) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.tw-video-phone-frame {
  position: relative;
  z-index: 1;
  width: 240px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(5, 0, 255, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.12),
    inset 0 0 0 2px rgba(255,255,255,0.6);
  background: #000;
  aspect-ratio: 9/19.5;
}
.tw-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 36px;
}
@media (max-width: 1024px) {
  .tw-video-section .shared_container__HLW1U {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .tw-video-section__title { font-size: 36px; }
  .tw-video-section__desc { max-width: 100%; }
  .tw-video-section__badges { justify-content: center; }
  .tw-video-phone-frame { width: 200px; }
}
@media (max-width: 640px) {
  .tw-video-section { padding: 50px 0; }
  .tw-video-section__title { font-size: 30px; }
  .tw-video-phone-frame { width: 170px; border-radius: 28px; }
  .tw-video-player { border-radius: 28px; }
}

/* Get your card today — single composite PNG (replaces phone + card) */
.FeatureSection_block4__tnvSy .tw-getcard-hero {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(360px, 90%);
  height: auto;
  max-height: 95%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .FeatureSection_block4__tnvSy .tw-getcard-hero {
    width: min(300px, 88%);
  }
}
@media (max-width: 640px) {
  .FeatureSection_block4__tnvSy .tw-getcard-hero {
    width: min(260px, 85%);
  }
}

/* Hero hero-image: size + float live in tw-chat.css (loads last so they are not overridden) */

.Header_left__tzwQt {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: visible;
}
.Header_right__K26RG {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.tw-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
}
.tw-brand__mark {
  display: block;
  height: auto;
  width: 160px;
  max-width: min(160px, 40vw);
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 640px) {
  .tw-brand__mark {
    width: 120px;
    max-width: 32vw;
  }
}
.LanguageSelector_selector__ZpUQ0 {
  position: relative;
  flex-shrink: 0;
}

/* Legacy footer logo class — no longer used */

/* Modal uses .tw-wallet-modal — avoids clash with legacy .wallet-modal in fcc835 (transform broke centering). */

/* —— Wallet modal —— */
.tw-wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  overflow: visible;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.tw-wallet-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.tw-wallet-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tw-wallet-modal__panel {
  position: relative;
  width: min(100%, 420px);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow:
    0 24px 80px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  padding: 0 0 20px;
  animation: twModalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes twModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.tw-wallet-modal__head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 16px 12px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.tw-wallet-modal__back {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f4f6f9;
  color: #334155;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.tw-wallet-modal__back:hover {
  background: #e8ecf2;
}
.tw-wallet-modal__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
}
/* Wallet modal steps — Trust-style horizontal row */
.wallet-steps {
  counter-reset: wallet-step-idx;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  padding: 10px 16px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.wallet-step-pill {
  counter-increment: wallet-step-idx;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 6px 14px;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  background: #f8fafc;
  font-size: 0;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.35;
  letter-spacing: -0.01em;
  cursor: default;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}
.wallet-step-pill > span:not(.wallet-step-pill__dot) {
  display: block;
  width: 100%;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: inherit;
  hyphens: auto;
  word-wrap: break-word;
}
.wallet-step-pill__dot {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wallet-step-pill__dot::before {
  content: counter(wallet-step-idx);
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  line-height: 1;
}
/* Active step — Trust blue */
.wallet-step-pill.is-active {
  background: linear-gradient(135deg, rgba(5, 0, 255, 0.04) 0%, rgba(0, 148, 255, 0.06) 100%);
  border-color: rgba(5, 0, 255, 0.28);
  color: #0f172a;
  box-shadow:
    0 4px 20px rgba(5, 0, 255, 0.1),
    0 0 0 1px rgba(5, 0, 255, 0.06) inset;
}
.wallet-step-pill.is-active .wallet-step-pill__dot {
  background: linear-gradient(145deg, #0500ff 0%, #0094ff 100%);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(5, 0, 255, 0.35);
}
.wallet-step-pill.is-active .wallet-step-pill__dot::before {
  color: #fff;
}
/* Completed steps */
.wallet-step-pill.is-complete {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(255, 255, 255, 1) 100%);
  border-color: rgba(34, 197, 94, 0.22);
  color: #166534;
}
.wallet-step-pill.is-complete .wallet-step-pill__dot {
  background: linear-gradient(145deg, #22c55e 0%, #4ade80 100%);
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(34, 197, 94, 0.3);
}
.wallet-step-pill.is-complete .wallet-step-pill__dot::before {
  content: "";
  display: block;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}
.tw-wallet-modal__body {
  padding: 8px 20px 0;
}
.tw-wallet-modal__hint {
  margin: 12px 0 16px;
  font-size: 15px;
  color: #64748b;
  line-height: 1.45;
}
.wallet-net {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}
.wallet-net:hover {
  border-color: rgba(5, 0, 255, 0.35);
  box-shadow: 0 8px 28px rgba(5, 0, 255, 0.08);
  transform: translateY(-1px);
}
.wallet-net:active {
  transform: translateY(0);
}
.wallet-net__icon {
  width: 48px;
  height: 48px;
  padding: 6px;
  box-sizing: border-box;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fafc 0%, #fff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 12px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.wallet-net__main {
  flex: 1;
  min-width: 0;
}
.wallet-net__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.wallet-net__sub {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
}
.wallet-net__chev {
  color: #cbd5e1;
  font-size: 18px;
  font-weight: 300;
}
.tw-wallet-modal__foot {
  margin: 20px 20px 0;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
}
.tw-wallet-modal__foot--trust {
  color: #64748b;
}

/* Trust Wallet–style first step: logo + consent checkboxes */
.tw-wallet-trust {
  padding-top: 4px;
  padding-bottom: 4px;
}
.tw-wallet-trust__brand {
  text-align: center;
  margin-bottom: 14px;
}
.tw-wallet-trust__logo {
  display: inline-block;
  height: 30px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
}
.tw-wallet-trust__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  color: #0500ff;
}
.tw-wallet-trust__intro {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}
.tw-wallet-trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tw-wallet-trust__item {
  margin-bottom: 14px;
}
.tw-wallet-trust__item:last-of-type {
  margin-bottom: 0;
}
.tw-wallet-trust__label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}
.tw-wallet-trust__chk {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tw-wallet-trust__box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 2px solid #cbd5e1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.tw-wallet-trust__chk:focus-visible + .tw-wallet-trust__box {
  outline: 2px solid #0500ff;
  outline-offset: 2px;
}
.tw-wallet-trust__chk:checked + .tw-wallet-trust__box {
  background: linear-gradient(135deg, #0500ff 0%, #0094ff 100%);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(5, 0, 255, 0.25);
}
.tw-wallet-trust__chk:checked + .tw-wallet-trust__box::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}
.tw-wallet-trust__text {
  flex: 1;
  min-width: 0;
}
.tw-wallet-trust__continue {
  width: 100%;
  margin-top: 20px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #0500ff 0%, #0094ff 100%);
  box-shadow: 0 8px 24px rgba(5, 0, 255, 0.22);
  transition:
    opacity 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}
.tw-wallet-trust__continue:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.tw-wallet-trust__continue:not(:disabled):hover {
  opacity: 0.96;
  transform: translateY(-1px);
}
@media (max-width: 400px) {
  .wallet-steps {
    gap: 6px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .wallet-step-pill {
    padding: 10px 4px 12px;
    gap: 6px;
    border-radius: 14px;
  }
  .wallet-step-pill > span:not(.wallet-step-pill__dot) {
    font-size: 9px;
    line-height: 1.25;
  }
  .wallet-step-pill__dot {
    width: 24px;
    height: 24px;
  }
  .wallet-step-pill__dot::before {
    font-size: 10px;
  }
}

.wallet-pending {
  text-align: center;
  padding: 24px 8px 8px;
}
.wallet-pending__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(5, 0, 255, 0.1), rgba(72, 230, 196, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
}
.wallet-pending__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
}
.wallet-pending h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.wallet-pending p,
#wallet-pending-line {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}
body.wallet-modal-open {
  overflow: hidden;
}

/* —— Cards page —— */
.cards-page {
  min-height: 100vh;
  padding-top: 72px;
  padding-bottom: 100px;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(5, 0, 255, 0.07), transparent),
    radial-gradient(900px 500px at 100% 20%, rgba(72, 230, 196, 0.08), transparent),
    var(--white);
}
.cards-page__hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 80px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cards-page__kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.cards-page__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0c1222;
  line-height: 1.1;
}
.cards-showcase {
  max-width: 560px;
  margin: 0 auto 48px;
  padding: 0 24px;
}
.cards-showcase__shell {
  background: #fff;
  border-radius: 28px;
  padding: 20px 20px 28px;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 24px 60px rgba(5, 0, 255, 0.09);
  border: 1px solid rgba(5, 0, 255, 0.06);
}
@media (min-width: 960px) {
  .cards-showcase {
    max-width: 1080px;
  }
  .cards-showcase__shell {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(340px, 1.12fr);
    grid-template-rows: auto 1fr;
    column-gap: 44px;
    row-gap: 16px;
    padding: 28px 36px 36px;
    align-items: start;
  }
  .cards-dots {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }
  .cards-visual {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
  }
  .cards-detail {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: stretch;
  }
}
.cards-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.cards-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #e2e8f0;
  cursor: pointer;
  transition:
    width 0.25s,
    background 0.25s;
}
.cards-dots button.is-active {
  width: 28px;
  background: var(--primary-blue);
}
.cards-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  background: linear-gradient(145deg, #0f172a, #1e3a5f);
}
.cards-visual img,
.cards-preview-img {
  width: 100%;
  max-width: min(440px, 92vw);
  max-height: min(340px, 48vh);
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 18px 36px rgba(15, 23, 42, 0.12));
}
.cards-visual__nav {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.cards-visual__nav:hover {
  transform: translateY(-50%) scale(1.05);
}
.cards-visual__nav--prev {
  left: 10px;
  right: auto;
}
.cards-slide-img {
  display: none;
}
.cards-slide-img.is-active {
  display: block;
}
.cards-detail .cards-slide {
  display: none;
}
.cards-detail .cards-slide.is-active {
  display: block;
}
.cards-slide__name {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #0c1222;
  letter-spacing: -0.02em;
}
.cards-slide__price {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-blue);
}
.cards-info {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 1px solid #eef2f7;
}
.cards-info strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 6px;
}
.cards-info p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}
.cards-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 20px;
}
.cards-issue {
  width: 100%;
  padding: 16px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0500ff, #4f46e5);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(5, 0, 255, 0.35);
  transition:
    transform 0.15s,
    box-shadow 0.2s;
}
.cards-issue:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(5, 0, 255, 0.4);
}
.cards-limits {
  border: 1px solid #eef2f7;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.cards-limits__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 0;
  background: #f8fafc;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}
.cards-limits__trigger span:last-child {
  transition: transform 0.25s;
  color: #94a3b8;
}
.cards-limits.is-open .cards-limits__trigger span:last-child {
  transform: rotate(180deg);
}
.cards-limits__panel {
  display: none;
  padding: 0 18px 16px;
  border-top: 1px solid #eef2f7;
}
.cards-limits.is-open .cards-limits__panel {
  display: block;
}
.cards-limits ul {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
}
.cards-limits li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 14px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.cards-limits li:last-child {
  border-bottom: 0;
}
.cards-limits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='white' stroke-width='2' d='M2 6l3 3 5-5'/%3E%3C/svg%3E")
    center/10px no-repeat;
}
.cards-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.cards-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e8ecf2;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.cards-badge img {
  width: 20px;
  height: 20px;
}
.cards-footnote {
  margin-top: 16px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
}
@media (max-width: 1024px) {
  .cards-page__hero {
    padding: 24px 24px 16px;
  }
}
@media (max-width: 640px) {
  .cards-page {
    padding-top: 68px;
  }
  .cards-showcase__shell {
    padding: 16px 14px 22px;
    border-radius: 22px;
  }
}

.Header_nav__NNkX_ a.cards-nav-active {
  color: var(--primary-blue);
}

.LandingPage_page__Py6p3 {
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 28%, #ffffff 100%);
}

/* ── Community section ── */
.tw-community-section {
  padding: 80px 0 60px;
  background: #fff;
}
.tw-community-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: #0b1019;
  margin: 0 0 12px;
  line-height: 1.2;
}
.tw-community-sub {
  font-size: 15px;
  color: #64748b;
  margin: 0 0 40px;
  max-width: 480px;
}
.tw-community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tw-community-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tw-community-img-wrap {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 16px;
  position: relative;
}
.tw-community-img-wrap--blue::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0500ff;
  opacity: .55;
  mix-blend-mode: screen;
  pointer-events: none;
}
.tw-community-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.tw-community-card strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0b1019;
  margin-bottom: 4px;
}
.tw-community-card p {
  font-size: 14px;
  color: #0b1019;
  margin: 0;
  line-height: 1.55;
}
.tw-community-cta {
  margin-top: 40px;
  text-align: center;
}
.tw-community-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0500ff;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity .2s;
}
.tw-community-btn:hover { opacity: .85; }
@media (max-width: 900px) {
  .tw-community-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .tw-community-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tw-community-section { padding: 48px 0 40px; }
}

/* ── Footer (1:1 copy of trustwallet.com) ── */
.tw-ft {
  max-width: 1280px;
  margin: 0 auto 40px;
  border: 1px solid #dde4f0;
  border-radius: 30px;
  background: #f8fafe;
  padding: 48px 80px 48px;
  display: grid;
  grid-template-columns: auto 2fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 32px 0;
}

/* Child 1 — Stay Connected (auto-placed → col 3, row 2+) */
.tw-ft-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
  margin-left: 24px;
}
.tw-ft-social h5 {
  font-size: 16px;
  font-weight: 700;
  color: #0b1019;
  margin: 0;
}
.tw-ft-socials { display: flex; gap: 6px; flex-wrap: wrap; }
.tw-ft-socials a { display: flex; color: #0b1019; transition: color .15s; }
.tw-ft-socials a:hover { color: #0500ff; }

/* Child 2 — Nav + ISO (cols 2-3, row 1) */
.tw-ft-nav {
  grid-column: 2 / 4;
  grid-row: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  justify-self: start;
}
.tw-ft-col {
  min-width: 0;
}
.tw-ft-col strong {
  font-size: 14px;
  font-weight: 700;
  color: #0b1019;
  display: block;
  margin-bottom: 12px;
}
.tw-ft-col nav {
  display: grid;
  gap: 8px;
}
.tw-ft-col a {
  font-size: 14px;
  color: #0b1019;
  text-decoration: none;
  line-height: 1.5;
  transition: color .15s;
}
.tw-ft-col a:hover { text-decoration: underline; }
.tw-ft-iso {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
}
.tw-ft-iso img { width: 58px; height: auto; }

/* Child 3 — Download (col 2, rows 2-3) */
.tw-ft-dl {
  grid-column: 2;
  grid-row: 2 / 4;
  text-align: left;
}
.tw-ft-dl strong { font-size: 14px; font-weight: 700; color: #0b1019; display: block; }
.tw-ft-dl > p { font-size: 13px; color: #0b1019; margin: 4px 0 16px; }
.tw-ft-dl-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 420px;
}
.tw-ft-dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: #0500ff;
  border: 1.5px solid #0500ff; border-radius: 999px; padding: 8px 20px;
  height: 36px;
  text-decoration: none; background: transparent; transition: background .2s, color .2s;
  white-space: nowrap;
}
.tw-ft-dl-btn:hover { background: #0500ff; color: #fff; }
.tw-ft-dl-btn svg, .tw-ft-dl-btn img { flex-shrink: 0; height: 18px; width: auto; }

/* Child 4 — Brand (col 1, rows 1-3) */
.tw-ft-brand {
  grid-column: 1;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 40px;
  width: 180px;
}
.tw-ft-brand-text {
  width: 130px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.tw-ft-brand-shield {
  width: 140px;
  height: auto;
  margin: 8px auto 0;
  display: block;
}

/* Mobile / tablet */
@media (max-width: 1024px) {
  .tw-ft {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    border-radius: 20px;
    padding: 32px 24px;
    margin: 0 16px 32px;
    gap: 32px;
  }
  .tw-ft-social,
  .tw-ft-nav,
  .tw-ft-dl,
  .tw-ft-brand {
    grid-column: 1;
    grid-row: auto;
  }
  .tw-ft-brand { order: -1; flex-direction: column; align-items: center; gap: 0; padding-right: 0; width: auto; }
  .tw-ft-brand-text { width: 110px; }
  .tw-ft-brand-shield { width: 110px; margin-top: 6px; }
  .tw-ft-nav { grid-template-columns: repeat(3, 1fr); }
  .tw-ft-social { margin-left: 0; align-items: center; }
  .tw-ft-dl { text-align: center; }
}
@media (max-width: 640px) {
  .tw-ft-nav { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .tw-ft-dl-grid { flex-direction: column; }
  .tw-ft-dl-btn { width: 100%; }
}

/* ── Header mobile fix: logo must not be covered by buttons ── */
@media (max-width: 640px) {
  .Header_header__xuTiO {
    grid-template-columns: auto 1fr auto;
    gap: 6px;
  }
  /* Logo: fixed size, never shrinks */
  .Header_left__tzwQt {
    flex-shrink: 0;
    min-width: 0;
    width: auto;
  }
  .Header_left__tzwQt .tw-brand__mark {
    width: 90px;
    height: auto;
  }
  /* Right side: don't overflow */
  .Header_right__K26RG {
    flex-shrink: 1;
    min-width: 0;
    gap: 6px;
    justify-content: flex-end;
  }
  /* Language button: show only globe icon, hide "Language" text */
  .LanguageSelector_trigger__ncDxy {
    padding: 0 10px;
    min-height: 36px;
    gap: 4px;
    min-width: 36px;
  }
  .LanguageSelector_trigger__ncDxy .LanguageSelector_code__8ojbC {
    display: none;
  }
  /* CTA button: compact */
  .Header_cta__Hu23Q {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .Header_left__tzwQt .tw-brand__mark {
    width: 72px;
  }
  .Header_cta__Hu23Q {
    padding: 0 10px;
    font-size: 11px;
  }
}
