/* assets/css/referrals.css — Refer a Friend page */

/* ── "You've been invited" modal ── */
.ref-invite-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4,6,10,0.82);
  backdrop-filter: blur(5px);
}
.ref-invite-overlay.show { display: flex; }
.ref-invite-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--gold) 10%, var(--bg2)), var(--bg2) 65%);
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  padding: 40px 34px 34px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(255,176,32,0.12), 0 0 60px rgba(255,176,32,0.18), 0 20px 60px rgba(0,0,0,0.5);
}
.ref-invite-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  color: var(--muted2);
  font-size: 28px; line-height: 1;
  cursor: pointer;
  transition: color .15s;
}
.ref-invite-close:hover { color: var(--text, #fff); }
.ref-invite-badge {
  display: inline-block;
  background: var(--gold);
  color: #07060A;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.ref-invite-badge-green { background: var(--green); }
.ref-invite-badge-muted { background: var(--bg3); color: var(--muted2); border: 1px solid var(--border2); }
.ref-invite-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  letter-spacing: 0.02em;
  color: var(--text, #fff);
  margin-bottom: 14px;
  line-height: 1.15;
}
.ref-invite-title span { color: var(--gold); }
.ref-invite-sub {
  font-family: 'Barlow', sans-serif;
  font-size: 14.5px;
  color: var(--muted2);
  line-height: 1.6;
  margin-bottom: 26px;
}
.ref-invite-sub strong { color: var(--text, #fff); }
.ref-invite-steps {
  text-align: left;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 22px;
}
.ref-invite-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 13.5px;
  color: var(--text, #fff);
  line-height: 1.4;
  padding: 6px 0;
}
.ref-invite-step-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #07060A;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.ref-invite-cta {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(135deg, #FFC94A, var(--gold));
  color: #07060A;
  border: none;
  border-radius: var(--radius-lg);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
  box-shadow: 0 0 26px rgba(255, 176, 32, 0.3);
}
.ref-invite-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

@media (max-width: 480px) {
  .ref-invite-modal { padding: 32px 22px 26px; }
  .ref-invite-title { font-size: 28px; }
}

.ref-window-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--gold) 14%, var(--bg2));
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.ref-window-sub {
  font-family: 'Barlow', sans-serif;
  font-size: 12.5px;
  color: var(--muted2);
  line-height: 1.5;
  margin: -6px 0 16px;
}
.ref-window-sub strong { color: var(--text, #fff); }

.ref-claim-all-btn {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #FFC94A, var(--gold));
  color: #07060A;
  border: none;
  border-radius: var(--radius-lg);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
  box-shadow: 0 0 22px rgba(255, 176, 32, 0.28);
}
.ref-claim-all-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ref-claim-all-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.ref-claim-all-locked {
  text-align: center;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px dashed var(--border2);
  border-radius: var(--radius-lg);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted2);
}

.ref-example-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  background: color-mix(in srgb, var(--gold) 12%, var(--bg2));
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 16px;
}
.ref-example-intro svg { flex-shrink: 0; color: var(--gold); }
.ref-example-intro span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text, #fff);
  line-height: 1.4;
}
.ref-example-intro strong { color: var(--gold); font-weight: 800; }

.ref-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.ref-tier-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.ref-tier-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.ref-tier-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 10px;
}
.ref-tier-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted2);
}
.ref-tier-wager {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--text, #fff);
  margin: 4px 0 8px;
}
.ref-tier-arrow {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}
.ref-tier-reward {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: #FFC94A;
  margin-top: 4px;
  text-shadow: 0 0 18px rgba(255, 176, 32, 0.55);
}

.ref-multiplier-note {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: var(--muted2);
  text-align: center;
  margin-bottom: 32px;
}
.ref-multiplier-note strong { color: var(--gold); }

