/* Referral note style */
.ref-note {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.ref-note .label {
    color: #D3AF37;
    font-style: normal;
    font-weight: 700;
}

/* Referral inputs copy icon inside field */
.ref-input-wrap {
    position: relative;
}

.ref-copy-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Referral QR box and image */
.ref-qr-box {
    width: 180px;
    height: 180px;
}

.ref-qr-img {
    max-width: 100%;
    max-height: 100%;
}

/* Referral download button */
.ref-download-btn {
   background: var(--Gradient-01, linear-gradient(90deg, #D3AF37 0%, #FFF788 48.56%, #D3AF37 99.04%));
    box-shadow: 0 -5px 0 0 #876800 inset;
    color: #000000;
border-color: black;
border-radius: 51px;
padding: 6px 71.026px 11px 71px;
}

/* Referral separator */
.ref-separator {
    border-color: #FFFFFF66;
    opacity: 1;
}

/* Common modal styles (Bootstrap scoped) */

/* Modal container */
.modal .modal-content {
    background: #000;
    /* Modal bg */
    border: 1px solid var(--Gradient-01, #D3AF37);
    /* 1px #FFFFFF66 */
    border-radius: 12px;
    /* radius 12px */
    padding: 30px;
}

/* Responsive: reduce modal padding on tablets and below */

.modal-body {
    padding: 0;
}

.modal-header {
    margin-bottom: 20px;
}

/* Backdrop: blur instead of dark fade */
.modal-backdrop {
    background-color: rgba(3, 7, 30, 0.25);
    /* subtle tint */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-backdrop.show {
    opacity: 1;
}

/* Close (X) button */
.modal .btn-close,
.modal .btn-close {
    border: 1px solid;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #E9CD52;
    opacity: 1;
    background-size: 12px;
    transition: background-color .15s ease-in-out, filter .15s ease-in-out;
}


/* Header should not have padding */
.modal .modal-header {
    padding: 0;
}

/* Close button hover: white background, keep icon visible */
.modal .btn-close:hover,
.modal .btn-close:focus,
.modal .btn-close:hover,
.modal .btn-close:focus {
    background-color: #f1cb50;
    opacity: 1;
    outline: none;
}

/* Revert filter on white variant so the icon turns dark on white bg */
.modal .btn-close:hover,
.modal .btn-close:focus {
    filter: none;
}

/* Buttons inside modals */
.modal .btn-primary {
    /* Filled */
   
    /* filled bg */
   border-radius: 10px;
   background: var(--Gradient-01, linear-gradient(90deg, #D3AF37 0%, #FFF788 48.56%, #D3AF37 99.04%));
   box-shadow: 0 -5px 0 0 #876800 inset;
    color: #000000;
    border-radius: 10px;
    border: transparent;
    /* radius 10px */
    font-size: 17px;
    /* font size 16px */
    height: 50px;
    /* button height */
}

.modal .btn-primary:hover,
.modal .btn-primary:focus {
    background-color: #f1cb50;
}

.modal .btn-outline-primary {
    /* Outlined */
    background-color: #0C0C0C;
    /* outlined bg */
    color: #fff;
    border: transparent;
    /* 2px border */
    border-radius: 10px;
    /* radius 10px */
    font-size: 16px;
    /* font size 16px */
    height: 50px;
    /* button height */
}

.modal .btn-outline-primary:hover,
.modal .btn-outline-primary:focus {
    background: var(--Gradient-01, linear-gradient(90deg, #D3AF37 0%, #FFF788 48.56%, #D3AF37 99.04%));
    box-shadow: 0 -5px 0 0 #876800 inset;
    color: #000000;
border-color: black;
}

/* Form fields inside modals */
.modal .form-control,
.modal .form-select,
.modal textarea.form-control {
   border: 0.9px solid #D3AF37;
    /* field border */
    border-radius: 5px;
    opacity: 0.9;
    /* radius 5px */
    height: 50px;
    /* height 50px */
    background-color: transparent;
    color: #FFFFFF;
}

/* Placeholder color */
.modal .form-control::placeholder,
.modal textarea.form-control::placeholder {
    color: #FFFFFF99;
    /* placeholder text */
}

/* Allow textarea to grow vertically if necessary while keeping base height */
.modal textarea.form-control {
    min-height: 50px;
}

.modal .form-control:focus,
.modal .form-select:focus,
.modal textarea.form-control:focus {
    box-shadow: none;
}

/* Labels inside modals */
.modal .form-label {
    font-size: 14px;
    /* label font size */
    font-weight: 700;
    /* label weight */
    color: #FFFFFF;
}

/* Inline eye button for password fields inside modals */
.modal .field-with-eye {
    position: relative;
}

.modal .field-with-eye .form-control {
    padding-right: 44px;
    /* room for eye button */
}

.modal .field-eye {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #FFFFFF99;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal .field-eye:hover,
.modal .field-eye:focus {
    color: #FFFFFF;
}




/* Tabs (Bootstrap nav-tabs) inside modals */
.modal .nav-tabs {
    border-bottom: 0;
    border-radius: 10px;
    border: 1px solid #D3AF37;
    justify-content: space-between;
    background-color: #02040F;
    padding: 10px;
    white-space: nowrap;
    /* no bottom border */
}



.modal .nav-item {
    flex: 1;
}

.modal .nav-tabs .nav-link {
    color: #FFFFFF;
    border: 0;
    /* no borders for non-active */
    background-color: transparent;
    /* transparent for non-active */
    border-radius: 5px;
    width: 100%;
    /* match button radius visually */
}

.modal .nav-tabs .nav-link.active {
    color: black;
    /* ensure contrast on light gradient */
    background: var(--Gradient-01, linear-gradient(90deg, #D3AF37 0%, #FFF788 48.56%, #D3AF37 99.04%));
    border: 0;
    /* keep borderless */
}

/* Checkbox inside modal */
.modal .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal .form-check-input {
    width: 25px;
    height: 25px;
    border-radius: 3px;
    border: 1px solid var(--Gradient-01, #D3AF37);
    background-color: transparent;
    box-shadow: none;
    margin-top: 0;
}

.modal .form-check-input:focus {
   box-shadow: 0 0 0 0.25rem rgba(241, 203, 80, 0.35);
    border-color: #f1cb50;
}

.modal .form-check-input:checked {
    background-color: #f1cb50;
    border-color: #f1cb50;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 10.5l3 3L15 7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

/* Inner panel in login modal body */
.modal .kb-panel {
    border: 1px solid #D3AF37;
    padding: 15px;
    border-radius: 10px;
}

/* Support modal: full width with 100px margin on both sides */
#supportModal .modal-dialog {
    max-width: none;
    width: calc(100vw - 200px);
    margin-left: 100px;
    margin-right: 100px;
}

/* On small screens, reduce margins to standard gutter */

/* Bank Deposit modal: same width and margins as Support modal */
#bankDepositModal .modal-dialog {
    max-width: none;
    width: calc(100vw - 200px);
    margin-left: 100px;
    margin-right: 100px;
}



/* Announcement modal: same width and margins as Bank Deposit modal */
#announcementModal .modal-dialog {
    max-width: none;
    width: calc(100vw - 200px);
    margin-left: 100px;
    margin-right: 100px;
}



/* =====================
   Announcements modal
   ===================== */
.modal .ann-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal .ann-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: transparent;
    color: #cfd8df;
    border: 1px solid #D3AF37;
    border-radius: 12px;
    padding: 12px 16px;
}



.modal .ann-item i {
    color: white;
}

.modal .ann-item:hover {
    border-color: #FFFFFF66;
}

.modal .ann-item.active {
    background: var(--Gradient-01, linear-gradient(90deg, #D3AF37 0%, #FFF788 48.56%, #D3AF37 99.04%));
    color: black;
    border: 0;
    box-shadow: none;
    border-radius: 12px;
}

.modal .ann-item.active i {
    color: white;
}

.modal .ann-detail {
    background: transparent;
    
}

.text-primary {
    color: #D3AF37 !important;
    --bs-text-opacity: 1;
}

.sucess-btn{
    color: #00C951 !important;
}

.danger-btn{
    color: #FF0037 !important;
}
/* Add border to the Announcements modal body area only */
#announcementModal .modal-body {
    border: 1px solid #FFFFFF66;
    border-radius: 12px;
    padding: 15px;
}

/* ===============================
   Support modal: fixed size with
   scrollable content area
   =============================== */
#supportModal .modal-content {
    display: flex;
    flex-direction: column;
    height: 80vh;
    /* keep size stable while switching tabs */
}

#supportModal .modal-body {
    overflow-y: auto;
    /* allow vertical scroll only */
    overflow-x: hidden;
    /* prevent horizontal scroll */
    flex: 1 1 auto;
    /* fill remaining height beneath header */
    /* hide scrollbars but keep scroll functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

/* Bank Deposit modal: fixed size with scrollable content area */
#bankDepositModal .modal-content {
    display: flex;
    flex-direction: column;
    height: 80vh;
    /* keep size stable while switching tabs */
}

#bankDepositModal .modal-body {
    overflow-y: auto;
    /* allow vertical scroll only */
    overflow-x: hidden;
    /* prevent horizontal scroll */
    flex: 1 1 auto;
    /* fill remaining height beneath header */
    /* hide scrollbars but keep scroll functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

/* Announcement modal: fixed size with scrollable content area */
#announcementModal .modal-content {
    display: flex;
    flex-direction: column;
    height: 80vh;
}

#announcementModal .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#announcementModal .modal-body::-webkit-scrollbar {
    width: 0;
    height: 0;
}



#bankDepositModal .modal-body::-webkit-scrollbar {
    /* Chrome/Safari */
    width: 0;
    height: 0;
}



#supportModal .modal-body::-webkit-scrollbar {
    /* Chrome/Safari */
    width: 0;
    height: 0;
}



/* Support modal: bordered tab content/panes */
#supportModal .tab-content {
    border: 1px solid #FFFFFF66;
    border-radius: 12px;
    padding: 15px;
    background: transparent;
}

/* Bank Deposit modal: bordered tab content/panes */
#bankDepositModal .tab-content {
    border: 1px solid #FFFFFF66;
    border-radius: 12px;
    padding: 15px;
    background: transparent;
}

/* Ensure header + table look like a single bordered block inside kb-panel */
#bankDepositModal .kb-panel>.table-responsive,
#bankDepositModal .kb-panel>.modal-pagination {
    margin-left: 0;
    margin-right: 0;
}

/* Coming soon placeholder centered box */
#bankDepositModal .coming-soon {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bankDepositModal .coming-soon .msg {
    text-align: center;
}

/* Balance summary strip separators */

#bankDepositModal .balance-strip .vr {
    display: inline-block;
    width: 2px;
    height: 28px;
    background-color: #FFFFFF66;
    border-radius: 1px;
}



