:root {
  --nx-page: #080c17;
  --nx-page-top: #0b1424;
  --nx-panel: #111b2d;
  --nx-panel-deep: #0d1524;
  --nx-line: rgba(125, 170, 230, .17);
  --nx-line-strong: rgba(125, 170, 230, .25);
  --nx-text: #f8fafc;
  --nx-muted: #9caec8;
  --nx-blue: #2563eb;
  --nx-blue-light: #60a5fa;
  --nx-blue-pale: #bfdbfe;
}

html,
body {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

html body[data-nx-theme],
html body.account-page {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(37, 99, 235, .16), transparent 38%),
    linear-gradient(180deg, #0b1424 0%, #080c17 100%) !important;
  color: var(--nx-text) !important;
  font-family: Inter, sans-serif !important;
}

body[data-nx-theme] :where(button, input, select, textarea) {
  font-family: Inter, sans-serif;
}

body[data-nx-theme] :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  max-width: 100%;
  border-color: rgba(125, 170, 230, .25);
  border-radius: 11px;
  background-color: #0a1220;
  color: var(--nx-text);
  font-size: .92rem;
}

body[data-nx-theme] :where(input, textarea)::placeholder {
  color: #8796ad;
  opacity: 1;
}

body[data-nx-theme] :where(input, select, textarea):focus {
  border-color: var(--nx-blue-light);
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .17);
}

body[data-nx-theme] :where(.card, .panel, .form-card, .content-card, .table-card, .section-card, .dashboard-container, .reset-container) {
  border: 1px solid var(--nx-line) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(59, 130, 246, .08), transparent 42%),
    linear-gradient(145deg, var(--nx-panel) 0%, var(--nx-panel-deep) 100%) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .035) !important;
  color: var(--nx-text);
}

