/* MEDZI NAMI — Join questionnaire */
.join-body {
  min-height: 100vh;
  background: #050505;
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

.join-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #050505;
}

.join-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  filter: saturate(1.12) contrast(1.04) brightness(0.96);
  transform: scale(1.02);
}

.join-video-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(5,5,5,0.08) 0%, rgba(5,5,5,0.22) 55%, rgba(5,5,5,0.38) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.18) 0%, rgba(5,5,5,0.12) 40%, rgba(5,5,5,0.42) 100%);
}

.join-fx,
.join-smoke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.join-smoke {
  pointer-events: auto;
  cursor: crosshair;
  z-index: 2;
}

.join-fx {
  z-index: 1;
}

.join-body.is-selecting .join-smoke {
  z-index: 8;
  pointer-events: auto;
}

.join-body.is-selecting .join-mosaic {
  z-index: 7;
}

.join-panel:not(.is-active) .join-float-layer,
.join-panel:not(.is-active) .join-mosaic {
  display: none;
}

.join-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(180deg, rgba(5,5,5,0.75), transparent);
}

.join-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.join-logo img {
  height: 26px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(240, 193, 75, 0.25));
}

.join-chrome-right {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
}

.join-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(212,160,23,0.35);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(5,5,5,0.45);
  backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.join-icon-btn:hover {
  background: rgba(212,160,23,0.12);
  border-color: rgba(240,193,75,0.7);
  transform: translateY(-1px);
}

.join-icon-wide span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.join-main {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  padding: 5.5rem 1.1rem 5.5rem;
  display: grid;
  place-items: center;
}

.join-body.is-selecting .join-main {
  place-items: start center;
  padding-top: 4.8rem;
}

.join-panel {
  display: none;
  width: min(920px, 100%);
  animation: joinIn .55s ease both;
}

.join-panel.is-active { display: block; }

@keyframes joinIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.join-card {
  background: rgba(8, 8, 8, 0.28);
  border: 1px solid rgba(212, 160, 23, 0.32);
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.join-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.85rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.join-card h1,
.join-question {
  font-size: clamp(1.45rem, 3.6vw, 2.15rem);
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  font-weight: 550;
  line-height: 1.25;
  margin-bottom: 1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 0 28px rgba(212, 160, 23, 0.18);
}

.join-lead,
.join-hint {
  color: rgba(245, 240, 230, 0.88);
  max-width: 46ch;
  margin: 0 auto 1.35rem;
  line-height: 1.65;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.join-bullets {
  list-style: none;
  margin: 0 auto 1.5rem;
  max-width: 42ch;
  text-align: left;
  color: var(--text-dim);
}

.join-bullets li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.55rem;
}

.join-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.join-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-align: left;
  max-width: 48ch;
  margin: 0 auto 1rem;
  color: var(--text);
  cursor: pointer;
}

.join-check input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.join-terms-line {
  margin-bottom: 1.4rem;
  font-size: 0.85rem;
}

.join-terms-line a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.join-actions .btn[disabled],
#joinConsentBtn[disabled],
.join-actions .btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.join-link-quiet {
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.join-link-quiet:hover { color: var(--gold-bright); }

/* Floating words / mosaic */
.join-float-layer,
.join-mosaic {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.join-float-word,
.join-chip {
  position: absolute;
  color: rgba(245, 240, 230, 0.9);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 650;
  white-space: nowrap;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65), 0 0 24px rgba(212, 160, 23, 0.12);
  transition: color .25s ease, transform .25s ease, opacity .25s ease, text-shadow .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
  user-select: none;
}

.join-float-word {
  font-size: clamp(0.95rem, 2.6vw, 1.55rem);
  opacity: 0.78;
  animation: drift 8s ease-in-out infinite;
  color: rgba(255, 230, 150, 0.82);
}

.join-float-word.is-hero {
  font-size: clamp(1.25rem, 4vw, 2.2rem);
  opacity: 0.92;
  color: #ffe08a;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.7), 0 0 40px rgba(240, 193, 75, 0.28);
}

@keyframes drift {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-12px); }
}

.join-chip {
  pointer-events: auto;
  cursor: pointer;
  font-size: clamp(0.78rem, 1.9vw, 1.05rem);
  padding: 0.7rem 1.05rem;
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.22);
  backdrop-filter: blur(5px);
}

.join-chip.is-near {
  color: #ffe08a;
  border-color: rgba(240, 193, 75, 0.7);
  box-shadow: 0 0 28px rgba(240, 193, 75, 0.25);
  filter: brightness(1.12);
}

