*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --white:    #FFFFFF;
  --off:      #F7F7F7;
  --ink:      #0A0A0A;
  --ink2:     #1A1A1A;
  --muted:    #6B6B6B;
  --subtle:   #D4D4D4;
  --line:     #E8E8E8;
  --gold:     #B8962E;
  --gold-bg:  #FBF7EE;
  --green:    #16A34A;
  --green-bg: #F0FDF4;
  --radius:   10px;
  --shadow:   0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:0 8px 40px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky; top:0; z-index:100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 60px;
}

.nav-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 21px; letter-spacing: -.3px;
}

.nav-logo sup {
  font-family: 'Geist', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: .5px; color: var(--muted);
  vertical-align: top; margin-left: 3px;
}

.nav-badge {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 13px; font-size: 12px; font-weight: 500; color: var(--muted);
}

.nav-badge-dot { width:6px; height:6px; border-radius:50%; background:var(--ink); }

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.hero-copy {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 64px 52px 64px 60px;
  border-right: 1px solid var(--line);
  position: relative;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--white); background: var(--ink);
  padding: 5px 12px; border-radius: 100px;
  margin-bottom: 28px; width: fit-content;
}

.hero-eyebrow .eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #C9A84C; flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

.hero-h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(48px, 4.8vw, 78px);
  line-height: 1.0; letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero-h1 em { font-style: italic; color: var(--muted); }

.hero-body {
  font-size: 15px; color: var(--muted);
  line-height: 1.7; max-width: 360px; margin-bottom: 36px;
}

.hero-body strong { color: var(--ink); font-weight: 600; }

/* Prize floating chips */
.hero-prizes-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 36px;
}

.prize-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  animation: chipFloat ease-in-out infinite;
}

.prize-chip:nth-child(1) { animation-duration: 3.5s; animation-delay: 0s; }
.prize-chip:nth-child(2) { animation-duration: 4.1s; animation-delay: .6s; }
.prize-chip:nth-child(3) { animation-duration: 3.8s; animation-delay: 1.1s; }
.prize-chip:nth-child(4) { animation-duration: 4.4s; animation-delay: .3s; }

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

.prize-chip .chip-icon { font-size: 16px; line-height: 1; }
.prize-chip.chip-gold { border-color: rgba(201,168,76,.4); background: #FFFBF0; color: #8A6B1A; }
.prize-chip.chip-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.prize-chip.chip-hero {
  font-size: 15px; padding: 11px 18px;
  box-shadow: 0 4px 16px rgba(201,168,76,.25);
  border-width: 1.5px; border-color: rgba(201,168,76,.6);
}
.prize-chip.chip-hero .chip-icon { font-size: 18px; }

/* Countdown */
.countdown-wrap { margin-bottom: 10px; }

.countdown-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px;
}

.countdown { display: flex; gap: 8px; margin-bottom: 10px; }

.cd-cell {
  display: flex; flex-direction: column; align-items: center;
  min-width: 62px; padding: 14px 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  position: relative; overflow: hidden;
}

.cd-cell::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #C9A84C, #E8C96A);
  opacity: .6;
}

.cd-n {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 32px; color: var(--ink); line-height: 1;
}

.cd-l {
  font-size: 8px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--subtle); margin-top: 5px;
}

.cd-note { font-size: 12px; color: var(--muted); }

/* ── HERO RIGHT ── */
.hero-right { display: flex; flex-direction: column; background: var(--off); overflow-y: auto; }

/* ── PRIZE STRIP ── */
.prize-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.prize-item {
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  text-align: center;
  position: relative;
}

.prize-item:last-child { border-right: none; }

.pi-val {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 26px; color: var(--ink);
  line-height: 1; display: block; margin-bottom: 4px;
}

.prize-item.star .pi-val { color: var(--gold); }
.prize-item.ps5-item .pi-val { font-size: 17px; letter-spacing: -.3px; }

.pi-label { font-size: 10px; color: var(--muted); line-height: 1.4; }

/* ── FORM BLOCK ── */
.form-wrap {
  flex: 0 0 auto; display: flex; flex-direction: column; justify-content: flex-start;
  padding: 40px 44px 44px; background: var(--white);
}

.form-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 26px; letter-spacing: -.3px; margin-bottom: 6px;
}

.form-sub {
  font-size: 13px; color: var(--muted);
  margin-bottom: 28px; line-height: 1.6;
}

