/* Styles moved from inline */ 
/* Use the same CSS you already wrote (trimmed for brevity) */ 
body {background:#000;color:#fff;line-height:1.4;overflow-x:hidden;}
/* (All CSS from your code above goes here) */

* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Poppins', sans-serif;
    }

    body {
      background:
    linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
    url("../images/bg.png") center / cover no-repeat fixed;
      color: #fff;
      line-height: 1.4;
      overflow-x: hidden;
    }

    /* Navbar */
    .navbar {
      background: #111;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      border-bottom: 2px solid #ffcc00;
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .navbar-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .navbar-left img {
      width: 35px;
      
    }

    .navbar-left h1 {
      color: #fff;
      font-size: 1.6rem;
      font-weight: 700;
    }

    .nav-links {
      display: flex;
      gap: 1.5rem;
    }

    .nav-links a {
      text-decoration: none;
      color: #ffcc00;
      font-weight: 500;
      transition: 0.3s;
    }

    .nav-links a:hover {
      color: #fff;
    }

    /* Hamburger Menu */
    .menu-btn {
      display: none;
      flex-direction: column;
      justify-content: space-between;
      width: 28px;
      height: 22px;
      cursor: pointer;
    }

    .menu-btn span {
      height: 3px;
      width: 100%;
      background: #ffcc00;
      border-radius: 4px;
    }

    /* Mobile Menu */
    .mobile-menu {
      display: none;
      flex-direction: column;
      text-align: center;
      background: #111;
      border-top: 2px solid #ffcc00;
      position: fixed;
      top: 70px;
      right: 0;
      width: 100%;
      z-index: 99;
      animation: slideDown 0.3s ease;
    }

    .mobile-menu a {
      color: #ffcc00;
      text-decoration: none;
      padding: 0.8rem 0;
      border-bottom: 1px solid #222;
    }

    .mobile-menu a:hover {
      background: #222;
      color: #fff;
    }

    @keyframes slideDown {
      from {opacity: 0; transform: translateY(-10px);}
      to {opacity: 1; transform: translateY(0);}
    }

    /* Container */
    .container {
      max-width: 1100px;
      margin: 2rem auto;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .referral {
      background: #cfae36d6;
      color: #fff;
      font-weight: 600;
      text-align: center;
      padding: 0.8rem;
      border-radius: 10px;
      margin-bottom: 1.5rem;
      width: 100%;
      max-width: 500px;
      cursor: pointer;
    }
    
  

    /* Cards Grid */
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 0.6rem;
      width: 100%;
      max-width: 900px;
    }

    .card {
      position: relative;
      background: #1b1b1b;
      border-radius: 12px;
      padding: 1rem 1.2rem;
      overflow: hidden;
      box-shadow: 0 3px 10px rgba(0,0,0,0.4);
      min-height: 120px;
      text-align: center;
    }

    /* Default card background (non-green cards) */
.card::after {
  content: "";
  position: absolute;
  right: 0;
  top: -59px;
  width: 50%;
  height: 100%;
  background: url("../images/logo.png") center / contain no-repeat;
  filter: blur(0px) brightness(0.8);
  opacity: 0.2;
  z-index: 1;
}

/* Green card background */
.card.green::after {
  content: "";
  position: absolute;
  right: 0;
  top: 59px;
  width: 50%;
  height: 100%;
  background: url("../images/logo.png") center / contain no-repeat;
  filter: blur(0px) brightness(0.8);
  opacity: 0.2;
  z-index: 1;
}

/* Green card background */
.card.green-2::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0px;
  width: 50%;
  height: 100%;
  background: url("../images/bnbhikecoin.png") center / contain no-repeat;
  filter: blur(0px) brightness(0.8);
  opacity: 0.5;
  z-index: 1;
}


    .card-content {
      position: relative;
      float: left;
      z-index: 2;
    }

    .card-content h3 {
      font-size: 1rem;
      font-weight: 500;
      color: #ffcc00;
    }

    .card-content p {
      font-size: 1.8rem;
      font-weight: 700;
      margin-top: 0.3rem;
    }

    .green {
      background: linear-gradient(135deg, #10503d, #3c7b4d);
    }
    
    .green-2 {
      background: linear-gradient(135deg, #10503d, #3c7b4d);
    }

    /* Carousel */
    .carousel-container {
      position: relative;
      width: 100%;
      max-width: 1000px;
      overflow: hidden;
      margin: 2rem 0;
    }

    .carousel {
      display: flex;
      gap: 1rem;
      overflow-x: auto;
      scroll-behavior: smooth;
      scrollbar-width: none;
    }

    .carousel::-webkit-scrollbar {
      display: none;
    }

    .package-card {
      flex: 0 0 150px;
      background: linear-gradient(135deg, #10503d, #3c7b4d);
      border: 2px solid #fff;
      border-radius: 15px;
      text-align: center;
      padding: 1rem;
      color: #fff;
      transition: 0.3s;
    }

    /*.package-card:hover {
      transform: translateY(-5px);
      border-color: #ffcc00;
    }*/

    .package-card img {
      width: 34px;
      margin-bottom: 2px;
    }

    /*.package-card h3 {
      font-size: 1.2rem;
      margin-bottom: 0.4rem;
    }*/

    .package-card p {
      font-weight: 600;
    }

    .btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: #fff;
      color: #000;
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      font-size: 1.5rem;
      cursor: pointer;
      transition: 0.3s;
    }

    .btn:hover {
      background: #ffcc00;
    }

    .btn.left {
      left: 2px;
      z-index: 1;
      display: none;
    }

    .btn.right {
      right: 2px;
    }

    /* Table */
    /* === RANK TABLE (screenshot style) === */
.rank-table-wrap{
  width:100%;
  max-width:800px;
  margin:2rem auto 0;
  display:flex;
  justify-content:center;
}

table.rank-table{
  width:95%;
  border-collapse:separate;          /* we need row gaps */
  border-spacing:0 10px;             /* vertical gap between rows */
  text-align:center;
  font-size:.95rem;
}

/* Header — dark green blocks with white text and white borders */
/* table rows ke beech vertical gap ko same rehne do */
.rank-table{
  border-collapse: separate;
  border-spacing: 0 10px;   /* 0 = horizontal, 10px = vertical gap */
}

/* header th ka background/border remove, sab ka box .hcell handle karega */
.rank-table thead th{
  padding: 0;
  background: transparent;
  border: 0;
}

/* header inner boxes */
.rank-table thead .hcell{
  background: #fff;
  color: #113622;
  padding: .8rem .6rem;
  border: 2px solid #10503d;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .5px;
  margin: 0 6px;             /* <-- yehi banata hai columns ke beech gap */
  text-align: center;
}

/* (optional) chaho to gap size yahan control karo) */
/* .rank-table thead .hcell { margin: 0 8px; } */

/* Body cells: we use an inner .cell to get the “boxed” look */
.rank-table tbody td{
  padding:4px;                         /* the box handles its own padding */
  border:none;
}

/* The boxed cell that looks like each green pill with white stroke */
.rank-table .cell{
  background: linear-gradient(135deg, #10503d, #3c7b4d);            /* dark green fill */
  border:2px solid #ffffff;          /* white outline */
  color:#ffffff;
  padding:.65rem 1rem;
  border-radius:6px;
  font-weight:700;
  text-transform:uppercase;
}

/* Widths similar to screenshot */
.rank-table colgroup col:nth-child(1){ width:14%; }
.rank-table colgroup col:nth-child(2){ width:56%; }
.rank-table colgroup col:nth-child(3){ width:30%; }

/* Hover (optional) */
.rank-table tbody tr:hover .cell{
  background:#124d2b;
  transition:.25s;
}

 
/* Mobile tweaks */
@media (max-width:600px){
  table.rank-table{ font-size:.86rem; border-spacing:0 8px; }
  .rank-table .cell{ padding:.55rem .7rem; }
}


    /* Responsive */
    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }

      .menu-btn {
        display: flex;
      }

      .mobile-menu.active {
        display: flex;
      }

      .grid {
        grid-template-columns: 1fr;
      }

      .package-card {
        flex: 0 0 100px;
        padding: 0.5rem;
      }

      .btn {
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
      }
    }
    
 

/* Copy Message */
.copy-msg {
  display: none;
  position: fixed;
  top: 80px;
  /*right: 20px;*/
  background: #12552c;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 200;
  animation: fadeInOut 1.8s ease forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-10px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}


/* ===== Profile Section ===== */
.profile-section{
  width:100%;
  max-width:900px;
  margin:20px auto 1.5rem;
  padding-inline:12px;              /* side spacing */
}

/* Top green header with blurred watermark */
.profile-head{
  position:relative;
  background: linear-gradient(135deg, #10503d, #3c7b4d);
  border-radius:14px;
  padding:1rem 1.2rem;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
  overflow:hidden;
}
.profile-head::after{
  content:"";
  position:absolute;
  right:0;
  top:0;
  width:19%;                        /* your choice; keep small watermark */
  height:100%;
  background:url("../images/logo.png") center/contain no-repeat;
  filter: blur(px) brightness(.6); /* <-- real blur now */
  opacity:.35;
  z-index:1;
}
.profile-head .title{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:.6rem;
  color:#fff;
  font-size:1.35rem;
  font-weight:700;
}
.profile-head .badge{
  width:40px;height:40px;
  border-radius:50%;
  background:#0f2620;
  border:2px solid #ffcc00;
  color:#ffcc00;
  display:flex;align-items:center;justify-content:center;
}

/* Grid of small cards – 2 per row (mobile-first) */
.profile-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* always 2 columns */
  gap:12px;
  margin:1rem 0;
}

/* Card */
.profile-item{
  position:relative;
  background: linear-gradient(135deg, #10503d, #3c7b4d);
  border-radius:12px;
  padding:1rem 1.1rem;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 8px 16px rgba(0,0,0,.28);
  color:#e9f3ea;
  text-align:center;
}

/* Text blocks centered */
.profile-item .label,
.profile-item .value{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.35rem;
}

.profile-item .label{
  font-weight:600;
  opacity:.95;
}
.profile-item .value{
  margin-top:.35rem;
  font-size:1.15rem;
  font-weight:800;
  color:#fff;
}
.profile-item .fa-coins{ color:#ffcc00; }

/* Inline value (e.g., "User ID : 24321") */
.value-inline{
  display:inline-block;
  margin-left:.35rem;
  font-size:1.15rem;
  font-weight:800;
  color:#fff;
  white-space:nowrap;
}

/* Bottom activation bar */
.activation-bar{
  background: linear-gradient(135deg, #10503d, #3c7b4d);
  border-radius:12px;
  text-align:center;
  color:#fff;
  font-weight:800;
  padding:.9rem 1rem;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}

/* --- Mobile tweaks --- */
@media (max-width: 640px){
  .profile-section{ padding-inline:16px; }
  /*.profile-head .title{ justify-content:center;*/
  }
}

/* Very small phones */
@media (max-width:360px){
  .profile-grid{ gap:8px; }
  .profile-item{ padding:.8rem .7rem; }
  .profile-item .value, .value-inline{ font-size:1rem; }
}



/* ================== Income Section (unique classes) ================== */
.income-section{
  width:100%;
  max-width:900px;
  margin: 1.5rem auto 0;
  padding-inline:12px;
}

/* Top green header with watermark on right */
.income-head{
  position:relative;
  background: linear-gradient(135deg, #10503d, #3c7b4d);
  border-radius:14px;
  padding:1rem 1.2rem;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
  overflow:hidden;
}
.income-head::after{
  content:"";
  position:absolute;
  right:0; top:0;
  width:19%; height:100%;
  background:url("../images/logo.png") center/contain no-repeat;
  filter: blur(px) brightness(.6);
  opacity:.35;
  z-index:1;
}
.income-title{
  position:relative; z-index:2;
  display:flex; align-items:center; gap:.6rem;
  color:#fff; font-weight:800; font-size:1.35rem;
}
.income-badge{
  width:40px; height:40px; border-radius:50%;
  background:#0f2620; border:2px solid #ffcc00; color:#ffcc00;
  display:flex; align-items:center; justify-content:center;
}

/* Pill bars (Total Income / Total Lost) */
.income-total{
  margin: .9rem 0 1.1rem;
  background: linear-gradient(135deg, #10503d, #3c7b4d);
  color:#fff;
  border-radius:12px;
  padding:.7rem 1rem;
  display:flex; align-items:center; justify-content:center; gap:.6rem;
  font-weight:800;
  box-shadow:0 8px 16px rgba(0,0,0,.28);
}
.income-total i{ color:#ffcc00; }

/* Grid of small rounded green cards */
/* Mobile first: show 2 cards per row */
.income-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;              /* space between cards */
}

/* Optional: make 3 per row on large screens */
@media (min-width: 992px){
  .income-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tiny phones: keep 2 per row but shrink text a bit */
@media (max-width: 360px){
  .income-card span{
    font-size: 0.9rem;
  }
}


.income-card{
  background: linear-gradient(135deg, #10503d, #3c7b4d);
  border-radius:14px;
  min-height:80px;
  padding:1rem;
  box-shadow:0 10px 18px rgba(0,0,0,.30);
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  color:#eaf6ec;
  border:1px solid rgba(255,255,255,.12);
}
.income-card span{
  font-weight:700;
  letter-spacing:.2px;
  word-break:keep-all;        /* “Network growth Bonus” ek line me rahe koshish */
}

/* Lost pill subtle darker tone */
.income-loss{
  background: linear-gradient(135deg, #10503d, #3c7b4d);
}


/* ===== Team/Direct/Level Pills ===== */
.tmenu{
  width:100%;
  max-width:420px;            /* center column width */
  margin:18px auto 0;
  padding-inline:12px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.tmenu-pill{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;     /* text center like screenshot */
  height:56px;
  border-radius:16px;
  text-decoration:none;
  background: linear-gradient(135deg, #10503d, #3c7b4d);
  color:#ffffff;
  font-weight:800;
  letter-spacing:.3px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 10px 22px rgba(0,0,0,.35);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

/* left side icon in gold */
.tmenu-pill i{
  position:absolute;
  left:125px;
  font-size:1.4rem;
  color:#ffcc00;
}

/* subtle hover/active */
.tmenu-pill:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(0,0,0,.4);
}
.tmenu-pill:active{
  transform:translateY(0);
}

/* optional: slightly different shades per row (like your image) */
.tmenu-pill:nth-child(2){
  background: linear-gradient(135deg,#256e46,#184733);
}
.tmenu-pill:nth-child(3){
  background: linear-gradient(135deg,#2a7b50,#1a4e36);
}

/* small phones */
@media (max-width:360px){
  .tmenu{ gap:10px; }
  .tmenu-pill{ height:52px; border-radius:14px; }
  .tmenu-pill i{ left:94px; font-size:1.25rem; }
}


/* ===== Pool CTA (buttons) – green pill style ===== */
.pool-cta{
  background:#0f241d;
  border:1.5px solid rgba(255,255,255,.65);
  border-radius:14px;
  padding:14px;
  max-width:1080px;
  margin:16px auto;
}

/* header bar like first image, but green gradient from second */
.pool-cta-header{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-bottom:1px solid rgba(255,255,255,.22);
  border-radius:10px 10px 0 0;
  color:#eaf6ec;
  font-weight:700;
}
.pool-cta-header i{
  color:#ffcc00;               /* gold icon */
}

/* grid */
.pool-cta-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
  padding:14px 0 2px;
}
@media (min-width: 768px){
  .pool-cta-grid{ grid-template-columns: 1fr 1fr; }
}

/* pill buttons – color combo from second image */
.pool-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:48px;
  border-radius:16px;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.2px;
  color:#ffffff;
  background: linear-gradient(135deg, #1d6b49 0%, #2b7a51 40%, #244e3b 100%);
  box-shadow: 0 10px 22px rgba(0,0,0,.35) inset, 0 4px 12px rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.14);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.pool-btn i{ color:#ffcc00; font-size:1.1rem; }

/* hover / active */
.pool-btn:hover{
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.38) inset, 0 6px 14px rgba(0,0,0,.3);
}
.pool-btn:active{
  transform: translateY(0);
}

/* full width last row on desktop if odd count */
.pool-cta-grid .pool-btn:last-child{
  grid-column: 1 / -1;
}


@supports (padding: max(0px)){
  @media (max-width: 768px){
    .pool-cta{
      margin-left: max(16px, env(safe-area-inset-left));
      margin-right: max(16px, env(safe-area-inset-right));
    }
  }
}

