
/* NXR_EARNINGS_COMPLETE_V1 */
/* NEXORA TRADE — Graphite + Lime */
/* Scope: Earning History only */

html:has(main.earning-page.earning-b-page),
html body:has(main.earning-page.earning-b-page),
html body #root:has(main.earning-page.earning-b-page),
html body #root .app:has(main.earning-page.earning-b-page),
html body #root .app main.earning-page.earning-b-page {
  background:#24262D !important;
  background-image:none !important;
  color:#F7F8FA !important;
  color-scheme:dark;
}

/* Remove pale page-level backgrounds */
html body #root .app main.earning-page.earning-b-page
.earning-b-hero,
html body #root .app main.earning-page.earning-b-page
.earning-summary-grid {
  background:transparent !important;
  background-image:none !important;
  border-color:transparent !important;
  box-shadow:none !important;
}

/* 24-hour earnings card */
html body #root .app main.earning-page.earning-b-page
.earning-b-earned {
  background:linear-gradient(
    150deg,#30333B 0%,#24272E 100%
  ) !important;
  background-color:#30333B !important;
  border:1px solid rgba(225,230,238,.10) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 10px 25px rgba(0,0,0,.11)
    !important;
  color:#F7F8FA !important;
}

/* 24-hour amount and labels */
html body #root .app main.earning-page.earning-b-page
.earning-b-earned :is(strong,b) {
  color:#E7FF51 !important;
  -webkit-text-fill-color:#E7FF51 !important;
  font-variant-numeric:tabular-nums;
}

html body #root .app main.earning-page.earning-b-page
.earning-b-earned :is(p,small) {
  color:#BEC5CF !important;
  -webkit-text-fill-color:#BEC5CF !important;
}

/* Earned icon — not a white tile */
html body #root .app main.earning-page.earning-b-page
.earning-b-earned-icon {
  background:#343840 !important;
  background-image:none !important;
  border:1px solid rgba(231,255,81,.15) !important;
  box-shadow:none !important;
  color:#E7FF51 !important;
}

html body #root .app main.earning-page.earning-b-page
.earning-b-earned-icon svg {
  color:#E7FF51 !important;
  stroke:currentColor !important;
}

/* Main Profit Balance card */
html body #root .app main.earning-page.earning-b-page
.earning-b-profit-card {
  background:linear-gradient(
    155deg,#30333B,#202228
  ) !important;
  background-color:#30333B !important;
  border:1px solid rgba(225,230,238,.10) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 10px 25px rgba(0,0,0,.11)
    !important;
  color:#F7F8FA !important;
}

/* Profit labels and numbers */
html body #root .app main.earning-page.earning-b-page
.earning-b-profit-head :is(strong,b,h2,h3) {
  color:#F7F8FA !important;
  -webkit-text-fill-color:#F7F8FA !important;
}

html body #root .app main.earning-page.earning-b-page
.earning-b-profit-head :is(p,small,span) {
  color:#BEC5CF !important;
}

/* Period selector: dark control */
html body #root .app main.earning-page.earning-b-page
.earning-b-range-tabs {
  background:#262930 !important;
  background-image:none !important;
  border:1px solid #414650 !important;
  box-shadow:none !important;
}

/* Inactive periods */
html body #root .app main.earning-page.earning-b-page
.earning-b-range-tabs button {
  background:transparent !important;
  background-image:none !important;
  border-color:transparent !important;
  box-shadow:none !important;
  color:#BBC2CE !important;
  -webkit-text-fill-color:#BBC2CE !important;
}

/* Active period */
html body #root .app main.earning-page.earning-b-page
.earning-b-range-tabs button:is(
  .active,
  [aria-selected="true"],
  [aria-pressed="true"]
) {
  background:#E7FF51 !important;
  background-image:none !important;
  border-color:#E7FF51 !important;
  color:#191C22 !important;
  -webkit-text-fill-color:#191C22 !important;
  box-shadow:none !important;
}

html body #root .app main.earning-page.earning-b-page
.earning-b-range-tabs button:focus-visible {
  outline:2px solid #E7FF51 !important;
  outline-offset:2px;
}

/* Chart — preserve genuine data, remove pale backing */
html body #root .app main.earning-page.earning-b-page
.earning-b-chart {
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
}

