/* ═══════════════════════════════════════════════════════════
   COPYRIGHT BY THUEAPIBANK.COM
   ═══════════════════════════════════════════════════════════ */

/* Design Tokens */
:root {
    --t-bg: #030408;
    --t-surface: rgba(13, 16, 26, 0.80);
    --t-surface2: rgba(255, 255, 255, 0.04);
    --t-border: rgba(255, 255, 255, 0.07);
    --t-primary: #0066FF;
    --t-primary-g: rgba(0, 102, 255, 0.30);
    --t-accent: #00D1FF;
    --t-success: #00D68F;
    --t-warning: #FFB800;
    --t-danger: #FF3D71;
    --t-text1: #DCE8FF;
    --t-text2: #7A8CA8;
    --t-text3: #3A4760;
    --t-r: 14px;
    --t-font: 'Plus Jakarta Sans', 'Inter', sans-serif;
    /* Aliases for legacy inline styles using --dk-* */
    --dk-primary: #0066FF;
    --dk-success: #00D68F;
    --dk-warning: #FFB800;
    --dk-danger: #FF3D71;
    --dk-accent: #00D1FF;
    --dk-bg: #030408;
    --dk-surface: rgba(13, 16, 26, .8);
    --dk-border: rgba(255, 255, 255, .07);
    --dk-text1: #FFFFFF;
    --dk-text2: #8896AA;
    --dk-text3: #3E4859;
}

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
.dash-body {
    font-family: var(--t-font) !important;
    background: var(--t-bg) !important;
    color: var(--t-text1) !important;
}

/* Dot grid */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 26px 26px;
}

/* Blue glow blob */
body::after {
    content: '';
    position: fixed;
    z-index: 0;
    pointer-events: none;
    top: -250px;
    right: -250px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, .12) 0%, transparent 70%);
    filter: blur(100px);
}

/* ── Sidebar ── */
.dash-sidebar,
.dash-sidebar.light-sidebar,
.dash-sidebar.transprent-bg {
    background: rgba(8, 10, 20, 0.95) !important;
    border-right: 1px solid var(--t-border) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
}

.dash-sidebar .navbar-wrapper {
    background: transparent !important;
}

.dash-sidebar .m-header {
    background: transparent !important;
    border-bottom: 1px solid var(--t-border) !important;
}

/* Sidebar nav links */
.dash-sidebar .dash-navbar .dash-item .dash-link {
    color: var(--t-text2) !important;
    border-radius: 9px !important;
    transition: all .22s ease !important;
    font-family: var(--t-font) !important;
}

.dash-sidebar .dash-navbar .dash-item .dash-link:hover {
    background: rgba(255, 255, 255, .05) !important;
    color: var(--t-text1) !important;
}

.dash-sidebar .dash-navbar .dash-item.active>.dash-link {
    background: rgba(0, 102, 255, .14) !important;
    color: var(--t-primary) !important;
    border: 1px solid rgba(0, 102, 255, .25) !important;
}

.dash-sidebar .dash-navbar .dash-item .dash-micon {
    background: rgba(255, 255, 255, .04) !important;
    border-radius: 10px !important;
}

.dash-sidebar .dash-navbar .dash-item .dash-micon i,
.dash-sidebar .dash-navbar .dash-item .dash-micon svg {
    color: var(--t-text3) !important;
    opacity: .7 !important;
    font-size: 17px !important;
    transition: all .2s ease !important;
}

.dash-sidebar .dash-navbar .dash-item .dash-link:hover .dash-micon {
    background: rgba(0, 102, 255, .1) !important;
}

.dash-sidebar .dash-navbar .dash-item .dash-link:hover .dash-micon i,
.dash-sidebar .dash-navbar .dash-item .dash-link:hover .dash-micon svg {
    color: var(--t-text2) !important;
    opacity: 1 !important;
}

.dash-sidebar .dash-navbar .dash-item.active .dash-micon {
    background: rgba(0, 102, 255, .15) !important;
}

.dash-sidebar .dash-navbar .dash-item.active .dash-micon i {
    color: var(--t-primary) !important;
    opacity: 1 !important;
}

.dash-submenu {
    background: transparent !important;
}

.dash-submenu .dash-item .dash-link {
    color: var(--t-text3) !important;
    font-size: .82rem !important;
}

.dash-submenu .dash-item .dash-link:hover {
    color: var(--t-text1) !important;
    background: rgba(255, 255, 255, .04) !important;
}

/* Announce bar */
.announcebar {
    background: linear-gradient(90deg, rgba(0, 102, 255, .16), rgba(0, 209, 255, .1)) !important;
    border-bottom: 1px solid rgba(0, 102, 255, .18) !important;
}

.announcebar p {
    color: var(--t-text2) !important;
    font-size: .8rem !important;
}

/* ── Top Header ── */
.dash-header,
.dash-header.transprent-bg {
    background: rgba(8, 10, 20, .92) !important;
    border-bottom: 1px solid var(--t-border) !important;
    backdrop-filter: blur(20px) !important;
}

/* Header nav links — override style.css white background with glass dark look */
.dash-header .dash-head-link,
.dash-header .dash-head-link.me-0 {
    color: var(--t-text2) !important;
    background: rgba(255, 255, 255, .05) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    letter-spacing: .01em !important;
    transition: all .25s ease !important;
}

@media (min-width: 1024px) {

    .dash-header .dash-head-link,
    .dash-header .dash-head-link.me-0 {
        background: rgba(255, 255, 255, .05) !important;
    }
}

.dash-header .dash-head-link:hover,
.dash-header .dash-head-link.active {
    color: #A8C4FF !important;
    background: rgba(0, 102, 255, .12) !important;
    border-color: rgba(0, 102, 255, .25) !important;
    box-shadow: 0 0 16px rgba(0, 102, 255, .2) !important;
}

.dash-header .dash-head-link>i {
    color: var(--t-text2) !important;
    font-size: 18px !important;
    transition: color .2s ease !important;
}

.dash-header .dash-head-link:hover>i {
    color: #A8C4FF !important;
}

