/* ============================================================
   W2F Modern Light Theme
   Clean white surfaces, Teal accents, Airy feel
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --pri:           #0d9488;
    --pri-dark:      #0f766e;
    --pri-light:     #f0fdfa;
    --pri-50:        #ccfbf1;
    --pri-100:       #99f6e4;
    --bg:            #f5f7fa;
    --surface:       #ffffff;
    --border:        #e5e7eb;
    --border-light:  #f3f4f6;
    --text:          #111827;
    --text-2:        #374151;
    --muted:         #6b7280;
    --muted-light:   #9ca3af;
    --sidebar-bg:    #0f172a;
    --sidebar-text:  #e2e8f0;
    --header-bg:     #ffffff;
    --radius:        14px;
    --radius-sm:     10px;
    --shadow-xs:     0 1px 3px rgba(0,0,0,0.05);
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:     0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg:     0 8px 40px rgba(0,0,0,0.12);
}

/* ================================================================
   KILL DARK MODE — override Cuba dark-only / dark-sidebar at any specificity
   ================================================================ */
body.dark-only,
body.dark-sidebar {
    background: var(--bg) !important;
    color: var(--text) !important;
}

body.dark-only .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper,
body.dark-only .page-body-wrapper div.sidebar-wrapper,
body.dark-sidebar .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper,
body.dark-sidebar .page-body-wrapper div.sidebar-wrapper,
.page-wrapper.compact-wrapper.dark-sidebar div.sidebar-wrapper,
.page-wrapper.compact-wrapper.color-sidebar div.sidebar-wrapper {
    background: #0f172a !important;
    border-right: 1px solid rgba(255,255,255,0.06) !important;
    box-shadow: 2px 0 20px rgba(0,0,0,0.20) !important;
}

body.dark-only .page-header,
body.dark-only .page-wrapper .page-header .header-wrapper,
body.dark-sidebar .page-header,
body.dark-sidebar .page-wrapper .page-header .header-wrapper {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

body.dark-only .page-wrapper .page-header .header-logo-wrapper,
body.dark-sidebar .page-wrapper .page-header .header-logo-wrapper,
.page-wrapper .page-header .header-logo-wrapper {
    background: #ffffff !important;
}

.page-wrapper.compact-wrapper .page-header .header-wrapper .toggle-sidebar {
    border-right: 1px solid #e5e7eb !important;
}

body.dark-only .card,
body.dark-sidebar .card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
}

body.dark-only .page-body,
body.dark-only .page-body-wrapper,
body.dark-only .container-fluid,
body.dark-sidebar .page-body,
body.dark-sidebar .page-body-wrapper,
body.dark-sidebar .container-fluid {
    background: #f5f7fa !important;
}

body.dark-only .page-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links li a span,
body.dark-sidebar .page-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links li a span,
.page-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links li a span {
    color: #cbd5e1 !important;
}

body.dark-only .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-list ul.sidebar-submenu li a span,
body.dark-sidebar .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-list ul.sidebar-submenu li a span,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-list ul.sidebar-submenu li a span {
    color: rgba(255,255,255,0.55) !important;
}

/* ================================================================
   BASE
   ================================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: 'Plus Jakarta Sans', 'Rubik', 'Inter', -apple-system, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
}

body.user-dashboard {
    background: var(--bg) !important;
}

h1,h2,h3,h4,h5,h6 {
    color: var(--text) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

a {
    color: var(--pri) !important;
    text-decoration: none !important;
}
a:hover { color: var(--pri-dark) !important; }

/* ================================================================
   PAGE WRAPPER & BODY AREAS
   ================================================================ */
.page-wrapper,
.page-wrapper.compact-wrapper,
.page-body-wrapper,
.page-body,
.container-fluid {
    background: var(--bg) !important;
}

/* ================================================================
   HEADER / TOPBAR
   ================================================================ */
.page-header,
.page-wrapper .page-header,
.page-wrapper.compact-wrapper .page-header {
    background: var(--header-bg) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: var(--shadow-xs) !important;
}

.page-wrapper .page-header .header-wrapper {
    background: var(--header-bg) !important;
}

/* logo area */
.logo-wrapper { background: var(--header-bg) !important; }

/* header nav icons */
.page-wrapper .page-header .header-wrapper .nav-right ul li i,
.navbar-icon,
.nav-right .nav-menus li i,
.nav-right .nav-menus .mode i {
    color: var(--muted) !important;
}

.nav-right .nav-menus li i:hover { color: var(--pri) !important; }

