:root {
  --bg: #030508;
  --card: linear-gradient(165deg, rgba(16, 19, 27, 0.95) 0%, rgba(6, 8, 12, 0.98) 65%, rgba(18, 14, 8, 0.96) 100%);
  --gold: #FFFBEB;
  --bd: rgba(246, 208, 112, 0.56);
  --txt: #F8FAFC;
  --mut: #A1A9B8;
  --header-h: 56px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", Roboto, sans-serif;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

#starCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.app-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 435px;
  margin: 0 auto;
  padding: max(8px, env(safe-area-inset-top)) 10px calc(98px + env(safe-area-inset-bottom, 16px));
}

.hidden { display: none !important; }
.m0 { margin: 0 !important; }
.mt6 { margin-top: 6px !important; }
.mt8 { margin-top: 8px !important; }
.mt10 { margin-top: 10px !important; }
.w100 { width: 100% !important; }

/* Bug 1 Fix: Unclipped RENT & RUG SHIELD + 24K Gold Shield Crest on 320px, 375px, 390px, 430px */
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 5px 0 10px;
  width: 100%;
  min-height: 48px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
}

.hdr-crest-img {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  border: 1px solid rgba(253, 224, 71, 0.78);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
  flex-shrink: 0;
}

.brand {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
  font-weight: 900;
  font-size: clamp(10.8px, 3.3vw, 15px);
  letter-spacing: 0px;
  line-height: 1.15;
  background: linear-gradient(180deg, #FFF 0%, #FEF08A 38%, #F59E0B 78%, #92400E 100%);
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.36));
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.install-pill {
  background: linear-gradient(135deg, #FFFBEB 0%, #FDE047 52%, #D97706 100%);
  color: #05070A;
  border: 0;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: clamp(9.8px, 2.75vw, 11px);
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.wallet-pill {
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 0%, rgba(45, 35, 15, 0.9), rgba(6, 8, 12, 0.98) 75%);
  color: var(--gold);
  border: 1.2px solid rgba(253, 230, 138, 0.82);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: clamp(9.8px, 2.75vw, 11px);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.wallet-pill.connected {
  border-color: #34D399;
  color: #ECFDF5;
  background: radial-gradient(circle at 50% 0%, rgba(6, 78, 59, 0.9), rgba(5, 10, 14, 0.98) 78%);
}

@media (max-width: 359px) {
  .app-shell { padding-left: 8px; padding-right: 8px; }
  .hdr-crest-img { width: 20px; height: 20px; }
  .brand { font-size: 10.6px; letter-spacing: -0.15px; }
  .install-pill, .wallet-pill { padding: 4px 6px; font-size: 9.6px; }
}

/* Bug 3 Fix: Top Pop-Up Alert Banner positioned cleanly BELOW header with full token context + [Buy 0.1] [Chart] [X] */
.pop-bubble {
  position: fixed;
  top: calc(var(--header-h, 58px) + 6px);
  left: 8px;
  right: 8px;
  max-width: 420px;
  margin: 0 auto;
  z-index: 1250;
  background: linear-gradient(165deg, rgba(14, 18, 26, 0.98) 0%, rgba(5, 7, 11, 0.99) 100%);
  border: 1.4px solid rgba(253, 230, 138, 0.9);
  border-radius: 15px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.92), 0 0 24px rgba(245, 158, 11, 0.34);
  transform: translateY(-220%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.pop-bubble.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pop-bubble.red-pop {
  border-color: rgba(248, 113, 113, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.92), 0 0 24px rgba(239, 68, 68, 0.38);
}

.pop-line1 {
  width: 100%;
  min-width: 0;
  font-size: clamp(9.6px, 2.95vw, 12px);
  font-weight: 900;
  color: #FFFBEB;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
}

.pop-bubble.red-pop .pop-line1 {
  color: #FCA5A5;
}

.pop-line2 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
}

.pop-sub-tag {
  margin-right: auto;
  font-size: clamp(9.5px, 2.7vw, 11px);
  font-weight: 700;
  color: #34D399;
  white-space: nowrap;
}

.pop-bubble.red-pop .pop-sub-tag {
  color: #F87171;
}

.pop-buy-btn,
.pop-chart-btn,
.pop-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border-radius: 8px;
  font-size: clamp(10px, 2.8vw, 11.5px);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.pop-buy-btn {
  padding: 0 9px;
  background: linear-gradient(135deg, #10B981, #047857);
  border: 1px solid #34D399;
  color: #ECFDF5;
}

.pop-chart-btn {
  padding: 0 9px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid #64748B;
  color: #E2E8F0;
}

.pop-close-btn {
  width: 28px;
  padding: 0;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(253, 230, 138, 0.45);
  color: #FDE68A;
}

/* Luxury Cards */
.lux-card {
  position: relative;
  background: var(--card);
  border: 1.25px solid var(--bd);
  border-radius: 18px;
  padding: 13px;
  margin-bottom: 11px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.88), 0 0 24px rgba(217, 119, 6, 0.14), inset 0 1px 0 rgba(255, 251, 235, 0.22);
}

.lux-card::before, .lux-row::before, .whale-card::before {
  content: "";
  position: absolute;
  top: -1.3px;
  left: 12%;
  right: 12%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(253, 230, 138, 0.65) 42%, #FFF 50%, rgba(253, 230, 138, 0.65) 58%, transparent 100%);
  filter: drop-shadow(0 0 6px rgba(254, 240, 138, 0.9));
}

.lux-card::after, .lux-row::after {
  content: "";
  position: absolute;
  bottom: -1.3px;
  left: 24%;
  right: 24%;
  height: 1.6px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.55) 45%, #FEF08A 50%, rgba(245, 158, 11, 0.55) 55%, transparent 100%);
}

.lux-card.crimson-card { border-color: rgba(248, 113, 113, 0.78); }

.card-h1 {
  margin: 0 0 10px;
  font-size: clamp(15.5px, 4.4vw, 18px);
  font-weight: 800;
  color: #FFF;
}

.card-title-center { text-align: center; }

.card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
  min-width: 0;
}