/* "Tạo mã QR" gradient text */
.dash-header .dash-head-link .animate-charcter {
    background: linear-gradient(90deg, #6EB5FF, #A78BFA) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 700 !important;
}

/* User dropdown button (hide-mob span) */
.dash-header .dash-head-link .hide-mob {
    color: var(--t-text2) !important;
    font-size: .85rem !important;
}

.dash-head-link .animate-charcter {
    background: linear-gradient(90deg, var(--t-primary), var(--t-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.theme-avtar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    overflow: hidden;
    background: var(--t-primary) !important;
}

.dash-h-dropdown {
    background: rgba(10, 12, 22, .97) !important;
    border: 1px solid var(--t-border) !important;
    border-radius: var(--t-r) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .55) !important;
}

.dash-h-dropdown .dropdown-item {
    color: var(--t-text2) !important;
    border-radius: 8px !important;
    margin: 2px 4px !important;
    font-family: var(--t-font) !important;
    transition: all .2s ease !important;
}

.dash-h-dropdown .dropdown-item:hover {
    background: rgba(0, 102, 255, .12) !important;
    color: var(--t-text1) !important;
}

.dash-h-dropdown .dropdown-item i {
    color: var(--t-text2) !important;
}

/* Message badge */
.bg-danger.dash-h-badge {
    background: var(--t-danger) !important;
}

/* ── Page container ── */
.dash-container,
.dash-content {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

/* ── Page header ── */
.page-header {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.page-header-title h4 {
    background: linear-gradient(135deg, #A0BFFF 0%, #C4D4FF 50%, #8B9FD4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800 !important;
    font-family: var(--t-font) !important;
    letter-spacing: -.02em;
}

.breadcrumb {
    background: transparent !important;
}

.breadcrumb-item a {
    color: #6EB5FF !important;
    font-weight: 600;
}

.breadcrumb-item.active {
    color: var(--t-text3) !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--t-text3) !important;
}

/* ── Cards (AdminLTE) ── */
.card {
    background: var(--t-surface) !important;
    border: 1px solid var(--t-border) !important;
    border-radius: var(--t-r) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .35) !important;
    backdrop-filter: blur(12px) !important;
}

.card-header {
    background: rgba(255, 255, 255, .03) !important;
    border-bottom: 1px solid var(--t-border) !important;
    color: var(--t-text1) !important;
}

.card-header h5,
.card-header h4,
.card-header h3 {
    color: var(--t-text1) !important;
    font-family: var(--t-font) !important;
}

.card-body {
    color: var(--t-text2) !important;
}

/* Ensure icon colors are never overridden by card-body color */
.dk-m-ico,
.dk-m-ico i {
    color: inherit !important;
}

.dk-ico-b {
    background: rgba(0, 102, 255, .14) !important;
    color: var(--t-primary) !important;
}

.dk-ico-g {
    background: rgba(0, 214, 143, .14) !important;
    color: var(--t-success) !important;
}

.dk-ico-y {
    background: rgba(255, 184, 0, .14) !important;
    color: var(--t-warning) !important;
}

.dk-ico-c {
    background: rgba(0, 209, 255, .14) !important;
    color: var(--t-accent) !important;
}

/* Force icon inside dk-m-ico to take the color from its parent */
.dk-ico-b i {
    color: var(--t-primary) !important;
}

.dk-ico-g i {
    color: var(--t-success) !important;
}

.dk-ico-y i {
    color: var(--t-warning) !important;
}

.dk-ico-c i {
    color: var(--t-accent) !important;
}

/* dk-m-val should always be white regardless of card-body color */
.dk-m-val {
    color: var(--t-text1) !important;
    font-size: clamp(.68rem, 1.3vw, .88rem) !important;
    font-weight: 800 !important;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.2;
    min-width: 0;
}

.dk-m-lbl {
    color: var(--t-text2) !important;
}

/* Metric card — prevent shrink on narrow col */
.dk-metric {
    min-width: 0;
    overflow: hidden;
    padding: .85rem !important;
}

.dk-metric>div:last-child {
    min-width: 0;
    flex: 1;
}

.dk-m-ico {
    flex-shrink: 0 !important;
}

.card-footer {
    background: rgba(255, 255, 255, .03) !important;
    border-top: 1px solid var(--t-border) !important;
}

/* ── Tables ── */
.table {
    color: var(--t-text2) !important;
    border-color: var(--t-border) !important;
}

.table thead th {
    background: rgba(0, 102, 255, .08) !important;
    color: var(--t-text1) !important;
    border-color: var(--t-border) !important;
    font-family: var(--t-font) !important;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.table tbody td {
    border-color: var(--t-border) !important;
}

.table tbody tr:hover td {
    background: rgba(0, 102, 255, .06) !important;
    color: var(--t-text1) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, .02) !important;
}

.dataTables_wrapper {
    color: var(--t-text2) !important;
}

.dataTables_info,
.dataTables_length label,
.dataTables_filter label {
    color: var(--t-text2) !important;
}

.dataTables_paginate .paginate_button {
    color: var(--t-text2) !important;
    border-radius: 8px !important;
}

.dataTables_paginate .paginate_button.current {
    background: var(--t-primary) !important;
    color: #fff !important;
    border: none !important;
}

.dataTables_paginate .paginate_button:hover {
    background: rgba(0, 102, 255, .12) !important;
    color: var(--t-text1) !important;
}

/* ── Forms ── */
.form-control,
.form-select {
    background: rgba(255, 255, 255, .04) !important;
    border: 1px solid var(--t-border) !important;
    border-radius: 10px !important;
    color: var(--t-text1) !important;
    font-family: var(--t-font) !important;
    transition: all .25s ease !important;
}

.form-control:focus,
.form-select:focus {
    background: rgba(0, 102, 255, .06) !important;
    border-color: var(--t-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, .15) !important;
    color: var(--t-text1) !important;
}

.form-control::placeholder {
    color: var(--t-text3) !important;
}

.form-label,
label {
    color: var(--t-text2) !important;
    font-size: .83rem !important;
    font-weight: 600 !important;
}

.input-group-text {
    background: rgba(255, 255, 255, .04) !important;
    border: 1px solid var(--t-border) !important;
    color: var(--t-text2) !important;
}

/* ── Buttons ── */
.btn-primary,
.btn-blue {
    background: var(--t-primary) !important;
    border-color: var(--t-primary) !important;
    box-shadow: 0 4px 14px var(--t-primary-g) !important;
    font-family: var(--t-font) !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}

.btn-primary:hover {
    background: #0055DD !important;
    border-color: #0055DD !important;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--t-success) !important;
    border-color: var(--t-success) !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}

.btn-danger {
    background: var(--t-danger) !important;
    border-color: var(--t-danger) !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}

.btn-warning {
    background: var(--t-warning) !important;
    border-color: var(--t-warning) !important;
    color: #000 !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}

.btn-secondary,
.btn-light,
.btn-outline-secondary {
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid var(--t-border) !important;
    color: var(--t-text2) !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

.btn-secondary:hover,
.btn-light:hover {
    background: rgba(255, 255, 255, .10) !important;
    color: var(--t-text1) !important;
}

.btn-sm {
    border-radius: 8px !important;
    font-size: .78rem !important;
}

/* ── Badges ── */
.badge {
    border-radius: 6px !important;
    font-family: var(--t-font) !important;
    font-weight: 700 !important;
}

.badge.bg-success,
.badge-success {
    background: rgba(0, 214, 143, .15) !important;
    color: var(--t-success) !important;
    border: 1px solid rgba(0, 214, 143, .25) !important;
}

.badge.bg-danger,
.badge-danger {
    background: rgba(255, 61, 113, .15) !important;
    color: var(--t-danger) !important;
    border: 1px solid rgba(255, 61, 113, .25) !important;
}

.badge.bg-warning,
.badge-warning {
    background: rgba(255, 184, 0, .15) !important;
    color: var(--t-warning) !important;
    border: 1px solid rgba(255, 184, 0, .25) !important;
}

.badge.bg-primary,
.badge-primary {
    background: rgba(0, 102, 255, .15) !important;
    color: var(--t-primary) !important;
    border: 1px solid rgba(0, 102, 255, .25) !important;
}

.badge.bg-info {
    background: rgba(0, 209, 255, .15) !important;
    color: var(--t-accent) !important;
    border: 1px solid rgba(0, 209, 255, .25) !important;
}

/* ── Alerts ── */
.alert {
    border-radius: var(--t-r) !important;
    font-family: var(--t-font) !important;
}

.alert-success {
    background: rgba(0, 214, 143, .08) !important;
    border-color: rgba(0, 214, 143, .2) !important;
    color: var(--t-success) !important;
}

.alert-danger {
    background: rgba(255, 61, 113, .08) !important;
    border-color: rgba(255, 61, 113, .2) !important;
    color: var(--t-danger) !important;
}

.alert-warning {
    background: rgba(255, 184, 0, .08) !important;
    border-color: rgba(255, 184, 0, .2) !important;
    color: var(--t-warning) !important;
}

.alert-info {
    background: rgba(0, 209, 255, .08) !important;
    border-color: rgba(0, 209, 255, .2) !important;
    color: var(--t-accent) !important;
}

.btn-close {
    filter: invert(1) !important;
}

/* ── Modals ── */
.modal-content {
    background: rgba(10, 12, 22, .97) !important;
    border: 1px solid var(--t-border) !important;
    border-radius: 18px !important;
}

.modal-header {
    border-bottom: 1px solid var(--t-border) !important;
}

.modal-header .modal-title {
    color: var(--t-text1) !important;
    font-family: var(--t-font) !important;
    font-weight: 700 !important;
}

.modal-footer {
    border-top: 1px solid var(--t-border) !important;
}

.modal-backdrop {
    background: rgba(3, 4, 8, .85) !important;
}

/* ── List groups ── */
.list-group-item {
    background: rgba(255, 255, 255, .03) !important;
    border-color: var(--t-border) !important;
    color: var(--t-text2) !important;
}

.list-group-item:hover {
    background: rgba(0, 102, 255, .07) !important;
    color: var(--t-text1) !important;
}

.list-group-item-action {
    cursor: pointer !important;
}

/* ── Select2 ── */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background: rgba(255, 255, 255, .04) !important;
    border: 1px solid var(--t-border) !important;
    border-radius: 10px !important;
    color: var(--t-text1) !important;
    min-height: 40px !important;
}

.select2-dropdown {
    background: rgba(10, 12, 22, .97) !important;
    border: 1px solid var(--t-border) !important;
    border-radius: 12px !important;
}

.select2-container--default .select2-results__option {
    color: var(--t-text2) !important;
}

.select2-container--default .select2-results__option--highlighted {
    background: rgba(0, 102, 255, .15) !important;
    color: var(--t-text1) !important;
}

.select2-search__field {
    background: rgba(255, 255, 255, .04) !important;
    color: var(--t-text1) !important;
    border-color: var(--t-border) !important;
}

/* ── Dropdown menus ── */
.dropdown-menu {
    background: rgba(10, 12, 22, .97) !important;
    border: 1px solid var(--t-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .5) !important;
}

.dropdown-item {
    color: var(--t-text2) !important;
    border-radius: 8px !important;
    margin: 2px 4px !important;
    font-family: var(--t-font) !important;
}

.dropdown-item:hover {
    background: rgba(0, 102, 255, .12) !important;
    color: var(--t-text1) !important;
}

.dropdown-divider {
    border-color: var(--t-border) !important;
}

/* ── Nav tabs ── */
.nav-tabs {
    border-color: var(--t-border) !important;
}

.nav-tabs .nav-link {
    color: var(--t-text2) !important;
    border-radius: 10px 10px 0 0 !important;
    border-color: transparent !important;
    font-family: var(--t-font) !important;
    font-weight: 600 !important;
}

.nav-tabs .nav-link.active {
    background: var(--t-surface) !important;
    color: var(--t-primary) !important;
    border-color: var(--t-border) var(--t-border) var(--t-surface) !important;
}

.nav-tabs .nav-link:hover {
    color: var(--t-text1) !important;
}

/* ── Pagination ── */
.page-link {
    background: rgba(255, 255, 255, .04) !important;
    border-color: var(--t-border) !important;
    color: var(--t-text2) !important;
    border-radius: 8px !important;
}

.page-link:hover {
    background: rgba(0, 102, 255, .12) !important;
    color: var(--t-text1) !important;
}

.page-item.active .page-link {
    background: var(--t-primary) !important;
    border-color: var(--t-primary) !important;
    color: #fff !important;
}

/* ── Switch/Checkbox ── */
.form-check-input:checked {
    background-color: var(--t-primary) !important;
    border-color: var(--t-primary) !important;
}

.form-check-input {
    background-color: rgba(255, 255, 255, .08) !important;
    border-color: var(--t-border) !important;
}

.form-check-label {
    color: var(--t-text2) !important;
    font-family: var(--t-font) !important;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 102, 255, .4);
}

/* ── Typography helpers ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--t-font) !important;
    color: var(--t-text1) !important;
    letter-spacing: -.015em;
}

/* Card headings — subtle blue glow */
.card-header h5,
.card-header h4,
.card-header h3,
.dk-card-head h5 {
    background: linear-gradient(90deg, #C8DAFF 0%, #A0BFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p,
span,
td,
th,
li {
    font-family: var(--t-font) !important;
}

.text-muted {
    color: var(--t-text2) !important;
}

hr {
    border-color: var(--t-border) !important;
}

/* ── Custom utility classes (dk-*) ── */
.dk-card {
    background: var(--t-surface) !important;
    border: 1px solid var(--t-border) !important;
    border-radius: var(--t-r) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .3) !important;
    overflow: hidden;
}

.dk-card-head {
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--t-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    background: transparent !important;
}

.dk-card-head h5 {
    font-size: .85rem;
    font-weight: 700;
    margin: 0;
    color: var(--t-text1) !important;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.dk-card-body {
    padding: 1.1rem 1.25rem;
}

.dk-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.1rem;
    background: var(--t-primary);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 4px 14px var(--t-primary-g);
    transition: all .25s ease;
    font-family: var(--t-font);
}

.dk-btn:hover {
    background: #0055DD;
    transform: translateY(-2px);
    color: #fff !important;
}

.dk-btn-sm {
    font-size: .72rem !important;
    padding: .35rem .85rem !important;
}

.dk-btn-o {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.1rem;
    background: var(--t-surface2);
    color: var(--t-text2) !important;
    border: 1px solid var(--t-border);
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: all .25s ease;
    font-family: var(--t-font);
}

.dk-btn-o:hover {
    color: var(--t-text1) !important;
    border-color: rgba(255, 255, 255, .15);
}

/* Hero (profile card) */
.dk-hero {
    background: linear-gradient(135deg, rgba(0, 102, 255, .18) 0%, rgba(0, 209, 255, .1) 100%);
    border: 1px solid rgba(0, 102, 255, .25);
    border-radius: var(--t-r);
    padding: 1.75rem 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
}

.dk-ava {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--t-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .85rem;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, .2), 0 0 0 8px rgba(0, 102, 255, .07);
}

.dk-uname {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--t-text1);
}

.dk-bal {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--t-primary);
    line-height: 1.1;
    margin: .35rem 0;
}

.dk-bal sub {
    font-size: .85rem;
    color: var(--t-text2);
    font-weight: 400;
}

.dk-bal-sub {
    font-size: .73rem;
    color: var(--t-text2);
}

.dk-btn-row {
    display: flex;
    gap: .6rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Alert */
.dk-alert {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .75rem 1rem;
    border-radius: var(--t-r);
    margin-bottom: .65rem;
    font-size: .83rem;
}

.dk-alert a {
    font-weight: 700;
    color: inherit;
}

.dk-al-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    opacity: .65;
    font-size: .9rem;
    color: inherit;
}

.dk-warn {
    background: rgba(255, 184, 0, .08);
    border: 1px solid rgba(255, 184, 0, .2);
    color: var(--t-warning);
}

.dk-danger {
    background: rgba(255, 61, 113, .08);
    border: 1px solid rgba(255, 61, 113, .2);
    color: var(--t-danger);
}

/* Metrics grid */
.dk-m-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}

