/* ============================================================
   Tema BNBVillage.fun para TODAS las vistas de la app
   (se carga después de style.css y sobrescribe el estilo viejo)
   Paleta: fondo espacio morado · paneles morado oscuro ·
           dorado (#f8c315) · morado (#7b2ff7) · verde (#22e07a)
   ============================================================ */

:root {
  --bg: #07041a;
  --bg-2: #0d0828;
  --panel: rgba(13, 8, 34, .86);
  --panel-2: rgba(20, 13, 48, .95);
  --line: rgba(150, 110, 255, .28);
  --line-2: rgba(150, 110, 255, .38);
  --text: #ffffff;
  --muted: #c9c3dd;
  --green: #22e07a;
  --green-2: #22e07a;
  --accent: #f8c315;
  --accent-2: #ffd84a;
  --violet: #7b2ff7;
  --pink: #a855f7;
  --amber: #f8c315;
  --red: #ff5c7a;
  --radius: 20px;
  --sans: "Roboto Condensed", system-ui, -apple-system, sans-serif;
  --display: "Poppins", "Roboto Condensed", sans-serif;
  --side-w: 240px;
}

body {
  font-family: var(--sans);
  background:
    url("../img/page-bg.webp") center/cover fixed no-repeat,
    radial-gradient(ellipse at 75% 0%, #3a1680 0%, rgba(30,10,70,.6) 35%, transparent 65%),
    radial-gradient(ellipse at 20% 70%, #1c0b45 0%, transparent 60%),
    #07041a;
  background-attachment: fixed;
}

/* efectos viejos (brillos amarillos) → morado/dorado suave */
.aurora i:nth-child(1) { background: radial-gradient(circle, rgba(123,47,247,.35), transparent 65%); }
.aurora i:nth-child(2) { background: radial-gradient(circle, rgba(168,85,247,.25), transparent 65%); }
.aurora i:nth-child(3) { background: radial-gradient(circle, rgba(248,195,21,.14), transparent 65%); }
#cursor-glow { background: radial-gradient(circle, rgba(150,110,255,.08), transparent 60%); }

/* textos en dorado / blanco del home */
.h-gold { background: linear-gradient(180deg,#fff27a 0%,#ffd21e 40%,#f3a90a 75%,#d98a00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-white { background: linear-gradient(180deg,#fff 0%,#f2f0ff 55%,#c9c4e8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ SIDEBAR ÚNICA (mismas medidas que el diseño 1672x941, escalada) ============ */
:root { --side-w: 262px; }
#appside {
  position: fixed; left: 0; top: 0; z-index: 600;
  width: var(--side-w); height: 100vh; overflow: hidden;
  font-family: "Roboto Condensed", Arial, sans-serif; color: #fff;
}
#appside .s-stage { position: absolute; left: 0; top: 0; width: 262px; height: 941px; transform-origin: 0 0; }
#appside .s-stage > * { position: absolute; }
#appside .s-bg { inset: 0; background: linear-gradient(180deg,#0d0828 0%,#0a0620 60%,#090519 100%); border-right: 1px solid rgba(140,110,230,.18); }
#appside .s-logo { left: 0; top: -24px; width: 262px; height: 262px; background: url("../img/sidebar-logo.webp?v=2") center/cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom,#000 72%,transparent 100%); mask-image: linear-gradient(to bottom,#000 72%,transparent 100%); }
#appside .s-brand { left: 0; top: 180px; width: 262px; text-align: center; text-decoration: none;
  font-family: "Poppins", sans-serif; font-style: italic; font-weight: 900; font-size: 40px; letter-spacing: -1.5px; line-height: 1;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.8)); }
