/* Nav layout fix — mobile-first */
nav#nav {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: 56px !important;
  padding: 0px 8px !important;
  background: var(--colors-backgroundAlt) !important;
  border-bottom: 1px solid var(--colors-cardBorder) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
@media screen and (min-width: 576px) {
  nav#nav { padding: 0px 16px !important; }
}
nav#nav > div.hgwbos {
  flex: 0 0 auto !important;
  margin-left: auto !important;
}
/* Desktop only: make first nav child grow */
@media screen and (min-width: 852px) {
  nav#nav > div:first-child {
    flex: 1 1 0% !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    height: 100% !important;
  }
}
/* Mobile: compact search bar (icon only) + show settings */
@media screen and (max-width: 851px) {
  /* Search bar: show only the icon, hide text + shortcut key */
  .dUGmRn {
    min-width: unset !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  .dUGmRn .daqUFw { display: none !important; }
  .dUGmRn .heHlRp { display: none !important; }

  /* Hero section: stack vertically, shrink text */
  .loSbDa {
    flex-direction: column !important;
    padding: 0 16px !important;
  }
  .fOsGch, .lmAOwZ {
    font-size: 40px !important;
    line-height: 44px !important;
    text-align: center !important;
    white-space: normal !important;
  }
  .eIpBSm {
    font-size: 16px !important;
    line-height: 24px !important;
    text-align: center !important;
    margin-top: 16px !important;
    margin-bottom: 16px !important;
  }
  .iNOTir {
    padding: 16px !important;
  }
  /* Chain icons row - center on mobile */
  .ihTIXg {
    margin-top: 24px !important;
    margin-bottom: 40px !important;
    justify-content: center !important;
  }
  /* Reduce big gaps between sections on mobile */
  .homepage-snap {
    margin-top: 24px !important;
  }
  /* Stats section "millions/billions" - fit mobile */
  .cicRUQ {
    font-size: 32px !important;
    line-height: 1.2 !important;
    margin-top: 80px !important;
  }
  .duXmir {
    overflow: hidden !important;
    max-width: 100vw !important;
  }
  /* Stats cards container - 2x2 grid on mobile */
  .gXXWWS {
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: center !important;
  }
  .jRoTZk, .ePRAmM, .einZrY, .chxZag {
    width: calc(50% - 12px) !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    height: 120px !important;
    border-radius: 32px !important;
  }
  .sc-8cae45e-0 {
    max-width: 100% !important;
  }
  /* Card section containers - fit mobile */
  .iCEkba, .bqdFNz {
    flex-direction: column !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
  }
  .iCEkba > div, .bqdFNz > div {
    max-width: 100% !important;
    width: 100% !important;
  }
  /* Feature card overflow */
  .evErhi {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  /* Snap scroll sections - disable 100vh on mobile, let content flow */
  .gNzpQz, .iwhdVg {
    height: auto !important;
    min-height: unset !important;
    scroll-snap-align: none !important;
    overflow: visible !important;
  }
  /* Card titles - shrink on mobile */
  .hIwfLA {
    font-size: 20px !important;
    line-height: 24px !important;
    padding: 0 16px !important;
  }
  .bWQtTm {
    font-size: 14px !important;
    line-height: 20px !important;
    padding: 0 16px !important;
  }
  .dyepvZ {
    font-size: 20px !important;
    line-height: 24px !important;
    margin-top: 24px !important;
  }
  /* Card max-width */
  .bktsjS {
    max-width: 100% !important;
  }
  /* Bridge/Buy buttons - replace long text with short labels */
  .cgLpRj .daOzMs, .fVqJfn .daOzMs {
    font-size: 0 !important;
    line-height: 0 !important;
  }
  .cgLpRj .daOzMs::after {
    content: "Bridge Now";
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
  }
  .fVqJfn .daOzMs::after {
    content: "Buy Now";
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
  }
  .jsROVp {
    width: auto !important;
    padding: 8px 16px !important;
  }
  /* Featured section - tighter spacing */
  .cUJxXx {
    padding: 16px 0 !important;
  }
  /* Chain logo icons - shrink to fit mobile viewport */
  .RLoWS {
    width: 28px !important;
    height: 28px !important;
  }
  .RLoWS:not(:first-child) {
    margin-left: 4px !important;
  }
  .RLoWS:hover {
    width: 28px !important;
  }
  .jTGLUc {
    width: 28px !important;
  }
  .ctwcK {
    height: 28px !important;
  }
}
html {
  overflow-x: hidden;
  max-width: 100vw;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Kanit', sans-serif;
  background: var(--colors-background);
}
body {
  overflow-x: hidden;
  max-width: 100vw;
}
*, *::before, *::after { box-sizing: border-box; }

/* --- Nav dropdown fixes (desktop only) --- */
@media screen and (min-width: 852px) {
  .hqUMjG {
    position: relative !important;
  }
  .jAOTDJ {
    position: absolute !important;
    inset: unset !important;
    transform: none !important;
    top: 100% !important;
    left: 0 !important;
    margin-top: 4px !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.15s ease, visibility 0.15s ease !important;
  }
  .hqUMjG:hover > .jAOTDJ {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

div[style*="height: 40px"][style*="cursor: pointer"] {
  position: relative;
  width: 40px;
  height: 40px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--colors-backgroundAlt);
  border: 1px solid var(--colors-cardBorder);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

div[style*="height: 40px"][style*="cursor: pointer"] > svg {
  display: none;
}

div[style*="height: 40px"][style*="cursor: pointer"]::before {
  content: "⇅";
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--colors-textSubtle);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transform: translate(-50%, -50%);
}

div[style*="height: 40px"][style*="cursor: pointer"]:hover {
  transform: scale(1.04);
}