.dk-metric {
    background: var(--t-surface2);
    border: 1px solid var(--t-border);
    border-radius: 10px;
    padding: .8rem;
    display: flex;
    gap: .65rem;
    align-items: center;
}

.dk-m-ico {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: .95rem;
    flex-shrink: 0;
}

.dk-ico-b {
    background: rgba(0, 102, 255, .12);
    color: var(--t-primary);
}

.dk-ico-g {
    background: rgba(0, 214, 143, .12);
    color: var(--t-success);
}

.dk-ico-y {
    background: rgba(255, 184, 0, .12);
    color: var(--t-warning);
}

.dk-ico-c {
    background: rgba(0, 209, 255, .12);
    color: var(--t-accent);
}

.dk-m-lbl {
    font-size: .67rem;
    color: var(--t-text2);
}

.dk-m-val {
    font-size: .88rem;
    font-weight: 800;
    color: var(--t-text1);
}

/* Package rows */
.dk-pk-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 0;
    border-bottom: 1px solid var(--t-border);
    font-size: .82rem;
}

.dk-pk-row:last-child {
    border-bottom: none;
}

.dk-pk-lbl {
    color: var(--t-text2);
}

.dk-pk-val {
    font-weight: 700;
}

.dk-info-box {
    margin-top: .65rem;
    font-size: .72rem;
    color: var(--t-text2);
    background: var(--t-surface2);
    border: 1px solid var(--t-border);
    border-radius: 8px;
    padding: .6rem .75rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* Telegram badges */
.dk-tg-on {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .65rem;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 700;
    background: rgba(0, 214, 143, .1);
    color: var(--t-success);
    border: 1px solid rgba(0, 214, 143, .2);
}

.dk-tg-off {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .65rem;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 700;
    background: var(--t-surface2);
    color: var(--t-text2) !important;
    border: 1px solid var(--t-border);
    text-decoration: none !important;
}

.dk-tg-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--t-success);
    display: inline-block;
    animation: dk_pulse 2s infinite;
}