.join-chip.is-selected {
  color: #111;
  background: linear-gradient(135deg, #ffe08a, var(--gold));
  border-color: transparent;
  box-shadow: 0 10px 32px rgba(212, 160, 23, 0.4);
  filter: none;
}

.join-slide-shell {
  position: relative;
  width: min(1100px, 100%);
  min-height: min(78vh, 720px);
  display: grid;
  place-items: center;
}

.join-slide-shell.is-select {
  place-items: start center;
  min-height: auto;
  width: min(640px, 100%);
}

.join-slide-shell .join-card {
  position: relative;
  z-index: 6;
  max-width: 560px;
}

.join-slide-shell.is-select .join-card {
  background: rgba(8, 8, 8, 0.32);
  pointer-events: none;
  margin-top: 0.25rem;
}

.join-slide-shell.is-select .join-actions {
  pointer-events: auto;
}

.join-progress {
  position: fixed;
  left: 50%;
  bottom: 4.2rem;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 0.4rem;
}

.join-progress span {
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: rgba(245,240,230,0.2);
}

.join-progress span.is-on {
  background: var(--gold-bright);
}

.join-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,230,0.55);
  background: linear-gradient(0deg, rgba(5,5,5,0.85), transparent);
}

.join-footer a { color: var(--gold-bright); }

.join-dialog {
  border: 1px solid rgba(212,160,23,0.35);
  border-radius: 18px;
  padding: 0;
  background: #0c0c0c;
  color: var(--text);
  max-width: 420px;
  width: calc(100% - 2rem);
}

.join-dialog::backdrop {
  background: rgba(0,0,0,0.65);
}

.join-dialog-inner {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.join-dialog-inner h2 {
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  font-weight: 550;
}

.join-selected-count {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

@media (max-width: 720px) {
  .join-icon-wide span { display: none; }
  .join-main { padding: 4.8rem 0.85rem 5.2rem; }
  .join-slide-shell { min-height: 70vh; }
  .join-chip {
    font-size: 0.68rem;
    padding: 0.45rem 0.65rem;
    letter-spacing: 0.08em;
  }
  .join-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .join-float-word { animation: none; }
  .join-panel { animation: none; }
  .join-topic.is-selected { animation: none; }
  .join-discover-light { transition: none; }
}

/* ===== Discover step (fullscreen flashlight) ===== */
.join-discover {
  position: fixed;
  inset: 0;
  z-index: 6;
  width: 100%;
  margin: 0;
}

/* Intro stays geometrically centred regardless of decorative words. */
.join-slide-shell:not(.is-select) {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: min(76vh, 720px);
  padding: 1rem;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.join-slide-shell:not(.is-select) .join-card {
  width: min(720px, 100%);
  max-width: 720px;
  pointer-events: auto;
  background: rgba(8, 8, 8, 0.52);
  backdrop-filter: blur(14px);
}

.join-discover-stage {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --light-radius: 160px;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 14% 10%, rgba(244, 190, 40, 0.16), transparent 40%),
    radial-gradient(ellipse at 90% 85%, rgba(244, 190, 40, 0.1), transparent 42%),
    rgba(0, 0, 0, 0.32);
  touch-action: manipulation;
}

.join-discover-light {
  position: absolute;
  left: var(--mouse-x);
  top: var(--mouse-y);
  width: calc(var(--light-radius) * 2);
  height: calc(var(--light-radius) * 2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  background: radial-gradient(
    circle,
    rgba(255, 230, 150, 0.5) 0%,
    rgba(244, 190, 40, 0.28) 26%,
    rgba(244, 190, 40, 0.1) 52%,
    transparent 72%
  );
  mix-blend-mode: screen;
  will-change: left, top, opacity;
  transition: opacity 0.28s ease;
}

.join-discover-light::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 239, 177, .85) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 18%, rgba(244, 190, 40, .75) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 78%, rgba(255, 224, 128, .7) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 30% 70%, rgba(244, 190, 40, .65) 0 1px, transparent 2px);
  filter: drop-shadow(0 0 5px rgba(244, 190, 40, .75));
  animation: discoverDust 3.4s ease-in-out infinite alternate;
}

@keyframes discoverDust {
  from { opacity: .45; transform: rotate(-4deg) scale(.96); }
  to { opacity: .9; transform: rotate(5deg) scale(1.06); }
}

.join-discover-stage.is-lit .join-discover-light { opacity: 1; }

.join-discover-field {
  position: absolute;
  top: clamp(245px, 31vh, 300px);
  right: clamp(1rem, 8vw, 9rem);
  bottom: clamp(190px, 24vh, 230px);
  left: clamp(1rem, 8vw, 9rem);
  z-index: 2;
}

.join-discover-hud {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  padding: 5.2rem 1.1rem 5.4rem;
}

