:root { --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; --bs-font-sans-serif: var(--bs-body-font-family); }

/* page Referesh animation */
.content-wrapper { opacity: 0; }
.main-wrapper.pageLoaded .content-wrapper { animation: fadeInContent .5s ease forwards; }
@keyframes fadeInContent {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* page loader animation */
.page-loader { position: fixed; z-index: 9999; display: flex; align-items: center;  justify-content: center; opacity: 1; visibility: visible; transition: all .4s ease; top: 3rem; left: 15rem; width: calc(100% - 15rem); height: calc(100vh - 3rem); background: rgb(0 0 0 / 40%); transition: all .4s ease, left .25s ease-in-out, width .25s ease-in-out;}
.page-loader.hide { opacity: 0; visibility: hidden; }
body.collapsed .page-loader {left: 48px; width: calc(100% - 48px); }
.loader-box { display: flex; align-items: center; justify-content: center; width: 480px; height: 50px; padding: 15px; border-radius: 12px; background: rgb(0 0 0 / 50%); text-align: center; color: rgb(255 255 255 / 50%); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: popup .3s ease; position: relative; z-index: 999; font-size: 1rem; letter-spacing: .5px; }
.page-wrap .page-loader {top: 0; left: 0; width: 100%; height: 100%;}


/* ================= GENERAL ================= */
.botDropDwon { margin-bottom: 1rem; text-align: right; }
.currency-dropdown { border: 1px solid #ccc; padding: 5px 8px; border-radius: 4px; font-size: 14px; font-weight: 400; cursor: pointer; color: var(--table-text); background-color: #fff; min-width: 80px; height: 2rem; min-height: 2rem; }
.currency-dropdown option { background: #3c4b64; color: #fff; }

/* ======================================================================
                    In House CSS Start
====================================================================== */
body, .admin-wrapper, .admin-wrapper *:not(.fas):not(.far):not(.fab):not(.fa):not([class*="fa-"]) { font-family: var(--bs-body-font-family) !important; }
body { background-color: var(--content-bg); font-size: 13px; color: var(--text-color); overflow: hidden; background: #e7ebee; }

/* === Top Navbar (Full Width Header) === */
.header { font-size: .875rem; display: flex; flex-wrap: nowrap; justify-content: space-between; position: fixed; z-index: 100; top: 0; right: 0; left: 0; align-items: center; width: 100%; height: 3rem; background: #465064; }
.header::after { bottom: -0.625rem; height: 0.625rem; background: linear-gradient(0, rgba(10, 16, 13, 0) 0%, #0a100d 100%); content: ""; display: block; position: absolute; width: 100%; left: 0; opacity: 0.2; }
.container-flex { padding-top: 3rem; display: flex; width: 100%; height: 100%; }

/* === Sidebar === */
.sidebar { width: 15rem; background: rgba(70, 80, 100, .8); color: #fff; height: calc(100vh - 3rem); transition: all .1s ease-in-out; position: fixed; left: 0; top: 3rem; z-index: 1000; display: flex; flex-direction: column; }
.sidebar-header { background: rgba(70, 80, 100, .6); color: #fff; display: flex; align-items: center; justify-content: space-between; padding-left: 1rem; }
.sidebar-header .welcome-text { font-size: 16px; color: #fff; font-weight: 400; }
.sidebar-header .menu-icon { display: flex; align-items: center; justify-content: center; cursor: pointer; width: 3rem; height: 3rem; background-color: rgba(70, 80, 100, .8); }
.sidebar-header .menu-icon span { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
.sidebar-header .menu-icon span::before, .sidebar-header .menu-icon span::after { content: ''; position: absolute; width: 18px; height: 2px; background: #fff; left: 0; }
.sidebar-header .menu-icon span::before { top: -5px; }
.sidebar-header .menu-icon span::after { bottom: -5px; }
.sidebar-menu { list-style: none; padding: 0; margin: 0; flex: 1; overflow-y: auto; background: rgba(107, 115, 131); }
.sidebar-menu .nav-item { border-bottom: none; }
.sidebar>.sidebar-menu>.nav-item>.nav-link { display: flex; align-items: center; padding-left: 1.5rem; text-decoration: none; transition: background 0.2s, color 0.2s; cursor: pointer; font-size: 14px; background-color: transparent; min-height: 3.25rem; position: relative; }
.sidebar>.sidebar-menu>.nav-item>.nav-link .sidebar-icon { width: 1.5rem; height: 1.5rem; margin-right: .5rem; background-repeat: no-repeat; background-position: center; background-size: contain; }
.sidebar>.sidebar-menu>.nav-item>.nav-link .sidebar-icon.sidebar-dashboard { background-image: url(../images/sidebar-dashboard.svg); }
.sidebar>.sidebar-menu>.nav-item>.nav-link .sidebar-icon.sidebar-myAccount { background-image: url(../images/sidebar-myAccount.svg); }
.sidebar>.sidebar-menu>.nav-item>.nav-link .sidebar-icon.sidebar-material { background-image: url(../images/sidebar-material.svg); }
.sidebar>.sidebar-menu>.nav-item>.nav-link .sidebar-icon.sidebar-report { background-image: url(../images/sidebar-report.svg); }
.sidebar>.sidebar-menu>.nav-item>.nav-link .nav-text { flex: 1; font-size: 1rem; color: #fff; }
.sidebar>.sidebar-menu>.nav-item>.nav-link.has-treeview::after { transition: transform 0.3s; right: .5rem; width: 1.25rem; height: 1.25rem; content: ""; position: absolute; background-repeat: no-repeat; background-position: center; background-size: contain; background-image: url(../images/sidebar-dropDownArrow.svg); }
.sidebar>.sidebar-menu>.nav-item>.nav-link.has-treeview[aria-expanded="false"]::after { transform: rotate(0deg); }
.sidebar>.sidebar-menu>.nav-item>.nav-link.has-treeview[aria-expanded="true"]::after { transform: rotate(180deg); }
.sidebar>.sidebar-menu>.nav-item>.nav-link:hover { background-color: rgba(70, 80, 100, .6); color: #fff; }
.sidebar>.sidebar-menu>.nav-item>.nav-link[aria-expanded="true"] { background-color: rgba(70, 80, 100, .6); }
.sidebar>.sidebar-menu>.nav-item .nav-treeview { list-style: none; padding: .5rem 0; margin: 0; background-color: #fff !important; display: none; }
.sidebar>.sidebar-menu>.nav-item .nav-treeview.show { display: block; }
.sidebar>.sidebar-menu>.nav-item .nav-treeview li { margin: 0; }
.sidebar>.sidebar-menu>.nav-item .nav-treeview .nav-link { padding: .625rem 2.5rem; color: #666; display: block; width: 100%; text-align: left; font-size: 1rem; -webkit-tap-highlight-color: rgba(0, 140, 255, 0.25);}
.sidebar>.sidebar-menu>.nav-item .nav-treeview .nav-link:hover, .sidebar>.sidebar-menu>.nav-item .nav-treeview .nav-link:focus { color: #3e4d6d; }
.header .top-links { justify-content: space-between; width: 100%; align-items: center; display: flex; }
.header .link-item { display: flex; align-items: center; font-size: 12px; color: #9da5b1; margin: 0 1rem 0 .75rem; }
.header .link-item .link-label { margin-right: .75rem; color: rgba(255, 255, 255, .6); font-size: .875rem; line-height: 1; }
.header .link-item .link-url-box { background: rgba(255, 255, 255, .1); border: none; border-radius: 3px; color: #fff; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
.header .link-item .link-url-box .ic-link { width: 2rem; height: 2rem; background-color: #fff; -webkit-mask: url(../images/icon-link.svg) no-repeat center / 40%; mask: url(../images/icon-link.svg) no-repeat center / 40%; }
.header .link-item .link-url-box .copy-btn { width: 2rem; height: 2rem; transition: .3s; border-radius: 0 .25rem .25rem 0; background-color: #9096a2; padding: 0; border: 0; }
.header .link-item .link-url-box .copy-btn span { background-color: rgba(255, 255, 255, .4); -webkit-mask: url(../images/icon-copy-w.svg) no-repeat center / 50%; mask: url(../images/icon-copy-w.svg) no-repeat center / 50%; width: 2rem; height: 2rem; background-color: #fff; display: block; }
.header .link-item .link-url-box .copy-btn:hover { background-color: #fff; }
.header .link-item .link-url-box .copy-btn:hover span { background-color: #212121; }
.header .link-item .link-url-box .link-url { width: calc(18.75rem - 2rem); height: 2rem; min-height: 2rem; color: #fff; font-size: .875rem; display: flex; align-items: center; line-height: 2rem; }
.header .balance-wrapper { font-size: 12px; color: #fff; display: flex; align-items: center; margin: 0 1rem 0 .75rem; }
.header .balance-wrapper .ic-logout { border-radius: .25rem; border: 1px solid #fff; color: #fff; flex: 0 0 2rem; width: 2rem; height: 2rem; padding: 0; background-color: transparent; }
.header .balance-wrapper .header-commission { margin: 0 0.75rem .125rem auto; color: #fff; display: flex; position: relative; flex-wrap: wrap; align-items: center; justify-content: end; width: 10rem; font-size: .75rem; }
.header .balance-wrapper .header-commission span { margin-left: 3px; }
.header .balance-wrapper .ic-logout span { mask: url(../images/icon-logout-w.svg) no-repeat center / 70%; -webkit-mask: url(../images/icon-logout-w.svg) no-repeat center / 70%; height: 26px; display: block; background-size: 21px 19px; background-color: #fff; }
.header .balance-wrapper .ic-logout:hover { background-color: #fff; }
.header .balance-wrapper .ic-logout:hover span { background-color: #000; }
.user-dropdown .dropdown-toggle { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 5px; background: none; border: none; padding: 0; }
.user-dropdown .dropdown-toggle::after { display: none; }
.user-icon-circle { width: 26px; height: 26px; background-color: #8b0000; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; }
.referral-code-mobile { margin-right: auto; }
.referral-code-mobile .code-copy { display: flex; position: relative; align-items: center; background: rgba(255, 255, 255, 0.15); border-radius: 6px; overflow: hidden; margin-left: .4rem; }
.referral-code-mobile .btn-copy { display: flex; align-items: center; gap: 4px; width: 100%; height: 36px; padding: 0 7px; color: #fff; background: transparent; border: none; cursor: pointer; font-size: 2.381643vw; line-height: 1.2; }
.referral-code-mobile .ic-link { width: 15px; height: 15px; background: #fff; -webkit-mask: url('../images/icon-copy-w.svg') no-repeat center / contain; mask: url('../images/icon-copy-w.svg') no-repeat center / contain; }
.referral-code-mobile .btn-copied { position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: #4d576a; color: #fff; border: none; font-size: 14px; }
.referral-code-mobile .btn-copied.show { animation: slideDown 0.4s forwards; }
.referral-code-mobile .btn-copy.hide { opacity: 0; }

/* animation */
@keyframes slideDown {
    from { top: -100%; }
    to { top: 0; }
}

/* === Main Content === */
.main-wrapper { background: #e7ebee; flex: 1; margin-left: 15rem; height: calc(100vh - 3rem); overflow-y: auto; overflow-x: hidden; width: auto; transition: margin-left .25s ease-in-out; }
.content-wrapper { padding: 1rem 1rem 0; margin-top: 0; }

/* Common Card Styles */
.card { border: 1px solid var(--card-border); border-radius: 0; box-shadow: none; margin-bottom: 15px; background: #fff; }
.card-header { background-color: #fff; border-bottom: 1px solid #e4e7ea; padding: 10px 15px; color: #333; font-size: 13px; font-weight: 700; position: relative; display: flex; justify-content: space-between; align-items: center; }
.card-header::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background-color: #3c4b64; }
.card-header .header-title { display: flex; align-items: center; gap: 8px; }

/* DataTables Overrides */
.table-custom { margin-bottom: 0; }
.table-custom thead th { background-color: var(--table-header-bg); color: var(--table-header-text); font-weight: 500; border: none; padding: 8px 10px; font-size: 11px; text-align: center; }
.table-custom tbody td { font-size: 11px; padding: 6px 10px; vertical-align: middle; border-bottom: 1px solid #e4e7ea; text-align: center; }
.table-striped tbody tr:nth-of-type(odd) { background-color: #f9fafb; }
.table-striped tbody tr:nth-of-type(even) { background-color: #fff; }

/* Filter Bar Styles */
.filter-bar { background-color: #fff; padding: 10px 15px; border-bottom: 1px solid #e4e7ea; }
.btn-dark-filter { background-color: #4a5568; color: #fff; border: none; font-size: 11px; padding: 5px 10px; border-radius: 2px; }
.btn-dark-filter:hover { background-color: #3c4b64; color: #fff; }
.btn-teal { background-color: #20c997; color: #fff; border: none; font-size: 11px; padding: 5px 12px; border-radius: 2px; }
.btn-teal:hover { background-color: #1aa87c; color: #fff; }

/* Footer */
.main-footer { color: #666; padding: 1rem 0; font-size: .75rem; text-align: center; position: relative; background: #e7ebee; } /*z-index: 10000;*/

/* Floating action button */
.fab-btn { position: fixed; bottom: 60px; right: 20px; width: 50px; height: 50px; border-radius: 50%; background: #8b0000; color: #fff; border: none; font-size: 20px; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); z-index: 100; display: flex; align-items: center; justify-content: center; }
.fab-btn:hover { background: #a00; }
.help-badge { position: absolute; top: -5px; right: -5px; background: #dc3545; color: #fff; font-size: 9px; padding: 2px 5px; border-radius: 10px; }

/* Collapsed Sidebar State */
body.collapsed .sidebar { width: 3.5rem; overflow: visible !important; }
body.collapsed .sidebar .sidebar-menu { overflow: visible !important; }
body.collapsed .sidebar .nav-text, body.collapsed .sidebar .nav-arrow, body.collapsed .sidebar-header .welcome-text { display: none; }
body.collapsed .sidebar { width: 48px; }
body.collapsed .sidebar .sidebar-header { padding-left: 0; }
body.collapsed .sidebar>.sidebar-menu>.nav-item>.nav-link { padding: 1.25rem 0; }
body.collapsed .sidebar>.sidebar-menu>.nav-item>.nav-link .sidebar-icon { margin-right: 0; }
body.collapsed .sidebar>.sidebar-menu>.nav-item>.nav-link .sidebar-icon { width: 1.75rem; height: 1.75rem; }
body.collapsed .sidebar .nav-text, body.collapsed .sidebar .nav-arrow, body.collapsed .sidebar-header .welcome-text { display: none; }
body.collapsed .sidebar .nav-link { justify-content: center; padding: 12px 0; }
body.collapsed .sidebar .nav-icon, body.collapsed .sidebar .nav-icon-svg { margin: 0; }
body.collapsed .main-wrapper { margin-left: 48px; }
body.collapsed .sidebar>.sidebar-menu>.nav-item>.nav-link.has-treeview::after { background-image: none; }

/* Desktop Collapsed Submenu (Popover) */
body.collapsed .nav-item { position: relative; }
body.collapsed .nav-treeview { position: absolute; left: 3.3rem; top: .25rem; display: none; z-index: 3050; border-left: none; width: 12.5rem; background: #fff; -moz-box-shadow: 0 .25rem .25rem 0 rgba(0, 0, 0, .6); -webkit-box-shadow: 0 .25rem .25rem 0 rgba(0, 0, 0, .6); box-shadow: 0 .25rem .25rem 0 rgba(0, 0, 0, .6); }
body.collapsed .nav-treeview.show { display: block !important; }
body.collapsed .sidebar>.sidebar-menu>.nav-item .nav-treeview .nav-link { padding: .625rem 1.5rem !important; text-align: left; justify-content: flex-start; color: #666 !important; }
body.collapsed .sidebar>.sidebar-menu>.nav-item .nav-treeview .nav-link:hover { background-color: rgba(255, 255, 255, 0.1) !important; color: #3e4d6d; }

/* DashBoard page start */
.dash-card { box-shadow: 0 .25rem .25rem rgba(0, 0, 0, .1); border-radius: 4px; border: 0 !important; }
.dash-card.close { box-shadow: none; }
.dash-header { background: #fff; padding: 1rem 1.6rem 1rem 1rem; font-weight: 700; color: #333; border-bottom: .0625rem solid #ddd; display: flex; justify-content: space-between; align-items: center; font-size: 1.25rem; line-height: 1.2; }
.dash-card.close .dash-header { box-shadow: 0 .25rem .25rem rgba(0, 0, 0, .1); }
.dash-header span { position: relative; padding-left: .88rem; margin-left: .5rem; }
.dash-header span::before { width: .375rem; height: 1.5rem; margin-right: .5rem; background: #465064; border-radius: .25rem; content: ""; position: absolute; left: 0; }
.dash-header .collapse-icon { color: #949494; font-size: 17px; cursor: pointer; }
.dash-table-wrapper { padding: 1.5rem 1rem; background-color: #fff; }

/* Dashboard Tables */
.dash-table { width: 100%; font-size: .875rem; border-collapse: collapse; }
.dash-table thead tr { border-top: .125rem solid #465064; }
.dash-table th { background-color: #e5e7e9; color: #343434; padding: .44rem .5rem; text-align: center; border: none; border-bottom: .0625rem solid #d3d5da; font-size: .875rem; font-weight: 700; }
.dash-table th:not(:last-of-type) { border-right: .0625rem solid #d3d5da; }
.dash-table tbody tr:nth-child(even) { background: #efefef; }
.dash-table td { padding: .5rem; border-bottom: .0625rem solid #ddd; color: #343434; font-size: .875rem; text-align: center; line-height: normal; }
.dash-table tbody tr:nth-child(odd) { background-color: #fff; }
.dash-table tbody tr:nth-child(even) { background-color: #efefef; }
.text-danger-bracket { color: #dc3545; }
.summary-section { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 1rem; }
.summary-card { border-top: 3px solid rgba(70, 80, 100, .5); position: relative; padding: 1.2rem 1rem 1.35rem; border-bottom-left-radius: .25rem; border-bottom-right-radius: .25rem; }
.summary-card.commission { background: rgba(72, 130, 134, .2); position: relative; }
.summary-card.players { background: rgba(95, 173, 86, .2); }
.summary-title { font-weight: 700; color: #343434; margin: .5rem 0; font-size: 1rem; }
.summary-content { float: right; }
.summary-row { display: flex; align-items: baseline; padding: .25rem .375rem; width: 100%; justify-content: flex-end; }
.summary-label { color: #747c8b; font-size: 1rem; margin: .5rem 0; line-height: 1.2; font-weight: 700; }
.summary-value { flex: 2; margin-left: .9375rem; color: #465064; font-size: 1.875rem; font-weight: 300; letter-spacing: -1px; line-height: .8; text-align: right; }

/* Dashboard Grid Layout */
.dashboard-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .99rem; margin-bottom: 1rem; }
.dashboard-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .936rem; margin-bottom: 1rem; }
.dashboard-grid-1 { display: grid; grid-template-columns: 1fr; gap: .9rem; margin-bottom: 1rem; }

/* Common UI Components */
.page-title { font-size: 14px; font-weight: 600; color: #333; border-left: 3px solid #3c4b64; padding: 12px 15px; background: #fff; margin: -15px -15px 15px -15px; border-bottom: 1px solid #e4e7ea; }
.filter-section { background: #fff; margin-bottom: 20px; }
.dateFilter-dropDown { position: relative; z-index: 10; margin-bottom: .45rem; }
.filter-row:last-child { border-bottom: none; }
.date-filter-btn { border: 1px solid #465064; padding: 0 .5rem 0 .5rem; font-size: 1rem; font-weight: 600; cursor: pointer; border-radius: 4px; display: inline-flex; align-items: center; gap: 5px; font-weight: 700; border-radius: .25rem; background-color: #465064; color: #fff; min-height: 2rem; }
.date-filter-btn i { font-size: 12px; }
.date-filter-btn .icon-arrow { width: 1.25rem; height: 1.25rem; background-repeat: no-repeat; background-position: center; background-size: contain; background-image: url(../images/icon-arrow-white.svg); margin-left: -5px; transition: all .2s ease-in-out .05s; }
.date-filter-btn .icon-arrow.dataFilter-up { transform: rotate(180deg); }
.date-filter-btn .icon-arrow.dataFilter-down { transform: rotate(0); }
.date-filter-btn.active { border-radius: 4px 4px 0 0; }

/* Full-width overlay that sits on top of the filter form */
.date-toolbar-overlay { display: none; position: absolute; top: 33px; left: 0; right: 0; z-index: 1050; background: rgba(70, 80, 100, 0.92); padding: 0; border-radius: .25rem; max-width: 800px; -moz-box-shadow: 0 .25rem .25rem 0 rgba(10, 16, 13, .4); -webkit-box-shadow: 0 .25rem .25rem 0 rgba(10, 16, 13, .4); box-shadow: 0 .25rem .25rem 0 rgba(10, 16, 13, .4); }
.date-toolbar-overlay .date-quick-btns { display: flex; flex-wrap: wrap; margin-bottom: 0; padding: 1.25rem 1rem 1.25rem 120px; border-bottom: .0625rem solid rgba(255, 255, 255, .2); }
.date-toolbar-overlay .date-quick-btns button { border: 1px solid #488286; padding: .375rem 1rem; font-size: 0.8125rem; cursor: pointer; transition: background 0.2s; margin-left: .25rem; border-radius: .25rem; background-color: #488286; color: #fff; font-weight: 700; }
.date-toolbar-overlay .date-quick-btns button:hover { background-color: #3a686b; border-color: #345f62; color: #fff; }
.date-toolbar-overlay .date-cancel-row { display: flex; justify-content: flex-end; padding: .5rem 1rem; background: rgba(10, 16, 13, .2); }
.date-toolbar-overlay .date-cancel-row button { background: #ccc; color: #212121; border: none; padding: .3899rem 1rem; border-radius: 4px; font-size: 0.8125rem; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.date-toolbar-overlay .date-cancel-row button:hover { background: #dee2e6; }
.filter-label { font-size: 11px; font-weight: 600; color: #333; margin-bottom: 4px; display: block; }
.filter-input, .filter-select { border: 1px solid #ced4da; padding: 5px 10px; font-size: 11px; width: 100%; border-radius: 0; background: #fff; }
.column-visibility-btn { background: #fff; border: 1px solid #ced4da; padding: 5px 10px; font-size: 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.column-visibility-menu { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #ced4da; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); padding: 8px; z-index: 1000; min-width: 200px; display: none; margin-top: 5px; }
.column-visibility-menu.show { display: block; }
.column-visibility-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.column-visibility-item:hover { background: #f8f9fa; }
.column-visibility-item input { cursor: pointer; }
.column-visibility-item label { cursor: pointer; margin: 0; font-size: 11px; }
.exportSearch { display: flex; align-items: center; justify-content: end; padding: .75rem 1rem; border-top: .0625rem solid #ddd; gap: .25rem; }
.exportSearch .exportSearch-btn { margin-left: .25rem; border-radius: .25rem; background-color: #465064; border: 1px solid #465064; color: #fff; display: inline-flex; align-items: stretch; padding: 0; font-weight: 700; font-size: 1rem; }
.exportSearch .exportSearch-btn .esb-btn { padding: 1rem 1.125rem; background-color: rgba(10, 16, 13, .14); background-size: 1.125rem; width: auto; height: auto; background-repeat: no-repeat; background-position: center; display: block; }
.exportSearch .exportSearch-btn .esb-btn.export { background-image: url(../images/export.svg); }
.exportSearch .exportSearch-btn .esb-btn.search { background-image: url(../images/search-white.svg); }
.exportSearch .exportSearch-btn .text { padding: .175rem 1rem; }
.exportSearch .exportSearch-btn:hover { background-color: #353d4c; border-color: #2f3643; }

/* Column Visibility — reference-site design */
.colvis-wrapper { position: relative; display: inline-block; margin-bottom: .8rem; }
.colvis-btn { border: 1px solid #465064; padding: 0.34em 1em 0.34em .5em; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1.5; user-select: none; margin-right: 0; border-radius: .3125rem; background: #fff; color: #465064; }
.colvis-btn i { font-size: 19px; }
.colvis-btn:hover { background: #465064; color: #fff; }
.colvis-dropdown { display: none; position: absolute; top: 32px; left: 0; background: #fff; border: 1px solid #ddd; box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3); z-index: 1050; width: auto; min-width: 150px; max-width: 250px; max-height: 190px; overflow-y: auto; margin-top: 3px; padding: 10px 8px 4px 10px; border: 1px solid rgba(0, 0, 0, 0.4); }
.colvis-dropdown.show { display: block; }
.colvis-item { display: flex; align-items: center; gap: 0; padding: 0; margin: 0; cursor: pointer; font-size: 13px; color: #333; font-weight: 400; user-select: none; margin-bottom: 10px; }

/* Hide native checkbox */
.colvis-item input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

/* Custom square checkbox — grey unchecked, dark blue checked */
.colvis-item input[type="checkbox"]+span.colvis-check { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; min-width: 24px; flex-shrink: 0; background-color: #888; border-radius: 0; position: relative; transition: background-color .15s; }
.colvis-item input[type="checkbox"]:checked+span.colvis-check { background-color: #465064; }
.colvis-item:hover input[type="checkbox"]:checked+span.colvis-check { background-color: #587fc5; }
.colvis-item input[type="checkbox"]+span.colvis-check::after { content: ''; display: none; width: 5px; height: 9px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg) translateY(-1px); }
.colvis-item input[type="checkbox"]:checked+span.colvis-check::after { display: block; }
.colvis-item span.colvis-label { padding: 0 10px; }
.data-table-wrapper { background: #fff; }
.data-table { width: 100%; font-size: 11px; border-collapse: collapse; }
.data-table thead th { background: #4a5568; color: #fff; padding: 9px 18px; font-weight: 700; text-align: center; border: none; white-space: nowrap; border-right: .0625rem solid #6b7383; font-size: .875rem; }
.data-table tbody td { padding: 7.5px 10px; text-align: center; border-bottom: 1px solid #e4e7ea; white-space: nowrap; font-size: .875rem; }
.data-table tbody tr:nth-child(odd) { background: #eee; }
.data-table tbody tr:nth-child(even) { background: #fff; }
.data-table tbody tr.page-total, .data-table tfoot tr.page-total { background: #5a6373; color: #fff; font-weight: 600; }
.data-table tbody tr.grand-total, .data-table tfoot tr.grand-total { background: #4a5568; color: #fff; font-weight: 600; }
.data-table tfoot th { padding: 9px 18px; font-weight: 700; text-align: center; border: none; white-space: nowrap; border-right: .0625rem solid #6b7383; font-size: .875rem; color: #fff; border-top: 1px solid #111; background-color: #465064; }
.table-footer { display: flex; padding: 1.25rem 0 0; background: #fff; flex-direction: column; }
.table-footer .entryDropdown-pagination { display: flex; align-items: center; justify-content: space-between; }
.table-footer .entryDropdown-pagination .dataTables_length label { display: flex; align-items: center; font-size: 1rem; }
.table-footer .entryDropdown-pagination .dataTables_length label select { margin: 0 3px; border: .0625rem solid #747c8b; width: 58px; appearance: auto; background-image: none; font-size: 1rem; min-width: auto; }
.table-footer .entryDropdown-pagination .dataTables_paginate .pagination { gap: .9375rem; }
.table-footer .entryDropdown-pagination .dataTables_paginate .pagination .page-link { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: .0625rem solid rgba(70, 80, 100, .5); border-radius: .3125rem !important; }
.table-footer .entryDropdown-pagination .dataTables_paginate .pagination .disabled>.page-link, .table-footer .entryDropdown-pagination .dataTables_paginate .pagination .page-link.disabled { background-color: transparent; }
.table-footer .entryDropdown-pagination .dataTables_paginate .pagination .active>.page-link, .table-footer .entryDropdown-pagination .dataTables_paginate .pagination .page-link.active { background-color: #465064; }
table.dataTable thead>tr>th.sorting_asc:before, table.dataTable thead>tr>th.sorting_desc:after, table.dataTable thead>tr>td.sorting_asc:before, table.dataTable thead>tr>td.sorting_desc:after { opacity: 1; color: #7a80dd; }
.actionBtns { display: flex; align-items: center; justify-content: center; gap: 5px; }
.actionBtns .tableBtn-gray { border: 0; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0; }
.actionBtns .tableBtn-gray span { background-repeat: no-repeat; background-position: center; display: block; width: 16px; height: 16px; background-size: contain; }
.actionBtns .tableBtn-gray span.icon-copy { background-image: url(../images/icon-copy-gray.svg); opacity: 0.7; }
.actionBtns .tableBtn-gray span.icon-save { background-image: url(../images/icon-save.svg); opacity: 0.7; }
.actionBtns .tableBtn-gray span.icon-edit { background-image: url(../images/icon-edit.svg); }
.actionBtns .tableBtn-gray.btn-edit { background-color: #465064; border-radius: .25rem; }
.actionBtns .tableBtn-gray.btn-copy-table:hover span.icon-copy, .actionBtns .tableBtn-gray.btn-qr-download:hover span.icon-save { opacity: 1; }
.table-footer .showEntryInfo { color: #333; font-size: 1rem; margin: 1rem 0; }
.linkContent .dash-table-wrapper { padding-bottom: 0; }
.creatSearch { padding: .75rem 1rem; border-top: .0625rem solid #ddd; background-color: #fff; }
.entries-info { font-size: 11px; color: #666; display: flex; align-items: center; gap: 5px; }
.entries-select { border: 1px solid #ced4da; padding: 2px 5px; font-size: 11px; }
.action-btns { display: flex; gap: 8px; }
.btn-export { background: #20c997; color: #fff; border: none; padding: 6px 12px; font-size: 11px; cursor: pointer; border-radius: 2px; display: inline-flex; align-items: center; gap: 5px; }
.btn-export:hover { background: #1aa87c; }
.btn-search { background: #007bff; color: #fff; border: none; padding: 6px 12px; font-size: 11px; cursor: pointer; border-radius: 2px; display: inline-flex; align-items: center; gap: 5px; }
.btn-search:hover { background: #0056b3; }
.loading-spinner { text-align: center; padding: 30px; color: #666; }
.pagination { display: flex; gap: 5px; }
.pagination button { padding: 5px 10px; border: 1px solid #ced4da; background: #fff; cursor: pointer; font-size: 11px; }
.pagination button.active { background: #4a5568; color: #fff; border-color: #4a5568; }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Modals */
.modal-content { max-height: calc(100dvh - 6rem); background: #fff; border-radius: .25rem; -moz-box-shadow: 0 0 1rem 0 rgba(0, 0, 0, .6); -webkit-box-shadow: 0 0 1rem 0 rgba(0, 0, 0, .6); box-shadow: 0 0 1rem 0 rgba(0, 0, 0, .6); display: flex; z-index: 2060; flex-direction: column; width: 100%; overflow: hidden; }
.modal-header { border-bottom: .0625rem solid #ddd; padding: 1rem; }
.modal-title { font-size: 1rem; font-weight: 700; color: #343434; margin-right: auto; margin-left: auto; }
.modal-header .btn-close { margin-left: initial; width: 2rem; height: 2rem; }
.modal-footer { padding: .75rem 1.5rem; border-top: .0625rem solid #ddd; }
.modal-footer .btn-cancel { margin: 0; margin-right: .5rem; border-radius: .25rem; background-color: #ccc; border-color: #ccc; color: #212121; min-height: 2rem; padding: .2rem 1rem; border: 1px solid transparent; font-weight: 700; }
.modal-footer .btn-cancel:hover { background-color: #b8b8b8; border-color: #b0b0b0; color: #212121; }
.modal-footer .btn-submit { border-radius: .25rem; background-color: #465064; border-color: #465064; color: #fff; min-height: 2rem; padding: .2rem 1rem; border: 1px solid transparent; font-weight: 700; }
.modal-footer .btn-submit:hover { background-color: #353d4c; border-color: #2f3643; color: #fff; }
.modal-footer .btn-save { border-radius: .25rem; background-color: #5fad56; border-color: #5fad56; color: #fff; min-height: 2rem; padding: .2rem 1rem; border: 1px solid transparent; font-weight: 700; }
.modal-footer .btn-save:hover { background-color: #4f9347; border-color: #4a8942; }
.modal-body { padding: 1.5rem; flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; }
.form-group { padding: .75rem .5rem; }
.form-group .form-label { font-weight: 700; font-size: .875rem; margin-bottom: .3125rem; }
.form-group .form-control { height: 2rem; min-height: 2rem; font-size: .875rem; line-height: 2rem; min-width: 5rem; padding: 0 .5rem; border-radius: .25rem; width: 100%; border: 1px solid #ccc; }
.form-group select.form-control { -webkit-appearance: auto; -moz-appearance: auto; appearance: auto; background-image: none; }

/* Edit Contact Info Modal */
.contactRowsContainer .form-group:last-child { margin-bottom: 0; }
.contactAdd-btn { border-radius: .25rem; border: 1px solid #488286; color: #488286; padding: .2rem 1rem; font-weight: 700; min-height: 2rem; background-color: transparent; font-size: 1rem; line-height: normal; }
.contactAdd-btn:hover { border-color: #488286; background-color: #488286; color: #fff; }
.contactdelete-btn { border-radius: .25rem; border: 1px solid #cc2936; color: #cc2936; padding: .2rem 1rem; font-weight: 700; min-height: 2rem; background-color: transparent; font-size: 1rem; line-height: normal; }
.contactdelete-btn:hover { border-color: #cc2936; background-color: #cc2936; color: #fff; }

/* View Modal (Bank/Player History) */
.bankPlayer-wrapper { border-radius: .25rem; -moz-box-shadow: 0 .25rem .25rem 0 rgba(0, 0, 0, .1); -webkit-box-shadow: 0 .25rem .25rem 0 rgba(0, 0, 0, .1); box-shadow: 0 .25rem .25rem 0 rgba(0, 0, 0, .1); }
.bankPlayer-content { padding: 1.5rem 1rem; }
.bankPlayer-card .bankPlayerCard-header { background-color: #465064; color: #fff; height: 2.5rem; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.bankPlayer-card .bankPlayerCard-body { padding: .625rem 1rem; border: .0625rem solid #ddd; -moz-box-shadow: 0 .0625rem .25rem 0 rgba(0, 0, 0, .1); -webkit-box-shadow: 0 .0625rem .25rem 0 rgba(0, 0, 0, .1); box-shadow: 0 .0625rem .25rem 0 rgba(0, 0, 0, .1); }

/* Bank Page Styles */
.bank-grid { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; }
.bank-card { flex: 0 0 32.14%; max-width: 32.14%; margin-left: 5px; margin-bottom: 1rem; }
.bank-card:nth-child(3n+1) { margin-left: 0; }
.bank-card .dash-header span { display: flex; align-items: center; }
.bank-card .dash-header span.badge { padding: 2px 10px 4px 10px; font-size: 10px; font-weight: 400; line-height: 1; }
.bank-card .dash-header span.badge::before { display: none; }
.bank-card .dash-table { font-weight: 700; }
.bank-card .dash-table td { border-bottom: transparent; }
.bank-card .dash-table tbody tr:nth-child(odd) { background-color: #efefef; }
.bank-card .dash-table tbody tr:nth-child(even) { background-color: #fff; }
.btn-add { background: #587fc5; color: #fff; border: none; padding: 10px 20px; border-radius: 50%; font-size: 26px; cursor: pointer; position: fixed; bottom: 120px; right: 20px; width: 3.75rem; height: 3.75rem; display: flex; align-items: center; justify-content: center; transition: .1s ease-in-out; box-shadow: 0 .0625rem .375rem 0 rgba(0, 0, 0, .06), 0 .125rem 2rem 0 rgba(0, 0, 0, .16); }
.btn-add:hover { transform: scale(1.05); }

/* Commission Report Styles */
.tabs-section { margin-bottom: 15px; }
.tab-btn { padding: 0.375rem 0 0.32rem .9rem; border: none; font-size: 1rem; cursor: pointer; background: transparent; color: #343434; margin-right: 1.8rem; white-space: nowrap; line-height: normal; position: relative; }
.tab-btn:hover { color: #465064; }
.tab-btn.active { background: #4a5568; color: #fff; }
.tab-btn.active::after { right: -28px; width: 1.75rem; background-image: url(../images/tab-right-shap.svg); content: ""; position: absolute; top: 0; height: 100%; background-repeat: no-repeat; background-position: left; background-size: contain; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.status-badge { padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 500; }
.status-pending { background: #fff3cd; color: #856404; }
.status-paid { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }
.status-none { background: #e9ecef; color: #6c757d; }

/* Hierarchy Page Styles */
.hierarchy-section { background: #fff; border: 1px solid #c8ced3; margin-bottom: 15px; }
.hierarchy-header { background: #fff; border-left: 3px solid #3c4b64; padding: 10px 15px; font-weight: 700; font-size: 13px; color: #333; border-bottom: 1px solid #e4e7ea; display: flex; justify-content: space-between; align-items: center; }
.hierarchy-content { padding: 30px; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tree-container { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.tree-node { display: flex; flex-direction: column; align-items: center; position: relative; }
.user-node { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #333; padding: 8px 15px; background: #f8f9fa; border-radius: 4px; border: 1px solid #e4e7ea; cursor: pointer; transition: all 0.2s; }
.user-node:hover { background: #e9ecef; border-color: #ced4da; }
.user-node.current { background: linear-gradient(135deg, #3c4b64 0%, #2c3c54 100%); color: #fff; border-color: #3c4b64; box-shadow: 0 2px 8px rgba(60, 75, 100, 0.3); }
.user-node.upline { background: linear-gradient(135deg, #e8f4f8 0%, #d4ecf4 100%); border-color: #b8daff; }
.user-node.downline { background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%); border-color: #ffc107; }
.user-node.has-children { cursor: pointer; user-select: none; }
.user-node.has-children:hover { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.user-node.current.has-children:hover { background: linear-gradient(135deg, #4a5a74 0%, #3c4b64 100%); }
.toggle-icon { font-size: 10px; margin-left: 4px; transition: transform 0.3s ease; display: inline-block; }
.toggle-icon.expanded { transform: rotate(90deg); }
.tree-children-wrapper { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s ease; }
.tree-children-wrapper.expanded { max-height: 5000px; opacity: 1; }
.user-node .icon { color: #dc3545; font-size: 12px; }
.user-node.current .icon { color: #20c997; }
.empty-message { text-align: center; color: #999; font-size: 12px; }
.tree-line { width: 2px; height: 30px; background: #ced4da; }
.tree-children { display: flex; flex-wrap: wrap; gap: 0px 30px; justify-content: center; margin-top: 0; padding-top: 0; position: relative; }
.tree-connector { width: 2px; height: 25px; background: #ced4da; margin: 0 auto; }
.tree-horizontal-line { height: 2px; background: #ced4da; position: relative; margin-bottom: 0; }
.tree-node-branch { display: flex; flex-direction: column; align-items: center; }
.tree-node-branch::before { content: ''; display: block; width: 2px; height: 20px; background: #ced4da; }
.stats-badge { font-size: 10px; background: #28a745; color: #fff; padding: 2px 6px; border-radius: 10px; margin-left: 5px; }
.level-indicator { font-size: 10px; color: #6c757d; margin-left: auto; }
.node-info { font-size: 10px; color: #6c757d; display: flex; gap: 10px; margin-top: 5px; justify-content: center; }
.node-info .text-success { color: #28a745 !important; }
.node-info .text-danger { color: #dc3545 !important; }
.refresh-btn { background: #6c757d; color: #fff; border: none; padding: 5px 10px; font-size: 11px; cursor: pointer; border-radius: 2px; }
.refresh-btn:hover { background: #5a6268; }
.dash-header span.total-count { font-size: 11px; color: #666; margin: 0; font-weight: normal; padding: 0; }
.dash-header span.total-count:before { display: none; }

/* KYC Page Styles */

/* .tab-btn:not(.active) { background: #e9ecef; color: #333; } */
.kyc-form { padding: 1.5rem 1rem; }
.form-group { padding: .75rem .5rem; }
.form-label { font-size: .875rem; font-weight: 700; color: #343434; margin-bottom: .3125rem; }
.form-label .required { color: #dc3545; }
.form-control, .form-select { height: 2rem; min-height: 2rem; font-size: .875rem; line-height: 2rem; min-width: 5rem; padding: 0 .5rem; border-radius: .25rem; width: 100%; border: 1px solid #ccc; }
.form-control:focus, .form-select:focus { outline: none; border-color: #3c4b64; box-shadow: none; }
.upload-box-title { margin-bottom: 8px; font-size: .875rem; }
.upload-box { border: 1px dashed #ccc; text-align: center; background: #fff; position: relative; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.upload-box .title { font-size: 12px; font-weight: 600; color: #333; text-align: left; margin-bottom: 15px; }
.upload-box .upload-icon { display: block; margin-bottom: .3125rem; background-image: url(../images/icon-upload.png); background-repeat: no-repeat; background-position: top 35% center; background-size: 60px; text-align: center; cursor: pointer; width: 86px; height: 75px; }
.upload-box .btn-choose { border: none; padding: 3px 15px; cursor: pointer; background: #488286; border-radius: .25rem; color: #fff; font-size: .8125rem; }
.upload-box .btn-choose:hover { background: #545b62; }
.upload-box .btn-cancel { padding: .15rem .2rem; border-radius: 100%; border: 0; color: #fff; background-color: #c00; position: absolute; z-index: 3; top: .625rem; right: .625rem; width: .9375rem; height: .9375rem; transition: .3s; display: flex; align-items: center; justify-content: center; font-size: 11px; display: none; }
.upload-box .btn-cancel i { margin-left: 1px; }
.upload-box .upload-preview-bg { display: block; width: auto; max-width: 98%; height: auto; max-height: 190px; }
.upload-info { display: inline-flex; margin-bottom: .625rem; padding: .625rem; text-align: left; white-space: normal; border: 1px solid rgba(116, 124, 139, .5); background-color: rgba(116, 124, 139, .1); margin-top: .3125rem; }
.upload-info i { color: #17a2b8; }
.upload-info .btn-ic { flex: 0 0 2rem; width: 2rem; height: 2rem; padding: 0; border: 0; display: flex; align-items: center; justify-content: center; }
.upload-info .btn-ic span { background-repeat: no-repeat; background-position: center; background-image: url(../images/icon-info.svg); width: 20px; height: 20px; display: block; border-radius: 100%; background-size: contain; }
.upload-info ul { display: inline-block; width: 100%; padding-left: .9375rem; font-size: .8125rem; text-align: left; vertical-align: top; color: #000; list-style-type: none; margin-bottom: 0; }
.upload-box .preview-overlay { position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, .8); display: flex; align-items: center; justify-content: center; flex-direction: column; }
.upload-box .preview-overlay .icon-circle span { width: 1.875rem; height: 1.875rem; display: block; margin-bottom: .3125rem; }
.upload-box .preview-overlay.under-review .icon-circle span { mask: url(../images/icon-review.svg) no-repeat center / contain; background-color: #e09f3e; }
.upload-box .preview-overlay.under-review .overLayText { color: #e09f3e; font-size: 1rem; font-weight: 700; text-transform: uppercase; }
.upload-box .preview-overlay.review-success .icon-circle span { mask: url(../images/icon-success.svg) no-repeat center / contain; background-color: #5fad56; }
.upload-box .preview-overlay.review-success .overLayText { color: #5fad56; font-size: 1rem; font-weight: 700; text-transform: uppercase; }
.upload-box .preview-overlay.review-failed .icon-circle span { mask: url(../images/icon-info-red.svg) no-repeat center / contain; background-color: #cc2936; }
.upload-box .preview-overlay.review-failed .overLayText { color: #cc2936; font-size: 1rem; font-weight: 700; text-transform: uppercase; }
.Identity-submit { padding: .75rem 1rem; border-top: .0625rem solid #ddd; margin-top: 1rem; display: flex; justify-content: flex-end; }
.kyc-status-card { background: #fff; border: 1px solid #c8ced3; padding: 20px; margin-bottom: 15px; }
.kyc-status-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid #e4e7ea; margin-bottom: 15px; }
.kyc-status-title { border: none; padding: 3px 15px; cursor: pointer; background: #488286; border-radius: .25rem; color: #fff; font-size: .8125rem; }
.kyc-status-badge { padding: 5px 15px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.kyc-status-badge.pending { background: #fff3cd; color: #856404; }
.kyc-status-badge.approved { background: #d4edda; color: #155724; }
.kyc-status-badge.rejected { background: #f8d7da; color: #721c24; }
.kyc-status-badge.not-submitted { background: #e9ecef; color: #6c757d; }
.kyc-documents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.document-card { border: 1px solid #e4e7ea; padding: 15px; text-align: center; }
.document-card .doc-type { font-size: 12px; font-weight: 600; color: #333; margin-bottom: 10px; }
.document-card .doc-preview { width: 100%; height: 150px; background: #f8f9fa; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden; }
.document-card .doc-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.document-card .doc-preview i { font-size: 50px; color: #ccc; }
.document-card .doc-status { font-size: 11px; padding: 3px 10px; border-radius: 10px; }
.document-card .btn-view { background: #6c757d; color: #fff; border: none; padding: 5px 15px; font-size: 11px; cursor: pointer; margin-top: 10px; }
.document-card .btn-view:hover { background: #545b62; }
.upload-preview { max-width: 150px; max-height: 100px; margin-top: 10px; display: none; }
.upload-preview img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid #e4e7ea; }

/* Performance Report Styles */
.data-table thead th.sortable { cursor: pointer; }
.data-table thead th.sortable:hover { background: #3d4654; }
.status-approve { background: #d4edda; color: #155724; }
.data-table tbody tr.main-row { cursor: pointer; }
.data-table tbody tr.main-row:hover { background: #e9ecef !important; }
.data-table tbody tr.details-row { display: none; background: #f8f9fa !important; }
.data-table tbody tr.details-row.show { display: table-row; }
.details-container { padding: 15px; border-left: 3px solid #4a5568; }
.details-title { font-weight: 600; font-size: 13px; color: #333; margin-bottom: 10px; padding-bottom: 5px; border-bottom: 2px solid #dee2e6; }
.details-table { width: 100%; font-size: 11px; margin-bottom: 0; }
.details-table thead th { background: #4a5568; color: white; padding: 8px; text-align: center; font-weight: 500; }
.details-table tbody td { padding: 7px 8px; text-align: center; border-bottom: 1px solid #dee2e6; }

/* Profile Styles */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; align-items: stretch; }
.profile-grid>.dash-card { display: flex; flex-direction: column; height: 100%; }
.profile-grid>.dash-card>.dash-table-wrapper { flex: 1; }
.profile-card { background: #fff; border: 1px solid #c8ced3; }
.profile-header { background: #fff; border-left: 3px solid #3c4b64; padding: 10px 12px; font-weight: 700; font-size: 13px; border-bottom: 1px solid #e4e7ea; display: flex; justify-content: space-between; align-items: center; }
.profile-header .settings-icon { color: #999; cursor: pointer; }
.profile-content { padding: 0; }
.profile-row { display: grid; grid-template-columns: 1fr 1fr; }
.profile-field { padding: .69rem .5rem; }
.field-label { font-weight: 700; color: #343434; font-size: .875rem; line-height: normal; }
.field-value { color: #343434; font-size: 1rem; margin: .1875rem 0; line-height: normal; }
.status-badge { display: inline-block; background: #28a745; color: #fff; padding: 2px 10px; border-radius: 12px; font-size: 11px; }
.status-badge.inactive { background: #dc3545; }
.status-badge.pending { background: #ffc107; color: #333; }
.contact-field { padding: .75rem .5rem; }
.contact-field:last-child { border-bottom: none; }
.contact-row { display: flex; justify-content: space-between; align-items: center; }
.contact-icon { width: 1.875rem; height: 1.875rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; cursor: pointer; }
.contact-icon .phone, .contact-icon .email { display: block; width: 100%; height: 100%; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 20px; background-color: #dc3545;    /* Default not-verified color (red) */ }
.contact-icon.verified .phone, .contact-icon.verified .email { background-color: #5fad56;    /* Verified color (green) */ }
.contact-icon.not-verified .phone, .contact-icon.not-verified .email { background-color: #dc3545;    /* Not-verified color (red) */ }
.contact-icon .phone { background-image: url(../images/icon-phone.svg); }
.contact-icon .email { background-image: url(../images/icon-mail.svg); background-size: 18px; }
.potential-card .profile-header { display: flex; justify-content: space-between; align-items: center; }
.currency-badge { background: #f8f9fa; border: 1px solid #dee2e6; padding: 2px 8px; font-size: 11px; color: #333; border-radius: 2px; }
.tabs-row { display: flex; border-bottom: .375rem solid #465064 }
.potential-content { padding: 1.5rem 1rem 0; font-size: .875rem; }
.potential-content .dash-table th { border-bottom: .0625rem solid #ddd; }
.potential-content .dash-table th:not(:last-of-type) { border-right: .0625rem solid #d3d5da; }
.potential-content .dash-table tbody, .potential-content .dash-table td, tfoot, th, thead, tr { border-color: #ddd; }
.potential-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.potential-col { padding: .75rem .5rem; }
.potential-divider { border-top: 1px solid gray; margin: 0; }
.profileBottom-btn { padding: .75rem 0 0 1rem; display: flex; justify-content: flex-end; }
.profileBottom-btn .btn-refresh { margin-left: 1rem; padding: .251rem 1rem; }
.potential-label { font-weight: 700; color: #333; font-size: .875rem; display: block; line-height: 1.4; margin-bottom: .2rem; }
.potential-label.red { color: #cc2936; }
.potential-value { color: #333; font-size: .875rem; display: block; }
.potential-value.red { color: #cc2936; }
.commission-rate-value { color: #007bff; font-weight: 700; font-size: .875rem; display: block; }
.bold-row { font-weight: 600; }
.commission-content { padding: 15px; }
.commission-field { margin-bottom: 15px; }
.commission-label { font-weight: 600; color: #333; font-size: 12px; margin-bottom: 3px; }
.commission-value { color: #666; font-size: 12px; }
.redTag { border: 1px solid #cc2936; color: #cc2936; border-radius: 1rem; padding: 0.07rem .375rem; font-size: .75rem; display: inline-block; margin-right: .625rem; }
.evaluating { color: #999; font-style: italic; }
.btn-row { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 15px; border-top: 1px solid #e4e7ea; }
.btn-teal { background: #20c997; color: #fff; border: none; padding: 5px 12px; font-size: 11px; border-radius: 2px; cursor: pointer; }
.btn-teal:hover { background: #1aa87c; }
.btn-refresh { display: flex; align-items: center; gap: 8px; border: none; padding: .251rem 1rem; font-size: 0.875rem; cursor: pointer; border-radius: .25rem; background-color: #465064; border-color: #465064; color: #fff; font-weight: 700; font-size: 1rem; transition: background-color 0.2s; }
.btn-refresh:hover { background-color: #353d4c; color: #fff; }
.btn-refresh i { font-size: 1.1rem; }
.btn-refresh:disabled { cursor: not-allowed; opacity: 0.5; }
.revenue-table { width: 100%; font-size: 11px; border-collapse: collapse; margin-bottom: 15px; }
.revenue-table th { background: #4a5568; color: #fff; padding: 8px 10px; text-align: center; font-weight: 500; }
.revenue-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid #e4e7ea; }
.revenue-table tr:nth-child(odd) td { background: #f9fafb; }
.revenue-table .negative { color: #dc3545; }
.revenue-table .total-row td { background: #f8f9fa; font-weight: 600; }
.view-modal-tabs { display: flex; border-bottom: 1px solid #e4e7ea; }
.view-modal-tab { padding: 10px 20px; background: #f8f9fa; border: none; font-size: 12px; cursor: pointer; border-right: 1px solid #e4e7ea; }
.view-modal-tab.active { background: #4a5568; color: #fff; }
.history-header { background: #4a5568; color: #fff; padding: 10px 15px; font-size: 12px; font-weight: 600; text-align: center; }
.history-filters { padding: 15px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.history-filters .form-label { font-size: 11px; color: #333; margin-bottom: 5px; }
.history-filters .form-control, .history-filters .form-select { font-size: 11px; padding: 6px 10px; border: 1px solid #ced4da; border-radius: 0; }
.history-table { width: 100%; font-size: 11px; border-collapse: collapse; }
.history-table th { background: #4a5568; color: #fff; padding: 8px 10px; text-align: center; font-weight: 500; white-space: nowrap; }
.history-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid #e4e7ea; }
.settings-icon { cursor: pointer; color: #949494; transition: color 0.2s; position: relative; z-index: 10; }
.settings-icon:hover { color: #343434; }

/* Verification Phone Modal */
.btn-sendVerification { background-color: #5cb85c; color: #fff; border: none; padding: 10px; font-size: 14px; border-radius: 4px; font-size: 1rem; line-height: 1.95rem; padding: 0; }
.btn-sendVerification:disabled { background-color: #5cb85c; opacity: 1; color: #fff; }
.btn-sendVerification:hover { background-color: #5cb85c; color: #fff; }
.sms-svg-group { display: inline-block; position: relative; width: auto; height: 100%; vertical-align: top }
.sms-svg-group .svg-sms { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; transform: translateZ(1) }
.sms-svg-group .path-sms { fill: transparent }
.svg-phone { display: block; position: absolute; bottom: .0625rem; left: -1.875rem; width: 1.875rem; height: 1.875rem; transition: .3s; opacity: 0; background-color: #fff; -webkit-mask: url(../images/icon-phone.svg)no-repeat center/80%; mask: url(../images/icon-phone.svg)no-repeat center/80% }
.svg-mail-group { width: 1.875rem; height: 100% }
.svg-mail-group .line { position: absolute; top: 50%; left: -1.125rem; width: .75rem; padding: 0; transform: translateY(-49%); margin: 0; }
.svg-mail-group .line li { width: 100%; height: 2px; margin: 1px 0; padding: 0; float: right; border-radius: 3px; background: #fff; list-style-type: none; }
.svg-mail-group .line li:first-child { width: 70%; animation: smsAct .3s alternate-reverse infinite }
.svg-mail-group .line li:nth-child(2) { animation: smsAct .3s .1s alternate-reverse infinite }
.svg-mail-group .line li:last-child { width: 50%; animation: smsAct .3s .2s alternate-reverse infinite }
.svg-mail, .svg-mail-outer { height: 100%; transition: .3s }
.svg-mail { background-image: url(../images/icon-mail.svg); background-repeat: no-repeat; background-position: center; background-size: 60%; }
.btn-sendVerification.sending .svg-phone { left: 0; opacity: 1; }
.btn-sendVerification.sending .line { animation: none; opacity: 0; }
.btn-sendVerification.sending .svg-mail { background-size: 32%; }
.btn-sendVerification.mail-rotate .svg-mail { transform-origin: center; animation: mailani .3s ease-out alternate-reverse infinite; }
@keyframes smsAct {
    0% { transform: translate(0, 0) }
    to { transform: translate(5px, 0) }
}
@keyframes mailani {
    0% { transform: rotate(-5deg) }
    to { transform: rotate(5deg) }
}

/* Wallet Styles */
.wallet-page { padding: 0; background: transparent; }
.wallet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.wallet-title { display: flex; align-items: center; gap: 10px; }
.wallet-title-icon { width: 36px; height: 36px; background: #c9a227; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.wallet-title-icon i { color: #fff; font-size: 16px; }
.wallet-title h1 { font-size: 16px; font-weight: 500; color: #333; margin: 0; }
.wallet-title p { font-size: 11px; color: #666; margin: 2px 0 0 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.view-only-badge { display: flex; align-items: center; gap: 5px; background: rgba(139, 0, 0, 0.15); color: #c9a227; padding: 5px 10px; border-radius: 0; font-size: 10px; font-weight: 500; }
.btn-withdraw { background: #28a745; color: #fff; border: none; padding: 8px 20px; font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.btn-withdraw:hover { background: #218838; }
.btn-withdraw:disabled { background: #6c757d; cursor: not-allowed; }
.balance-hero { background: #ffffff; border: 1px solid #ccc; border-radius: 0; padding: 15px; margin-bottom: 10px; box-shadow: none; }
.balance-content { display: flex; align-items: center; justify-content: space-between; }
.balance-left { flex: 1; }
.balance-label { font-size: 11px; font-weight: 500; color: #28a745; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.balance-label .dot { width: 6px; height: 6px; background: #28a745; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}
.balance-amount { font-size: 36px; font-weight: 600; color: #333; margin: 0; letter-spacing: -1px; line-height: 1.1; }
.balance-amount .currency { font-size: 20px; font-weight: 500; color: #c9a227; margin-right: 2px; }
.balance-subtitle { font-size: 11px; color: #666; margin-top: 6px; }
.balance-icon { width: 50px; height: 50px; background: rgba(40, 167, 69, 0.2); border-radius: 0; display: flex; align-items: center; justify-content: center; }
.balance-icon i { font-size: 22px; color: #28a745; }
.commission-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.commission-stat { background: #ffffff; border: 1px solid #ccc; border-radius: 0; padding: 12px 10px; text-align: center; box-shadow: none; }
.commission-stat-icon { width: 36px; height: 36px; border-radius: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; margin: 0 auto 8px; }
.commission-stat-icon.total { background: rgba(40, 167, 69, 0.15); color: #28a745; }
.commission-stat-icon.pending { background: rgba(201, 162, 39, 0.15); color: #c9a227; }
.commission-stat-icon.paid { background: rgba(139, 0, 0, 0.15); color: #c9a227; }
.commission-stat-icon.rate { background: rgba(123, 97, 255, 0.15); color: #7b61ff; }
.commission-stat h4 { font-size: 9px; font-weight: 500; color: #888; margin: 0 0 4px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.commission-stat p { font-size: 18px; font-weight: 600; color: #333; margin: 0; }
.commission-stat span { font-size: 9px; color: #888; margin-top: 2px; display: block; }
.referral-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.referral-stat { background: #ffffff; border: 1px solid #ccc; border-radius: 0; padding: 12px; display: flex; align-items: center; gap: 10px; box-shadow: none; }
.referral-stat-icon { width: 40px; height: 40px; border-radius: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.referral-stat-icon.players { background: rgba(139, 0, 0, 0.15); color: #c9a227; }
.referral-stat-icon.active { background: rgba(40, 167, 69, 0.15); color: #28a745; }
.referral-stat-icon.ftd { background: rgba(201, 162, 39, 0.15); color: #c9a227; }
.referral-stat-content h4 { font-size: 9px; font-weight: 500; color: #888; margin: 0 0 3px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.referral-stat-content p { font-size: 20px; font-weight: 600; color: #333; margin: 0; }
.referral-stat-content span { font-size: 10px; color: #888; margin-top: 2px; display: block; }
.two-col-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.section-card { background: #ffffff; border: 1px solid #ccc; border-radius: 0; overflow: hidden; box-shadow: none; }
.section-header { padding: 8px 12px; border-bottom: 1px solid #ccc; display: flex; align-items: center; gap: 8px; background: #e8e8e8; border-left: 3px solid #c9a227; }
.section-header h3 { font-size: 12px; font-weight: 600; color: #333; margin: 0; display: flex; align-items: center; gap: 8px; }
.section-header h3::before { display: none; }
.section-icon { display: none; }
.section-body { padding: 14px; }
.breakdown-list { display: flex; flex-direction: column; gap: 8px; }
.breakdown-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #f5f5f5; border-radius: 0; }
.breakdown-item .label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 400; color: #666; }
.breakdown-item .label i { width: 20px; height: 20px; border-radius: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.breakdown-item .label i.pending { background: rgba(201, 162, 39, 0.15); color: #c9a227; }
.breakdown-item .label i.available { background: rgba(40, 167, 69, 0.15); color: #28a745; }
.breakdown-item .label i.paid { background: rgba(139, 0, 0, 0.15); color: #c9a227; }
.breakdown-item .label i.lifetime { background: rgba(123, 97, 255, 0.15); color: #7b61ff; }
.breakdown-item .value { font-size: 14px; font-weight: 600; color: #333; }
.breakdown-item.pending .value { color: #c9a227; }
.breakdown-item.available .value { color: #28a745; }
.breakdown-item.paid .value { color: #c9a227; }
.breakdown-item.lifetime .value { color: #7b61ff; }
.earnings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.earnings-item { text-align: center; padding: 12px 10px; background: #f5f5f5; border-radius: 0; }
.earnings-item h6 { font-size: 9px; font-weight: 500; color: #888; margin: 0 0 6px 0; text-transform: uppercase; letter-spacing: 0.4px; }
.earnings-item p { font-size: 16px; font-weight: 600; margin: 0; }
.earnings-item.deposit p { color: #28a745; }
.earnings-item.turnover p { color: #c9a227; }
.earnings-item.net p { color: #7b61ff; }
.earnings-item.ggr p { color: #c9a227; }
.info-card { background: rgba(139, 0, 0, 0.08); border: 1px solid rgba(139, 0, 0, 0.2); border-radius: 0; padding: 12px 14px; margin-bottom: 10px; }
.info-card-content { display: flex; align-items: flex-start; gap: 10px; }
.info-card-icon { width: 32px; height: 32px; background: #c9a227; border-radius: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-card-icon i { font-size: 14px; color: #fff; }
.info-card h4 { font-size: 12px; font-weight: 500; color: #c9a227; margin: 0 0 3px 0; }
.info-card p { font-size: 11px; color: #666; margin: 0; line-height: 1.5; }
.info-card p strong { color: #c9a227; }
.withdrawal-history { margin-top: 15px; }
.withdrawal-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.withdrawal-table th, .withdrawal-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e4e7ea; }
.withdrawal-table th { background: #f8f9fa; font-weight: 600; color: #333; }

/* Registrations & FTDs Styles */
.badge-ftd { background: #28a745; color: #fff; padding: 2px 6px; border-radius: 3px; font-size: 10px; }
.status-badge.rejected { background: #f8d7da; color: #721c24; }
.status-badge.processing { background: #cce5ff; color: #004085; }

/* login page */
.page-wrap { width: 100%; padding: 40px 20px; display: flex; align-items: center; justify-content: center; height: 100vh; background-image: linear-gradient(30deg, #465064 0, #292e3a 100%); }
.login-card { width: 450px; background: #ffffff; border-radius: 6px; box-shadow: 0 14px 40px rgba(10, 20, 30, 0.5); position: relative; height: min-content; }
.login-header { padding: 1.8rem 1.8rem 1.2rem; border-bottom: .0625rem solid #ddd; display: flex; align-items: center; }
.login-header h2 { margin: 0; font-weight: 700; color: #2d3b45; display: inline-block; font-size: 1.25rem !important; font-family: var(--bs-body-font-family) !important; }
.loginBody { padding: 1.5rem; }
.header-decor { display: inline-block; width: 6px; height: 24px; background: #2d3b45; border-radius: 3px; margin-right: 7px; vertical-align: middle; }
.form-group>label { margin-bottom: .3125rem; color: #343434; font-size: .875rem; font-weight: 700; }
.password-wrapper { position: relative; }
select.lang-select { width: 100%; padding: 10px 12px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.08); background: #f0f0f0; font-size: 14px; }
.login-footer { display: flex; justify-content: center; align-items: center; flex-direction: column; padding: 1rem 1.5rem; border-top: .0625rem solid #ddd; }
.btn-outline { padding: 6px 10px; border-radius: 4px; border: 1px solid #2b6a61; color: #2b6a61; background: none; text-decoration: none; font-weight: 600; font-size: 13px; display: inline-block; }
.footer-brand { text-align: center; margin-top: 16px; font-size: 12px; color: #9aa3a9; }
.signin-btn { display: block; padding: 4px 15px; border: none; font-weight: 700; letter-spacing: 0.6px; border-radius: .25rem; background-color: #465064; border-color: #465064; color: #fff; font-size: 1rem; }
.signin-btn:hover { background: #353d4c; }
.btn-cancel { display: block; padding: 4px 15px; border: none; font-weight: 700; letter-spacing: 0.6px; border-radius: .25rem; background-color: #ccc; border-color: #ccc; color: #212121; font-size: 1rem; text-decoration: none; }
.btn-cancel:hover { background: #b8b8b8; color: #212121; }
.signupForgot { display: flex; align-items: center; padding: .75rem .5rem; }
.signupForgot .text-separator { margin: -8px 5px 0; line-height: 21px; }
.btn-sugnUp { border: .125rem solid #488286; border-radius: .25rem; border-color: #488286; color: #488286; padding: 2px 16px; font-size: 1rem; font-weight: 700; text-decoration: none; margin-right: .5rem; }
.btn-sugnUp:hover { border-color: #488286; background-color: #488286; color: #fff; }
.forgot-link { font-weight: 700; color: #343434; font-size: 1rem; text-decoration: none; }
.alert { border-radius: 6px; padding: 12px; margin-bottom: 12px; }
.error-msg { color: #cc2936; font-size: 12px; }
.page-wrap .form-group .form-control.language { background-color: #e9e9e9; }
.signupPage .signin-btn, .signupPage .btn-cancel, .signupPage .btn-sugnUp { margin-right: 12px; }
.VerificationCode-col { position: relative; }
.VerificationCode-col .VerificationCode { background: #111; color: #fff; padding: 3px 10px; border-radius: 4px; font-weight: 700; letter-spacing: 3px; user-select: none; white-space: nowrap; position: absolute; right: 2.5rem; top: 50%; transform: translateY(-50%); }
.VerificationCode-col .btn-refersh { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); width: 1.5rem; height: 1.5rem; min-height: 1.5rem; background-color: #353d4c; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.VerificationCode-col .btn-refersh .ic-refresh { background-image: url(../images/icon-refersh-white.svg); background-repeat: no-repeat; background-position: 0; width: 16px; height: 14px; display: block; flex-shrink: 0; transition: all .15s ease-in-out; }
.VerificationCode-col .btn-refersh:hover .ic-refresh { transform: rotate(90deg); }

/* Link page modal */
.linkModalBody-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: stretch; }
.linkModalBody-col { flex: 0 0 49.5%; background: #fff; border-radius: .25rem; -moz-box-shadow: 0 .25rem .25rem 0 rgba(0, 0, 0, .1); -webkit-box-shadow: 0 .25rem .25rem 0 rgba(0, 0, 0, .1); box-shadow: 0 .25rem .25rem 0 rgba(0, 0, 0, .1); }
.conditions-header { background-color: #465064; color: #fff; padding: .75rem 1rem .75rem 2.5rem; border-bottom: .0625rem solid #ddd; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: 1.25rem; font-weight: 700; }
.conditionsForm { padding: 1.5rem 1rem; }
.conditionsForm .currency-display { font-size: 1rem; }
.conditionsForm .color-picker-input { height: 2rem; min-height: 2rem; font-size: .875rem; line-height: 2rem; min-width: 5rem; padding: .25rem .5rem; border-radius: .25rem; width: 100%; border: 1px solid #ccc; }
.conditionsForm .modal-footer { padding: 2rem 0 0 1.5rem; border-top: 0; }
.qrcode-section { padding: 0 1.5rem 1.5rem; }
.qrcode-section .qr-box { width: 64.5%; margin: 0 auto .3rem; padding: 15px; background-color: #ddd; }
.qrcode-section .qr-box img { width: 100%; height: 100%; }
.qrcode-section .icon-save { width: 22px; height: 22px; display: block; background-image: url(../images/icon-save.svg); background-repeat: no-repeat; background-position: 0; background-size: contain; opacity: .7; }
.qrcode-section button:hover .icon-save { opacity: 1; }
.qrcode-section .link-url-display { display: flex; margin-top: .75rem; }
.qrcode-section .link-url-display .icon-copy { width: 20px; height: 20px; display: block; background-image: url(../images/icon-copy-gray.svg); background-repeat: no-repeat; background-position: 0; background-size: contain; opacity: .7; margin-left: 10px; }
.qrcode-section .link-url-display button:hover .icon-copy { opacity: 1; }

/* ==========================================================
                   Responsive start
========================================================== */
@media (min-width:576px) {
    .modal-dialog { margin-top: 0.5rem; margin-bottom: 0.5rem; }
}
@media (max-width:1200px) {
    .dashboard-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .commission-stats-row { grid-template-columns: repeat(2, 1fr); }
    .potential-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:992px) {
    .kyc-documents-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width:900px) {
    .two-col-row { grid-template-columns: 1fr; }
    .referral-stats-row { grid-template-columns: 1fr; }
    .balance-content { flex-direction: column; align-items: flex-start; gap: 12px; }
    .balance-icon { display: none; }
}
@media (max-width:768px) {
    .loader-box { width: 32vw; height: 13.35vw;}

    .signupPage.step3-active .login-card { height: 100%; }
    .header::after { background: transparent; }
    .sidebar { transform: none; transition: transform .3s ease-in-out; left: 0; visibility: hidden; width: 100% !important; top: 11.5942028986vw; }
    .sidebar.mobile-open { transform: none; box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3); visibility: visible; }
    .sidebar .sidebar-header { display: none !important; width: 100% !important; transition: transform .3s ease-in-out; left: 0; }
    .sidebar-menu { background: #465064; }
    .sidebar-menu .nav-item { border-bottom: solid 1px rgba(255, 255, 255, .1); }
    .sidebar>.sidebar-menu>.nav-item>.nav-link { padding: 3.5647342995vw 3.8647342995vw; font-size: 4.347826087vw; min-height: initial; }
    .sidebar>.sidebar-menu>.nav-item>.nav-link .nav-text { font-size: 4.347826087vw; }
    .sidebar>.sidebar-menu>.nav-item>.nav-link.has-treeview::after { top: 29%; right: 1.9323671498vw; width: 4.8309178744vw; height: 4.8309178744vw; }
    .sidebar>.sidebar-menu>.nav-item>.nav-link .sidebar-icon { width: 5.7971014493vw; height: 5.7971014493vw; margin-right: 1.9323671498vw; }
    .sidebar>.sidebar-menu>.nav-item .nav-treeview { padding: 1.9323671498vw 0; }
    .sidebar>.sidebar-menu>.nav-item .nav-treeview .nav-link { padding: 2.4995507246vw 9.6618357488vw; }
    body.collapsed .main-wrapper { margin-left: 0 !important; }
    .header .top-links { display: flex !important; width: 100%; justify-content: space-between; }
    .summary-section, .dashboard-grid-3, .dashboard-grid-2 { grid-template-columns: 1fr; }
    .container-flex { padding-top: 0; }
    body.collapsed .main-wrapper { margin: 0; }
    .admin-wrapper .sidebar-header { width: 11.5942028986vw; height: 11.5942028986vw; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; background-color: rgba(85, 94, 112); color: #fff; font-weight: 400; font-size: 14px; }
    .admin-wrapper .link-item { background-color: #898f9c; max-width: 40% !important; border-radius: 4px; }
    .admin-wrapper .link-item .link-label { color: #fff; }
    .admin-wrapper .header { padding-left: 0; background-color: #6b7383; height: 11.5942028986vw; background-color: rgba(70, 80, 100, .8) }
    .admin-wrapper .link-label { font-size: 8px !important; color: #ffffff99 !important; max-width: 80%; white-space: normal; }
    .admin-wrapper .sidebar-header .menu-icon { background: transparent; }
    .admin-wrapper .sidebar-header .menu-icon::after { content: none; }
    .admin-wrapper .header .link-item { flex-direction: row-reverse; justify-content: flex-end; gap: 5px; padding: 0; max-width: 75px; }
    .bank-grid { grid-template-columns: 1fr; }
    .bank-card { max-width: 100%; flex: 0 0 100%; margin-left: 0; }

    /* login signup page */
    .page-wrap { align-items: flex-start; padding: 6.6666666667vw 5%; }
    .login-card { width: 100%; overflow-y: auto; }
    .login-header { padding: 5.8647342995vw 3.8647342995vw 3.8647342995vw; border-bottom: .2415458937vw solid #ddd; }
    .header-decor { width: 1.4492753623vw; height: 5.7971014493vw; margin: .9661835749vw .9323671498vw .9661835749vw 2.9323671498vw; background: #465064; }
    .login-header h2 { margin-left: .9661835749vw; font-size: 4.8309178744vw !important; }
    .loginBody { padding: 5.7971014493vw; }
    .page-wrap .form-group label { line-height: 25px; }
    .form-group { padding: 2.8985507246vw 1.9323671498vw; }
    .form-group label { font-size: 3.3816425121vw; line-height: 20px; }
    .form-group .form-label { font-size: 3.3816425121vw; line-height: 20px; }
    .form-group .form-control { height: 7.729468599vw; min-height: 7.729468599vw; font-size: 3.3816425121vw; line-height: 7.729468599vw; min-width: 19.3236714976vw; padding: 0 1.9323671498vw; }
    .login-footer { padding: 3.8647342995vw 5.7971014493vw; border-top: .2415458937vw solid #ddd; }
    .login-footer button, .login-footer a { margin-bottom: .9661835749vw; }
    .signInPage .login-footer .signin-btn { margin-bottom: 0; }
    .signin-btn { min-height: 7.729468599vw; padding: 2vw 4.3999vw; font-size: 1rem; line-height: 1; letter-spacing: -0.2px; }
    .signupForgot { padding: 2.8985507246vw 1.9323671498vw; font-size: 1rem; line-height: normal; }
    .btn-sugnUp { border-width: .125rem; line-height: 1; min-height: 7.729468599vw; padding: 1.4492753623vw 3.8647342995vw; margin-right: 1.9323671498vw; }

    /* header */
    .header.mobile-open { background-color: #3c4455; }
    .admin-wrapper .header.mobile-open .sidebar-header { background-color: #313846; }
    .referral-code-mobile .code-copy { margin-left: .25rem; }
    .header .balance-wrapper { margin: 0 3.8647342995vw 0 2.8985507246vw; }
    .header .balance-wrapper .header-commission { font-size: 2.8985507246vw; width: 7rem; margin-right: 2.8985507246vw; }
    .header .balance-wrapper .ic-logout { width: 7.729468599vw; height: 7.729468599vw; flex: 1; }
    .header .balance-wrapper .ic-logout span { background-size: 70%; height: 100%; }
    .referral-code-mobile .btn-copy { gap: 0; min-height: 7.729468599vw; height: 1.875rem; padding: 0; }
    .referral-code-mobile .ic-link { width: 20%; height: 20%; padding: 0 0 0 .7rem; }
    .main-footer { padding: 3.8647342995vw 0; font-size: 2.8985507246vw; }
    .main-wrapper { margin-left: 0 !important; padding-top: 11.5942028986vw; height: 100dvh; }
    .content-wrapper { padding: 3.8647342995vw 4.4vw 0 3.8647342995vw; }
    .admin-wrapper.collapsed .page-loader, .admin-wrapper .page-loader { top: 11.5942028986vw; left: 0; width: 100%; height: calc(100vh - 11.5942028986vw); }
    .botDropDwon { margin-bottom: 3.8647342995vw; }
    .currency-dropdown { height: 7.729468599vw; min-height: 7.729468599vw; font-size: 3.3816425121vw; line-height: 7.729468599vw; min-width: 19.3236714976vw; padding: 0 1.9323671498vw; }

    /* Dashboard page */
    .summary-section { gap: 1.5rem; margin-bottom: 3.8647342995vw; }
    .summary-card { padding: 2.3666666667vw 2.6666666667vw 2.1666666667vw; }
    .summary-title { line-height: 1; }
    .summary-row { padding: .35rem .375rem .25rem .375rem; }
    .summary-value { font-size: 8vw; }
    .dashboard-grid-3 { gap: 1rem; }
    .dash-header { padding: 3.8785507246vw 5.8647342995vw 3.8785507246vw 5.1vw; border-bottom: .2415458937vw solid #ddd; font-size: 4.8309178744vw; height: 13.6.1vw; }
    .dash-header span { padding-left: 3.5vw; margin-left: .2rem; }
    .dash-header span::before { width: 1.5492753623vw; height: 5.7971014493vw; }
    .dash-header .collapse-icon { font-size: 4vw; }
    .dash-table-wrapper { padding: 5.5971014493vw 3.8647342995vw; }
    .dash-table th:not(:last-of-type) { border-right: .2415458937vw solid #d3d5da; }
    .dash-table thead tr { border-top: .4830917874vw solid #465064; }
    .dash-table th { padding: 1.7323671498vw 1.9323671498vw; background: #e5e7e9; border-bottom: .2415458937vw solid #d3d5da; color: #343434; font-size: 3.3816425121vw; }
    .dash-table td { padding: 1.9323671498vw; font-size: 3.3816425121vw; border-bottom: .2415458937vw solid #ddd; }

    /* profile page  */
    .dash-header .currency-dropdown { margin-right: -2vw; }
    .profile-grid { gap: 1.5rem; }
    .profile-row {        /* grid-template-columns: .85fr 1fr;  */
    grid-template-columns: 1fr; }
    .profile-field { padding: 2.8985507246vw 1.9323671498vw; }
    .field-label { font-size: 3.3816425121vw; line-height: 1.12; }
    .field-value { line-height: 1.25; }
    .contact-icon { margin-top: -4vw; }
    .potential-content { padding: 5.7971014493vw 3.8647342995vw; }
    .settings-icon { right: -1vw; }
    .tabs-row { border-bottom: 1.4492753623vw solid #465064; }
    .tab-btn { line-height: 1; height: 7.729468599vw; margin-right: 7vw; }
    .tab-btn.active::after { height: 7.729468599vw; right: -6.763285vw; width: 6.7632850242vw; }
    .potential-grid { grid-template-columns: repeat(1, 1fr); }
    .potential-col { padding: 3.3985507246vw 1.9323671498vw }
    .potential-label { font-size: 3.3816425121vw; line-height: 1.13; }
    .potential-label i { font-size: 16px; }
    .potential-value { line-height: 1.45; }
    .profileBottom-btn { padding: 2.8985507246vw 0 0 3.8647342995vw; }
    .profileBottom-btn .btn-refresh { padding: .9990753623vw 3.8647342995vw; }
    .contact-field { padding: 2.8985507246vw 1.9323671498vw; }
    .contactInfo { padding-bottom: 0; }
    .identityAnyOne { padding-top: 1vw; }

    /* modal */
    .modal-dialog { max-width: 100%; }
    .modal-header { padding: 3.8647342995vw; border-bottom: .2415458937vw solid #ddd; }
    .modal-header .btn-close { width: 7.729468599vw; height: 9.529468599vw; font-size: 3vw; }
    .modal-body { padding: 5.7971014493vw; }
    .modal-footer { padding: 3.1vw 5.7971014493vw; border-top: .2415458937vw solid #ddd; }
    .contactdelete-btn { width: 100%; }
    .mobWidthFull { width: 67vw !important; }

    /* bank */
    .bankDetail-table.dash-table td { line-height: 1.58; }

    /* KYC */
    .kyc-form { padding: 5.7971014493vw 3.8647342995vw; }

    /* Link  */
    .table-footer .entryDropdown-pagination { flex-direction: column; }
    .table-footer .entryDropdown-pagination .dataTables_length { order: 2; }
    .table-footer .entryDropdown-pagination .dataTables_paginate { margin-bottom: 10px; margin-top: 0.5em; }
    .table-footer .entryDropdown-pagination .dataTables_paginate .pagination { gap: 0; }
    .table-footer .entryDropdown-pagination .dataTables_paginate .pagination .page-link { min-width: 2.5rem; width: 2.5rem; height: 2.5rem; }
    .table-footer .showEntryInfo .dataTables_info { padding-top: 0; }

    /* Link page modal */
    .linkModalBody-row { gap: 1.5rem; }
    .linkModalBody-col { flex: 0 0 100%; }
    .conditions-header { padding: 3.1vw 3.8647342995vw 3.1vw 9.8647342995vw; border-bottom: .2415458937vw solid #ddd; font-size: 4.8309178744vw; }
    .conditionsForm .modal-footer { padding: 2rem 0 0 0; }
    .qrcode-section .icon-save { width: 5.3vw; height: 5.3vw; }
    .qrcode-section .link-url-display .icon-copy { width: 5.3vw; height: 5.3vw; }
    .qrcode-section .link-url-display { margin-left: 14vw; }
    .qrcode-section .qr-box { padding: 5vw; }

    /* view modal */
    .bankPlayer-card .bankPlayerCard-header { height: 9.6618357488vw; }
    .bankPlayer-content { padding: 5.7971014493vw 3.8647342995vw; }

    /* Member Search */
    .date-toolbar-overlay .date-quick-btns button { font-size: 3.4vw; }
    .date-filter-btn { min-height: 7.73vw; padding: .1rem .45rem .2rem; line-height: 1; }
    .date-filter-btn .icon-arrow { width: 4.8309178744vw; height: 4.8309178744vw; }
    .exportSearch { gap: 0; padding: 2.8985507246vw 3.8647342995vw; }
    .exportSearch .exportSearch-btn .esb-btn { padding: 3.8647342995vw 4.347826087vw; background-color: rgba(10, 16, 13, .14); background-size: 4.347826087vw; }
    .exportSearch .exportSearch-btn .text { line-height: 1; padding: 1.75vw 3.8647342995vw; }
    .date-toolbar-overlay { top: 8vw; width: 80vw; }
    .date-toolbar-overlay .date-quick-btns { padding: 5vw 5.6vw; }
    .date-toolbar-overlay .date-quick-btns button { margin-left: .9661835749vw; margin-bottom: .8vw; min-height: 7.729468599vw; padding: 1.4492753623vw 3.8647342995vw; line-height: 1; }
    .date-toolbar-overlay .date-cancel-row button { min-height: 7.729468599vw; padding: 1.4492753623vw 3.8647342995vw; line-height: 1; }
}
@media (max-width:600px) {
    .wallet-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .balance-hero { padding: 15px; }
    .balance-amount { font-size: 28px; }
    .commission-stats-row { grid-template-columns: 1fr; }
    .earnings-grid { grid-template-columns: 1fr; }
}
@media (max-width:576px) {
    .kyc-documents-grid { grid-template-columns: 1fr; }
}
@media screen and (max-aspect-ratio:13 / 9) and (max-width:767px) and (orientation:portrait) and (hover:none) { }