/**
 * Nexora — public branded community join / subscription checkout.
 */
.nex-join {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  background: #0b1220;
  -webkit-font-smoothing: antialiased;
}
.nex-join-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -20%, color-mix(in srgb, var(--join-primary) 55%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 80%, color-mix(in srgb, var(--join-secondary) 30%, transparent), transparent 55%),
    linear-gradient(160deg, var(--join-primary) 0%, color-mix(in srgb, var(--join-primary) 70%, #0f172a) 45%, #0b1220 100%);
  z-index: 0;
}
.nex-join-shell {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem;
  box-sizing: border-box;
}
.nex-join-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.15s, transform 0.15s;
}
.nex-join-back:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}
.nex-join-back:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.nex-join-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: nexJoinIn 0.45s ease;
}
@keyframes nexJoinIn {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
.nex-join-form-col {
  padding: 2rem 1.75rem 1.75rem;
  min-width: 0;
}
.nex-join-head { text-align: center; margin-bottom: 1.35rem; }
.nex-join-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  margin-bottom: 0.75rem;
}
.nex-join-head h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #0f172a;
}
.nex-join-desc {
  margin: 0.55rem auto 0;
  max-width: 28rem;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}
.nex-join-form { display: flex; flex-direction: column; gap: 0.95rem; }
.nex-join-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.nex-join-field--grow { flex: 1; }
.nex-join-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}
.nex-join-field input,
.nex-join-field select {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.95rem;
  color: #0f172a;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.nex-join-field input:focus,
.nex-join-field select:focus {
  outline: none;
  background: #fff;
  border-color: color-mix(in srgb, var(--join-primary) 55%, #e2e8f0);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--join-primary) 22%, transparent);
}
.nex-join-coupon { display: flex; align-items: flex-end; gap: 0.55rem; }
.nex-join-apply {
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  font-weight: 700;
  font-size: 0.875rem;
  color: #64748b;
  cursor: not-allowed;
  flex-shrink: 0;
}
.nex-join-secure-note {
  margin: 0;
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}
.join-lock::before {
  content: "🔒";
  font-size: 0.85rem;
}
.nex-join-agree {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
}
.nex-join-agree input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--join-primary);
}
.nex-join-agree a {
  color: var(--join-primary);
  font-weight: 600;
}
.nex-join-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--join-primary);
  color: #fff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--join-primary) 40%, transparent);
  transition: transform 0.12s, filter 0.15s;
}
.nex-join-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.nex-join-submit:active { transform: none; }
.nex-join-auth {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}
.nex-join-auth a { color: var(--join-primary); font-weight: 700; }
.nex-join-err, .nex-join-ok {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.nex-join-err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.nex-join-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.nex-join-steps {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.nex-join-steps li {
  flex: 1 1 auto;
  min-width: 8rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.nex-join-steps li.is-active {
  background: color-mix(in srgb, #5865F2 14%, #fff);
  border-color: color-mix(in srgb, #5865F2 40%, #e2e8f0);
  color: #3730a3;
}
.nex-join-steps li.is-done {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.nex-join-discord__hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}
.nex-join-discord-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nex-join-agree--sso {
  margin: 0;
}
.nex-join-auth--alt {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}
.nex-join-step-lock {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}
.nex-join-form[data-require-discord="1"] {
  opacity: 0.55;
  pointer-events: none;
}
.nex-join-discord {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.nex-join-discord--required {
  background: color-mix(in srgb, #5865F2 8%, #fff);
  border-color: color-mix(in srgb, #5865F2 35%, #e2e8f0);
}
.nex-join-discord--ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.nex-join-discord__lead {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.45;
}
.nex-join-discord__lead strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
  color: #0f172a;
}
.nex-join-discord__status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #047857;
}
.nex-join-discord__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.nex-join-discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  background: #5865F2;
  color: #fff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px color-mix(in srgb, #5865F2 35%, transparent);
  transition: filter 0.15s, transform 0.12s;
}
.nex-join-discord-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: #fff;
}
.nex-join-discord-btn svg {
  flex-shrink: 0;
}
.nex-join-submit:disabled,
.nex-join-submit[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}
@keyframes nexJoinDiscordShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.nex-join-discord--shake {
  animation: nexJoinDiscordShake 0.35s ease;
}
.nex-join-summary {
  padding: 2rem 1.5rem 1.5rem;
  background: #fafafa;
  border-left: 1px solid #eef2f7;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nex-join-summary--room {
  background: linear-gradient(180deg, color-mix(in srgb, var(--join-primary) 8%, #fff) 0%, #fafafa 42%);
}
.nex-join-summary h2 {
  margin: 0 0 1.1rem;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}
.nex-join-room-pill {
  margin: -0.35rem 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--join-primary) 28%, #e2e8f0);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.nex-join-room-pill__k {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.nex-join-room-pill strong {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.98rem;
  color: #0f172a;
}
.nex-join-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  color: #0f172a;
}
.nex-join-line--room {
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.65rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--join-primary) 10%, #fff);
  color: #0f172a;
}
.nex-join-line--muted { color: #64748b; font-size: 0.85rem; }
.nex-join-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0.85rem 0 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}
.nex-join-bill-hint {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  color: #94a3b8;
}
.nex-join-perks-label {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.nex-join-perks {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}
.nex-join-perks li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.15rem;
}
.nex-join-perks li strong {
  display: block;
  font-weight: 700;
  color: #334155;
  font-size: 0.82rem;
}
.nex-join-perks li span {
  display: block;
  margin-top: 0.1rem;
  color: #94a3b8;
  font-size: 0.74rem;
}
.nex-join-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--join-primary);
}
.nex-join-venture {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.nex-join-venture img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
.nex-join-venture strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
}
.nex-join-venture span {
  font-size: 0.75rem;
  color: #64748b;
}
.nex-join-foot {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}
.nex-join-foot a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.nex-join-foot a:hover { text-decoration: underline; }
@media (max-width: 800px) {
  .nex-join-card { grid-template-columns: 1fr; }
  .nex-join-summary {
    border-left: 0;
    border-top: 1px solid #eef2f7;
    order: -1;
  }
  .nex-join-shell { padding: 1.15rem 0.75rem 2rem; }
  .nex-join-form-col { padding: 1.35rem 1.15rem 1.35rem; }
}
