@import url("https://fonts.googleapis.com/css2?family=Marcellus&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  /* Main Backgrounds */
  --color-bg-dark: #000000;
  --color-bg-card: #151515;

  /* Text Colors */
  --color-text-light: #ffffff;
  --color-text-secondary: #aaaaaa;

  /* Cyan Theme Accent Colors (Updated) */
  --color-primary-yellow: #75f8bc; /* Cyan Primary */
  --color-primary-yellow-dark: #01ba9a; /* Cyan Secondary */

  /* Buttons & UI Elements */
  --color-claim-btn: #333333;
  --color-claim-btn-text: #75f8bc;

  /* Layout & Spacing */
  --border-radius-lg: 12px;
  --border-radius-sm: 8px;
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 80px;
  --main-gap: 30px;

  /* Additional Theme Mappings */
  --primary-accent: #75f8bc;
  --secondary-accent: #01ba9a;
  --border-color: #1f1f1f;

  --top-banner-primary-dark: #021a1d;
  --top-banner-accent-light: #75f8bc;
  --top-banner-accent-dark: #01ba9a;
  --top-banner-green-grad: linear-gradient(135deg, #75f8bc, #01ba9a);
  --top-banner-glow: linear-gradient(
    0deg,
    transparent,
    transparent,
    #01ba9a,
    #75f8bc,
    #75f8bc
  );
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Red Hat Display";
  background: var(--color-bg-dark);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: default;
  margin: 0;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;

  /* background:
    radial-gradient(
      circle at center,
      rgba(4, 110, 110, 0.163) 0%,
      transparent 70%
    ),
    radial-gradient(
      circle at center,
      rgba(4, 110, 110, 0.216) 20%,
      transparent 80%
    ),
    radial-gradient(
      circle at center,
      rgba(4, 110, 110, 0.133) 40%,
      transparent 90%
    ); */
  background:
    radial-gradient(
      circle at center,
      rgba(117, 248, 189, 0.088) 0%,
      transparent 70%
    ),
    radial-gradient(
      circle at center,
      rgba(1, 186, 154, 0.2) 20%,
      transparent 80%
    ),
    radial-gradient(
      circle at center,
      rgba(117, 248, 189, 0.068) 40%,
      transparent 90%
    );
}

@keyframes subtleGlow {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

a {
  text-decoration: none;
  color: inherit;
}

.value-large {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.note-small {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 10px;
}

.section-title-sm {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.section-title-sm i {
  margin-right: 8px;

  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}
button,
.start-farming-btn,
.claim-roi-btn,
.withdraw-btn {
  font-family: "Aventa";
}

/* --- 1. Header/Navbar (Always Visible) --- */
.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;

  /* background: linear-gradient(
    135deg,
    rgba(23, 14, 10, 0.9) 0%,
    rgba(26, 77, 75, 0.971) 100%
  ); */
  background: linear-gradient(
    135deg,
    rgba(15, 15, 15, 0.9) 0%,
    rgba(11, 102, 84, 0.905) 100%
  );
  border-bottom: 1px solid #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-icon {
  margin-right: 5px;
  width: 30px;
  height: 30px;
  background: var(--color-primary-yellow);
  border-radius: 4px;
}
.logo-image {
  height: 80px;
  width: auto;
  margin-right: 10px;
  display: block;
  object-fit: contain;
}

@media (max-width: 480px) {
  .logo-image {
    height: 80px;
  }
}

.logo-text {
  color: var(--color-text-light);
  margin-left: 5px;
  white-space: nowrap;
}

.logo-text strong {
  font-weight: 800;
  color: var(--color-primary-yellow);
}

.header-right-actions {
  display: flex;
  align-items: center;
}

.connect-wallet-btn {
  background: linear-gradient(
    90deg,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  );
  color: var(--color-bg-dark);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 0.2s,
    box-shadow 0.3s;
}

.connect-wallet-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(117, 248, 188, 0.4);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s;
}

.menu-toggle:hover {
  color: var(--color-primary-yellow);
}

/* --- 2. Main Layout Container --- */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

/* --- 3. Sidebar Navigation --- */
.sidebar {
  width: var(--sidebar-width);

  background: linear-gradient(
    135deg,
    rgba(23, 14, 10, 0.9) 0%,
    rgba(26, 77, 75, 0.971) 100%
  );
  border-right: 1px solid #1a1a1a;
  padding: 20px 0;
  position: sticky;
  top: 70px;
  flex-shrink: 0;
  transition:
    width 0.3s ease-in-out,
    transform 0.3s ease-in-out;
  z-index: 900;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

/* Toggle Button Container */
.sidebar-header {
  display: flex;
  justify-content: flex-end;
  padding: 0 20px 10px 0;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  transition:
    transform 0.3s,
    color 0.2s;
  display: block;
}

.sidebar-toggle:hover {
  color: var(--color-primary-yellow);
}

/* Collapsed State */
.sidebar.collapsed {
  width: var(--sidebar-width-collapsed);
  padding: 20px 0;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding-right: 0;
}

.sidebar.collapsed .sidebar-toggle i {
  transform: rotate(180deg);
}

.sidebar.collapsed .nav-link-item a {
  justify-content: center;
  padding: 15px 0;
}

.sidebar.collapsed .nav-link-item a span.text {
  opacity: 0;
  width: 0;
  transition: opacity 0.1s;
}

.sidebar.collapsed .nav-link-item a span.icon {
  margin-right: 0;
}

.sidebar.collapsed .nav-link-item.connect-mobile {
  display: none;
}

.nav-link-list {
  padding: 0;
  margin: 0;
}

.nav-link-item {
  list-style: none;
}

.nav-link-item.connect-mobile {
  display: none;
  padding: 15px 30px;
}

.nav-link-item.connect-mobile button {
  width: 100%;
  border-radius: var(--border-radius-sm);
}

.nav-link-item a {
  display: flex;
  align-items: center;
  padding: 15px 30px;
  color: var(--color-text-secondary);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link-item a span.icon {
  font-size: 1.2rem;
  margin-right: 15px;
  width: 20px;
  text-align: center;
  transition: transform 0.3s;
}

.nav-link-item a span.text {
  transition: opacity 0.3s;
}

.nav-link-item a:hover {
  background-color: rgba(117, 248, 188, 0.05);
  color: var(--color-primary-yellow);
}

.nav-link-item a:hover .icon {
  transform: scale(1.1);
}

.nav-link-item.active a {
  background: linear-gradient(
    90deg,
    rgba(117, 248, 188, 0.2) 0%,
    rgba(117, 248, 188, 0.05) 100%
  );
  color: var(--color-primary-yellow);
  font-weight: 700;
  border-left: 5px solid var(--color-primary-yellow);
  padding-left: 25px;
}

.nav-link-item:not(.active) a {
  border-left: 5px solid transparent;
}

/* --- 4. Main Content Area --- */
.main-content {
  flex-grow: 1;
  padding: var(--main-gap);
  width: calc(100% - var(--sidebar-width));
  transition: width 0.3s ease-in-out;
}

.main-content.sidebar-collapsed {
  width: calc(100% - var(--sidebar-width-collapsed));
}

.dashboard-header {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Layout for Aligning Columns --- */
.main-content-layout {
  display: flex;
  gap: var(--main-gap);
  flex-wrap: wrap;
  align-items: flex-start;
}

.left-column-container {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: var(--main-gap);
  min-width: 300px;
}

.right-column-container {
  flex: 2 1 500px;
  display: flex;
  flex-direction: column;
  gap: var(--main-gap);
  min-width: 450px;
}

/* --- Card Styling --- */

.tsdt-price-card,
.farming-stats-left {
  margin-bottom: 0;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 0px;
}

.balance-card {
  background: rgba(4, 103, 85, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(117, 248, 188, 0.15);
  padding: 20px;
  border-radius: var(--border-radius-lg);
  transition: all 0.3s ease;
}
.balance-card::after {
  content: "";
  position: absolute;
  background:
    linear-gradient(18deg, #021a1d 0%, rgba(117, 248, 188, 0.15) 100%), #151515;
}

.balance-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(117, 248, 188, 0.1);
  border-color: var(--color-primary-yellow-dark);
}

.card-title {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.card-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.card-highlight {
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wallet-card .withdraw-btn {
  background: linear-gradient(
    to left,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  );
  color: black;
  border: none;
  padding: 8px 15px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 700;
  margin-top: 15px;
  transition: all 0.2s;
}

.wallet-card .withdraw-btn:hover {
  background: linear-gradient(
    to right,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  );
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(199, 131, 5, 0.3);
}

.tsdt-price-card {
  position: relative;
  padding: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(4, 103, 85, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.486);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tsdt-price-card:hover {
  border: 2px solid #01ba9a;
}

@keyframes rotate-border {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.price-overview {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.farming-info-highlight {
  border: 1px solid var(--color-primary-yellow-dark);
  padding: 10px;
  border-radius: var(--border-radius-sm);
  margin-top: 15px;
  margin-bottom: 15px;
  color: var(--color-text-light);
  background-color: #222222;
  font-size: 1rem;
}

.farming-info-highlight p {
  padding: 3px 0;
}

.farming-info-highlight strong {
  color: var(--color-primary-yellow);
}

.start-farming-btn {
  background: linear-gradient(
    to left,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  );
  color: var(--color-bg-dark);
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 700;
  margin: 15px 0 10px 0;
  width: 100%;
  transition: all 0.2s;
}

.start-farming-btn:hover {
  background: linear-gradient(
    to right,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  );
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(117, 248, 188, 0.3);
}

.contract-address {
  background: #1a1a1a;
  padding: 12px 20px;
  margin: 1rem auto;
  border-radius: 10px;
  border: 1px dashed rgba(117, 248, 188, 0.3);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  transition: all 0.3s ease;
}

.contract-address:hover {
  box-shadow: 0 6px 20px rgba(117, 248, 188, 0.4);
  border-color: #75f8bc;
}

.label {
  color: #75f8bc;
  font-weight: bold;
  margin-right: 15px;
  min-width: 90px;
  font-size: 14px;
}

.contractText {
  flex: 1;
  font-size: 14px;
  color: #eeeeee;

  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.contract-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.contract-actions i {
  cursor: pointer;
  color: #75f8bc;
  margin-left: 12px;
  transition: all 0.2s ease;
}

.contract-actions i:hover {
  color: #75f8bc;
  transform: scale(1.1);
}

#copyPopup {
  visibility: hidden;
  background-color: #75f8bc;
  color: #000000;
  text-align: center;
  border-radius: 6px;
  padding: 10px 20px;
  position: fixed;
  z-index: 100;
  top: 90px;
  right: 10px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(117, 248, 188, 0.4);
  transition: 0.4s;
  opacity: 0;
  transform: translateY(-20px);
}

#copyPopup.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .contract-address {
    width: 95%;
    padding: 10px 15px;
  }
  .contractText {
    font-size: 12px;
  }
  .label {
    min-width: 70px;
    font-size: 12px;
  }
}

.farming-stats-left {
  flex-grow: 1;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #1a1a1a;
}

.stat-row:hover {
  border-bottom-color: rgba(250, 204, 21, 0.3);
}

.stat-row:last-of-type {
  border-bottom: none;
}

.stat-row .label {
  display: flex;
  align-items: center;
  color: var(--color-text-secondary);
}

.stat-row .label span {
  font-size: 1.2rem;
  margin-right: 10px;
  color: var(--color-primary-yellow);
}

.stat-row i {
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.claim-roi-btn {
  background: linear-gradient(
    to right,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  );
  color: var(--color-bg-dark);
  border: none;
  padding: 8px 15px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 700;
  margin-top: 15px;
  width: 100%;
  transition: all 0.2s;
}

.claim-roi-btn:hover {
  background: linear-gradient(
    to left,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(250, 204, 21, 0.3);
}

/* --- Top Farming Table Card --- */
.top-farming-box {
  /* background-color: var(--color-bg-card); */
  background: rgba(4, 103, 85, 0.2); /* Transparent background */
  backdrop-filter: blur(10px); /* Piche ka area blur ho jayega */
  border: 1px solid rgba(117, 248, 188, 0.1);
  padding: 20px;
  border-radius: var(--border-radius-lg);
  /* border: 1px solid #1a1a1a; */
  order: 1;
}

.top-farming-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 15px;
}

.top-farming-title {
  cursor: pointer;
  display: flex;
  align-items: center;
}
.section-title-sm {
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fa-seedling {
  background: linear-gradient(to bottom, #a8e063, #56ab2f);

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 50px;
}
.top-farming-title .section-title-sm {
  margin-bottom: 0;
}

.collapse-icon {
  margin-left: 15px;
  color: var(--color-primary-yellow);
  transition: transform 0.3s ease;
}

.collapse-icon.rotated {
  transform: rotate(-180deg);
}

.top-farming-header .rewards-info {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.top-farming-header .rewards-info strong {
  /* color: var(--color-primary-yellow); */
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* Collapsible Table Container  */
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease-out;
  padding-top: 0;
  color: var(--color-text-light);
}

.collapsible-content.expanded {
  max-height: 1000px;
  padding-top: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.top-farming-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 650px;
}

.top-farming-table th {
  text-align: left;
  padding: 12px 10px;
  color: var(--color-primary-yellow);
  border-bottom: 1px solid rgba(117, 248, 188, 0.3);
  text-transform: uppercase;
  white-space: nowrap;
}

.top-farming-table td {
  padding: 15px 10px;
  border-bottom: 1px solid #0a0a0a;
  vertical-align: middle;
  white-space: nowrap;
}

.top-farming-table tr:hover {
  background-color: rgba(117, 248, 188, 0.05);
}

/* Rank Icons */
.table-rank-icon {
  font-size: 1.5rem;
  margin-right: 5px;
  vertical-align: middle;
}

.rank-1-icon {
  color: #ffd700;
}
.rank-2-icon {
  color: #c0c0c0;
}
.rank-3-icon {
  color: #cd7f32;
}

/* Desktop Alignments */
.top-farming-table th:nth-child(1),
.top-farming-table td:nth-child(1) {
  text-align: left;
}
.top-farming-table th:nth-child(3),
.top-farming-table td:nth-child(3) {
  text-align: center;
}
.top-farming-table th:nth-child(4),
.top-farming-table td:nth-child(4) {
  text-align: center;
}
.top-farming-table th:nth-child(5),
.top-farming-table td:nth-child(5) {
  text-align: center;
}
.top-farming-table th:nth-child(6),
.top-farming-table td:nth-child(6) {
  text-align: right;
}

/* Column Widths */
.top-farming-table .col-sr {
  width: 5%;
}
.top-farming-table .col-address {
  width: 35%;
}
.top-farming-table .col-percentage {
  width: 15%;
}
.top-farming-table .col-amount {
  width: 18%;
}
.top-farming-table .col-eligibility {
  width: 15%;
}
.top-farming-table .col-date {
  width: 12%;
}

/* Mobile Specific Fix */
@media screen and (max-width: 768px) {
  .top-farming-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .top-farming-table {
    font-size: 0.85rem;
  }
}

/* --- Referrals Card --- */
.referrals-card {
  background: linear-gradient(
    90deg,
    #0a0a0a,
    rgba(117, 248, 188, 0.15),
    #0a0a0a
  );
  padding: 20px;
  border-radius: var(--border-radius-lg);
  order: 3;
  border: 1px solid var(--color-primary-yellow-dark);
}

.referrals-card .section-title-sm {
  color: var(--color-text-light);
  margin-bottom: 5px;
}

.referral-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: transparent;
  padding: 15px;
  border-radius: var(--border-radius-sm);
}

.referral-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.referral-stat-item .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-yellow);
  line-height: 1;
}

.referral-stat-item .label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 5px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 800;
}

.sidebar-overlay.active {
  display: block;
}

/* --- Responsiveness (Media Queries) --- */

@media (max-width: 1024px) {
  .sidebar {
    width: 250px;
  }

  .sidebar-header {
    display: none;
  }

  .main-content {
    width: calc(100% - 250px);
    padding: 20px;
  }

  .main-content.sidebar-collapsed {
    width: calc(100% - 250px);
  }

  .balance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .referral-stats {
    flex-direction: column;
    gap: 15px;
  }

  .top-farming-table {
    font-size: 0.8rem;
  }

  .top-farming-table th:nth-child(2),
  .top-farming-table td:nth-child(2) {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .top-navbar {
    padding: 10px 15px;
    height: 60px;
  }

  .top-navbar .connect-wallet-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
    font-size: 1.5rem;
  }

  .header-right-actions {
    justify-content: flex-end;
  }

  .sidebar-header {
    display: none;
  }

  .nav-link-item.connect-mobile {
    display: list-item;
  }

  .sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    transform: translateX(-100%);
    width: 280px;
    height: calc(100vh - 60px);
    z-index: 1000;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .sidebar.collapsed {
    width: 280px;
  }

  .main-content {
    width: 100%;
    padding: 15px;
  }

  .main-content.sidebar-collapsed {
    width: 100%;
  }

  .main-content-layout {
    flex-direction: column;
    gap: 15px;
  }

  .left-column-container,
  .right-column-container {
    width: 100%;
    min-width: initial;
    gap: 15px;
  }

  .balance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .dashboard-header {
    font-size: 1.5rem;
  }

  .top-farming-table {
    display: block;
  }
  .top-farming-table th,
  .top-farming-table td {
    padding: 10px 5px;
  }

  .top-farming-table .col-sr {
    width: 10%;
  }
  .top-farming-table .col-address {
    width: 45%;
  }
  .top-farming-table .col-amount {
    width: 30%;
  }
  .top-farming-table .col-eligibility {
    width: 15%;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1rem;
  }
  .main-content {
    padding: 10px;
  }
  .tsdt-price-card {
    padding: 15px;
  }
  .price-overview {
    font-size: 1.5rem;
  }
  .balance-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .balance-card {
    padding: 15px;
  }
  .value-large {
    font-size: 1.2rem;
  }
  .referral-stat-item .value {
    font-size: 1.2rem;
  }
  .referral-stat-item .label {
    font-size: 0.7rem;
  }
}

/* Prefixed Rank Bonus Container */
.dash-rank-container {
  border: 1px solid #333;
  border-radius: 10px;
  margin-top: 20px;
  /* background-color: #000; */
  overflow: hidden;
  width: 100%;
  order: 3;
}

.dash-rank-header {
  padding: 15px 20px;
  /* background: #000; */
  background: rgba(4, 103, 85, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);

  cursor: pointer;
  border-bottom: 1px solid #222;
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  transition: background 0.3s;
}

.dash-rank-header:hover {
  /* background: #0a0a0a; */
}

.dash-toggle-icon {
  margin-right: 12px;
  transition: transform 0.3s ease;
  color: #75f8bc;
}

.dash-toggle-icon.dash-rotated {
  transform: rotate(-180deg);
}

.dash-rank-grid {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  padding: 20px;
  background: rgba(4, 103, 85, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-hidden {
  display: none !important;
}

/* Individual Card Styling */
.dash-status-card {
  border: 1px solid #222;
  border-radius: 12px;
  padding: 18px;
  background: #111;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-status-card:hover {
  border-color: #facc15;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(250, 204, 21, 0.1);
}

.dash-id-label {
  /* color: #fff; */
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 12px;
  border-bottom: 1px solid #222;
  padding-bottom: 8px;
  letter-spacing: 0.5px;
}

.dash-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin: 6px 0;
  color: #aaa;
}

.dash-info-row span {
  color: #75f8bc;
  font-weight: 600;
}

@media (max-width: 600px) {
  .dash-rank-grid {
    grid-template-columns: 1fr;
    padding: 15px;
  }
}

/* referal styling */
.ref-container {
  width: 100%;
  max-width: 1000px;
  order: 2;
}

.ref-title {
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* The Bar - Solid Gold Color */
.ref-bar {
  background: rgba(4, 103, 85, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 12px;
  padding: 24px 40px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover State */
.ref-bar:hover {
  border: 1px solid #75f8bc;
  box-shadow: 0 8px 25px rgba(117, 248, 188, 0.3);
  transform: translateY(-3px);
}

.ref-group {
  display: flex;
  align-items: center;
}

.ref-label {
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: 15px;
}

/* Spacing for the arrow */
.ref-arrow {
  color: var(--color-primary-yellow);
  font-size: 20px;
  margin: 0 35px;
}

.dash-header-title {
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ref-value {
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ref-bar {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
  }

  .ref-group {
    width: 100%;
    justify-content: space-between;
  }

  .ref-arrow {
    margin: 0 10px;
    display: none;
  }
}
/* ====================================== */
/* ===== pool winner page styling start======= */
/* ====================================== */

.pool-winners-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  color: var(--color-text-light);
}
.pool-section {
  background: linear-gradient(
    135deg,
    rgba(23, 14, 10, 0.9) 0%,
    rgba(26, 77, 75, 0.971) 100%
  );
  border-right: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 0 20px rgba(255, 235, 59, 0.05);
  margin-bottom: 30px;
}
.pool-title {
  color: #75f8bc;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
}
.pool-info-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 1.1em;
  font-weight: 600;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
}
.pool-rewards {
  color: #75f8bc;
}
.pool-carry-forward {
  color: #75f8bc;
}
.pool-history-responsive {
  overflow-x: auto;
  border-radius: 8px;
}
.pool-history-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #1f1f1f;
}
.pool-history-table th,
.pool-history-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  font-size: 0.9em;
}
.pool-history-table th {
  background-color: #443300;
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  font-weight: bold;
  text-transform: uppercase;
}
.pool-history-table tbody tr:nth-child(even) td {
  background-color: #2a2a2a;
}
.pool-sr-column {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pool-history-table img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.pool-history-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.pool-history-controls input[type="date"] {
  padding: 8px;
  border-radius: 4px;
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #022b26;
}
.won-highlight {
  color: #75f8bc;

  font-weight: bold;
}
/* ====================================== */
/* ===== pool winner page styling ends======= */
/* ====================================== *

 /* --------------------------------- */
/* --- passive page and table styling --- */
/* --------------------------------- */
.passive-main-content {
  width: 100%;
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;
  overflow-x: hidden;
}

h1 {
  font-size: 2.5em;
  color: #75f8bc;
  margin-bottom: 20px;
}

/* --------------------------------- */
/* --- DOWNLINE BUSINESS SECTION LAYOUT --- */
/* --------------------------------- */
.passive-downline-container {
  display: flex;
  gap: 20px;
}
.passive-transactions-panel {
  flex: 1;
  min-width: 0;
}

/* Left Panel: Levels Navigation */
.passive-downline-levels-panel {
  width: 300px;
  flex-shrink: 0;
  padding: 20px;
  /* background: linear-gradient(to bottom, #a87a00 0%, #4d3700 100%); */

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.passive-downline-levels-panel h2 {
  font-size: 1.8em;
  color: #75f8bc;
  margin-top: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

/* Level Item Container */
.passive-level-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 5px;
}

/* Styling for the Gold-Themed Summary Box (Top Left) */
/* .passive-total-bonus-box {
  background-color: #ff833b;
  color: #000;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 1.1em;
  font-weight: bold;
}

.passive-total-bonus-box strong {
  display: block;
  font-size: 1.4em;
  margin-top: 5px;
  color: #222;
} */

/* Individual Level/Item Style */
.passive-downline-level-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.1s;
  border: 1px solid transparent;
}

.passive-downline-level-item:hover {
  background-color: rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.passive-downline-level-item.active {
  border: 1px solid #75f8bc;
  background-color: rgba(117, 248, 188, 0.1);
}

/* Left-aligned for Level, Right-aligned for Earning */
.passive-downline-level-item span:first-child {
  font-weight: bold;
  color: #ffeb3b;
  text-align: left;
}

.passive-downline-level-item span:last-child {
  text-align: right;
  font-size: 0.9em;
  color: #ccc;
}

/* --------------------------------- */
/* --- RIGHT PANEL: TRANSACTIONS (TABLE STYLES) --- */
/* --------------------------------- */
.passive-transactions-panel {
  flex-grow: 1;
  padding: 20px;
  /* background-color: #1a1a1a; */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

/* .passive-transactions-panel h2 {
  font-size: 1.8em;
  color: #ffeb3b;
  margin-top: 0;
  margin-bottom: 20px;
} */

#no-transactions {
  text-align: center;
  padding: 50px;
  color: #ffeb3b;
  font-style: italic;
  display: none;
}

/* --------------------------------- */
/* --- RESPONSIVE ADJUSTMENTS --- */
/* --------------------------------- */
@media (max-width: 900px) {
  .passive-downline-container {
    flex-direction: column;
  }
  .passive-downline-levels-panel {
    width: 100%;
  }
  .passive-level-list {
    max-height: 300px;
  }
  .passive-transactions-panel {
    width: 100%;
  }
}

/* --------------------------------- */
/* --- passive page and table styling ends --- */
/* --------------------------------- */

/* --------------------------------- */
/* --- team page and table styling start --- */
/* --------------------------------- */

.teams-main-content {
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
}
.teams-title {
  font-size: 2.2em;
  /* color: #facc15; */
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  margin-bottom: 5px;
  font-weight: 800;
}
.teams-pv-total {
  font-size: 2.5em;
  /* color: #ffffff; */
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

/* LEVEL BUTTONS */
.teams-level-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(
    135deg,
    rgba(23, 14, 10, 0.9) 0%,
    rgba(26, 77, 75, 0.971) 100%
  );
  padding: 20px;
  border-radius: 8px;
  justify-content: center;
  margin-bottom: 30px;
}
.teams-level-button {
  flex: 1 1 150px;

  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  color: #000;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 10px 5px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 600;
}
.teams-level-button:hover {
  transform: translateY(-3px);
  background: linear-gradient(
    to top,
    rgba(1, 186, 154, 0.6) 0%,
    rgba(117, 248, 188, 0.7) 100%
  );
}
.teams-level-button.teams-active {
  border-color: #75f8bc;
  background: linear-gradient(
    to left,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  );
  color: #121212;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

/* MOBILE UI */
.teams-mobile-selector {
  display: none;
  background: #2a2a2a;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.teams-custom-dropdown {
  width: 100%;
  padding: 12px;
  background: #1f1f1f;
  color: #fff;
  border: 2px solid #facc15;
  border-radius: 6px;
}
.teams-mobile-card {
  background: linear-gradient(
    to left,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  );
  padding: 15px;
  color: #000;
  border-radius: 8px;
  text-align: center;
  margin-top: 10px;
  border: 1px solid #facc15;
}

/* CONTROLS AREA */
.teams-table-panel {
  background: linear-gradient(
    135deg,
    rgba(23, 14, 10, 0.9) 0%,
    rgba(26, 77, 75, 0.971) 100%
  );
  color: var(--color-text-light);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #333;
}
.teams-top-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}
.teams-controls-left-group {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  flex-wrap: wrap;
  flex: 1;
}

.teams-date-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.teams-date-filter div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.teams-search-input,
.teams-select-entries,
.teams-date-filter input {
  padding: 10px;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #2a2a2a;
  color: #ffffff;
  outline: none;
}
.teams-search-input:focus {
  border-color: #75f8bc;
}
.teams-search-input {
  min-width: 250px;
}

/* STRIPED TABLE */
.teams-table-responsive {
  overflow-x: auto;
  margin-top: 10px;
}
.teams-downline-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}
.teams-downline-table th {
  background: #2a2a2a;
  color: #75f8bc;
  padding: 15px;
  text-align: left;
  font-size: 0.9em;
}
.teams-downline-table td {
  padding: 15px;
  border-bottom: 1px solid #333;
  font-size: 0.9em;
}

/* Nth-child Striping */
.teams-downline-table tbody tr:nth-child(odd) {
  background-color: #1f1f1f;
}
.teams-downline-table tbody tr:nth-child(even) {
  background-color: #262626;
}
.teams-downline-table tbody tr:hover {
  background-color: #333;
}

.teams-amount-pv {
  color: #75f8bc;
  font-weight: bold;
}
.teams-action-btn {
  background: #333;
  color: #75f8bc;
  border: 1px solid #75f8bc;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.teams-action-btn:hover {
  background: #75f8bc;
  color: #000;
}

/* PAGINATION */
.teams-pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.teams-pagination-btn {
  background: #2a2a2a;
  color: #75f8bc;
  border: 1px solid #75f8bc;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}
.teams-pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #444;
  color: #666;
}

@media (max-width: 1024px) {
  .teams-level-container {
    display: none;
  }
  .teams-mobile-selector {
    display: block;
  }
}
@media (max-width: 768px) {
  .teams-top-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .teams-controls-left-group {
    flex-direction: column;
    align-items: stretch;
  }
  .teams-date-filter {
    flex-direction: row;
  }
  .teams-date-filter div {
    flex: 1;
  }
  .teams-search-input {
    width: 100%;
  }
}

/* --------------------------------- */
/* --- team page and table styling ends --- */
/* --------------------------------- */
/* --------------------------------- */
/* ---pool-winner page and table styling start --- */
/* --------------------------------- */

.pool-winners-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px;
}
.pool-section {
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 0 20px rgba(255, 235, 59, 0.05);
  margin-bottom: 30px;
}
.s {
  background: linear-gradient(90deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pool-title {
  background: linear-gradient(90deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
}
.pool-info-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 1.1em;
  font-weight: 600;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
}
.pool-rewards {
  color: #aaaaaa;
}
.pool-rewards strong {
  background: linear-gradient(90deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pool-carry-forward {
  color: #aaaaaa;
}
.pool-history-responsive {
  overflow-x: auto;
  border-radius: 8px;
}
.pool-history-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #1f1f1f;
}
.pool-history-table th,
.pool-history-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  font-size: 0.9em;
}
.pool-history-table th {
  background-color: #022b26;
  background: linear-gradient(90deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.2s;
}
.pool-history-table tbody tr:nth-child(even) td {
  background-color: #0f0e0e;
}
.pool-history-table tbody tr:nth-child(odd) td {
  background-color: #161616;
}
.pool-history-table tbody tr:hover td {
  background-color: #252525 !important;
}
.pool-sr-column {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pool-history-table img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.pool-history-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.pool-history-controls input[type="date"] {
  padding: 8px;
  border-radius: 4px;
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #443300;
}

/* --------------------------------- */
/* --- team page and table styling ends --- */
/* --------------------------------- */

/* --------------------------------- */
/* --- passive page and table styling --- */
/* --------------------------------- */
.passive-main-content {
  width: 100%;
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;
  overflow-x: hidden;
}

h1 {
  font-size: 2.5em;
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

/* --------------------------------- */
/* --- DOWNLINE BUSINESS SECTION LAYOUT --- */
/* --------------------------------- */
.passive-downline-container {
  display: flex;
  gap: 20px;
}
.passive-transactions-panel {
  flex: 1;
  min-width: 0;
}

/* Left Panel: Levels Navigation */
.passive-downline-levels-panel {
  width: 300px;
  flex-shrink: 0;
  padding: 20px;
  background: linear-gradient(
    225deg,
    rgba(23, 14, 10, 0.9) 0%,
    rgba(26, 77, 75, 0.971) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.passive-downline-levels-panel h2 {
  font-size: 1.8em;
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

/* Level Item Container */
.passive-level-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 5px;
}
.passive-total-bonus-box {
  background: linear-gradient(
    15deg,
    rgba(23, 14, 10, 0.9) 0%,
    rgba(26, 77, 75, 0.971) 100%
  );

  color: var(--color-text-light);
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 1.1em;
  font-weight: bold;
}

.passive-total-bonus-box strong {
  display: block;
  font-size: 1.4em;
  margin-top: 5px;
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Individual Level/Item Style */
.passive-downline-level-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.1s;
  border: 1px solid transparent;
}

.passive-downline-level-item:hover {
  background-color: rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.passive-downline-level-item.active {
  border: 1px solid #c68727;
  background-color: rgba(255, 180, 59, 0.1);
}

/* Left-aligned for Level, Right-aligned for Earning */
.passive-downline-level-item span:first-child {
  font-weight: bold;
  background: linear-gradient(180deg, #facc15, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: left;
}

.passive-downline-level-item span:last-child {
  text-align: right;
  font-size: 0.9em;
  color: #ccc;
}

/* --------------------------------- */
/* --- RIGHT PANEL: TRANSACTIONS (TABLE STYLES) --- */
/* --------------------------------- */
.passive-transactions-panel {
  flex-grow: 1;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(23, 14, 10, 0.9) 0%,
    rgba(26, 77, 75, 0.971) 100%
  );
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.passive-transactions-panel h2 {
  font-size: 1.8em;
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 0;
  margin-bottom: 20px;
}

#no-transactions {
  text-align: center;
  padding: 50px;
  color: #ffeb3b;
  font-style: italic;
  display: none;
}

/* --------------------------------- */
/* --- RESPONSIVE ADJUSTMENTS --- */
/* --------------------------------- */
@media (max-width: 900px) {
  .passive-downline-container {
    flex-direction: column;
  }
  .passive-downline-levels-panel {
    width: 100%;
  }
  .passive-level-list {
    max-height: 300px;
  }
  .passive-transactions-panel {
    width: 100%;
  }
}

/* banner */

/* Desktop/Laptop Height: 300px */
.top-banner-wrapper {
  position: relative;
  width: 95%;
  max-width: 1200px;
  height: 300px; /* Fixed Height as requested */
  display: flex;
  margin: 80px auto;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-sizing: border-box;
}

.top-banner-animated-bg {
  position: absolute;
  inset: 0;
  background: var(--top-banner-primary-dark);
  border-radius: 24px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.top-banner-animated-bg::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 600%;
  background: var(--top-banner-glow);
  top: -250%;
  left: -25%;
  animation: topBannerRotate 4s linear infinite;
}

.top-banner-animated-bg::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--top-banner-primary-dark);
  border-radius: 21px;
}

@keyframes topBannerRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.top-banner-content-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  padding: 0 50px;
  align-items: center;
  z-index: 5;
  box-sizing: border-box;
}

.top-banner-left-box {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-banner-main-prod {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.7));
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(-40px); /* Desktop floating effect */
  animation: topBannerImagePulse 3s ease-in-out infinite;
}

@keyframes topBannerImagePulse {
  0%,
  100% {
    transform: perspective(1000px) rotateY(10deg) translateY(-40px);
  }
  50% {
    transform: perspective(1000px) rotateY(15deg) translateY(-55px);
  }
}

.top-banner-wrapper:hover .top-banner-main-prod {
  animation-play-state: paused;
  transform: translateY(-50px) scale(1.05);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 20px rgba(117, 248, 188, 0.4));
}

.top-banner-right-box {
  flex: 1.5;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.top-banner-title-small {
  display: block;
  font-size: 1.1rem;
  background: var(--top-banner-green-grad);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
}

.top-banner-title-large {
  display: block;
  font-size: 2.8rem;
  color: #fff;
  font-weight: 900;
  line-height: 1.1;
  margin: 5px 0 15px 0;
}

.top-banner-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 25px;
}

.top-banner-stat-item {
  display: flex;
  flex-direction: column;
}

.top-banner-stat-label-top {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}

.top-banner-stat-val {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--top-banner-green-grad);
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1;
}

.top-banner-stat-label-bottom {
  font-size: 0.8rem;
  color: #fff;
  font-weight: 600;
  margin-top: 5px;
  letter-spacing: 0.5px;
}

.btn-stake-now {
  background: var(--top-banner-green-grad);
  color: #021a1d;
  padding: 15px 35px;
  border-radius: 12px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(1, 186, 154, 0.3);
  border: none;
  cursor: pointer;
}
.btn-stake-now:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 15px 35px rgba(1, 186, 154, 0.6),
    0 0 20px rgba(117, 248, 188, 0.5);
  filter: brightness(1.1);
}

/* Tablet and Mobile adjustments */
@media (max-width: 992px) {
  .top-banner-wrapper {
    height: auto; /* Allow height to grow on smaller screens */
    min-height: 300px;
  }
  .top-banner-title-large {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .top-banner-wrapper {
    margin: 40px auto;
    width: 92%;
  }
  .top-banner-content-container {
    flex-direction: column;
    padding: 40px 20px;
  }
  .top-banner-left-box {
    height: 180px;
    margin-bottom: 20px;
  }
  .top-banner-main-prod {
    max-width: 200px;
    transform: translateY(0);
    animation: none; /* Stops floating on mobile for stability */
  }
  .top-banner-right-box {
    padding-left: 0;
    align-items: center;
    text-align: center;
  }
  .top-banner-stats {
    justify-content: center;
    gap: 20px;
  }
}