/* profile dropdown */
.profile-nav .media-body span,
.profile-media .media-body span {
    color: var(--text) !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
}
.profile-nav .media-body p,
.profile-media .media-body p {
    color: var(--muted) !important;
    font-size: 0.74rem !important;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.page-wrapper.compact-wrapper .page-body-wrapper .sidebar-wrapper,
.sidebar-wrapper,
.sidebar-wrapper > div {
    background: var(--sidebar-bg) !important;
    border-right: 1px solid var(--border) !important;
    box-shadow: 2px 0 12px rgba(0,0,0,0.04) !important;
}

/* sidebar logo area */
.sidebar-wrapper .logo-wrapper,
.sidebar-wrapper .logo-icon-wrapper {
    background: #0a1020 !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

/* section heading */
.sidebar-main-title > div h6 {
    color: rgba(255,255,255,0.35) !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
}
.sidebar-main-title > div p { display: none !important; }

/* nav links */
.sidebar-wrapper .sidebar-main .sidebar-links li a.sidebar-link,
.sidebar-link.sidebar-title,
.page-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links li a.sidebar-link,
.page-wrapper.compact-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links li a.sidebar-link {
    color: #cbd5e1 !important;
    font-weight: 500 !important;
    font-size: 0.86rem !important;
    padding: 10px 16px !important;
    border-radius: var(--radius-sm) !important;
    margin: 1px 8px !important;
    transition: all 0.18s ease !important;
}

.sidebar-wrapper .sidebar-main .sidebar-links li a.sidebar-link span,
.page-wrapper.compact-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links li a span {
    color: #cbd5e1 !important;
}

.sidebar-wrapper .sidebar-main .sidebar-links li a.sidebar-link:hover,
.sidebar-link.sidebar-title:hover {
    background: rgba(255,255,255,0.07) !important;
    color: #ffffff !important;
}

/* active */
.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-list.active > a,
.sidebar-link.active,
.sidebar-link.sidebar-title.active {
    background: linear-gradient(90deg, rgba(13,148,136,0.30), rgba(13,148,136,0.10)) !important;
    color: #5eead4 !important;
    font-weight: 600 !important;
    border-left: 3px solid #0d9488 !important;
}

/* icons */
.sidebar-link i.side-icon,
.sidebar-link i,
.sidebar-link svg,
.sidebar-wrapper .sidebar-main .sidebar-links li a .side-icon {
    color: rgba(255,255,255,0.40) !important;
    fill: rgba(255,255,255,0.40) !important;
    transition: color 0.18s ease !important;
}

.sidebar-link:hover i.side-icon,
.sidebar-link:hover i,
.sidebar-link:hover svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.sidebar-link.active i.side-icon,
.sidebar-list.active .side-icon {
    color: #5eead4 !important;
    fill: #5eead4 !important;
}

/* submenu */
.sidebar-submenu,
.sidebar-wrapper ul.sidebar-submenu {
    background: rgba(0,0,0,0.20) !important;
    border-radius: var(--radius-sm) !important;
    padding: 4px 0 !important;
    margin: 0 8px !important;
}

.sidebar-submenu li a {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.82rem !important;
    padding: 8px 16px 8px 36px !important;
}

.sidebar-submenu li a:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.07) !important;
}

/* back btn & toggle */
.sidebar-wrapper .back-btn i,
.toggle-sidebar i {
    color: var(--muted-light) !important;
}

/* pin icon - hide */
.sidebar-list > .fa-thumb-tack,
.pin-title { display: none !important; }

/* hide submenu arrow/slider */
.according-menu { display: none !important; }

/* hide sidebar scroll arrows */
.left-arrow,
.right-arrow,
#left-arrow,
#right-arrow,
.sidebar-wrapper .left-arrow,
.sidebar-wrapper .right-arrow {
    display: none !important;
}

/* sidebar scrollbar */
.sidebar-wrapper .sidebar-main::-webkit-scrollbar { width: 4px; }
.sidebar-wrapper .sidebar-main::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px;
}

/* logout */
.sidebar-link .text-danger { color: #ef4444 !important; }
.sidebar-link:hover .text-danger { color: #dc2626 !important; }

/* ================================================================
   PAGE TITLE BAR
   ================================================================ */
.page-wrapper .page-body-wrapper .page-title {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: var(--shadow-xs) !important;
}

.page-title h3,
.page-title h4 {
    color: var(--text) !important;
    font-weight: 800 !important;
}

.breadcrumb-item a { color: var(--pri) !important; }
.breadcrumb-item.active { color: var(--muted) !important; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--muted-light) !important; }

/* ================================================================
   CARDS
   ================================================================ */
.card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--text) !important;
    transition: box-shadow 0.22s ease, transform 0.22s ease !important;
}

