/*
 * Quantum QX Member Panel
 * Presentation-only theme layer. Loaded after the legacy dashboard CSS so that
 * every member view shares the public site's navy, violet and cyan system.
 */

:root {
    /* Quantum QX public-site palette: gold + blue on deep navy */
    --qx-bg: #070b14;
    --qx-bg-deep: #05080f;
    --qx-surface: #0d1426;
    --qx-surface-2: #101a34;
    --qx-surface-3: #16223f;
    --qx-primary: #f5c518;      /* website gold (primary brand) */
    --qx-primary-2: #ffd54a;    /* gold highlight */
    --qx-gold-deep: #e0a100;    /* deep amber */
    --qx-cyan: #2e90ff;         /* website blue (secondary brand) */
    --qx-blue: #2e90ff;
    --qx-blue-soft: #8fb8ff;    /* light blue accent */
    --qx-success: #21e6a0;
    --qx-warning: #f5c518;
    --qx-danger: #ff647c;
    --qx-text: #f4f7ff;
    --qx-muted: #94a3b8;
    --qx-muted-2: #c4ccda;
    --qx-border: rgba(245, 197, 24, 0.24);
    --qx-border-cyan: rgba(46, 144, 255, 0.30);
    --qx-gradient: linear-gradient(120deg, #f5c518 0%, #8fb8ff 48%, #2e90ff 100%);
    --qx-gradient-gold: linear-gradient(120deg, #ffd54a 0%, #f5c518 52%, #e0a100 100%);
    --qx-gradient-soft: linear-gradient(135deg, rgba(245, 197, 24, 0.2), rgba(46, 144, 255, 0.08));
    --qx-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
    --qx-glow: 0 0 0 1px rgba(245, 197, 24, 0.18), 0 18px 45px rgba(120, 92, 8, 0.28);
    --qx-radius: 20px;
    --qx-radius-sm: 13px;
    --qx-header-height: 78px;
}

html[data-theme-mode="dark"] {
    --body-bg-rgb: 7, 11, 20;
    --body-bg: var(--qx-bg);
    --default-body-color: var(--qx-text);
    --default-text-color: var(--qx-text);
    --default-border: rgba(148, 163, 184, 0.14);
    --primary-rgb: 245, 197, 24;
    --primary-color: var(--qx-primary);
}

body.member-panel-shell,
body.member-auth-shell,
body.quantum-error-shell {
    min-height: 100vh;
    color: var(--qx-text);
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 9% -8%, rgba(245, 197, 24, 0.26), transparent 31rem),
        radial-gradient(circle at 94% 8%, rgba(46, 144, 255, 0.13), transparent 27rem),
        linear-gradient(160deg, var(--qx-bg-deep) 0%, var(--qx-bg) 45%, #081020 100%) !important;
    background-attachment: fixed !important;
}

body.member-panel-shell::before,
body.member-auth-shell::before,
body.quantum-error-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(100, 122, 168, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 122, 168, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

body.member-panel-shell,
body.member-panel-shell .page,
body.member-panel-shell .main-content,
body.member-panel-shell .app-content {
    position: relative;
}

.member-panel-shell h1,
.member-panel-shell h2,
.member-panel-shell h3,
.member-panel-shell h4,
.member-panel-shell h5,
.member-panel-shell h6,
.member-auth-shell h1,
.member-auth-shell h2,
.member-auth-shell h3,
.member-auth-shell h4,
.member-auth-shell h5,
.member-auth-shell h6,
.quantum-error-shell h1,
.quantum-error-shell h2,
.member-panel-shell .card-title,
.member-panel-shell .btn,
.member-auth-shell .btn {
    color: var(--qx-text);
    font-family: "Orbitron", "Poppins", sans-serif;
    letter-spacing: 0.015em;
}

.member-panel-shell a,
.member-auth-shell a,
.quantum-error-shell a {
    color: var(--qx-cyan);
}

.member-panel-shell a:hover,
.member-auth-shell a:hover,
.quantum-error-shell a:hover {
    color: #8fb8ff;
}

.member-panel-shell ::selection,
.member-auth-shell ::selection {
    color: #fff;
    background: rgba(245, 197, 24, 0.75);
}

/* Shared shell */
.member-panel-shell .app-header {
    height: var(--qx-header-height) !important;
    border-bottom: 1px solid rgba(245, 197, 24, 0.2) !important;
    background: rgba(7, 11, 20, 0.84) !important;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: blur(18px) saturate(130%);
}

.member-panel-shell .main-header-container {
    min-height: var(--qx-header-height) !important;
    height: var(--qx-header-height) !important;
    padding: 0 1.25rem !important;
}

.member-panel-shell .horizontal-logo .header-logo img {
    width: auto !important;
    max-width: 164px;
    height: 48px !important;
    margin: 0 !important;
    object-fit: contain;
}

.member-panel-shell .header-content-left,
.member-panel-shell .header-content-right {
    min-width: 0;
    gap: 0.45rem;
}

.member-panel-shell .header-link,
.member-panel-shell .member-profile-toggle {
    min-width: 44px;
    min-height: 44px;
    color: var(--qx-text) !important;
    border: 1px solid rgba(245, 197, 24, 0.23) !important;
    border-radius: 13px !important;
    background: linear-gradient(145deg, rgba(16, 26, 52, 0.92), rgba(13, 20, 38, 0.9)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.member-panel-shell .member-profile-toggle {
    min-width: auto;
    max-width: 220px;
    padding: 0.65rem 0.9rem !important;
    overflow: hidden;
}

.member-panel-shell .member-profile-toggle span {
    overflow: hidden;
    color: var(--qx-text);
    font-size: 0.82rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-panel-shell .sidemenu-toggle:hover,
.member-panel-shell .member-profile-toggle:hover,
.member-panel-shell .header-link:focus-visible {
    border-color: rgba(46, 144, 255, 0.48) !important;
    box-shadow: 0 0 0 3px rgba(46, 144, 255, 0.09), 0 0 24px rgba(245, 197, 24, 0.18) !important;
}

.member-panel-shell .animated-arrow span,
.member-panel-shell .animated-arrow span::before,
.member-panel-shell .animated-arrow span::after {
    background: var(--qx-text) !important;
}

.member-panel-shell .app-sidebar {
    top: var(--qx-header-height) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(245, 197, 24, 0.19), transparent 18rem),
        linear-gradient(180deg, rgba(13, 20, 38, 0.985), rgba(7, 11, 20, 0.995)) !important;
    border-inline-end: 1px solid rgba(245, 197, 24, 0.2) !important;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(18px);
}

.member-panel-shell .app-content {
    margin-block-start: var(--qx-header-height) !important;
}

.member-panel-shell .main-content {
    min-height: calc(100vh - var(--qx-header-height));
    padding-block-end: 2rem;
}

.member-panel-shell .main-content > .container-fluid {
    max-width: 1600px;
    padding-inline: clamp(0.85rem, 2vw, 1.75rem) !important;
}

.member-panel-shell .main-sidebar-header {
    min-height: 132px;
    padding: 1.05rem 1rem 0.9rem !important;
    border-bottom: 1px solid rgba(245, 197, 24, 0.16) !important;
    background: rgba(6, 10, 19, 0.28);
}

.member-panel-shell .main-sidebar-header .header-logo {
    display: flex !important;
    align-items: center;
    min-height: 44px;
    margin: 0 !important;
}

.member-panel-shell .main-sidebar-header .header-logo img {
    width: auto !important;
    max-width: 142px;
    height: 42px !important;
    margin: 0 !important;
    object-fit: contain;
}

.member-panel-shell .member-sidebar-brand {
    margin: 0.75rem 0 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(245, 197, 24, 0.24);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.13), rgba(46, 144, 255, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.member-panel-shell .member-sidebar-brand__eyebrow,
.member-panel-shell .member-sidebar-brand__meta {
    color: var(--qx-muted) !important;
    font-size: 0.62rem;
    letter-spacing: 0.11em;
}

.member-panel-shell .member-sidebar-brand strong {
    margin: 0.25rem 0;
    color: var(--qx-text) !important;
    font-family: "Orbitron", sans-serif;
    font-size: 0.82rem;
}

.member-panel-shell .main-sidebar {
    padding-block: 0.65rem 1rem;
}

.member-panel-shell .main-menu {
    padding-inline: 0.45rem !important;
}

.member-panel-shell .side-menu__item {
    min-height: 46px;
    margin: 0.18rem 0.28rem !important;
    padding: 0.68rem 0.78rem !important;
    color: var(--qx-muted-2) !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    font-size: 0.82rem;
    line-height: 1.3;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease !important;
}

.member-panel-shell .side-menu__item .side-menu__label {
    color: inherit !important;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
}

.member-panel-shell .side-menu__item svg,
.member-panel-shell .side-menu__item i:not(.side-menu__angle) {
    flex: 0 0 auto;
    width: 19px;
    color: var(--qx-cyan) !important;
    fill: currentColor;
}

.member-panel-shell .side-menu__item:hover,
.member-panel-shell .slide.has-sub.open > .side-menu__item,
.member-panel-shell .slide .side-menu__item.active,
.member-panel-shell .slide .side-menu__item[aria-expanded="true"] {
    color: #fff !important;
    border-color: rgba(245, 197, 24, 0.3) !important;
    background: linear-gradient(90deg, rgba(245, 197, 24, 0.2), rgba(46, 144, 255, 0.06)) !important;
    transform: translateX(3px) !important;
}

.member-panel-shell .slide-menu.child1 {
    margin: 0.2rem 0.55rem 0.45rem !important;
    padding: 0.25rem !important;
    border: 1px solid rgba(245, 197, 24, 0.13);
    border-radius: 12px;
    background: rgba(5, 8, 17, 0.48) !important;
}

.member-panel-shell .slide-menu.child1 .side-menu__item {
    min-height: 38px;
    padding: 0.52rem 0.7rem 0.52rem 1.65rem !important;
    font-size: 0.76rem;
}

.member-panel-shell .slide-menu.child1 .side-menu__item::before {
    border-color: var(--qx-primary-2) !important;
}

.member-panel-shell .simplebar-scrollbar::before {
    background: linear-gradient(var(--qx-primary), var(--qx-cyan)) !important;
}

.member-panel-shell .switcher-offacanvas {
    display: none !important;
}

/* Page surfaces */
.member-panel-shell .card,
.member-panel-shell .custom-card,
.member-panel-shell .member-profile-panel,
.member-panel-shell .member-wallet-panel,
.member-panel-shell .member-capping-card,
.member-panel-shell .member-hero-panel,
.member-panel-shell .member-notice-ribbon,
.member-panel-shell .dapp-deposit-card {
    color: var(--qx-text) !important;
    border: 1px solid var(--qx-border) !important;
    border-radius: var(--qx-radius) !important;
    background:
        linear-gradient(145deg, rgba(16, 26, 52, 0.95), rgba(9, 15, 29, 0.97)) !important;
    box-shadow: var(--qx-shadow) !important;
    backdrop-filter: blur(14px);
}

.member-panel-shell .card,
.member-panel-shell .custom-card,
.member-panel-shell .member-quick-card,
.member-panel-shell .member-wallet-panel,
.member-panel-shell .member-profile-panel {
    overflow: hidden;
}

.member-panel-shell .custom-card::before,
.member-panel-shell .member-wallet-panel::before,
.member-panel-shell .member-profile-panel::before {
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.08), transparent 38%, rgba(46, 144, 255, 0.04)) !important;
}

.member-panel-shell .custom-card:hover,
.member-panel-shell .member-quick-card:hover,
.member-panel-shell .member-wallet-panel:hover,
.member-panel-shell .member-profile-panel:hover {
    border-color: rgba(46, 144, 255, 0.38) !important;
    box-shadow: var(--qx-glow) !important;
    transform: translateY(-3px) !important;
}

.member-panel-shell .card-header {
    min-height: 58px;
    padding: 1rem 1.15rem !important;
    color: var(--qx-text) !important;
    border-bottom: 1px solid rgba(245, 197, 24, 0.18) !important;
    background: rgba(7, 11, 20, 0.34) !important;
}

.member-panel-shell .card-body {
    padding: clamp(1rem, 2vw, 1.35rem) !important;
}

.member-panel-shell .card-title,
.member-panel-shell .page-header-title,
.member-panel-shell .dapp-card-title,
.member-panel-shell .member-wallet-form__title,
.member-panel-shell .member-profile-form__title {
    color: var(--qx-text) !important;
    font-weight: 700 !important;
}

.member-panel-shell .text-muted,
.member-panel-shell .member-soft-text,
.member-panel-shell .dapp-card-subtitle,
.member-panel-shell .dapp-main-desc,
.member-panel-shell small {
    color: var(--qx-muted) !important;
}

.member-panel-shell .text-primary,
.member-panel-shell .link-primary {
    color: var(--qx-cyan) !important;
}

.member-panel-shell .border,
.member-panel-shell .border-top,
.member-panel-shell .border-bottom,
.member-panel-shell .border-start,
.member-panel-shell .border-end {
    border-color: rgba(148, 163, 184, 0.16) !important;
}

/* Hero and dashboard */
.member-panel-shell .member-hero-panel {
    position: relative;
    isolation: isolate;
    padding: clamp(1.25rem, 3vw, 2rem) !important;
    background:
        radial-gradient(circle at 88% 16%, rgba(46, 144, 255, 0.16), transparent 19rem),
        linear-gradient(135deg, rgba(245, 197, 24, 0.22), rgba(16, 26, 52, 0.96) 50%, rgba(7, 11, 20, 0.98)) !important;
}

.member-panel-shell .member-hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 0 68%, rgba(46, 144, 255, 0.06));
    pointer-events: none;
}

.member-panel-shell .member-hero-title,
.member-panel-shell .dapp-main-title {
    margin: 0.8rem 0 0.65rem;
    color: var(--qx-text) !important;
    font-size: clamp(1.55rem, 3vw, 2.55rem);
    line-height: 1.16;
}

.member-panel-shell .member-pill,
.member-panel-shell .member-theme-pill,
.member-panel-shell .member-wallet-badge,
.member-panel-shell .member-capping-plan-badge {
    color: #dcebff !important;
    border: 1px solid rgba(46, 144, 255, 0.25) !important;
    background: rgba(46, 144, 255, 0.08) !important;
}

.member-panel-shell .member-hero-metrics {
    gap: 0.7rem;
}

.member-panel-shell .member-hero-metric,
.member-panel-shell .member-mini-stat,
.member-panel-shell .member-hero-sidecard,
.member-panel-shell .member-wallet-kpi,
.member-panel-shell .member-capping-stat {
    min-width: 0;
    border: 1px solid rgba(245, 197, 24, 0.2) !important;
    border-radius: var(--qx-radius-sm) !important;
    background: rgba(7, 11, 20, 0.48) !important;
}

.member-panel-shell .member-hero-metric strong,
.member-panel-shell .member-mini-stat .value,
.member-panel-shell .member-hero-sidecard__value,
.member-panel-shell .member-wallet-kpi strong,
.member-panel-shell .member-capping-stat__value {
    color: var(--qx-text) !important;
    overflow-wrap: anywhere;
}

.member-panel-shell .member-hero-sidecard__value,
.member-panel-shell .member-wallet-balance {
    background: var(--qx-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.member-panel-shell .member-quick-card {
    min-height: 118px;
    color: var(--qx-text) !important;
    border: 1px solid rgba(245, 197, 24, 0.22) !important;
    border-radius: 17px !important;
    background: linear-gradient(145deg, rgba(16, 26, 52, 0.85), rgba(8, 13, 25, 0.94)) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22) !important;
}

.member-panel-shell .member-quick-card__icon,
.member-panel-shell .member-capping-stat__icon,
.member-panel-shell .avatar.bg-info-transparent,
.member-panel-shell .avatar.bg-primary-transparent {
    color: var(--qx-cyan) !important;
    border: 1px solid rgba(46, 144, 255, 0.22) !important;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.18), rgba(46, 144, 255, 0.1)) !important;
}

.member-panel-shell .member-quick-card__arrow {
    color: var(--qx-cyan) !important;
}

.member-panel-shell .member-notice-ribbon {
    border-color: rgba(46, 144, 255, 0.22) !important;
    background: linear-gradient(90deg, rgba(245, 197, 24, 0.12), rgba(46, 144, 255, 0.07)) !important;
}

.member-panel-shell .member-notice-chip {
    color: var(--qx-muted-2) !important;
}

.member-panel-shell .member-capping-meter__ring,
.member-panel-shell .member-capping-progress-fill,
.member-panel-shell .progress-bar {
    background: var(--qx-gradient) !important;
}

.member-panel-shell .member-capping-progress-track,
.member-panel-shell .progress {
    background: rgba(148, 163, 184, 0.12) !important;
}

.member-panel-shell .member-electric-card {
    min-height: 188px;
    border-color: rgba(245, 197, 24, 0.26) !important;
    background: linear-gradient(145deg, rgba(16, 26, 52, 0.96), rgba(7, 11, 20, 0.98)) !important;
}

.member-panel-shell .member-electric-card__glow,
.member-panel-shell .member-electric-card__backdrop {
    opacity: 0.28 !important;
    filter: hue-rotate(22deg) saturate(1.15);
}

.member-panel-shell .member-electric-card__tag,
.member-panel-shell .member-electric-card__value,
.member-panel-shell .stat-box-value-cyan,
.member-panel-shell .stat-box-value-gold {
    color: var(--qx-cyan) !important;
}

/* Buttons and controls */
.member-panel-shell .btn,
.member-auth-shell .btn,
.quantum-error-shell .btn,
.member-panel-shell button,
.member-auth-shell button {
    min-height: 42px;
    border-radius: 11px;
}

.member-panel-shell .btn-primary,
.member-panel-shell .btn-warning,
.member-panel-shell .btn-info,
.member-panel-shell .member-wallet-submit,
.member-panel-shell .member-auth-submit,
.member-panel-shell .dapp-deposit-card .btn-warning,
.member-auth-shell .member-auth-submit,
.quantum-error-shell .btn-primary,
.quantum-error-shell .btn-primary-ghost {
    color: #0a1020 !important;
    font-weight: 700 !important;
    border: 1px solid rgba(245, 197, 24, 0.55) !important;
    background: var(--qx-gradient-gold) !important;
    box-shadow: 0 12px 28px rgba(224, 161, 0, 0.30) !important;
}

.member-panel-shell .btn-primary:hover,
.member-panel-shell .btn-warning:hover,
.member-panel-shell .btn-info:hover,
.member-panel-shell .member-wallet-submit:hover,
.member-auth-shell .member-auth-submit:hover,
.quantum-error-shell .btn:hover {
    color: #0a1020 !important;
    border-color: rgba(255, 213, 74, 0.85) !important;
    box-shadow: 0 0 0 3px rgba(46, 144, 255, 0.14), 0 16px 34px rgba(224, 161, 0, 0.42) !important;
    transform: translateY(-2px);
}

.member-panel-shell .btn-outline-primary,
.member-panel-shell .btn-primary-light,
.member-panel-shell .btn-light,
.member-auth-shell .member-auth-secondary {
    color: var(--qx-cyan) !important;
    border-color: rgba(46, 144, 255, 0.34) !important;
    background: rgba(46, 144, 255, 0.07) !important;
}

.member-panel-shell .btn-outline-danger,
.member-panel-shell .btn-danger {
    color: #fff !important;
    border-color: rgba(255, 100, 124, 0.42) !important;
    background: rgba(255, 100, 124, 0.13) !important;
}

.member-panel-shell .btn:disabled,
.member-auth-shell .btn:disabled,
.member-panel-shell button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none !important;
    box-shadow: none !important;
}

