.body-dashboard {
    background-color: #f9fafb;
}

#leaderboardTable {
    width: 100%;
    border-collapse: collapse
}

#leaderboardTable td,
#leaderboardTable th {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left
}

#leaderboardTable th {
    background-color: #f2f2f2
}

.popup {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, .5)
}

.popup-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    position: relative
}

.header-popup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    width: 30px;
    height: 30px;
    text-align: center;
    align-content: center;
    align-items: center
}

.close:focus,
.close:hover {
    color: #000;
    background-color: #ddd;
    text-decoration: none;
    border-radius: 15px
}

.leaderboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 20px
}

.green-text {
    color: #4caf50
}

.title-dashboard {
    margin-top: 10px
}

.empty-state {
    display: none
}

.content {
    flex: 1;
    padding: 20px;
    padding-top: 0;
    overflow-y: auto;
    text-align: center;
    width: 100%;
    max-width: 1080px;
    margin: auto
}

.top-bar {
    text-align: center;
    align-content: center;
    margin: 20px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tab-link {
    padding: 10px 20px;
    /* background-color: #007bff; */
    border-radius: 5px;
    border: none;
    color: #fff;
}


.tab-content {
    width: 100%;
    max-width: 1080px;
    align-content: center;
    margin: auto
}

/* New styles based on the image */

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    /* Adjust ratio as needed */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    /* Match overall site width */
    margin: auto;
}

@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        /* Stack columns on smaller screens */
        padding: 10px;
    }
}


.user-info-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    /* Center content */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* height: fit-content; */
}

.user-info-card .avatar {
    width: 80px;
    height: 80px;
    background-color: #eee;
    /* Placeholder color */
    border-radius: 50%;
    margin-bottom: 15px;
    align-content: center;
}

.user-info-card .user-details h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.4rem;
}

.user-info-card .member-status {
    color: #333;
    font-weight: 600;
    /* margin-bottom: 15px; */
    /* font-size: 0.9rem; */
}

.user-info-card .member-status-div {
    padding: 4px;
    background: white;
    margin-bottom: 15px;
    align-self: center;
    display: flex;
    align-items: center;
}

.user-info-card .balance .amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff1493;
    margin-left: 5px;
    /* Deep Pink */
}

.user-info-card .balance .label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.user-info-card .stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    gap: 10px;
}

.user-info-card .stat-item {
    text-align: center;
}

.user-info-card .stat-item .value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.user-info-card .stat-item .label {
    font-size: 0.8rem;
    color: #666;
}