.card:hover {
    box-shadow: var(--shadow-md) !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 16px 20px !important;
    color: var(--text) !important;
}

.card-header h5,
.card-header h6 {
    font-weight: 700 !important;
    color: var(--text) !important;
    margin: 0 !important;
}

.card-body {
    color: var(--text) !important;
    background: transparent !important;
}

.card-footer {
    background: var(--border-light) !important;
    border-top: 1px solid var(--border) !important;
}

/* ================================================================
   WIDGET CARDS — Pastel gradient palette
   ================================================================ */
.widget-1 {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-md) !important;
    overflow: hidden !important;
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s ease !important;
    position: relative;
}

.widget-1::after {
    display: none;
}

.widget-1:hover {
    transform: translateY(-5px) scale(1.01) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* 8-colour deeper rotation */
#widgets_stack > div:nth-child(8n+1) .widget-1 { background: linear-gradient(135deg,#93c5fd,#3b82f6) !important; }
#widgets_stack > div:nth-child(8n+2) .widget-1 { background: linear-gradient(135deg,#6ee7b7,#10b981) !important; }
#widgets_stack > div:nth-child(8n+3) .widget-1 { background: linear-gradient(135deg,#fbbf24,#f59e0b) !important; }
#widgets_stack > div:nth-child(8n+4) .widget-1 { background: linear-gradient(135deg,#f9a8d4,#ec4899) !important; }
#widgets_stack > div:nth-child(8n+5) .widget-1 { background: linear-gradient(135deg,#c4b5fd,#8b5cf6) !important; }
#widgets_stack > div:nth-child(8n+6) .widget-1 { background: linear-gradient(135deg,#67e8f9,#06b6d4) !important; }
#widgets_stack > div:nth-child(8n+7) .widget-1 { background: linear-gradient(135deg,#86efac,#22c55e) !important; }
#widgets_stack > div:nth-child(8n+8) .widget-1 { background: linear-gradient(135deg,#fdba74,#f97316) !important; }

/* icon colours */
#widgets_stack > div:nth-child(8n+1) .widget-1-i { color: #1d4ed8 !important; }
#widgets_stack > div:nth-child(8n+2) .widget-1-i { color: #047857 !important; }
#widgets_stack > div:nth-child(8n+3) .widget-1-i { color: #b45309 !important; }
#widgets_stack > div:nth-child(8n+4) .widget-1-i { color: #be185d !important; }
#widgets_stack > div:nth-child(8n+5) .widget-1-i { color: #6d28d9 !important; }
#widgets_stack > div:nth-child(8n+6) .widget-1-i { color: #0e7490 !important; }
#widgets_stack > div:nth-child(8n+7) .widget-1-i { color: #15803d !important; }
#widgets_stack > div:nth-child(8n+8) .widget-1-i { color: #c2410c !important; }

/* widget icon badge */
.widget-round {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,0.72) !important;
    backdrop-filter: blur(6px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    flex-shrink: 0 !important;
}

.widget-round .bg-round {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.widget-round svg.half-circle { display: none !important; }

.widget-1 .card-body {
    padding: 18px 16px !important;
    background: transparent !important;
}

.widget-content {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.widget-content > div:last-child { flex: 1; text-align: right; }

.widget-content h4.dw_data {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
    margin-bottom: 2px !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
}

.widget-content .dw_label,
.widget-content span.f-light {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

/* ================================================================
   PROFILE SUMMARY CARD
   ================================================================ */
#profile_summary_card,
#profile_summary_card.card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f2535 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25) !important;
}

#profile_summary_card .card-body { background: transparent !important; }

#profile_summary_card h4,
#profile_summary_card h5,
#profile_summary_card .ps_user_name {
    color: #f1f5f9 !important;
    font-weight: 700 !important;
}

#profile_summary_card .ps_user_id {
    color: #94a3b8 !important;
}

#profile_summary_card .ps_investment_label {
    color: #94a3b8 !important;
}

#profile_summary_card .ps_investment_value {
    color: #f1f5f9 !important;
}

#profile_summary_card .text-muted,
#profile_summary_card small {
    color: #94a3b8 !important;
}

/* ================================================================
   TABLES
   ================================================================ */
.table {
    color: var(--text) !important;
    font-size: 0.87rem !important;
    --bs-table-bg: transparent;
}

.table thead th,
.table > thead > tr > th {
    background: #f9fafb !important;
    color: var(--muted) !important;
    font-weight: 700 !important;
    font-size: 0.74rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 2px solid var(--border) !important;
    white-space: nowrap !important;
    padding: 13px 16px !important;
}