.member-panel-shell .form-label,
.member-panel-shell label,
.member-auth-shell .member-auth-label {
    color: #ffffff !important;
    font-weight: 500;
}

.member-panel-shell .form-control,
.member-panel-shell .form-select,
.member-panel-shell .member-wallet-input,
.member-panel-shell .member-wallet-select,
.member-auth-shell .member-auth-input,
.member-auth-shell .member-auth-select,
.member-panel-shell .choices__inner,
.member-panel-shell .select2-container--default .select2-selection--single {
    min-height: 46px;
    color: var(--qx-text) !important;
    caret-color: var(--qx-cyan);
    border: 1px solid rgba(245, 197, 24, 0.28) !important;
    border-radius: 11px !important;
    background-color: rgba(5, 8, 17, 0.72) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

.member-panel-shell textarea.form-control {
    min-height: 132px;
    resize: vertical;
}

.member-panel-shell .form-control::placeholder,
.member-auth-shell .member-auth-input::placeholder {
    color: #6f7d94 !important;
    opacity: 1;
}

.member-panel-shell .form-control:focus,
.member-panel-shell .form-select:focus,
.member-panel-shell .member-wallet-input:focus,
.member-panel-shell .member-wallet-select:focus,
.member-auth-shell .member-auth-input:focus,
.member-auth-shell .member-auth-select:focus,
.member-panel-shell .choices.is-focused .choices__inner {
    color: var(--qx-text) !important;
    border-color: var(--qx-cyan) !important;
    background-color: rgba(7, 11, 20, 0.92) !important;
    box-shadow: 0 0 0 3px rgba(46, 144, 255, 0.1), 0 0 22px rgba(245, 197, 24, 0.14) !important;
}

.member-panel-shell select option,
.member-auth-shell select option {
    color: var(--qx-text);
    background: var(--qx-surface);
}

.member-panel-shell .input-group-text,
.member-auth-shell .member-auth-icon,
.member-panel-shell .member-wallet-label {
    color: var(--qx-cyan) !important;
    border-color: rgba(245, 197, 24, 0.28) !important;
    /*background: rgba(245, 197, 24, 0.1) !important;*/
}

.member-panel-shell .form-check-input {
    border-color: rgba(148, 163, 184, 0.45);
    background-color: rgba(5, 8, 17, 0.8);
}

.member-panel-shell .form-check-input:checked {
    border-color: var(--qx-primary);
    background-color: var(--qx-primary);
}

.member-panel-shell :focus-visible,
.member-auth-shell :focus-visible,
.quantum-error-shell :focus-visible {
    outline: 2px solid var(--qx-cyan) !important;
    outline-offset: 3px;
}

/* Tables and lists */
.member-panel-shell .table-responsive,
.member-panel-shell .member-auth-table-wrap,
.member-panel-shell .dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.member-panel-shell .table {
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--qx-muted-2) !important;
    --bs-table-border-color: rgba(148, 163, 184, 0.13) !important;
    width: 100%;
    margin-bottom: 0;
    color: var(--qx-muted-2) !important;
    vertical-align: middle;
}