.plain-x {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #FDE68A;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  padding: 2px 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: linear-gradient(180deg, #030407 0%, #090C12 100%);
  border: 1.15px solid rgba(246, 208, 112, 0.46);
  border-radius: 999px;
  padding: 5px 9px 5px 12px;
  margin-bottom: 10px;
  box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.95);
}

.mint-inp {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #FEF9C3;
  font-size: 13.5px;
  outline: none;
  padding: 6px 0;
}

.mint-inp::placeholder { color: rgba(218, 185, 112, 0.68); }

.mini-gold-btn {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(253, 230, 138, 0.52);
  color: #FEF08A;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.reticle-btn {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.buy-sell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
}

.btn-buy, .btn-sell {
  height: 42px;
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(12px, 3.5vw, 13.5px);
  letter-spacing: 0.3px;
  color: #FFFBEB;
  cursor: pointer;
  white-space: nowrap;
  border: 1.3px solid rgba(253, 230, 138, 0.84);
}

.btn-buy {
  background: radial-gradient(ellipse at 50% 42%, #10B981 0%, #059669 42%, #064E3B 82%, #022C22 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.75), 0 0 16px rgba(16, 185, 129, 0.28);
}

.btn-sell {
  background: radial-gradient(ellipse at 50% 42%, #EF4444 0%, #B91C1C 45%, #7F1D1D 82%, #450A0A 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.75), 0 0 16px rgba(239, 68, 68, 0.28);
}

.btn-sm { height: 36px; font-size: 11.5px; }
.rent-card-click { cursor: pointer; }

.seal-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 35%, rgba(217, 119, 6, 0.32), rgba(45, 26, 6, 0.88));
  border: 1.1px solid rgba(253, 224, 71, 0.55);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.rent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: clamp(12px, 3.4vw, 13.5px);
  color: #C8B996;
  padding: 3px 0;
}

.rent-val { color: #FFF; font-weight: 700; }

.lux-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--card);
  border: 1.2px solid var(--bd);
  border-radius: 15px;
  padding: 12px 13px;
  margin-bottom: 8px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

.lux-row-l {
  color: #FFF;
  font-size: clamp(12.5px, 3.6vw, 14.5px);
  font-weight: 700;
}

.lux-row-r {
  font-size: clamp(11.5px, 3.3vw, 13.5px);
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(180deg, #FFFBEB 0%, #FDE68A 55%, #D97706 100%);
  -webkit-background-clip: text;
  color: transparent;
}

/* Bug 2 Fix: Strict 5-Column Preset Alert Buy (SOL) Grid [0.05] [0.1] [0.25] [0.5] [Custom] */
.preset-sol-mobile-card {
  padding: 11px 12px;
}

.preset-m-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}

.preset-m-ttl {
  font-size: clamp(11px, 3.2vw, 12.5px);
  font-weight: 900;
  color: #FDE047;
  white-space: nowrap;
}

.preset-m-slip-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: #C8B996;
  font-weight: 700;
  flex-shrink: 0;
}

.preset-m-slip {
  background: #05080F;
  border: 1px solid rgba(253, 224, 71, 0.5);
  border-radius: 7px;
  color: #FEF08A;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 5px;
  outline: none;
}