#appside .s-brand .s-fun { display: block; font-size: 30px; margin-top: 2px; letter-spacing: -.5px; }
#appside .s-item {
  left: 24px; width: 217px; border-radius: 14px; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; gap: 22px; padding-left: 18px;
  font: 500 19.5px "Roboto Condensed", Arial, sans-serif; color: #fff; text-align: left;
  transition: background .15s, color .15s;
}
#appside .s-item svg { width: 34px; height: 34px; flex: none; color: #e9e6f5; }
#appside .s-item:hover { color: #ffd84a; }
#appside .s-item:hover svg { color: #ffd84a; }
#appside .s-item.active {
  background: linear-gradient(180deg,#ffe055 0%,#f9c51a 55%,#efab07 100%); color: #1a1205; font-weight: 600;
  box-shadow: 0 0 18px rgba(248,195,21,.45), inset 0 1px 0 rgba(255,255,255,.6);
}
#appside .s-item.active svg { color: #1a1205; }
#appside .s-wallet {
  left: 24px; top: 632px; width: 217px; height: 53px; border-radius: 14px; border: 0; cursor: pointer;
  background: linear-gradient(180deg,#9442ff 0%,#7424ef 100%);
  box-shadow: 0 0 18px rgba(123,47,247,.55), inset 0 1px 0 rgba(255,255,255,.35);
  display: flex; align-items: center; padding-left: 28px; gap: 16px;
  font: 500 18.5px "Roboto Condensed", Arial, sans-serif; color: #fff;
}
#appside .s-wallet svg { width: 30px; height: 30px; flex: none; }
#appside .s-wallet:hover { filter: brightness(1.12); }
#appside .s-city { left: 0; top: 694px; width: 262px; height: 247px; background: url("../img/sidebar-city.webp?v=2") center bottom/cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom,transparent 0%,#000 22%); mask-image: linear-gradient(to bottom,transparent 0%,#000 22%); }
body.with-side { padding-left: var(--side-w); }