/* Payment method logo buttons */
#bankDepositModal .pay-logo-btn {
    background: transparent;
    border: 0;
    padding: 0;
    min-width: 0;
    min-height: 0;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Coin cards grid for crypto withdrawal */
#bankDepositModal .coin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}





#bankDepositModal .coin-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-direction: row-reverse;
    background: #02040F;
    border: 1px solid #FFFFFF66;
    border-radius: 6px;
    padding: 16px;
    color: #cfd8df;
}

#bankDepositModal .coin-card:hover {
    border-color: #FFFFFF66;
    box-shadow: inset 0px 0px 8px 3px rgb(255 255 255 / 42%);
}

/* Selected/active coin card should mirror hover inner white shadow */
#bankDepositModal .coin-card.active,
#bankDepositModal .coin-card.selected,
#bankDepositModal .coin-card[aria-pressed="true"],
#bankDepositModal .coin-card:focus-visible {
    border-color: #FFFFFF66;
    box-shadow: inset 0px 0px 8px 3px rgb(255 255 255 / 42%);
}

#bankDepositModal .coin-card .cc-ico img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

#bankDepositModal .coin-card .cc-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

}

#bankDepositModal .coin-card .cc-text strong {
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 7px;
}

#bankDepositModal .coin-card .cc-text small {
    color: white;
    opacity: .8;
    line-height: 1;
    letter-spacing: 0.2px;
    font-size: 15px
}

