/* DogeSoft.io hub — tokens + swap header + bridge/swap cards + wallet drawer */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
  scroll-behavior: smooth;
}

/* Light palette aligned with Explorer (indexer) — see static/web/styles.css :root */
html[data-theme='light'] {
  color-scheme: light;
  --bg-page: #f7f8fb;
  --bg-stars-soft: rgba(255, 255, 255, 0.12);
  --bg-card: #ffffff;
  --bg-card-alt: #f7f8fb;
  --border-card: rgba(17, 24, 39, 0.12);
  --text-primary: #111827;
  --text-secondary: rgba(17, 24, 39, 0.78);
  --text-muted: rgba(17, 24, 39, 0.62);
  --text-tertiary: var(--text-muted);
  --accent-gold: #f5c45c;
  --accent-cyan: #46e6c7;
  --accent-error: #ff5c7a;
  --f-size-small: 16px;
  --f-size-large: 18px;
  --f-weight-book: 485;
  --f-weight-medium: 535;
  --f-lineHeight-small: 20px;
  --f-lineHeight-large: 24px;
  --font-family-base: Basel, -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  background-color: #ffffff;
}

/* Dark tokens aligned with Explorer [data-theme="dark"] */
html[data-theme='dark'] {
  color-scheme: dark;
  --bg-page: #090a0e;
  --bg-stars-soft: rgba(255, 255, 255, 0.12);
  --bg-card: #12131a;
  --bg-card-alt: #0f111d;
  --border-card: rgba(255, 255, 255, 0.14);
  --text-primary: #e8eaef;
  --text-secondary: rgba(232, 234, 239, 0.75);
  --text-muted: rgba(232, 234, 239, 0.58);
  --text-tertiary: var(--text-muted);
  --accent-gold: #f5c45c;
  --accent-cyan: #46e6c7;
  --accent-error: #ff5c7a;
  --f-size-small: 16px;
  --f-size-large: 18px;
  --f-weight-book: 485;
  --f-weight-medium: 535;
  --f-lineHeight-small: 20px;
  --f-lineHeight-large: 24px;
  --font-family-base: Basel, -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  background-color: #080910;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family-base);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.3s ease;
  overflow-x: hidden;
  background: var(--bg-page);
  color: var(--text-primary);
}

/* Dunes / starfield show through — same pattern as Explorer static/web/styles.css */
html[data-theme='light'] body {
  background: transparent;
}
html[data-theme='dark'] body {
  background: transparent;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

/* Background canvases (Explorer) */
.ds-bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}
html[data-theme='dark'] #starfieldCanvas {
  display: block;
}
html[data-theme='light'] #lightDunesCanvas {
  display: block;
}

.hub-app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Swap-style fixed header (drc20 Header.css) === */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99;
  background: transparent;
  border-bottom: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Mobile: Hide header on scroll down (swap parity) */
@media (max-width: 768px) {
  .app-header {
    transform: translateY(0);
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 99 !important;
    isolation: auto !important;
    position: fixed !important;
  }

  .app-header.header-hidden {
    transform: translateY(-100%);
  }

  body .app-header,
  html body .app-header {
    z-index: 99 !important;
  }

  .app-header,
  .app-header * {
    z-index: 99 !important;
  }
}

.header-container {
  width: 100%;
  margin: 0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  flex: 1;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo .logo-image {
  height: 56px;
  width: auto;
  aspect-ratio: 500 / 511;
  object-fit: contain;
}

.header-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* EXACT match with swap header `Header.css` nav link chrome */
.nav-link {
  padding: 8px 20px;
  border: none;
  background: transparent;
  color: #6B7280;
  font-size: var(--f-size-large);
  font-weight: var(--f-weight-medium);
  font-family: var(--font-family-base);
  cursor: pointer;
  transition: color 0.2s;
  line-height: var(--f-lineHeight-large);
  text-decoration: none;
}

.nav-link:hover {
  color: #374151;
}

html[data-theme='dark'] .nav-link {
  color: #7C8499;
}

html[data-theme='dark'] .nav-link:hover {
  color: #B4BCD0;
}

.nav-link.active {
  color: #111827;
  opacity: 1;
}

html[data-theme='dark'] .nav-link.active {
  color: #FFFFFF;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .header-actions {
    flex-wrap: nowrap;
  }
}