.user-info-card .user-actions {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-info-card .user-actions .button-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

.user-info-card .user-actions button {
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.user-info-card .user-actions .button-row button {
    flex: 1;
}

.user-info-card .play-now-btn {
    background-color: #ff1493;
    /* Deep Pink */
    color: white;
}

.user-info-card .play-now-btn:hover {
    background-color: #c71585;
    /* Medium Violet Red */
}

.user-info-card .how-to-play-btn,
.user-info-card .deposit-btn {
    background-color: #eee;
    color: #333;
    border: 1px solid #ddd;
}

.user-info-card .how-to-play-btn:hover,
.user-info-card .deposit-btn:hover {
    background-color: #ddd;
}

/* Summary Cards Styles */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Responsive grid */
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-card .icon {
    font-size: 2rem;
    color: #007bff;
    /* Default blue, will adjust per card if needed */
}

.summary-card .details .label {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

.summary-card .details .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

/* Specific colors for summary card icons/values based on image */
.summary-card:nth-child(1) .icon,
.summary-card:nth-child(1) .details .value {
    color: #4caf50;
    /* Green for Winnings */
}

.summary-card:nth-child(2) .icon,
.summary-card:nth-child(2) .details .value {
    color: #007bff;
    /* Blue for Games Played (using existing blue) */
}

.summary-card:nth-child(3) .icon,
.summary-card:nth-child(3) .details .value {
    color: #673ab7;
    /* Purple for Total Deposit (using a common purple) */
}

/* Tabs Styles */
.dashboard-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 20px;
    padding: 5px;
    border-radius: 8px;
    background: #f1f5f9;
}

.tab-button {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    position: relative;
    transition: color 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.tab-button:hover {
    color: #333;
}

.tab-button.active {
    /* color: #ff1493; */
    /* Deep Pink for active tab */
    font-weight: 600;
    background-color: white;
    border-radius: 8px;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    /* background-color: #ff1493; */
    /* Deep Pink underline */
}


.tab-pane {
    display: none;
    /* Hidden by default, shown by JS */
}

.tab-pane.active {
    display: block;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-penarikan.active {
    display: block;
    /* background: white; */
    /* padding: 20px; */
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.section-title {
    font-size: 1.8rem;
    color: #333;
    padding-bottom: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

/* Game History List Styles */
.game-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    border: 1px solid #ddd;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); */
    display: flex;
    align-items: center;
    gap: 15px;
    /* flex-wrap: wrap; */
    /* Allow wrapping on smaller screens */
    justify-content: space-between;
}

.referral-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    border: 1px solid #ddd;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); */
    display: flex;
    align-items: center;
    gap: 15px;
    /* flex-wrap: wrap; */
    /* Allow wrapping on smaller screens */
    justify-content: space-between;
    margin-bottom: 10px;
}

.history-item .game-icon {
    font-size: 1.5rem;
    color: #007bff;
    /* Default icon color */
}

.history-item .game-details {
    flex-grow: 1;
    /* Allow details to take available space */
}

.history-item .game-name {
    display: block;
    font-weight: 600;
    color: #333;
}

.history-item .game-meta {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 3px;
    margin-bottom: 3px;
}

.history-item .game-result {
    text-align: right;
}

.history-item .game-result .stake {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.history-item .game-result .amount {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 3px;
}

.history-item .game-result .status {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 5px;
}

/* Result Status Colors */
.history-item .game-result.win .amount {
    color: #4caf50;
    /* Green for win amount */
}

.history-item .game-result.win .status {
    background-color: #e8f5e9;
    /* Light green background */
    color: #2e7d32;
    /* Darker green text */
}

.history-item .game-result.loss .amount {
    color: #dc3545;
    /* Red for loss amount */
}

.history-item .game-result.loss .status {
    background-color: #f8d7da;
    /* Light red background */
    color: #c62828;
    /* Darker red text */
}

/* View All History Button */
.view-all-history-btn {
    display: block;
    width: max-content;
    /* Button width fits content */
    margin: 20px auto 0;
    /* Center the button */
    padding: 10px 20px;
    background-color: white;
    border: 1px solid lightgrey;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    color: black;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.view-all-history-btn:hover {
    background-color: #ddd;
}

.leaderboard-cards-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* margin-top: 20px; */
}

.leaderboard-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.2s ease-in-out;
}

.leaderboard-card:hover {
    transform: translateY(-3px);
}

.rank-info {
    display: flex;
    align-items: center;
    width: 70px;
    flex-shrink: 0;
}

.medal-icon {
    font-size: 24px;
    margin-right: 8px;
}

.rank-number {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.profile-picture-rangking {
    width: 40px;
    height: 40px;
    background-color: #ddd;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-picture-rangking.hide,
.avatar-circle.hide {
    display: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: #ddd;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.user-badge {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    color: #fff;
    display: inline-block;
    margin-top: 4px;
    font-weight: 600;
}

.user-badge.diamond {
    background-color: #eafcff;
    color: rgb(8 145 178 / var(--tw-text-opacity, 1));
}

/* .member-status.diamond,
.member-info-icon.diamond {
    background-color: #eafcff;
    color: rgb(8 145 178 / var(--tw-text-opacity, 1));
    padding: 6px;
    border-radius: 8px;
    font-weight: 600;
} */
.member-status.diamond {
    background-color: #eafcff;
    color: rgb(8 145 178 / var(--tw-text-opacity, 1));
    padding: 6px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
}




.value.diamond {
    background-color: #eafcff;
    color: rgb(8 145 178 / var(--tw-text-opacity, 1));
    padding: 4px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.member-status.diamond,
.member-info-icon.diamond {
    background-color: #eafcff;
    color: rgb(8 145 178 / var(--tw-text-opacity, 1));
}

.user-badge.platinum {
    background-color: #fbf4ff;
    color: rgb(147 51 234 / var(--tw-text-opacity, 1));
}

.member-status.platinum {
    background-color: #fbf4ff;
    color: rgb(147 51 234 / var(--tw-text-opacity, 1));
    padding: 6px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
}



.value.platinum {
    background-color: #fbf4ff;
    color: rgb(147 51 234 / var(--tw-text-opacity, 1));
    padding: 4px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.member-status.platinum,
.member-info-icon.platinum {
    background-color: #fbf4ff;
    color: rgb(147 51 234 / var(--tw-text-opacity, 1));
}

.user-badge.gold {
    background-color: #fff3a8;
    color: rgb(202 138 4 / var(--tw-text-opacity, 1));
}

.member-status.gold {
    background-color: #fff3a8;
    color: rgb(202 138 4 / var(--tw-text-opacity, 1));
    padding: 6px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.value.gold {
    background-color: #fff3a8;
    color: rgb(202 138 4 / var(--tw-text-opacity, 1));
    padding: 4px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.member-status.gold,
.member-info-icon.gold {
    background-color: #fff3a8;
    color: rgb(202 138 4 / var(--tw-text-opacity, 1));
}

.user-badge.bronze {
    background-color: #fffaeb;
    color: rgb(217 119 6 / var(--tw-text-opacity, 1));
}

.member-status.bronze,
.member-info-icon.bronze {
    background-color: #fffaeb;
    color: rgb(217 119 6 / var(--tw-text-opacity, 1));
}

.member-status.bronze {
    background-color: #fffaeb;
    color: rgb(217 119 6 / var(--tw-text-opacity, 1));
    padding: 6px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
}



.value.bronze {
    background-color: #fffaeb;
    color: rgb(217 119 6 / var(--tw-text-opacity, 1));
    padding: 4px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.user-badge.silver {
    background-color: #f9fafb;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.member-status.silver {
    background-color: #f9fafb;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
    padding: 6px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
}



.value.silver {
    background-color: #f9fafb;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
    padding: 4px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}


.member-status.silver,
.member-info-icon.silver {
    background-color: #f9fafb;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.user-badge.anggota {
    background-color: whiteSmoke;
    color: #333;
}

.member-status.anggota,
.member-info-icon.anggota {
    background-color: whiteSmoke;
    color: #333;
}

.member-status.anggota {
    background-color: whiteSmoke;
    color: #333;
    padding: 6px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
}



.value.anggota {
    background-color: whiteSmoke;
    color: #333;
    padding: 4px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.winnings-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.winnings-amount {
    font-size: 16px;
    font-weight: bold;
    color: #ff1493;
    /* Green color for winnings */
}

.games-played {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.view-full-leaderboard-btn {
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    padding: 10px 20px;
    background-color: white;
    color: black;
    border: 1px solid lightgrey;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}


.glowing {
    background: rgba(255, 249, 235);
    border: 1px solid rgba(254, 240, 138);
}


.transaction-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* margin-top: 20px; */
}

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

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
    color: white;
    font-size: 18px;
}

.transaction-icon.deposit {
    background-color: #e8f5e9;
    /* Light green */
    color: #4caf50;
    /* Green */
}

.transaction-icon.withdrawal {
    background-color: #e3f2fd;
    /* Light blue */
    color: #2196f3;
    /* Blue */
}

.transaction-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-right: 15px;
}

.transaction-type {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.transaction-meta {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.transaction-amount-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

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

.transaction-amount.positive {
    color: #ff1493;
    /* Green */
}

.transaction-amount.negative {
    color: #f44336;
    /* Red */
}

.transaction-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    color: white;
    display: inline-block;
    margin-top: 4px;
    text-transform: uppercase;
}

.transaction-status.confirmed {
    background-color: #4caf50;
}

.transaction-status.pending {
    background-color: whitesmoke;
    color: #333;
}

.transaction-status.cancelled {
    background-color: #f8d7da;
    color: #c62828;
}

.view-all-transactions-btn {
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    padding: 10px 20px;
    background-color: white;
    color: black;
    border: 1px solid lightgrey;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}


.profile-container {
    display: flex;
    gap: 30px;
    /* margin-top: 20px; */
    flex-wrap: wrap;
}

.personal-info-section,
.bank-info-section {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    /* padding: 20px; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
    /* border: 1px solid #eee; */
    min-width: 300px;
    /* Ensure sections don't get too narrow */
}

.personal-info-section h3,
.bank-info-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    /* Include padding and border in the element's total width and height */
}

.form-group input[readonly],
.form-group select[readonly],
.form-group textarea[readonly] {
    background-color: #f8f8f8;
    cursor: not-allowed;
}

/* Form validation styles */
.form-group input.error,
.form-group select.error {
    border: 1px solid #ff0000 !important;
}

.error-message {
    color: #ff0000;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.important-info-box {
    background-color: #e3f2fd;
    /* Light blue background */
    border: 1px solid #bbdefb;
    /* Slightly darker blue border */
    color: #1565c0;
    /* Darker blue text */
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    /* margin-bottom: 20px; */
    display: flex;
    align-items: flex-start;
    font-size: 14px;
}

.important-info-box i {
    margin-right: 10px;
    font-size: 20px;
    color: #2196f3;
    /* Blue icon color */
}

.important-info-box p {
    margin: 0;
    line-height: 1.5;
}

.save-profile-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #ff1493;
    /* Pink color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.save-profile-btn:hover {
    background-color: #c2185b;
    /* Darker pink on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        gap: 20px;
    }
}

.withdrawal-container {
    display: flex;
    gap: 30px;
    /* margin-top: 20px; */
    flex-wrap: wrap;
}

.withdrawal-form-section,
.withdrawal-info-section {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    /* padding: 20px; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
    /* border: 1px solid #eee; */
    min-width: 300px;
}

.withdrawal-form-section .form-group,
.withdrawal-info-section .info-item {
    margin-bottom: 15px;
}

.withdrawal-form-section label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    font-weight: 600;
}

.tab-pane.tab-penarikan.active {
    background: none;
    padding: 0;
    box-shadow: none;
}

.withdrawal-form-section input[type="text"],
.withdrawal-form-section select,
.withdrawal-form-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.withdrawal-form-section .input-hint {
    display: block;
    font-size: 12px;
    color: #777;
    /* margin-top: 5px; */
}

.quick-amount-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.quick-amount-btn {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.quick-amount-btn:hover {
    background-color: #eee;
}

.submit-withdrawal-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #ff1493;
    /* Pink color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.submit-withdrawal-btn:hover:not(:disabled) {
    background-color: #c2185b;
    /* Darker pink */
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-withdrawal-btn:disabled {
    background-color: #ffb6c1;
    /* Light pink */
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-withdrawal-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.withdrawal-info-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.withdrawal-info-section .account-info-box {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.withdrawal-info-section .info-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.withdrawal-info-section .info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.withdrawal-info-section .info-item .label {
    font-size: 14px;
    color: #555;
}

/* .withdrawal-info-section .info-item .value {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.withdrawal-info-section .info-item .value.gold {
    color: #daa520;
} */

.important-info-box.terms {
    background-color: #fff8e1;
    /* Light yellow */
    border: 1px solid #ffe082;
    /* Slightly darker yellow */
    color: #fbc02d;
    /* Darker yellow */
}

.important-info-box.terms h3 {
    color: #fbc02d;
    /* Darker yellow */
    margin-top: 0;
    margin-bottom: 10px;
}

.important-info-box.terms ul {
    padding-left: 20px;
    margin: 0;
}

.important-info-box.terms li {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .withdrawal-container {
        flex-direction: column;
        gap: 20px;
    }

    .quick-amount-buttons {
        flex-wrap: wrap;
    }

    .quick-amount-btn {
        flex-grow: 1;
        text-align: center;
    }
}

.withdrawal-history-section {
    /* margin-top: 30px; */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    padding: 20px
}

.penarikan-dana-container {
    /* margin-top: 30px; */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    padding: 20px
}

.withdrawal-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* margin-top: 20px; */
}

.withdrawal-history-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    flex-wrap: wrap;
    justify-content: space-between;
}

.withdrawal-icon-history {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e3f2fd;
    /* Light blue */
    color: #2196f3;
    /* Blue */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 18px;
}

.withdrawal-details-history {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-right: 15px;
    min-width: 180px;
    /* Ensure details don't get too narrow */
}

.withdrawal-type-history {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.withdrawal-meta-history,
.withdrawal-date-processed,
.withdrawal-notes-history {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.withdrawal-amount-status-history {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.withdrawal-amount-history {
    font-size: 16px;
    font-weight: bold;
    color: #f44336;
    /* Red for negative amount */
}

.withdrawal-status-history {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    color: white;
    display: inline-block;
    margin-top: 4px;
    text-transform: uppercase;
}

.withdrawal-status-history.completed {
    background-color: #4caf50;
    /* Green */
}

.withdrawal-status-history.processing {
    background-color: #ffc107;
    /* Amber */
    color: #212121;
    /* Dark text for contrast */
}

.withdrawal-status-history.rejected {
    background-color: #f44336;
    /* Red */
}

.view-all-withdrawal-history-btn {
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    padding: 10px 20px;
    background-color: white;
    color: black;
    border: 1px solid lightgrey;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.view-all-withdrawal-history-btn:hover {
    background-color: #ddd;
}

/* Responsive adjustments for withdrawal history */
@media (max-width: 768px) {
    .withdrawal-history-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .withdrawal-details-history {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .withdrawal-amount-status-history {
        width: 100%;
        align-items: flex-start;
    }

    .withdrawal-amount-history {
        margin-bottom: 5px;
    }
}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
    align-content: center;
}

/* Add this new style to prevent background scrolling */
body.modal-open {
    overflow: hidden;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    /* Could be more or less, depending on screen size */
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 90%;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: start;
}

.modal-title-level {
    margin-top: 20px;
    margin-bottom: 20px;
    color: #333;
    text-align: start;
}

.modal .form-group {
    margin-bottom: 15px;
}

.modal label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    font-weight: 600;
}

.modal input[type="text"],
.modal select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.quick-deposit-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.quick-deposit-btn {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    transition: background-color 0.2s ease;
}

.quick-deposit-btn:hover {
    background-color: #e0e0e0;
}

.continue-deposit-btn {
    width: 100%;
    padding: 15px;
    background-color: #ff1493;
    /* Deep Pink */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.continue-deposit-btn:hover {
    background-color: #c71585;
    /* Medium Violet Red */
}

/* Responsive adjustments for modal */
@media (max-width: 600px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }

    .quick-deposit-buttons {
        grid-template-columns: 1fr;
    }
}


.suspended-box {
    background-color: #f44336;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: none;
    margin-top: 20px;
    margin-bottom: 20px;
}

.taruhan {
    color: darkgrey;
}

.duration {
    margin-top: 3px;
    color: darkgrey;
}

.modal-description {
    text-align: start;
    margin-bottom: 20px;
    color: #666;
}

.membership-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.membership-card:hover {
    transform: translateY(0px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.membership-card.current-level {
    border-color: #ff1493;
    /* Deep Pink */
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

.membership-card .level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.membership-card .level-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.membership-card.bronze .level-title {
    color: rgb(217 119 6 / var(--tw-text-opacity, 1));
    /* Bronze color */
}

.membership-card.silver .level-title {
    color: #c0c0c0;
    /* Silver color */
}

.membership-card.gold .level-title {
    color: rgb(202 138 4 / var(--tw-text-opacity, 1));
    /* Gold color */
}

.membership-card.platinum .level-title {
    color: rgb(147 51 234 / var(--tw-text-opacity, 1));
    /* Platinum color */
}

.membership-card.diamond .level-title {
    color: rgb(8 145 178 / var(--tw-text-opacity, 1));
    /* Diamond color */
}

.current-level-badge {
    background-color: #ff1493;
    /* Deep Pink */
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.membership-card .deposit-total {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    /* margin-bottom: 10px; */
}

.membership-deposit,
.pachi-rangking {
    display: flex;
    align-items: center;
}

.pachi-penarikan {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.pachi-profile {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pachi-deposit {
    margin-left: 5px;
    margin-right: 5px;
}

.pachi-image {
    margin-right: 5px;
}

.pachi-rangking-riwayat {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.membership-card .benefits h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #555;
    font-size: 0.9rem;
}

.membership-card .benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.membership-card .benefits ul li {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    position: relative;
    /* padding-left: 20px; */
}

.membership-card .benefits ul li::before {
    content: '\2022';
    /* Unicode for bullet point */
    color: #ff1493;
    /* Deep Pink bullet */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

.total-deposit-info {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.total-deposit-info p {
    margin: 5px 0;
    color: #555;
    font-size: 1rem;
}

.total-deposit-info .highlight-amount {
    color: #ff1493;
    /* Deep Pink */
    font-weight: 700;
    font-size: 1.1rem;
}

.close-membership-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-membership-modal:hover,
.close-membership-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.line-rangking {
    height: 60px;
    width: 2px;
    background: lightgrey;
    align-self: center;
}

.membership-benefits-title {
    padding: 0px;
    margin: 0px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #555;
    font-size: 0.9rem;
}

.benefits {
    padding-left: 20px;
}

.title-modal-level {
    display: flex;
    justify-content: space-between;
}

.member-level-div {
    margin-bottom: 20px;
    display: flex;
    align-self: center;
    padding: 6px;
    border-radius: 8px;
    font-weight: 600;
    gap: 5px;
}

.fas .fa-info-circle {
    cursor: pointer;
}


.profile-picture-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-picture-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 0 auto 20px;
    background-color: #f0f0f0;
}

.profile-picture-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-picture-container:hover .profile-picture-overlay {
    opacity: 1;
}

.upload-button {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.upload-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.profile-picture-hint {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}

.avatar .profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-info-column {}

.referral-history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.referral-history-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.referral-commission {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.referral-commission-label {
    font-size: 0.9rem;
    color: #666;
}

.referral-commission-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4caf50;
}

.referral-link-box {
    margin-top: 10px;
    margin-bottom: 10px;
}

.referral-summary-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

.bonus-deposit-summary-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

/* Custom Referral Link Section Styles */
.custom-referral-link-section {
    background: #333;
    padding: 32px 24px 24px 24px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 24px;
    /* width: 100%; */
    max-width: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.custom-referral-link-section .referral-link-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 18px;
    font-weight: 600;
}

.custom-referral-link-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: none;
    margin: 0 auto;
    width: 100%;
    max-width: none;
    padding: 0;
}

.custom-referral-link-input {
    background: #fff;
    color: #333;
    border: none;
    border-radius: 3px 0 0 3px;
    padding: 10px 16px;
    font-size: 1rem;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    outline: none;
}

.custom-copy-referral-link {
    background: #fff;
    color: #333;
    border: none;
    border-radius: 0 3px 3px 0;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-left: -1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.custom-copy-referral-link:hover {
    background: #333;
    color: #fff;
}

@media (max-width: 600px) {
    .custom-referral-link-section {
        padding: 18px 4vw 14px 4vw;
        max-width: 98vw;
    }

    .custom-referral-link-box {
        flex-direction: column;
        max-width: 98vw;
        width: 100%;
    }

    .custom-referral-link-input,
    .custom-copy-referral-link {
        border-radius: 3px !important;
        width: 100%;
        margin: 0 0 8px 0;
    }
}

.referral-link-text {
    color: #333;
}

.riwayat-toggle-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.riwayat-toggle-btn {
    padding: 8px 16px;
    border: none;
    background: #eee;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
}

.riwayat-toggle-btn.active {
    background: #007bff;
    color: #fff;
}