
/* Core layout + dashboard styles for Telegram mini-app */

body{
  background:#0b0f1a;
  color:#e9eef6;
  margin:0;
  padding:0;
}

/* Top app header: dark solid background so nothing shows behind pills */
.vaultenex-navbar-tg{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:4000;
  background:linear-gradient(180deg,#05070b 0%,#05070b 60%,#0b0f1a 100%);
}

/* Bottom navigation bar */
.vx-bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:env(safe-area-inset-bottom,0);
  z-index:3900;
}

/* Main scroll area; everything between header and bottom nav lives here */
.vx-main{
  position:relative;
  z-index:50;
  padding-top:96px;      /* clears header + orange pills */
  padding-bottom:104px;  /* clears bottom nav */
}

/* General container to center dashboard content */
.vx-container{
  max-width:1100px;
  margin:0 auto;
  padding:10px 12px 24px;
}

/* DASHBOARD CARD + STATS ----------------------------------------- */

.account-shell{
  margin-top:4px;
  background:radial-gradient(130% 220% at 15% 0%, rgba(255,174,0,0.20), transparent 55%) #100b08;
  border-radius:24px;
  padding:16px 16px 18px;
  box-shadow:0 14px 40px rgba(0,0,0,0.55);
}

.account-shell .header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.account-title{
  font-size:1.05rem;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
}

.account-title img{
  width:36px;
  height:36px;
  border-radius:999px;
  object-fit:cover;
}

/* Chip row: wallet, points, lifetime, VX */
.top-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
  margin-bottom:10px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:.82rem;
  background:rgba(0,0,0,0.35);
  border:1px solid rgba(255,255,255,0.16);
  color:#ffeedd;
  white-space:nowrap;
}

.chip i{
  font-size:.9rem;
}

.chip-wallet{
  background:rgba(255,174,0,0.16);
  border-color:rgba(255,174,0,0.42);
}

.chip-wallet .amt{
  font-weight:700;
}

.chip-vx{
  background:rgba(0,243,255,0.16);
  border-color:rgba(0,186,255,0.45);
}

/* Miner visual + running balance */
.miner-display{
  margin:14px 0 10px;
  text-align:center;
}

.balance-box{
  margin-top:6px;
  font-size:1.2rem;
  font-weight:700;
}

/* Stats grid row */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:10px 0 4px;
}

.stat-box{
  padding:8px 10px;
  border-radius:14px;
  background:rgba(0,0,0,0.45);
  border:1px solid rgba(255,255,255,0.14);
  text-align:center;
  font-size:.8rem;
}

.stat-box h4{
  margin:0 0 4px;
  font-size:1rem;
}

/* Collect Yield button row */
.action-bar{
  margin-top:10px;
}

.action-buttons{
  display:flex;
  justify-content:center;
}

.claim-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 16px;
  border-radius:999px;
  border:none;
  background:linear-gradient(135deg,#ffae00 0%,#ff6a00 100%);
  color:#0b0f1a;
  font-weight:700;
}

/* VX INFO TABS --------------------------------------------------- */

.vx-token-card{
  margin-top:14px;
  padding:12px 12px 14px;
  border-radius:20px;
  background:rgba(0,0,0,0.45);
  border:1px solid rgba(255,255,255,0.14);
}

.vx-token-card h3{
  margin:0 0 6px;
  font-size:1rem;
}

.vx-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
  margin-bottom:8px;
}

.vx-tab{
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.03);
  padding:4px 10px;
  font-size:.78rem;
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
}

.vx-tab[aria-selected="true"],
.vx-tab.active{
  background:linear-gradient(135deg,#ffae00 0%,#ff6a00 100%);
  color:#0b0f1a;
  border-color:rgba(255,174,0,0.7);
}

.vx-pane{
  display:none;
  font-size:.84rem;
  line-height:1.5;
  margin-top:4px;
}

.vx-pane.active{
  display:block;
}

/* SAFEGUARDS: make sure critical dashboard bits are never hidden */
.top-chips,
.stats-grid,
.vx-token-card,
.vx-pane{
  opacity:1 !important;
  visibility:visible !important;
}

/* FOOTER --------------------------------------------------------- */

.vaultenex-footer{
  padding-bottom:96px; /* work together with .vx-main bottom padding */
}

/* Back-to-top orb: keep above nav, not overlapping buttons */
#vx-backtop{
  bottom:80px;
}
