.freeCredit-area .claimAllContainer {
	background: var(--freeCredit3_CLAIM_ALL_CONTAINER_BG);
	color: var(--freeCredit3_CLAIM_ALL_CONTAINER_COLOR);
    padding: 14px 20px;
    width: 90%;
    margin: auto;
    margin-top: 10px;
    border-radius: var(--freeCredit3_CLAIM_ALL_BORDER_RADIUS);
    text-align: center;
    position: relative;
}

.freeCredit-area .claimAllContainer .claim-all-header {
	display: inline-block;
    font-size: 13px;
    font-weight: var(--MED_FONT_WEIGHT);
    padding-bottom: 16px;
}

.freeCredit-area .claimAllContainer .all-card-container {
	display: flex;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.freeCredit-area .claimAllContainer .all-card-container.less-than-3 {
	justify-content: center;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card {
	display: flex;
    flex-direction: column;
    justify-content: space-between;
	background: var(--freeCredit3_CLAIM_ALL_CARD_BG);
    color: var(--freeCredit3_CLAIM_ALL_CARD_COLOR);
    min-width: 120px;
    width: 120px;
    min-height: 140px;
    padding: 10px;
    border-radius: var(--freeCredit3_CLAIM_ALL_CARD_BORDER_RADIUS);
    text-align: center;
    align-content: center;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card .card-content {
	flex-grow: 1;
	display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card .card-content .card-title {
	font-weight: var(--MED_FONT_WEIGHT);
	font-size: 15px;
	margin-bottom: 10px;
	white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
	text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-word;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card .card-content .card-amount {
    font-weight: var(--MED_FONT_WEIGHT);
	font-size: 16px;
	word-wrap: break-word;
	white-space: normal;
	display: flex;
	flex-direction: column;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card .card-content .card-amount .card-currency {
	font-size: 12px;
    margin-right: 2px;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card .card-bottom {
	display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10px;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card .card-bottom hr {
	border-top: var(--freeCredit3_CLAIM_ALL_CARD_BOTTOM_HR);
    width: 86%;
    margin-top: 12px;
    margin-bottom: 12px;
}

.freeCredit-area .claimAllContainer .all-card-container .claim-all-card .card-bottom .more-info {
	color: var(--freeCredit3_CLAIM_ALL_CARD_BOTTOM_MORE_INFO_COLOR);
	font-weight: var(--RED_FONT_WEIGHT);
	text-decoration: underline;
	user-select: none;
}

.freeCredit-area .claimAllContainer .arrow-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    margin-top: 12px;
}

.freeCredit-area .claimAllContainer .arrow-container .claim-btn {
    padding: 6px 16px;
    background: var(--freeCredit3_CLAIM_ALL_CARD_BOTTOM_CLAIM_BTN_BG);
    color: var(--freeCredit3_CLAIM_ALL_CARD_BOTTOM_CLAIM_BTN_COLOR);
    border-radius: var(--freeCredit3_CLAIM_ALL_CARD_BOTTOM_CLAIM_BTN_BORDER_RADIUS);
    border: var(--freeCredit3_CLAIM_ALL_CARD_BOTTOM_CLAIM_BTN_BORDER);
    font-size: 13px;
    font-weight: var(--MED_FONT_WEIGHT);
    user-select: none;
}

.freeCredit-area .claimAllContainer .arrow-container .claim-btn:active {
	filter: brightness(0.8);
}

.freeCredit-area .claimAllContainer .arrow-container .arrow {
    color: var(--freeCredit3_CLAIM_ALL_ARROW_COLOR);
    font-size: 18px;
    cursor: pointer;
}

.freeCredit-area .claimAllContainer .arrow-container .arrow:active, 
.freeCredit-area .claimAllContainer .arrow-container .arrow:hover {
	color: var(--freeCredit3_CLAIM_ALL_ARROW_ACTIVE_HOVER_COLOR);
}

.freeCredit-area .claimAllContainer .arrow-container .arrow.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

.freeCredit-area .claimAllContainer .arrow-container .arrow.disabled:hover,
.freeCredit-area .claimAllContainer .arrow-container .arrow.disabled:active {
    color: var(--freeCredit3_CLAIM_ALL_ARROW_DISABLED_COLOR);
}

.freeCredit-area .claimAllContainer .arrow-container .arrow.disabled:hover i,
.freeCredit-area .claimAllContainer .arrow-container .arrow.disabled:active i {
    border: var(--freeCredit3_CLAIM_ALL_ARROW_DISABLED_ICON_BORDER);
	background: var(--freeCredit3_CLAIM_ALL_ARROW_DISABLED_ICON_BG);
}

.freeCredit-area .claimAllContainer .arrow-container .arrow i {
	border: var(--freeCredit3_CLAIM_ALL_ARROW_DISABLED_ICON_BORDER);
    border-radius: 50%;
    background: var(--freeCredit3_CLAIM_ALL_ARROW_DISABLED_ICON_BG);
}

.freeCredit-area .claimAllContainer .arrow-container .arrow:active i, 
.freeCredit-area .claimAllContainer .arrow-container .arrow:hover i {
	border: var(--freeCredit3_CLAIM_ALL_ARROW_ACTIVE_HOVER_ICON_BORDER);
	background: var(--freeCredit3_CLAIM_ALL_ARROW_ACTIVE_HOVER_ICON_BG);
}

.or-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--freeCredit3_CLAIM_ALL_OR_SEPARATOR_TXT_COLOR);
    padding: 10px 0;
    width: 90%;
    margin: auto;
}

.or-separator .line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--freeCredit3_CLAIM_ALL_OR_SEPARATOR_LINE_BG);
}

#angpowclaimmodal {
	top: 12%;
}

#angpowclaimmodal .modal-header {
	font-size: 14px;
	justify-content: center;
}

#angpowclaimmodal .modal-content {
	width: 80%;
    margin: auto;
    border-radius: var(--freeCredit3_CLAIM_ALL_MODAL_BORDER_RADIUS);
    color: var(--freeCredit3_CLAIM_ALL_MODAL_COLOR);
}

