/* === GLOBAL === */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: #000;
  color: #00ff9d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #00ff9d;
  box-shadow: 0 0 10px #00ff9d;
  z-index: 1000;
  box-sizing: border-box;
}
.logo {
  font-size: 20px;
  font-weight: bold;
  color: #00ff9d;
  text-shadow: 0 0 12px #00ff9d;
}
.menu-btn {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.menu-btn span {
  height: 3px;
  width: 25px;
  background: #00ff9d;
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.4s;
}
.menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === MENU POPUP === */
.menu-popup {
  position: fixed;
  top: 70px;
  right: 15px;
  background: rgba(15,15,15,0.95);
  border: 1px solid #00ff9d;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0,255,153,0.4);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 180px;
  z-index: 999;
}
.menu-popup.show { display: flex; }
.menu-popup a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #00ff9d;
  background: rgba(0,0,0,0.7);
  border-radius: 12px;
  padding: 10px;
  font-weight: 500;
  transition: all 0.3s;
}
.menu-popup a:hover {
  background: #00ff9d;
  color: #000;
  transform: scale(1.05);
}
.menu-popup i { font-size: 18px; }

/* === CONTAINER === */
.container {
  width: 95%;
  max-width: 700px;
  margin: 100px auto 130px;
  text-align: center;
  box-sizing: border-box;
}

/* === BALANCE CARDS === */
.cards-container {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.card-dark {
  flex: 1;
  background: linear-gradient(145deg, #001f14, #000);
  border: 1px solid #00ff9d;
  border-radius: 18px;
  box-shadow: 0 0 20px rgba(0,255,153,0.2);
  padding: 15px;
  text-align: center;
}
.card-dark h3 {
  font-size: 15px;
  color: #00ff9d;
  margin: 0 0 8px;
}
.balance-value {
  font-size: 17px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 8px #00ff9d;
}

/* === TAB INVESTASI === */
.tab-container { margin-bottom: 25px; }
.tab-buttons {
  display: flex;
  justify-content: space-between;
  border: 1px solid #00ff9d;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,255,153,0.3);
}
.tab-buttons button {
  flex: 1;
  padding: 10px 0px 10px;
  background: #000;
  border: none;
  color: #00ff9d;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.3s;
}
.tab-buttons button.active {
  background: #00ff9d;
  color: #000;
  box-shadow: inset 0 0 10px #00ff9d;
}
.tab-content { margin-top: 15px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* === TABLE INVESTASI === */
.table-wrapper {
  margin-top: 15px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 20px;
  border: 1px solid #00ff9d;
  box-shadow: 0 0 20px rgba(0,255,153,0.25);
  overflow: hidden;
  padding-bottom: 15px;
}
.table-label {
  font-size: 20px;
  color: #00ff9d;
  text-align: center;
  padding: 15px;
  text-transform: uppercase;
  font-weight: bold;
  border-bottom: 2px solid #00ff9d;
  background: rgba(0,0,0,0.9);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
table {
  width: 90%;
  margin: 10px auto;
  border-collapse: collapse;
}
th, td {
  padding: 10px 15px;
  text-align: left;
  color: #fff;
}
th { background: #00ff9d; color: #000; }
tr:nth-child(even) { background: #0b0b0b; }
tr:hover { background: rgba(0,255,157,0.1); }

/* === BUTTON BELI === */
.buy-btn-wrap {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 15px;   /* ✅ Tambah jarak bawah agar lebih lega */
}

.buy-btn {
  background: #00ff9d;
  color: #000;
  text-decoration: none;
  padding: 10px 28px;    /* ✅ Sedikit diperlebar agar proporsional */
  border-radius: 25px;
  font-weight: bold;
  transition: 0.3s;
}

.buy-btn:hover {
  background: #00ffaa;
  box-shadow: 0 0 20px #00ff9d;
}


/* === HISTORI DOWNLINE === */
#downlineSection { margin-top: 35px; }
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.pagination button {
  background: #000;
  border: 1px solid #00ff9d;
  color: #00ff9d;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: 0.3s;
}
.pagination button.active {
  background: #00ff9d;
  color: #000;
}
.pagination button:hover {
  background: #00ffaa;
  color: #000;
}

/* === NAV BAWAH === */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #000;
  border-top: 1px solid #00ff9d;
  box-shadow: 0 0 10px #00ff9d;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 1000;
}
.bottom-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s;
}
.bottom-nav a .icon { font-size: 20px; margin-bottom: 3px; }
.bottom-nav a.active,
.bottom-nav a:hover {
  color: #00ff9d;
  text-shadow: 0 0 10px #00ff9d;
}

/* Hanya untuk tabel paket (bukan histori) */
.tab-pane .table-wrapper table td:last-child {
  text-align: right;
  color: #fff;
  font-weight: bold;
}

/* Kolom kiri tetap rata kiri */
.tab-pane .table-wrapper table td:first-child {
  text-align: left;
  color: #00ff9d;
  font-weight: 500;
}
/* === COPY LINK === */
.copy-link-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.6);
  border: 1px solid #00ff9d;
  border-radius: 12px;
  padding: 10px 15px;
  margin: 15px auto 20px;
  box-shadow: 0 0 12px rgba(0,255,157,0.2);
  width: ;
  max-width: 700px;
}
.copy-link-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #00ff9d;
  font-size: 16px;
  text-align: center;
}
.copy-link-box button {
  background: #00ff9d;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 6px 12px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.copy-link-box button:hover {
  background: #00ffaa;
  box-shadow: 0 0 15px #00ff9d;
}
.copy-alert {
  display: none;
  text-align: center;
  margin-top: 8px;
  color: #00ff9d;
  font-weight: 500;
  animation: fadeInOut 2s ease;
}
@keyframes fadeInOut {
  0% {opacity: 0;}
  20% {opacity: 1;}
  80% {opacity: 1;}
  100% {opacity: 0;}
}

/* ==== RESPONSIVE TABLE TANPA UBAH UKURAN FONT ==== */
.table-wrapper {
  width: 100%;
  overflow-x: auto; /* biar bisa geser ke samping di HP */
  -webkit-overflow-scrolling: touch; /* smooth scroll di iOS */
}

#downlineTable {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  min-width: 400px; /* supaya kolom gak ketumpuk kalau layar kecil */
}