.member-panel-shell .table thead th,
.member-panel-shell .table > thead > tr > th {
    padding: 0.9rem 0.85rem !important;
    color: var(--qx-text) !important;
    border-color: rgba(245, 197, 24, 0.2) !important;
    background: rgba(245, 197, 24, 0.1) !important;
    font-family: "Orbitron", "Poppins", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    white-space: nowrap;
}

.member-panel-shell .table tbody td,
.member-panel-shell .table > tbody > tr > td {
    padding: 0.88rem 0.85rem !important;
    color: var(--qx-muted-2) !important;
    border-color: rgba(148, 163, 184, 0.11) !important;
    background: transparent !important;
}

.member-panel-shell .table tbody tr:hover td {
    color: var(--qx-text) !important;
    background: rgba(46, 144, 255, 0.045) !important;
}

.member-panel-shell .dataTables_wrapper .dataTables_length,
.member-panel-shell .dataTables_wrapper .dataTables_filter,
.member-panel-shell .dataTables_wrapper .dataTables_info,
.member-panel-shell .dataTables_wrapper .dataTables_paginate {
    margin-block: 0.75rem;
    color: var(--qx-muted) !important;
}

.member-panel-shell .dataTables_wrapper .form-control,
.member-panel-shell .dataTables_wrapper .form-select {
    min-height: 38px;
}