@keyframes dk_pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 214, 143, .6)
    }

    50% {
        box-shadow: 0 0 0 4px rgba(0, 214, 143, 0)
    }
}

/* Bank cards */
.dk-search-wrap {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.dk-b-search {
    background: var(--t-surface2);
    border: 1px solid var(--t-border);
    border-radius: 50px;
    padding: .3rem .8rem;
    color: var(--t-text1);
    font-size: .78rem;
    transition: all .25s ease;
    width: 150px;
}

.dk-b-search::placeholder {
    color: var(--t-text3);
}

.dk-b-search:focus {
    border-color: var(--t-primary);
    background: rgba(0, 102, 255, .05);
    width: 190px;
    outline: none;
}

.dk-ref {
    background: var(--t-surface2);
    border: 1px solid var(--t-border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--t-text2);
    cursor: pointer;
    transition: all .25s ease;
}

.dk-ref:hover {
    color: var(--t-text1);
    border-color: var(--t-primary);
}

.dk-banks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: .7rem;
}

.dk-bk {
    background: var(--t-surface2);
    border: 1px solid var(--t-border);
    border-radius: 12px;
    padding: .85rem .6rem;
    text-align: center;
    cursor: pointer;
    transition: all .25s ease;
    position: relative;
}

.dk-bk:hover {
    background: rgba(0, 102, 255, .08);
    border-color: rgba(0, 102, 255, .3);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 102, 255, .12);
}