/* DOGE spot (DogeHeaderPrice.css) */
.header-doge-spot {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
  margin-right: 4px;
  font-family: var(--font-family-base);
}
/* Right cluster: price → wallet → theme (drc20 DogeHeaderPrice + Header) */
.header-doge-spot--in-actions {
  margin-right: 0;
  margin-left: 0;
  flex-shrink: 0;
}
.header-doge-label {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(17, 24, 39, 0.62));
  flex-shrink: 0;
}
.header-doge-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: var(--f-size-small, 13px);
  color: var(--text-primary);
  white-space: nowrap;
}
.header-doge-chg {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.header-doge-chg.up {
  color: #0d9f6e;
}
.header-doge-chg.down {
  color: #dc2626;
}
.header-doge-chg.flat {
  color: var(--text-muted);
}
[data-theme='dark'] .header-doge-price {
  color: #ffffff;
}
[data-theme='dark'] .header-doge-chg.up {
  color: #4ade80;
}
[data-theme='dark'] .header-doge-chg.down {
  color: #f87171;
}
[data-theme='dark'] .header-doge-chg.flat {
  color: #7c8499;
}

/* drc20 DogeHeaderPrice.css — compact DOGE row on narrow viewports */
@media (max-width: 480px) {
  .header-doge-spot {
    gap: 4px 6px;
  }
  .header-doge-label {
    font-size: 10px;
  }
  .header-doge-price {
    font-size: 12px;
  }
  .header-doge-chg {
    display: none;
  }
}

.connect-wallet-button {
  padding: 10px 20px;
  background: #ffe1a5;
  color: #f66b00;
  border: none;
  border-radius: 10px;
  font-size: var(--f-size-small, 16px);
  font-weight: var(--f-weight-medium);
  font-family: var(--font-family-base);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  line-height: var(--f-lineHeight-small, 20px);
}
.connect-wallet-button:hover {
  background: #ffd98a;
  opacity: 0.95;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-family-base);
  transition: all 0.2s;
  color: #000000;
}

.theme-toggle:hover {
  opacity: 0.7;
}

html[data-theme='dark'] .theme-toggle {
  background: transparent;
  color: #FFFFFF;
}

html[data-theme='dark'] .theme-toggle:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .header-container {
    padding: 12px 16px;
    gap: 16px;
  }
  .header-nav {
    display: none; /* Hide nav on mobile - use bottom nav instead */
  }
  .nav-link {
    padding: 6px 12px;
    font-size: 14px;
  }
}

/* Main (swap / bridge / marketing parity) */
.hub-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 48px;
  padding-top: 88px;
}

@media (max-width: 768px) {
  .hub-main {
    /*
     * Clear the fixed .app-header (logo row): same 88px basis as desktop / drc20 .container
     * — drc20’s mobile 8px sits with React layout; this static hub needs explicit offset
     * so the hero title is not under the bar. Add notch inset for iOS.
     */
    margin-top: 0 !important;
    padding: 0 16px calc(100px + env(safe-area-inset-bottom, 0px)) !important;
    padding-top: calc(88px + env(safe-area-inset-top, 0px)) !important;
  }
}

/* Mobile hero: a little air under the bar once main’s padding clears the header */
@media (max-width: 768px) {
  .hub-hero {
    margin-bottom: 16px;
    padding-top: 4px;
  }
  .hub-hero h1 {
    margin-top: 0;
  }
}

.hub-hero {
  text-align: center;
  margin-bottom: 20px;
}
.hub-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  font-family: var(--font-family-base);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text-primary);
  text-align: center;
  padding: 0 20px;
}

/* Product grid — swap/bridge card chrome, no hover lift */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
@media (min-width: 700px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hub-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 16px;
  /* no transform / shadow on hover */
}
.hub-card-link:hover {
  opacity: 1;
}