.member-panel-shell .pagination {
    gap: 0.3rem;
    flex-wrap: wrap;
}

.member-panel-shell .page-link {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--qx-muted-2) !important;
    border: 1px solid rgba(245, 197, 24, 0.22) !important;
    border-radius: 9px !important;
    background: rgba(13, 20, 38, 0.9) !important;
}

.member-panel-shell .page-item.active .page-link,
.member-panel-shell .page-link:hover {
    color: #fff !important;
    background: var(--qx-gradient) !important;
}

.member-panel-shell .badge {
    padding: 0.42rem 0.64rem;
    border-radius: 999px;
    line-height: 1;
}

.member-panel-shell .bg-success,
.member-panel-shell .bg-success-transparent {
    color: var(--qx-success) !important;
    border-color: rgba(33, 230, 160, 0.3) !important;
    background: rgba(33, 230, 160, 0.1) !important;
}

.member-panel-shell .bg-warning,
.member-panel-shell .bg-warning-transparent {
    color: var(--qx-warning) !important;
    border-color: rgba(245, 196, 81, 0.3) !important;
    background: rgba(245, 196, 81, 0.1) !important;
}

.member-panel-shell .bg-danger,
.member-panel-shell .bg-danger-transparent {
    color: #ff91a2 !important;
    border-color: rgba(255, 100, 124, 0.3) !important;
    background: rgba(255, 100, 124, 0.1) !important;
}