.table tbody tr:hover > td { background: var(--pri-light) !important; }
.table tbody tr:nth-child(even) > td { background: #f9fafb !important; }
.table td, .table th {
    border-color: var(--border) !important;
    vertical-align: middle !important;
    padding: 12px 16px !important;
    color: var(--text-2) !important;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
    background: var(--pri) !important;
    border-color: var(--pri) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.88rem !important;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--pri-dark) !important;
    border-color: var(--pri-dark) !important;
    box-shadow: 0 4px 14px rgba(13,148,136,0.30) !important;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e5e7eb !important;
    border-color: #e5e7eb !important;
    color: var(--text) !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
}

.btn-outline-primary {
    border-color: var(--pri) !important;
    color: var(--pri) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
}
.btn-outline-primary:hover {
    background: var(--pri) !important;
    color: #fff !important;
}

.btn-success { border-radius: var(--radius-sm) !important; }
.btn-danger  { border-radius: var(--radius-sm) !important; }
.btn-warning { border-radius: var(--radius-sm) !important; }

/* ================================================================
   FORM INPUTS
   ================================================================ */
.form-control,
input.form-control,
select.form-control,
textarea.form-control,
.form-select {
    background: #fff !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text) !important;
    font-size: 0.88rem !important;
    padding: 9px 14px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--pri) !important;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12) !important;
    outline: none !important;
    background: #fff !important;
}

.form-control::placeholder { color: var(--muted-light) !important; }
label, .form-label {
    color: var(--text-2) !important;
    font-weight: 600 !important;
    font-size: 0.83rem !important;
}

.input-group-text {
    background: #f3f4f6 !important;
    border-color: var(--border) !important;
    color: var(--muted) !important;
}

/* ================================================================
   BADGES
   ================================================================ */
