:root {
  color-scheme: dark;
  --bg: #060806;
  --panel: rgba(12, 20, 16, 0.84);
  --panel-strong: #101a14;
  --line: rgba(213, 255, 140, 0.18);
  --text: #f3ffe9;
  --muted: #abc2a8;
  --green: #45ff8a;
  --green-deep: #0f8f4b;
  --gold: #ffd05a;
  --gold-strong: #ffb719;
  --orange: #ff7a2e;
  --red: #ff4f5e;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  font-family:
    "Aptos Display", "SF Pro Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 12%, rgba(69, 255, 138, 0.13), transparent 28rem),
    linear-gradient(135deg, #050705 0%, #0a120d 42%, #111006 100%);
  color: var(--text);
  overflow-x: hidden;
}

main,
.hero,
.registration-band,
.how-section,
.ranking-section,
.dashboard,
.rules-band {
  max-width: 100vw;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(69, 255, 138, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 208, 90, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 7, 5, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.nav a:focus {
  color: var(--text);
}

.topbar-cta,
.primary-action,
.secondary-action,
.registration-form button,
.login-form button,
.ranking-toolbar button,
#saveBrokerLinks,
.copyBrokerLink {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.topbar-cta {
  justify-self: end;
  padding: 0 18px;
  color: #071009;
  background: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(30px, 5vw, 80px);
  min-height: calc(100vh - 70px);
  padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 72px) 42px;
  align-items: center;
}

.hero > *,
.dashboard > *,
.registration-form > *,
.podium > *,
.rules-band > * {
  min-width: 0;
}

.hero-copy {
  width: 100%;
  max-width: 820px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 780px;
  font-size: clamp(54px, 6vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
  overflow-wrap: normal;
}

.hero-lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.primary-action {
  padding: 0 24px;
  color: #031006;
  background: linear-gradient(135deg, var(--green), #c5ff60);
  box-shadow: 0 18px 48px rgba(69, 255, 138, 0.2);
}

.secondary-action {
  padding: 0 22px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-strip span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.metric-strip strong {
  color: var(--text);
}

.prize-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 208, 90, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 208, 90, 0.08), transparent 48%),
    rgba(7, 11, 8, 0.7);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 208, 90, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 208, 90, 0.08), transparent 42%),
    rgba(7, 11, 8, 0.82);
  box-shadow: var(--shadow);
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-header strong {
  color: var(--gold);
  font-size: 16px;
}

.auth-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 0.98;
}

.auth-copy p:last-child {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.auth-stage .access-grid,
.auth-stage .registration-form {
  grid-template-columns: 1fr;
}

.auth-stage .login-form,
.auth-stage .registration-form {
  box-shadow: none;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 6, 3, 0.64);
}

.auth-switch button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
}

.auth-switch button.active {
  color: #051007;
  background: var(--gold);
}

.auth-panel[hidden] {
  display: none !important;
}

.auth-session {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(69, 255, 138, 0.22);
  border-radius: 8px;
  background: rgba(69, 255, 138, 0.08);
}

.auth-session[hidden] {
  display: none !important;
}

.auth-session span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.auth-session strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.05;
}

.auth-session p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-session-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.auth-session-actions .primary-action {
  justify-content: center;
  min-height: 44px;
}

.auth-session-actions button {
  min-height: 44px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

body.is-authenticated .auth-switch,
body.is-authenticated .access-grid {
  display: none;
}

.prize-range-card {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 14px;
  min-width: 0;
  max-width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 208, 90, 0.28);
  border-radius: 8px;
  background: rgba(255, 208, 90, 0.08);
}

