/* Targeted auth/onboarding visuals for the local materialized BeatPilot landing. */
.hero-lighthouse-bg {
  width: min(780px, 54vw) !important;
  height: min(650px, 50vw) !important;
  top: clamp(56px, 6.2vw, 92px) !important;
  left: clamp(-160px, -7vw, -82px) !important;
  background-size: 1040px auto !important;
  background-position: 50% 43% !important;
  opacity: 0.78 !important;
  filter: grayscale(1) blur(2.8px) contrast(0.9) brightness(0.95) !important;
  mask-image: radial-gradient(ellipse at 52% 46%, #000 0%, #000 20%, rgb(0 0 0 / 0.58) 32%, transparent 50%) !important;
  -webkit-mask-image: radial-gradient(ellipse at 52% 46%, #000 0%, #000 20%, rgb(0 0 0 / 0.58) 32%, transparent 50%) !important;
}

.bp-modal-open {
  overflow: hidden;
}

.bp-modal[hidden] {
  display: none;
}

.bp-modal,
.bp-auth-page {
  color: #f7f7f2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.bp-modal__backdrop,
.bp-auth-page::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgb(255 255 255 / 0.1), transparent 20rem),
    radial-gradient(circle at 18% 28%, rgb(255 255 255 / 0.09), transparent 24rem),
    linear-gradient(180deg, rgb(5 6 7 / 0.72), rgb(1 2 3 / 0.96));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.bp-modal__backdrop {
  content: "";
}

.bp-auth-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.2rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 50% 0%, rgb(255 255 255 / 0.08), transparent 30rem),
    linear-gradient(180deg, #050607 0%, #090a0d 58%, #040506 100%);
}

.bp-auth-page::before {
  content: "";
}

.bp-auth-page::after,
.bp-modal::after {
  content: "";
  position: absolute;
  width: min(720px, 86vw);
  aspect-ratio: 1.2 / 1;
  background-image: url("/decor/hero-lighthouse.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.34;
  filter: grayscale(1) blur(15px) contrast(0.72) brightness(1.15);
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at center, #000 0%, rgb(0 0 0 / 0.62) 38%, transparent 69%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, rgb(0 0 0 / 0.62) 38%, transparent 69%);
  pointer-events: none;
}

.bp-auth-page::after {
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
}

.bp-modal::after {
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
}

.bp-auth-card,
.bp-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.18), rgb(255 255 255 / 0.045) 34%, rgb(255 255 255 / 0.075)),
    rgb(8 9 10 / 0.58);
  box-shadow:
    0 34px 120px rgb(0 0 0 / 0.62),
    inset 0 1px 0 rgb(255 255 255 / 0.24),
    inset 0 -1px 0 rgb(255 255 255 / 0.08);
  backdrop-filter: blur(28px) saturate(110%);
  -webkit-backdrop-filter: blur(28px) saturate(110%);
}

.bp-auth-card {
  padding: clamp(1.35rem, 4vw, 2rem);
  min-height: min(780px, calc(100vh - 2rem));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bp-auth-card--signup,
.bp-auth-card--verify {
  min-height: auto;
  padding: clamp(1.3rem, 3.5vw, 1.75rem);
}

.bp-modal-card {
  width: min(100%, 520px);
  max-height: min(760px, calc(100vh - 2.5rem));
  overflow: auto;
  padding: clamp(1.35rem, 4vw, 2.2rem);
}

.bp-modal-close {
  position: absolute;
  top: 1.05rem;
  right: 1.05rem;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: rgb(255 255 255 / 0.72);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16);
}

.bp-modal-close:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.1);
}

.bp-modal-card__body {
  padding: 1.25rem 1.2rem 0.25rem;
}

.bp-auth-brand {
  margin: 0 0 1.1rem;
  color: rgb(255 255 255 / 0.86);
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 650;
  text-align: center;
  text-shadow: 0 0 24px rgb(255 255 255 / 0.34);
}

.bp-onboarding-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 auto 1rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.055);
  padding: 0.48rem 0.82rem;
  color: rgb(255 255 255 / 0.68);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.bp-auth-card h1,
.bp-onboarding-title {
  margin: 0 auto;
  max-width: 350px;
  color: #fff;
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 8px 42px rgb(255 255 255 / 0.22);
}

.bp-auth-card--signup h1 {
  max-width: 340px;
  font-size: clamp(2rem, 6vw, 2.55rem);
}