.dk-bk img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 9px;
    background: rgba(255, 255, 255, .05);
    padding: 3px;
}

.dk-bk-name {
    font-size: .65rem;
    font-weight: 700;
    color: var(--t-text2);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: .4rem;
}

.dk-bk-dot {
    width: 5px;
    height: 5px;
    background: var(--t-success);
    border-radius: 50%;
    display: inline-block;
    margin-right: 2px;
}

.dk-bk-cnt {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--t-primary);
    color: #fff;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
}

/* Activity log */
.dk-log {
    padding: .7rem 0;
    border-bottom: 1px solid var(--t-border);
}

.dk-log:last-child {
    border-bottom: none;
}

.dk-log-act {
    font-size: .82rem;
    font-weight: 600;
    color: var(--t-text1);
    margin-bottom: 2px;
}

.dk-log-meta {
    font-size: .7rem;
    color: var(--t-text2);
}

.dk-log-meta span {
    color: var(--t-success);
}

.dk-empty {
    text-align: center;
    color: var(--t-text3);
    padding: 1.5rem 0;
    font-size: .82rem;
}

/* ── Bank Card Grid (home.php) ── */
.bank-card {
    background: var(--t-surface2);
    border: 1px solid var(--t-border);
    border-radius: 14px;
    padding: 1.25rem .75rem;
    cursor: pointer;
    transition: all .25s ease;
    position: relative;
    text-align: center;
    height: 100%;
}

.bank-card:hover {
    background: rgba(0, 102, 255, .1);
    border-color: rgba(0, 102, 255, .35);
    box-shadow: 0 10px 28px rgba(0, 102, 255, .15);
}

.zoom-effect {
    transition: transform .25s ease, box-shadow .25s ease;
}

.zoom-effect:hover {
    transform: translateY(-4px) scale(1.02);
}

.bank-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    padding: 4px;
    display: block;
    margin: 0 auto;
}

.bank-name {
    font-size: .72rem;
    font-weight: 700;
    color: var(--t-text1);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.badge-ghost {
    background: rgba(0, 214, 143, .1);
    color: var(--t-success);
    border: 1px solid rgba(0, 214, 143, .2);
    border-radius: 50px;
    font-size: .62rem;
    font-weight: 700;
    padding: .18rem .6rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.badge-ghost::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--t-success);
    flex-shrink: 0;
    animation: blink_dot 2s infinite;
}

@keyframes blink_dot {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--t-primary);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    box-shadow: 0 2px 8px var(--t-primary-g);
}

/* ── Global Spacing Improvements ── */
.dash-content {
    padding: 2rem 1.75rem !important;
}

.page-block {
    padding: 1rem 0 1.25rem !important;
}

.page-header-title h4 {
    font-size: 1.6rem !important;
    margin-bottom: .15rem !important;
}

.card-body {
    padding: 1.5rem !important;
}

.card-header {
    padding: 1rem 1.5rem !important;
}

.row.g-3 {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.row.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Cards in main row */
.dash-content .row>[class*='col-'] {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

/* dk-card spacing */
.dk-card-body {
    padding: 1.35rem 1.4rem !important;
}

.dk-card-head {
    padding: 1rem 1.4rem !important;
}

/* bank-card inner spacing */
.bank-card {
    padding: 1.5rem 1rem !important;
}

.bank-logo {
    width: 56px !important;
    height: 56px !important;
    margin-bottom: .6rem !important;
}

/* Alerts */
.dk-alert {
    padding: .9rem 1.2rem !important;
    font-size: .88rem !important;
    margin-bottom: 1rem !important;
}

/* Log rows */
.dk-log {
    padding: .85rem 0 !important;
}

/* metric cards */
.dk-metric {
    padding: 1rem !important;
    gap: .85rem !important;
}

.dk-m-ico {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.05rem !important;
}

/* package rows */
.dk-pk-row {
    padding: .7rem 0 !important;
}

/* hero */
.dk-hero {
    padding: 2.25rem 1.5rem !important;
}

.dk-ava {
    width: 72px !important;
    height: 72px !important;
    font-size: 1.8rem !important;
    margin-bottom: 1rem !important;
}

/* Breadcrumb area */
.breadcrumb {
    margin-bottom: 0 !important;
    margin-top: .25rem !important;
}

@media (max-width: 768px) {
    .dash-content {
        padding: 1.25rem 1rem !important;
    }
}

/* ══════════════════════════════════════
   Ant Design Table — Dark Glass Theme
   ══════════════════════════════════════ */

/* Wrapper */


/* ══ Premium Recharge Table Redesign ══ */
.table-premium {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

.table-premium thead th {
    background: rgba(0, 102, 255, 0.15) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #DCE8FF !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.75rem !important;
    padding: 16px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-align: center !important;
}

.table-premium tbody td {
    background: transparent !important;
    color: #DCE8FF !important;
    padding: 14px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-size: 0.85rem !important;
    vertical-align: middle !important;
    transition: all 0.2s ease !important;
}

.table-premium tbody tr:hover td {
    background: rgba(0, 102, 255, 0.05) !important;
}

/* Specific alignments and wrapping */
.table-premium .cell-method {
    text-align: center;
    font-weight: 600;
    width: 140px;
}

.table-premium .cell-id {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    width: 160px;
}

.table-premium .cell-amount {
    text-align: center;
    font-weight: 700;
    width: 120px;
}

.table-premium .cell-desc {
    text-align: left;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.5 !important;
    min-width: 250px;
}

.table-premium .cell-time {
    text-align: center;
    width: 170px;
    opacity: 0.8;
}

/* Remove redundant borders for clean cells */
.table-premium thead th:first-child {
    border-top-left-radius: 12px;
}

.table-premium thead th:last-child {
    border-top-right-radius: 12px;
}

/* ══ Premium Navbar Tabs (api-docs Switching) ══ */
.nav-pills .nav-item {
    margin: 0 4px;
}

.nav-pills .nav-link.tab-link {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #7A8CA8 !important;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: 0.3px !important;
    backdrop-filter: blur(4px) !important;
}

.nav-pills .nav-link.tab-link:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #DCE8FF !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px) !important;
}

.nav-pills .nav-link.tab-link.active {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.45) 0%, rgba(0, 209, 255, 0.25) 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25) !important;
    transform: translateY(-2px) !important;
}

