/* ===========================================================
   WINR v15 — ONBOARDING IDENTITY-STEP UPGRADES
   Avatar upload, @handle availability, push opt-in.
   Plus a transparency / size pass on the v9 onboarding card so
   the modal feels lighter and shorter.
   =========================================================== */

/* ── Transparency + tighter sizing (overrides v9) ── */
.v9-onb-backdrop {
  background: rgba(6, 6, 8, 0.32) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
}

/* ── Remove ALL orange from main onboarding ── */
.v9-onb-card {
  background:
    linear-gradient(160deg, rgba(28,28,34,0.42), rgba(14,14,18,0.40)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 30px 80px rgba(0,0,0,0.55) !important;
}
.v9-dot.done   { background: rgba(255,255,255,0.32) !important; }
.v9-dot.active {
  background: #fff !important;
  box-shadow: 0 0 8px rgba(255,255,255,0.4) !important;
}
/* Title cards */
.v9-title-card.selected {
  border-color: #fff !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.18), 0 14px 28px rgba(0,0,0,0.4) !important;
}
/* Pick-chip (the "Picked" label on selected cards) */
.v9-pick-chip {
  background: #fff !important;
  color: #0a0a0d !important;
}
/* Emblem cards */
.v9-emblem-card.selected {
  border-color: #fff !important;
  background: rgba(255,255,255,0.05) !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.18) !important;
}
/* Inputs */
.v9-input:focus {
  border-color: rgba(255,255,255,0.28) !important;
  background: rgba(255,255,255,0.07) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06) !important;
}
/* Source / connect tiles */
.v9-source-tile.selected {
  border-color: #fff !important;
  background: rgba(255,255,255,0.06) !important;
}
/* Pass step accent */
.v9-pass-card { --pass: rgba(255,255,255,0.55) !important; }
/* Theme step locked tile chip */
.v9-skin-tag.free { background: rgba(255,255,255,0.85) !important; color: #0a0a0d !important; }
/* Eyebrow */
.v9-step-eyebrow { color: rgba(255,255,255,0.5) !important; }

/* Next button — white pill on dark, no orange */
.v9-btn-next {
  background: #fff !important;
  color: #0a0a0d !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35) !important;
}
.v9-btn-next:hover { background: #f3f3f3 !important; transform: translateY(-1px); }
.v9-btn-next.disabled {
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.4) !important;
  box-shadow: none !important;
}
/* Skip link */
.v9-skip-link { color: rgba(255,255,255,0.55) !important; }
.v9-skip-link:hover { color: #fff !important; }

/* Other-input wrap (free text on role/discovery) */
.v10-otherinput-wrap.open .v10-other-input:focus,
.v10-referral-wrap.open .v10-referral-input:focus {
  border-color: rgba(255,255,255,0.28) !important;
  background: rgba(255,255,255,0.07) !important;
}

/* ── Remove progress bar + step eyebrows; center hero text ── */
.v9-onb-progress { display: none !important; }
.v9-step-eyebrow { display: none !important; }

.v9-onb-body { padding-top: 36px !important; }
.v9-step-title,
.v9-step-sub {
  text-align: center !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.v9-step-title {
  font-size: 26px !important;
  letter-spacing: -0.6px !important;
  margin-bottom: 6px !important;
}
.v9-step-sub {
  font-size: 13px !important;
  color: rgba(255,255,255,0.55) !important;
  margin-bottom: 22px !important;
  max-width: 420px !important;
}

/* Strip emojis from quiz tiles */
.v9-tile-emoji,
.v10-discovery-emoji { display: none !important; }

/* Editorial tile look — flat, type-forward, white left rail when selected */
.v9-tile {
  position: relative;
  text-align: left;
  padding: 14px 16px 14px 20px !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  transition: background .15s, border-color .15s !important;
}
.v9-tile::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 1px;
  background: transparent;
  transition: background .15s;
}
.v9-tile:hover {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.v9-tile.selected {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.18) !important;
}
.v9-tile.selected::before { background: #fff; }
.v9-tile-label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.85) !important;
  letter-spacing: -0.1px !important;
}
.v9-tile.selected .v9-tile-label { color: #fff !important; font-weight: 700 !important; }
.v9-tile-desc {
  font-size: 12px !important;
  color: rgba(255,255,255,0.45) !important;
  line-height: 1.4 !important;
}

/* ── Interactivity — staggered entrance + tactile feedback ── */
.v9-tile-grid > .v9-tile,
.v10-discovery-grid > .v10-discovery-tile {
  animation: v9-fadeUp 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.v9-tile-grid > .v9-tile:nth-child(1),
.v10-discovery-grid > .v10-discovery-tile:nth-child(1) { animation-delay: 30ms; }
.v9-tile-grid > .v9-tile:nth-child(2),
.v10-discovery-grid > .v10-discovery-tile:nth-child(2) { animation-delay: 60ms; }
.v9-tile-grid > .v9-tile:nth-child(3),
.v10-discovery-grid > .v10-discovery-tile:nth-child(3) { animation-delay: 90ms; }
.v9-tile-grid > .v9-tile:nth-child(4),
.v10-discovery-grid > .v10-discovery-tile:nth-child(4) { animation-delay: 120ms; }
.v9-tile-grid > .v9-tile:nth-child(5),
.v10-discovery-grid > .v10-discovery-tile:nth-child(5) { animation-delay: 150ms; }
.v9-tile-grid > .v9-tile:nth-child(6),
.v10-discovery-grid > .v10-discovery-tile:nth-child(6) { animation-delay: 180ms; }
.v9-tile-grid > .v9-tile:nth-child(7),
.v10-discovery-grid > .v10-discovery-tile:nth-child(7) { animation-delay: 210ms; }
.v9-tile-grid > .v9-tile:nth-child(8),
.v10-discovery-grid > .v10-discovery-tile:nth-child(8) { animation-delay: 240ms; }
@keyframes v9-fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.v9-tile {
  transform: translateY(0);
}
.v9-tile:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25) !important;
}
.v9-tile:active {
  transform: translateY(0) scale(0.985) !important;
}
.v9-tile.selected {
  animation: v9-pickPulse 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes v9-pickPulse {
  0%   { transform: scale(0.99); }
  60%  { transform: scale(1.015); }
  100% { transform: scale(1); }
}

.v9-step-title {
  animation: v9-fadeUp 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.v9-step-sub {
  animation: v9-fadeUp 480ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

/* Discovery step — same editorial treatment */
.v10-discovery-tile {
  text-align: center !important;
  padding: 14px !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 12px !important;
  cursor: pointer;
  transition: background .15s, border-color .15s !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.75) !important;
}
.v10-discovery-tile:hover {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.v10-discovery-tile.selected {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.22) !important;
  color: #fff !important;
}
.v9-onb-card {
  max-width: 600px !important;
  background:
    linear-gradient(160deg, rgba(28,28,34,0.32), rgba(14,14,18,0.30)),
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255,0.06), transparent 60%) !important;
  border-color: rgba(255,255,255,0.07) !important;
}
.v9-onb-progress { padding: 14px 22px 10px !important; }
.v9-onb-body     { padding: 18px 22px 14px !important; }
.v9-onb-foot     {
  padding: 12px 22px !important;
  background: rgba(0,0,0,0.18) !important;
}
.v9-step-title { font-size: 22px !important; margin-bottom: 4px !important; }
.v9-step-sub   { margin-bottom: 16px !important; font-size: 13px !important; }
.v9-step-eyebrow { margin-bottom: 6px !important; }

.v9-form-wide { max-width: 100%; }

.v9-input-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
  line-height: 1.4;
}

