:root{
    --bg:#020617;
  --bg-dark:#01030a;
  --card:#020617;

  --primary:#22c55e;
  --secondary:#38bdf8;
  --danger:#ef4444;
  --pink:#ff3d9a;
  --pink-glow:rgba(255,61,154,.6);
  --text:#ffffff;
  --muted:#a3a7c7;
  --border:rgba(255,255,255,.08);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Inter,system-ui,sans-serif;
  -webkit-tap-highlight-color:transparent;
}

html{scroll-behavior:smooth;}

body{
  background:
    radial-gradient(circle at 20% 10%, #160a2d 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, #2a0f1f 0%, transparent 45%),
    var(--bg);
  color:var(--text);
  overflow-x:hidden;
  padding-bottom:90px;
}

/* ================= LAYOUT ================= */
.container{
  max-width:1200px;
  margin:auto;
  padding:0 20px;
}

/* ================= HEADER ================= */
.header{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(5,6,15,.65);
  backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:22px;
  font-weight:800;
}

.brand img{
  width:38px;
  filter:drop-shadow(0 0 18px var(--pink-glow));
}

/* ================= NAV ================= */
.nav-links{
  display:flex;
  gap:28px;
}

.nav-links a{
  color:#d6d8ff;
  text-decoration:none;
  font-weight:500;
  transition:.3s;
}

.nav-links a:hover{color:#fff}

/* Hamburger */
.hamburger{
  display:none;
  flex-direction:column;
  gap:6px;
  cursor:pointer;
}
.hamburger span{
  width:28px;
  height:3px;
  background:#fff;
}

/* ================= CARD ================= */
.card{
  background:#020617;
  border:1px solid #1e293b;
  border-radius:16px;
  padding:16px;
  margin:14px;
}

.card-title{
  font-size:14px;
  font-weight:600;
  margin-bottom:12px;
  color:#e5e7eb;
}

/* ================= REFERRAL ================= */
.ref-box{
  display:flex;
  gap:10px;
}

.ref-box input{
  flex:1;
  background:#020617;
  border:1px solid #1e293b;
  color:#94a3b8;
  padding:10px;
  border-radius:10px;
  font-size:12px;
}

.ref-box button{
  background:#22c55e;
  border:none;
  color:#020617;
  padding:0 16px;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
}

/* ================= INCOME ================= */
.income-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.income-box{
  flex:1;
  text-align:center;
}

.label{
  font-size:11px;
  color:var(--muted);
}

.value{
  margin-top:6px;
  font-size:18px;
  font-weight:700;
}

.text-green{color:var(--primary)}
.text-blue{color:var(--secondary)}

.divider{
  width:1px;
  height:40px;
  background:var(--border);
}

/* ================= PROGRESS ================= */
.progress{
  height:6px;
  background:#1f2937;
  border-radius:10px;
  margin-top:10px;
  overflow:hidden;
}

.progress-fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,var(--primary),var(--secondary));
  border-radius:10px;
  box-shadow:0 0 10px rgba(34,197,94,.6);
  transition:width .8s ease;
}

/* ================= HISTORY ================= */
.history-table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}

.history-table th{
  color:#94a3b8;
  text-align:left;
  padding:5px;
}

.history-table td{
  padding:5px;
  border-top:1px solid #1e293b;
  color:#e5e7eb;
}

/* ================= TIMER ================= */
.timer{
  display:flex;
  justify-content:center;
  gap:10px;
  margin:10px 0;
}

.time-box{
  background:#020617;
  padding:8px 10px;
  border-radius:8px;
  font-family:monospace;
  color:var(--secondary);
  border:1px solid var(--border);
}

/* ================= BUTTONS ================= */
.claim-btn{
  width:calc(100% - 28px);
  margin:14px;
  padding:14px;
  background:linear-gradient(135deg,var(--pink),#ff6bb5);
  border:none;
  border-radius:14px;
  font-weight:700;
  color:#fff;
  box-shadow:0 0 20px var(--pink-glow);
}

.load-more{
  width:100%;
  margin-top:12px;
  padding:10px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
}
/* ===== Popup ===== */
/* ===== Popup ===== */
.popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:.3s;
  z-index:3000;
}

.popup-overlay.show{
  opacity:1;
  pointer-events:auto;
}

.popup-card{
  width:92%;
  max-width:420px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  animation:scaleIn .25s ease;
}

@keyframes scaleIn{
  from{transform:scale(.9);opacity:0}
  to{transform:scale(1);opacity:1}
}

.popup-card h3{
  font-size:18px;
  margin-bottom:12px;
}

