:root {
  --pivx-earn-bg: #070912;
  --pivx-earn-panel: rgba(7, 10, 18, 0.97);
  --pivx-earn-line: rgba(190, 147, 253, 0.22);
  --pivx-earn-purple: #be93fd;
  --pivx-earn-violet: #8756ef;
  --pivx-earn-green: #55f5ac;
  --pivx-earn-cyan: #4bdcff;
  --pivx-earn-gold: #ffc857;
  --pivx-earn-copy: #aeb7c5;
}

body.pivx-earn-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #f5f6f8;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 5%, rgba(135, 86, 239, 0.16), transparent 30rem),
    radial-gradient(circle at 95% 48%, rgba(85, 245, 172, 0.08), transparent 36rem),
    linear-gradient(180deg, #070912, #080b13 55%, #05070c);
}

.pivx-earn-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 18px auto 52px;
}

.pivx-earn-shell > .pivx-subnav {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 12px;
  padding: 9px;
  overflow-x: auto;
  border: 1px solid rgba(190, 147, 253, 0.2);
  border-radius: 15px;
  background: rgba(5, 8, 16, 0.84);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.pivx-earn-shell > .pivx-subnav::-webkit-scrollbar { display: none; }
.pivx-earn-shell .pivx-subnav__home,
.pivx-earn-shell .pivx-sub-btn { flex: 0 0 auto; }
.pivx-earn-shell .pivx-subnav__home {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(190, 147, 253, 0.3);
  border-radius: 10px;
  background: rgba(135, 86, 239, 0.12);
}
.pivx-earn-shell .pivx-subnav__logo { width: 21px; height: 21px; }
.pivx-earn-shell .pivx-sub-btn {
  padding: 9px 12px;
  color: #b8bdc9;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid rgba(190, 147, 253, 0.18);
  border-radius: 9px;
  background: rgba(190, 147, 253, 0.06);
}
.pivx-earn-shell .pivx-sub-btn:hover,
.pivx-earn-shell .pivx-sub-btn.is-active {
  color: #07110c;
  border-color: var(--pivx-earn-green);
  background: var(--pivx-earn-green);
  box-shadow: 0 0 24px rgba(85, 245, 172, 0.17);
}

.pivx-earn-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pivx-earn-board {
  overflow: hidden;
  border: 1px solid var(--pivx-earn-line);
  border-radius: 24px;
  background:
    linear-gradient(rgba(190, 147, 253, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 147, 253, 0.025) 1px, transparent 1px),
    var(--pivx-earn-panel);
  background-size: 46px 46px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.pivx-earn-bar {
  display: grid;
  min-height: 49px;
  grid-template-columns: 1fr auto 1fr;
  gap: 15px;
  align-items: center;
  padding: 0 17px;
  color: #7f8a99;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  border-bottom: 1px solid rgba(190, 147, 253, 0.16);
  background: rgba(3, 6, 12, 0.7);
}
.pivx-earn-bar > strong { color: var(--pivx-earn-purple); }
.pivx-earn-bar > span:last-child { justify-self: end; color: var(--pivx-earn-green); }
.pivx-earn-bar__lights { display: flex; gap: 6px; }
.pivx-earn-bar__lights i { width: 7px; height: 7px; border-radius: 50%; background: #596373; }
.pivx-earn-bar__lights i:nth-child(2) { background: var(--pivx-earn-gold); box-shadow: 0 0 10px rgba(255, 200, 87, 0.65); }
.pivx-earn-bar__lights i:nth-child(3) { background: var(--pivx-earn-green); box-shadow: 0 0 10px rgba(85, 245, 172, 0.65); }

.pivx-level {
  --level-accent: var(--pivx-earn-purple);
  position: relative;
  isolation: isolate;
  padding: 34px 28px 38px;
  overflow: hidden;
  border-top: 3px solid color-mix(in srgb, var(--level-accent) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--level-accent) 34%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--level-accent) 11%, transparent), transparent 48%),
    rgba(4, 7, 13, 0.42);
  box-shadow: inset 0 18px 45px color-mix(in srgb, var(--level-accent) 5%, transparent);
}
.pivx-level--staking { --level-accent: var(--pivx-earn-green); }
.pivx-level--masternode { --level-accent: var(--pivx-earn-gold); border-bottom: 0; }
.pivx-level::after {
  position: absolute;
  z-index: -1;
  top: 6px;
  right: 28px;
  color: var(--level-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 1;
  opacity: 0.055;
}
.pivx-level--earn::after { content: "01"; }
.pivx-level--staking::after { content: "02"; }
.pivx-level--masternode::after { content: "03"; }
.pivx-level > * { position: relative; z-index: 1; }

.pivx-level__header {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 25px;
  padding: 17px 20px;
  border: 1px solid color-mix(in srgb, var(--level-accent) 22%, transparent);
  border-left: 5px solid var(--level-accent);
  border-radius: 16px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--level-accent) 10%, rgba(4, 8, 14, 0.94)), rgba(4, 8, 14, 0.76));
}
.pivx-level__number {
  display: flex;
  min-width: 108px;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #070912;
  font-weight: 950;
  border-radius: 14px;
  background: var(--level-accent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--level-accent) 27%, transparent);
}
.pivx-level__number small { font-size: 0.68rem; letter-spacing: 0.2em; }
.pivx-level__number strong { margin-top: 1px; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; line-height: 1; }
.pivx-level__stage {
  display: block;
  margin-bottom: 5px;
  color: var(--level-accent);
  font-size: 0.72rem;
  letter-spacing: 0.17em;
}
.pivx-level__header h2 {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.5vw, 2.85rem);
  line-height: 1.03;
}
.pivx-level__header p {
  margin: 8px 0 0;
  color: var(--pivx-earn-copy);
  font-size: 1.03rem;
  line-height: 1.5;
}