/* ── Interactive "how much can I claim?" example card ── */
.ref-example-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 32px;
}
.ref-example-badge {
  display: inline-block;
  background: var(--gold);
  color: #07060A;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.ref-example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.ref-example-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted2);
  margin-bottom: 8px;
}
.ref-example-input-row {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
}
.ref-example-cur {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--gold);
}
.ref-example-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--text, #fff);
  min-width: 0;
}
.ref-example-input::-webkit-inner-spin-button,
.ref-example-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ref-example-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--border2));
  outline: none;
  margin: 4px 0 6px;
}
.ref-example-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #07060A;
  box-shadow: 0 0 0 2px var(--gold);
  cursor: pointer;
}
.ref-example-range::-moz-range-thumb {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #07060A;
  box-shadow: 0 0 0 2px var(--gold);
  cursor: pointer;
}
.ref-example-marks {
  display: flex;
  justify-content: space-between;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted2);
}
.ref-example-count-label { margin-top: 18px; }
.ref-example-count-row { margin-bottom: 8px; }
.ref-example-finetext {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted2);
  margin: 4px 0 0;
}
.ref-example-finetext strong { color: var(--gold); }
.ref-example-result-side { text-align: center; }
.ref-example-claim-box {
  position: relative;
  background: linear-gradient(155deg, rgba(255, 176, 32, 0.16), rgba(72, 214, 138, 0.08));
  border: 1px solid rgba(255, 176, 32, 0.5);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  animation: ref-claim-pulse 2.6s ease-in-out infinite;
}
@keyframes ref-claim-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 176, 32, 0.12), 0 0 14px rgba(255, 176, 32, 0.14); }
  50%      { box-shadow: 0 0 0 1px rgba(255, 176, 32, 0.22), 0 0 26px rgba(255, 176, 32, 0.32); }
}
.ref-example-claim-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ref-example-claim-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted2);
}
.ref-example-boost-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 20px;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.ref-boost-t0 {
  color: var(--muted2);
  background: var(--bg3);
  border: 1px solid var(--border2);
}
.ref-boost-t1 {
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, var(--bg2));
  border: 1px solid var(--gold);
}
.ref-boost-t2 {
  color: #FFC94A;
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.22), color-mix(in srgb, var(--gold) 14%, var(--bg2)));
  border: 1px solid rgba(255, 176, 32, 0.6);
  box-shadow: 0 0 10px rgba(255, 176, 32, 0.2);
}
.ref-boost-t3 {
  color: #FFC94A;
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.32), rgba(72, 214, 138, 0.12));
  border: 1px solid rgba(255, 176, 32, 0.75);
  box-shadow: 0 0 16px rgba(255, 176, 32, 0.4);
  text-shadow: 0 0 10px rgba(255, 176, 32, 0.5);
  animation: ref-claim-pulse 2.2s ease-in-out infinite;
}
.ref-boost-pop { animation: ref-boost-pop 0.42s ease; }
.ref-boost-t3.ref-boost-pop { animation: ref-boost-pop 0.42s ease, ref-claim-pulse 2.2s ease-in-out infinite; }
@keyframes ref-boost-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.28); }
  60%  { transform: scale(0.94); }
  100% { transform: scale(1); }
}
.ref-example-claim-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 1.1;
  color: #FFC94A;
  text-shadow: 0 0 22px rgba(255, 176, 32, 0.55);
}
.ref-example-bar {
  height: 7px;
  border-radius: 4px;
  background: var(--bg3);
  overflow: hidden;
  margin-bottom: 8px;
}
.ref-example-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #FFC94A);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.ref-example-next {
  font-family: 'Barlow', sans-serif;
  font-size: 12.5px;
  color: var(--muted2);
}

@media (max-width: 700px) {
  .ref-example-grid { grid-template-columns: 1fr; gap: 20px; }
  .ref-example-claim-amount { font-size: 44px; }
}

.ref-howto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.ref-howto-step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.ref-howto-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ref-howto-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.ref-howto-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--border2);
}
.ref-howto-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--text, #fff);
  margin-bottom: 6px;
}
.ref-howto-desc {
  font-family: 'Barlow', sans-serif;
  font-size: 12.5px;
  color: var(--muted2);
  line-height: 1.5;
}

.ref-login-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.ref-login-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  margin-bottom: 16px;
}