/* Adjust nav-fill behavior for mobile/stacked */
@media (max-width: 768px) {
    .nav-pills .nav-item {
        margin: 4px 0;
    }
}

/* ══ SIDEBAR CLEANUP — Force override legacy theme-1 green ══ */
body.theme-1 .dash-sidebar .dash-navbar>.dash-item.active>.dash-link,
body.theme-1 .dash-sidebar.light-sidebar .dash-navbar>.dash-item.active>.dash-link,
body.theme-1 .dash-sidebar .dash-navbar>.dash-item:hover>.dash-link,
body.theme-1 .dash-sidebar.light-sidebar .dash-navbar>.dash-item:hover>.dash-link {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.22) 0%, rgba(0, 180, 255, 0.12) 100%) !important;
    color: #A8C4FF !important;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.18) !important;
}

body.theme-1 .dash-sidebar .dash-navbar>.dash-item.active>.dash-link i,
body.theme-1 .dash-sidebar.light-sidebar .dash-navbar>.dash-item.active>.dash-link i {
    color: #A8C4FF !important;
}

/* Submenu dot color fix */
body.theme-1 .dash-sidebar .dash-item .dash-submenu .dash-item::before,
body.theme-1 .dash-sidebar.light-sidebar .dash-item .dash-submenu .dash-item::before {
    border-right-color: #0066FF !important;
}

/* Active submenu link color */
body.theme-1 .dash-sidebar .dash-item .dash-submenu .dash-item.active>.dash-link,
body.theme-1 .dash-sidebar.light-sidebar .dash-item .dash-submenu .dash-item.active>.dash-link {
    color: #A8C4FF !important;
}

/* Ensure progress bars and primary bg also match theme */
body.theme-1 .bg-primary {
    background: var(--t-primary) !important;
}

body.theme-1 .text-primary {
    color: var(--t-primary) !important;
}

/* ══════════════════════════════════════
   Ant Design Global Overrides
   ══════════════════════════════════════ */
.ant-table-wrapper {
    background: transparent !important;
}

.ant-table {
    background: transparent !important;
    color: var(--t-text1) !important;
}

.ant-table-thead>tr>th {
    background: rgba(0, 102, 255, 0.12) !important;
    color: #A8C4FF !important;
    border-bottom: 1px solid rgba(0, 102, 255, 0.2) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.75rem !important;
}

.ant-table-tbody>tr>td {
    background: transparent !important;
    color: var(--t-text2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.2s ease !important;
}

.ant-table-tbody>tr:hover>td {
    background: rgba(0, 102, 255, 0.06) !important;
    color: var(--t-text1) !important;
}

/* Empty State / No Data */
.ant-table-placeholder .ant-table-cell {
    background: transparent !important;
    border-bottom: none !important;
}

.ant-empty-description {
    color: var(--t-text3) !important;
}

.ant-empty-image svg ellipse {
    fill: rgba(255, 255, 255, 0.02) !important;
}

.ant-empty-image svg g path {
    stroke: var(--t-border) !important;
}

.ant-empty-image svg g path[fill="#fafafa"] {
    fill: rgba(255, 255, 255, 0.03) !important;
}

/* Pagination (if used) */
.ant-pagination-item {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--t-border) !important;
}

.ant-pagination-item a {
    color: var(--t-text2) !important;
}

.ant-pagination-item-active {
    background: var(--t-primary) !important;
    border-color: var(--t-primary) !important;
}

.ant-pagination-item-active a {
    color: #fff !important;
}

/* Spin / Loading */
.ant-spin-dot-item {
    background-color: var(--t-primary) !important;
}

/* ══ API Package Cards (plan.php) ══ */
.premium-card {
    background: rgba(13, 16, 26, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    border-color: rgba(0, 102, 255, 0.3) !important;
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.15) !important;
}

.premium-card .card-header-gradient {
    background: linear-gradient(135deg, rgba(82, 107, 246, 0.8) 0%, rgba(137, 85, 226, 0.8) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 30px 20px !important;
}

.premium-card .info-section {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    padding: 16px !important;
}

.premium-card .bank-chip {
    background: rgba(0, 102, 255, 0.1) !important;
    border: 1px solid rgba(0, 102, 255, 0.2) !important;
    color: #A8C4FF !important;
    border-radius: 10px !important;
    padding: 6px 14px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

.premium-card .bank-chip:hover {
    background: rgba(0, 102, 255, 0.2) !important;
    border-color: #0066FF !important;
    color: #fff !important;
}

.premium-card .status-float {
    background: rgba(5, 50, 20, 0.4) !important;
    border: 1px solid rgba(46, 213, 115, 0.2) !important;
    color: #2ed573 !important;
    font-size: 0.65rem !important;
}

.premium-card .text-dark {
    color: #DCE8FF !important;
}

.premium-card .text-muted {
    color: #7A8CA8 !important;
}

/* ══ Profile Page Redesign ══ */
#useradd-sidenav .list-group-item {
    background: transparent !important;
    color: #A8C4FF !important;
    border: 1px solid transparent !important;
    margin-bottom: 5px !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#useradd-sidenav .list-group-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    transform: translateX(5px);
}

#useradd-sidenav .list-group-item.active {
    background: linear-gradient(90deg, rgba(82, 107, 246, 0.2), rgba(137, 85, 226, 0.2)) !important;
    border: 1px solid rgba(82, 107, 246, 0.4) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px -10px rgba(82, 107, 246, 0.5) !important;
    font-weight: 700 !important;
}

