:root {
  color-scheme: dark;
  --gold: #ecca77;
  --gold-border: rgba(227, 187, 114, 0.42);
  --white-90: rgba(255, 255, 255, 0.9);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-20: rgba(255, 255, 255, 0.2);
}

@font-face {
  font-family: "Prompt";
  src: url("/assets/fonts/prompt-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
}

body,
button,
input,
select {
  font-family: "Prompt", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.register-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: start center;
  background: #111;
}

.register-phone {
  position: relative;
  width: min(100vw, 438px);
  min-height: 100vh;
  min-height: 100svh;
  color: var(--gold);
  background: #151515 url("/assets/member/reference/login-backdrop.webp") center top / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 32px 80px rgba(0, 0, 0, 0.55);
}

.member-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 72px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  color: #fbdeb2;
  font-size: 14px;
}

.back-link img {
  width: 32px;
  height: 32px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.line-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 134px;
  height: 34px;
  margin-top: 1px;
  padding: 0 10px 0 6px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(#7de101, #1bb60e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 2px 6px rgba(0, 0, 0, 0.38);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.line-support img {
  width: 22px;
  height: 22px;
}

.language-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.language-button img {
  display: block;
  width: 40px;
  height: 40px;
}

.register-content {
  min-height: 100vh;
  min-height: 100svh;
  padding: 93px 0 calc(80px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
}

.register-content::-webkit-scrollbar {
  display: none;
}

.register-logo {
  display: block;
  width: 80%;
  max-width: 350px;
  height: auto;
  margin: 0 auto 28px;
}

.register-panel {
  width: calc(100% - 72px);
  max-width: 366px;
  min-height: 650px;
  margin: 0 auto;
  padding: 31px 16px 28px;
  border: 1px solid rgba(227, 187, 114, 0.31);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.82);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.02);
  scroll-margin-top: 78px;
}

.register-kicker,
.section-title,
.terms-copy {
  margin: 0;
}

.register-kicker {
  color: var(--white-40);
  font-size: 11px;
  letter-spacing: 0.025em;
  text-align: center;
  text-transform: uppercase;
}

.register-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px auto 8px;
}

.register-progress span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(227, 187, 114, 0.34);
  border-radius: 50%;
  color: var(--white-40);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
}

.register-progress span.is-active {
  border-color: #e3bb72;
  color: #17120a;
  background: linear-gradient(#f8d99a, #b48749);
}

.register-progress i {
  width: 58px;
  height: 1px;
  background: rgba(227, 187, 114, 0.28);
}

.form-message {
  min-height: 18px;
  margin: 0 0 4px;
  color: var(--white-40);
  font-size: 11px;
  text-align: center;
}

.form-message[data-state="error"] {
  color: #ff9e91;
}

.section-title {
  margin: 14px 0 13px 16px;
  color: var(--white-40);
  font-size: 11px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.glass-card,
.source-field {
  overflow: hidden;
  border: 1px solid var(--gold-border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.01);
}

.register-field {
  position: relative;
  display: block;
  min-height: 71px;
  padding: 11px 14px 9px;
}

.register-field + .register-field {
  border-top: 1px solid rgba(227, 187, 114, 0.16);
}

.register-field > span,
.choice-label {
  display: block;
  margin-bottom: 6px;
  color: var(--white-40);
  font-size: 11px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.register-field input,
.register-field select,
.register-phone-entry input,
.source-row select {
  width: 100%;
  min-width: 0;
  height: 28px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--white-90);
  background: transparent;
  font-size: 16px;
  line-height: 24px;
}

.register-field select {
  appearance: none;
  padding-right: 28px;
}

.register-field select option {
  color: #111;
}

.register-phone-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}

.register-dial-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--white-90);
  font-size: 16px;
}

.register-dial-code strong {
  font-weight: 400;
}

input::placeholder,
select:invalid {
  color: var(--white-20);
  opacity: 1;
}

.password-field input {
  padding-right: 34px;
}

.password-toggle {
  position: absolute;
  right: 11px;
  bottom: 17px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
}

.password-toggle img {
  width: 20px;
  height: 20px;
  opacity: 0.72;
}

.contact-card {
  margin-top: 14px;
}

.bank-card {
  margin-top: 14px;
}

.select-field {
  position: relative;
}

.select-field .chevron {
  position: absolute;
  right: 14px;
  bottom: 17px;
}

