/* Early access / account / profile pages */

.tester-page {
  max-width: 960px;
  margin: auto;
  padding: 44px 32px 80px;
}

.tester-back {
  color: #a5b8c8;
}

.tester-heading {
  padding: 36px 0 24px;
  max-width: 760px;
}

.tester-heading h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  margin: 16px 0;
}

.tester-heading p,
.tester-card p {
  font-size: 16px;
  line-height: 1.65;
  color: #a5b8c8;
}

.tester-card {
  padding: 32px;
  background: #0c1921;
  border: 1px solid #253642;
  border-radius: 20px;
}

.tester-card h2 {
  font-size: 26px;
  margin: 0 0 12px;
}

.tester-card a {
  color: #d0ff00;
}

.tester-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 24px 0;
}

.tester-fields label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 16px;
}

.tester-fields .full {
  grid-column: 1 / -1;
}

.tester-fields input,
.tester-fields textarea {
  width: 100%;
  box-sizing: border-box;
  background: #061015;
  border: 1px solid #34434e;
  border-radius: 8px;
  color: white;
  font: inherit;
  padding: 13px;
}

.tester-fields input:focus,
.tester-fields textarea:focus {
  outline: 2px solid #d0ff00;
  outline-offset: 2px;
}

.tester-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.tester-consent input {
  margin-top: 5px;
  accent-color: #d0ff00;
  min-width: 18px;
  height: 18px;
}

.tester-card .lime {
  display: inline-flex;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 8px;
}

.tester-card button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.tester-card .tester-social {
  font-size: 14px;
  border-top: 1px solid #253642;
  padding-top: 20px;
  margin-top: 24px;
}

.tester-card [hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .tester-page {
    padding: 24px 16px 50px;
  }

  .tester-card {
    padding: 22px 18px;
  }

  .tester-fields {
    grid-template-columns: 1fr;
  }

  .tester-heading {
    padding-top: 26px;
  }

  .tester-card .lime {
    width: 100%;
    justify-content: center;
  }
}

.tester-card .lime,
.tester-card .lime:hover,
.tester-card .lime:focus-visible {
  color: #000 !important;
}

.returning {
  margin-top: 24px;
}

.tester-page [hidden] {
  display: none !important;
}

#profile-login {
  display: grid;
  gap: 14px;
}

#profile-code,
#private-code {
  min-width: 0;
  width: 100%;
  padding: 14px;
  border: 1px solid #34434e;
  border-radius: 8px;
  background: #061015;
  color: #fff;
  font: inherit;
  box-sizing: border-box;
}

#profile-login button {
  justify-self: start;
}

.profile-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tester-status {
  padding: 8px 14px;
  border: 1px solid #d0ff00;
  border-radius: 30px;
  color: #d0ff00;
  font-size: 14px;
}

.profile-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0;
}

.profile-details .full {
  grid-column: 1 / -1;
}

.profile-details dt {
  font-size: 14px;
  color: #a4aab5;
  margin-bottom: 8px;
}

.profile-details dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.profile-access {
  border-top: 1px solid #253642;
  padding-top: 22px;
}

.profile-access summary {
  cursor: pointer;
  font-size: 16px;
}

.profile-access button {
  margin: 14px 12px 0 0;
}

.profile-access span {
  font-size: 14px;
}

.member-news {
  padding: 18px 0;
  border-bottom: 1px solid #253642;
  margin-bottom: 24px;
}

.member-news h3 {
  font-size: 20px;
  margin: 0;
}

.profile-game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  gap: 16px;
}

.profile-footer a {
  color: #d0ff00;
}

.tester-card .eyebrow {
  display: block;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .profile-details {
    grid-template-columns: 1fr;
  }

  .profile-card-heading h2 {
    font-size: 23px;
  }

  .profile-game-links {
    flex-direction: column;
  }
}

/* Account / login */

.account-page {
  max-width: 680px;
}

.account-fields {
  grid-template-columns: 1fr;
}

.account-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.password-field small {
  font-size: 14px;
  color: #bcc4cd;
}

.tester-fields [hidden] {
  display: none !important;
}

.profile-access a {
  font-size: 16px;
}

#account-state,
#save-state {
  overflow-wrap: anywhere;
}

/* Social sign-in */

.tester-card a.google-signin,
.tester-card a.social-signin,
.tester-card span.social-signin,
.auth-panel a.social-signin,
.auth-panel span.social-signin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 48px;
  background: #13212c;
  border: 1px solid #253642;
  border-radius: 10px;
  color: #f7f9fc;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
}

.tester-card a.social-signin .social-icon,
.tester-card span.social-signin .social-icon,
.auth-panel a.social-signin .social-icon,
.auth-panel span.social-signin .social-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.auth-panel .social-google .social-icon {
  color: #ea4335;
}

.auth-panel .social-facebook .social-icon {
  color: #1877f2;
}

.auth-panel .social-apple .social-icon {
  color: #fff;
}

