/* Soft shared chrome — header + footer only. Source: /home/eden/ds/html/soft-chrome/ */
.soft-chrome-root {
  --sc-ink: #17211b;
  --sc-muted: #647069;
  --sc-paper: #f7f3e8;
  --sc-card: rgba(255, 255, 255, 0.78);
  --sc-line: rgba(23, 33, 27, 0.14);
  --sc-yellow: #f5c45c; /* Pulse soft orange/gold */
  --sc-orange: #ff7138;
  --sc-header-bg: rgba(247, 243, 232, 0.78);
}
html[data-theme="dark"] .soft-chrome-root,
html[data-theme="dark"] {
  --sc-ink: #f4f1ea;
  --sc-muted: rgba(244, 241, 234, 0.62);
  --sc-paper: #0f1713;
  --sc-card: rgba(22, 32, 26, 0.88);
  --sc-line: rgba(255, 255, 255, 0.1);
  --sc-header-bg: rgba(15, 23, 19, 0.88);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  padding: 14px max(20px, calc((100vw - 1280px) / 2));
  backdrop-filter: blur(18px);
  background: var(--sc-header-bg, var(--header-bg, rgba(247, 243, 232, 0.78)));
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-color: var(--sc-line, var(--line, rgba(23, 33, 27, 0.14)));
  box-shadow: 0 10px 40px rgba(23, 33, 27, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  min-height: 58px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--sc-ink, var(--ink, #17211b));
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.brand span span {
  color: var(--sc-orange, var(--orange, #ff7138));
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}
.desktop-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--sc-muted, var(--muted, #647069));
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a[aria-current="page"] {
  color: var(--sc-ink, var(--ink, #17211b));
  background: rgba(255, 255, 255, 0.75);
}
html[data-theme="dark"] .desktop-nav a:hover,
html[data-theme="dark"] .desktop-nav a:focus-visible,
html[data-theme="dark"] .desktop-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.06);
}
.signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--sc-line, var(--line, rgba(23, 33, 27, 0.14)));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.77rem;
  font-weight: 750;
  white-space: nowrap;
  color: var(--sc-ink, var(--ink, #17211b));
}
html[data-theme="dark"] .signal {
  background: rgba(255, 255, 255, 0.04);
}
.theme-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--sc-line, var(--line, rgba(23, 33, 27, 0.14)));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--sc-ink, var(--ink, #17211b));
  font-size: 1rem;
  cursor: pointer;
}
html[data-theme="dark"] .theme-btn {
  background: rgba(255, 255, 255, 0.05);
}
.theme-btn:hover {
  border-color: rgba(255, 113, 56, 0.45);
}
.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25c979;
  box-shadow: 0 0 0 5px rgba(37, 201, 121, 0.12);
}
.signal-change.up { color: #087c45; }
.signal-change.down { color: #c53f2d; }

.mobile-appbar,
.mobile-sheet {
  display: none;
}
.mobile-appbar {
  position: fixed;
  z-index: 70;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--sc-line, var(--line, rgba(23, 33, 27, 0.14)));
  background: var(--sc-header-bg, var(--header-bg, rgba(247, 243, 232, 0.78)));
  backdrop-filter: blur(18px);
  box-shadow: 0 -12px 40px rgba(23, 33, 27, 0.08);
}
.mobile-appbar__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--sc-line, var(--line, rgba(23, 33, 27, 0.14)));
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}
.mobile-appbar__brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.mobile-appbar__signal.signal {
  margin: 0;
  max-width: min(58vw, 240px);
}
.mobile-appbar__end {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mobile-appbar__end .theme-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}
.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.mobile-sheet.is-open { pointer-events: auto; }
.mobile-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 19, 0.45);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.28s ease;
}
.mobile-sheet.is-open .mobile-sheet__backdrop { opacity: 1; }
.mobile-sheet__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 8px;
  max-height: min(78svh, 640px);
  overflow: auto;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 28px 28px 0 0;
  background: var(--sc-paper, var(--paper, #f7f3e8));
  box-shadow: 0 -24px 60px rgba(23, 33, 27, 0.18);
  transform: translateY(110%);
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mobile-sheet.is-open .mobile-sheet__panel { transform: translateY(0); }
.mobile-sheet__handle {
  width: 42px;
  height: 4px;
  margin: 4px auto 10px;
  border-radius: 99px;
  background: rgba(23, 33, 27, 0.18);
}
.mobile-sheet__panel a {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--sc-card, var(--card, rgba(255, 255, 255, 0.78)));
  color: var(--sc-ink, var(--ink, #17211b));
  font-weight: 700;
  text-decoration: none;
}
.mobile-sheet__panel a:hover {
  background: color-mix(in srgb, #ff7138 14%, var(--sc-card, #fff));
}
html[data-theme="dark"] .mobile-appbar {
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .mobile-appbar__brand {
  background: rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] .mobile-sheet__handle {
  background: rgba(255, 255, 255, 0.2);
}

.site-footer {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  padding: 64px max(20px, calc((100vw - 1280px) / 2)) 28px;
  color: #fff;
  background: #0f1713;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
}
.footer-main h2 {
  max-width: 780px;
  margin: 0 0 24px;
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 700;
  color: #fff;
}
.footer-main h2 span { color: var(--sc-yellow, #f5c45c); }
.footer-main h2 [data-soft-headline-1] { color: inherit; }
.footer-main h2 [data-soft-headline-2] { color: var(--sc-yellow, #f5c45c); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 11px 25px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a[aria-current="page"] {
  color: var(--sc-yellow, #f5c45c);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.76rem;
}

@media (max-width: 980px) {
  .site-header { display: none !important; }
  .mobile-appbar {
    display: flex !important;
  }
  .mobile-sheet { display: block !important; }
  body.soft-chrome-pad,
  body:has(.mobile-appbar) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 680px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
  .footer-bottom { margin-top: 36px; }
  .site-footer {
    padding: 48px 20px calc(28px + 72px + env(safe-area-inset-bottom, 0px));
  }
}

/* ds-bridge-header */
.header-end {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 0 0 auto;
}
.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wallet-chip--ds.wallet-chip--pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  border-radius: 999px;
  background: rgba(120, 120, 130, 0.14);
  color: var(--ink, inherit);
  font: inherit;
  font-size: 0.77rem;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.wallet-chip--ds.wallet-chip--pill.is-on {
  border: 0;
  background: var(--orange, #ff7138);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 113, 56, 0.28);
}
html[data-theme="dark"] .wallet-chip--ds.wallet-chip--pill:not(.is-on) {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
}
html[data-theme="dark"] .wallet-chip--ds.wallet-chip--pill.is-on {
  border: 0;
  background: var(--orange, #ff7138);
  color: #fff;
}
.wallet-chip__ds-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  flex: 0 0 auto;
}
.mobile-appbar__end .theme-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}
.signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line, rgba(23, 33, 27, 0.14));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.77rem;
  font-weight: 750;
  white-space: nowrap;
}
html[data-theme="dark"] .signal {
  background: rgba(255, 255, 255, 0.04);
}
.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25c979;
  box-shadow: 0 0 0 5px rgba(37, 201, 121, 0.12);
  flex: 0 0 auto;
}
.signal-change.up { color: #087c45; }
.signal-change.down { color: #c53f2d; }
.theme-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line, rgba(23, 33, 27, 0.14));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink, inherit);
  font-size: 1rem;
  cursor: pointer;
}
html[data-theme="dark"] .theme-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