/* (reserved) disabled card styles removed with marketplace card */

/* Match Explorer / drc20 card treatment */
.swap-interface-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05);
}
[data-theme='dark'] .swap-interface-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.hub-card.swap-interface-card {
  max-width: none;
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.hub-card-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border-card);
}
.hub-card-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hub-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
  min-height: 0;
}
.hub-card-lead {
  display: block;
  margin-top: 0.35em;
  font-weight: 600;
  color: var(--text-primary);
}
@media (max-width: 768px) {
  .hub-card.swap-interface-card {
    border-radius: 12px;
  }
  .hub-card-body {
    padding: 12px;
  }
  .hub-card-banner {
    aspect-ratio: 16 / 10;
  }
}

.hub-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f66b00;
  margin-bottom: 8px;
  font-family: var(--font-family-base);
}
.hub-card-body h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  font-family: var(--font-family-base);
  letter-spacing: -0.02em;
}
.hub-card-body p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
  font-weight: var(--f-weight-book);
  font-family: var(--font-family-base);
}
.hub-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  background: #ffe1a5;
  color: #f66b00;
  font-size: 0.75rem;
  font-weight: var(--f-weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-family-base);
  line-height: var(--f-lineHeight-small);
  border: none;
  cursor: pointer;
  pointer-events: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.hub-card-link:hover .hub-cta {
  background: #ffd98a;
  opacity: 0.95;
}
.hub-card-link .hub-cta {
  pointer-events: none;
}

.hub-inline-docs {
  color: #f66b00;
  font-weight: 600;
  text-decoration: none;
}
.hub-inline-docs:hover {
  text-decoration: underline;
}
[data-theme='dark'] .hub-inline-docs {
  color: #ffb26b;
}

/* Shared ecosystem strip footer — canonical styles match drc20_swap_amm EcosystemLogosStrip.css */
.ecosystem-strip {
  margin-top: 28px;
  padding: 12px 0 2px;
}

.ecosystem-strip__powered {
  margin: 0 0 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary, rgba(17, 24, 39, 0.62));
}
.ecosystem-strip__powered a {
  color: inherit;
  text-decoration: none;
}
.ecosystem-strip__powered a:hover {
  color: inherit;
  text-decoration: none;
}