.auth-panel .social-discord .social-icon {
  color: #5865f2;
}

.tester-card .social-google .social-icon {
  color: #ea4335;
}

.tester-card .social-facebook .social-icon,
.tester-card .social-apple .social-icon,
.tester-card .social-discord .social-icon {
  color: #fff;
}

.tester-card a.google-signin:hover,
.tester-card a.social-signin:hover,
.auth-panel a.social-signin:hover {
  filter: brightness(1.08);
  border-color: #3a3a3a;
}

.social-signin:focus-visible,
.google-signin:focus-visible {
  outline: 3px solid #d0ff00;
  outline-offset: 3px;
}

.social-signin-block,
.google-signin-block {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.auth-social-soon {
  position: relative;
}
.auth-social-soon-label {
  margin: 0 0 2px;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #3a4a56;
  background: #152531;
  color: #d0ff00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-social-soon .social-signin {
  opacity: 0.55;
  cursor: not-allowed;
  user-select: none;
}

.auth-panel .social-google,
.auth-panel .social-facebook,
.auth-panel .social-apple,
.auth-panel .social-discord {
  background: #13212c !important;
  border-color: #253642 !important;
  color: #f7f9fc !important;
}

.social-facebook {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
  color: #fff !important;
}

.social-apple {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

.social-discord {
  background: #5865f2 !important;
  border-color: #5865f2 !important;
  color: #fff !important;
}

.google-letter {
  font:
    bold 22px Arial,
    sans-serif;
  color: #4285f4;
}

.account-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #a5b8c8;
  font-size: 14px;
  margin: 8px 0 24px;
}

.account-divider:before,
.account-divider:after {
  content: "";
  height: 1px;
  background: #253642;
  flex: 1;
}

/* Login welcome panel inside site chrome (sidebar + topbar stay) */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 36px 24px 64px;
  box-sizing: border-box;
}

.auth-panel {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px 32px;
  background: linear-gradient(120deg, #0c1921, #061015);
  border: 1px solid #253642;
  border-radius: 20px;
  box-sizing: border-box;
}

.auth-logo {
  display: inline-flex;
  margin-bottom: 22px;
}

.auth-logo img {
  width: 110px;
  height: auto;
  display: block;
}

.auth-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #12f9ef;
  font-weight: 600;
}

.auth-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  font-weight: 700;
  color: #f7f9fc;
}

.auth-title span {
  color: #d0ff00;
}

.auth-sub {
  margin: 0 0 24px;
  color: #a5b8c8;
  font-size: 15px;
  line-height: 1.5;
}

.auth-social {
  width: 100%;
  margin-top: 0;
}

.auth-divider {
  width: 100%;
  margin: 20px 0;
  color: #a5b8c8;
}

.auth-form {
  width: 100%;
  display: grid;
  gap: 12px;
}

.auth-field {
  position: relative;
  display: block;
  text-align: left;
}

.auth-field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 14px 44px;
  border-radius: 10px;
  border: 1px solid #253642;
  background: #13212c;
  color: #f7f9fc;
  font: inherit;
  font-size: 15px;
}

.auth-field input::placeholder {
  color: #a5b8c8;
}

.auth-field input:focus {
  outline: 2px solid #d0ff00;
  outline-offset: 1px;
}

.auth-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #a5b8c8;
  line-height: 1;
  pointer-events: none;
}

.auth-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a5b8c8;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.auth-eye:hover {
  color: #d0ff00;
  background: rgba(208, 255, 0, 0.08);
}

.auth-eye:focus-visible {
  outline: 2px solid #d0ff00;
  outline-offset: 1px;
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: #d0ff00 !important;
  color: #080e00 !important;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-page #account-state {
  min-height: 1.2em;
  margin: 4px 0 0;
  color: #a5b8c8;
  font-size: 14px;
  text-align: left;
}

.auth-footer {
  margin: 22px 0 0;
  color: #a5b8c8;
  font-size: 14px;
}

.auth-footer a {
  color: #d0ff00;
  font-weight: 600;
  text-decoration: none;
}

.auth-forgot {
  margin: 12px 0 0;
  font-size: 13px;
}

.auth-forgot a {
  color: #a5b8c8;
  text-decoration: none;
}

.auth-forgot a:hover,
.auth-footer a:hover {
  text-decoration: underline;
}

.auth-panel-signup {
  max-width: 520px;
  text-align: left;
  align-items: stretch;
}

.auth-panel-signup .auth-logo,
.auth-panel-signup .auth-kicker,
.auth-panel-signup .auth-title,
.auth-panel-signup .auth-sub {
  text-align: center;
  align-self: center;
}

.auth-panel-signup .auth-logo {
  display: inline-flex;
}

.auth-panel-signup .auth-social,
.auth-panel-signup .auth-divider,
.auth-panel-signup .auth-form,
.auth-panel-signup .auth-footer,
.auth-panel-signup .auth-forgot,
.auth-panel-signup #load-state,
.auth-panel-signup #save-state {
  width: 100%;
}