.join-discover-top,
.join-discover-bottom {
  pointer-events: auto;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.join-discover-top {
  background: rgba(8, 8, 8, 0.38);
  border: 1px solid rgba(244, 190, 40, 0.3);
  border-radius: 18px;
  padding: 1rem 1.25rem 1.1rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.join-discover-top .join-question {
  color: #f4be28;
  margin-bottom: 0.55rem;
}

.join-discover-top .join-hint { margin-bottom: 0; }

.join-discover-bottom {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.join-topic {
  --reveal: 0;
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%) scale(calc(0.96 + var(--reveal) * 0.12));
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(180, 175, 165, 0.95);
  font: inherit;
  font-size: clamp(0.82rem, 2.1vw, 1.12rem);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: default;
  opacity: calc(0.1 + var(--reveal) * 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.join-topic.is-near,
.join-topic:focus-visible {
  --reveal: 1;
  cursor: pointer;
  color: #f4be28;
  border-color: rgba(244, 190, 40, calc(0.25 + var(--reveal) * 0.55));
  box-shadow: 0 0 22px rgba(244, 190, 40, calc(var(--reveal) * 0.35));
  outline: none;
}

.join-topic:focus-visible {
  opacity: 1;
  border-color: #f4be28;
  box-shadow: 0 0 0 2px rgba(244, 190, 40, 0.35), 0 0 24px rgba(244, 190, 40, 0.35);
}

.join-topic.is-selected {
  --reveal: 1;
  opacity: 1;
  color: #111;
  background: linear-gradient(135deg, #ffe08a, #f4be28);
  border-color: transparent;
  box-shadow: 0 0 28px rgba(244, 190, 40, 0.45);
  cursor: pointer;
  animation: topicPulse 2.4s ease-in-out infinite;
}

.join-topic.is-selected::after {
  content: " ✓";
  font-weight: 700;
}

@keyframes topicPulse {
  0%, 100% { box-shadow: 0 0 22px rgba(244, 190, 40, 0.35); }
  50% { box-shadow: 0 0 34px rgba(244, 190, 40, 0.55); }
}

.join-unnamed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: min(100%, 420px);
  margin: 0.25rem auto 0.35rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 190, 40, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: #f4be28;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}

.join-unnamed:hover,
.join-unnamed:focus-visible {
  background: rgba(244, 190, 40, 0.12);
  outline: none;
}

.join-unnamed.is-selected {
  color: #111;
  background: linear-gradient(135deg, #ffe08a, #f4be28);
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(244, 190, 40, 0.35);
}

.join-warn {
  margin-top: 0.35rem;
  color: #f4be28;
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}

.join-warn.is-on {
  opacity: 1;
  transform: none;
}

.join-progress {
  gap: 0;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.34);
  backdrop-filter: blur(8px);
}

.join-progress span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(244, 190, 40, 0.55);
  position: relative;
  display: grid;
  place-items: center;
  color: rgba(255, 224, 138, 0.82);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 8px rgba(244, 190, 40, 0.3);
}

.join-progress span + span::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 42px;
  height: 1px;
  background: rgba(244, 190, 40, 0.35);
  transform: translateY(-50%);
}

.join-progress span:not(:last-child) { margin-right: 42px; }

.join-progress span.is-on {
  background: #f4be28;
  border-color: #f4be28;
  box-shadow: 0 0 12px rgba(244, 190, 40, 0.55);
  color: #111;
}

.join-progress span.is-done {
  border-color: rgba(244, 190, 40, 0.9);
  color: #f4be28;
}

.join-body.is-discovering .join-smoke {
  pointer-events: none !important;
  opacity: 0;
}

.join-body.is-discovering .join-main {
  padding: 0;
  min-height: 100vh;
  place-items: stretch;
}

.join-body.is-discovering .join-panel.is-active {
  width: 100%;
  max-width: none;
  height: 100vh;
  animation: none;
}

.join-body.is-discovering .join-footer,
.join-body.is-discovering .join-progress {
  z-index: 45;
}

.join-body.is-discovering .join-actions .btn {
  backdrop-filter: blur(8px);
}

/* Touch / coarse pointer: visible grid, no flashlight */
@media (hover: none), (pointer: coarse) {
  .join-discover-light { display: none !important; }

  .join-discover-stage {
    position: relative;
    inset: auto;
    min-height: 100vh;
    padding: 14rem 0.85rem 13rem;
    background: rgba(0, 0, 0, 0.28);
  }

  .join-discover-field {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    max-width: 560px;
    margin: 0 auto;
  }

  .join-discover-hud {
    padding: 5rem 0.85rem 5.2rem;
  }

  .join-topic {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100%;
    min-height: 48px;
    opacity: 0.55;
    color: rgba(245, 240, 230, 0.82);
    border-color: rgba(244, 190, 40, 0.28);
    background: rgba(0, 0, 0, 0.22);
    white-space: normal;
    line-height: 1.25;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
  }

  .join-topic.is-near,
  .join-topic.is-selected {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .join-logo img { height: 22px; }
  .join-discover-top { padding: 0.9rem 1rem; }
  .join-discover-hud { padding: 4.8rem 0.75rem 5.2rem; }
  .join-progress span { width: 27px; height: 27px; font-size: 0.66rem; }
  .join-progress span:not(:last-child) { margin-right: 25px; }
  .join-progress span + span::before { width: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .join-topic.is-selected { animation: none; }
  .join-discover-light::after { animation: none; }
}

@media (max-width: 1180px) {
  .join-float-layer { display: none; }
  .join-slide-shell:not(.is-select) .join-card { width: min(680px, 100%); }
}