/* Estimate box */
#bankDepositModal .estimate-box {
    border: 1px solid #FFFFFF66;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

/* Verify button style (crypto withdrawal) */
#bankDepositModal .btn-verify {
    background-color: #00C951;
    border-color: #00C951;
    color: #FFFFFF;
    border-radius: 10px;
    height: 50px;
    font-weight: 600
}

/* Right-aligned search icon inside coin search inputs */
#bankDepositModal .coin-search-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2351A2FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='7'/%3e%3cline x1='21' y1='21' x2='16.65' y2='16.65'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    padding-right: 44px;
}

#bankDepositModal .btn-verify:hover,
#bankDepositModal .btn-verify:focus {
    background-color: #00C951;
    border-color: #00C951;
    filter: brightness(1.05);
}

#bankDepositModal .pay-logo-btn:hover,
#bankDepositModal .pay-logo-btn:focus {
    box-shadow: none;
}

#bankDepositModal .pay-logo-btn img {
    display: block;
    height: auto;
    max-height: 64px;
    width: auto;
}

/* Simple horizontal separator inside Bank Deposit modal */
#bankDepositModal .kb-sep {
    height: 1px;
    background-color: #FFFFFF66;
    border: 0;
    margin: 16px 0;
}

/* Small online status dot */
#bankDepositModal .status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #00C851;
    border-radius: 50%;
    margin-left: 6px;
}