.bp-auth-card--verify h1 {
  font-size: clamp(2rem, 6vw, 2.5rem);
}

.bp-auth-subtitle,
.bp-onboarding-subtitle {
  max-width: 360px;
  margin: 0.95rem auto 0;
  color: rgb(255 255 255 / 0.68);
  font-size: 0.96rem;
  font-weight: 520;
  line-height: 1.65;
  text-align: center;
}

.bp-auth-form {
  display: grid;
  gap: 0.92rem;
  margin-top: 1.65rem;
}

.bp-auth-card--signup .bp-auth-form {
  gap: 0.78rem;
  margin-top: 1.25rem;
}

.bp-auth-field {
  display: grid;
  gap: 0.45rem;
  color: rgb(255 255 255 / 0.78);
  font-size: 0.86rem;
  font-weight: 650;
}

.bp-auth-input-shell {
  display: flex;
  align-items: center;
  min-height: 58px;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.075);
  padding: 0 1rem;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.14),
    0 10px 34px rgb(0 0 0 / 0.15);
}

.bp-auth-input-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  color: rgb(255 255 255 / 0.78);
}

.bp-auth-input-icon svg {
  width: 20px;
  height: 20px;
}

.bp-auth-input-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 0 0 0.65rem;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
}

.bp-auth-input-shell input::placeholder {
  color: rgb(255 255 255 / 0.46);
}

.bp-auth-input-shell input:-webkit-autofill,
.bp-auth-input-shell input:-webkit-autofill:hover,
.bp-auth-input-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 9999s ease-in-out 0s;
}

.bp-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.15rem;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.82rem;
  font-weight: 600;
}

.bp-auth-row a,
.bp-auth-bottom a {
  color: #fff;
  text-decoration: none;
}

.bp-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.bp-auth-check input {
  width: 17px;
  height: 17px;
  accent-color: #fff;
}

.bp-auth-submit,
.bp-onboarding-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.94), rgb(255 255 255 / 0.66) 50%, rgb(255 255 255 / 0.28)),
    #fff;
  color: #08090b;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow:
    0 18px 70px rgb(255 255 255 / 0.18),
    inset 0 1px 0 rgb(255 255 255 / 0.82);
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.bp-auth-submit {
  width: 100%;
  margin-top: 0.45rem;
}

.bp-auth-submit:hover,
.bp-onboarding-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.bp-auth-submit:disabled,
.bp-auth-socials button:disabled,
.bp-auth-secondary-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  filter: none;
}

.bp-onboarding-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.bp-onboarding-button {
  min-height: 54px;
  text-decoration: none;
}

.bp-onboarding-button--secondary,
.bp-onboarding-button--disabled {
  background: rgb(255 255 255 / 0.07);
  color: rgb(255 255 255 / 0.82);
  border-color: rgb(255 255 255 / 0.16);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.13),
    0 16px 44px rgb(0 0 0 / 0.2);
}

.bp-onboarding-button--disabled {
  cursor: not-allowed;
  color: rgb(255 255 255 / 0.42);
}

.bp-onboarding-button--disabled:hover {
  transform: none;
  filter: none;
}

.bp-auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.35rem;
  color: rgb(255 255 255 / 0.62);
  font-size: 0.82rem;
  font-weight: 600;
}

.bp-auth-card--signup .bp-auth-divider {
  margin-top: 1.05rem;
}

.bp-auth-divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.18), transparent);
}

.bp-auth-divider p {
  margin: 0;
}

.bp-auth-socials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
}

.bp-auth-card--signup .bp-auth-socials {
  margin-top: 0.85rem;
}

.bp-auth-socials button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 999px;
  background: rgb(0 0 0 / 0.28);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.bp-auth-socials button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.08);
}

.bp-auth-socials svg {
  width: 19px;
  height: 19px;
}

.bp-auth-bottom,
.bp-onboarding-note {
  margin: 1.35rem auto 0;
  color: rgb(255 255 255 / 0.62);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.bp-auth-card--signup .bp-auth-bottom {
  margin-top: 1.05rem;
}

.bp-auth-message {
  margin: 1rem 0 0;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 18px;
  padding: 0.8rem 0.95rem;
  background: rgb(255 255 255 / 0.055);
  color: rgb(255 255 255 / 0.76);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
}

.bp-auth-message[hidden] {
  display: none;
}

.bp-auth-message--error {
  border-color: rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.06);
  color: rgb(255 255 255 / 0.82);
}

