/* --- BODY, HEADER, and HOME SECTION (Keeping original green theme) --- */

body {
  margin: 0px;
  padding: 0px;
  width: 100%;
  min-height: 100vh;
  background-color: #b0dac2; /* LIGHT MINT GREEN BACKGROUND */
  font-family: Arial, sans-serif;
  color: #333;
}

.test {
  background: #06581f; /* DARK GREEN HEADER */
  color: #fdfdfd;
  padding: 10px;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.home {
  padding: 20px;
  text-align: center;
  background-color: #b0dac2; /* Keep HOME section background the same as body */
  margin-bottom: 0; /* Remove margin to integrate smoothly with products */
}
.home h1 {
  color: #06581f;
  margin-bottom: 10px;
  font-size: 24px;
}
.home p {
  color: #555;
  line-height: 1.5;
}

/* --- PRODUCTS SECTION STYLES (Focusing on the cards structure) --- */

.Products {
  background-color: #053002; /* WHITE background for the product cards area */
  padding-bottom: 80px;
  padding-top: 15px; /* Added some top padding for spacing */
}

/* Tab Bar Styling (Product/Record) */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  background-color: transparent; /* Transparent background */
}

.product-tabs .tab {
  background-color: #eee;
  color: #555;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.product-tabs .tab.active {
  background: linear-gradient(to right, #ffc107, #ffa000); /* ORANGE gradient for active tab */
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Product List Container */
.product-list {
  padding: 0 15px;
}

/* General Product Card Styling */
.product-card {
  background-color: #4fe55139;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
  color: #fdf;
}

/* Featured Card (Star Investment) - Matches the orange design */
.featured-card {
  background: none;
  padding: 0;
  box-shadow: none;
  margin-top: 20px;
  margin-bottom: 20px;
  display: block;
  position: relative;
}

.featured-card .featured-bg {
    background: linear-gradient(to right, #ffc107, #ffa000);
    border-radius: 10px;
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(255, 160, 0, 0.3);
    transform: scale(1.02);
}

.featured-card .card-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 20px;
}

.featured-card .product-title {
    color: #fff;
    margin-top: 0;
    font-size: 22px;
}

.featured-card .product-details p {
    color: #fff;
    margin: 5px 0;
}
.featured-card .product-details p span {
    color: #fff;
}

.featured-card .product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}
.featured-card .product-actions .price {
    font-size: 16px;
    color: #fff;
}
.featured-card .product-actions .price span {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}
.featured-card .invest-button {
    background: #06581f; /* Dark green button in the featured card */
    padding: 10px 25px;
    border-radius: 10px;
    outline: none;
    color: Yellow;
}



/* Individual Product Card (Fuel Oil, Gasoline, etc.) */
.product-card .product-image-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.product-card .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.product-card .online-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 9px;
  padding: 3px 5px;
  border-radius: 3px;
  transform: translateX(25%) translateY(25%);
  white-space: nowrap;
}

.product-card .income-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 10px;
  font-size: 12px;
}