html body #root .app main.earning-page.earning-b-page
.earning-b-chart .earning-grid-line {
  background:rgba(215,224,236,.075) !important;
}

html body #root .app main.earning-page.earning-b-page
.earning-chart-line {
  stroke:#E7FF51 !important;
}

html body #root .app main.earning-page.earning-b-page
.earning-chart-fill {
  fill:rgba(231,255,81,.085) !important;
}

/* Earning History outer panel */
html body #root .app main.earning-page.earning-b-page
.earning-b-history {
  background:linear-gradient(
    155deg,#30333B,#24272E
  ) !important;
  background-color:#30333B !important;
  border:1px solid rgba(225,230,238,.10) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 9px 22px rgba(0,0,0,.09)
    !important;
  color:#F7F8FA !important;
}

/* History heading */
html body #root .app main.earning-page.earning-b-page
.earning-b-history-head :is(h2,h3,strong) {
  color:#F7F8FA !important;
  -webkit-text-fill-color:#F7F8FA !important;
}

/* History period badge */
html body #root .app main.earning-page.earning-b-page
.earning-b-history-period {
  background:#353941 !important;
  background-image:none !important;
  border-color:#4B505B !important;
  color:#E7FF51 !important;
  -webkit-text-fill-color:#E7FF51 !important;
  box-shadow:none !important;
}

/* Selected period total */
html body #root .app main.earning-page.earning-b-page
.earning-b-period-total {
  background:#292C33 !important;
  background-image:none !important;
  border:1px solid rgba(225,230,238,.07) !important;
  box-shadow:none !important;
  color:#F7F8FA !important;
}

html body #root .app main.earning-page.earning-b-page
.earning-b-period-total :is(strong,b) {
  color:#E7FF51 !important;
  -webkit-text-fill-color:#E7FF51 !important;
}

/* History list itself — no additional white container */
html body #root .app main.earning-page.earning-b-page
.earning-items {
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
}

/* Individual real earning transactions */
html body #root .app main.earning-page.earning-b-page
.earning-item {
  background:#292C33 !important;
  background-image:none !important;
  border:1px solid rgba(225,230,238,.07) !important;
  box-shadow:none !important;
  color:#F7F8FA !important;
}

html body #root .app main.earning-page.earning-b-page
.earning-item :is(strong,b) {
  color:#F7F8FA !important;
  -webkit-text-fill-color:#F7F8FA !important;
}

html body #root .app main.earning-page.earning-b-page
.earning-item-icon {
  background:#343840 !important;
  background-image:none !important;
  border-color:#4B505B !important;
  box-shadow:none !important;
  color:#E7FF51 !important;
}

/* Empty / loading / unavailable states */
html body #root .app main.earning-page.earning-b-page
:is(.earning-b-empty,.earning-real-state) {
  background:#292C33 !important;
  background-image:none !important;
  border:1px solid rgba(225,230,238,.08) !important;
  box-shadow:none !important;
  color:#BEC5CF !important;
  -webkit-text-fill-color:#BEC5CF !important;
}

html body #root .app main.earning-page.earning-b-page
.earning-real-state.error {
  background:#342A2D !important;
  background-image:none !important;
  border-color:#725054 !important;
  color:#FFD3D3 !important;
  -webkit-text-fill-color:#FFD3D3 !important;
}

/* Today / Week / Month summary cards */
html body #root .app main.earning-page.earning-b-page
.earning-summary-grid article {
  background:linear-gradient(
    150deg,#30333B,#252830
  ) !important;
  background-color:#30333B !important;
  border:1px solid rgba(225,230,238,.09) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035)
    !important;
  color:#F7F8FA !important;
}

html body #root .app main.earning-page.earning-b-page
.earning-summary-grid article :is(strong,b) {
  color:#F7F8FA !important;
  -webkit-text-fill-color:#F7F8FA !important;
  font-variant-numeric:tabular-nums;
}

html body #root .app main.earning-page.earning-b-page
.earning-summary-grid article :is(small,span) {
  color:#BAC2CC !important;
}

/* This file does not change the bottom navigation,
   Telegram identity header, balances, API, or calculations. */