.bp-auth-message--success {
  border-color: rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.095);
  color: #fff;
}

.bp-auth-secondary-actions,
.bp-auth-success-actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.bp-auth-secondary-actions {
  grid-template-columns: 1fr 1fr;
}

.bp-auth-secondary-actions button,
.bp-auth-secondary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.055);
  color: rgb(255 255 255 / 0.76);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.bp-auth-secondary-actions button:hover:not(:disabled),
.bp-auth-secondary-link:hover {
  border-color: rgb(255 255 255 / 0.24);
  color: #fff;
  background: rgb(255 255 255 / 0.09);
}

.bp-modal-link {
  display: flex;
  margin: 1.15rem auto 0;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 0.68);
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.bp-modal-link:hover {
  color: #fff;
}

.bp-modal-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: rgb(255 255 255 / 0.44);
  font-size: 0.84rem;
  font-weight: 650;
}

.bp-modal-legal-links a {
  color: rgb(255 255 255 / 0.66);
}

.bp-modal-legal-links a:hover {
  color: #fff;
}

@media (max-width: 1023px) {
  .hero-lighthouse-bg {
    width: min(650px, 116vw) !important;
    height: min(540px, 92vw) !important;
    top: 58px !important;
    left: -165px !important;
    background-size: 850px auto !important;
    opacity: 0.64 !important;
  }
}

@media (max-width: 640px) {
  .bp-auth-page {
    padding: 0.9rem;
  }

  .bp-auth-card {
    min-height: calc(100vh - 1.8rem);
    border-radius: 32px;
    padding: 1.25rem;
  }

  .bp-auth-card--signup {
    min-height: auto;
  }

  .bp-modal {
    padding: 0.85rem;
  }

  .bp-modal-card {
    border-radius: 30px;
    padding: 1.15rem;
  }

  .bp-modal-card__body {
    padding: 2.45rem 0.1rem 0.1rem;
  }

  .bp-onboarding-actions,
  .bp-auth-socials {
    grid-template-columns: 1fr;
  }
}

.bp-auth-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 20px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bp-auth-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.bp-auth-profile-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bp-auth-profile-label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.bp-auth-profile-copy strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.bp-landing-account-slot {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.bp-landing-auth-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-landing-auth-link,
.bp-landing-auth-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.bp-landing-auth-link {
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.bp-landing-auth-primary {
  color: #050505;
  background: #ffffff;
}

.bp-landing-auth-link:hover,
.bp-landing-auth-primary:hover {
  transform: translateY(-1px);
}

.bp-landing-account {
  position: relative;
}

.bp-landing-account-button {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  max-width: 245px;
  padding: 5px 14px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 40px rgba(0, 0, 0, 0.18);
}

.bp-landing-account-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.bp-landing-account-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.05;
}

.bp-landing-account-text span {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.56);
}