.popup-body{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.popup-body input,
.popup-body select{
  width:100%;
  padding:12px;
  border-radius:12px;
  background:#020617;
  border:1px solid #1e293b;
  color:#fff;
}

.popup-actions{
  display:flex;
  gap:12px;
  margin-top:16px;
}

.achiever-list{
  margin-top:14px;
  max-height:260px;
  overflow:auto;
}

.achiever{
  display:flex;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:12px;
  background:#020617;
  margin-bottom:8px;
  font-size:13px;
  border:1px solid #1e293b;
}

.achiever.you{
  border-color:var(--pink);
  box-shadow:0 0 14px var(--pink-glow);
}

.achiever span:last-child{
  color:#22c55e;
  font-weight:600;
}
.rate-box{
  display:flex;
  justify-content:space-between;
  text-align:center;
  padding:15px;
  border-radius:12px;
  background:#111;
  color:#fff;
}

.rate-item{
  flex:1;
}

.rate-heading{
  font-size:13px;
  opacity:0.7;
  margin-bottom:5px;
}

.rate-value{
  font-size:18px;
  font-weight:bold;
}
.percent-buttons{
  display:flex;
  gap:10px;
  margin:10px 0;
}

.percent-buttons button{
  flex:1;
  padding:6px;
  border:none;
  border-radius:6px;
  cursor:pointer;
}

input,
select{
  width:100%;
  padding:12px;
  border-radius:12px;
  background:#020617;
  border:1px solid #1e293b;
  color:#fff;
}
/* ================= FOOTER ================= */
.app-footer{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  background:rgba(2,6,23,.95);
  backdrop-filter:blur(10px);
  display:flex;
  align-items:center;
  justify-content:space-around;
  border-top:1px solid #1e293b;
  z-index:1000;
}


.tab{
  flex:1;
  text-align:center;
  color:#94a3b8;
  font-size:14px;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  transition:.2s;
}

.tab:hover{color:#38bdf8}

.tab.active:not(.home-tab){
  color:#22c55e;
}

/* Floating Home */
.home-tab{
  position:relative;
  top:-15px;
  width:52px;
  height:52px;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  border-radius:18px;
  box-shadow:0 12px 28px rgba(34,197,94,.35);
  color:#020617;
}

.home-tab span{display:none}

/* ================= TOAST ================= */
.toast{
  position:fixed;
  bottom:100px;
  left:50%;
  transform:translateX(-50%);
  background:var(--pink);
  color:#fff;
  padding:10px 18px;
  border-radius:12px;
  opacity:0;
  pointer-events:none;
  transition:.3s;
  box-shadow:0 0 20px var(--pink-glow);
  z-index:2000;
}
.toast.show{opacity:1}

/* ================= SKELETON ================= */
.skeleton{
  position:relative;
  color:transparent !important;
}
.skeleton::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    #0d1024 25%,
    #1a1e3a 37%,
    #0d1024 63%
  );
  animation:shimmer 1.4s infinite;
  border-radius:8px;
}
@keyframes shimmer{
  0%{background-position:-200px}
  100%{background-position:200px}
}

/* ================= MOBILE ================= */
@media(max-width:900px){
  .hamburger{display:flex}

  .nav-links{
    position:absolute;
    top:60px;
    left:0;
    width:100%;
    background:#070916;
    flex-direction:column;
    gap:18px;
    padding:25px 0;
    transform:translateY(-120%);
    transition:.3s;
  }

  .nav-links.active{
    transform:translateY(0);
  }
}
.yield-popup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.yield-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.yield-row:last-child {
    border-bottom: none;
}

.yield-row .label {
    font-weight: 500;
    color: #555;
}

.yield-row .value {
    font-weight: 600;
    color: #222;
}

.yield-row .claimable {
    color: #1abc9c;
    font-weight: 700;
}

.yield-row .action .btn {
    background: #1abc9c;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.yield-row .action .btn:hover {
    background: #16a085;
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    color: white;
}

.badge.withdrawn {
    background: #7f8c8d;
}

.badge.countdown {
    background: #e67e22;
}

.rank-card{

    position:relative;

    background:
    linear-gradient(
    180deg,
    rgba(255,255,255,.05),
    rgba(255,255,255,.02)
    );

    border:1px solid rgba(255,255,255,.08);

    border-radius:28px;

    padding:20px 45px;

    overflow:hidden;
    
    margin: 14px;

    backdrop-filter:blur(20px);

    box-shadow:
    0 10px 40px rgba(0,0,0,.35);

}

.rank-glow{

    position:absolute;

    width:280px;
    height:280px;

    background:
    radial-gradient(
    circle,
    rgba(124,60,255,.35),
    transparent
    );

    top:-140px;
    right:-140px;

}

.rank-top{

    display:flex;
    align-items:center;
    gap:15px;

    position:relative;
    z-index:2;

}

.rank-icon{

    width:78px;
    height:78px;

    border-radius:22px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:34px;
    font-weight:700;

    background:
    linear-gradient(
    135deg,
    #6c2cff,
    #b936ff,
    #ff2fa0
    );

    box-shadow:
    0 0 40px rgba(155,60,255,.5);

    animation:floatRank 3s ease-in-out infinite;

}

@keyframes floatRank{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-8px);
    }

    100%{
        transform:translateY(0px);
    }

}

.rank-title{

    color:#9aa7d8;

    font-size:13px;

    letter-spacing:2px;

    margin-bottom:8px;

}

.rank-name{

    font-size:24px;

    font-weight:800;

    line-height:1;

    background:
    linear-gradient(
    90deg,
    #ffffff,
    #b38cff
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

}