/* Feedback, popovers and overlays */
.member-panel-shell .alert,
.member-auth-shell .alert,
.member-panel-shell .member-profile-note,
.member-panel-shell .member-transfer-status {
    color: var(--qx-muted-2) !important;
    border: 1px solid rgba(245, 197, 24, 0.22) !important;
    border-radius: 12px !important;
    background: rgba(13, 20, 38, 0.92) !important;
}

.member-panel-shell .alert-success {
    color: #a9f9d9 !important;
    border-color: rgba(33, 230, 160, 0.3) !important;
    background: rgba(33, 230, 160, 0.09) !important;
}

.member-panel-shell .alert-danger,
.member-panel-shell .member-transfer-status--danger {
    color: #ffc3cc !important;
    border-color: rgba(255, 100, 124, 0.32) !important;
    background: rgba(255, 100, 124, 0.09) !important;
}

.member-panel-shell .toast {
    right: 1rem;
    bottom: 1rem;
    left: auto;
    max-width: min(390px, calc(100vw - 2rem));
    color: var(--qx-text) !important;
    border: 1px solid rgba(46, 144, 255, 0.3);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 26, 52, 0.98), rgba(7, 11, 20, 0.98)) !important;
    box-shadow: var(--qx-shadow);
    transform: none;
}

.member-panel-shell .dropdown-menu,
.member-panel-shell .modal-content,
.member-panel-shell .offcanvas:not(.switcher-offacanvas) {
    color: var(--qx-text) !important;
    border: 1px solid rgba(245, 197, 24, 0.25) !important;
    border-radius: 14px !important;
    background: rgba(13, 20, 38, 0.98) !important;
    box-shadow: var(--qx-shadow) !important;
}

.member-panel-shell .dropdown-item {
    min-height: 42px;
    display: flex;
    align-items: center;
    color: var(--qx-muted-2) !important;
    border-radius: 9px;
}

.member-panel-shell .dropdown-item:hover,
.member-panel-shell .dropdown-item:focus {
    color: #fff !important;
    background: rgba(245, 197, 24, 0.18) !important;
}

.member-panel-shell .modal-header,
.member-panel-shell .modal-footer {
    border-color: rgba(148, 163, 184, 0.14) !important;
}

/* Wallet and profile templates */
.member-panel-shell .member-wallet-hero,
.member-panel-shell .member-profile-layout,
.member-panel-shell .member-wallet-insights,
.member-panel-shell .member-wallet-kpis {
    gap: 1rem;
}

.member-panel-shell .member-wallet-panel--primary,
.member-panel-shell .member-profile-panel--summary {
    background:
        radial-gradient(circle at 88% 12%, rgba(46, 144, 255, 0.14), transparent 16rem),
        linear-gradient(145deg, rgba(245, 197, 24, 0.18), rgba(10, 16, 31, 0.98)) !important;
}

.member-panel-shell .member-wallet-strip,
.member-panel-shell .member-profile-meta {
    border-color: rgba(245, 197, 24, 0.2) !important;
    background: rgba(5, 8, 17, 0.38) !important;
}

.member-panel-shell .member-wallet-strip__item,
.member-panel-shell .member-profile-meta__item {
    min-width: 0;
}

.member-panel-shell .member-profile-avatar {
    border: 3px solid rgba(46, 144, 255, 0.5) !important;
    box-shadow: 0 0 28px rgba(245, 197, 24, 0.28) !important;
}

.member-panel-shell .wallet-address-box,
.member-panel-shell .member-view-box,
.member-panel-shell .stat-box-dark {
    color: var(--qx-muted-2) !important;
    border: 1px solid rgba(245, 197, 24, 0.2) !important;
    border-radius: 12px !important;
    background: rgba(5, 8, 17, 0.52) !important;
}

/* DApp deposit and legacy inline-theme corrections */
body.member-panel-shell .main-content .dapp-deposit-card,
body.member-panel-shell .main-content .dapp-balance-card,
body.member-panel-shell .main-content .merge-history-card {
    border-color: rgba(245, 197, 24, 0.3) !important;
    background: linear-gradient(145deg, rgba(16, 26, 52, 0.97), rgba(7, 11, 20, 0.98)) !important;
    box-shadow: var(--qx-shadow) !important;
}

body.member-panel-shell .main-content .dapp-stat-item,
body.member-panel-shell .main-content .dapp-info-box,
body.member-panel-shell .main-content .deposit-instruction,
body.member-panel-shell .main-content .dapp-wallet-status {
    border-color: rgba(245, 197, 24, 0.24) !important;
    background: rgba(7, 11, 20, 0.64) !important;
}

body.member-panel-shell .main-content .dapp-stat-value,
body.member-panel-shell .main-content .dapp-amount-label,
body.member-panel-shell .main-content .dapp-currency-label,
body.member-panel-shell .main-content .dapp-info-icon,
body.member-panel-shell .main-content .font-monospace.text-decoration-underline {
    color: var(--qx-cyan) !important;
}

body.member-panel-shell .main-content .dapp-amount-input {
    color: var(--qx-text) !important;
    border-color: rgba(245, 197, 24, 0.34) !important;
    background: rgba(5, 8, 17, 0.76) !important;
}

body.member-panel-shell .main-content .dapp-amount-input:focus {
    border-color: var(--qx-cyan) !important;
    box-shadow: 0 0 0 3px rgba(46, 144, 255, 0.1) !important;
}

body.member-panel-shell .main-content .quick-amount-btn {
    color: var(--qx-muted-2) !important;
    border-color: rgba(245, 197, 24, 0.24) !important;
    background: rgba(16, 26, 52, 0.88) !important;
}

body.member-panel-shell .main-content .quick-amount-btn:hover,
body.member-panel-shell .main-content .quick-amount-btn.active {
    color: #fff !important;
    border-color: var(--qx-cyan) !important;
    background: rgba(245, 197, 24, 0.26) !important;
}

body.member-panel-shell .main-content .dapp-deposit-btn {
    color: #fff !important;
    border-color: transparent !important;
    background: var(--qx-gradient) !important;
    box-shadow: 0 12px 28px rgba(69, 38, 171, 0.32) !important;
}