/* Deposit Account Details right panel bg */
#bankDepositModal .deposit-details-panel {
    background-color: #02040F;
}

/* Deposit Crypto Detail section */
#bankDepositModal .dep-crypto-details {
    border: 1px solid #FFFFFF66;
    border-radius: 12px;
    padding: 16px;
}

#bankDepositModal .dep-crypto-details .amount-box .convert-box {
    border: 1px solid #FFFFFF66;
    border-radius: 10px;
    padding: 14px 16px;
    background: #02040F;
    min-height: 64px;
}

#bankDepositModal .dep-crypto-details .amount-box .conv-input {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    font-size: 28px;
    color: #4DA3FF;
    font-weight: 700;
}

#bankDepositModal .dep-crypto-details .amount-box .eq-sign {
    color: #ffffff;
    font-weight: 700;
    font-size: 24px;
    padding: 0 8px;
}

#bankDepositModal .dep-crypto-details .qr-box {
    border: 1px solid #FFFFFF66;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    padding: 12px;
}

#bankDepositModal .dep-crypto-details .qr-placeholder {
    width: 220px;
    height: 220px;
    border: 1px dashed #FFFFFF66;
    color: #cfd8df;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

#bankDepositModal .dep-qr-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 6px;
}

#bankDepositModal .dep-crypto-details .label {
    font-size: 13px;
}

#bankDepositModal .dep-crypto-details .dep-copy-wrap {
    position: relative;
}

#bankDepositModal .dep-crypto-details .dep-copy-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 70px;
    height: 34px;
    border: 0;
    background: #4da3ff;
    color: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

#bankDepositModal .dep-crypto-details .dep-copy-btn:hover {
    filter: brightness(1.05);
}