.form-sub a {
  color: var(--ink); font-weight: 500;
  text-decoration-thickness: 1px; text-underline-offset: 2px; cursor: pointer;
}

.step-row { margin-bottom: 16px; }

.step-header {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; color: var(--ink);
  margin-bottom: 9px; letter-spacing: .1px;
}

.step-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.okx-cta {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 13px 16px;
  background: var(--ink); color: var(--white);
  border: none; border-radius: 8px; cursor: pointer;
  text-decoration: none; font-size: 14px; font-weight: 500;
  font-family: 'Geist', sans-serif;
  transition: background .15s, transform .15s;
}

.okx-cta:hover { background: var(--ink2); transform: translateY(-1px); }
.okx-left { display: flex; align-items: center; gap: 9px; }

.okx-pill {
  background: rgba(255,255,255,.12); border-radius: 4px;
  padding: 2px 8px; font-size: 11px; font-weight: 600; letter-spacing: .5px;
}

.okx-arrow { font-size: 16px; transition: transform .2s; }
.okx-cta:hover .okx-arrow { transform: translate(2px,-2px); }

.uid-row { display: flex; gap: 8px; }

.uid-field {
  flex: 1; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--off); font-family: 'Geist', sans-serif;
  font-size: 14px; font-weight: 500; color: var(--ink); outline: none;
  transition: border-color .15s, background .15s; letter-spacing: .3px;
}

.uid-field:focus { border-color: var(--ink); background: var(--white); }
.uid-field::placeholder { color: #bbb; font-weight: 400; }

.btn-submit {
  padding: 12px 20px;
  background: var(--ink); color: var(--white);
  border: none; border-radius: 8px;
  font-family: 'Geist', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .15s;
}

.btn-submit:hover { background: var(--ink2); transform: translateY(-1px); }

.uid-hint { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.uid-hint a { color: var(--muted); text-decoration: underline; cursor: pointer; text-underline-offset: 2px; }

/* ── DASHBOARD ── */
#dashboard { display: none; }

.dash-wrap {
  padding: 40px 44px 44px; background: var(--white);
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 18px;
}

.status-card {
  border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden;
}

.status-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--off); border-bottom: 1px solid var(--line);
}

.status-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
}

.status-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 100px;
}

.status-badge::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.status-badge.eligible { background: var(--green-bg); color: var(--green); }
.status-badge.pending  { background: var(--gold-bg);  color: var(--gold); }

.status-body {
  padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}

.stat-item-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}

.stat-item-val {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px; color: var(--ink); letter-spacing: -.3px;
}

.stat-item-val.mono {
  font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 1px;
}

.dash-cd {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--off);
}

.dash-cd-label { font-size: 12px; font-weight: 500; color: var(--muted); flex-shrink: 0; }
.dash-cd-cells { display: flex; gap: 6px; }

.dash-cd-cell {
  display: flex; align-items: center; gap: 3px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}

.dash-cd-cell span { font-size: 10px; font-weight: 400; color: var(--muted); }

.ref-card { border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.ref-top { padding: 14px 18px 10px; border-bottom: 1px solid var(--line); background: var(--off); }
.ref-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.ref-sub   { font-size: 12px; color: var(--muted); }

.ref-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }

.ref-link-row { display: flex; gap: 8px; align-items: center; }

.ref-link-field {
  flex: 1; padding: 9px 12px;
  background: var(--off); border: 1.5px solid var(--line); border-radius: 7px;
  font-size: 11px; font-weight: 500; color: var(--muted);
  font-family: 'Geist', monospace; letter-spacing: .3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.btn-copy {
  padding: 9px 16px; background: var(--ink); color: var(--white);
  border: none; border-radius: 7px; font-size: 12px; font-weight: 600;
  font-family: 'Geist', sans-serif; cursor: pointer; white-space: nowrap;
  transition: background .15s; flex-shrink: 0;
}

.btn-copy:hover { background: var(--ink2); }
.btn-copy.copied { background: var(--green); }

.ref-note {
  font-size: 11px; color: var(--muted); line-height: 1.5;
  display: flex; align-items: flex-start; gap: 6px;
}

.ref-note::before { content:'↗'; font-size:13px; color:var(--subtle); flex-shrink:0; margin-top:-1px; }

/* ── HOW ── */
.how { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); }

.how-cell {
  padding: 40px 32px; border-right: 1px solid var(--line); transition: background .2s;
}

.how-cell:last-child { border-right: none; }
.how-cell:hover { background: var(--off); }