body[data-nx-theme] :where(.btn, button[type="submit"], input[type="submit"]) {
  border-color: rgba(147, 197, 253, .24);
  border-radius: 11px;
  background: linear-gradient(120deg, #2563eb, #174a8b);
  color: #fff;
  font-family: Inter, sans-serif;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(29, 78, 216, .2), inset 0 1px 0 rgba(255, 255, 255, .1);
}

body[data-nx-theme] :where(.btn, button[type="submit"], input[type="submit"]):hover {
  background: linear-gradient(120deg, #3b82f6, #1d4ed8);
}

body[data-nx-theme] .main-section {
  font-family: Inter, sans-serif;
}

body[data-nx-theme] .wallet-card {
  border-color: var(--nx-line-strong) !important;
  background:
    radial-gradient(circle at 88% 4%, rgba(65, 133, 220, .2), transparent 42%),
    linear-gradient(135deg, #07152b 0%, #0b2a52 52%, #123d70 100%) !important;
  box-shadow: 0 18px 42px rgba(3, 20, 44, .38), inset 0 1px 0 rgba(255, 255, 255, .13) !important;
}

body[data-nx-theme] .financial-summary-container,
body[data-nx-theme] .referral-card {
  border-color: var(--nx-line) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(59, 130, 246, .08), transparent 42%),
    linear-gradient(145deg, var(--nx-panel) 0%, var(--nx-panel-deep) 100%) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

body[data-nx-theme] .financial-summary-content > .expense-profit-item,
body[data-nx-theme] .stat-cards .shiny-card,
body[data-nx-theme] .welcome-bonus-card {
  border-color: var(--nx-line) !important;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(59, 130, 246, .1), transparent 48%),
    linear-gradient(145deg, #111b2d, #0d1524) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .025) !important;
}

body[data-nx-theme] .welcome-bonus-card h4 {
  color: var(--nx-blue-pale) !important;
}

body[data-nx-theme] .welcome-bonus-card img,
body[data-nx-theme] .referral-card > div:first-child img {
  border-color: rgba(147, 197, 253, .16) !important;
  background: rgba(59, 130, 246, .1) !important;
}

body[data-nx-theme] .stat-cards .shiny-card:nth-child(n) {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(59, 130, 246, .1), transparent 48%),
    linear-gradient(145deg, #111b2d, #0d1524) !important;
}

body[data-nx-theme] .stat-cards .earning-share {
  border-color: rgba(96, 165, 250, .2);
  background: rgba(37, 99, 235, .1);
  color: var(--nx-blue-pale) !important;
}

body[data-nx-theme] .nx-quick-actions a {
  border-color: var(--nx-line) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #111b2d, #0d1524) !important;
  color: var(--nx-text) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16) !important;
}

body[data-nx-theme] .nx-quick-actions a:first-child {
  border-color: rgba(96, 165, 250, .28) !important;
  background: linear-gradient(130deg, rgba(37, 99, 235, .2), #111726) !important;
}

body[data-nx-theme] .nx-quick-actions a i {
  color: var(--nx-blue-light) !important;
}

body[data-nx-theme] .referral-card h3 {
  color: var(--nx-text) !important;
}

body[data-nx-theme] .referral-card input {
  border-color: var(--nx-line-strong) !important;
  background: #0a1220 !important;
  color: var(--nx-text) !important;
}

body[data-nx-theme] .referral-card #copyRefBtn {
  border-color: rgba(147, 197, 253, .24) !important;
  background: linear-gradient(120deg, #2563eb, #174a8b) !important;
}

body[data-nx-theme] .balance-card,
body[data-nx-theme] .mini-info-card,
body[data-nx-theme] .expense-profit-box {
  border-color: var(--nx-line) !important;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(59, 130, 246, .08), transparent 48%),
    linear-gradient(145deg, #111b2d, #0d1524) !important;
  color: var(--nx-text) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18) !important;
}

body[data-nx-theme] :where(.message, .alert, .success, .error, .notification) {
  border-radius: 11px;
  font-family: Inter, sans-serif;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  body[data-nx-theme] :where(.card, .panel, .form-card, .content-card, .table-card, .section-card) {
    border-radius: 15px !important;
  }
}

body[data-nx-theme="ocean"] {
  color-scheme: dark;
}

html body[data-nx-theme="ocean"] {
  --nx-page: #071311;
  --nx-page-top: #0a1c19;
  --nx-panel: #102522;
  --nx-panel-deep: #0b1c1a;
  --nx-line: rgba(94, 234, 212, .16);
  --nx-line-strong: rgba(94, 234, 212, .26);
  --nx-text: #ecfdf9;
  --nx-muted: #9dbbb5;
  --nx-blue: #0f9f91;
  --nx-blue-light: #5eead4;
  --nx-blue-pale: #b7f7eb;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(13, 148, 136, .16), transparent 38%),
    linear-gradient(180deg, #0a1c19 0%, #071311 100%) !important;
  color: var(--nx-text) !important;
}

body[data-nx-theme="ocean"] .nx-app-header {
  border-color: rgba(94, 234, 212, .25);
  background: radial-gradient(circle at 88% 4%, rgba(45, 212, 191, .18), transparent 42%), linear-gradient(135deg, #06211f 0%, #075e59 55%, #08766b 100%);
}

body[data-nx-theme="ocean"] :where(.card, .panel, .form-card, .content-card, .table-card, .section-card, .dashboard-container, .reset-container, .financial-summary-container, .referral-card, .balance-card, .mini-info-card, .expense-profit-box, .stat-cards .shiny-card, .welcome-bonus-card, .settings-card, .insight-card) {
  border-color: var(--nx-line) !important;
  background: radial-gradient(ellipse at 100% 0%, rgba(45, 212, 191, .07), transparent 42%), linear-gradient(145deg, var(--nx-panel), var(--nx-panel-deep)) !important;
  color: var(--nx-text) !important;
}

body[data-nx-theme="ocean"] :where(button[type="submit"], .btn, input[type="submit"], .settings-button, .referral-card #copyRefBtn) {
  border-color: rgba(94, 234, 212, .3) !important;
  background: linear-gradient(120deg, #0f9f91, #08766b) !important;
  color: #fff !important;
}

body[data-nx-theme="ocean"] :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: rgba(94, 234, 212, .22);
  background-color: #091a18;
  color: var(--nx-text);
}

body[data-nx-theme="ocean"] :where(.shared-side-menu, .nx-notification-panel) {
  border-color: var(--nx-line-strong);
  background: #0b1c1a;
  color: var(--nx-text);
}

body[data-nx-theme="ocean"] :where(#dashboardFooter, .nx-quick-actions a, .settings-nav) {
  border-color: var(--nx-line-strong) !important;
  background: linear-gradient(135deg, #06211f 0%, #075e59 55%, #08766b 100%) !important;
  color: var(--nx-text) !important;
}

body[data-nx-theme="ocean"] :where(.settings-card h2 i, .insight-icon, .referral-icon) {
  border-color: rgba(94, 234, 212, .2);
  background: rgba(13, 148, 136, .14);
  color: #5eead4;
}

body[data-nx-theme="light"] {
  color-scheme: light;
}

html body[data-nx-theme="light"] {
  --nx-page: #f3f6fb;
  --nx-page-top: #e9eff7;
  --nx-panel: #ffffff;
  --nx-panel-deep: #f8fafd;
  --nx-line: #dce4ef;
  --nx-line-strong: #cbd6e5;
  --nx-text: #172033;
  --nx-muted: #65748b;
  --nx-blue: #3767c8;
  --nx-blue-light: #4979d5;
  --nx-blue-pale: #315aab;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(88, 125, 190, .12), transparent 38%),
    linear-gradient(180deg, #f8fafd 0%, #eef2f8 100%) !important;
  color: #172033 !important;
}

html body[data-nx-theme="light"] :where(h1, h2, h3, h4, h5, h6, p, label, li, strong, small, span, time, th, td, .settings-wrap) {
  color: inherit;
}

html body[data-nx-theme="light"] h1,
html body[data-nx-theme="light"] h2,
html body[data-nx-theme="light"] h3,
html body[data-nx-theme="light"] h4 {
  color: #172033 !important;
}

html body[data-nx-theme="light"] :where(.main-section, .settings-wrap, .page-container, .content, .content-wrapper, .dashboard-container) {
  color: #263248 !important;
}

html body[data-nx-theme="light"] :where(.card, .panel, .form-card, .content-card, .table-card, .section-card, .dashboard-container, .reset-container, .financial-summary-container, .referral-card, .balance-card, .mini-info-card, .expense-profit-box, .stat-cards .shiny-card, .welcome-bonus-card, .settings-card, .insight-card, .settings-grid, .settings-toggle, .session-row, .comparison-item, .referral-share) {
  border-color: var(--nx-line) !important;
  background: linear-gradient(145deg, #fff, #f7f9fc) !important;
  color: #172033 !important;
  box-shadow: 0 10px 26px rgba(27, 45, 75, .07) !important;
}

html body[data-nx-theme="light"] :where(.settings-heading, .nx-app-header, #dashboardFooter, .nx-quick-actions a, .settings-nav) {
  border-color: #d9e2ef !important;
  background: linear-gradient(135deg, #eaf0f8, #f8fafd) !important;
  color: #172033 !important;
}

html body[data-nx-theme="light"] .nx-app-header {
  background: linear-gradient(135deg, #e8eff9 0%, #dce6f4 100%);
}

html body[data-nx-theme="light"] .nx-header-menu img {
  filter: none;
}

html body[data-nx-theme="light"] :where(.nx-header-brand, .nx-header-profile, .nx-header-notifications, .settings-nav a, .nx-quick-actions a, #dashboardFooter a) {
  color: #24334d !important;
}

html body[data-nx-theme="light"] :where(.shared-side-menu, .nx-notification-panel) {
  border-color: var(--nx-line);
  background: #fff;
  color: #172033;
}

html body[data-nx-theme="light"] :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea, .referral-card input, .settings-field input, .settings-field select) {
  border-color: #cbd6e5 !important;
  background: #fff !important;
  color: #172033 !important;
}

html body[data-nx-theme="light"] :where(.settings-field, .settings-toggle-copy strong, .settings-card h2, .settings-heading h1, .settings-card h3, .session-row strong, .dashboard-activity-list li strong) {
  color: #172033 !important;
}

html body[data-nx-theme="light"] :where(.settings-heading p, .settings-card > p, .settings-hint, .settings-toggle-copy small, .session-row small, .settings-nav a, .dashboard-activity-list li p, .dashboard-activity-list li time, .settings-field) {
  color: #65748b !important;
}

html body[data-nx-theme="light"] :where(.settings-button, .btn, button[type="submit"], input[type="submit"], .referral-card #copyRefBtn) {
  border-color: #315fae !important;
  background: linear-gradient(120deg, #4979d5, #315fae) !important;
  color: #fff !important;
}

body[data-nx-theme="ocean"] {
  --background: #071311;
  --card-bg: #102522;
  --card-border: rgba(94, 234, 212, .2);
  --text-primary: #ecfdf9;
  --text-secondary: #9dbbb5;
  --accent-blue: #0f9f91;
  --accent-green: #2dd4bf;
  --navigation-bg: #0b1c1a;
}

html body[data-nx-theme="ocean"] :where(.welcome-card, .financial-summary-container, .financial-summary-content > .expense-profit-item, .welcome-bonus-card, .stat-cards .shiny-card, .referral-card, .insight-card) {
  border-color: rgba(94, 234, 212, .2) !important;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(45, 212, 191, .1), transparent 46%),
    linear-gradient(145deg, #102522, #0b1c1a) !important;
  color: #ecfdf9 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

html body[data-nx-theme="ocean"] :where(.wallet-card, .nx-app-header, .nx-quick-actions a:first-child, #dashboardFooter) {
  border-color: rgba(94, 234, 212, .25) !important;
  background: linear-gradient(135deg, #06211f 0%, #075e59 55%, #08766b 100%) !important;
  color: #ecfdf9 !important;
}

html body[data-nx-theme="ocean"] :where(.comparison-item, .referral-share, .wallet-withdrawn, .nx-quick-actions a, .settings-nav) {
  border-color: rgba(94, 234, 212, .18) !important;
  background: rgba(6, 33, 31, .62) !important;
  color: #ecfdf9 !important;
}

html body[data-nx-theme="ocean"] :where(.main-section h1, .main-section h2, .main-section h3, .main-section h4, .welcome-card, .financial-summary-content h4, .welcome-bonus-card h4, .earning-copy h4, .earning-value .dashboard-amount, .insight-heading h3, .comparison-item strong, .dashboard-activity-list li strong) {
  color: #ecfdf9 !important;
}

html body[data-nx-theme="ocean"] :where(.main-section p, .main-section small, .financial-summary-content p, .earning-description, .insight-heading p, .insight-footnote, .comparison-item > span, .comparison-item small, .dashboard-activity-list li p, .dashboard-activity-list li time) {
  color: #9dbbb5 !important;
}

html body[data-nx-theme="ocean"] :where(.nx-quick-actions a i, .insight-icon, .referral-icon, .activity-dot, .financial-summary-content > .expense-profit-item h4) {
  color: #5eead4 !important;
}

html body[data-nx-theme="ocean"] :where(.referral-card input, input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: rgba(94, 234, 212, .22) !important;
  background: #091a18 !important;
  color: #ecfdf9 !important;
}

body[data-nx-theme="light"] {
  --background: #f3f6fb;
  --card-bg: #fff;
  --card-border: #dce4ef;
  --text-primary: #172033;
  --text-secondary: #65748b;
  --accent-yellow: #315fae;
  --accent-green: #16866b;
  --accent-blue: #3767c8;
  --navigation-bg: #fff;
}

html body[data-nx-theme="light"] :where(.welcome-card, .financial-summary-container, .financial-summary-content > .expense-profit-item, .welcome-bonus-card, .stat-cards .shiny-card, .referral-card, .insight-card) {
  border-color: #dce4ef !important;
  background: linear-gradient(145deg, #fff, #f7f9fc) !important;
  color: #172033 !important;
  box-shadow: 0 10px 26px rgba(27, 45, 75, .07) !important;
}

html body[data-nx-theme="light"] :where(.wallet-card, .nx-app-header, .nx-quick-actions a:first-child, #dashboardFooter) {
  border-color: #d9e2ef !important;
  background: linear-gradient(135deg, #eaf0f8, #dce6f4) !important;
  color: #172033 !important;
}

html body[data-nx-theme="light"] :where(.comparison-item, .referral-share, .wallet-withdrawn, .nx-quick-actions a, .settings-nav) {
  border-color: #dce4ef !important;
  background: #f4f7fb !important;
  color: #263248 !important;
}

html body[data-nx-theme="light"] :where(.main-section h1, .main-section h2, .main-section h3, .main-section h4, .welcome-card, .financial-summary-content h4, .welcome-bonus-card h4, .earning-copy h4, .earning-value .dashboard-amount, .insight-heading h3, .comparison-item strong, .dashboard-activity-list li strong, .nx-header-brand, .nx-header-profile, .nx-header-notifications) {
  color: #172033 !important;
}

html body[data-nx-theme="light"] :where(.main-section p, .main-section small, .financial-summary-content p, .earning-description, .insight-heading p, .insight-footnote, .comparison-item > span, .comparison-item small, .dashboard-activity-list li p, .dashboard-activity-list li time) {
  color: #65748b !important;
}

html body[data-nx-theme="light"] :where(.nx-quick-actions a i, .insight-icon, .referral-icon, .activity-dot, .financial-summary-content > .expense-profit-item h4) {
  color: #3767c8 !important;
}

html body[data-nx-theme="light"] :where(.referral-card input, input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: #cbd6e5 !important;
  background: #fff !important;
  color: #172033 !important;
}

html body[data-nx-theme="light"] :where(.shared-side-menu, .legacy-side-menu, .nx-notification-panel, .notification-panel) {
  border-color: #dce4ef !important;
  background: #fff !important;
  color: #172033 !important;
}

html[data-nx-theme="ocean"] body,
html body[data-nx-theme="ocean"] {
  --page: #071311;
  --panel: #102522;
  --line: rgba(94, 234, 212, .2);
  --muted: #9dbbb5;
  --text: #ecfdf9;
  --primary: #0f9f91;
  --accent: #5eead4;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(13, 148, 136, .16), transparent 38%),
    linear-gradient(180deg, #0a1c19 0%, #071311 100%) !important;
  color: #ecfdf9 !important;
  color-scheme: dark;
}

html body[data-nx-theme="ocean"] :where(main, .main-section, .page-container, .main-container, .content, .content-wrapper, .content-container, .activity-main, .profile-container, .team-container, .withdraw-container, .history-container) {
  color: #ecfdf9 !important;
}

html body[data-nx-theme="ocean"] :where(.container, .content-card, .page-card, .data-card, .profile-card, .team-card, .activity-card, .form-container, .form-card, .table-container, .table-card, .summary-card, .stat-card, .balance-card, .wallet-card, .earnings-card, .settings-card, .activity-hero, .activity-main > section) {
  border-color: rgba(94, 234, 212, .2) !important;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(45, 212, 191, .08), transparent 44%),
    linear-gradient(145deg, #102522, #0b1c1a) !important;
  color: #ecfdf9 !important;
}

html body[data-nx-theme="ocean"] :where(h1, h2, h3, h4, h5, h6, label, th, td, .activity-title, .activity-description, .activity-amount, .activity-card-heading h2) {
  color: #ecfdf9 !important;
}

html body[data-nx-theme="ocean"] :where(p, small, .muted, .subtitle, .description, .activity-detail, .activity-time, .activity-card-heading span) {
  color: #9dbbb5 !important;
}

html body[data-nx-theme="ocean"] :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: rgba(94, 234, 212, .22) !important;
  background-color: #091a18 !important;
  color: #ecfdf9 !important;
}

html[data-nx-theme="light"] body,
html body[data-nx-theme="light"] {
  --page: #f3f6fb;
  --panel: #fff;
  --line: #dce4ef;
  --muted: #65748b;
  --text: #172033;
  --primary: #3767c8;
  --accent: #315fae;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(88, 125, 190, .12), transparent 38%),
    linear-gradient(180deg, #f8fafd 0%, #eef2f8 100%) !important;
  color: #172033 !important;
  color-scheme: light;
}

html body[data-nx-theme="light"] :where(main, .main-section, .page-container, .main-container, .content, .content-wrapper, .content-container, .activity-main, .profile-container, .team-container, .withdraw-container, .history-container) {
  color: #263248 !important;
}

html body[data-nx-theme="light"] :where(.container, .content-card, .page-card, .data-card, .profile-card, .team-card, .activity-card, .form-container, .form-card, .table-container, .table-card, .summary-card, .stat-card, .balance-card, .wallet-card, .earnings-card, .settings-card, .activity-hero, .activity-main > section) {
  border-color: #dce4ef !important;
  background: linear-gradient(145deg, #fff, #f7f9fc) !important;
  color: #172033 !important;
  box-shadow: 0 10px 26px rgba(27, 45, 75, .07) !important;
}

html body[data-nx-theme="light"] :where(h1, h2, h3, h4, h5, h6, label, th, td, .activity-title, .activity-description, .activity-amount, .activity-card-heading h2) {
  color: #172033 !important;
}

html body[data-nx-theme="light"] :where(p, small, .muted, .subtitle, .description, .activity-detail, .activity-time, .activity-card-heading span) {
  color: #65748b !important;
}

html body[data-nx-theme="light"] :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: #cbd6e5 !important;
  background: #fff !important;
  color: #172033 !important;
}

html body[data-nx-theme="light"] :where(button, .btn, input[type="submit"], button[type="submit"]) {
  border-color: #315fae !important;
  background: linear-gradient(120deg, #4979d5, #315fae) !important;
  color: #fff !important;
}