.bp-landing-account-text strong {
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.bp-landing-account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 310px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(8, 9, 12, 0.92);
  color: white;
  backdrop-filter: blur(24px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  z-index: 999;
}

.bp-landing-account-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.bp-landing-account-menu-avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.bp-landing-account-menu-head span,
.bp-landing-account-status span {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(255, 255, 255, 0.42);
}

.bp-landing-account-menu-head strong,
.bp-landing-account-status strong {
  display: block;
  max-width: 205px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

.bp-landing-account-status {
  margin: 13px 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bp-landing-account-action,
.bp-landing-account-logout {
  width: 100%;
  height: 42px;
  margin-top: 8px;
  border-radius: 999px;
  border: 0;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.bp-landing-account-action {
  background: white;
  color: black;
}

.bp-landing-account-logout {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 767px) {
  .bp-landing-auth-link {
    display: none;
  }

  .bp-landing-account-text {
    display: none;
  }

  .bp-landing-account-button {
    padding-right: 5px;
  }

  .bp-landing-account-menu {
    right: -8px;
    width: min(310px, calc(100vw - 32px));
  }
}

/* Compact auth pages: login / signup / reset */
.bp-auth-card {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  scrollbar-width: none;
}

.bp-auth-card::-webkit-scrollbar {
  display: none;
}

.bp-auth-card h1 {
  margin-top: 18px;
  font-size: clamp(42px, 5.2vw, 58px);
  line-height: 0.98;
}

.bp-auth-subtitle {
  margin-top: 16px;
}

.bp-auth-form {
  margin-top: 24px;
}

.bp-auth-field {
  margin-bottom: 16px;
}

.bp-auth-submit {
  min-height: 58px;
}

.bp-auth-divider {
  margin: 22px 0;
}

.bp-auth-brand {
  margin-bottom: 14px;
}

.bp-onboarding-eyebrow {
  margin-bottom: 14px;
}

@media (max-height: 850px) {
  .bp-auth-card {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }

  .bp-auth-card h1 {
    font-size: clamp(38px, 4.8vw, 50px);
  }

  .bp-auth-subtitle {
    font-size: 16px;
    line-height: 1.55;
  }

  .bp-auth-form {
    margin-top: 20px;
  }

  .bp-auth-input-shell {
    min-height: 56px;
  }

  .bp-auth-submit {
    min-height: 56px;
  }
}

@media (max-height: 760px) {
  .bp-auth-card {
    transform: scale(0.92);
    transform-origin: center center;
  }
}

/* Final compact auth layout fix */
.bp-auth-card {
  width: min(460px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 28px) !important;
  padding: 28px 34px !important;
  overflow-y: auto !important;
  transform: none !important;
}

.bp-auth-card h1 {
  margin-top: 10px !important;
  font-size: clamp(36px, 4.2vw, 48px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
}

.bp-auth-subtitle {
  margin-top: 12px !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.bp-auth-form {
  margin-top: 18px !important;
}

.bp-auth-field {
  margin-bottom: 13px !important;
}

.bp-auth-field label {
  margin-bottom: 7px !important;
  font-size: 13px !important;
}

.bp-auth-input-shell {
  min-height: 52px !important;
}

.bp-auth-input-shell input {
  min-height: 52px !important;
  font-size: 15px !important;
}

.bp-auth-submit {
  min-height: 52px !important;
}

.bp-auth-divider {
  margin: 16px 0 !important;
}

.bp-auth-brand {
  margin-bottom: 8px !important;
  font-size: 16px !important;
}

.bp-onboarding-eyebrow {
  margin-bottom: 10px !important;
  padding: 9px 16px !important;
}

.bp-auth-options {
  margin: 8px 0 14px !important;
}

.bp-auth-footer {
  margin-top: 14px !important;
}

@media (max-height: 820px) {
  .bp-auth-card {
    padding: 22px 32px !important;
  }

  .bp-auth-card h1 {
    font-size: 38px !important;
  }

  .bp-auth-subtitle {
    display: none !important;
  }

  .bp-auth-input-shell,
  .bp-auth-input-shell input,
  .bp-auth-submit {
    min-height: 48px !important;
  }
}

@media (max-height: 720px) {
  .bp-auth-brand,
  .bp-onboarding-eyebrow {
    display: none !important;
  }

  .bp-auth-card h1 {
    font-size: 34px !important;
  }

  .bp-auth-field {
    margin-bottom: 10px !important;
  }
}

/* Cleaner download modal override */
.fixed.inset-0.z-\[100\] {
  align-items: center !important;
  padding: 28px !important;
}

.fixed.inset-0.z-\[100\] .relative.w-full.max-w-3xl {
  max-width: 560px !important;
}

.fixed.inset-0.z-\[100\] section {
  border-radius: 34px !important;
  padding: 34px !important;
  text-align: center !important;
}

.fixed.inset-0.z-\[100\] section > .relative {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.fixed.inset-0.z-\[100\] .flex.items-center.justify-between {
  width: 100% !important;
  margin-bottom: 18px !important;
}

.fixed.inset-0.z-\[100\] h2 {
  max-width: 420px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: clamp(42px, 5vw, 58px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
}

.fixed.inset-0.z-\[100\] p {
  max-width: 430px !important;
}

.fixed.inset-0.z-\[100\] .mx-auto.mt-8.grid {
  width: 100% !important;
  max-width: 430px !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.fixed.inset-0.z-\[100\] a[download],
.fixed.inset-0.z-\[100\] button[disabled] {
  width: 100% !important;
  min-height: 56px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.fixed.inset-0.z-\[100\] button[disabled] {
  opacity: 0.5 !important;
}

.fixed.inset-0.z-\[100\] .mt-8.flex.items-center.justify-center {
  margin-top: 22px !important;
}

.fixed.inset-0.z-\[100\] button.mt-8 {
  margin-top: 22px !important;
}

@media (max-height: 760px) {
  .fixed.inset-0.z-\[100\] section {
    padding: 26px !important;
  }

  .fixed.inset-0.z-\[100\] h2 {
    font-size: 40px !important;
  }

  .fixed.inset-0.z-\[100\] .mt-14 {
    margin-top: 28px !important;
  }
}

/* Final download modal polish */
.fixed.inset-0 h2 {
  text-align: center !important;
}

.fixed.inset-0 a[download],
.fixed.inset-0 button[disabled] {
  border-radius: 999px !important;
  text-align: center !important;
}

.fixed.inset-0 button[disabled] {
  opacity: 0.55 !important;
}

.bp-onboarding-actions--download {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: min(100%, 390px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  gap: 12px !important;
}

.bp-onboarding-actions--download .bp-onboarding-button {
  width: 100% !important;
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.bp-onboarding-actions--download .bp-onboarding-button--disabled {
  opacity: 0.55 !important;
}

/* BeatPilot Mac + Windows download buttons */
.bp-onboarding-actions--download {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: min(100%, 430px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  gap: 12px !important;
}

.bp-onboarding-actions--download .bp-onboarding-button,
.bp-onboarding-button--secondary {
  width: 100% !important;
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.bp-onboarding-button--secondary {
  border: 1px solid rgba(255,255,255,0.18) !important;
  background: rgba(255,255,255,0.10) !important;
  color: white !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.bp-onboarding-button--secondary:hover {
  background: rgba(255,255,255,0.16) !important;
}

/* BeatPilot install guide section */
.bp-install-guide {
  position: relative;
  padding: 72px 20px;
  color: #ffffff;
}

.bp-install-guide__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.bp-install-guide__header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.bp-install-guide__eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.bp-install-guide__header h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.bp-install-guide__header p {
  margin: 18px auto 0;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.64);
}

.bp-install-guide__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.bp-install-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 210, 70, 0.11), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(190, 87, 255, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.bp-install-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
}

.bp-install-card__top span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.045);
}

.bp-install-card__top strong {
  font-size: 15px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.bp-install-card__video {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
}

.bp-install-card p {
  margin: 0;
  padding: 16px 18px 20px;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 820px) {
  .bp-install-guide {
    padding: 56px 20px;
  }

  .bp-install-guide__grid {
    grid-template-columns: 1fr;
  }

  .bp-install-card__top {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* BeatPilot install nav + download modal video cards */
.bp-download-install-videos {
  margin: 22px auto 0;
  width: 100%;
  max-width: 520px;
}

.bp-download-install-videos__intro {
  margin-bottom: 12px;
  text-align: center;
}

.bp-download-install-videos__intro span {
  display: inline-flex;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.06);
}

.bp-download-install-videos__intro p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.56);
}

.bp-download-install-videos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bp-download-install-video {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.bp-download-install-video strong {
  display: block;
  padding: 10px 11px 8px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.82);
}

.bp-download-install-video video {
  display: block;
  width: calc(100% - 16px);
  margin: 0 8px 8px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #050608;
  object-fit: cover;
}

.bp-download-install-videos__link {
  display: inline-flex;
  justify-content: center;
  margin-top: 12px;
  width: 100%;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bp-download-install-videos__link:hover {
  color: #ffffff;
}

@media (max-width: 620px) {
  .bp-download-install-videos__grid {
    grid-template-columns: 1fr;
  }
}

/* BeatPilot hero yellow minutes test */
.hero-highlight-minutes {
  color: #ffd76a;
  text-shadow:
    0 0 18px rgba(255, 210, 70, 0.18),
    0 0 42px rgba(255, 190, 60, 0.10);
}

.hero-lighthouse-bg {
  opacity: 0.78 !important;
  filter:
    sepia(1)
    saturate(1.22)
    hue-rotate(348deg)
    blur(2.4px)
    contrast(0.96)
    brightness(1.05) !important;
}

.hero-lighthouse-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 44% 42%, rgba(255, 214, 106, 0.30), transparent 22%),
    radial-gradient(ellipse at 48% 45%, rgba(255, 196, 76, 0.20), transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.bp-avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 32px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}
.bp-avatar-btn {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-avatar-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bp-surface);
}
.bp-avatar-btn:hover {
  transform: scale(1.05);
  background: rgba(124, 108, 255, 0.1);
}
.bp-avatar-btn.selected {
  border-color: #7c6cff;
  box-shadow: 0 0 16px rgba(124, 108, 255, 0.4);
  transform: scale(1.05);
  background: rgba(124, 108, 255, 0.15);
}