/* Genealogy */
.member-panel-shell .genealogy-body,
.member-panel-shell .genealogy-scroll {
    min-height: 430px;
    padding: 1rem !important;
    border: 1px solid rgba(245, 197, 24, 0.2);
    border-radius: 14px;
    background:
        linear-gradient(rgba(245, 197, 24, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 197, 24, 0.035) 1px, transparent 1px),
        rgba(5, 8, 17, 0.56) !important;
    background-size: 28px 28px !important;
    scrollbar-color: var(--qx-primary) rgba(5, 8, 17, 0.7);
}

.member-panel-shell .genealogy-tree li::before,
.member-panel-shell .genealogy-tree li::after,
.member-panel-shell .genealogy-tree ul ul::before {
    border-color: rgba(46, 144, 255, 0.34) !important;
}

.member-panel-shell .genealogy-tree a,
.member-panel-shell .genealogy-tree .team-member-details {
    color: var(--qx-text) !important;
    border-color: rgba(245, 197, 24, 0.3) !important;
    background: linear-gradient(145deg, rgba(16, 26, 52, 0.97), rgba(7, 11, 20, 0.98)) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26) !important;
}

.member-panel-shell .team-avatar,
.member-panel-shell .member-image {
    border-color: rgba(46, 144, 255, 0.5) !important;
    box-shadow: 0 0 18px rgba(245, 197, 24, 0.24) !important;
}

/* Authentication and account-created screens */
.member-auth-shell {
    position: relative;
    overflow-x: hidden;
}

.member-auth-shell .member-auth-card {
    position: relative;
    z-index: 1;
    width: min(1140px, calc(100% - 2rem));
    margin: clamp(1rem, 4vh, 3rem) auto;
    color: var(--qx-text) !important;
    border: 1px solid rgba(245, 197, 24, 0.28) !important;
    border-radius: 24px !important;
    background: linear-gradient(145deg, rgba(16, 26, 52, 0.96), rgba(7, 11, 20, 0.98)) !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48) !important;
}

.member-auth-shell .member-auth-side {
    background:
        radial-gradient(circle at 20% 15%, rgba(46, 144, 255, 0.15), transparent 17rem),
        linear-gradient(145deg, rgba(245, 197, 24, 0.27), rgba(8, 13, 25, 0.96)) !important;
}

.member-auth-shell .member-auth-head img {
    width: auto !important;
    max-width: 164px;
    height: 58px;
    object-fit: contain;
}

.member-auth-shell .member-auth-badge,
.member-auth-shell .member-auth-warning {
    color: #dcebff !important;
    border-color: rgba(46, 144, 255, 0.25) !important;
    background: rgba(46, 144, 255, 0.08) !important;
}

.member-auth-shell .member-auth-title {
    color: var(--qx-text) !important;
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
}

.member-auth-shell .member-auth-copy,
.member-auth-shell .member-auth-helper,
.member-auth-shell .member-auth-footer-note,
.member-auth-shell .member-auth-shell-note {
    color: var(--qx-muted) !important;
}

.member-auth-shell .member-auth-side-card,
.member-auth-shell .member-auth-info__card,
.member-auth-shell .member-auth-created-panel-top,
.member-auth-shell .member-auth-created-panel-footer {
    border-color: rgba(245, 197, 24, 0.22) !important;
    background: rgba(5, 8, 17, 0.44) !important;
}

.member-auth-shell .member-auth-side-card--highlight,
.member-auth-shell .member-auth-created-panel-top__icon {
    border-color: rgba(46, 144, 255, 0.26) !important;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.2), rgba(46, 144, 255, 0.08)) !important;
}

.member-auth-shell .member-auth-link {
    color: var(--qx-cyan) !important;
}