.pivx-earn-grid--sources {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.pivx-source-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 420px;
  flex-direction: column;
  padding: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(190, 147, 253, 0.22);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(190, 147, 253, 0.08), rgba(5, 8, 15, 0.98) 58%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.pivx-source-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  border-color: rgba(190, 147, 253, 0.58);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.pivx-source-card--faucet { border-color: rgba(190, 147, 253, 0.38); }
.pivx-source-card--coinworld {
  border-color: rgba(255, 200, 87, 0.36);
  background: linear-gradient(150deg, rgba(67, 48, 10, 0.42), rgba(5, 8, 15, 0.98) 60%);
}
.pivx-source-card--tasks {
  border-color: rgba(85, 245, 172, 0.48);
  background: linear-gradient(150deg, rgba(9, 45, 35, 0.96), rgba(5, 11, 17, 0.98) 62%);
  box-shadow: inset 3px 0 var(--pivx-earn-green);
}
.pivx-source-card--crinf { border-color: rgba(75, 220, 255, 0.3); }

.pivx-source-card__visual {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 6 / 5;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}
.pivx-source-card__visual > b {
  position: absolute;
  z-index: 4;
  right: 8px;
  bottom: 8px;
  padding: 5px 7px;
  color: #03130c;
  font-size: 0.47rem;
  letter-spacing: 0.1em;
  border-radius: 999px;
  background: var(--pivx-earn-green);
}
.pivx-source-card__visual--banner { background: #111; }
.pivx-source-card__visual--banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pivx-source-card__visual--coinworld {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 200, 87, 0.23), transparent 46%),
    linear-gradient(145deg, rgba(50, 37, 10, 0.78), rgba(10, 9, 7, 0.96));
}
.pivx-source-card__visual--coinworld img {
  display: block;
  width: min(72%, 150px);
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.42));
}

.pivx-source-card__visual--tasks {
  isolation: isolate;
  place-items: stretch;
  background:
    radial-gradient(circle at 80% 25%, rgba(190, 147, 253, 0.42), transparent 35%),
    linear-gradient(145deg, #34204f, #151224 55%, #071610);
}
.pivx-source-card__visual--tasks::before,
.pivx-source-card__visual--tasks::after {
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  content: "";
  border: 1px solid rgba(190, 147, 253, 0.24);
  border-radius: 50%;
}
.pivx-source-card__visual--tasks::before { top: -72px; right: -46px; }
.pivx-source-card__visual--tasks::after { right: -76px; bottom: -92px; }
.pivx-source-card__visual--tasks > img {
  position: absolute;
  z-index: 1;
  right: 9%;
  bottom: -14%;
  width: 50%;
  height: 76%;
  object-fit: contain;
  opacity: 0.82;
  filter: brightness(1.55) saturate(0.75) drop-shadow(0 0 18px rgba(190, 147, 253, 0.42));
}
.pivx-tasks-banner__copy {
  position: relative;
  z-index: 2;
  align-self: start;
  padding: 16px 13px;
}
.pivx-tasks-banner__copy small {
  display: block;
  color: var(--pivx-earn-green);
  font-size: 0.48rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}
.pivx-tasks-banner__copy strong {
  display: block;
  margin-top: 9px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 0.98;
}
.pivx-tasks-banner__ticks {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 13px;
  display: flex;
  gap: 4px;
}
.pivx-tasks-banner__ticks i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pivx-earn-green);
  box-shadow: 0 0 10px rgba(85, 245, 172, 0.6);
}
.pivx-tasks-banner__ticks i:nth-child(2) { opacity: 0.62; }
.pivx-tasks-banner__ticks i:nth-child(3) { opacity: 0.3; }

