html, body {
    overflow: hidden;
  }
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
  }
  .main-content {
    padding-top: 30px;
    margin-top: 5px;
    height: calc(100vh - 80px);
    overflow-y: scroll;
  }
  .affiliate-heading {
    text-align: center;
    font-size: 48px;
    margin-bottom: 40px;
  }
  .top-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
  }
  .total-balance-box {
    background: #0000004d;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    width: 350px;
  }
  .total-balance-title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 20px;
  }
  .total-balance-amount {
    font-size: 48px;
    color: #ff66c4;
    margin-bottom: 30px;
  }
  .withdraw-btn {
    background: linear-gradient(135deg, #ff7e5f, #fd3a84);
    box-shadow: 0 4px 10px rgba(253, 58, 132, 0.4);
    color: #fff;
    font-size: 20px;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
  }
  .withdraw-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
  }
  .stats-link-btn {
    margin-top: 15px;
    border: 3px solid transparent;
    background: linear-gradient(#000000f1, #000000f1) padding-box,
                linear-gradient(135deg, #ff7e5f, #fd3a84) border-box;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(253, 58, 132, 0.4);
    color: #fff;
    font-size: 18px;
    padding: 14px 28px;
    cursor: pointer;
    transition: 0.2s;
  }
  .stats-link-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
  }
  .ref-man-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    justify-content: flex-start;
  }
  .ref-man-box {
    text-align: center;
  }
  .ref-man-title {
    font-size: 38px;
    margin-bottom: 15px;
  }
  .ref-man-link {
    font-size: 16px;
    color: #ff66c4;
    border: 2px solid #c45b7a;
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-block;
    width: 500px;
    height: 40px;
    text-align: center;
    color: rgb(228, 228, 228);
    background-color: rgba(0, 0, 0, 0.862);
  }
  .stats-container {
    text-align: center;
    margin-bottom: 40px;
  }
  .stats-container h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .stat-card {
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
  }
  .stat-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ff66c4;
  }
  .stat-card p {
    margin: 8px 0;
  }
  .pink-icon {
    display: inline-block;
    background: #ff66c4;
    color: #fff;
    font-size: 12px;
    width: 12px;
    height: 12px;
    line-height: 12px;
    text-align: center;
    border-radius: 50%;
    margin-left: 2px;
    top: -6px;
    position: absolute;
  }
  #pink-icon-id {
    position: relative;
    cursor: pointer;
  }
  .referrals-container {
    text-align: center;
    margin-bottom: 60px;
  }
  .referrals-box {
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    margin: 0 auto;
  }
  .referrals-box h3 {
    font-size: 32px;
    margin-bottom: 20px;
  }
  .referrals-box ul {
    list-style: none;
    padding: 0;
  }
  .referrals-box li {
    font-size: 24px;
    margin: 10px 0;
    color: #ddd;
    text-align: center;
  }

  .stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .stat-item {
    flex: 0 0 48%; 
    text-align: center;
  }

  .stat-title {
    font-size: 22px; 
    margin-bottom: 5px;
    color: #ffffff;
    line-height: 1.2;
  }

  .stat-value {
    font-size: 20px;
    color: #ffffffb5;
  }

  #af-tier-value {
    color: #63e963;
  }

.pink-icon.tooltip-icon {
    display: inline-block;
    background: #ff66c4;
    color: #fff;
    font-size: 12px;
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    border-radius: 50%;
    margin-left: 4px;
    cursor: pointer;
  }
  
  .custom-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.96);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    pointer-events: none;
    font-size: 14px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 200px; 
    opacity: 0;    
    transition: opacity 0.2s ease; 
    z-index: 9999;
  }
  @media screen and (max-width: 992px) {
    .affiliate-heading {
      font-size: 40px;
    }
    .total-balance-box {
      width: 300px;
      padding: 40px;
    }
    .total-balance-title {
      font-size: 28px;
    }
    .total-balance-amount {
      font-size: 40px;
    }
    .withdraw-btn {
      font-size: 18px;
      padding: 12px 24px;
    }
    .stats-link-btn {
        font-size: 15px;
        padding: 12 24px;
    }
    .ref-man-title {
      font-size: 28px;
    }
    .ref-man-link {
      font-size: 18px;
    }
    .stats-container h2 {
      font-size: 30px;
    }
    .stat-card h3 {
      font-size: 22px;
    }
    .stat-card p {
      font-size: 16px;
    }
    .stats-grid {
      grid-template-columns: 1fr;
    }
    .referrals-box {
      max-width: 350px;
    }
  }
  @media screen and (max-width: 576px) {
    .affiliate-heading {
      font-size: 32px;
    }
    .total-balance-box {
      width: 260px;
      padding: 30px;
    }
    .total-balance-title {
      font-size: 24px;
    }
    .total-balance-amount {
      font-size: 34px;
    }
    .withdraw-btn {
      font-size: 16px;
      padding: 10px 20px;
    }
    .stats-link-btn {
        font-size: 15px;
        padding: 10px 20px;
    }
    .ref-man-title {
      font-size: 24px;
    }
    .ref-man-link {
      font-size: 16px;
      padding: 6px 12px;
    }
    .stats-container h2 {
      font-size: 24px;
    }
    .stat-card {
      padding: 20px;
    }
    .stat-card h3 {
      font-size: 20px;
    }
    .stat-card p {
      font-size: 14px;
    }
    .referrals-box {
      width: 90%;
      padding: 20px;
    }
    .referrals-box h3 {
      font-size: 20px;
    }
    .referrals-box li {
      font-size: 16px;
    }
    .pink-icon {
        top: -4px;
    }
    .ref-man-link {
        width: 400px;
        font-size: 14px;
    }
  }
  @media screen and (max-width: 376px) {
    .ref-man-link {
        width: 350px;
        font-size: 12px;
        height: 35px;
    }
  }