:root {
  --bg: #030303;
  --surface: #090909;
  --surface-2: #0d0d0c;
  --surface-3: #121211;
  --text: #f7f7f3;
  --muted: #898982;
  --muted-2: #5f5f5a;
  --gold: #f3ba2f;
  --gold-2: #ffd35c;
  --success: #58d68d;
  --danger: #ff716c;
  --line: rgba(255, 255, 255, .075);
  --gold-line: rgba(243, 186, 47, .22);
  --shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 50% -120px, rgba(243, 186, 47, .09), transparent 70%),
    linear-gradient(180deg, #060605 0%, #030303 52%, #020202 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .014) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.shell { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gold);
  color: #050505;
  font-weight: 900;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: calc(12px + env(safe-area-inset-top)) 0 10px;
  background: linear-gradient(to bottom, rgba(3, 3, 3, .96), rgba(3, 3, 3, .68), transparent);
}

.header-inner {
  min-height: 62px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 8, 7, .78);
  backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 15px 44px rgba(0, 0, 0, .24);
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 950; letter-spacing: -.045em; }
.brand img {
  width: 38px;
  height: 38px;
  padding: 2px;
  object-fit: contain;
  border: 1px solid rgba(243, 186, 47, .18);
  border-radius: 11px;
  background: rgba(243, 186, 47, .02);
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.network-pill, .status-pill, .pancake-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #9b9b95;
  background: rgba(255, 255, 255, .018);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
}
.network-pill { height: 34px; padding: 0 12px; }
.network-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px rgba(88, 214, 141, .55); }
.network-short { display: none; }

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .018);
}
.language-switch button {
  min-width: 36px;
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  color: #72726d;
  background: transparent;
  font-size: 9px;
  font-weight: 950;
}
.language-switch button.active { color: #050505; background: var(--gold); }

.connect-button {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--gold-line);
  border-radius: 11px;
  color: var(--gold);
  background: rgba(243, 186, 47, .04);
  font-size: 10px;
  font-weight: 950;
}
.connect-button svg { width: 17px; height: 17px; }
.connect-button.connected { color: var(--text); border-color: var(--line); background: var(--surface-3); }

.app-main { padding: 34px 0 calc(44px + env(safe-area-inset-bottom)); }