.ecosystem-strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  align-items: flex-start;
  padding-bottom: 8px;
}
.ecosystem-strip__ic {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 88px;
  text-align: center;
  text-decoration: none;
  color: var(--text-tertiary, rgba(17, 24, 39, 0.62));
  font-size: 12px;
  line-height: 1.2;
  padding: 6px 0;
  border-radius: 12px;
  transition: background 0.15s ease, color 0.15s;
}
.ecosystem-strip__ic:hover {
  background: rgba(70, 230, 199, 0.08);
  color: var(--text-primary, #111827);
  text-decoration: none;
}
.ecosystem-strip__ic--here {
  cursor: default;
  color: var(--accent-gold, #f5c45c);
  background: rgba(245, 196, 92, 0.1);
  outline: 1px solid rgba(245, 196, 92, 0.3);
  outline-offset: 1px;
}
.ecosystem-strip__img {
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.ecosystem-strip__label {
  display: block;
  max-width: 7.2rem;
}

@media (max-width: 768px) {
  .ecosystem-strip__row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
  }
}

[data-theme='dark'] .ecosystem-strip__ic:hover {
  background: rgba(70, 230, 199, 0.12);
  color: var(--text-primary, #ffffff);
}
[data-theme='dark'] .ecosystem-strip__img {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* Skip link */
.visually-hidden-focus {
  position: absolute;
  left: -9999px;
  z-index: 200;
}
.visually-hidden-focus:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: #f66b00;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  outline: 2px solid #fff;
}

/* Wallet drawer — ecosystem branded picks (theme: html[data-theme]) */
.wallet-panel-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 420;
  background: rgba(15, 23, 42, 0.4);
}
html[data-theme='light'] .wallet-panel-backdrop {
  background: rgba(15, 23, 42, 0.35);
}
.wallet-panel-backdrop.is-open {
  display: block;
}
.wallet-panel {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 94vw);
  z-index: 430;
  background: var(--bg-card);
  border-left: 1px solid var(--border-card);
  transform: translateX(calc(100% + 24px));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.18);
  min-height: 0;
}
html[data-theme='dark'] .wallet-panel {
  box-shadow: -12px 0 56px rgba(0, 0, 0, 0.45);
}
.wallet-panel.is-open {
  transform: translateX(0);
}
.wallet-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border-card);
  flex-shrink: 0;
  background: linear-gradient(
    165deg,
    rgba(255, 207, 102, 0.18) 0%,
    rgba(255, 153, 66, 0.06) 42%,
    var(--bg-card) 78%
  );
}
html[data-theme='dark'] .wallet-panel-top {
  background: linear-gradient(
    165deg,
    rgba(120, 90, 20, 0.2) 0%,
    rgba(140, 70, 10, 0.08) 45%,
    var(--bg-card) 78%
  );
}
.wallet-panel-top-text {
  flex: 1;
  min-width: 0;
}
.wallet-panel-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.wallet-panel-lead {
  margin: 10px 0 0 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.wallet-panel-lead-accent {
  font-weight: 800;
  background: linear-gradient(120deg, #ea580c, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wallet-panel-close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border-card);
  background: var(--bg-card-alt);
  color: var(--text-primary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.wallet-panel-close:hover {
  background: var(--bg-card);
}
.wallet-panel-body-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wallet-pick-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wallet-pick-li {
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}
.wallet-pick-card {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.wallet-pick-card--action[role='button'] {
  cursor: pointer;
  outline: none;
}
.wallet-pick-card--action[role='button'][aria-disabled='true'] {
  cursor: default;
}
.wallet-pick-card--action[role='button'][aria-disabled='true'] .wallet-pick-title-link {
  cursor: pointer;
}
.wallet-pick-title-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  font-weight: 400;
  color: var(--text-primary);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.wallet-pick-title-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wallet-pick-title-link .wallet-pick-name {
  font-weight: 400;
  letter-spacing: -0.01em;
}
.wallet-pick-external-icon {
  flex-shrink: 0;
  display: block;
  opacity: 0.72;
  color: var(--text-secondary);
}
.wallet-pick-title-link:hover .wallet-pick-external-icon {
  opacity: 0.95;
  color: var(--text-primary);
}
.wallet-pick-card-inner {
  border-radius: 16px;
  border: 1px solid var(--border-card);
  background: var(--bg-card-alt);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wallet-pick-card--mydoge.wallet-pick-card--action:not([aria-disabled='true']) .wallet-pick-card-inner:hover {
  border-color: rgba(242, 216, 138, 0.65);
  box-shadow:
    0 0 0 1px rgba(242, 216, 138, 0.2),
    0 4px 22px rgba(242, 216, 138, 0.16);
}
html[data-theme='dark'] .wallet-pick-card--mydoge.wallet-pick-card--action:not([aria-disabled='true']) .wallet-pick-card-inner:hover {
  box-shadow:
    0 0 0 1px rgba(242, 216, 138, 0.18),
    0 4px 26px rgba(242, 216, 138, 0.12);
}
.wallet-pick-card--spooky.wallet-pick-card--action:not([aria-disabled='true']) .wallet-pick-card-inner:hover {
  border-color: rgba(139, 54, 212, 0.58);
  box-shadow:
    0 0 0 1px rgba(139, 54, 212, 0.22),
    0 4px 22px rgba(139, 54, 212, 0.2);
}
html[data-theme='dark'] .wallet-pick-card--spooky.wallet-pick-card--action:not([aria-disabled='true']) .wallet-pick-card-inner:hover {
  box-shadow:
    0 0 0 1px rgba(139, 54, 212, 0.2),
    0 4px 26px rgba(139, 54, 212, 0.18);
}
.wallet-pick-card--spooky.wallet-pick-card--action.is-active .wallet-pick-card-inner {
  border-color: #8b36d4;
  box-shadow:
    0 0 0 1px rgba(139, 54, 212, 0.28),
    0 4px 22px rgba(139, 54, 212, 0.18);
}
.wallet-pick-card--mydoge.wallet-pick-card--action.is-active .wallet-pick-card-inner {
  border-color: #f2d88a;
  box-shadow:
    0 0 0 1px rgba(242, 216, 138, 0.55),
    0 4px 22px rgba(242, 216, 138, 0.2);
}
.wallet-pick-card--soon .wallet-pick-card-inner {
  opacity: 0.88;
  filter: grayscale(0.25);
}
html[data-theme='dark'] .wallet-pick-card--soon .wallet-pick-card-inner {
  filter: grayscale(0.35);
}
.wallet-pick-card--action[aria-disabled='true'] .wallet-pick-card-inner {
  opacity: 0.5;
}
.wallet-pick-visual {
  display: block;
  background: var(--bg-card);
  line-height: 0;
}
.wallet-pick-img {
  width: 100%;
  height: auto;
  display: block;
}
.wallet-pick-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border-card);
}
.wallet-pick-name {
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.wallet-pick-card--soon .wallet-pick-soon {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #da8016;
}
html[data-theme='dark'] .wallet-pick-card--soon .wallet-pick-soon {
  color: #ffffff;
  background: #da8016;
  border-color: rgba(0, 0, 0, 0.22);
}
.wallet-pick-connect-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  max-width: 100%;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
}
.wallet-pick-connect-cta--mydoge {
  border-color: rgba(242, 216, 138, 0.42);
  background: rgba(242, 216, 138, 0.1);
  --wallet-light: #f2d88a;
  --wallet-light-off-ring: rgba(242, 216, 138, 0.38);
}
html[data-theme='dark'] .wallet-pick-connect-cta--mydoge {
  border-color: rgba(242, 216, 138, 0.32);
  background: rgba(242, 216, 138, 0.08);
  --wallet-light-off-ring: rgba(242, 216, 138, 0.45);
}
.wallet-pick-connect-cta--spooky {
  border-color: rgba(139, 54, 212, 0.42);
  background: rgba(139, 54, 212, 0.1);
  --wallet-light: #8b36d4;
  --wallet-light-off-ring: rgba(139, 54, 212, 0.38);
}
html[data-theme='dark'] .wallet-pick-connect-cta--spooky {
  border-color: rgba(139, 54, 212, 0.38);
  background: rgba(139, 54, 212, 0.12);
  --wallet-light-off-ring: rgba(139, 54, 212, 0.5);
}
.wallet-pick-connect-lights {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.wallet-pick-light {
  flex-shrink: 0;
  border-radius: 50%;
  box-sizing: border-box;
}
.wallet-pick-light--off {
  width: 9px;
  height: 9px;
  border: 2px solid var(--wallet-light-off-ring);
  background: transparent;
  opacity: 0.95;
}
.wallet-pick-light--on {
  width: 10px;
  height: 10px;
  border: none;
  background: var(--wallet-light);
}
.wallet-pick-connect-cta--mydoge .wallet-pick-light--on {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 0 10px rgba(242, 216, 138, 0.55);
}
.wallet-pick-connect-cta--spooky .wallet-pick-light--on {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 10px rgba(139, 54, 212, 0.48);
}
.wallet-pick-card--mydoge.wallet-pick-card--action:not([aria-disabled='true']):hover .wallet-pick-connect-cta--mydoge {
  border-color: rgba(242, 216, 138, 0.72);
  box-shadow: 0 0 14px rgba(242, 216, 138, 0.12);
}
.wallet-pick-card--spooky.wallet-pick-card--action:not([aria-disabled='true']):hover .wallet-pick-connect-cta--spooky {
  border-color: rgba(139, 54, 212, 0.62);
  box-shadow: 0 0 14px rgba(139, 54, 212, 0.14);
}
.wallet-pick-connect-text.wallet-pick-hint,
.wallet-pick-hint.wallet-pick-connect-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.wallet-pick-card--mydoge.is-connecting .wallet-pick-light--on,
.wallet-pick-card--spooky.is-connecting .wallet-pick-light--on {
  animation: wallet-pick-light-pulse 0.85s ease-in-out infinite;
}
@keyframes wallet-pick-light-pulse {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.65;
    filter: brightness(1.25);
  }
}
.wallet-connect-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #dc2626;
}
html[data-theme='dark'] .wallet-connect-error {
  color: #f87171;
}
.wallet-connected-row {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed var(--border-card);
  background: rgba(0, 0, 0, 0.03);
}
html[data-theme='dark'] .wallet-connected-row {
  background: rgba(255, 255, 255, 0.04);
}
.wallet-connected-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.wallet-connected-address {
  display: block;
  font-size: 12px;
  word-break: break-all;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.wallet-disconnect-button {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.wallet-disconnect-button:hover {
  color: var(--text-primary);
}
.wallet-eco-disclaimer {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-secondary);
  opacity: 0.92;
}
@media (prefers-reduced-motion: reduce) {
  .wallet-panel {
    transition: none;
  }
  .wallet-pick-card-inner {
    transition: none;
  }
  .wallet-pick-card--mydoge.is-connecting .wallet-pick-light--on,
  .wallet-pick-card--spooky.is-connecting .wallet-pick-light--on {
    animation: none;
  }
}

/* === Product landing funnel (wallet / amm) === */
.landing-hero {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
  padding: 8px 0 4px;
}

@media (min-width: 860px) {
  .landing-hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }
}

.landing-hero__copy h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: left;
  padding: 0;
}

.landing-hero__lead {
  margin: 0 0 22px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 34rem;
}

.landing-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border-card);
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.12);
}