#angpowclaimmodal .modal-content .claimList-wrapper .dstg-bonus-img {
	width: 100%;
    height: 245px;
    background-size: 100%;
    background-position: bottom;
    background-repeat: no-repeat;
}

#angpowclaimmodal .modal-content .claimList-wrapper .failed-img {
	width: 40%;
    display: flex;
    margin: auto;
    margin-bottom: 20px;
}

#angpowclaimmodal .modal-content .claimList-wrapper .collapsible {
	background-color: inherit;
	color: var(--freeCredit3_CLAIM_ALL_MODAL_SHOW_DETAILS_COLOR);
	cursor: pointer;
	padding: 8px;
	width: 100%;
	border: none;
	text-align: center;
	font-size: 13px;
	display: block;
	text-decoration: underline;
}

#angpowclaimmodal .modal-content .claimList-wrapper .error-msg-list {
	padding: 0 20px;
	height: 0;
	max-height: 120px;
	overflow: auto;
	transition: height 0.2s ease-out;
	background-color: var(--freeCredit3_CLAIM_ALL_MODAL_ERROR_LIST_BG);
	color: var(--freeCredit3_CLAIM_ALL_MODAL_ERROR_LIST_COLOR);
	text-align: left;
	align-content: center;
	border-radius: var(--freeCredit3_CLAIM_ALL_MODAL_ERROR_LIST_BORDER_RADIUS);
}

#angpowclaimmodal .modal-content .claimList-wrapper .error-msg-list p {
	margin-bottom: 3px;
}

.red-text {
	color: var(--freeCredit3_CLAIM_ALL_MODAL_RED_TXT_COLOR);
}

.green-text {
	color: var(--freeCredit3_CLAIM_ALL_MODAL_GREEN_TXT_COLOR);
}

.grey-text {
	color: var(--freeCredit3_CLAIM_ALL_MODAL_GREY_TXT_COLOR);
}

.success-text {
	font-size: 13px;
	margin-bottom: 8px;
	text-shadow: var(--freeCredit3_CLAIM_ALL_MODAL_SUCCESS_TXT_SHADOW);
}

.failed-text {
	font-size: 13px;
	margin-bottom: 4px;
	text-shadow: var(--freeCredit3_CLAIM_ALL_MODAL_FAIL_TXT_SHADOW);
}

.loading-icon {
	display: none;
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--freeCredit3_CLAIM_ALL_LOADING_CONTAINER_BG);
    border-radius: var(--freeCredit3_CLAIM_ALL_LOADING_CONTAINER_BORDER_RADIUS);
    width: 58%;
}