/* Card Header Accent Lines */
body.theme-1 .card .card-header {
    position: relative !important;
    padding-left: 40px !important;
    /* Forces all text to the right */
}

body.theme-1 .card .card-header h5:after,
body.theme-1 .card .card-header .h5:after {
    display: none !important;
}

body.theme-1 .card .card-header:after {
    content: "" !important;
    position: absolute !important;
    left: 18px !important;
    top: 25px !important;
    width: 4px !important;
    height: 18px !important;
    background: linear-gradient(180deg, #526BF6, #8955E2) !important;
    border-radius: 10px !important;
    display: block !important;
}

body.theme-1 .card-header h5,
body.theme-1 .card-header .h5 {
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 5px !important;
}

/* Form Labels Contrast */
.text-dark {
    color: #DCE8FF !important;
}

.form-label {
    color: #fff !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.col-form-label {
    color: #fff !important;
}

/* Form Inputs within Cards */
.card .form-control {
    background: rgba(13, 16, 26, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 10px !important;
}

.card .form-control:focus {
    border-color: #526BF6 !important;
    box-shadow: 0 0 0 2px rgba(82, 107, 246, 0.2) !important;
}

.card .form-control:disabled {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #7A8CA8 !important;
}

/* Card Styling for Profile */
.card {
    background: rgba(19, 23, 36, 0.7) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    overflow: hidden;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1.5rem !important;
}

.card-footer {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Sticky Sidenav Card */
.card.sticky-top {
    background: rgba(13, 16, 26, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ══ Documentation Boxes (api-docs.php) ══ */
.your-key-box,
.code-copy-box {
    background: rgba(13, 16, 26, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 15px !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.your-key-box:hover,
.code-copy-box:hover {
    border-color: rgba(0, 102, 255, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.key-box-topbar,
.codecopy-topbar {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-top: 12px !important;
    padding-bottom: 8px !important;
}

.key-box-topbar h6,
.codecopy-topbar h6 {
    color: #A8C4FF !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.key-box-main,
.codecopy-code {
    padding: 20px !important;
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
    font-size: 0.9rem !important;
}

.key-box-main .text-blue,
.code-main .text-blue {
    color: #52ADFF !important;
}

.key-box-main .text-green,
.code-main .text-green {
    color: #33D69F !important;
}

.code-copy-box-dark {
    background: rgba(10, 12, 20, 0.9) !important;
}

pre.copy-content {
    background: transparent !important;
    color: #DCE8FF !important;
    margin: 0;
    padding: 0;
}

/* ══ Upgrade Cards (upgrade.php) ══ */
.uk-card {
    background: rgba(13, 16, 26, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 20px !important;
    color: #DCE8FF !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.uk-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    border-color: rgba(0, 102, 255, 0.3) !important;
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.15) !important;
}

.uk-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #526BF6, #8955E2, #526BF6);
    background-size: 200% 100%;
    animation: glow-shift 3s infinite linear;
}

@keyframes glow-shift {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.uk-card-header {
    padding: 30px 25px 20px !important;
    text-align: center;
}

.uk-plan-icon {
    width: 60px;
    height: 60px;
    background: rgba(82, 107, 246, 0.1);
    border: 1px solid rgba(82, 107, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #526BF6;
    font-size: 1.8rem;
}

.uk-plan-name {
    color: #fff !important;
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    letter-spacing: 0.5px;
    margin-bottom: 5px !important;
}

.uk-plan-type {
    color: #7A8CA8 !important;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.uk-card-price {
    padding: 20px 25px !important;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.uk-price-number {
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: #fff !important;
}

.uk-price-symbol {
    font-size: 1rem;
    margin-left: 4px;
    color: #526BF6;
}

.uk-price-subtitle {
    color: #7A8CA8 !important;
    font-size: 0.8rem;
    text-align: center;
}

.uk-section {
    padding: 20px 25px !important;
}

.uk-section-label {
    color: #A8C4FF !important;
    font-weight: 800 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px !important;
    display: flex;
    align-items: center;
}

.uk-section-label i {
    font-size: 1.1rem;
    margin-right: 8px;
    color: #526BF6;
}

.uk-bank-badge {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #DCE8FF !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    margin: 2px !important;
    display: inline-block !important;
}

.uk-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.uk-feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    color: #DCE8FF;
    font-size: 0.9rem;
}

.uk-feature-list li i {
    color: #33D69F;
    margin-right: 10px;
    margin-top: 3px;
}

.uk-btn-purchase {
    width: calc(100% - 50px);
    margin: 0 25px 30px;
    background: linear-gradient(90deg, #526BF6, #8955E2) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #fff !important;
    padding: 12px !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(82, 107, 246, 0.3) !important;
}

.uk-btn-purchase:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(82, 107, 246, 0.5) !important;
    filter: brightness(1.1);
}

/* ══ Specialized Alerts & Indicators ══ */
.alert-stc {
    background: rgba(255, 59, 71, 0.1) !important;
    border: 1px solid rgba(255, 59, 71, 0.2) !important;
    border-radius: 12px !important;
    color: #FDA4AF !important;
    padding: 16px 20px !important;
    backdrop-filter: blur(8px);
}

.alert-stc strong {
    color: #FF8C94 !important;
    font-weight: 800;
}

/* Active plan highlight */
.uk-card.active-plan {
    border-color: rgba(51, 214, 159, 0.4) !important;
    box-shadow: 0 0 20px rgba(51, 214, 159, 0.1) !important;
}

.uk-card.active-plan .uk-card-glow {
    background: linear-gradient(90deg, #33D69F, #6EE7B7, #33D69F);
}

/* Modal Overrides */
.modal-content {
    background: rgba(13, 16, 26, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.modal-title {
    color: #fff !important;
    font-weight: 800 !important;
}

.card-wrapper.item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 15px !important;
    padding: 15px !important;
    transition: all 0.3s ease;
}

.card-wrapper.item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(0, 102, 255, 0.3) !important;
}

.card-wrapper.item.active-select {
    background: rgba(0, 102, 255, 0.1) !important;
    border-color: #0066FF !important;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.2) !important;
}

.card-wrapper.item h6 {
    color: #fff !important;
}

/* ══ Module Guide Boxes (module.php) ══ */
.card-hot-deal {
    background: rgba(13, 16, 26, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    border: 2px dashed rgba(255, 59, 71, 0.3) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    color: #DCE8FF !important;
}

.card-hot-deal span {
    font-weight: 800 !important;
    color: #FF8C94 !important;
    display: block;
    margin-bottom: 12px;
}

.card-hot-deal p {
    color: #A8C4FF !important;
    margin-bottom: 8px !important;
    font-size: 0.9rem;
}

/* ══ Floating Right Menu (#top-menu) ══ */
#top-menu li a {
    background: rgba(13, 16, 26, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-right: none !important;
    border-radius: 12px 0 0 12px !important;
    color: #fff !important;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#top-menu li a:hover {
    background: rgba(82, 107, 246, 0.3) !important;
    border-color: rgba(82, 107, 246, 0.5) !important;
    transform: translateX(-5px);
}

#top-menu i {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #526BF6 !important;
}

#top-menu span {
    color: #DCE8FF !important;
    font-weight: 600 !important;
}

/* Active/Toggle button adjustments */
#top-menu li a.active {
    background: rgba(82, 107, 246, 0.2) !important;
    border-color: rgba(82, 107, 246, 0.4) !important;
}

/* ══ SweetAlert2 & CuteAlert Redesign ══ */
.swal2-popup {
    background: rgba(13, 16, 26, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
    color: #DCE8FF !important;
}

.swal2-title {
    color: #fff !important;
    font-weight: 800 !important;
}

.swal2-html-container {
    color: #A8C4FF !important;
    font-size: 0.95rem !important;
}

.swal2-confirm {
    background: linear-gradient(90deg, #526BF6, #8955E2) !important;
    border-radius: 12px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 20px rgba(82, 107, 246, 0.3) !important;
}

.swal2-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(82, 107, 246, 0.4) !important;
}

/* CuteAlert overrides if used */
.cute-alert {
    background: rgba(13, 16, 26, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    color: #fff !important;
    backdrop-filter: blur(20px);
}

.cute-alert-title {
    color: #fff !important;
}

.cute-alert-message {
    color: #DCE8FF !important;
}

.cute-alert-button {
    background: #526BF6 !important;
    border-radius: 10px !important;
}

/* ══ Affiliate & Withdrawal Redesign ══ */
.bg-light {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #DCE8FF !important;
}

.border {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.card-title {
    color: #fff !important;
    font-weight: 800 !important;
}

.text-success {
    color: #33D69F !important;
}

/* Affiliate Stat Boxes */
.p-3.border.rounded.bg-light {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.p-3.border.rounded.bg-light:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(0, 102, 255, 0.2) !important;
}

/* Referral Link & Social Icons */
input.form-control.bg-light {
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.list-inline-item i {
    transition: all 0.3s ease;
}

.list-inline-item:hover i {
    transform: scale(1.2);
    filter: brightness(1.2);
}

/* Instructions Box */
.instructions {
    background: rgba(82, 107, 246, 0.05) !important;
    border: 1px solid rgba(82, 107, 246, 0.1) !important;
    color: #A8C4FF !important;
}

/* Withdrawal Table */
.table-light {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

.table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

.table td,
.table th {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #DCE8FF !important;
}

/* Choices.js Dark Override */
.choices__inner {
    background: rgba(13, 16, 26, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #fff !important;
}

.choices__list--dropdown {
    background: rgba(13, 16, 26, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.choices__item--selectable {
    color: #DCE8FF !important;
}

.choices__item--selectable.is-highlighted {
    background: rgba(82, 107, 246, 0.2) !important;
    color: #fff !important;
}

/* ══ Global Futuristic Loader Redesign ══ */
.loader-wrapper {
    background: rgba(3, 4, 8, 0.85) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    display: flex;
    /* Removed !important to allow JS hiding */
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    transition: opacity 0.6s ease, visibility 0.6s ease !important;
}

.site-loader {
    width: 64px !important;
    height: 64px !important;
    background: transparent !important;
    border-radius: 50% !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.site-loader::before,
.site-loader::after {
    content: "" !important;
    position: absolute !important;
    border-radius: 50% !important;
    border: 3px solid transparent !important;
}

.site-loader::before {
    width: 100% !important;
    height: 100% !important;
    border-top-color: #526BF6 !important;
    border-bottom-color: #8955E2 !important;
    animation: spin_futuristic 1s cubic-bezier(0.76, 0, 0.3, 1) infinite !important;
}

.site-loader::after {
    width: 70% !important;
    height: 70% !important;
    border-left-color: #00D1FF !important;
    border-right-color: #00D1FF !important;
    animation: spin_futuristic_reverse 1.5s linear infinite !important;
    opacity: 0.6 !important;
}

@keyframes spin_futuristic {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes spin_futuristic_reverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.loader-wrapper p {
    margin-top: 20px !important;
    color: #fff !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 10px rgba(82, 107, 246, 0.5) !important;
    animation: pulse_text 2s ease-in-out infinite !important;
}

@keyframes pulse_text {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ══ Card Interactive Spotlight Effect ══ */
.card,
.glass-card {
    position: relative !important;
    overflow: hidden !important;
}

/* Updated to be an overlay with pointer-events: none */
.card::before,
.glass-card::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(500px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(82, 107, 246, 0.2),
            transparent 45%) !important;
    z-index: 10 !important;
    /* Above content */
    pointer-events: none !important;
    /* Crucial: allow clicks through */
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    mix-blend-mode: screen !important;
    /* Enhances the "glow" look */
}

.card:hover::before,
.glass-card:hover::before {
    opacity: 1 !important;
}

/* Relative positioning for children to maintain stack context, 
   but they are now behind the spotlight (z-index 10) */
.card>*,
.glass-card>* {
    position: relative !important;
    z-index: 1 !important;
}

/* ══ Global Text Colors Fix ══ */
.text-muted {
    color: #7A8CA8 !important;
}