.how-n {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 36px; color: var(--subtle); line-height: 1; margin-bottom: 18px;
}

.how-t { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.how-d { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── ODDS SECTION ── */
.odds-section { padding: 72px 40px; background: #f7f7f5; border-top: 1px solid var(--line); }
.odds-inner { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: center; }
.odds-h2 { font-family: 'Instrument Serif', serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 8px 0 12px; color: var(--ink); }
.odds-h2 em { font-style: italic; }
.odds-sub { font-size: 13px; color: var(--muted); line-height: 1.6; }
.odds-bars { display: flex; flex-direction: column; gap: 14px; }
.odds-row { display: flex; flex-direction: column; gap: 4px; }
.odds-row-total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.odds-label { display: flex; justify-content: space-between; align-items: center; }
.odds-prize { font-size: 13px; color: var(--ink); }
.odds-pct { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.odds-pct-total { color: #16a34a; font-size: 13px; }
.odds-bar-track { height: 6px; background: #e5e5e5; border-radius: 99px; overflow: hidden; }
.odds-bar-fill { height: 100%; background: var(--ink); border-radius: 99px; min-width: 3px; transition: width 1s ease; }
.odds-bar-mid { background: #6b7280; }
.odds-bar-high { background: #374151; }
.odds-bar-total { background: #16a34a; }
.odds-count { font-size: 11px; color: var(--muted); text-align: right; }

/* ── PRIZES VISUAL SECTION ── */
.prizes {
  border-top: 1px solid var(--line);
  padding: 80px 56px;
  background: var(--off);
}

.prizes-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px;
}

.prizes-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}

.prizes-h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(36px, 4vw, 52px); letter-spacing: -1px;
}

.prizes-note { font-size: 13px; color: var(--muted); max-width: 220px; text-align: right; line-height: 1.5; }

.prizes-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 14px;
}

/* ── VISUAL CARDS ── */
.p-card {
  border-radius: 14px; overflow: hidden;
  position: relative; transition: transform .25s, box-shadow .25s;
}

.p-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Salary card */
.p-card.salary {
  background: #0A0A0A;
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex; flex-direction: column;
  min-height: 420px;
}

.salary-visual {
  flex: 1;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
  min-height: 240px;
}

.money-bg {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}

.bill {
  position: absolute;
  width: 52px; height: 26px;
  border-radius: 3px;
  background: linear-gradient(135deg, #1a3d1a, #2d6b2d);
  border: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: rgba(255,255,255,.5);
  letter-spacing: .5px;
  animation: fallDown linear infinite;
}

@keyframes fallDown {
  0%   { transform: translateY(-60px) rotate(var(--r)); opacity: 0; }
  10%  { opacity: .7; }
  90%  { opacity: .5; }
  100% { transform: translateY(320px) rotate(calc(var(--r) + 20deg)); opacity: 0; }
}

.salary-icon {
  position: relative; z-index: 2; text-align: center;
}

.salary-x2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 88px; line-height: 1;
  color: #fff;
  text-shadow: 0 0 60px rgba(184,150,46,.4);
  display: block;
}

.salary-sub-icon {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.4); letter-spacing: 2px; text-transform: uppercase;
  display: block; margin-top: 4px;
}

.salary-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(184,150,46,.12) 0%, transparent 70%);
}

.salary-info {
  padding: 24px 28px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.p-n-white {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-bottom: 8px;
}

.p-val-white {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 28px; color: #fff; letter-spacing: -.5px;
  margin-bottom: 6px;
}

.p-val-gold { color: #C9A84C; }

.p-desc-white {
  font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.6; margin-bottom: 10px;
}

.p-fine-white {
  font-size: 11px; color: rgba(255,255,255,.2);
  display: flex; align-items: center; gap: 6px;
}

.p-fine-white::before { content:'—'; }

/* PS5 card */
.p-card.ps5 {
  background: var(--white);
  border: 1.5px solid var(--line);
  grid-column: 2 / span 2;
  display: flex; flex-direction: column;
}

.ps5-visual {
  flex: 1; position: relative;
  background: linear-gradient(160deg, #f0f0f0 0%, #e8e8e8 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 28px; min-height: 180px; overflow: hidden;
}

.ps5-illustration img {
  width: 100%; max-width: 260px; height: auto;
  object-fit: contain; display: block; margin: 0 auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.22));
}

.ps5-illustration {
  position: relative; z-index: 2;
}

.ps5-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--ink); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
  letter-spacing: .5px; text-transform: uppercase; z-index: 3;
}

.ps5-info { padding: 20px 22px; border-top: 1px solid var(--line); }

.p-n { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.p-val { font-family: 'Instrument Serif', Georgia, serif; font-size: 28px; color: var(--ink); letter-spacing: -.5px; margin-bottom: 5px; }
.p-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.p-fine { font-size: 11px; color: var(--subtle); display: flex; align-items: center; gap: 6px; }
.p-fine::before { content:'—'; }

/* Crypto cards */
.crypto-clean {
  display: flex !important; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  background: none !important;
}

.crypto-amount-big {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 52px; line-height: 1;
  color: var(--ink); letter-spacing: -2px;
  font-weight: 400;
}

.crypto-sm .crypto-amount-big { font-size: 44px; }

.crypto-label-sub {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--subtle);
}

.p-card.crypto50 {
  background: var(--white);
  border: 1.5px solid var(--line);
  grid-column: 4;
  grid-row: 1;
  display: flex; flex-direction: column;
}

.p-card.crypto10 {
  background: var(--white);
  border: 1.5px solid var(--line);
  grid-column: 2;
  grid-row: 2;
  display: flex; flex-direction: column;
}

.p-card.extra {
  background: var(--ink);
  border: 1.5px solid var(--ink);
  grid-column: 3 / span 2;
  grid-row: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 28px 32px;
}

.crypto-visual {
  flex: 1; position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 130px; overflow: hidden;
  background: linear-gradient(135deg, #fafafa, #f0f0f0);
}

.crypto-info { padding: 18px 20px; border-top: 1px solid var(--line); }

/* Animations */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}

.hero-copy > * { animation: fadeUp .5s ease both; }
.hero-copy > *:nth-child(1) { animation-delay:.00s; }
.hero-copy > *:nth-child(2) { animation-delay:.07s; }
.hero-copy > *:nth-child(3) { animation-delay:.14s; }
.hero-copy > *:nth-child(4) { animation-delay:.21s; }
.hero-copy > *:nth-child(5) { animation-delay:.28s; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 56px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

.footer-logo { font-family: 'Instrument Serif', Georgia, serif; font-size: 18px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: var(--muted); text-decoration: none; cursor: pointer; transition: color .15s; }
.footer-links a:hover { color: var(--ink); }
.footer-r { font-size: 11px; color: var(--subtle); }

/* ── MODAL ── */
.overlay {
  display: none; position: fixed; inset:0;
  background: rgba(0,0,0,.35); backdrop-filter: blur(6px);
  z-index: 500; align-items: center; justify-content: center; padding: 24px;
}

.overlay.open { display: flex; }

.modal {
  background: var(--white); border-radius: 14px;
  max-width: 500px; width: 100%; max-height: 80vh; overflow-y: auto;
  padding: 48px; box-shadow: var(--shadow-lg); position: relative;
}

.modal-x {
  position: absolute; top: 18px; right: 18px;
  background: var(--off); border: none; width: 30px; height: 30px; border-radius: 50%;
  font-size: 14px; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}

.modal-x:hover { background: var(--line); }
.modal h2 { font-family: 'Instrument Serif', Georgia, serif; font-size: 26px; margin-bottom: 20px; }
.modal p { font-size: 13px; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.modal strong { color: var(--ink); }

/* ── Paliers parrainage ── */
.ref-tiers {
  display: grid; grid-template-columns: repeat(3,1fr);
  border-bottom: 1px solid var(--line);
}

.ref-tier {
  padding: 14px 12px; text-align: center;
  border-right: 1px solid var(--line);
  transition: background .15s;
  position: relative;
}

.ref-tier:last-child { border-right: none; }
.ref-tier.active { background: #F0FDF4; }
.ref-tier.done { background: #F0FDF4; }

.tier-count {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 28px; color: var(--ink); line-height: 1;
}

.ref-tier.active .tier-count, .ref-tier.done .tier-count { color: var(--green); }

.tier-label { font-size: 10px; color: var(--muted); margin-bottom: 6px; }

.tier-prize {
  font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 2px;
}

.ref-tier.active .tier-prize, .ref-tier.done .tier-prize { color: var(--green); }

.tier-tag {
  font-size: 9px; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; color: var(--subtle);
}

.ref-tier.active .tier-tag { color: var(--green); }

.ref-filleuls-wrap {
  margin-top: 10px; border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
}

.ref-filleuls-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--off);
  border-bottom: 1px solid var(--line);
}

.ref-pill {
  font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 100px;
  background: var(--off); border: 1px solid var(--line); color: var(--muted);
}

.ref-pill.green { background: var(--green-bg); color: var(--green); border-color: rgba(22,163,74,.2); }

.ref-filleul-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px; border-bottom: 1px solid rgba(232,232,232,.6);
  font-size: 12px;
}

.ref-filleul-row:last-child { border-bottom: none; }

/* ── Telegram ── */
.tg-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: #E8F4FD;
  border: 1.5px solid #B3D9F5;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s, transform .15s;
  cursor: pointer;
}
.tg-btn:hover { background: #D1EAF8; transform: translateY(-1px); }

/* ── ADMIN ── */
#adminPage { display: none; min-height: 100vh; background: var(--off); }
#adminPage.open { display: block; }

.a-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 60px;
  background: var(--white); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}

.a-nav-title { font-size: 15px; font-weight: 600; }

.a-nav-sub {
  font-size: 11px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 4px;
}

.btn-ghost {
  background: none; border: 1.5px solid var(--line); border-radius: 7px;
  padding: 7px 18px; font-size: 13px; font-weight: 500;
  font-family: 'Geist', sans-serif; cursor: pointer; color: var(--ink);
  transition: border-color .15s;
}

.btn-ghost:hover { border-color: var(--ink); }

.a-body { padding: 48px; }

.a-login {
  max-width: 340px; margin: 60px auto;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 44px; box-shadow: var(--shadow);
}

.a-login h2 { font-family: 'Instrument Serif', Georgia, serif; font-size: 24px; margin-bottom: 24px; }

.f-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }

.f-inp {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--off); color: var(--ink);
  font-family: 'Geist', sans-serif; font-size: 14px; outline: none; margin-bottom: 16px;
  transition: border-color .15s;
}

.f-inp:focus { border-color: var(--ink); background: var(--white); }

.btn-full {
  width: 100%; padding: 12px;
  background: var(--ink); color: var(--white); border: none; border-radius: 8px;
  font-family: 'Geist', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}

.btn-full:hover { background: var(--ink2); }

.a-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 32px; }

.a-stat { background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; padding: 22px; }
.a-stat-l { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.a-stat-v { font-family: 'Instrument Serif', Georgia, serif; font-size: 38px; letter-spacing: -1px; line-height: 1; }
.a-stat-v.g { color: var(--green); }
.a-stat-v.gd { color: var(--gold); }

.a-table-card { background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.a-table-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 10px; }
.a-table-bar-title { font-size: 14px; font-weight: 600; }
.a-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.search-inp {
  border: 1.5px solid var(--line); border-radius: 7px;
  padding: 7px 12px; background: var(--off);
  font-family: 'Geist', sans-serif; font-size: 13px; color: var(--ink);
  outline: none; width: 180px;
}

.search-inp:focus { border-color: var(--ink); }

.btn-xs {
  border: 1.5px solid var(--line); background: none; border-radius: 7px;
  padding: 7px 13px; font-family: 'Geist', sans-serif;
  font-size: 12px; font-weight: 500; cursor: pointer; color: var(--ink);
  transition: border-color .15s;
}

.btn-xs:hover { border-color: var(--ink); }
.btn-xs.red:hover { border-color: #dc2626; color: #dc2626; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 10px 16px; font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
td { padding: 13px 16px; font-size: 13px; border-bottom: 1px solid rgba(232,232,232,.7); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--off); }

.uid-code { font-weight: 600; letter-spacing: .5px; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.pill::before { content:''; width:5px; height:5px; border-radius:50%; background:currentColor; }
.pill.pending  { background: #fafafa; color: var(--muted); border: 1px solid var(--line); }
.pill.eligible { background: var(--green-bg); color: var(--green); }
.pill.winner   { background: var(--gold-bg);  color: var(--gold); }

.prize-tag { background: var(--gold-bg); color: var(--gold); border: 1px solid rgba(184,150,46,.2); padding: 2px 9px; border-radius: 4px; font-size: 11px; font-weight: 600; }

.t-btn { background: none; border: 1px solid var(--line); border-radius: 5px; padding: 4px 9px; font-size: 11px; font-weight: 500; font-family: 'Geist', sans-serif; cursor: pointer; color: var(--ink); margin-right: 3px; transition: all .12s; }
.t-btn:hover { border-color: var(--ink); }
.t-btn.rm:hover { border-color: #dc2626; color: #dc2626; }

.a-add-row { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--off); }
.a-add-inp { flex: 1; border: 1.5px solid var(--line); border-radius: 7px; padding: 9px 13px; background: var(--white); color: var(--ink); font-family: 'Geist', sans-serif; font-size: 13px; outline: none; }
.a-add-inp:focus { border-color: var(--ink); }
.btn-add { background: var(--ink); color: var(--white); border: none; border-radius: 7px; padding: 9px 18px; font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s; }
.btn-add:hover { background: var(--ink2); }

.import-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px; overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.import-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 12px;
  background: var(--off);
}

.import-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.import-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }

.btn-import {
  background: var(--green); color: #fff;
  border: none; border-radius: 8px;
  padding: 10px 20px;
  font-family: 'Geist', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .15s; flex-shrink: 0;
}

.btn-import:hover { background: #15803d; }

.import-area {
  display: block; width: 100%;
  padding: 16px 20px;
  font-family: 'Geist', monospace;
  font-size: 13px; line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  border: none; outline: none;
  resize: vertical; min-height: 100px; max-height: 220px;
  border-bottom: 1px solid var(--line);
}

.import-note { padding: 10px 20px; font-size: 12px; color: var(--muted); min-height: 36px; }
.import-note.ok  { color: var(--green); font-weight: 500; }
.import-note.err { color: #dc2626; font-weight: 500; }

.filter-tabs {
  display: flex; gap: 2px;
  background: var(--off); border-radius: 7px; padding: 3px;
  border: 1px solid var(--line);
}

.ftab {
  background: none; border: none;
  padding: 5px 12px; border-radius: 5px;
  font-family: 'Geist', sans-serif;
  font-size: 12px; font-weight: 500;
  cursor: pointer; color: var(--muted);
  transition: all .15s; white-space: nowrap;
}

.ftab:hover { color: var(--ink); }
.ftab.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }

.bulk-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: #EFF6FF;
  border-top: 1px solid #BFDBFE;
  gap: 12px; flex-wrap: wrap;
}

.a-add-select {
  border: 1.5px solid var(--line); border-radius: 7px;
  padding: 9px 12px; background: var(--off);
  font-family: 'Geist', sans-serif; font-size: 13px;
  color: var(--ink); outline: none; cursor: pointer;
}

input[type=checkbox] {
  width: 15px; height: 15px; cursor: pointer; accent-color: var(--ink);
}

.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: var(--white);
  padding: 11px 22px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  white-space: nowrap; box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .prizes-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .p-card.salary { grid-column: 1 / span 2; grid-row: 1; min-height: 320px; flex-direction: row; }
  .salary-visual { min-height: 200px; }
  .p-card.ps5 { grid-column: 1; grid-row: 2; }
  .p-card.crypto50 { grid-column: 2; grid-row: 2; }
  .p-card.crypto10 { grid-column: 1; grid-row: 3; }
  .p-card.extra { grid-column: 2; grid-row: 3; }
}