.preset-m-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.preset-m-grid .chip {
  min-width: 0;
  width: 100%;
  padding: 6px 2px;
  font-size: clamp(10px, 2.9vw, 11.5px);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preset-m-custom { margin-top: 7px; }

.preset-m-inp {
  width: 100%;
  background: #05080F;
  border: 1px solid rgba(253, 224, 71, 0.6);
  border-radius: 10px;
  padding: 7px 10px;
  color: #FEF08A;
  font-size: 12.5px;
  font-weight: 800;
  outline: none;
}

/* Whale & Runner Cards */
.whale-card {
  position: relative;
  background: radial-gradient(circle at 22% 52%, rgba(245, 158, 11, 0.24) 0%, rgba(12, 11, 14, 0.96) 56%, rgba(5, 7, 11, 0.99) 100%);
  border: 1.3px solid rgba(253, 230, 138, 0.82);
  border-radius: 16px;
  padding: 10px 11px;
  margin-top: 4px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9), 0 0 22px rgba(245, 158, 11, 0.22);
}

.whale-card.red-whale {
  background: radial-gradient(circle at 22% 52%, rgba(239, 68, 68, 0.28) 0%, rgba(14, 7, 10, 0.98) 65%);
  border-color: rgba(252, 165, 165, 0.85);
}

.whale-canvas {
  width: 82px;
  height: 60px;
  flex-shrink: 0;
}

.whale-info {
  flex: 1;
  min-width: 0;
  padding-right: 16px;
}

