

.profile-background-section h2,
.profile-background-section h4 {
    color: white !important; /* Forces heading colors to white */
}

.profile-background-section .card {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly more opaque white for the card background */
    color: #333; /* Darker text for readability within the card */
    border: none; /* Remove default card border */
}

.profile-background-section .card p.text-muted {
    color: #555 !important; /* Ensures muted text is readable within the card */
}

/* Balance text with profit indicator */
.balance-info {
    display: flex;
    align-items: center;
}
.profit-indicator {
    color: #28a745; /* Green color for profit */
    margin-left: 8px; /* Space between balance and arrow */
    font-weight: bold;
    display: flex;
    align-items: center;
}
.profit-indicator i {
    margin-right: 4px;
}

/* Styles for the new VIP cards - enhanced look */
.vip-card {
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* More prominent shadow */
    transition: all 0.4s ease; /* Smoother transition */
    height: 100%;
    text-align: center;
    padding: 30px 20px; /* Increased padding */
    background: linear-gradient(to bottom right, #f8f9fa, #e9ecef); /* Subtle gradient background */
    border: none; /* Remove default border */
    position: relative;
    overflow: hidden;
}
.vip-card:hover {
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}
.vip-card::before { /* Decorative overlay */
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: rgba(0, 123, 255, 0.05); /* Light blue tint */
    transform: rotate(45deg);
    z-index: 0;
}
.vip-card-content {
    position: relative;
    z-index: 1; /* Ensure content is above the pseudo-element */
}
.vip-card .vip-level {
    font-size: 2rem; /* Larger VIP level text */
    font-weight: 700; /* Bolder */
    margin-bottom: 15px;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vip-card .vip-level i {
    font-size: 1.5rem; /* Icon size relative to text */
    margin-right: 10px;
    color: #ffc107; /* Gold color for diamond icon */
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5); /* Subtle glow */
}
.vip-card .investment-value {
    font-size: 1.8rem; /* Larger ROI text */
    color: #28a745;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 20px;
}
.vip-card .feature-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
    margin-bottom: 25px; /* More space below list */
}
.vip-card .feature-list li {
    margin-bottom: 10px; /* More space between list items */
    font-size: 1rem;
    color: #444;
    display: flex;
    align-items: flex-start; /* Align icon and text at the top */
}
.vip-card .feature-list li i {
    margin-right: 10px;
    font-size: 1.1rem; /* Larger icons in list */
    min-width: 20px; /* Ensure consistent spacing */
    text-align: center;
    color: #007bff;
}
.vip-card .feature-list li .lni-close-circle { /* Updated class here */
     color: #dc3545; /* Red for 'no access' features */
}

/* Ensure button in VIP card is styled correctly */
.vip-card .btn {
    font-size: 1rem;
    padding: 10px 25px;
    border-radius: 50px; /* Pill-shaped buttons */
    font-weight: bold;
    transition: all 0.3s ease;
}
.vip-card .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.vip-card .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.vip-card .btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}
.vip-card .btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

/* Existing styles for other sections */
.card-row {
    margin-top: 30px;
}
.custom-card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}
.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.chart-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 40px;
}

/* Specific styles for the investment charts */
.investment-chart-card {
    background-color: #ffffff; /* Dark background from image */
    color: #414040; /* Light text color */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 40px;
}
.investment-chart-card h3 {
    color: #1b1b1b;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: left; /* Align chart titles left as in image */
}
.investment-chart-card .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.investment-chart-card .chart-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #00ff88; /* Green for value */
}
.investment-chart-card .chart-percent-change {
    font-size: 1.2rem;
    color: #00ff88; /* Green for positive change */
    display: flex;
    align-items: center;
}
.investment-chart-card .chart-percent-change i {
    margin-right: 5px;
}
/* Style for the donut chart's legend/text elements */
.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.legend-color-box {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    margin-right: 10px;
}

/* Let Chart.js control canvas dimensions based on responsiveness and aspect ratio */
.investment-chart-card canvas {
    /* height and max-width properties removed from here */
}

/* Specific styles for the Fund Allocation (pie/donut) chart canvas */
.fund-chart-canvas {
    max-width: 70%; /* Reduce width to 70% of its container */
    margin: auto; /* Center the chart horizontally */
    display: block; /* Ensures margin: auto works for centering */
}

/* Styles for image previews in modal */
.image-preview-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 15px;
}
.image-preview {
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 5px;
    background-color: #f8f9fa;
}
.image-preview img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}
.image-preview span {
    color: #6c757d;
    font-size: 0.8rem;
    text-align: center;
}
/* Style for active payment type */
.payment-type-card.active {
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
    background-color: #e7f1ff; /* Light blue background for active */
}