:root{
  --bg1:#0a0a1a; --bg2:#101033; --bg3:#0b223f;
      --accent:#7c4dff; --accent2:#00ffd5;
      --text:#e8e8ff; --muted:#9aa0b8;
      --glass:rgba(255,255,255,.08);
  --card: rgba(255,255,255,0.04);
}
*{box-sizing:border-box}
html,body{margin:0; font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;}
body{background:radial-gradient(1200px 800px at 10% 10%, rgba(124,77,255,.20), transparent 60%),
                  radial-gradient(1000px 700px at 90% 20%, rgba(0,255,213,.18), transparent 60%),
                  linear-gradient(135deg, var(--bg1), var(--bg2) 40%, var(--bg3)); color:#eaf2ff; -webkit-font-smoothing:antialiased; padding-bottom:120px;}

.app{max-width:420px; margin:12px auto;}

/* TOP */
.topbar-wrapper {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;  /* same as .app */
  z-index: 999;
  background: linear-gradient(180deg, var(--bg2), #071021);
  padding-bottom: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.topbar {
  display: flex;
  justify-content: space-between; /* 👈 left-right alignment */
  align-items: center;
  padding: 12px 12px 12px;
}

.gid {
  font-size: 12px;
  text-align: right;   /* 👈 right align text inside */
  color: #fff;
}

.gid .muted {
  display: block;
  font-size: 11px;
  color: #aaa;
}

/* HERO / portfolio card */
.hero{padding:40px 12px}

.portfolio-card {
	backdrop-filter: blur(14px) saturate(1.2);
  background: linear-gradient(35deg, #152048, rgba(255, 255, 255, .03));
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .12);
  border-radius: 54px;
  padding: 75px 30px 40px 30px;
  color: #fff;
}

.portfolio-card h3 {
  margin: 0 0 10px;
  color: #aaa;
}
.glow {
    font-family: "Space Grotesk";
    font-weight: 900;
    background: linear-gradient(92deg, #fff, #c7baff 25%, #9ae7ff 60%, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(124, 77, 255, .25);
    margin: 10px 0;
}
.balances {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.value {
  font-size: 20px;
  font-weight: 600;
  color: #7fffa5;
}

.usd {
  font-size: 12px;
  color: #bbb;
}

.locked {
  font-size: 12px;
  color: #ffc107;
}
.actions {
  display: grid;
  content-visibility: auto;
  grid-template-columns: repeat(3, 1fr); /* 3 buttons ek row me */
      gap: 30px;
    margin: -40px 60px 10px 60px;
}

.action {
  aspect-ratio: 1 / 1; /* ✅ har button perfect square */
  background: linear-gradient(45deg, #0d33539c, #75bdf845);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35),
              inset 0 0 0 1px rgba(255, 255, 255, .12);
  border-radius: 10px;
  display: flex;                /* center content */
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}

.action:hover {
  background: rgba(0,245,160,0.1);
}

.label {
  font-size: 14px;
  color: #ddd;
}

/* Tabs */
.tabbar {
  display: flex;
  gap: 8px;
  padding: 1px 1px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.tab {
  text-align: center;
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.03);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none; /* link underline hatane ke liye */
  transition: 0.2s;
}

.tab:hover {
  background: rgba(255,255,255,0.05);
}

.tab.active {
  text-align: center;
  background: #171d3f;
  color: #e8faff;
}

/* CONTENT area */
.content{padding:0 12px 60px}
.section-title{margin:12px 0 6px;color:#cfeaff;font-weight:600}

/* generic card */
.card{background:var(--card); border-radius:12px;padding:12px;margin-bottom:12px;border:1px solid rgba(255,255,255,0.03);box-shadow:0 8px 20px rgba(2,8,20,0.5)}
.card.wide{padding:16px}
.jicard{background:rgb(32 201 151); border-radius:12px;padding:12px;margin-bottom:12px;border:1px solid rgba(255,255,255,0.03);box-shadow:0 8px 20px rgba(2,8,20,0.5)}


/* controls */
.controls{margin-bottom:8px}
.btn{padding:10px 14px;border-radius:10px;border:none;cursor:pointer;font-weight:700;box-shadow:0 6px 18px rgba(2,10,20,0.6)}
.btn-green{background:#00a859;color:white}
.btn-red{background:#ed3237;color:white}
.btn-orange{background:#f58634;color:white}
.btn-gradient{background:linear-gradient(90deg,#7b5cff,#00d9f5); color:#031226; border-radius:14px; padding:12px 18px}
.btn.big{width:50%;padding:14px;border-radius:14px}
.btn-buy{background:#00a859;color:white}
.btn-sell{background:#ed3237;color:white}

/* Order card */
.order-card{display:flex;justify-content:space-between;align-items:center;padding:12px;margin-bottom:8px}
.order-left{display:flex;gap:12px;align-items:center}
.dot{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:700}
.dot.red{background: #ed3237; color: white;}
.dot.green{background:#00a859; color:white}
.dot.small{width:34px;height:34px;border-radius:8px;font-size:14px}

/* segmented */
.segmented{border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .12);display:flex;gap:8px;margin:8px 0}
.seg{flex:1;padding:8px;border-radius:10px;background:transparent;color:var(--muted);border:1px solid rgba(255,255,255,0.02)}
.seg.selected{background:#171d3f; color:#dffaff}

/* list items */
.list{margin-top:8px}
.list-item{display:flex;justify-content:space-between;align-items:center;padding:12px;background:rgba(255,255,255,0.02);border-radius:12px;margin-bottom:8px;border:1px solid rgba(255,255,255,0.02)}
.li-left{display:flex;gap:12px;align-items:center}
.li-amount{font-weight:700;color:#def5ff}
.muted{color:var(--muted)}
.small{color:rgba(255,255,255,0.55)}

/* mining stuff */
.link-row{display:flex;gap:8px}
.link-row input{flex:1;padding:10px;border-radius:10px;border:none;background:rgba(255,255,255,0.03);color:#dfefff}
.icon-btn{padding:8px;border-radius:8px;background:rgba(255,255,255,0.03);border:none}
.lp-stats{display:flex;gap:18px;margin-top:12px;justify-content:space-around}
.stat.small{text-align:center}
.stat-value{font-weight:800;margin-top:6px;color:#e6fbff}
.progress-box{margin-top:12px}
.big-arc{
    background: linear-gradient(90deg, #6b4bff, #00d9f5);
    border-radius: 0 0 40px 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	margin-top: -20px;
	}
.arc-inner{font-weight:800;font-size:22px;color:#dffaff;text-align:center;}
.rewards.two{display:flex;justify-content:space-between;padding:10px 12px;border-top:1px solid rgba(255,255,255,0.02)}

/* jackpot row */
.jackpot-row{margin-top:8px}
.btn.small{padding:8px 10px; background:#0c1f3d; color:white;}
.jackpot-tag{display:flex;justify-content:space-between;align-items:center;margin-top:12px;background:linear-gradient(90deg, #7966bf, #3e94dcc2);padding:8px;border-radius:0 25px;border:1px solid rgba(255,255,255,0.03)}

/* giveaway */
.giveaway-box{backdrop-filter: blur(14px) saturate(1.2);
    background: linear-gradient(35deg, #152048, rgba(255, 255, 255, .03));
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .12);
	padding:18px;border-radius:14px;margin:12px 0;text-align:center;border:1px solid rgba(255,255,255,0.03)}
.give-amount{font-size:26px;font-weight:800;color:#cfeaff}
.give-split{display:flex;justify-content:space-between;margin:18px 0}

/* table */
.table-container {
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}
.team-table{width:100%;border-collapse:collapse}
.team-table th, .team-table td{padding:10px;border-bottom:1px solid rgba(255,255,255,0.03);text-align:left}
.team-table th{color:var(--muted);background:rgba(255,255,255,0.02)}
.green{color:#7ef0b9}
.orange{color:#ffcd79}
.red{color:#ff8b8b}

/* bottom nav */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1px;
  background: linear-gradient(90deg,#6b4bff,#00d9f5);
  padding: 10px 20px; /* thoda slim look */
  border-radius: 40px 40px 0 0;
  display: flex;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 999;
}

.nav-btn {
  background: transparent;
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none; /* underline hatao */
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.15);
}

.nav-btn.active {
  background: rgba(255,255,255,0.95);
  color: #071021;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
}
/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  margin: 15px 0;
  padding: 8px 12px;
  background: #0a1a2f;
  border-radius: 6px;
  color: #0af;
  overflow-x: auto;
  white-space: nowrap;
}

.breadcrumb a {
  color: #0af;
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  color: #fff;
  font-weight: 600;
}
/* Overlay */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Popup Box */
.popup-box {
  background: radial-gradient(1200px 800px at 10% 10%, rgba(124,77,255,.20), transparent 60%),
                  radial-gradient(1000px 700px at 90% 20%, rgba(0,255,213,.18), transparent 60%),
                  linear-gradient(135deg, var(--bg1), var(--bg2) 40%, var(--bg3));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 90%;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: popupIn 0.3s ease;
  overflow-y: auto; /* ✅ content scrollable */
}

/* Fullscreen on mobile */
@media (max-width: 768px) {
  .popup-box {
    width: 100%;
    max-width: none;
    max-height: 100%;
    overflow-y: auto; /* ✅ scrollable content */
  }
}
@keyframes popupIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Title */
.popup-box h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
  color: aliceblue;
}

/* Input */
.popup-box input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  margin-bottom: 16px;
}

.popup-box option {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgb(22 38 58);
  color: #fff;
  margin-bottom: 16px;
}


/* Input */
.popup-box select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  margin-bottom: 16px;
}

/* Buttons */
.popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-cancel {
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
}

.btn-submit {
  background: linear-gradient(90deg,#7b5cff,#00d9f5);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  color: #071021;
  font-weight: bold;
  cursor: pointer;
}

@keyframes popupIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.tab-content {
  display: none;
  margin-top: 15px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  color: #dfefff;
}
.tab-content.active {
  display: block;
}

/* responsive small */
@media (max-width:420px){
  .app{margin:6px}
}