[data-theme='dark'] .landing-hero__visual img {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: var(--f-weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--font-family-base);
  line-height: var(--f-lineHeight-small);
  border: 1px solid transparent;
  transition: background 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.landing-btn--primary {
  background: #ffe1a5;
  color: #f66b00;
}

.landing-btn--primary:hover {
  background: #ffd98a;
  opacity: 0.95;
}

.landing-btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-card);
}

.landing-btn--ghost:hover {
  border-color: #f66b00;
  color: #f66b00;
}

.landing-fine {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.landing-fine a {
  color: #f66b00;
  font-weight: 600;
  text-decoration: none;
}

.landing-fine a:hover {
  text-decoration: underline;
}

.feature-funnel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.feature-block {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05);
}

[data-theme='dark'] .feature-block {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr 1fr;
    padding: 24px 28px;
    gap: 28px;
  }

  .feature-block--reverse .feature-block__copy {
    order: 2;
  }

  .feature-block--reverse .feature-block__visual {
    order: 1;
  }
}

.feature-block__tag {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f66b00;
  margin-bottom: 8px;
}

.feature-block__copy h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.feature-block__copy p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.feature-block__list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.feature-block__list li + li {
  margin-top: 6px;
}

.feature-block__visual {
  min-height: 120px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(246, 107, 0, 0.12), rgba(70, 230, 199, 0.08));
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
}

.feature-block__glyph {
  font-size: 3rem;
  line-height: 1;
  filter: grayscale(0.1);
}

.download-section {
  text-align: center;
  padding: 32px 24px;
  margin-bottom: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
}

.download-section h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 800;
}

.download-section p {
  margin: 0 auto 22px;
  max-width: 32rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.store-badge small {
  display: block;
  font-size: 0.68rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-badge strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

[data-theme='dark'] .store-badge {
  background: #0f111d;
  border-color: rgba(255, 255, 255, 0.14);
}

.strip-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  margin-bottom: 4px;
  border-radius: 16px;
  border: 1px solid var(--border-card);
  background: linear-gradient(120deg, rgba(246, 107, 0, 0.08), rgba(70, 230, 199, 0.06));
}

.strip-cta h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.strip-cta p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 36rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .landing-hero__copy h1 {
    text-align: center;
  }

  .landing-hero__lead,
  .landing-fine {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .landing-cta-row {
    justify-content: center;
  }
}