.badge-primary, .badge.bg-primary { background: var(--pri) !important; color:#fff !important; }
.badge-success, .badge.bg-success { background: #059669 !important; }
.badge-danger,  .badge.bg-danger  { background: #dc2626 !important; }
.badge-warning, .badge.bg-warning { background: #d97706 !important; }
.badge-info,    .badge.bg-info    { background: #0891b2 !important; }
.badge-light-primary { background: var(--pri-light) !important; color: var(--pri) !important; }

.badge {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    padding: 4px 10px !important;
}

/* ================================================================
   DROPDOWNS
   ================================================================ */
.dropdown-menu,
.onhover-show-div,
.profile-dropdown {
    background: rgba(255,255,255,0.96) !important;
    border: 1px solid rgba(0,0,0,0.07) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 6px !important;
}

.dropdown-item,
.profile-dropdown li a {
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    color: var(--text) !important;
    transition: background 0.15s !important;
}

.dropdown-item:hover,
.profile-dropdown li a:hover {
    background: var(--pri-light) !important;
    color: var(--pri) !important;
}

/* ================================================================
   FOOTER
   ================================================================ */
footer,
.footer {
    background: var(--surface) !important;
    border-top: 1px solid var(--border) !important;
    color: var(--muted) !important;
    font-size: 0.82rem !important;
    box-shadow: none !important;
}

/* ================================================================
   REFERRAL / SHARE CARD
   ================================================================ */
#profile_summary_card .btn,
.whatsapp-share-btn {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
}

/* ================================================================
   PROGRESS BARS
   ================================================================ */
.progress {
    background: #e5e7eb !important;
    border-radius: 999px !important;
}

.progress-bar {
    background: linear-gradient(90deg, var(--pri), #14b8a6) !important;
    border-radius: 999px !important;
}

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ================================================================
   HEADER TOGGLE BUTTON (no dark bg box)
   ================================================================ */
.page-header .toggle-sidebar,
.page-header .mobile-toggle,
.header-wrapper .toggle-sidebar,
.header-wrapper .mobile-toggle {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.page-header .toggle-sidebar::before,
.page-header .toggle-sidebar::after,
.page-header .mobile-toggle::before,
.page-header .mobile-toggle::after {
    display: none !important;
}
.page-header .toggle-sidebar svg,
.page-header .toggle-sidebar i,
.page-header .mobile-toggle svg,
.page-header .mobile-toggle i {
    color: #475569 !important;
    stroke: #475569 !important;
    background: transparent !important;
}

/* ================================================================
   LOADER
   ================================================================ */
.loader-wrapper { background: var(--bg) !important; }

/* ================================================================
   PAGINATION
   ================================================================ */
.page-link {
    border-color: var(--border) !important;
    color: var(--text) !important;
    background: var(--surface) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    margin: 0 2px !important;
}
.page-item.active .page-link {
    background: var(--pri) !important;
    border-color: var(--pri) !important;
    color: #fff !important;
}

/* ================================================================
   MISCELLANEOUS UTILITIES
   ================================================================ */
.text-primary { color: var(--pri) !important; }
.bg-primary   { background: var(--pri) !important; }
.border-primary { border-color: var(--pri) !important; }

.f-light, .text-muted { color: var(--muted) !important; }
.text-secondary { color: var(--muted) !important; }
.font-primary { color: var(--pri) !important; }

/* selection */
::selection { background: var(--pri-50); color: var(--text); }

/* ================================================================
   MOBILE
   ================================================================ */
@media (max-width: 991.98px) {
    .sidebar-wrapper { z-index: 9999 !important; }
    .widget-1 { border-radius: 12px !important; }

    /* burger / toggle — no dark bg box */
    .toggle-sidebar,
    .mobile-toggle,
    .page-wrapper .page-header .header-wrapper .toggle-sidebar,
    .page-wrapper .page-header .header-wrapper .mobile-toggle {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .toggle-sidebar::before,
    .toggle-sidebar::after,
    .mobile-toggle::before,
    .mobile-toggle::after {
        display: none !important;
    }
    .toggle-sidebar svg,
    .toggle-sidebar i,
    .mobile-toggle svg,
    .mobile-toggle i {
        color: #475569 !important;
        stroke: #475569 !important;
        background: transparent !important;
    }
}

@media (max-width: 767px) {
    .widget-content h4.dw_data { font-size: 1.15rem !important; }
    .widget-round { width: 48px !important; height: 48px !important; min-width: 48px !important; border-radius: 12px !important; }
    .widget-1-i { font-size: 18px !important; }
    .card-body { padding: 14px 16px !important; }
}

/* ── Hide small-widget bg-gradient circle icon ── */
.small-widget .bg-gradient {
    display: none !important;
}

/* ── text-ld force dark ── */
.text-ld {
    color: #1e293b !important;
}

/* ── Transaction description boxes — force dark text ── */
[class*="bg-light-"] {
    color: #1e293b !important;
}
[class*="bg-light-"] *,
.description-td p,
.description-td span,
.description-td small {
    color: #1e293b !important;
}
.description-td {
    color: #111827 !important;
}
.description-td .fw-bold {
    color: #0f172a !important;
}

/* ── Kill all animations on profile card ── */
#profile_summary_card *,
#profile_summary_card *::before,
#profile_summary_card *::after {
    animation: none !important;
    transition: none !important;
}

/* ══════════════════════════════════════════
   Global Modern Table UI
   ══════════════════════════════════════════ */

/* table-responsive wrapper */
.table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    border-radius: 0 0 12px 12px;
}

/* card header uniform */
.card .card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 14px 20px !important;
}
.card .card-header h5,
.card .card-header h4 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

/* thead */
.table thead tr th,
.table thead tr td {
    background: #f8fafc !important;
    color: #64748b !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-top: none !important;
    white-space: nowrap;
}

/* tbody */
.table tbody tr td {
    padding: 11px 14px !important;
    vertical-align: middle !important;
    font-size: 0.85rem !important;
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    white-space: nowrap;
}
.table tbody tr:last-child td {
    border-bottom: none !important;
}
.table tbody tr:hover td {
    background: #f8fafc !important;
}

/* bordered reset */
.table-bordered th,
.table-bordered td {
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.table-bordered thead th {
    border-bottom: 1px solid #e5e7eb !important;
}

/* track-id / link style cells */
.table tbody td a,
.table tbody td .track-id {
    color: #0d9488 !important;
    font-weight: 600;
}

/* status badges inside tables */
.table .badge,
.table .wt-type-badge {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
}

/* amount credit/debit */
.table .text-success { color: #16a34a !important; }
.table .text-danger  { color: #dc2626 !important; }

/* table card wrapper */
.card:has(.table) {
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    overflow: hidden;
}

/* level downline - select label dark */
.ld-select-card label,
.ld-select-card .col-form-label,
.ld-select-card .form-label {
    color: #1e293b !important;
    font-weight: 600 !important;
}
.ld-select-card .ld-title {
    color: #1e293b !important;
}
.ld-select-card .ld-title i {
    color: #059669 !important;
}

/* tree popup modal rows */
#userModal .modal-body .table td {
    color: #111827 !important;
    background: transparent !important;
    border-color: #f3f4f6 !important;
}
#userModal .modal-body {
    background: #ffffff !important;
}

/* mobile */
@media (max-width: 576px) {
    .table thead tr th,
    .table tbody tr td {
        font-size: 0.75rem !important;
        padding: 8px 10px !important;
    }
}