/* 404 */
.quantum-error-shell .error-page {
    position: relative !important;
    z-index: 1;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.quantum-error-shell .error-text {
    margin: 0 !important;
    color: transparent !important;
    background: var(--qx-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(6rem, 19vw, 12rem);
    font-weight: 800;
    line-height: 0.95;
    text-shadow: 0 0 44px rgba(245, 197, 24, 0.22);
}

/* Footer and mobile navigation */
.member-panel-shell .footer {
    color: var(--qx-muted) !important;
    border-top: 1px solid rgba(245, 197, 24, 0.16) !important;
    background: rgba(7, 11, 20, 0.8) !important;
}

.member-panel-shell .mobile-bottom-menu {
    padding: 0.5rem max(0.45rem, env(safe-area-inset-right)) calc(0.5rem + env(safe-area-inset-bottom)) max(0.45rem, env(safe-area-inset-left));
    border-top: 1px solid rgba(245, 197, 24, 0.24) !important;
    background: rgba(7, 11, 20, 0.94) !important;
    backdrop-filter: blur(18px);
}

.member-panel-shell .mobile-bottom-menu .menu-item {
    min-width: 0;
    min-height: 48px;
    color: var(--qx-muted-2) !important;
    border-radius: 10px;
}

.member-panel-shell .mobile-bottom-menu .menu-item:active,
.member-panel-shell .mobile-bottom-menu .menu-item:hover {
    color: var(--qx-cyan) !important;
    background: rgba(245, 197, 24, 0.12);
}

/* Responsive safeguards */
@media (max-width: 1199.98px) {
    .member-panel-shell .member-hero-metrics,
    .member-panel-shell .member-wallet-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    :root {
        --qx-header-height: 70px;
    }

    .member-panel-shell .main-header-container {
        padding-inline: 0.8rem !important;
    }

    .member-panel-shell .app-sidebar {
        top: 0 !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        z-index: 1046 !important;
        box-shadow: 24px 0 64px rgba(0, 0, 0, 0.5) !important;
    }

    .member-panel-shell .main-sidebar-header {
        display: block !important;
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        min-height: 170px;
    }

    .member-panel-shell .app-sidebar .main-sidebar-header .header-logo {
        display: flex !important;
    }

    .member-panel-shell .app-sidebar .main-sidebar-header .desktop-dark {
        display: block !important;
    }

    .member-panel-shell .app-sidebar .main-sidebar-header .desktop-logo,
    .member-panel-shell .app-sidebar .main-sidebar-header .toggle-dark,
    .member-panel-shell .app-sidebar .main-sidebar-header .toggle-logo {
        display: none !important;
    }

    .member-panel-shell .main-sidebar {
        height: calc(100dvh - 170px) !important;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .member-panel-shell .main-content > .container-fluid {
        padding-inline: 0.85rem !important;
    }

    .member-panel-shell .member-hero-panel,
    .member-panel-shell .card-body {
        padding: 1rem !important;
    }

    .member-auth-shell .member-auth-card {
        width: min(720px, calc(100% - 1.25rem));
    }
}

@media (max-width: 767.98px) {
    body.member-panel-shell {
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
    }

    .member-panel-shell .horizontal-logo .header-logo img {
        max-width: 124px;
        height: 40px !important;
    }

    .member-panel-shell .member-profile-toggle {
        max-width: 132px;
        min-height: 40px;
        padding: 0.55rem 0.7rem !important;
    }

    .member-panel-shell .member-profile-toggle span {
        margin-inline: 0 !important;
        font-size: 0.74rem;
    }

    .member-panel-shell .member-hero-metrics,
    .member-panel-shell .member-wallet-kpis,
    .member-panel-shell .member-capping-stats,
    .member-panel-shell .member-wallet-strip,
    .member-panel-shell .member-profile-meta {
        grid-template-columns: 1fr !important;
    }

    .member-panel-shell .member-hero-title,
    .member-panel-shell .dapp-main-title {
        font-size: 1.55rem;
    }

    .member-panel-shell .member-quick-card {
        min-height: 96px;
    }

    .member-panel-shell .table {
        min-width: 680px;
    }

    .member-panel-shell .dataTables_wrapper .dataTables_length,
    .member-panel-shell .dataTables_wrapper .dataTables_filter,
    .member-panel-shell .dataTables_wrapper .dataTables_info,
    .member-panel-shell .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        width: 100%;
        text-align: left !important;
    }

    .member-panel-shell .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin: 0.4rem 0 0 !important;
    }

    .member-panel-shell .member-wallet-actions,
    .member-panel-shell .member-profile-actions,
    .member-panel-shell .member-auth-actions {
        flex-direction: column;
    }

    .member-panel-shell .member-wallet-actions .btn,
    .member-panel-shell .member-profile-actions .btn,
    .member-auth-shell .member-auth-actions .btn,
    .member-auth-shell .member-auth-submit,
    .member-auth-shell .member-auth-actions .member-auth-secondary {
        width: 100%;
    }

    .member-auth-shell .member-auth-side {
        min-height: auto !important;
        padding: 1.2rem !important;
    }

    .member-auth-shell .member-auth-form-wrap {
        padding: 1.2rem !important;
    }
}

@media (max-width: 575.98px) {
    .member-panel-shell .main-header-container {
        padding-inline: 0.55rem !important;
    }

    .member-panel-shell .header-content-left,
    .member-panel-shell .header-content-right {
        gap: 0.25rem;
    }

    .member-panel-shell .horizontal-logo {
        display: none !important;
    }

    .member-panel-shell .member-profile-toggle {
        max-width: 116px;
    }

    .member-panel-shell .main-content > .container-fluid {
        padding-inline: 0.65rem !important;
    }

    .member-panel-shell .member-hero-panel,
    .member-panel-shell .card,
    .member-panel-shell .custom-card,
    .member-panel-shell .member-wallet-panel,
    .member-panel-shell .member-profile-panel,
    .member-auth-shell .member-auth-card {
        border-radius: 15px !important;
    }

    .member-panel-shell .member-hero-metric,
    .member-panel-shell .member-mini-stat,
    .member-panel-shell .member-wallet-kpi {
        padding: 0.78rem !important;
    }

    .member-panel-shell .btn,
    .member-auth-shell .btn {
        min-height: 44px;
    }

    .member-panel-shell .toast {
        right: 0.65rem;
        bottom: calc(74px + env(safe-area-inset-bottom));
        max-width: calc(100vw - 1.3rem);
    }

    .member-panel-shell .genealogy-body,
    .member-panel-shell .genealogy-scroll {
        min-height: 360px;
        padding: 0.65rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .member-panel-shell *,
    .member-auth-shell *,
    .quantum-error-shell * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   MEMBER PANEL INCOME PAGES (INFINITY AI / QUANTUM BRAND REDESIGN)
   Scoped classes for cards, tables, headers, badges, and DataTables
   ========================================================================== */

.income-page-shell {
    position: relative;
    padding-bottom: 2rem;
}

/* Page Header */
.income-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(16, 26, 52, 0.88), rgba(9, 14, 28, 0.94));
    border: 1px solid rgba(46, 144, 255, 0.22);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.income-page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f0ff 0%, #2e90ff 35%, #a855f7 70%, #ffd54a 100%);
    pointer-events: none;
}

.income-page-header__left {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.income-page-header__icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(168, 85, 247, 0.16));
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #00f0ff;
    font-size: 1.6rem;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.22);
}

.income-page-header__meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.income-page-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.income-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 8px #00f0ff;
    animation: qxPulse 2s infinite ease-in-out;
}

@keyframes qxPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.income-page-header__title {
    margin: 0;
    font-family: "Orbitron", "Poppins", sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.income-page-header__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.income-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(46, 144, 255, 0.08);
    border: 1px solid rgba(46, 144, 255, 0.28);
    color: #8fb8ff;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.income-chip i {
    color: #00f0ff;
    font-size: 0.95rem;
}

/* Income Card */
.income-card {
    position: relative;
    border-radius: 18px !important;
    border: 1px solid rgba(46, 144, 255, 0.22) !important;
    background: linear-gradient(145deg, rgba(13, 20, 38, 0.96) 0%, rgba(7, 11, 20, 0.98) 100%) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
    overflow: hidden;
}

.income-card:hover {
    border-color: rgba(0, 240, 255, 0.38) !important;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 240, 255, 0.12) !important;
    transform: none !important;
}

/* Cyber corner accents aligned with brand */
.income-card .top-left,
.income-card .top-right,
.income-card .bottom-left,
.income-card .bottom-right {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 2;
}

.income-card .top-left {
    top: 0;
    left: 0;
    border-top: 2px solid #00f0ff;
    border-left: 2px solid #00f0ff;
}

.income-card .top-right {
    top: 0;
    right: 0;
    border-top: 2px solid #a855f7;
    border-right: 2px solid #a855f7;
}

.income-card .bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid #a855f7;
    border-left: 2px solid #a855f7;
}

.income-card .bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid #00f0ff;
    border-right: 2px solid #00f0ff;
}

.income-card .card-header {
    min-height: 56px;
    padding: 1.1rem 1.4rem !important;
    background: linear-gradient(90deg, rgba(16, 26, 52, 0.75) 0%, rgba(10, 16, 32, 0.6) 100%) !important;
    border-bottom: 1px solid rgba(46, 144, 255, 0.18) !important;
}

.income-card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: "Orbitron", "Poppins", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 0.03em;
    margin: 0;
}