#bankDepositModal .dep-crypto-details .input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#bankDepositModal .dep-crypto-details .inst-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}

#bankDepositModal .dep-crypto-details .inst-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

#bankDepositModal .dep-crypto-details .inst-item::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    background: #0ea5e9;
    box-shadow: inset 0 0 0 4px rgba(255,255,255,0.15);
}

/* Withdrawal details header */
#bankDepositModal .wd-crypto-details .wd-head .wd-status {
    background: #ff0037;
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
}

/* Withdrawal details header responsiveness */
@media (max-width: 576px) {
	#bankDepositModal .wd-crypto-details .wd-head {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding-right: 44px; /* space for close button */
	}
	/* Place close button at top-right of header */
	#bankDepositModal .wd-crypto-details .wd-head .btn-close {
		position: absolute;
		right: 0;
		top: 0;
	}
	/* Move ID and status under the heading, full-width row */
	#bankDepositModal .wd-crypto-details .wd-head > div {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 10px;
		margin-top: 4px;
		flex-wrap: wrap;
	}
	#bankDepositModal .wd-crypto-details .wd-head > h6 { width: 100%; }
	#bankDepositModal .wd-crypto-details .wd-head .wd-status { white-space: nowrap; }
}

@media (max-width: 768px) {
    #bankDepositModal .dep-crypto-details .inst-grid {
        grid-template-columns: 1fr;
    }
    #bankDepositModal .dep-crypto-details .qr-placeholder {
        width: 180px;
        height: 180px;
    }
    #bankDepositModal .dep-qr-img {
        width: 180px;
        height: 180px;
    }
}

/* Responsive layout for deposit crypto details */
@media (max-width: 992px) {
    #bankDepositModal .dep-crypto-details {
        padding: 12px;
    }
    #bankDepositModal .dep-crypto-details .amount-box {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    #bankDepositModal .dep-crypto-details .amount-box .eq-sign {
        display: none;
    }
}

@media (max-width: 576px) {
    #bankDepositModal .dep-crypto-details .amount-box .conv-input {
        font-size: 22px;
    }
    #bankDepositModal .dep-crypto-details .dep-copy-btn {
        min-width: 64px;
        height: 32px;
        right: 6px;
    }
    /* Make convert box full-width and show equal sign on mobile */
    #bankDepositModal .dep-crypto-details .amount-box .convert-box { width: 100%; }
    #bankDepositModal .dep-crypto-details .amount-box .eq-sign { display: block; text-align: center; margin: 6px 0; }
}

/* Remove number input spinners globally inside modals */
.modal input[type=number]::-webkit-inner-spin-button,
.modal input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.modal input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield; /* Firefox */
}

/* Common badge styling in modal tables */
.modal .table .badge {
    height: 32px;
    max-width: 85px !important;
    color: white !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    line-height: 1;
}

/* Icon-only button sizing */
#bankDepositModal .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
}

#bankDepositModal .btn-icon img {
    display: block;
}

/* Deposit details header pills */
#bankDepositModal .dep-header .dep-pill {
    background-color: #070b1c;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#bankDepositModal .dep-header .dep-pill.active {
    background: #02040F;
}

#bankDepositModal .dep-header .dep-pill .dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #0BC15C;
    display: inline-block;
}

/* File field: inline button + hint within bordered box */
#bankDepositModal .file-field {
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid #D3AF37;
    border-radius: 10px;
    padding: 10px;
}

#bankDepositModal .file-field .file-btn {
    min-width: 120px;
    height: 30px;
    border-radius: 4px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bankDepositModal .file-field.dragover {
    border-color: #51A2FF;
    box-shadow: inset 0 0 0 2px rgba(81, 162, 255, .2);
}

/* Customer Service tab: make Submit button match login modal primary */
#supportModal #pane-cs .btn-primary {
    color: black !important;
    border-radius: 10px;
    font-size: 16px;
    height: 50px;
}