.hero-panel {
  min-height: 245px;
  padding: 34px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 26px;
  background:
    radial-gradient(460px 260px at 85% 50%, rgba(243, 186, 47, .095), transparent 70%),
    linear-gradient(145deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .007));
  box-shadow: var(--shadow);
}
.hero-panel::after {
  content: "BNBULL";
  position: absolute;
  right: -8px;
  bottom: -47px;
  color: rgba(255, 255, 255, .018);
  font-size: clamp(100px, 14vw, 176px);
  font-weight: 950;
  letter-spacing: -.08em;
}
.hero-copy { max-width: 650px; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #aaa9a3; font-size: 10px; font-weight: 950; letter-spacing: .16em; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 15px rgba(243, 186, 47, .75); }
.hero-panel h1 { margin: 15px 0 13px; font-size: clamp(48px, 6vw, 77px); line-height: .91; letter-spacing: -.07em; white-space: pre-line; }
.hero-panel p { max-width: 610px; margin: 0; color: #96968f; font-size: 15px; line-height: 1.55; }
.hero-bull {
  position: absolute;
  z-index: 1;
  right: 3%;
  top: 50%;
  width: min(33%, 310px);
  aspect-ratio: 1;
  object-fit: contain;
  opacity: .36;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 45px rgba(243, 186, 47, .18));
}

.launch-notice {
  margin: 14px 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(243, 186, 47, .15);
  border-radius: 16px;
  background: rgba(243, 186, 47, .028);
  color: #9d957f;
  font-size: 11px;
  line-height: 1.5;
}
.launch-notice strong { display: block; color: #d9ca9e; font-size: 11px; }
.notice-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid rgba(243, 186, 47, .15); border-radius: 10px; color: var(--gold); }
.notice-icon svg { width: 18px; height: 18px; }

.tracker-card, .panel, .metric-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, .021), rgba(255, 255, 255, .006));
}
.tracker-card { margin: 14px 0; padding: 20px; border-radius: 20px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.compact-heading { align-items: center; }
.section-kicker { display: block; color: var(--gold); font-size: 9px; font-weight: 950; letter-spacing: .17em; }
.section-heading h2, .swap-heading h2 { margin: 8px 0 0; font-size: 26px; line-height: 1; letter-spacing: -.045em; }
.text-button { padding: 7px 0; border: 0; color: #9e9e98; background: none; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.text-button:hover { color: var(--gold); }

.tracker-form { margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.address-input-wrap { min-width: 0; position: relative; }
.address-input-wrap > svg { position: absolute; top: 50%; left: 14px; width: 18px; height: 18px; color: #686863; transform: translateY(-50%); }
.address-input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 43px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: #050505;
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.address-input-wrap input:focus { border-color: rgba(243, 186, 47, .42); box-shadow: 0 0 0 3px rgba(243, 186, 47, .07); }
.address-input-wrap input.invalid { border-color: rgba(255, 113, 108, .55); }
.clear-input { position: absolute; top: 50%; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; color: #797974; background: #111; font-size: 18px; transform: translateY(-50%); }

.primary-button, .secondary-button {
  min-height: 50px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 13px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .02em;
  transition: transform .18s ease, opacity .18s ease, border-color .18s ease;
}
.primary-button { border: 0; color: #050505; background: var(--gold); box-shadow: 0 13px 34px rgba(243, 186, 47, .09); }
.primary-button:not(:disabled):hover, .secondary-button:not(.disabled-link):hover { transform: translateY(-2px); }
.primary-button:disabled { opacity: .36; cursor: not-allowed; box-shadow: none; }
.primary-button svg, .secondary-button svg { width: 17px; height: 17px; }
.secondary-button { border: 1px solid var(--line); color: #deded9; background: #0b0b0b; }
.full-button { width: 100%; }
.field-hint, .safety-line { margin: 9px 2px 0; color: #6f6f69; font-size: 9px; line-height: 1.5; }
.inline-status { min-height: 0; margin-top: 0; color: #9b9587; font-size: 10px; line-height: 1.45; }
.inline-status.show { min-height: 18px; margin-top: 10px; }
.inline-status.error { color: var(--danger); }
.inline-status.success { color: var(--success); }

.metrics-grid { margin: 14px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.metric-card { min-height: 156px; padding: 18px; border-radius: 18px; }
.primary-metric { border-color: rgba(243, 186, 47, .16); background: radial-gradient(circle at 100% 0, rgba(243, 186, 47, .07), transparent 45%), linear-gradient(145deg, rgba(255, 255, 255, .024), rgba(255, 255, 255, .007)); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #73736d; font-size: 8px; font-weight: 950; letter-spacing: .12em; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(243, 186, 47, .13); border-radius: 10px; color: var(--gold); background: rgba(243, 186, 47, .025); }
.metric-icon img { width: 28px; height: 28px; object-fit: contain; }
.metric-icon svg { width: 18px; height: 18px; }
.bnb-icon { font-size: 14px; }
.metric-card > strong { display: block; margin: 21px 0 5px; font-size: 25px; line-height: 1; letter-spacing: -.05em; }
.metric-card > strong.loading { color: transparent; width: 58%; border-radius: 5px; background: linear-gradient(90deg, #111, #1a1a18, #111); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.metric-card small { color: #74746e; font-size: 9px; }
.gold-value { color: var(--gold); }
.progress { height: 4px; margin-top: 11px; overflow: hidden; border-radius: 999px; background: #171716; }
.progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gold); transition: width .4s ease; }

.content-grid { margin: 14px 0; display: grid; grid-template-columns: 1.12fr .88fr; gap: 10px; }
.panel { padding: 22px; border-radius: 20px; }
.status-pill { min-height: 28px; padding: 0 10px; color: #757570; }
.status-pill.live { color: var(--success); border-color: rgba(88, 214, 141, .2); }
.market-price-row { margin: 30px 0 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.data-label { display: block; margin-bottom: 8px; color: #6b6b66; font-size: 8px; font-weight: 950; letter-spacing: .14em; }
.market-price-row strong { font-size: 38px; line-height: 1; letter-spacing: -.055em; }
.change-pill { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: #7d7d77; font-size: 9px; font-weight: 900; }
.change-pill.positive { color: var(--success); border-color: rgba(88, 214, 141, .18); }
.change-pill.negative { color: var(--danger); border-color: rgba(255, 113, 108, .18); }
.market-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.market-stats > div { min-width: 0; padding: 12px; border: 1px solid rgba(255, 255, 255, .055); border-radius: 12px; background: rgba(255, 255, 255, .01); }
.market-stats span { display: block; margin-bottom: 8px; color: #65655f; font-size: 7px; font-weight: 950; letter-spacing: .11em; }
.market-stats strong { display: block; overflow: hidden; color: #d5d5d0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.market-panel .secondary-button { width: 100%; margin-top: 13px; }
.disabled-link { opacity: .34; pointer-events: none; }

.reward-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--gold-line); border-radius: 13px; background: rgba(243, 186, 47, .025); }
.reward-mark img { width: 39px; height: 39px; object-fit: contain; }
.flap-protocol { width: fit-content; margin-top: 11px; display: inline-flex; align-items: center; gap: 7px; color: #777d68; font-size: 7px; font-weight: 950; letter-spacing: .13em; }
.flap-protocol:hover { color: #a7b179; }
.flap-protocol img { width: 14px; height: 14px; opacity: .82; }
.reward-total { margin: 26px 0 17px; padding: 17px; border: 1px solid var(--gold-line); border-radius: 15px; background: radial-gradient(circle at 100% 0, rgba(243, 186, 47, .09), transparent 60%), #080807; }
.reward-total > span { color: #817b68; font-size: 8px; font-weight: 950; letter-spacing: .13em; }
.reward-total > strong { display: block; margin-top: 11px; color: var(--gold); font-size: 30px; letter-spacing: -.05em; }
.reward-total small { color: #887b58; font-size: 12px; letter-spacing: 0; }
.reward-cadence { margin: -6px 2px 13px; color: #9c9274; font-size: 9px; font-weight: 800; letter-spacing: .02em; }
.distribution-proof { margin-bottom: 7px; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid rgba(243, 186, 47, .12); border-radius: 12px; background: rgba(243, 186, 47, .025); }
.distribution-proof span, .distribution-proof small { display: block; }
.distribution-proof span { color: #8e876f; font-size: 7px; font-weight: 950; letter-spacing: .12em; }
.distribution-proof small { margin-top: 4px; color: #5f5d55; font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.distribution-proof strong { flex: 0 0 auto; color: var(--gold); font-size: 17px; letter-spacing: -.035em; }
.reward-line { padding: 10px 2px; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(255, 255, 255, .045); color: #777771; font-size: 10px; }
.reward-line strong { color: #c8c8c3; }
.rewards-panel .primary-button { margin-top: 17px; }
.safety-line { display: flex; justify-content: center; align-items: center; gap: 7px; text-align: center; }
.safety-line i { width: 5px; height: 5px; border-radius: 50%; background: var(--success); }

.swap-panel { margin: 14px 0; padding: 27px; border-color: rgba(243, 186, 47, .12); background: radial-gradient(620px 300px at 100% 0, rgba(243, 186, 47, .055), transparent 70%), linear-gradient(145deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .005)); }
.swap-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.swap-heading p { max-width: 660px; margin: 10px 0 0; color: #85857e; font-size: 12px; line-height: 1.5; }
.pancake-badge { min-height: 30px; padding: 0 11px; color: #8b8268; border-color: rgba(243, 186, 47, .13); }
.swap-layout { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr); gap: 12px; }
.swap-form-card, .swap-info { border: 1px solid var(--line); border-radius: 17px; background: #070707; }
.swap-form-card { padding: 13px; }
.token-input-card { padding: 14px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 14px; background: #0b0b0a; }
.token-input-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #70706a; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.balance-button { padding: 0; border: 0; color: #777771; background: none; font-size: 8px; }
.balance-button:hover { color: var(--gold); }
.token-input-row { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.token-input-row input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; color: var(--text); background: none; font-size: 31px; font-weight: 800; letter-spacing: -.04em; }
.token-input-row input::placeholder { color: #373735; }
.asset-pill { min-width: 112px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(255, 255, 255, .075); border-radius: 999px; background: #121211; font-size: 11px; }
.asset-icon { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; overflow: hidden; }
.bnb-asset { color: #070707; background: var(--gold); font-size: 9px; }
.bull-asset { background: #050505; }
.bull-asset img { width: 24px; height: 24px; object-fit: contain; }
.reverse-button { width: 38px; height: 38px; margin: -5px auto; position: relative; z-index: 2; display: grid; place-items: center; border: 4px solid #070707; border-radius: 12px; color: var(--gold); background: #161612; }
.reverse-button svg { width: 17px; height: 17px; }
.output-card { background: #090909; }
.slippage-row { margin: 12px 2px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #6e6e68; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.slippage-options { display: inline-flex; gap: 4px; }
.slippage-options button { min-width: 42px; height: 28px; border: 1px solid var(--line); border-radius: 8px; color: #7b7b75; background: #0b0b0b; font-size: 9px; font-weight: 900; }
.slippage-options button.active { color: #080808; border-color: var(--gold); background: var(--gold); }
.quote-details { margin: 12px 2px; padding: 12px; display: grid; gap: 8px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 11px; color: #777771; font-size: 9px; }
.quote-details > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quote-details strong { color: #bbbcb6; font-weight: 750; }
.swap-info { padding: 23px; display: flex; flex-direction: column; justify-content: center; }
.info-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--gold-line); border-radius: 13px; color: var(--gold); background: rgba(243, 186, 47, .025); }
.info-icon svg { width: 22px; height: 22px; }
.swap-info h3 { margin: 19px 0 11px; font-size: 26px; letter-spacing: -.045em; }
.swap-info ul { margin: 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.swap-info li { padding-left: 18px; position: relative; color: #9a9a94; font-size: 11px; line-height: 1.5; }
.swap-info li::before { content: ""; position: absolute; top: 6px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(243, 186, 47, .35); }
.swap-info p { margin: 20px 0 0; padding-top: 17px; border-top: 1px solid rgba(255, 255, 255, .05); color: #62625d; font-size: 9px; line-height: 1.55; }

.recent-panel { margin: 14px 0; }
.recent-list { margin-top: 16px; display: grid; gap: 7px; }
.recent-wallet { min-height: 50px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(255, 255, 255, .055); border-radius: 12px; background: #070707; }
.recent-wallet button:first-child { min-width: 0; padding: 0; border: 0; color: #c1c1bc; background: none; font-size: 11px; text-align: left; }
.recent-wallet button:first-child span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-wallet button:first-child small { display: block; margin-top: 3px; color: #64645f; font-size: 8px; }
.remove-wallet { width: 30px; height: 30px; flex: 0 0 30px; border: 0; border-radius: 50%; color: #686863; background: #111; }

.app-footer { margin-top: 38px; padding: 27px 4px 0; border-top: 1px solid rgba(255, 255, 255, .055); color: #696963; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #b9b9b4; font-size: 12px; }
.footer-brand img { width: 28px; height: 28px; object-fit: contain; }
.app-footer > p { max-width: 800px; margin: 16px 0; font-size: 9px; line-height: 1.6; }
.footer-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.footer-meta a:hover { color: var(--gold); }

.mobile-nav { display: none; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; }
.modal.show { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .8); backdrop-filter: blur(12px); }
.wallet-dialog { width: min(100%, 420px); max-height: min(720px, calc(100vh - 38px)); overflow-y: auto; padding: 27px; position: relative; z-index: 1; border: 1px solid var(--gold-line); border-radius: 23px; background: radial-gradient(330px 180px at 50% 0, rgba(243, 186, 47, .08), transparent 70%), #090909; box-shadow: 0 40px 110px rgba(0, 0, 0, .64); text-align: center; }
.modal-close { position: absolute; top: 13px; right: 13px; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #83837d; background: #101010; font-size: 20px; }
.modal-brand { width: 76px; height: 76px; margin: 0 auto 16px; display: grid; place-items: center; }
.modal-brand img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 0 22px rgba(243, 186, 47, .13)); }
.wallet-dialog h2 { margin: 10px 0 8px; font-size: 31px; letter-spacing: -.05em; }
.wallet-dialog > p { margin: 0; color: #92928b; font-size: 11px; line-height: 1.55; }
.wallet-options, .wallet-fallback { margin-top: 18px; display: grid; gap: 7px; text-align: left; }
.wallet-option, .wallet-fallback a { min-height: 52px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; color: #d6d6d1; background: #0d0d0d; }
.wallet-option:hover, .wallet-fallback a:hover { border-color: var(--gold-line); }
.wallet-option span { display: flex; align-items: center; gap: 10px; }
.wallet-option img { width: 28px; height: 28px; border-radius: 8px; }
.wallet-option small, .wallet-fallback small { color: #6c6c66; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.wallet-fallback > span { margin: 5px 2px 0; color: #666660; font-size: 8px; font-weight: 950; letter-spacing: .13em; }
.wallet-note { margin-top: 17px !important; color: #696963 !important; font-size: 9px !important; }
.install-dialog .install-instructions {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 13px;
  color: #c9c9c4;
  background: rgba(255, 255, 255, .018);
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
}
.install-action { margin-top: 14px; }
html.modal-open { overflow: hidden; }

.toast { position: fixed; right: 18px; bottom: 18px; z-index: 150; max-width: min(360px, calc(100% - 36px)); padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; color: #d2d2cd; background: rgba(14, 14, 13, .95); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); font-size: 10px; line-height: 1.45; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: none; }
.toast.error { border-color: rgba(255, 113, 108, .22); color: #ffaaa6; }

html[lang="zh-CN"] body { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Inter, sans-serif; }
html[lang="zh-CN"] .hero-panel h1, html[lang="zh-CN"] .section-heading h2, html[lang="zh-CN"] .swap-heading h2 { letter-spacing: -.03em; }

@media (max-width: 900px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .swap-layout { grid-template-columns: 1fr; }
  .swap-info { min-height: 280px; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 20px, 1160px); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .app-header { padding-top: calc(8px + env(safe-area-inset-top)); }
  .header-inner { min-height: 58px; padding: 0 10px; border-radius: 15px; }
  .brand { gap: 8px; font-size: 19px; }
  .brand img { width: 35px; height: 35px; }
  .network-long { display: none; }
  .network-short { display: inline; }
  .network-pill { height: 32px; padding: 0 9px; }
  .connect-button { width: 38px; min-height: 38px; padding: 0; border-radius: 50%; }
  .connect-button span { display: none; }
  .language-switch button { min-width: 31px; padding-inline: 7px; }
  .app-main { padding-top: 8px; }

  .hero-panel { min-height: 220px; padding: 24px 20px; border-radius: 21px; }
  .hero-copy { max-width: 93%; }
  .hero-panel h1 { margin-top: 13px; font-size: clamp(44px, 14vw, 62px); }
  .hero-panel p { max-width: 86%; font-size: 12px; }
  .hero-bull { right: -12%; width: 62%; opacity: .18; }
  .hero-panel::after { right: -12px; bottom: -25px; font-size: 82px; }

  .launch-notice { align-items: flex-start; }
  .tracker-card, .panel { padding: 17px; border-radius: 17px; }
  .tracker-form { grid-template-columns: 1fr; }
  .tracker-form .primary-button { width: 100%; }
  .compact-heading { align-items: flex-start; }
  .compact-heading .text-button { max-width: 120px; padding-top: 1px; text-align: right; }
  .section-heading h2, .swap-heading h2 { font-size: 24px; }

  .metrics-grid { gap: 8px; }
  .metric-card { min-height: 144px; padding: 14px; border-radius: 15px; }
  .metric-card > strong { margin-top: 18px; font-size: 22px; }
  .metric-top { letter-spacing: .08em; }
  .metric-icon { width: 31px; height: 31px; }

  .market-stats { grid-template-columns: 1fr; }
  .market-stats > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
  .market-stats span { margin: 0; }
  .market-price-row strong { font-size: 33px; }
  .swap-panel { padding: 18px; }
  .swap-heading { display: block; }
  .pancake-badge { margin-top: 13px; }
  .swap-form-card { margin-inline: -7px; padding: 9px; }
  .token-input-row input { font-size: 27px; }
  .asset-pill { min-width: 103px; padding-inline: 10px; }
  .swap-info { min-height: 0; padding: 19px; }

  .app-footer { padding-bottom: 10px; }
  .mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 45;
    min-height: 62px;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 19px;
    background: rgba(9, 9, 8, .91);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .48);
  }
  .mobile-nav a { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 14px; color: #666660; font-size: 7px; font-weight: 900; letter-spacing: .06em; }
  .mobile-nav a.active { color: var(--gold); background: rgba(243, 186, 47, .045); }
  .mobile-nav svg { width: 20px; height: 20px; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .wallet-dialog { padding: 24px 18px 19px; }
}

@media (max-width: 390px) {
  .network-pill { display: none; }
  .hero-panel h1 { font-size: 42px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 126px; }
  .metric-card > strong { margin-top: 13px; }
  .swap-heading h2 { max-width: 290px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@keyframes shimmer { to { background-position: -200% 0; } }