#downlineTable th,
#downlineTable td {
  padding: 8px 10px;
  white-space: nowrap; /* biar teks tidak turun ke bawah */
}

/* Pastikan pagination tetap rapi */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* === FORM PENDAFTARAN SIMPLE (NEON GREEN STYLE) === */
.box {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #00ff9d;
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(0,255,157,0.3);
  padding: 25px 30px 35px;
  max-width: 480px;
  margin: 40px auto;
  text-align: center;
}

.box h2 {
  color: #00ff9d;
  text-shadow: 0 0 12px #00ff9d;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.box form {
  text-align: left;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #00ff9d;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

/* Gunakan 100%, bukan 90%, agar sejajar semua */
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #00ff9d;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #00ffaa;
  box-shadow: 0 0 10px #00ff9d;
}

/* Tombol daftar */
.btn-register {
  background: #00ff9d;
  color: #000;
  font-weight: 700;
  padding: 12px 26px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  text-transform: uppercase;
  width: 100%;
  transition: 0.3s;
  font-size: 1rem;
}
.btn-register:hover {
  background: #00ffaa;
  box-shadow: 0 0 25px #00ff9d;
}

/* Responsif */
@media (max-width: 480px) {
  .register-box {
    padding: 20px 18px 30px;
    margin: 25px 15px;
  }
  .register-box h2 {
    font-size: 1.2rem;
  }
  .btn-register {
    font-size: 0.9rem;
  }
}

/* === INPUT PASSWORD DENGAN ICON MATA (FIX POSISI & STYLING) === */
.input-password {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.input-password input {
  width: 100%;
  padding: 12px 44px 12px 14px; /* space kanan untuk ikon mata */
  border-radius: 12px;
  border: 1px solid #00ff9d;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.input-password input:focus {
  outline: none;
  box-shadow: 0 0 8px #00ff9d;
}

/* === ICON MATA === */
.input-password .toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  background: none;      /* ✅ hilangkan kotak putih */
  border: none;
  outline: none;
  cursor: pointer;
  color: #00ff9d;
  font-size: 1.3rem;
  padding: 0;            /* ✅ hilangkan padding bawaan */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.input-password .toggle-password:hover {
  color: #00ffaa;
}
/* === CAPTCHA GROUP === */
.captcha-group {
  margin-bottom: 18px;
}

/* Label tetap seragam */
.captcha-group label {
  display: block;
  font-weight: 600;
  color: #00ff9d;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

/* === CAPTCHA INLINE STYLE === */
.captcha-group {
  margin-bottom: 18px;
}

.captcha-group label {
  display: block;
  font-weight: 600;
  color: #00ff9d;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

/* Bungkus keseluruhan */
.captcha-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

/* Kode verifikasi (1/4 lebar) */
.captcha-display {
  flex: 1; /* 1/4 bagian */
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #00ff9d;
  border-radius: 12px;
  padding: 10px 12px;
  box-sizing: border-box;
  min-width: 90px;
}

#captcha-text {
  font-size: 1rem;
  font-weight: bold;
  color: #00ff9d;
  letter-spacing: 2px;
  user-select: none;
}

.reload-captcha {
  background: none;
  border: none;
  color: #00ff9d;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
}
.reload-captcha:hover {
  color: #00ffaa;
  text-shadow: 0 0 8px #00ff9d;
}

/* Input kode (3/4 lebar) */
.captcha-inline input {
  flex: 3; /* 3/4 bagian */
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #00ff9d;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.95rem;
  transition: 0.3s;
  box-sizing: border-box;
}

.captcha-inline input:focus {
  outline: none;
  border-color: #00ffaa;
  box-shadow: 0 0 10px #00ff9d;
}

/* Responsif biar gak pecah di layar kecil */
@media (max-width: 480px) {
  .captcha-inline {
    flex-direction: column;
    gap: 10px;
  }
  .captcha-display,
  .captcha-inline input {
    width: 100%;
  }
}
/* Email sejajar (2/3 input, 1/3 tombol) */
.email-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.email-inline input {
  flex: 2; /* 2/3 bagian */
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #00ff9d;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.email-inline input:focus {
  outline: none;
  border-color: #00ffaa;
  box-shadow: 0 0 10px #00ff9d;
}

/* Tombol verifikasi (1/3 bagian) */
.btn-verify {
  flex: 1; /* 1/3 bagian */
  padding: 12px 14px;
  border: 1px solid #00ff9d;
  background-color: #00ff9d;
  color: #000;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-verify:hover {
  background-color: #00ffaa;
  box-shadow: 0 0 10px #00ff9d;
}

.logo img {
  height: 25px;          /* sesuaikan ukuran logo */
  width: 100%;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px #00ff9d); /* efek neon */
  transition: 0.3s;
}

.logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px #00ffaa);
}