.income-card-title i {
    color: #00f0ff;
    font-size: 1.15rem;
}

.income-card-body {
    padding: 1.4rem !important;
}

/* Income Table Wrap & Table */
.income-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.income-table {
    width: 100% !important;
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
    vertical-align: middle;
    min-width: 720px;
}

.income-table thead th {
    background: linear-gradient(90deg, rgba(16, 28, 58, 0.98) 0%, rgba(20, 24, 48, 0.98) 100%) !important;
    color: #00f0ff !important;
    font-family: "Orbitron", "Poppins", sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    border-top: none !important;
    border-bottom: 2px solid rgba(0, 240, 255, 0.35) !important;
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1rem 0.9rem !important;
    white-space: nowrap !important;
}

.income-table thead th:last-child {
    border-right: none !important;
}

.income-table tbody td {
    padding: 0.9rem 0.9rem !important;
    font-size: 0.86rem !important;
    font-family: "Poppins", sans-serif;
    color: #e2e8f0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1) !important;
    border-left: none !important;
    border-right: 1px solid rgba(148, 163, 184, 0.06) !important;
    border-top: none !important;
    background: transparent !important;
    vertical-align: middle !important;
    white-space: nowrap;
}

.income-table tbody td:last-child {
    border-right: none !important;
}

.income-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.015) !important;
}

.income-table tbody tr:hover td {
    background: rgba(46, 144, 255, 0.08) !important;
    color: #ffffff !important;
}

.income-table tbody td strong,
.income-table tbody td b {
    color: #ffffff;
}

/* Income Badges */
.income-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

.income-badge i {
    font-size: 0.85rem;
}

.income-badge--paid {
    color: #21e6a0 !important;
    border: 1px solid rgba(33, 230, 160, 0.45) !important;
    background: rgba(33, 230, 160, 0.12) !important;
    box-shadow: 0 0 14px rgba(33, 230, 160, 0.18) !important;
}

.income-badge--pending,
.income-badge--unpaid {
    color: #ffd54a !important;
    border: 1px solid rgba(245, 197, 24, 0.45) !important;
    background: rgba(245, 197, 24, 0.12) !important;
    box-shadow: 0 0 14px rgba(245, 197, 24, 0.18) !important;
}

.income-badge--danger,
.income-badge--failed {
    color: #ff647c !important;
    border: 1px solid rgba(255, 100, 124, 0.45) !important;
    background: rgba(255, 100, 124, 0.12) !important;
    box-shadow: 0 0 14px rgba(255, 100, 124, 0.18) !important;
}

.income-badge--flushed {
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.45) !important;
    background: rgba(168, 85, 247, 0.12) !important;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.18) !important;
}

/* Overrides for any label.btn or .btn-sm used inside income tables */
.income-table label.btn,
.income-table .btn-sm {
    min-height: auto !important;
    padding: 0.35rem 0.8rem !important;
    border-radius: 8px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    cursor: default !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    transform: none !important;
}

.income-table label.btn-primary,
.income-table label.btn-success {
    color: #21e6a0 !important;
    border: 1px solid rgba(33, 230, 160, 0.45) !important;
    background: rgba(33, 230, 160, 0.12) !important;
    box-shadow: 0 0 14px rgba(33, 230, 160, 0.18) !important;
}

.income-table label.btn-danger {
    color: #ff647c !important;
    border: 1px solid rgba(255, 100, 124, 0.45) !important;
    background: rgba(255, 100, 124, 0.12) !important;
    box-shadow: 0 0 14px rgba(255, 100, 124, 0.18) !important;
}

/* DataTables UI Controls on Income Cards */
.income-card .dataTables_wrapper {
    padding-top: 0.25rem;
}

.income-card .dataTables_wrapper .dataTables_length label,
.income-card .dataTables_wrapper .dataTables_filter label {
    color: #94a3b8 !important;
    font-size: 0.82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.income-card .dataTables_wrapper .dataTables_filter input {
    min-height: 36px;
    padding: 0.4rem 0.85rem !important;
    border-radius: 9px !important;
    border: 1px solid rgba(46, 144, 255, 0.28) !important;
    background: rgba(7, 11, 20, 0.85) !important;
    color: #ffffff !important;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

.income-card .dataTables_wrapper .dataTables_filter input:focus {
    border-color: #00f0ff !important;
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.18) !important;
    outline: none !important;
}

.income-card .dataTables_wrapper .dataTables_length select {
    min-height: 36px;
    padding: 0.35rem 1.8rem 0.35rem 0.7rem !important;
    border-radius: 9px !important;
    border: 1px solid rgba(46, 144, 255, 0.28) !important;
    background-color: rgba(7, 11, 20, 0.85) !important;
    color: #ffffff !important;
    font-size: 0.82rem;
}

.income-card .dataTables_wrapper .dataTables_info {
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    padding-top: 0.85rem !important;
}

.income-card .dataTables_wrapper .dataTables_paginate {
    padding-top: 0.75rem !important;
}

.income-card .pagination {
    gap: 4px;
}

.income-card .page-link {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(46, 144, 255, 0.22) !important;
    border-radius: 8px !important;
    background: rgba(13, 20, 38, 0.9) !important;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.income-card .page-link:hover {
    color: #00f0ff !important;
    border-color: #00f0ff !important;
    background: rgba(0, 240, 255, 0.08) !important;
}

.income-card .page-item.active .page-link {
    color: #ffffff !important;
    background: linear-gradient(135deg, #00c8ff, #2e90ff 50%, #a855f7 100%) !important;
    border-color: #00c8ff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 12px rgba(0, 200, 255, 0.35) !important;
}

.income-card .page-item.disabled .page-link {
    opacity: 0.45;
    border-color: rgba(148, 163, 184, 0.12) !important;
    background: rgba(7, 11, 20, 0.5) !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .income-page-header {
        padding: 1rem !important;
        margin-top: 0.75rem;
        margin-bottom: 1rem;
        gap: 0.85rem;
    }

    .income-page-header__icon {
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
        border-radius: 12px;
    }

    .income-page-header__title {
        font-size: 1.25rem;
    }

    .income-card-body {
        padding: 0.85rem !important;
    }

    .income-table thead th {
        padding: 0.8rem 0.65rem !important;
        font-size: 0.68rem !important;
    }

    .income-table tbody td {
        padding: 0.75rem 0.65rem !important;
        font-size: 0.8rem !important;
    }
}