/* ── Avatar uploader ── */
.v9-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.v9-avatar-circle {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  flex: 0 0 68px;
}
.v9-avatar-img,
.v9-avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v9-avatar-img {
  background-size: cover;
  background-position: center;
}
.v9-avatar-fallback {
  font-size: 26px;
  font-weight: 800;
  color: rgba(255,255,255,0.55);
}
.v9-avatar-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0d;
  border: 2px solid #0a0a0d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(255,255,255,0.2);
  transition: transform .15s ease;
}
.v9-avatar-edit:hover { transform: scale(1.06); }

.v9-avatar-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v9-avatar-pick,
.v9-avatar-remove {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
  align-self: flex-start;
}
.v9-avatar-pick:hover,
.v9-avatar-remove:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.25);
}
.v9-avatar-remove { color: rgba(255,91,103,0.85); border-color: rgba(255,91,103,0.25); }
.v9-avatar-remove:hover { background: rgba(255,91,103,0.08); }
.v9-avatar-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* ── Handle field ── */
.v9-handle-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.v9-handle-wrap:focus-within {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}
.v9-handle-prefix {
  display: flex;
  align-items: center;
  padding: 0 4px 0 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
}
.v9-handle-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 2px !important;
}
.v9-handle-input:focus { box-shadow: none !important; }
.v9-handle-status {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.v9-handle-ok       { color: #39FF14; }
.v9-handle-bad      { color: #ff5b67; }
.v9-handle-checking { color: rgba(255,255,255,0.5); }

/* ── Timezone select ── */
.v9-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px !important;
  cursor: pointer;
}
.v9-select option { background: #0f1014; color: #fff; }

/* ── Notifications card ── */
.v9-notif-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v9-notif-card-compact { padding: 10px 12px; gap: 8px; }
.v9-notif-card-compact .v9-notif-title { font-size: 12px; }
.v9-notif-card-compact .v9-notif-sub { font-size: 11px; }
.v9-notif-card-compact .v9-notif-btn { padding: 6px 12px; font-size: 11px; }
.v9-notif-card-compact .v9-notif-check { font-size: 11px; }
.v9-notif-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.v9-notif-text { flex: 1; min-width: 0; }
.v9-notif-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.v9-notif-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
.v9-notif-btn {
  background: #fff;
  color: #0a0a0d;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.v9-notif-btn:hover:not(:disabled) { transform: translateY(-1px); }
.v9-notif-btn.is-on {
  background: rgba(57,255,20,0.15);
  color: #39FF14;
  cursor: default;
  border: 1px solid rgba(57,255,20,0.3);
}
.v9-notif-btn.is-off {
  background: rgba(255,91,103,0.1);
  color: #ff5b67;
  cursor: default;
  border: 1px solid rgba(255,91,103,0.3);
  font-size: 11px;
}
.v9-notif-btn:disabled { cursor: default; }

.v9-notif-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}
.v9-notif-check input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: 0 0 16px;
  accent-color: #fff;
  cursor: pointer;
}

@media (max-width: 560px) {
  .v9-avatar-row { flex-wrap: wrap; }
  .v9-notif-row { flex-direction: column; align-items: stretch; }
  .v9-notif-btn { align-self: flex-start; }
}