.choice-row {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.locked-country {
  cursor: default;
  user-select: none;
}

.country-lock {
  min-width: 28px;
  padding: 3px 6px;
  border: 1px solid rgba(227, 187, 114, 0.34);
  border-radius: 999px;
  color: var(--gold);
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

.choice-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.choice-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.choice-copy .choice-label {
  margin-bottom: 4px;
}

.choice-copy strong {
  overflow: hidden;
  color: var(--white-90);
  font-size: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-flag {
  width: 20px;
  height: 20px;
  object-fit: cover;
  flex: 0 0 auto;
}

.chevron {
  color: rgba(255, 255, 255, 0.3);
  font-size: 20px;
  line-height: 1;
}

.phone-divider {
  width: 1px;
  height: 20px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.1);
}

.source-field {
  display: block;
  min-height: 72px;
  margin-top: 14px;
  padding: 11px 14px 9px;
}

.source-row {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.source-row select {
  flex: 1;
  appearance: none;
}

.source-row option {
  color: #111;
}

.next-button {
  width: 100%;
  height: 54px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 11px;
  color: var(--white-20);
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  font-weight: 600;
  cursor: not-allowed;
}

.next-button.is-ready {
  border-color: rgba(227, 187, 114, 0.58);
  color: #111;
  background: linear-gradient(#ba8c4e, #fcdd9a);
  box-shadow: 0 2px 12px rgba(227, 188, 114, 0.25);
  cursor: pointer;
}

.verification-block {
  margin-top: 14px;
}

.turnstile-frame {
  min-height: 66px;
  overflow: hidden;
  border: 1px solid rgba(227, 187, 114, 0.25);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.verification-status {
  min-height: 18px;
  margin: 6px 2px 0;
  color: var(--white-40);
  font-size: 11px;
}

.verification-status[data-state="success"] {
  color: #79e6b4;
}

.verification-status[data-state="error"] {
  color: #ff9e91;
}

.verification-retry {
  min-height: 30px;
  margin-top: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(227, 187, 114, 0.48);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.46);
  font-size: 11px;
}

.step-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  margin-top: 14px;
}

.back-button,
.submit-button {
  height: 48px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
}

.back-button {
  border: 1px solid rgba(227, 187, 114, 0.42);
  color: var(--gold);
  background: rgba(0, 0, 0, 0.5);
}

.submit-button {
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--white-20);
  background: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}

.submit-button.is-ready {
  border-color: rgba(227, 187, 114, 0.58);
  color: #111;
  background: linear-gradient(#ba8c4e, #fcdd9a);
  box-shadow: 0 2px 12px rgba(227, 188, 114, 0.25);
  cursor: pointer;
}

.terms-copy {
  margin-top: 16px;
  padding: 0 8px;
  color: var(--white-40);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.terms-copy a {
  color: rgba(227, 187, 114, 0.7);
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px 16px 0;
  color: #fff;
  font-size: 14px;
}

.login-row a {
  width: 100px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 7px 10px;
  border: 1px solid #e3bb72;
  border-radius: 11px;
  color: var(--gold);
}

.registration-success {
  width: calc(100% - 72px);
  max-width: 366px;
  margin: 0 auto;
  padding: 34px 24px;
  border: 1px solid rgba(227, 187, 114, 0.48);
  border-radius: 16px;
  color: var(--white-90);
  background: rgba(0, 0, 0, 0.88);
  text-align: center;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.56);
}

.registration-success .success-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border: 1px solid #65dc9f;
  border-radius: 50%;
  color: #65dc9f;
  font-size: 28px;
}

.registration-success p,
.registration-success small {
  display: block;
  margin: 0;
}

.registration-success strong {
  display: block;
  margin: 9px 0;
  color: var(--gold);
  font-size: 26px;
  letter-spacing: 0.08em;
}

.registration-success small {
  color: var(--white-40);
  font-size: 12px;
  line-height: 1.6;
}

.registration-success a {
  min-height: 42px;
  display: grid;
  place-items: center;
  margin-top: 20px;
  border: 1px solid #e3bb72;
  border-radius: 11px;
  color: #111;
  background: linear-gradient(#f8d99a, #b48749);
  font-weight: 700;
}

@media (max-width: 360px) {
  .member-header {
    padding-inline: 10px;
  }

  .header-actions {
    gap: 8px;
  }

  .line-support {
    width: 122px;
  }

  .register-panel {
    width: calc(100% - 44px);
  }
}

.referral-capture{margin:0 0 14px;padding:10px 12px;border:1px solid rgba(205,164,76,.45);border-radius:14px;background:rgba(255,224,145,.12);color:#ffe2a2;font-size:12px;font-weight:800;text-align:center}