/* sub-opciones de Staking dentro de su vista */
.bv-stk-tabs { margin: 0 auto 22px; }
.bv-stk-tabs button.active { background: linear-gradient(180deg,#ffe055,#f3b60c) !important; color: #1a1205 !important; }

/* ============ TOPBAR ============ */
#topbar {
  background: rgba(10, 6, 28, .82);
  border-bottom: 1px solid rgba(140,110,230,.2);
}
body.with-side #topbar .logo { display: none; }
body.with-side #topbar #btn-connect { display: none; } /* conectar está en la sidebar */
.nav-btn { font: 500 15.5px var(--sans); color: #e9e6f5; border-radius: 12px; }
.nav-btn:hover { color: #ffd84a; background: rgba(150,110,255,.08); }
.nav-btn.active {
  color: #1a1205; background: linear-gradient(180deg,#ffe055,#f3b60c);
  box-shadow: 0 0 14px rgba(248,195,21,.4);
}
.nav-dd-menu, .net-menu, .tv-dd-menu, .listbox {
  background: #140d30 !important; border: 1px solid var(--line) !important;
}
.nav-sub:hover, .net-menu button:hover { background: rgba(150,110,255,.14) !important; color: #ffd84a !important; }
.lang-btn.active, .lang-btn[aria-pressed="true"] { color: #1a1205 !important; background: #f8c315 !important; }
.net-select { background: rgba(32,26,62,.8) !important; border: 1px solid var(--line) !important; border-radius: 12px !important; }
.wallet-chip { background: rgba(123,47,247,.18) !important; border: 1px solid rgba(150,110,255,.5) !important; border-radius: 12px !important; }
.wallet-dot { background: #22e07a; }

/* ============ TICKER ============ */
.ticker { background: rgba(13,8,34,.8); border-bottom: 1px solid rgba(140,110,230,.18); }
.tick-item { font-family: var(--sans); font-size: 14px; }
.tick-item:hover b { color: #ffd84a; }

/* ============ BOTONES ============ */
.btn { font-family: var(--sans); font-weight: 600; font-size: 15px; border-radius: 14px; }
/* principal = morado (como "Launch Token") */
.btn-primary {
  background: linear-gradient(180deg, #9a4bff 0%, #7224ef 100%);
  color: #fff; border: 1px solid rgba(170,120,255,.6); text-shadow: none;
  box-shadow: 0 0 18px rgba(123,47,247,.55), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { box-shadow: 0 0 26px rgba(123,47,247,.8), inset 0 1px 0 rgba(255,255,255,.45); }
/* secundario = contorno dorado (como "View Guide") */
.btn-glass {
  background: rgba(20,12,10,.55); border: 2px solid #f8c315; color: #f8c315;
  box-shadow: none; backdrop-filter: none;
}
.btn-glass:hover { box-shadow: 0 0 18px rgba(248,195,21,.4); }
.btn-ghost {
  background: rgba(58,52,98,.75); border: 1px solid rgba(150,110,255,.3); color: #fff;
}
/* dorado (como "Upload Logo" / "Start Staking") */
.btn-warn, .pool-buy, .stk-tabs button.active, .cat-chip.active {
  background: linear-gradient(180deg,#ffe055,#f3b60c) !important;
  color: #1a1205 !important; border-color: rgba(248,195,21,.8) !important;
  box-shadow: 0 0 14px rgba(248,195,21,.4) !important; text-shadow: none !important;
}
.pool-buy { font: 600 15px var(--sans); border-radius: 12px; }
#btn-trade.is-buy {
  background: linear-gradient(180deg,#3cf08f,#16b85e) !important; color: #06210f;
  border: 1px solid rgba(34,224,122,.7); box-shadow: 0 0 18px rgba(34,224,122,.45);
}

/* ============ INPUTS ============ */
.input, .amount-box, .select {
  background-color: #3a3462; border: 1px solid transparent; border-radius: 12px;
  color: #fff; font-family: var(--sans); font-size: 16px; box-shadow: none;
}
.input::placeholder { color: #bdb7d8; opacity: 1; }
.input:focus, .amount-box:focus-within { border-color: rgba(248,195,21,.6); box-shadow: 0 0 0 2px rgba(248,195,21,.25); }
.amount-box.out { background: rgba(32,26,62,.72); }
.select option { background: #1a1238; color: #fff; }
.field-label { font: 500 15px var(--sans); color: #fff; letter-spacing: 0; }
input[type="range"] { accent-color: #f8c315; }

/* ============ PANELES / TARJETAS ============ */
.panel, .pool-card, .stat, .kpi, .modal, .toast, .stk-card, .stk-mcard, .admin-card,
.preview-card, .stk-box, .stk-summary, .stk-pos, .ref-hero, .newsletter, .trade-row,
.swap-panel, .chart-panel, .form-panel, .wizard-panel {
  background: rgba(13,8,34,.86);
  border: 1.5px solid rgba(150,110,255,.28);
  box-shadow: 0 0 22px rgba(90,50,200,.18), inset 0 0 30px rgba(80,40,180,.08);
}
.panel, .pool-card, .modal, .stk-card, .admin-card { border-radius: 20px; }
.stat, .kpi, .stk-box { border-radius: 14px; }
.pool-card:hover, .stat:hover {
  border-color: rgba(248,195,21,.55);
  box-shadow: 0 0 26px rgba(123,47,247,.35), 0 0 14px rgba(248,195,21,.18);
}
.pool-card::before { background: radial-gradient(420px circle at 50% 0%, rgba(150,110,255,.16), transparent 60%); }
.pool-cover::after { background: linear-gradient(180deg, transparent 40%, rgba(13,8,34,.9)); }
.pool-top.over-cover .pool-avatar { border-color: #0d0828; }
.pool-avatar, .token-avatar, .stk-avatar {
  background: radial-gradient(circle at 45% 35%,#d9d3f5,#a79bdc 70%,#8e81c8) !important; color: #2a1d6a !important;
}
.pool-name, .panel-head h2, .preview-card h3, .stk-title { font-family: var(--sans); font-weight: 600; }
.pool-name { font-size: 19px; }
.pool-state { border-radius: 10px; }
.pool-progress, .progressbar, .stk-bar { background: #2f2a52 !important; }
.pool-progress i, .progressbar-fill { background: linear-gradient(90deg,#f7b80c,#ffd84a) !important; box-shadow: 0 0 8px rgba(248,195,21,.6); }
.pool-curve stop:first-child { stop-color: #22e07a; }
.cat-chip { background: rgba(58,52,98,.6); border-color: rgba(150,110,255,.3); color: #e9e6f5; font-family: var(--sans); }
.cat-chip:hover { border-color: #f8c315; color: #ffd84a; }
.stat b, .kpi b { font-family: var(--sans); font-weight: 700; }
.stat b { font-size: 22px; }
.stat span, .kpi span { font-size: 14px; }
.panel-head h2 { font-size: 22px; }
.form-panel h2, .admin-card h3 { color: #ffd84a; font-family: var(--sans); font-size: 18px; }
.up, .holder-pct.up { color: #22e07a; }
.down { color: #ff5c7a; }
a { color: #a78bff; }
.muted { color: var(--muted); }

/* pestañas */
.stk-tabs { background: rgba(20,13,48,.9); border: 1px solid var(--line); border-radius: 14px; }
.stk-tabs button { font: 500 15.5px var(--sans); color: #e9e6f5; border-radius: 11px; }
.swap-tab { font-family: var(--sans); font-size: 16px; }
.swap-tab.active { box-shadow: inset 0 -3px 0 #f8c315, inset 0 2px 10px rgba(248,195,21,.12); }
.stk-step.active .stk-dot, .step-item.active .step-num, .stk-dot.on, .step-num.on {
  background: radial-gradient(circle at 40% 35%,#ffe46b,#f2b40a) !important; color: #1a1205 !important;
}

/* ============ CABECERAS / TÍTULOS ============ */
.section-head h1, .hero-title, .stk-big {
  font-family: "Poppins", sans-serif; font-style: italic; font-weight: 900; letter-spacing: -1.5px;
  background: linear-gradient(180deg,#fff27a 0%,#ffd21e 40%,#f3a90a 75%,#d98a00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 3px 5px rgba(0,0,0,.55));
}
.hero-title .grad-text, .hero-title .grad-text-2 { font-family: inherit; font-weight: inherit; }
.section-head p, .hero-sub { font-family: var(--sans); font-size: 17px; color: #e6e2f3; }
.hero-kicker { font-family: var(--sans); color: #ffd84a; letter-spacing: 2px; }

/* hero de Explorar con el fondo del home */
.hero { min-height: 380px; }
.bv-hero-bg {
  background: url("../img/home-bg.webp?v=2") center/cover no-repeat,
    radial-gradient(ellipse at 70% 30%, #3a1680 0%, rgba(30,10,70,.5) 40%, transparent 70%);
}
.hero::before { background: linear-gradient(90deg, rgba(7,4,26,.85), rgba(7,4,26,.2) 70%) !important; }
/* la sidebar ocupa la izquierda: el hero ya no rompe a todo el ancho de la ventana */
body.with-side .hero { width: 100%; margin-left: 0; border-radius: 20px; }

/* trading (gráfico) */
.tv-panel { background: rgba(13,8,34,.92) !important; border-color: rgba(150,110,255,.28) !important; border-radius: 16px; }

/* toasts / modales */
#modal-root:not(:empty) { background: rgba(7,4,26,.72); }
.modal { border-color: rgba(150,110,255,.45); }
.wallet-row { background: rgba(58,52,98,.55) !important; border-color: rgba(150,110,255,.28) !important; border-radius: 14px !important; }
.wallet-row:hover { border-color: #f8c315 !important; }

/* footer */
footer { background: rgba(10,6,28,.85) !important; border-top: 1px solid rgba(140,110,230,.2) !important; }

.bv-footer-logo { font-family: "Poppins", sans-serif; font-style: italic; font-weight: 900; font-size: 30px; letter-spacing: -1.2px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.7)); }
.footer-soc { background: rgba(58,52,98,.6) !important; border-color: rgba(150,110,255,.3) !important; }
.footer-col h4, .footer-col b { color: #ffd84a; }

/* solo inglés: selector de idioma oculto */
#lang-switch { display: none !important; }

/* menú superior sin duplicados: la navegación está en la sidebar
   (Fábrica / Admin siguen apareciendo solo para la wallet administradora) */
#nav .nav-btn[data-nav="explore"], #nav .nav-btn[data-nav="create"], #nav .nav-btn[data-nav="trade"], #nav-staking-dd { display: none !important; }
html.home-on, body.home-on { overflow: hidden !important; }

/* Explorar: sin repetir el banner del home (imagen + título + botones); quedan las estadísticas y referidos */
#view-explore .hero-bg-img, #view-explore .hero-row { display: none !important; }
#view-explore .hero { min-height: 0; padding: 6px 0 0; background: none; }
#view-explore .hero::before { display: none; }
#view-explore .explore-panel { margin-top: 18px; }

/* logo del footer junto: BNBVillage.fun */
.bv-footer-logo { gap: 0 !important; }

/* bloque informativo (SEO) del mercado oculto */
.seo-block { display: none !important; }

/* wordmark BNBVillage.fun en texto (sustituye la imagen vieja) */
.bv-word { font-family: "Poppins", sans-serif; font-style: italic; font-weight: 900; letter-spacing: -.5px; color: #fff; white-space: nowrap; }
.bv-word .bv-g { color: #f8c315; }
.footer-soc.tg { color: #29b6f6; }

/* fondo de la sidebar cuando la ventana es más alta que el diseño */
#appside { background: #090519; border-right: 1px solid rgba(140,110,230,.18); }

/* ===== submenú de Staking en la sidebar ===== */
#appside .s-caret { width: 18px !important; height: 18px !important; margin-left: auto; margin-right: 14px; transition: transform .2s; }
#appside .s-has-sub[aria-expanded="true"] .s-caret { transform: rotate(180deg); }
#appside .s-sub {
  left: 40px; width: 201px; display: flex; flex-direction: column; gap: 2px;
  max-height: 0; overflow: hidden; opacity: 0; transition: max-height .25s ease, opacity .2s ease;
  border-left: 2px solid rgba(248,195,21,.35); padding-left: 10px;
}
#appside.stk-open .s-sub { max-height: 170px; opacity: 1; }
#appside .s-subitem {
  height: 34px; border: 0; background: none; cursor: pointer; text-align: left;
  font: 500 17px "Roboto Condensed", Arial, sans-serif; color: #d9d3f5; padding: 0 10px; border-radius: 10px;
}
#appside .s-subitem:hover { color: #ffd84a; background: rgba(150,110,255,.1); }
#appside .s-subitem.active { color: #ffd84a; background: rgba(248,195,21,.12); font-weight: 600; }
#appside .s-shift { transition: transform .25s ease; }
#appside.stk-open .s-shift { transform: translateY(var(--stk-sub-h, 112px)); }
/* las pestañas dentro de la vista ya no hacen falta: están en la sidebar */
.bv-stk-tabs { display: none !important; }

/* ===== redes sociales flotantes (arriba a la derecha) ===== */
#bv-socials {
  position: fixed; top: 16px; right: 22px; z-index: 700;
  display: flex; gap: 10px; padding: 7px;
  border-radius: 999px;
  background: rgba(13, 8, 34, .55);
  border: 1px solid rgba(150, 110, 255, .35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45), 0 0 18px rgba(123, 47, 247, .25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: bvFloat 4.5s ease-in-out infinite;
}
/* en las demás pantallas, a la izquierda del selector de red */
html:not(.home-on) #bv-socials { top: 9px; right: 168px; }
.bv-soc {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, rgba(58, 52, 98, .95), rgba(26, 18, 60, .95));
  border: 1.5px solid rgba(248, 195, 21, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 10px rgba(248, 195, 21, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.bv-soc svg { width: 19px; height: 19px; }
.bv-soc:hover { transform: translateY(-3px) scale(1.06); }
.bv-soc.x:hover { background: #000; color: #fff; border-color: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, .45); }
.bv-soc.tg:hover, .bv-soc.tgg:hover { background: linear-gradient(180deg, #37aee2, #1e96c8); color: #fff; border-color: #8fd8ff; box-shadow: 0 0 18px rgba(55, 174, 226, .65); }
@keyframes bvFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { #bv-socials { animation: none; } }
@media (max-width: 700px) {
  #bv-socials { gap: 6px; padding: 5px; right: 10px; top: 10px; }
  html:not(.home-on) #bv-socials { top: 64px; right: 10px; }
  .bv-soc { width: 34px; height: 34px; }
  .bv-soc svg { width: 16px; height: 16px; }
}

/* =====================================================================
   RESPONSIVE — móvil / tablet vertical (html.bv-mobile lo pone el script
   de arranque: ancho < 900px o pantalla más alta que ancha)
   ===================================================================== */
#bv-mtop, #bv-backdrop { display: none; }

html.bv-mobile body.with-side { padding-left: 0; padding-top: 58px; }

/* ---- barra superior ---- */
html.bv-mobile #bv-mtop {
  display: flex; align-items: center; gap: 10px;
  position: fixed; left: 0; right: 0; top: 0; height: 58px; z-index: 650;
  padding: 0 12px;
  background: rgba(10, 6, 28, .92);
  border-bottom: 1px solid rgba(140, 110, 230, .25);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
#bv-burger {
  width: 42px; height: 42px; flex: none; border-radius: 12px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: rgba(58, 52, 98, .8); border: 1px solid rgba(248, 195, 21, .45);
}
#bv-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #ffd84a; transition: transform .2s, opacity .2s; }
html.bv-drawer #bv-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
html.bv-drawer #bv-burger span:nth-child(2) { opacity: 0; }
html.bv-drawer #bv-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.bv-mlogo { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.bv-mlogo img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.bv-mlogo .bv-word { font-size: 19px; }

/* redes: dentro de la barra superior */
html.bv-mobile #bv-socials, html.bv-mobile:not(.home-on) #bv-socials {
  top: 9px; right: 10px; z-index: 660; padding: 4px; gap: 5px; animation: none;
}
html.bv-mobile .bv-soc { width: 32px; height: 32px; }
html.bv-mobile .bv-soc svg { width: 15px; height: 15px; }
@media (max-width: 380px) { .bv-mlogo .bv-word { display: none; } }

/* ---- menú lateral → cajón deslizable ---- */
html.bv-mobile #appside {
  z-index: 700; transform: translateX(-102%); transition: transform .25s ease;
  box-shadow: 8px 0 40px rgba(0, 0, 0, .6);
}
html.bv-mobile.bv-drawer #appside { transform: translateX(0); }
html.bv-mobile.bv-drawer #bv-backdrop {
  display: block; position: fixed; inset: 0; z-index: 690;
  background: rgba(4, 2, 14, .6); backdrop-filter: blur(2px);
}

/* ---- topbar de las vistas (selector de red) debajo de la barra móvil ---- */
html.bv-mobile #topbar { top: 58px; padding: 8px 12px; }

/* ---- HOME en columna ---- */
html.bv-mobile #home {
  top: 58px; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse at 80% 0%, #3a1680 0%, rgba(30,10,70,.5) 35%, transparent 65%),
    #07041a;
}
html.bv-mobile #home .h-stage {
  position: relative; transform: none !important; width: auto; height: auto;
  max-width: 760px; margin: 0 auto; padding: 12px 12px 28px;
  display: flex; flex-direction: column; gap: 14px; overflow: visible; background: none;
}
html.bv-mobile #home .h-stage > .h-abs { position: relative; left: auto !important; top: auto !important; right: auto; width: auto; height: auto; }

/* portada: imagen + título */
html.bv-mobile #home .h-hero {
  height: 210px; border-radius: 18px; overflow: hidden;
  background: url("../img/home-bg-m.webp?v=2") 70% 30%/cover no-repeat;
  -webkit-mask-image: none; mask-image: none;
  box-shadow: 0 0 22px rgba(90, 50, 200, .25);
}
html.bv-mobile #home .h-title {
  margin-top: -86px; padding: 0 14px; font-size: clamp(36px, 11vw, 56px); letter-spacing: -1.5px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.9));
}
html.bv-mobile #home .h-tagline { width: auto; font-size: clamp(17px, 5vw, 24px); line-height: 1.3; text-align: left; padding: 6px 4px 0; }
html.bv-mobile #home .h-pills { height: auto; flex-wrap: wrap; justify-content: center; padding: 6px 4px; border-radius: 14px; }
html.bv-mobile #home .h-pill { height: 40px; font-size: 14.5px; padding: 0 10px; }
html.bv-mobile #home .h-pill + .h-pill { border-left: 0; }
html.bv-mobile #home .h-pill svg { width: 22px; height: 22px; }

/* paneles */
html.bv-mobile #home .h-panel { padding: 16px; }
html.bv-mobile #home .h-panel .h-abs { position: static !important; }

/* Create Your Meme Coin */
html.bv-mobile #home .h-create { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 4px; align-items: center; }
html.bv-mobile #home .h-rocket { width: 44px; height: 44px; grid-row: span 2; }
html.bv-mobile #home .h-create h2 { font-size: 21px; line-height: 1.2; }
html.bv-mobile #home .h-sub { font-size: 13.5px; }
html.bv-mobile #home .h-btn-guide { grid-column: 1 / -1; width: auto; height: 42px; margin-top: 8px; }
html.bv-mobile #home .h-track, html.bv-mobile #home .h-track-fill,
html.bv-mobile #home .h-step, html.bv-mobile #home .h-step-lbl { display: none; }
html.bv-mobile #home .h-form {
  grid-column: 1 / -1; width: auto; height: auto; margin-top: 10px; padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px;
}
html.bv-mobile #home .h-upload {
  grid-column: 1 / -1; width: auto; height: auto; padding: 10px;
  display: flex; align-items: center; gap: 14px;
}
html.bv-mobile #home .h-avatar { width: 64px; height: 64px; flex: none; }
html.bv-mobile #home .h-avatar svg { width: 34px; height: 34px; }
html.bv-mobile #home .h-btn-upload { width: auto; height: 42px; padding: 0 22px; }
html.bv-mobile #home .h-lbl { font-size: 14.5px; margin-top: 4px; }
html.bv-mobile #home .h-input { width: 100% !important; height: 44px; font-size: 16px; }
html.bv-mobile #home label[for="h-name"]  { grid-column: 1; grid-row: 2; }
html.bv-mobile #home #h-name              { grid-column: 1; grid-row: 3; }
html.bv-mobile #home label[for="h-symbol"]{ grid-column: 2; grid-row: 2; }
html.bv-mobile #home #h-symbol            { grid-column: 2; grid-row: 3; }
html.bv-mobile #home label[for="h-supply"]{ grid-column: 1; grid-row: 4; }
html.bv-mobile #home #h-supply            { grid-column: 1; grid-row: 5; }
html.bv-mobile #home .h-form > .h-lbl:not(label) { grid-column: 2; grid-row: 4; }
html.bv-mobile #home .h-fee-val           { grid-column: 2; grid-row: 5; align-self: center; font-size: 19px; }
html.bv-mobile #home .h-btn-launch        { grid-column: 1 / -1; grid-row: 6; width: 100% !important; height: 52px; margin-top: 8px; }

/* Hot Launches / Trending */
html.bv-mobile #home .h-hot, html.bv-mobile #home .h-trend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
html.bv-mobile #home .h-hot .h-ph-title, html.bv-mobile #home .h-trend .h-ph-title { flex: 1; font-size: 20px !important; }
html.bv-mobile #home .h-hot > .h-sep, html.bv-mobile #home .h-trend > .h-sep { width: 100%; }
html.bv-mobile #h-hot-list, html.bv-mobile #h-trend-list { width: 100%; display: flex; flex-direction: column; }
html.bv-mobile #home .h-empty { padding: 26px 0; }
.h-mrow {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px; cursor: pointer;
  border-bottom: 1px solid rgba(150, 120, 255, .14); border-radius: 10px;
}
.h-mrow:last-child { border-bottom: 0; }
.h-mrow:active, .h-mrow:hover { background: rgba(150, 110, 255, .08); }
.h-mrow .h-medal, .h-mrow .h-rank { position: static; flex: none; }
.h-mrow .h-medal { width: 28px; height: 36px; }
.h-mrow .h-tok { position: static; flex: none; }
.h-mrow .h-mname { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.h-mrow .h-mname b { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-mrow .h-mname span { font-size: 13.5px; color: #e2deef; }
.h-mrow .h-pct { position: static; font-size: 18px; }
.h-mrow svg.h-mspark { flex: none; }

/* Stake & Earn */
html.bv-mobile #home .h-stake {
  min-height: 230px; padding: 20px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  background: linear-gradient(180deg, rgba(13,8,34,.05) 0%, rgba(13,8,34,.82) 62%),
              url("../img/stake.webp?v=2") 20% center/cover no-repeat;
}
html.bv-mobile #home .h-stake > * { position: static !important; width: auto !important; }
html.bv-mobile #home .h-stake h3 { font-size: 32px; }
html.bv-mobile #home .h-stake p { font-size: 18px; line-height: 1.3; }
html.bv-mobile #home .h-btn-stake { height: 48px; width: 100% !important; margin-top: 6px; font-size: 19px; }

/* tablet vertical (≥ 640px): listas lado a lado */
@media (min-width: 640px) {
  html.bv-mobile #home .h-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  html.bv-mobile #home .h-stage > .h-hero,
  html.bv-mobile #home .h-stage > .h-title,
  html.bv-mobile #home .h-stage > .h-tagline,
  html.bv-mobile #home .h-stage > .h-pills,
  html.bv-mobile #home .h-stage > .h-create,
  html.bv-mobile #home .h-stage > .h-stake { grid-column: 1 / -1; }
  html.bv-mobile #home .h-hero { height: 300px; }
  html.bv-mobile #home .h-title { margin-top: -110px; }
}

/* ---- vistas de la app en móvil ---- */
html.bv-mobile main { padding: 16px 12px 48px; }
html.bv-mobile .section-head h1 { font-size: 30px; }

@media (max-width: 480px) { .h-mrow svg.h-abs:not(.h-medal) { display: none; } }

/* --- ajustes responsive (portada visible + sin desbordes laterales) --- */
html.bv-mobile, html.bv-mobile body { overflow-x: hidden; }
html.bv-mobile #home .h-stage > * { min-width: 0; }
html.bv-mobile #home .h-stage > .h-hero { height: 210px !important; }
html.bv-mobile #home .h-stage > .h-title { z-index: 1; }
html.bv-mobile #home .h-create { grid-template-columns: 44px minmax(0, 1fr); }
html.bv-mobile #home .h-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
html.bv-mobile #home .h-sub { white-space: normal; }
@media (min-width: 640px) {
  html.bv-mobile #home .h-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html.bv-mobile #home .h-stage > .h-hero { height: 300px !important; }
}

/* móvil: la barra superior vieja (solo selector de red, hay una única red) no se muestra */
html.bv-mobile #topbar { display: none !important; }