.pivx-source-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 17px 5px 0;
}
.pivx-source-card__body > small {
  color: var(--pivx-earn-purple);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.11em;
}
.pivx-source-card--coinworld .pivx-source-card__body > small { color: var(--pivx-earn-gold); }
.pivx-source-card--tasks .pivx-source-card__body > small { color: var(--pivx-earn-green); }
.pivx-source-card--crinf .pivx-source-card__body > small { color: var(--pivx-earn-cyan); }
.pivx-source-card__body > strong {
  margin-top: 5px;
  color: #f7f6fa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.88rem;
  line-height: 1;
}
.pivx-source-card__body > span {
  margin-top: 7px;
  color: var(--pivx-earn-copy);
  font-size: 0.96rem;
  line-height: 1.48;
}
.pivx-source-card__link {
  margin-top: auto;
  padding: 17px 5px 3px;
  color: var(--pivx-earn-purple);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
}
.pivx-source-card--coinworld .pivx-source-card__link { color: var(--pivx-earn-gold); }
.pivx-source-card--tasks .pivx-source-card__link { color: var(--pivx-earn-green); }
.pivx-source-card--crinf .pivx-source-card__link { color: var(--pivx-earn-cyan); }

.pivx-level-connector {
  position: relative;
  display: grid;
  height: 118px;
  place-items: center;
  color: var(--pivx-earn-green);
  background: linear-gradient(90deg, transparent, rgba(85, 245, 172, 0.035), transparent);
}
.pivx-level-connector span {
  position: absolute;
  top: 15px;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}
.pivx-level-connector i {
  position: relative;
  width: 6px;
  height: 46px;
  margin-top: 25px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 0 22px color-mix(in srgb, currentColor 70%, transparent);
}
.pivx-level-connector i::after {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 19px;
  height: 19px;
  content: "";
  border-right: 6px solid currentColor;
  border-bottom: 6px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}
.pivx-level-connector--gold { color: var(--pivx-earn-gold); }

.pivx-growth-card {
  display: grid;
  min-width: 0;
  min-height: 190px;
  grid-template-columns: 138px minmax(240px, 0.82fr) minmax(430px, 1.45fr) auto;
  gap: 19px;
  align-items: center;
  padding: 19px;
  color: inherit;
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--level-accent) 34%, transparent);
  border-radius: 17px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--level-accent) 12%, #071019), rgba(5, 9, 16, 0.98) 58%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.pivx-growth-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--level-accent) 65%, transparent);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}
.pivx-growth-card--staking { --level-accent: var(--pivx-earn-green); }
.pivx-growth-card--masternode { --level-accent: var(--pivx-earn-gold); }
.pivx-growth-card__icon {
  position: relative;
  display: grid;
  min-height: 140px;
  place-items: center;
  color: var(--level-accent);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--level-accent) 24%, transparent);
  border-radius: 13px;
  background: radial-gradient(circle, color-mix(in srgb, var(--level-accent) 15%, transparent), rgba(3, 11, 14, 0.92));
}
.pivx-growth-card__icon svg {
  width: 68px;
  height: 68px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}
.pivx-growth-card__icon > b {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 6px;
  color: #211700;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: var(--pivx-earn-gold);
}
.pivx-growth-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.pivx-growth-card__copy small {
  color: var(--level-accent);
  font-size: 0.67rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}