.prize-range-card span,
.prize-range-card small {
  display: block;
  color: var(--muted);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.prize-range-card span {
  font-size: 12px;
  text-transform: uppercase;
}

.prize-range-card strong {
  color: var(--gold);
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 0.96;
}

.stage-glow {
  position: absolute;
  inset: auto 8% -18% 8%;
  height: 52%;
  background: radial-gradient(ellipse, rgba(255, 208, 90, 0.32), transparent 64%);
  animation: stagePulse 4s ease-in-out infinite;
}

.deadline-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(69, 255, 138, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.deadline-card span {
  color: var(--muted);
}

.deadline-card strong {
  color: var(--green);
  font-size: clamp(18px, 2.2vw, 28px);
}

.podium-preview {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  align-items: end;
  gap: 12px;
  margin-top: 70px;
}

.podium-card {
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 230px;
  padding: 18px;
  border: 1px solid rgba(255, 208, 90, 0.34);
  border-radius: 8px;
  background: linear-gradient(160deg, #ffd96c 0%, #a86508 100%);
  color: #191105;
  box-shadow: 0 24px 58px rgba(255, 183, 25, 0.14);
  animation: floatPodium 3.5s ease-in-out infinite;
}

.podium-card.first {
  min-height: 330px;
  background: linear-gradient(160deg, #fff1a1 0%, #ffb719 50%, #8f5b00 100%);
}

.podium-card.third {
  min-height: 190px;
}

.podium-card span {
  font-size: 40px;
  font-weight: 950;
}

.podium-card strong {
  margin-top: 18px;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.podium-card small {
  margin-top: 10px;
  font-weight: 850;
}

.registration-band,
.how-section,
.ranking-section,
.dashboard,
.rules-band {
  padding: 70px clamp(18px, 5vw, 72px);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.how-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 208, 90, 0.2);
  border-radius: 8px;
  background: rgba(255, 208, 90, 0.06);
}

.how-grid span {
  color: var(--gold);
  font-size: 30px;
  font-weight: 950;
}

.how-grid h3 {
  margin: 16px 0 8px;
  font-size: 22px;
}

.how-grid p {
  color: var(--muted);
  line-height: 1.48;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading.compact {
  display: block;
  margin-bottom: 18px;
}

.section-heading.compact h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.login-form,
.registration-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-form {
  align-content: start;
  grid-template-columns: 1fr;
  border-color: rgba(255, 208, 90, 0.24);
  background: rgba(255, 208, 90, 0.06);
}

.login-form h3 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 40px);
}

.registration-form {
  grid-template-columns: 1fr;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  min-height: 50px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  outline: none;
  padding: 0 14px;
  color: var(--text);
  background: rgba(2, 6, 3, 0.72);
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(69, 255, 138, 0.12);
}

.registration-form button,
.login-form button {
  align-self: end;
  color: #051007;
  background: var(--gold);
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.panel-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.is-hidden {
  display: none !important;
}

.locked-panel {
  display: grid;
  align-content: center;
  min-height: 430px;
  gap: 14px;
}

.locked-panel h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.98;
}

.locked-panel p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.5;
}

.locked-panel .primary-action {
  justify-self: start;
}

.profile-card h2 {
  font-size: clamp(30px, 3.4vw, 54px);
  margin-bottom: 6px;
}

.profile-email {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.profile-meta-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 850;
}

.profile-meta-grid strong {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--green);
}

#saveBrokerLinks,
.copyBrokerLink {
  padding: 0 14px;
  color: #061008;
  background: var(--green);
}

.broker-link-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.link-config-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(255, 208, 90, 0.28);
  border-radius: 8px;
  background: rgba(255, 208, 90, 0.09);
}

.link-config-copy {
  display: grid;
  gap: 6px;
  align-self: start;
}

.link-config-copy h3 {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.25;
  color: var(--text);
}

.link-config-copy .eyebrow {
  margin: 0;
}