.ref-link-card {
  background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 10%, var(--bg2)), var(--bg2) 60%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 18px;
}
.ref-link-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  margin-bottom: 8px;
}
.ref-link-hint {
  font-family: 'Barlow', sans-serif;
  font-size: 12.5px;
  color: var(--muted2);
  line-height: 1.5;
  margin-bottom: 16px;
}
.ref-link-row {
  display: flex;
  gap: 10px;
}
.ref-link-input {
  flex: 1;
  min-width: 0;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  color: var(--text, #fff);
  padding: 11px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  outline: none;
}
.ref-link-input:focus { border-color: var(--gold); }
.ref-link-msg {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
  margin-top: 10px;
}

.ref-submit-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.ref-submit-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  margin-bottom: 8px;
}
.ref-submit-hint {
  font-family: 'Barlow', sans-serif;
  font-size: 12.5px;
  color: var(--muted2);
  line-height: 1.5;
  margin-bottom: 16px;
}
.ref-submit-row {
  display: flex;
  gap: 10px;
}
.ref-submit-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  color: var(--text, #fff);
  padding: 11px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  outline: none;
}
.ref-submit-input:focus { border-color: var(--gold); }
.ref-submit-msg {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 10px;
}
.ref-submit-msg.ref-submit-ok { color: var(--green); }
.ref-submit-msg.ref-submit-err { color: var(--red); }

.ref-list-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.ref-list-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.ref-list-mult {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #0B2E1C;
  background: var(--green);
  padding: 3px 10px;
  border-radius: 20px;
}
.ref-empty {
  color: var(--muted2);
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.ref-row {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.ref-row:last-child { margin-bottom: 0; }
.ref-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ref-row-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text, #fff);
}
.ref-row-status {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
}
.ref-status-pending  { color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.ref-status-accepted { color: var(--green); background: rgba(72,214,138,0.14); }
.ref-status-rejected { color: var(--red); background: rgba(224,56,56,0.14); }
.ref-row-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'Barlow', sans-serif;
  font-size: 12.5px;
  color: var(--muted2);
  margin-bottom: 8px;
}
.ref-row-stats strong { color: var(--text, #fff); }
.ref-earned {
  color: var(--green) !important;
  font-size: 15px;
  text-shadow: 0 0 12px rgba(72, 214, 138, 0.5);
}
.ref-row-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 6px;
}
.ref-row-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--green));
  border-radius: 3px;
}
.ref-row-next {
  font-family: 'Barlow', sans-serif;
  font-size: 11.5px;
  color: var(--muted2);
}
.ref-row-window {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 10px;
}
.ref-row-window strong { font-weight: 800; }
.ref-claim-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #FFC94A, var(--gold));
  color: #07060A;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.ref-claim-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ref-claim-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.ref-row-claim-pending {
  margin-top: 12px;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted2);
  border: 1px dashed var(--border2);
  border-radius: var(--radius-md);
  padding: 9px 14px;
}

@media (max-width: 900px) {
  .ref-tier-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-howto { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ref-tier-grid { grid-template-columns: 1fr; }
  .ref-submit-row { flex-direction: column; }
  .ref-row-stats { gap: 10px; }

  .ref-window-badge { font-size: 10.5px; padding: 5px 10px; white-space: normal; text-align: center; }
  .ref-window-sub { font-size: 12px; }

  .ref-claim-all-btn { font-size: 14px; padding: 12px 14px; }

  .ref-example-intro { padding: 12px 14px; gap: 10px; }
  .ref-example-intro svg { width: 18px; height: 18px; }
  .ref-example-intro span { font-size: 13.5px; }

  .ref-example-card { padding: 18px; }
  .ref-example-badge { font-size: 10px; margin-bottom: 14px; }
  .ref-example-claim-amount { font-size: 38px; }
  .ref-example-marks { font-size: 9.5px; }

  .ref-howto-step { padding: 16px; }

  .ref-login-card { padding: 24px 18px; }
  .ref-submit-card { padding: 18px; }
  .ref-link-card { padding: 18px; }
  .ref-link-row { flex-direction: column; }
  .ref-list-wrap { padding: 16px; }

  .ref-tier-reward { font-size: 28px; }
}