.auth-panel-signup #load-state,
.auth-panel-signup #save-state {
  margin: 0;
  color: #a5b8c8;
  font-size: 14px;
  text-align: left;
}

.auth-form-signup {
  gap: 14px;
}

.auth-panel-signup .tester-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.auth-field-labeled.phone-iti-field {
  grid-column: 1 / -1;
}

.auth-field-labeled .iti {
  width: 100%;
  display: block;
}

.auth-field-labeled .iti input.iti__tel-input,
.auth-field-labeled .iti input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #253642;
  background: #13212c;
  color: #f7f9fc;
  font: inherit;
  font-size: 15px;
}

.auth-field-labeled .iti__country-container {
  left: 2px;
}

.auth-field-labeled .iti__selected-country {
  background: transparent !important;
  border-radius: 10px 0 0 10px;
}

.auth-field-labeled .iti__dropdown-content {
  background: #0c1921;
  border: 1px solid #253642;
  color: #f7f9fc;
}

.auth-field-labeled .iti__search-input {
  background: #13212c;
  color: #f7f9fc;
  border: 1px solid #253642;
}

.auth-field-labeled .iti__country:hover,
.auth-field-labeled .iti__country.iti__highlight {
  background: #13212c;
}

.auth-field-labeled {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.auth-label abbr {
  color: #d0ff00;
  text-decoration: none;
  margin-left: 2px;
}

.auth-field-labeled input,
.auth-field-labeled textarea,
.auth-field-labeled select {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #253642;
  background: #13212c;
  color: #f7f9fc;
  font: inherit;
  font-size: 15px;
}

.auth-field-labeled select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #a5b8c8 50%),
    linear-gradient(135deg, #a5b8c8 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.auth-field-labeled textarea {
  min-height: 110px;
  resize: vertical;
}

.auth-field-labeled input::placeholder,
.auth-field-labeled textarea::placeholder {
  color: #a5b8c8;
}

.auth-field-labeled input:focus,
.auth-field-labeled textarea:focus,
.auth-field-labeled select:focus {
  outline: 2px solid #d0ff00;
  outline-offset: 1px;
}

.auth-field-labeled small {
  font-size: 12px;
  color: #a5b8c8;
}

.auth-panel-signup .tester-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #a5b8c8;
  text-align: left;
}

.auth-panel-signup .tester-consent input {
  margin-top: 3px;
  accent-color: #d0ff00;
  min-width: 18px;
  height: 18px;
}

.auth-panel-signup .auth-footer,
.auth-panel-signup .auth-forgot {
  text-align: center;
}

@media (max-width: 600px) {
  .auth-page {
    padding: 20px 12px 48px;
  }

  .auth-panel {
    padding: 28px 18px 24px;
  }

  .auth-panel-signup .tester-fields {
    grid-template-columns: 1fr;
  }
}

/* Professional searchable country picker */
.country-picker {
  position: relative;
  width: 100%;
}

.country-picker-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
  appearance: none !important;
  background: none !important;
}

.country-picker-trigger {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #253642;
  background: #13212c;
  color: #f7f9fc;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.country-picker-trigger:hover {
  border-color: #34434e;
}

.country-picker.is-open .country-picker-trigger,
.country-picker-trigger:focus-visible {
  outline: none;
  border-color: #d0ff00;
  box-shadow: 0 0 0 2px rgba(208, 255, 0, 0.18);
}

.country-picker-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.country-picker-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-picker-label.is-placeholder {
  color: #a5b8c8;
}

.country-picker-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #a5b8c8;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.country-picker.is-open .country-picker-caret {
  transform: rotate(180deg);
}

.country-picker-panel {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  display: flex;
  flex-direction: column;
  max-height: 280px;
  border-radius: 12px;
  border: 1px solid #253642;
  background: #0c1921;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.country-picker-search {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px !important;
  margin: 0;
  padding: 12px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #253642 !important;
  border-radius: 0 !important;
  background: #09151c !important;
  color: #f7f9fc;
  font: inherit;
  font-size: 14px;
  outline: none !important;
}

.country-picker-search::placeholder {
  color: #a5b8c8;
}

.country-picker-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  max-height: 220px;
}

.country-picker-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #f7f9fc;
  cursor: pointer;
  font-size: 14px;
}

.country-picker-option:hover,
.country-picker-option[aria-selected="true"] {
  background: #13212c;
}

.country-picker-option[aria-selected="true"] {
  box-shadow: inset 2px 0 0 #d0ff00;
}

.country-picker-empty {
  padding: 16px 12px;
  color: #a5b8c8;
  font-size: 14px;
  text-align: center;
}

.profile-field .country-picker-trigger {
  min-height: 46px;
  border-radius: 11px;
  border-color: #34434e;
  background: #0c1921;
  font-size: 16px;
}