#supportModal #pane-cs .btn-primary:hover,
#supportModal #pane-cs .btn-primary:focus {
    background-color: #51A2FF !important;
    border-color: #51A2FF !important;
    filter: brightness(1.05);
}

/* =====================
   Tables inside modals
   ===================== */
/* Global table styling scoped to Bootstrap modals */
.modal .table {
    border-radius: 10px;
    overflow: hidden;
    /* ensure rounded corners are visible */
    border-collapse: separate;
    /* allow custom borders without collapsing radius */
    border-spacing: 0;
    /* remove gaps when using separate */
    border: 1px solid #FFFFFF66;
    /* default border when no responsive wrapper */
    background-color: transparent;
    /* ensure table bg is transparent */
}

/* Ensure wrapper also clips corners when present */
.modal .table-responsive {
    border-radius: 10px;
    overflow-x: auto;
    /* allow horizontal scroll when content is wide */
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    /* inner vertical scroll for long tables */
    max-height: 450px;
    /* fixed viewport height for tables */
    min-height: 450px;
    /* keep consistent height even with few rows */
    border: 1px solid #0C0C0C;
    /* show outer border when wrapped */
}

/* Ensure Customer Service table uses the same fixed height */
/* All tables use global height; no tab-specific override needed */

/* Styled scrollbars for modal table containers */
.modal .table-responsive {
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(255, 247, 136, 0.50) 48.56%, rgba(211, 175, 55, 0.50) 99.04%;
}

.modal .table-responsive::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.modal .table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 12px;
}

.modal .table-responsive::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0);
    /* create rounded pill look */
    background-clip: padding-box;
}

.modal .table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Remove up/down arrow buttons on scrollbars (WebKit browsers) */
.modal .table-responsive::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

/* Avoid double border when table is inside a responsive wrapper */
.modal .table-responsive>.table {
    border: 0;
}

/* Modal table pagination (right-aligned, minimal) */
.modal .modal-pagination {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.modal .modal-pagination .mp-label,
.modal .modal-pagination .mp-range {
    font-size: 16px;
}

.modal .modal-pagination .mp-select {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid #FFFFFF66;
    border-radius: 8px;
    padding: 6px 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

.modal .modal-pagination .mp-select:focus {
    outline: none;
    box-shadow: none;
}

.modal .modal-pagination .mp-nav {
    background: transparent;
    border: 0;
    color: #D3AF37;
    padding: 4px 6px;
}

.modal .modal-pagination .mp-nav:hover,
.modal .modal-pagination .mp-nav:focus {
    color: #D3AF37;
}

/* Header with gradient background across the full row */
.modal .table thead tr {
    background-color: #0C0C0C;
}

.modal .table thead th {
    background: transparent !important;
    /* let the row gradient show through */
    color: #FFFFFF;
    border-bottom: 0;
    /* override any default */
}

/* Row separators in body */
.modal .table tbody td {
    border-bottom: 1px solid #FFFFFF66 !important;
}

/* .modal .table tbody tr:last-child td {
    border-bottom: 0 !important;
} */

/* Ensure transparent background for body rows and cells */
.modal .table tbody tr,
.modal .table tbody td {
    background-color: transparent !important;
}

/* Ensure transparent background for all table sections */
.modal .table,
.modal .table thead,
.modal .table tfoot,
.modal .table tr,
.modal .table th,
.modal .table td {
    background-color: transparent !important;
}

/* Hover effect: inner white shadow on table rows */
.modal .table tbody tr {
    transition: box-shadow .15s ease-in-out, background-color .15s ease-in-out;
}

.modal .table tbody tr:hover {
    /* inner highlight only on the top edge */
    box-shadow: 0 5px 30px 0 rgba(255, 247, 136, 0.40) inset;
}

/* Remove default cell borders for a cleaner look; rely on row separators */
.modal .table td,
.modal .table th {
    border: 0 !important;
}

/* Ensure table fits container and wraps to avoid horizontal scroll */
.modal .table {
    width: 100%;
    min-width: 1000px;
    /* trigger horizontal scroll for many columns */
    table-layout: auto;
    /* natural column widths for nowrap text */
}

.modal .table th,
.modal .table td {
    white-space: nowrap;
    /* keep text inline, no wrap */
    text-align: left;
    /* left align headers and data */
}

/* On small screens, allow horizontal scroll for wide tables */

/* Betting Management: always allow horizontal scroll and prevent wrapping */
/* Removed per global rules: betting management inherits global modal table scrolling and nowrap */

/* =========================
   Consolidated Media Rules
   ========================= */
@media (max-width: 768px) {
    .modal .modal-content {
        padding: 20px;
    }

    #supportModal .modal-dialog {
        width: auto;
        margin-left: 20px;
        margin-right: 20px;
    }

    #bankDepositModal .modal-dialog {
        width: auto;
        margin-left: 20px;
        margin-right: 20px;
    }

    #announcementModal .modal-dialog {
        width: auto;
        margin-left: 20px;
        margin-right: 20px;
    }

    #announcementModal .modal-content {
        height: auto;
        max-height: 90vh;
    }

    #bankDepositModal .modal-content {
        height: auto;
        max-height: 90vh;
    }

    #supportModal .modal-content {
        height: auto;
        max-height: 90vh;
    }

    #bankDepositModal .balance-strip .vr {
        display: none;
    }

    .modal .table {
        min-width: 900px;
    }

    .modal .table-responsive {
        max-height: 280px;
        min-height: 280px;
    }
}