@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .hero { grid-template-columns: 1fr; max-height: none; min-height: unset; }
  .hero-copy { padding: 48px 24px; border-right: none; border-bottom: 1px solid var(--line); }
  .form-wrap, .dash-wrap { padding: 32px 22px 36px; }
  .prize-strip { grid-template-columns: repeat(2,1fr); }
  .prize-strip .prize-item:nth-child(2) { border-right: none; }
  .prize-strip .prize-item:nth-child(3) { border-top: 1px solid var(--line); }
  .prize-strip .prize-item:last-child { border-top: 1px solid var(--line); border-right: none; }
  .how { grid-template-columns: 1fr 1fr; }
  .how-cell { border-bottom: 1px solid var(--line); }
  .odds-section { padding: 48px 20px; }
  .odds-inner { grid-template-columns: 1fr; gap: 32px; }
  .prizes { padding: 48px 20px; }
  .prizes-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .prizes-note { text-align: left; }
  .prizes-grid { grid-template-columns: 1fr; }
  .p-card.salary, .p-card.ps5, .p-card.crypto50, .p-card.crypto10, .p-card.extra {
    grid-column: auto; grid-row: auto;
  }
  .p-card.salary { flex-direction: column; }
  footer { padding: 24px 20px; flex-direction: column; text-align: center; }
  .a-body { padding: 20px; }
  .a-stats { grid-template-columns: 1fr 1fr; }
  .a-nav { padding: 0 20px; }
}