.pivx-growth-card__copy > strong {
  margin-top: 5px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  line-height: 1;
}
.pivx-growth-card__copy > span {
  margin-top: 8px;
  color: var(--pivx-earn-copy);
  font-size: 0.98rem;
  line-height: 1.5;
}
.pivx-rate-metrics {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pivx-rate-metrics--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pivx-rate-metrics > span {
  display: flex;
  min-width: 0;
  min-height: 105px;
  flex-direction: column;
  justify-content: center;
  padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--level-accent) 18%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--level-accent) 4%, rgba(2, 5, 10, 0.8));
}
.pivx-rate-metrics small { color: color-mix(in srgb, var(--level-accent) 66%, #7f8791); font-size: 0.61rem; font-weight: 950; letter-spacing: 0.09em; }
.pivx-rate-metrics b { margin-top: 6px; color: #fff; font-size: 1.12rem; line-height: 1.2; }
.pivx-rate-metrics em { margin-top: 5px; color: #aab2bd; font-size: 0.76rem; font-style: normal; line-height: 1.3; }
.pivx-growth-card__link {
  align-self: stretch;
  display: grid;
  min-width: 128px;
  place-items: center;
  padding: 13px;
  color: #06120d;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-align: center;
  border-radius: 11px;
  background: var(--level-accent);
}

.pivx-earn-note {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin: 0 22px 22px;
  padding: 15px 17px;
  color: #7f8997;
  font-size: 0.82rem;
  line-height: 1.45;
  border: 1px solid rgba(190, 147, 253, 0.13);
  border-radius: 11px;
  background: rgba(3, 6, 12, 0.65);
}
.pivx-earn-note > span:last-child { flex: 0 0 auto; color: var(--pivx-earn-gold); text-align: right; }
.pivx-earn-note > span:last-child.is-live { color: var(--pivx-earn-green); }
.pivx-earn-note > span:last-child.is-cached { color: var(--pivx-earn-gold); }

@media (max-width: 980px) {
  .pivx-earn-grid--sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pivx-source-card { min-height: 455px; }
  .pivx-growth-card { grid-template-columns: 125px minmax(0, 1fr); }
  .pivx-rate-metrics,
  .pivx-growth-card__link { grid-column: 1 / -1; }
  .pivx-growth-card__link { min-height: 48px; }
}

@media (max-width: 620px) {
  .pivx-earn-shell { width: min(100% - 20px, 1240px); margin-top: 10px; }
  .pivx-earn-board { border-radius: 19px; }
  .pivx-earn-bar { min-height: 49px; grid-template-columns: auto 1fr; gap: 10px; }
  .pivx-earn-bar > strong { justify-self: end; font-size: 0.62rem; }
  .pivx-earn-bar > span:last-child { display: none; }
  .pivx-level { padding: 27px 11px 31px; }
  .pivx-level::after { top: 18px; right: 11px; font-size: 5rem; }
  .pivx-level__header { align-items: center; grid-template-columns: 92px minmax(0, 1fr); gap: 13px; margin-bottom: 22px; padding: 13px; }
  .pivx-level__number { min-width: 92px; min-height: 68px; justify-self: start; }
  .pivx-level__number small { font-size: 0.58rem; }
  .pivx-level__number strong { font-size: 1.75rem; }
  .pivx-level__stage { font-size: 0.61rem; letter-spacing: 0.12em; }
  .pivx-level__header h2 { font-size: 2rem; }
  .pivx-level__header p { font-size: 0.94rem; }
  .pivx-earn-grid--sources { grid-template-columns: 1fr; gap: 10px; }
  .pivx-source-card { min-height: 0; padding: 13px; }
  .pivx-source-card__body > strong { font-size: 1.9rem; }
  .pivx-source-card__body > span { font-size: 1rem; }
  .pivx-source-card__link { padding-bottom: 7px; font-size: 0.78rem; }
  .pivx-tasks-banner__copy strong { font-size: 1.85rem; }
  .pivx-level-connector { height: 102px; }
  .pivx-growth-card { grid-template-columns: 105px minmax(0, 1fr); gap: 13px; padding: 14px; }
  .pivx-growth-card__icon { min-height: 112px; }
  .pivx-growth-card__icon svg { width: 56px; height: 56px; }
  .pivx-growth-card__copy > strong { font-size: 2rem; }
  .pivx-rate-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .pivx-rate-metrics--three { grid-template-columns: 1fr; }
  .pivx-rate-metrics > span { min-height: 88px; padding: 10px; }
  .pivx-growth-card__link { font-size: 0.78rem; }
  .pivx-earn-note { align-items: flex-start; flex-direction: column; gap: 7px; margin: 0 11px 11px; }
  .pivx-earn-note > span:last-child { text-align: left; }
}

@media (max-width: 390px) {
  .pivx-level__header { grid-template-columns: 1fr; }
  .pivx-level__number { min-width: 106px; }
  .pivx-growth-card { grid-template-columns: 1fr; }
  .pivx-growth-card__icon { min-height: 102px; }
  .pivx-rate-metrics { grid-template-columns: 1fr; }
  .pivx-growth-card__copy { padding-inline: 3px; }
}

@media (prefers-reduced-motion: no-preference) {
  .pivx-level { animation: pivx-level-enter 0.55s backwards; }
  .pivx-level--staking { animation-delay: 90ms; }
  .pivx-level--masternode { animation-delay: 180ms; }
  .pivx-source-card { animation: pivx-card-enter 0.42s backwards; }
  .pivx-source-card:nth-child(2) { animation-delay: 45ms; }
  .pivx-source-card:nth-child(3) { animation-delay: 90ms; }
  .pivx-source-card:nth-child(4) { animation-delay: 135ms; }
  @keyframes pivx-level-enter { from { opacity: 0; transform: translateY(12px); } }
  @keyframes pivx-card-enter { from { opacity: 0; transform: translateY(9px); } }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .pivx-source-card:hover,
  .pivx-growth-card:hover { transform: none; }
}