.broker-link-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(69, 255, 138, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.broker-link-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.link-warning {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 122, 46, 0.24);
  border-radius: 8px;
  color: #ffd7be;
  background: rgba(255, 122, 46, 0.08);
  font-size: 13px;
  line-height: 1.45;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.stats-grid article {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.stats-grid span,
.activity-row span,
.ranking-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stats-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 36px;
}

.stat-pop {
  animation: statPop 420ms ease;
}

.activity-feed {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.history-status {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.history-status.live {
  border-color: rgba(69, 255, 138, 0.24);
  color: var(--green);
  background: rgba(69, 255, 138, 0.07);
}

.history-status.warning {
  border-color: rgba(255, 122, 46, 0.28);
  color: #ffd7be;
  background: rgba(255, 122, 46, 0.08);
}

.history-status.loading {
  color: var(--gold);
}

.history-status.locked {
  border-color: rgba(255, 208, 90, 0.28);
  color: #ffe7a7;
  background: rgba(255, 208, 90, 0.08);
}

.history-table,
.history-rows {
  display: grid;
  gap: 8px;
}

.history-head,
.history-row {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 0.9fr 0.9fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.history-head {
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.history-row {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.history-row.first_deposit,
.history-row.low_deposit {
  border-color: rgba(69, 255, 138, 0.2);
  background: rgba(69, 255, 138, 0.06);
}

.history-row span,
.history-row strong,
.history-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-row em {
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.empty-history {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px dashed rgba(255, 208, 90, 0.3);
  border-radius: 8px;
  color: var(--muted);
}

.empty-history strong {
  color: var(--text);
}

.activity-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 24px var(--green);
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.winner-card {
  position: relative;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(255, 208, 90, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 241, 161, 0.92), rgba(255, 183, 25, 0.72)),
    #221706;
  color: #1b1205;
  overflow: hidden;
}

.winner-card::after {
  content: "";
  position: absolute;
  inset: -60% auto auto -30%;
  width: 80%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: rotate(22deg);
  animation: shine 4s ease-in-out infinite;
}

.winner-card .rank {
  font-size: 44px;
  font-weight: 950;
}

.winner-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 30px;
  overflow-wrap: anywhere;
}

.winner-card small {
  font-weight: 900;
}

.winner-card.empty-card {
  grid-column: 1 / -1;
  max-width: 560px;
  margin: 0 auto;
  border-color: rgba(34, 255, 136, 0.26);
}

.country-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  font-weight: 900;
}

.ranking-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 22px 0 12px;
  color: var(--muted);
}

.ranking-toolbar button {
  padding: 0 16px;
  color: #081008;
  background: var(--green);
}

.ranking-list {
  display: grid;
  gap: 8px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 110px 130px 120px;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.ranking-row.top3 {
  border-color: rgba(255, 208, 90, 0.35);
  background: linear-gradient(90deg, rgba(255, 208, 90, 0.12), rgba(255, 255, 255, 0.04));
}

.ranking-row.empty-ranking {
  border-color: rgba(34, 255, 136, 0.22);
  background: rgba(34, 255, 136, 0.06);
}

.ranking-row strong {
  font-size: 18px;
}

.score {
  color: var(--green);
  font-weight: 950;
}

.live-feed-section {
  padding: 50px clamp(18px, 5vw, 72px) 30px;
}

.live-feed-section .section-heading.compact {
  margin-bottom: 18px;
}

.live-feed-lead {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 640px;
}

.live-feed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.live-feed-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(2, 6, 3, 0.64);
}

.live-feed-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.live-feed-tabs button.active {
  color: #061008;
  background: var(--green);
}

.live-feed-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(69, 255, 138, 0.28);
  border-radius: 999px;
  color: var(--green);
  background: rgba(69, 255, 138, 0.08);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.live-feed-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: livePulse 1.5s ease-in-out infinite;
}

.live-feed-status.offline {
  border-color: rgba(255, 122, 46, 0.36);
  color: var(--orange);
  background: rgba(255, 122, 46, 0.08);
}

.live-feed-status.offline::before {
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: none;
}

.live-feed {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.live-feed-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  animation: feedIn 320ms ease;
}

.live-feed-item.first_deposit {
  border-color: rgba(69, 255, 138, 0.34);
  background: linear-gradient(90deg, rgba(69, 255, 138, 0.14), rgba(255, 255, 255, 0.04));
}

.live-feed-item.low_deposit {
  border-color: rgba(255, 208, 90, 0.32);
  background: rgba(255, 208, 90, 0.08);
}

.live-feed-item.registration {
  border-color: rgba(255, 255, 255, 0.14);
}

.live-feed-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  font-size: 18px;
  font-weight: 950;
  background: rgba(0, 0, 0, 0.3);
}

.live-feed-item.first_deposit .live-feed-icon {
  background: rgba(69, 255, 138, 0.18);
  color: var(--green);
}

.live-feed-item.low_deposit .live-feed-icon {
  background: rgba(255, 208, 90, 0.22);
  color: var(--gold);
}

.live-feed-item.registration .live-feed-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.live-feed-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.live-feed-body strong {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-feed-body span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.live-feed-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.live-feed-empty {
  padding: 22px;
  border: 1px dashed rgba(69, 255, 138, 0.28);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.rules-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 90px;
}

.rules-band article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.rules-band span {
  color: var(--gold);
  font-size: 34px;
  font-weight: 950;
}

.rules-band h3 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.rules-band p {
  color: var(--muted);
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(69, 255, 138, 0.22);
  border-radius: 8px;
  background: rgba(6, 12, 8, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes stagePulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes floatPodium {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-20%) rotate(22deg);
  }
  55%,
  100% {
    transform: translateX(210%) rotate(22deg);
  }
}

@keyframes statPop {
  0% {
    transform: scale(0.94);
    color: var(--gold);
  }
  60% {
    transform: scale(1.08);
    color: var(--green);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes feedIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .dashboard,
  .section-heading,
  .access-grid,
  .registration-form,
  .link-config-row,
  .how-grid,
  .rules-band {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-areas:
      "auth"
      "copy";
  }

  .registration-form button,
  .login-form button {
    min-height: 52px;
  }

  .prize-stage {
    min-height: 0;
  }

  .hero-copy {
    grid-area: copy;
    order: 2;
  }

  .auth-stage {
    grid-area: auth;
    order: 1;
    min-height: 0;
    min-width: 0;
  }

  .ranking-row {
    grid-template-columns: 54px minmax(0, 1fr) 76px;
  }

  .profile-meta-grid,
  .history-head,
  .history-row {
    grid-template-columns: 1fr 1fr;
  }

  .ranking-row .hide-mobile {
    display: none;
  }

  .link-config-row {
    grid-template-columns: 1fr 1fr;
  }

  .link-config-copy {
    grid-column: 1 / -1;
  }

  #saveBrokerLinks {
    grid-column: 1 / -1;
    min-height: 48px;
  }
}

@media (max-width: 640px) {
  body {
    width: 100%;
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-content: start;
    padding-inline: 14px;
    overflow: hidden;
  }

  .brand span {
    display: none;
  }

  .topbar .topbar-cta {
    display: none !important;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "auth"
      "copy";
    padding-top: 36px;
    padding-inline: 14px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .hero-copy {
    width: 100%;
    max-width: calc(100vw - 48px);
  }

  .auth-stage {
    width: 100%;
    max-width: 360px;
    justify-self: start;
    padding: 18px;
  }

  .auth-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .auth-copy h2 {
    font-size: 29px;
  }

  .auth-switch button {
    min-width: 0;
    padding-inline: 4px;
    font-size: 13px;
    white-space: normal;
  }

  h1 {
    max-width: calc(100vw - 48px);
    font-size: clamp(29px, 8.1vw, 32px);
    line-height: 1;
    overflow-wrap: break-word;
  }

  .hero-lead {
    width: 100%;
    max-width: calc(100vw - 48px);
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .metric-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .metric-strip span {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .deadline-card {
    align-items: start;
    flex-direction: column;
  }

  .deadline-card strong {
    font-size: 24px;
  }

  .prize-stage {
    width: 100%;
    max-width: 100%;
    margin-top: 28px;
    padding: 14px;
  }

  .podium-preview,
  .podium {
    grid-template-columns: 1fr;
  }

  .podium-preview {
    margin-top: 18px;
  }

  .podium-card,
  .podium-card.first,
  .podium-card.third {
    min-height: 160px;
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-meta-grid,
  .history-row {
    grid-template-columns: 1fr;
  }

  .history-head {
    display: none;
  }

  .ranking-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .broker-link-card {
    grid-template-columns: 1fr;
  }

  .link-config-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .link-config-copy h3 {
    font-size: 16px;
  }

  #saveBrokerLinks {
    width: 100%;
    min-height: 50px;
  }

  .live-feed-section {
    padding: 36px 14px 22px;
  }

  .live-feed-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .live-feed-tabs {
    justify-content: center;
  }

  .live-feed-tabs button {
    flex: 1;
    min-height: 42px;
  }

  .live-feed-status {
    align-self: center;
  }

  .live-feed {
    max-height: 440px;
  }

  .live-feed-item {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon body"
      "time time";
    gap: 8px 12px;
  }

  .live-feed-icon {
    grid-area: icon;
  }

  .live-feed-body {
    grid-area: body;
  }

  .live-feed-time {
    grid-area: time;
    text-align: right;
  }
}

/* =========================================================================
   V16 — UX-first overrides (auto-modal, persistent session, copy/edit links)
   Appended block. These rules win because they come last.
   ========================================================================= */

/* Show/hide by auth state */
body.state-public [data-auth-only] { display: none !important; }
body.state-authenticated [data-public-only] { display: none !important; }
body.modal-open { overflow: hidden; }

/* Topbar user chip */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
}
.user-chip .user-flag { font-size: 18px; line-height: 1; }
.user-chip .user-name { font-size: 14px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .btn-text {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
}
.user-chip .btn-text:hover { color: #fff; }

/* =========================
   AUTH MODAL
   ========================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: modal-fade 180ms ease-out;
}
.modal-backdrop[hidden] { display: none !important; }

@keyframes modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, #141a2c 0%, #0c1020 100%);
  border: 1px solid rgba(58, 144, 255, 0.25);
  border-radius: 20px;
  padding: 28px 26px 26px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  color: #fff;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  animation: modal-pop 220ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modal-pop {
  from { transform: translateY(10px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)   scale(1);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.12); }

.modal-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
}
.modal-tabs .tab {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 160ms ease;
}
.modal-tabs .tab.active {
  background: #3a90ff;
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(58, 144, 255, 0.6);
}

.modal-title {
  margin: 4px 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.modal-sub {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 14px;
}
.auth-form[hidden] { display: none; }
.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}
.auth-form input,
.auth-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 140ms ease, background 140ms ease;
}
.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: #3a90ff;
  background: rgba(58, 144, 255, 0.08);
}
.auth-form .form-hint {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  font-size: 12px;
}
.auth-form button[type="submit"] {
  margin-top: 6px;
  width: 100%;
}

/* =========================
   ACCOUNT PANEL
   ========================= */
.account {
  padding: 64px 28px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.account-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 26px;
}
.account-header h2 {
  margin: 6px 0 4px;
  font-size: 28px;
  font-weight: 800;
}
.account-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
.account-rank {
  text-align: right;
  background: rgba(58, 144, 255, 0.12);
  border: 1px solid rgba(58, 144, 255, 0.3);
  border-radius: 16px;
  padding: 14px 18px;
  min-width: 130px;
}
.account-rank span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}
.account-rank strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin-top: 4px;
}

.account-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-areas:
    "links stats"
    "history history";
  gap: 20px;
}
.card-links { grid-area: links; }
.card-stats { grid-area: stats; }
.card-history { grid-area: history; }

.card-head .eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(58, 144, 255, 0.9);
  font-weight: 700;
}
.card-head h3 {
  margin: 6px 0 6px;
  font-size: 18px;
  font-weight: 700;
}
.card-sub {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

/* Link cards */
.link-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.link-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
}
.link-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.link-broker {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.link-tag {
  font-size: 13px;
  font-weight: 600;
  color: #3a90ff;
  background: rgba(58, 144, 255, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}
.link-url {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.link-url code {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-family: "SF Mono", "Menlo", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
  white-space: nowrap;
}
.copy-link {
  cursor: pointer;
  border: 0;
  background: #3a90ff;
  color: #fff;
  font-weight: 700;
}
.copy-link:hover { background: #2e7be0; }
.copy-link:active { transform: scale(0.97); }

/* Link edit */
.link-edit {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
}
.link-edit label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
  font-weight: 700;
}
.link-edit-row {
  display: flex;
  gap: 10px;
}
.link-edit-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
  min-width: 0;
}
.link-edit-row input:focus {
  outline: none;
  border-color: #3a90ff;
}
.link-edit-row .btn-outline {
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
}
.link-edit-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Stats list */
.stats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.stats-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.stats-list li span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}
.stats-list li strong {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

/* History */
.history-status {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
}
.history-status.live   { border-color: rgba(46, 200, 110, 0.4);  background: rgba(46, 200, 110, 0.08);  color: #6ee29a; }
.history-status.warning{ border-color: rgba(255, 156, 60, 0.45); background: rgba(255, 156, 60, 0.08);  color: #ffb265; }
.history-status.loading{ border-color: rgba(58, 144, 255, 0.4);  background: rgba(58, 144, 255, 0.08);  color: #76aeff; }
.history-rows {
  display: grid;
  gap: 8px;
}
.history-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 13px;
}
.history-empty {
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

/* =========================
   PRIZES — V16.0.2
   ========================= */
.prizes {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 28px 28px;
  overflow: hidden;
}
.prizes::before {
  content: "";
  position: absolute;
  inset: 80px 8% auto;
  height: 190px;
  background:
    radial-gradient(circle at 28% 50%, rgba(110, 226, 154, 0.18), transparent 34%),
    radial-gradient(circle at 72% 40%, rgba(255, 156, 60, 0.2), transparent 38%);
  filter: blur(18px);
  opacity: 0.72;
  pointer-events: none;
}
.prize-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr 1fr 1fr;
  grid-template-areas:
    "first second third"
    "note note note";
  gap: 14px;
  margin-top: 24px;
}
.prize-card,
.prize-note {
  position: relative;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
}
.prize-card {
  --prize-accent: #6ee29a;
  display: grid;
  align-content: end;
  min-height: 320px;
  padding: 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    #10151f;
  box-shadow: 0 24px 70px -42px rgba(0, 0, 0, 0.9);
  isolation: isolate;
  animation: prizeFloat 5.6s ease-in-out infinite;
}
.prize-card::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto;
  height: 56%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 62%);
  transform: translate3d(-18%, 0, 0);
  animation: prizeSweep 5.4s ease-in-out infinite;
  z-index: -1;
}
.prize-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--prize-accent), transparent);
  opacity: 0.42;
}
.prize-card-1 {
  --prize-accent: #ffc53d;
  grid-area: first;
  min-height: 370px;
  border-color: rgba(255, 197, 61, 0.48);
  color: #ffc53d;
  background:
    linear-gradient(180deg, rgba(255, 197, 61, 0.2), rgba(255, 197, 61, 0.04) 56%),
    #11130f;
}
.prize-card-2 {
  --prize-accent: #c8d7e6;
  grid-area: second;
  animation-delay: 0.18s;
  border-color: rgba(172, 198, 220, 0.36);
  color: #c8d7e6;
}
.prize-card-3 {
  --prize-accent: #ff9c3c;
  grid-area: third;
  animation-delay: 0.34s;
  border-color: rgba(255, 156, 60, 0.36);
  color: #ff9c3c;
}
.prize-rank {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #081008;
  background: var(--prize-accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.prize-medal {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: #081008;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.88), transparent 21%),
    var(--prize-accent);
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 14px 34px -18px var(--prize-accent);
}
.prize-title {
  display: block;
  max-width: 78%;
  color: #fff;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.02;
}
.prize-amount {
  display: block;
  margin-top: 12px;
  color: var(--prize-accent);
  font-size: clamp(30px, 4.8vw, 58px);
  font-weight: 950;
  line-height: 0.95;
}
.prize-label {
  max-width: 34ch;
  margin: 14px 0 18px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}
.prize-note {
  grid-area: note;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
  padding: 18px 20px;
  color: #fff;
  border: 1px solid rgba(110, 226, 154, 0.22);
  background: rgba(110, 226, 154, 0.07);
}
.prize-note span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  min-width: 74px;
  min-height: 74px;
  border-radius: 16px;
  color: #081008;
  background: #6ee29a;
  font-weight: 950;
}
.prize-note strong {
  font-size: 17px;
}
.prize-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
}

@keyframes prizeFloat {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes prizeSweep {
  0%,
  100% { transform: translate3d(-20%, 0, 0); opacity: 0.45; }
  50% { transform: translate3d(18%, 10%, 0); opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .prize-card,
  .prize-card::before {
    animation: none;
  }
}

/* =========================
   PODIUM + RANKING
   ========================= */
.ranking { padding: 64px 28px 28px; max-width: 1180px; margin: 0 auto; }
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 18px;
}
.podium-card {
  background: linear-gradient(180deg, rgba(58, 144, 255, 0.12), rgba(58, 144, 255, 0.03));
  border: 1px solid rgba(58, 144, 255, 0.25);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  color: #fff;
}
.podium-card.podium-1 { border-color: rgba(255, 200, 60, 0.5);  background: linear-gradient(180deg, rgba(255, 200, 60, 0.15), rgba(255, 200, 60, 0.03)); }
.podium-card.podium-2 { border-color: rgba(200, 210, 230, 0.4); }
.podium-card.podium-3 { border-color: rgba(205, 130, 80, 0.4); }
.podium-rank { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.65); }
.podium-card strong { display: block; margin: 8px 0 4px; font-size: 17px; }
.podium-country { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.65); }
.podium-score { display: block !important; margin-top: 10px !important; font-size: 22px !important; color: #6ee29a !important; }
.podium-empty {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(110, 226, 154, 0.32);
  border-style: dashed;
}
.podium-empty .podium-rank { color: #6ee29a; }
.podium-empty strong { color: #fff; }
.podium-empty p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  line-height: 1.5;
}

.ranking-list { display: grid; gap: 8px; }
.ranking-row {
  display: grid;
  grid-template-columns: 60px 1.6fr 1fr 100px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.ranking-row.top3 { border-color: rgba(58, 144, 255, 0.35); background: rgba(58, 144, 255, 0.06); }
.ranking-row .rank-pos { font-weight: 800; font-size: 16px; }
.ranking-row .rank-who strong { display: block; font-size: 14px; }
.ranking-row .rank-who span { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.ranking-row .rank-country { font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.ranking-row .score { font-size: 16px; font-weight: 800; color: #6ee29a; text-align: right; }
.ranking-empty { background: rgba(255, 255, 255, 0.02); border-style: dashed; }

/* =========================
   LIVE FEED
   ========================= */
.live { padding: 56px 28px 28px; max-width: 1180px; margin: 0 auto; }
.live-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 14px;
  flex-wrap: wrap;
}
.live-toolbar .tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.live-toolbar .tab {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.live-toolbar .tab.active {
  background: #3a90ff;
  color: #fff;
}
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #6ee29a;
}
.live-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee29a;
  animation: pulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(110, 226, 154, 0.6);
}
.live-status.offline { color: #ff9c3c; }
.live-status.offline::before { background: #ff9c3c; box-shadow: none; animation: none; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(110, 226, 154, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(110, 226, 154, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(110, 226, 154, 0);   }
}

.live-feed {
  display: grid;
  gap: 8px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
}
.feed-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.feed-item.feed-first_deposit { border-color: rgba(110, 226, 154, 0.35); background: rgba(46, 200, 110, 0.06); }
.feed-item.feed-low_deposit   { border-color: rgba(255, 156, 60, 0.35);  background: rgba(255, 156, 60, 0.05); }
.feed-icon { font-size: 22px; text-align: center; }
.feed-body strong { display: block; font-size: 14px; }
.feed-body .feed-meta { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }
.feed-time { font-size: 12px; color: rgba(255, 255, 255, 0.55); white-space: nowrap; }
.feed-empty {
  padding: 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}
.feed-empty strong { display: block; margin-bottom: 4px; }
.feed-empty span { font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* =========================
   TOAST
   ========================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #111726;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(58, 144, 255, 0.35);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 10000;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================
   MOBILE — V16
   ========================= */
@media (max-width: 760px) {
  .prizes {
    padding: 40px 16px 24px;
  }
  .prize-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "first"
      "second"
      "third"
      "note";
  }
  .prize-card,
  .prize-card-1 {
    min-height: 280px;
  }
  .prize-title {
    max-width: 100%;
    padding-right: 88px;
  }
  .prize-note {
    grid-template-columns: 1fr;
  }
  .prize-note span {
    grid-row: auto;
    min-height: 52px;
  }

  .account-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "links"
      "stats"
      "history";
  }
  .account-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .account-rank { width: 100%; text-align: left; }

  .podium { grid-template-columns: 1fr; }
  .ranking-row {
    grid-template-columns: 44px 1fr 80px;
  }
  .ranking-row .rank-country { display: none; }
  .ranking-row .hide-mobile { display: none; }

  .history-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "event status"
      "trader broker";
    gap: 6px 10px;
  }
  .history-row .history-event       { grid-area: event; }
  .history-row .history-status-tag  { grid-area: status; text-align: right; }
  .history-row .history-trader      { grid-area: trader; }
  .history-row .history-broker      { grid-area: broker; text-align: right; }
}

@media (max-width: 540px) {
  .account { padding: 40px 16px 24px; }
  .ranking { padding: 40px 16px 24px; }
  .live    { padding: 40px 16px 24px; }

  .prize-card {
    padding: 18px;
  }
  .prize-medal {
    width: 58px;
    height: 58px;
    font-size: 18px;
  }
  .prize-title {
    padding-right: 66px;
  }
  .prize-amount {
    font-size: 36px;
  }

  .modal { padding: 22px 18px 20px; max-width: 100%; border-radius: 16px; }
  .modal-title { font-size: 19px; }
  .modal-sub { font-size: 13px; margin-bottom: 16px; }

  .link-url { flex-direction: column; align-items: stretch; }
  .link-url code { font-size: 11px; }
  .link-url .btn-sm { width: 100%; }

  .link-edit-row { flex-direction: column; }
  .link-edit-row .btn-outline { width: 100%; text-align: center; }

  .live-toolbar { flex-direction: column; align-items: stretch; }
  .live-toolbar .tabs { justify-content: space-between; }
  .live-toolbar .tab { flex: 1; text-align: center; }
  .live-feed { max-height: 460px; }

  .feed-item {
    grid-template-columns: 32px 1fr;
    grid-template-areas:
      "icon body"
      "time time";
    gap: 6px 10px;
  }
  .feed-item .feed-icon { grid-area: icon; font-size: 20px; }
  .feed-item .feed-body { grid-area: body; }
  .feed-item .feed-time { grid-area: time; text-align: right; }

  .user-chip .user-name { max-width: 96px; }
  .topbar-actions .btn-ghost,
  .topbar-actions .btn-primary { padding: 8px 12px; font-size: 13px; }

  .stats-list li { padding: 10px 12px; }
  .stats-list li strong { font-size: 16px; }

  .toast { left: 16px; right: 16px; bottom: 16px; transform: translateY(20px); max-width: none; }
  .toast.show { transform: translateY(0); }
}