.whale-ttl {
  font-size: clamp(11px, 3.2vw, 12.8px);
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.3;
  background: linear-gradient(180deg, #FFFBEB, #FDE68A);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}

.whale-card.red-whale .whale-ttl {
  background: none;
  color: #FCA5A5;
}

.whale-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3px 6px;
  font-size: clamp(10.8px, 3.1vw, 12.2px);
  color: #E5D5B5;
}

.ok-txt { color: #34D399; font-weight: 800; }
.bad-txt { color: #F87171; font-weight: 800; }
.whale-pos-x { position: absolute; top: 3px; right: 5px; }

/* Bug 4 Fix: Crisp High-Contrast Non-Wrapping 4-Pill Action Grid [Buy 0.1] [Phantom] [Solflare] [Chart] */
.card-4pill-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1.02fr) minmax(0, 0.86fr);
  gap: 5px;
  width: 100%;
  margin-top: 8px;
}

.pill-4 {
  min-width: 0;
  width: 100%;
  height: 34px;
  padding: 0 3px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(9.6px, 2.85vw, 11.4px);
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: filter 0.14s ease, box-shadow 0.14s ease;
}

.pill-buy {
  background: linear-gradient(135deg, #10B981 0%, #047857 100%);
  border: 1.25px solid #34D399;
  color: #ECFDF5;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.pill-phantom {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.42) 0%, rgba(76, 29, 149, 0.72) 100%);
  border: 1.25px solid #AB9FF2;
  color: #F5F3FF;
}

.pill-solflare {
  background: linear-gradient(135deg, rgba(252, 114, 39, 0.38) 0%, rgba(154, 52, 18, 0.72) 100%);
  border: 1.25px solid #FC7227;
  color: #FFF7ED;
}

.pill-chart {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1.25px solid #64748B;
  color: #E2E8F0;
}

.pill-4.pref-wallet {
  box-shadow: 0 0 0 1.5px #FDE047, 0 0 12px rgba(253, 224, 71, 0.4);
}

/* 16-Layer Audit Score Hero */
.score-hero {
  margin-top: 10px;
  padding: 11px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 40%, rgba(16, 185, 129, 0.22), rgba(5, 8, 12, 0.97) 75%);
  border: 1.3px solid rgba(52, 211, 153, 0.75);
}

.score-hero.fail {
  background: radial-gradient(circle at 20% 40%, rgba(239, 68, 68, 0.25), rgba(12, 5, 8, 0.97) 75%);
  border-color: rgba(248, 113, 113, 0.8);
}

.score-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.score-big {
  font-size: clamp(17px, 4.8vw, 21px);
  font-weight: 900;
  color: #6EE7B7;
  white-space: nowrap;
}

.score-hero.fail .score-big { color: #FCA5A5; }

.meter-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  margin: 7px 0 9px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #10B981, #FDE047);
}

.score-hero.fail .meter-fill {
  background: linear-gradient(90deg, #DC2626, #F87171);
}

.grid-layers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
  font-size: 11px;
}

.layer-cell {
  background: rgba(4, 6, 10, 0.92);
  border: 1px solid rgba(246, 208, 112, 0.24);
  border-radius: 8px;
  padding: 5px 7px;
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.layer13-strip {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(253, 230, 138, 0.55);
  color: var(--gold);
}

.chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 9px;
}

.chip {
  background: rgba(8, 10, 15, 0.95);
  border: 1px solid rgba(246, 208, 112, 0.38);
  color: var(--gold);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.chip.on {
  background: linear-gradient(135deg, #FFFBEB, #FDE047, #D97706);
  color: #05070A;
  border-color: #FFFBEB;
}

.sub-copy {
  color: var(--mut);
  font-size: 12px;
  line-height: 1.42;
  margin: 4px 0 8px;
}

.gold-outline-btn {
  width: 100%;
  padding: 9px 10px;
  border-radius: 11px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.18), rgba(180, 83, 9, 0.12));
  border: 1px solid rgba(253, 224, 71, 0.58);
  color: var(--gold);
  font-weight: 800;
  font-size: clamp(11px, 3.2vw, 12.5px);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hdr-filter-btn {
  background: rgba(245, 158, 11, 0.16);
  border: 1.1px solid rgba(253, 230, 138, 0.65);
  color: #FFFBEB;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

/* Checkout & Rent Tiers */
.tier-3grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0;
}

.tier-pill-btn {
  min-width: 0;
  padding: 8px 4px;
  border-radius: 11px;
  background: rgba(8, 12, 20, 0.96);
  border: 1.15px solid rgba(246, 208, 112, 0.38);
  color: #F8FAFC;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.tier-pill-btn.on {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.24), rgba(245, 158, 11, 0.24));
  border-color: #FDE047;
  box-shadow: 0 0 14px rgba(253, 224, 71, 0.3);
}

.tier-price {
  font-size: clamp(12px, 3.5vw, 14px);
  font-weight: 900;
  color: #FDE047;
  white-space: nowrap;
}

.tier-lbl {
  font-size: clamp(9.5px, 2.7vw, 10.5px);
  font-weight: 700;
  color: #CBD5E1;
  white-space: nowrap;
}

.deeplink-2grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}

/* Modals & Bug 5 Add App Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1350;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px;
}

.sheet-box {
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 14px;
}

.install-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 8px 0;
}

.install-app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 9px 6px;
  border-radius: 11px;
  font-size: clamp(9.8px, 3.1vw, 13px);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.install-phantom-btn {
  background: linear-gradient(135deg, #8B5CF6 0%, #5B21B6 100%);
  border: 1.25px solid #AB9FF2;
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
}

.install-solflare-btn {
  background: linear-gradient(135deg, #EA580C 0%, #9A3412 100%);
  border: 1.25px solid #FC7227;
  color: #FFFFFF;
}

.install-tg-btn {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border: 1.25px solid #7DD3FC;
  color: #FFFFFF;
}

.amt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0;
}

.quote-preview {
  background: rgba(4, 6, 10, 0.95);
  border: 1px solid rgba(253, 224, 71, 0.34);
  border-radius: 13px;
  padding: 9px 11px;
  margin: 8px 0;
  font-size: 12.5px;
}

.wallet-grid-6 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
  margin-top: 8px;
}

.w-card-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(10, 14, 22, 0.96);
  border: 1.1px solid rgba(253, 224, 71, 0.45);
  color: #FFF;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.w-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.icon-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0 10px;
}

.icon-opt {
  background: rgba(8, 11, 17, 0.96);
  border: 1.2px solid rgba(246, 208, 112, 0.35);
  border-radius: 13px;
  padding: 7px 4px;
  text-align: center;
  cursor: pointer;
  color: #E5D5B5;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.icon-opt.on {
  border-color: #FDE047;
  box-shadow: 0 0 14px rgba(253, 224, 71, 0.35);
  color: #FFFBEB;
}

.icon-opt img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  margin: 0 auto 4px;
}

.ios-steps {
  background: rgba(6, 9, 15, 0.96);
  border: 1.15px solid rgba(253, 230, 138, 0.52);
  border-radius: 13px;
  padding: 10px 11px;
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.45;
  color: #F8FAFC;
}

/* Bottom Navigation (5 Tabs: Scan, Trade, Alerts, Rent, Settings) */
.bnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.96), rgba(3, 5, 8, 0.99));
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(246, 208, 112, 0.34);
}

.bnav-inner {
  max-width: 435px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 7px 4px max(12px, env(safe-area-inset-bottom, 12px));
}

.ntab {
  min-width: 0;
  background: transparent;
  border: 0;
  color: #C8B996;
  font-size: clamp(10px, 2.85vw, 11.5px);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 2px 0;
  white-space: nowrap;
}

.ntab svg {
  width: 20px;
  height: 20px;
  stroke: #D4AF37;
  opacity: 0.78;
}

.ntab.active {
  color: #FFFBEB;
  font-weight: 800;
}

.ntab.active svg {
  stroke: #FEF08A;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.75));
}