.product-card .income-details p {
    line-height: 1.2;
    margin-bottom: 0;
    font-size: 12px;
    color: Yellow;
    text-align: center;
    flex-basis: 30%;
}
.product-card .income-details p span {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.product-card .income-details .invest-button.small {
  background: linear-gradient(to right, #fff, #bbb); /* Orange button */
  padding: 6px 15px;
  font-size: 14px;
  align-self: flex-end;
  text-transform: uppercase;
  outline: none;
  border-radius: 10px;
  border: none;
  color: #1c3903;
}

.product-card .product-title {
  color: #ffffff;
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 5px;
  font-weight: bold;
}
.product-card .price {
    font-size: 14px;
    margin: 5px 0;
}
.product-card .price span {
    color: #ff9800;
    font-size: 16px;
    font-weight: bold;
}


/* --- FOOTER BAR STYLES (REVERTED TO DARK GREEN THEME) --- */

.foot-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #06581f; /* DARK GREEN FOOTER (ORIGINAL) */
  color: #b0dac2; /* LIGHT MINT GREEN/GREY TEXT (ORIGINAL INACTIVE) */
  border-top: 1px solid grey;
  position: fixed;
  bottom: 0px;
  width: 100%;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  z-index: 100;
}
.foot-bar .nav {
  text-align: center;
  padding: 8px 0px 5px 0px;
  font-size: 12px;
  position: relative;
  color: #b0dac2; /* Default inactive color */
}

/* Active Home link as per the first image */
.foot-bar .nav:nth-child(1) { /* Home link is the first child */
    color: #fdfdfd; /* WHITE text for the active link */
}
.foot-bar .nav:nth-child(1) .icon {
    /* Icon is already active/white via inheritance */
}

.foot-bar .nav .icon {
  font-size: 22px;
  margin-bottom: 3px;
}

.foot-bar div:hover {
  background-color: #197714; /* Darker green hover effect (as in original CSS) */
}

.notification-badge {
    position: absolute;
    top: 0px;
    right: 35%;
    background-color: red;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}


/* --- HOME SECTION DASHBOARD STYLES --- */

/* Adjust the general home section to make room for the dashboard */
.home {
  padding: 20px 0; /* Adjust vertical padding */
  text-align: center;
  background-color: #fdfdfd; /* White background for better contrast */
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.home h1 {
  /* Keep original styles */
}

/* Dashboard Container */
.home-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for the grid */
    gap: 15px; /* Spacing between grid items */
    padding: 15px 15px 0 15px;
    margin-top: 15px;
}

/* Individual Dashboard Option */
.dashboard-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dashboard-option:active {
    transform: scale(0.95); /* Click feedback */
}

.dashboard-option .icon {
    font-size: 28px;
    margin-bottom: 5px;
}

/* Optional: Different color scheme for primary financial actions */
.dashboard-option.financial {
    background-color: #e0f2f1; /* Light cyan/green background */
    color: #004d40;
}

.dashboard-option.financial .icon {
    color: #06581f; /* Dark green icon color */
}

/* Optional: Different color scheme for secondary features */
.dashboard-option.feature {
    background-color: #fff;
    color: #555;
}


/* --- ME SECTION STYLES --- */

.me {
    padding-bottom: 80px; /* Space for fixed footer */
    background-color: #f0f0f0; /* Light grey background for the whole section */
    min-height: 100vh; /* Ensure it covers the screen height */
}

/* Profile Header Styles */
.profile-header {
    background-color: #06581f; /* Dark green background */
    color: #fff;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* Space before the menu list starts */
}

.user-info {
    display: flex;
    align-items: center;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff; /* White background for the placeholder image */
    margin-right: 15px;
    border: 3px solid #b0dac2;
}

.username {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.id {
    font-size: 12px;
    opacity: 0.8;
    margin: 3px 0 0 0;
}

.level-badge {
    background-color: #ffc107; /* Orange/Yellow badge */
    color: #06581f;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

/* Menu List Styles */
.me-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fff; /* White background for the list block */
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    margin: 0 15px 15px 15px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee; /* Light separator line */
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.menu-item:last-child {
    border-bottom: none; /* No line after the last item */
}

.menu-item:hover {
    background-color: #fafafa;
}

.item-content {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.menu-item .icon {
    font-size: 20px;
    margin-right: 15px;
    color: #06581f; /* Dark green icon color */
}

.arrow {
    font-size: 16px;
    color: #ccc;
    font-weight: bold;
}

/* Separator styling (for visual grouping like FAQ break) */
.menu-item.separator {
    /* Style for items that introduce a new logical group */
    border-top: 10px solid #f0f0f0; /* Thicker light grey line to act as a separator */
    border-bottom: 1px solid #eee;
}

.menu-item.separator:first-child {
    border-top: none;
}

/* Sign Out button specific styling */
.menu-item.sign-out {
    color: #ff3b30; /* Red color for Sign Out */
    font-weight: bold;
}
.menu-item.sign-out .icon {
    color: #ff3b30; /* Red icon color */
}


/* --- MY PRODUCTS SECTION STYLES (User Portfolio) --- */

.my-products {
    padding: 15px;
    padding-bottom: 80px; /* Space for fixed footer */
    background-color: #f0f0f0; /* Light grey background */
    min-height: 100vh;
}

.section-title {
    font-size: 22px;
    color: #06581f;
    margin-bottom: 20px;
    padding-left: 5px;
    font-weight: bold;
}

/* Individual Investment Card */
.my-product-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    padding: 15px;
    border-left: 5px solid transparent; /* Placeholder for status border */
    transition: all 0.3s ease;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.product-name {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: bold;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
}

/* Status Colors */
.status-badge.active {
    background-color: #06581f; /* Dark Green */
}
.status-badge.finished {
    background-color: #ffc107; /* Orange/Yellow */
    color: #333;
}
.status-badge.pending {
    background-color: #9e9e9e; /* Grey */
}

/* Card Details */
.card-details p {
    font-size: 13px;
    color: #555;
    margin: 6px 0;
}

.card-details span {
    font-weight: bold;
    color: #000;
}

/* Highlight Investment and Daily Income */
.card-details .amount,
.card-details .income {
    color: #06581f; /* Dark Green highlight */
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.total-earned {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.total-earned span {
    font-size: 16px;
    font-weight: bold;
    color: #ff9800; /* Orange highlight for earnings */
}

/* Footer Buttons */
.card-footer button {
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.view-details-btn {
    background-color: #06581f; /* Dark Green */
    color: #fff;
}
.re-invest-btn {
    background: linear-gradient(to right, #ffc107, #ffa000); /* Orange Gradient */
    color: #fff;
}
.cancel-btn {
    background-color: #e0e0e0;
    color: #777;
}


/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.empty-state .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.empty-state p {
    color: #777;
    margin-bottom: 20px;
}

.invest-now-btn {
    background-color: #06581f;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
}


/* --- MY TEAM SECTION STYLES --- */

.my-team {
    padding-bottom: 80px;
    background-color: #f0f0f0;
    min-height: 100vh;
}

.team-metrics-header {
    background-color: #06581f; /* Dark green background */
    color: #fff;
    padding: 20px 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.team-metrics-header .section-title {
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.metric-box {
    text-align: center;
    padding: 10px 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.metric-value {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #ffc107; /* Orange highlight */
}

.metric-label {
    font-size: 11px;
    margin: 0;
    opacity: 0.8;
}

/* Invite Button */
.invite-button {
    width: 100%;
    background: linear-gradient(to right, #ffc107, #ffa000); /* Orange gradient button */
    color: #06581f; /* Dark green text for contrast */
    border: none;
    padding: 12px 0;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(255, 160, 0, 0.3);
}

/* Team Tabs */
.team-tabs {
    display: flex;
    justify-content: space-around;
    background-color: #fff;
    margin: 0 15px 15px 15px;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.team-tab {
    flex-grow: 1;
    text-align: center;
    padding: 10px 5px;
    font-size: 14px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.team-tab.active {
    background-color: #06581f; /* Dark green active tab */
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Team Member List */
.team-list {
    padding: 0 15px;
}

.team-member-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.member-info {
    display: flex;
    align-items: center;
}

.member-info .icon {
    font-size: 24px;
    margin-right: 10px;
    color: #06581f;
}

.member-info .username {
    font-weight: bold;
    font-size: 15px;
    color: #333;
    margin: 0;
}

.member-info .join-date {
    font-size: 11px;
    color: #777;
    margin: 0;
}

.member-performance {
    text-align: right;
    font-size: 12px;
}

.member-performance p {
    margin: 2px 0;
    color: #555;
}

.member-performance .amount {
    font-weight: bold;
    color: #ff9800; /* Orange for financial figures */
    font-size: 14px;
}

.member-performance .commission .amount {
    color: #06581f; /* Dark Green for commission highlight */
}


/* --- INITIAL HIDING OF SECTIONS --- */
.home, 
.Products, 
.my-products, 
.my-team, 
.me {
    display: none;
}


/* --- AUTH PAGE STYLES --- */

.auth-page {
    /* Ensures it covers the entire viewport */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #b0dac2; /* Light mint green background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 101; /* Ensure it covers all other content */
    padding: 20px;
    box-sizing: border-box;
}

.auth-container {
    width: 100%;
    max-width: 350px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

#auth-title {
    color: #06581f; /* Dark green text */
    margin-bottom: 20px;
    font-size: 24px;
}

#auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

#auth-submit-btn {
    width: 100%;
    background: linear-gradient(to right, #ffc107, #ffa000); /* Orange gradient button */
    color: #06581f; /* Dark green text for contrast */
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.2s;
}
#auth-submit-btn:hover {
    opacity: 0.9;
}

.auth-toggle {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

#toggle-to-register {
    color: #06581f; /* Dark green link */
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
}

/* Hide registration-only fields by default for the Login view */
#register-fields {
    display: none; 
}

/* You will need a .show class to override this via JS */
.show {
    display: block !important;
}


/* --- RECHARGE PAGE STYLES --- */

.recharge-page {
    padding: 20px 15px;
    background-color: #f7f7f7;
    min-height: 100vh;
    display: none; /* Hidden by default, shown by JS navigation */
}

.recharge-page .header {
    margin-bottom: 20px;
}

.balance-display {
    background-color: #06581f; /* Dark green */
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.balance-display p {
    margin: 5px 0;
}

.current-balance-value {
    font-size: 32px;
    font-weight: bold;
    color: #ffc107; /* Orange highlight */
}

.recharge-form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.recharge-form-container h3 {
    color: #06581f;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#recharge-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

#recharge-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

#recharge-submit-btn {
    width: 100%;
    background: linear-gradient(to right, #ffa000, #ffc107); /* Orange gradient */
    color: #06581f; 
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
}

.note {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff3cd; /* Light warning color */
    border: 1px solid #ffeeba;
    border-radius: 5px;
    color: #856404;
}

.note ul {
    list-style-type: disc;
    padding-left: 20px;
}


/* --- WITHDRAWAL PAGE STYLES --- */

.withdrawal-page {
    padding: 20px 15px;
    background-color: #f7f7f7;
    min-height: 100vh;
    display: none; /* Hidden by default, shown by JS navigation */
}

.withdrawal-form-container {
    /* Reuse styles from .recharge-form-container */
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Style the button uniquely (e.g., a dominant green) */
#withdrawal-submit-btn {
    width: 100%;
    background: linear-gradient(to right, #097d31, #06581f); /* Darker Green gradient */
    color: #fff; 
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
}
/* Reuse all other form styles from the Recharge form */
/* --- RECHARGE RECORDS STYLES --- */

.recharge-records-page {
    padding: 20px 15px;
    min-height: 100vh;
}

.records-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.transaction-record {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 5px solid; /* Use for status color */
}

.record-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

.record-details p {
    margin: 3px 0;
    font-size: 14px;
}

.record-status {
    font-weight: bold;
}

/* Status Colors */
.status-pending {
    border-left-color: #ffc107; /* Yellow/Orange */
}

.status-pending .record-status {
    color: #ffc107;
}

.status-completed {
    border-left-color: #28a745; /* Green */
}

.status-completed .record-status {
    color: #28a745;
}

.status-failed {
    border-left-color: #dc3545; /* Red */
}

.status-failed .record-status {
    color: #dc3545;
}
/* --- ACTIVITY LOG STYLES --- */

.activity-log-page {
    padding: 20px 15px;
    min-height: 100vh;
}

.records-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.transaction-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.transaction-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: #eee;
    /* You can use font icons or emojis here */
}

.transaction-icon.deposit { background-color: #d4edda; }
.transaction-icon.withdrawal { background-color: #f8d7da; }
.transaction-icon.investment { background-color: #fff3cd; }


.transaction-info {
    flex-grow: 1;
}

.transaction-title {
    font-weight: bold;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.transaction-detail, .transaction-date {
    font-size: 12px;
    color: #888;
    margin: 2px 0;
}

.transaction-amount {
    font-weight: bold;
    font-size: 16px;
}

.transaction-amount.positive {
    color: #28a745; /* Green for deposits/income */
}

.transaction-amount.negative {
    color: #dc3545; /* Red for withdrawals/purchases */
}

/* Status Badges */
.status-badge {
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: normal;
}
.status-badge.status-pending { background-color: #fff3cd; color: #856404; }
.status-badge.status-completed { background-color: #d4edda; color: #155724; }
.status-badge.status-failed { background-color: #f8d7da; color: #721c24; }


/* --- MY TEAM / INVITE FRIENDS SECTION --- */

.my-team {
    padding: 20px 15px;
    background-color: #f7f7f7; /* Light background for the whole section */
}

/* --- Referral Box (Container for Code and Link) --- */

.referral-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.referral-label, .invite-link-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Code Display Area */
.code-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e6f7ed; /* Light green background for prominence */
    border: 1px dashed #4CAF50;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
}

#user-referral-code {
    font-size: 18px;
    font-weight: bold;
    color: #00796b; /* Darker teal/green for the code */
    letter-spacing: 1.5px;
}

#copy-referral-code {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#copy-referral-code:hover {
    background-color: #388e3c;
}

/* Shareable Link Styling */
#share-link-text {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #777;
    word-break: break-all; /* Ensures the long link wraps correctly */
}

/* --- Team Stats Overview --- */

.team-stats {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.team-stats h3 {
    font-size: 18px;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.team-stats p {
    font-size: 15px;
    color: #555;
    margin: 0;
}

#team-count {
    font-weight: bold;
    color: #e91e63; /* Pink accent color for the count */
    font-size: 18px;
}

/* --- Referral List Container and Header --- */

.team-list-header {
    font-size: 18px;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    padding-left: 5px;
    border-left: 4px solid #4CAF50; /* Green accent bar */
}

.records-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual Team Member Item */
.team-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #00BCD4; /* Cyan accent for team members */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.member-name-container {
    display: flex;
    align-items: center;
}

.member-index {
    background-color: #eee;
    color: #777;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
    margin-right: 10px;
}

.member-name {
    font-weight: 500;
    color: #333;
    margin: 0;
}

.member-info {
    font-size: 13px;
    color: #777;
    margin: 0;
    text-align: right;
}

/* Loading/Error Messages */
.loading-message, .error-message {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}