@media (max-width: 992px) {
    #bankDepositModal .coin-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    #bankDepositModal .coin-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    /* Stack balance summary items vertically on mobile */
    #bankDepositModal .balance-strip {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }
    #bankDepositModal .balance-strip > * {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* Mobile typography tweaks for labels and tables */
@media (max-width: 576px) {
	.modal .form-label { font-size: 12px; }
	.modal .table tbody td { font-size: 13px; }
    .modal .table thead th { font-size: 13px; }
}

/* Mobile placeholder size */
@media (max-width: 576px) {
	.modal .form-control::placeholder,
	.modal textarea.form-control::placeholder { font-size: 12px; }
	.modal .form-control::-webkit-input-placeholder,
	.modal textarea.form-control::-webkit-input-placeholder { font-size: 12px; }
	.modal .form-control::-moz-placeholder,
	.modal textarea.form-control::-moz-placeholder { font-size: 12px; }
	.modal .form-control:-ms-input-placeholder,
	.modal textarea.form-control:-ms-input-placeholder { font-size: 12px; }
}

/* ==============================
   Global responsive enhancements
   ============================== */
/* Make all images inside modals fluid by default */
.modal img,
.modal .img-fluid {
	max-width: 100%;
	height: auto;
}

/* Avoid content overflow in generic blocks */
.modal .modal-body,
.modal .kb-panel,
.modal .tab-content,
.modal .ann-detail {
	word-break: break-word;
	overflow-wrap: anywhere;
}

/* Compact paddings on very small screens */
@media (max-width: 576px) {
	.modal .modal-content { padding: 16px; }
	.modal .kb-panel { padding: 12px; }
	.modal .tab-content { padding: 12px; }
	.modal .btn-primary,
	.modal .btn-outline-primary { height: 44px; font-size: 15px; }
	.modal .form-control,
	.modal .form-select { height: 44px; }
	.modal textarea.form-control { min-height: 44px; }
}

/* Make nav-tabs horizontally scrollable on small screens */
@media (max-width: 768px) {
	.modal .nav-tabs {
		overflow-x: auto;
		white-space: nowrap;
		flex-wrap: nowrap;
		gap: 8px;
		/* remove forced spread so tabs can scroll */
		justify-content: flex-start;
	}
	.modal .nav-item { flex: 0 0 auto; }
	.modal .nav-tabs .nav-link { width: auto; display: inline-flex; padding: 8px 12px; }
}

/* Tighter table constraints on extra-small screens */
@media (max-width: 576px) {
	.modal .table { min-width: 700px; }
	.modal .table-responsive { max-height: 240px; min-height: 240px; }
}

/* Global mobile fixes for modal paginations (inline, no wrap) */
@media (max-width: 576px) {
	.modal .modal-pagination {
		flex-direction: row !important;
		justify-content: center;
		align-items: center;
		flex-wrap: nowrap !important;
		gap: 8px;
		margin-top: 8px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.modal .modal-pagination > * { margin: 0 !important; flex: 0 0 auto; }
	.modal .modal-pagination .mp-label,
	.modal .modal-pagination .mp-range { font-size: 12px; white-space: nowrap; }
	.modal .modal-pagination .mp-select { height: 34px; padding: 4px 10px; font-size: 12px; min-width: 68px; }
	.modal .modal-pagination .mp-nav { width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
}

/* Mobile: button and terms typography overrides */
@media (max-width: 576px) {
	/* Filled and outlined buttons text size */
	.modal .btn-primary,
	.modal .btn-outline-primary { font-size: 12px; }
	/* Terms text in Deposit via Bank details */
	#bankDepositModal #bankDetails .form-check-label { font-size: 12px; }
}

/* Ensure grid columns in forms stack nicely on small screens */
@media (max-width: 768px) {
	/* Use full-width columns for common 3/4 column groups inside modals */
	.modal .row > [class*="col-md-4"],
	.modal .row > [class*="col-md-3"],
	.modal .row > [class*="col-md-6"] { flex: 0 0 100%; max-width: 100%; }
}

/* Improve spacing for inline elements like file fields */
@media (max-width: 576px) {
	#bankDepositModal .file-field { gap: 10px; padding: 8px; }
	#bankDepositModal .file-field .file-btn { min-width: 104px; height: 32px; font-size: 12px; }
}

/* Make QR and referral assets adapt on small devices */
@media (max-width: 576px) {
	.ref-qr-box { width: 150px; height: 150px; }
	.ref-qr-img { max-width: 100%; max-height: 100%; }
}

/* ==============================
   Points / Convert / Coupon tabs
   ============================== */
@media (max-width: 576px) {
	/* Stack title and CTA button */
	#bankDepositModal #pane-points .kb-panel > .d-flex,
	#bankDepositModal #pane-coupon .kb-panel > .d-flex {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	#bankDepositModal #pane-points .kb-panel > .d-flex .btn,
	#bankDepositModal #pane-coupon .kb-panel > .d-flex .btn { width: 100%; }

	/* Center and expand submit area in Convert tab */
	#bankDepositModal #pane-convert .kb-panel .row .col-12.d-flex { justify-content: center; }
	#bankDepositModal #pane-convert .kb-panel .row .col-12.d-flex .btn { width: 100%; }

	/* Center paginations under tables */
	/* Use global mobile pagination styles; no tab-specific overrides */
}

/* ==============================
   Deposit via Bank - Details view
   ============================== */
@media (max-width: 576px) {
	/* Header pills and back button layout */
	#bankDepositModal #bankDetails .dep-header {
		flex-wrap: wrap;
		justify-content: start;
		align-items: center;
		gap: 8px;
		text-align: center;
	}
	#bankDepositModal #bankDetails .dep-header .btn-icon { order: -1; }

	/* Action buttons row: stack and full width */
	#bankDepositModal #bankDetails .row .col-12.d-flex.gap-3 { flex-direction: column; }
	#bankDepositModal #bankDetails .row .col-12.d-flex.gap-3 .btn { width: 100%; }

	/* Right details panel spacing when stacked */
	#bankDepositModal #bankDetails .deposit-details-panel { margin-top: 6px; }
}