.loading-icon .spinner {
    border: var(--freeCredit3_CLAIM_ALL_LOADING_SPINNER_BORDER);
    border-left-color: var(--freeCredit3_CLAIM_ALL_LOADING_SPINNER_BORDER_LEFT_COLOR);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-icon .loadingMessage {
	font-weight: 700;
    text-shadow: var(--freeCredit3_CLAIM_ALL_LOADING_MSG_TXT_SHADOW);
    font-size: 14px;
    margin-top: 10px;
    color: var(--color2);
}

/* ===================================
   ROOT CAUSE FIX - Prevent Overlapping
   =================================== */

/* 1. Add proper spacing to main container */
.freeCredit-area {
    position: relative;
}

/* 2. Ensure content wrapper has proper flow */
.freeCredit-tab-content-wrapper {
    width: 100%;
    clear: both;
    overflow: visible; /* Add this */
    height: auto; /* Add this */
}

/* 3. Fix tab content panels */
.tab-content-panel {
    width: 100%;
    min-height: auto !important; /* Remove or increase this */
    height: auto; /* Add this - let content determine height */
    margin-bottom: 10px;
    clear: both;
    overflow: visible; /* Show all content */
}

/* 4. Fix freeCreditList2 container */
.freeCreditList2 {
    width: 100%;
    clear: both;
    overflow: visible; /* Changed back to visible to show all content */
    height: auto; /* Let content expand */
}

/* 5. Fix individual credit items */
.freeCreditWrapper {
    width: 100% !important;
    margin: 10px auto !important;
    padding: 0 15px; /* Add left and right padding */
    clear: both;
    position: relative;
    box-sizing: border-box; /* Ensure padding doesn't break width */
}

.freeCreditWrapper .transaction-list {
    width: 100%;
    margin-bottom: 15px;
    clear: both;
    overflow: hidden;
}

/* 6. Fix the claim all container positioning */
.freeCredit-area .claimAllContainer {
    margin-bottom: 20px;
    position: relative; /* Change from any absolute positioning */
    z-index: 1;
}

/* 7. Fix loading icon to not interfere with layout */
.loading-icon {
    position: fixed; /* Change from absolute to fixed */
    z-index: 9999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 8. Ensure footer stays at bottom */
.t-footer {
    width: 100%;
    clear: both;
    position: relative;
    z-index: 10;
}

/* 9. Fix modal positioning */
#angpowmodal,
#angpowclaimmodal,
#moreinfomodal,
#vouchermodal {
    position: fixed;
    z-index: 10000;
}

/* 10. Clearfix utility */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 11. Add spacing after OR separator */
.or-separator {
    margin-bottom: 20px;
    clear: both;
}

/* 12. Fix bonus wrapper */
.bonus-wrapper {
    margin-bottom: 10px;
    clear: both;
    width: 100%;
}


/* 13. Ensure proper spacing for transfer tab */
.freeCreditTransfer-wrap {
    min-height: 400px;
    height: auto; /* Add this */
    overflow: visible; /* Add this */
}

/* 14. Fix for masked content */
.transaction-list.masked {
    margin-bottom: 20px;
}

/* 15. Additional safety for content flow */
.content.freeCredit-area {
    display: block;
    width: 100%;
    overflow-x: hidden; /* Only hide horizontal overflow */
    overflow-y: visible; /* Allow vertical content to show */
    height: auto; /* Add this */
}

.tab-content-panel[data-tab="claim"] {
    min-height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. Reduce spacing in the row and column */
.tab-content-panel[data-tab="claim"] .row {
    margin-bottom: 0 !important;
}

.tab-content-panel[data-tab="claim"] .col-12 {
    padding-bottom: 0 !important;
}

/* 3. Remove bottom margin from bonus-wrapper */
.tab-content-panel[data-tab="claim"] .bonus-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 10px; /* Just small padding for breathing room */
}

/* 4. Reduce spacing from home-packet and freeCreditList */
.bonus-wrapper .home-packet {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.freeCreditList {
    margin-bottom: 10px !important; /* Small spacing between items */
}

.freeCreditList:last-child {
    margin-bottom: 0 !important; /* Remove margin from last item */
}


section.freeCredit-area {
    padding-bottom: 0 !important;
}


.transactionChangeTab-btn .notification {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.transactionChangeTab-btn .notification:not([style*="display: none"]) {
    display: flex !important;
}


/* Main wrapper - add padding from edges */
.freeCredit-area .freeCreditTransfer-wrap .unClaim_voucher-wrap {
    width: 90% !important; /* Not full width */
    max-width: 450px; /* Limit max width */
    margin: 20px auto !important; /* Center with vertical spacing */
    padding: 0 !important;
}

/* Inner form container - add padding */
.freeCredit-area .freeCreditTransfer-wrap .unClaim_voucher-wrap .transfer_amount.afterloginform {
    padding: 20px;
    background: transparent;
}

/* Label styling */
.freeCredit-area .freeCreditTransfer-wrap .unClaim_voucher-wrap .col-form-label {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 10px;
    text-align: center;
}

/* Input field */
.freeCredit-area .freeCreditTransfer-wrap .unClaim_voucher-wrap .col-12 {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 15px;
}

.freeCredit-area .freeCreditTransfer-wrap .unClaim_voucher-wrap #voucherCode2 {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

/* Button container */
.freeCredit-area .freeCreditTransfer-wrap .unClaim_voucher-wrap .btn_login_main {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
}

/* Redeem button */
.freeCredit-area .freeCreditTransfer-wrap .unClaim_voucher-wrap .btn_login_page.redeemBtn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: var(--MED_FONT_WEIGHT);
    border: none;
}
