

    /* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background: #0d0806;
  overflow: hidden; /* page itself doesn't scroll — only .card-scroll does, same idea as the login page */
  -webkit-font-smoothing: antialiased;
}

/* ─── GLOBAL SCROLLBAR HIDE ─── */
::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
* {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE/Edge */
}

/* ─── BODY ─── */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 60% at 65% 25%, rgba(160, 70, 5, 0.80) 0%, transparent 65%),
    linear-gradient(160deg, #5c1800 0%, #3a0e02 40%, #1c0600 100%);
  min-height: 100vh;
}

/* ─── MOBILE SHELL ───
   Same fixed viewport sizing as the login page's .login-shell. */
.signup-shell {
  width: 100%;
  max-width: 420px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ─── HERO ───
   Padding/sizing matched to the login page's .hero. */
.hero {
  position: relative;
  flex-shrink: 0;
  padding: 2.4rem 1.8rem 6.5rem 1.8rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 75% 65% at 90% 10%, rgba(180, 80, 10, 0.75) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpolygon points='28,2 54,16 54,48 28,62 2,48 2,16' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1.2'/%3E%3C/svg%3E") repeat top left / 56px 64px,
    linear-gradient(155deg, #5c1800 0%, #3a0e02 50%, #1c0600 100%);
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2.4rem;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.logo-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-circle svg {
  width: 26px;
  height: 26px;
  fill: rgba(255, 255, 255, 0.80);
}

.logo-text strong {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.35;
  word-break: break-word;
}
.logo-text span {
  display: block;
  font-size: 0.54rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.hero-headline {
  font-size: clamp(2rem, 7vw, 2.85rem);
  font-weight: 800;
  line-height: 1.10;
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
  word-break: break-word;
}
.hero-headline.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── WHITE CARD ───
   Sized/shadowed like the login page's .card. Split into a scrollable
   region (.card-scroll, holds all the form fields) and a fixed footer
   (.card-footer, holds the Sign Up button, the login link, the 3
   partner logos, and the copyright) so only the fields scroll while
   the button/logos/copyright always stay visible at the bottom. */
.card {
  position: relative;
  z-index: 5;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  margin-top: -2.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  box-shadow:
    0 -8px 40px rgba(0, 0, 0, 0.18),
    0 -1px 0 rgba(255, 255, 255, 0.7) inset;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollable form area – everything above the fixed footer */
.card-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2rem 1.8rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.card-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* ─── SECTION DIVIDER ─── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.3rem;
  margin-top: 0.2rem;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}
.section-divider span {
  font-size: 0.70rem;
  font-weight: 700;
  color: #c0391e;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─── ERROR BOX ─── */
.auth-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 1.3rem;
}
.auth-errors ul {
  list-style: none;
}
.auth-errors li {
  font-size: 0.78rem;
  color: #b91c1c;
  font-weight: 500;
  line-height: 1.5;
}

/* ─── FORM FIELDS ───
   Font sizes/weights/letter-spacing matched to the login page's fields. */
.auth-form {
  display: flex;
  flex-direction: column;
}

.field {
  position: relative;
  margin-bottom: 1.3rem;
}

.field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c0391e;
  margin-bottom: 0.42rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  word-break: break-word;
  transition: color 0.2s;
}
.field-label .req {
  color: #c0391e;
  margin-left: 1px;
}

.field input,
.field select {
  width: 100%;
  border: none !important;
  border-bottom: 1.5px solid #d8d8d8 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.55rem 0 0.5rem 0;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #1a1a1a;
  background: transparent !important;
  outline: none !important;
  transition: border-color 0.25s;
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
}
.field input:focus,
.field select:focus {
  border-bottom: 1.5px solid #c0391e !important;
  box-shadow: none !important;
  outline: none !important;
}
.field input::placeholder {
  color: #c4c4c4;
  font-size: 0.88rem;
  font-weight: 300;
}
.field input[readonly] {
  color: #888;
}

.location-warning {
  display: block;
  font-size: 0.68rem;
  color: #b45309;
  margin-top: 0.3rem;
  line-height: 1.4;
  word-break: break-word;
}

.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #c0391e;
  pointer-events: none;
}
.select-wrap select {
  padding-right: 1.4rem;
  cursor: pointer;
  width: 100%;
}

/* Password wrapper – eye icon on right */
.pw-wrap {
  position: relative;
}
.pw-wrap input {
  padding-right: 2rem !important;
}
.pw-wrap input[type="password"]::-ms-reveal,
.pw-wrap input[type="password"]::-ms-clear,
.pw-wrap input[type="password"]::-webkit-contacts-auto-fill-button,
.pw-wrap input[type="password"]::-webkit-credentials-auto-fill-button,
.pw-wrap input::-webkit-inner-spin-button,
.pw-wrap input::-webkit-outer-spin-button {
  display: none !important;
}

.pw-toggle {
  position: absolute;
  right: 0;
  bottom: 0.5rem;
  left: auto !important;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
  transition: color 0.2s;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.pw-toggle:hover,
.pw-toggle:focus {
  color: #c0391e;
  outline: none;
}
.pw-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

/* Checkbox */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.3rem;
}
.checkbox-field input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  border: 1.5px solid #c8c8c8 !important;
  border-radius: 3px !important;
  margin-top: 2px;
  accent-color: #c0391e;
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-field label {
  font-size: 0.73rem;
  color: #555;
  line-height: 1.5;
  cursor: pointer;
  word-break: break-word;
}

.terms-trigger-link {
  color: #c0391e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.18s;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  font-size: inherit;
  line-height: inherit;
  display: inline;
}
.terms-trigger-link:hover {
  color: #8f2608;
}

/* ─── CARD FOOTER – fixed bottom ───
   Holds the Sign Up button, the login link, the 3 partner logos, and
   the copyright line. This block never scrolls, exactly like the
   login page keeps its button/logos/copyright always in view. */
.card-footer {
  flex-shrink: 0;
  padding: 1rem 1.8rem 1.2rem;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.btn-signup {
  width: 100%;
  padding: 0.98rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #c0391e 0%, #a83010 55%, #8f2608 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow:
    0 6px 22px rgba(140, 40, 10, 0.42),
    0 2px 0 rgba(255, 255, 255, 0.12) inset;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  margin-bottom: 0.7rem;
}
.btn-signup::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
}
.btn-signup:hover::before {
  left: 160%;
}
.btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(140, 40, 10, 0.52), 0 2px 0 rgba(255, 255, 255, 0.12) inset;
  filter: brightness(1.08);
}
.btn-signup:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(140, 40, 10, 0.30);
}

.login-link {
  text-align: center;
  font-size: 0.76rem;
  color: #aaa;
}
.login-link a {
  color: #c0391e;
  font-weight: 600;
  text-decoration: none;
}
.login-link a:hover {
  text-decoration: underline;
}

/* ─── PARTNER LOGOS & COPYRIGHT ───
   Live inside .card-footer now, right under the login link, so they
   stay fixed at the bottom together with the Sign Up button. */
.login-partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.login-partner-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.login-partner-logo:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.login-partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.login-partner-logo svg {
  display: none;
  width: 20px;
  height: 20px;
  fill: #c0391e;
}

.login-copyright {
  text-align: center;
  font-size: 10.5px;
  color: #bbb;
  margin-top: 8px;
  letter-spacing: 0.2px;
}

/* ─── RESPONSIVE: TABLET & DESKTOP ─── */
@media (min-width: 600px) {
  body {
    padding: 2rem;
    align-items: center;
  }
  .signup-shell {
    height: auto;
    max-height: 92vh;
    border-radius: 26px;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.60);
    overflow: hidden;
  }
  .hero {
    padding: 2.5rem 2.2rem 6.2rem 2.2rem;
  }
  .card {
    transform: translateY(60px);
    border-radius: 28px 28px 26px 26px;
    flex: 1;
    min-height: 0;
  }
  .card.visible {
    transform: translateY(0);
  }
  .card-footer {
    border-radius: 0 0 26px 26px;
  }
}

@media (min-width: 900px) {
  .signup-shell {
    max-width: 410px;
  }
  .hero {
    padding: 2.8rem 2.6rem 6.5rem 2.6rem;
  }
  .card-scroll {
    padding: 2rem 2.4rem 1rem;
  }
  .card-footer {
    padding: 1rem 2.4rem 1.2rem;
  }
}

/* ─── DESKTOP LAYOUT (≥ 900px) ─── */
@media (min-width: 900px) {
  .signup-shell {
    display: none !important;
  }
  #desktop-page {
    display: flex !important;
  }
}

#desktop-page {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(140, 25, 10, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 30%, rgba(80, 10, 5, 0.6) 0%, transparent 55%),
    #0d0806;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 100;
}

#desktop-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V18L28 2l28 16v32z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3Cpath d='M28 100L0 84V52l28-16 28 16v32z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

#desktop-page::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 40, 15, 0.18) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  animation: dtBgPulse 6s ease-in-out infinite;
}

@keyframes dtBgPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* ─── DESKTOP CARD ─── */
.dt-card {
  position: relative;
  z-index: 1;
  width: calc(100% - 80px);
  max-width: 900px;
  margin: 0 auto;
  background: rgba(18, 12, 10, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(192, 57, 30, 0.08) inset;
  display: flex;
  overflow: hidden;
  height: calc(100vh - 80px);
  max-height: 820px;
}

/* ─── CARD LEFT ─── */
.dt-card-left {
  width: 40%;
  flex-shrink: 0;
  background: linear-gradient(160deg, #1f0b06 0%, #3a1008 40%, #8b1a0a 80%, #c0391e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 36px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.dt-card-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 80, 20, 0.15) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V18L28 2l28 16v32z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3Cpath d='M28 100L0 84V52l28-16 28 16v32z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.dt-seal-wrap {
  position: relative;
  z-index: 1;
  width: 160px;
  height: 160px;
  margin-bottom: 26px;
}
.dt-seal-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 36px rgba(0, 0, 0, 0.60));
  border-radius: 50%;
}

.dt-agency {
  position: relative;
  z-index: 1;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 62px;
  letter-spacing: 10px;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.dt-tagline {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.dt-bottom-badge {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ─── CARD RIGHT ─── */
.dt-card-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
  min-height: 0;
}

/* Scrollable form area on desktop – only the fields scroll */
.dt-form-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 48px 52px 20px;
  scrollbar-width: none; /* Firefox */
}
.dt-form-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.dt-form-header {
  margin-bottom: 28px;
}

.dt-welcome {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c0391e;
  margin-bottom: 8px;
}

.dt-form-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  letter-spacing: 3px;
  color: #1a0a06;
  line-height: 1.05;
  margin-bottom: 8px;
  word-break: break-word;
}

.dt-form-subtitle {
  font-size: 13px;
  color: #999;
  font-weight: 400;
  line-height: 1.65;
  word-break: break-word;
}

.dt-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.dt-errors ul {
  list-style: none;
}
.dt-errors li {
  font-size: 12.5px;
  color: #b91c1c;
  font-weight: 500;
  line-height: 1.5;
}

.dt-section-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 18px;
  margin-top: 4px;
}
.dt-section-divider::before,
.dt-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ececec;
}
.dt-section-divider span {
  font-size: 10.5px;
  font-weight: 700;
  color: #c0391e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dt-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.dt-fields-grid .dt-field-full {
  grid-column: 1 / -1;
}

/* Field styling matched to the login page's boxed .dt-field inputs */
.dt-field {
  margin-bottom: 18px;
  position: relative;
}

.dt-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a0a0a0;
  margin-bottom: 8px;
  word-break: break-word;
  transition: color 0.2s;
}
.dt-field:focus-within label {
  color: #c0391e;
}

.dt-field input,
.dt-field select {
  width: 100%;
  background: #f7f6f6;
  border: 1.5px solid #ebebeb;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  min-width: 0;
}
.dt-field input:focus,
.dt-field select:focus {
  border-color: #c0391e;
  background: #fff;
  box-shadow: 0 0 0 3.5px rgba(192, 57, 30, 0.10);
}
.dt-field input::placeholder {
  color: #c2c2c2;
  font-size: 13.5px;
  font-weight: 300;
}
.dt-field input[readonly] {
  color: #999;
}

.dt-field .location-warning {
  display: block;
  font-size: 10.5px;
  color: #b45309;
  margin-top: 5px;
  line-height: 1.4;
  word-break: break-word;
}

.dt-select-wrap {
  position: relative;
}
.dt-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #c0391e;
  pointer-events: none;
}
.dt-select-wrap select {
  padding-right: 2rem;
  cursor: pointer;
  width: 100%;
}

/* Desktop password wrapper */
.dt-pw-wrap {
  position: relative;
}
.dt-pw-wrap input {
  padding-right: 2.4rem !important;
}
.dt-pw-wrap input[type="password"]::-ms-reveal,
.dt-pw-wrap input[type="password"]::-ms-clear,
.dt-pw-wrap input[type="password"]::-webkit-contacts-auto-fill-button,
.dt-pw-wrap input[type="password"]::-webkit-credentials-auto-fill-button,
.dt-pw-wrap input::-webkit-inner-spin-button,
.dt-pw-wrap input::-webkit-outer-spin-button {
  display: none !important;
}

.dt-pw-toggle {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: auto !important;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8b8b8;
  transition: color 0.2s;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.dt-pw-toggle:hover,
.dt-pw-toggle:focus {
  color: #c0391e;
  outline: none;
}
.dt-pw-toggle svg {
  width: 17px;
  height: 17px;
  display: block;
  pointer-events: none;
}

.dt-checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  margin-bottom: 4px;
}
.dt-checkbox-field input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin-top: 2px;
  accent-color: #c0391e;
  cursor: pointer;
  flex-shrink: 0;
}
.dt-checkbox-field label {
  font-size: 12px;
  color: #666;
  line-height: 1.55;
  cursor: pointer;
  word-break: break-word;
}

/* ─── DESKTOP FOOTER – fixed bottom ───
   Holds the Create Account button, the login link, the 3 partner
   logos, and the copyright — never scrolls, mirrors the login page. */
.dt-card-footer {
  flex-shrink: 0;
  padding: 18px 48px 20px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dt-card-footer-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dt-btn-signup {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #c0391e 0%, #a83010 55%, #8f2608 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 4px 22px rgba(140, 40, 10, 0.38),
    0 2px 0 rgba(255, 255, 255, 0.10) inset;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dt-btn-signup::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-18deg);
  transition: left 0.5s ease;
}
.dt-btn-signup:hover::before {
  left: 160%;
}
.dt-btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(140, 40, 10, 0.48), 0 2px 0 rgba(255, 255, 255, 0.10) inset;
}
.dt-btn-signup:active {
  transform: translateY(0);
}

.dt-login-link {
  font-size: 12.5px;
  color: #aaa;
  white-space: nowrap;
}
.dt-login-link a {
  color: #c0391e;
  font-weight: 600;
  text-decoration: none;
}
.dt-login-link a:hover {
  text-decoration: underline;
}

.dt-card-footer .login-partner-logos {
  margin-top: 2px;
  padding-top: 10px;
}

.dt-card-footer .login-copyright {
  margin-top: 2px;
}

.dt-status-bar {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.18);
  z-index: 2;
  pointer-events: none;
}

.dt-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 6px;
  box-shadow: 0 0 6px #22c55e;
  animation: dtBlink 2.5s ease-in-out infinite;
}
@keyframes dtBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ─── TERMS MODAL ─── */
.terms-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 4, 2, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 600px) {
  .terms-backdrop {
    align-items: center;
    padding: 24px;
  }
}
.terms-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.terms-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -12px 60px rgba(0, 0, 0, 0.30), 0 40px 80px rgba(0, 0, 0, 0.20);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
@media (min-width: 600px) {
  .terms-modal {
    border-radius: 24px;
    max-height: 88vh;
    transform: translateY(0) scale(0.88);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
      opacity 0.3s ease;
  }
}
.terms-backdrop.open .terms-modal {
  transform: translateY(0);
}
@media (min-width: 600px) {
  .terms-backdrop.open .terms-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.terms-drag-handle {
  width: 36px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}
@media (min-width: 600px) {
  .terms-drag-handle {
    display: none;
  }
}

.terms-header {
  flex-shrink: 0;
  padding: 20px 24px 0;
  background: #fff;
}
@media (min-width: 600px) {
  .terms-header {
    padding: 28px 36px 0;
  }
}

.terms-header-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.terms-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(192, 57, 30, 0.25);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(192, 57, 30, 0.20);
}
.terms-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.terms-header-text {
  flex: 1;
}

.terms-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c0391e;
  margin-bottom: 3px;
}

.terms-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: #1a0a06;
  line-height: 1;
}
@media (min-width: 600px) {
  .terms-title {
    font-size: 32px;
  }
}

.terms-subtitle {
  font-size: 11.5px;
  color: #888;
  margin-top: 4px;
  line-height: 1.5;
}

.terms-close-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: background 0.18s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.terms-close-btn:hover {
  background: #fee2e2;
  color: #c0391e;
}
.terms-close-btn svg {
  width: 16px;
  height: 16px;
}

.terms-header-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e8e8e8 20%, #e8e8e8 80%, transparent);
  margin: 16px 24px 0;
}
@media (min-width: 600px) {
  .terms-header-divider {
    margin: 20px 36px 0;
  }
}

.terms-progress-wrap {
  flex-shrink: 0;
  padding: 0 24px;
  margin-top: 12px;
}
@media (min-width: 600px) {
  .terms-progress-wrap {
    padding: 0 36px;
  }
}

.terms-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.terms-progress-label span {
  font-size: 10px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.terms-progress-label .terms-pct {
  font-size: 11px;
  font-weight: 700;
  color: #c0391e;
  transition: color 0.3s;
}

.terms-progress-track {
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
}

.terms-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c0391e, #ff6b35);
  border-radius: 2px;
  transition: width 0.15s ease;
}

.terms-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ebebeb transparent;
}
@media (min-width: 600px) {
  .terms-body {
    padding: 20px 36px 24px;
  }
}
.terms-body::-webkit-scrollbar {
  width: 4px;
}
.terms-body::-webkit-scrollbar-track {
  background: transparent;
}
.terms-body::-webkit-scrollbar-thumb {
  background: #e8e8e8;
  border-radius: 2px;
}

.terms-section {
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.terms-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.terms-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.terms-section-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #c0391e 0%, #8f2608 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

.terms-section-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1a0a06;
  letter-spacing: 0.01em;
}

.terms-section-body {
  padding-left: 34px;
  font-size: 12px;
  color: #555;
  line-height: 1.75;
}
.terms-section-body p {
  margin-bottom: 6px;
}
.terms-section-body ul {
  padding-left: 16px;
  margin: 4px 0 6px;
}
.terms-section-body ul li {
  margin-bottom: 4px;
  list-style: disc;
}
.terms-section-body strong {
  color: #2a0a04;
  font-weight: 600;
}

.terms-highlight {
  background: #fef9f9;
  border-left: 3px solid #c0391e;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 11.5px;
  color: #4a1010;
  line-height: 1.65;
}

.terms-info-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef2f2;
  color: #c0391e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.terms-info-chip svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  flex-shrink: 0;
}

.terms-end-marker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #e8e8e8;
}
.terms-end-marker::before,
.terms-end-marker::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ebebeb;
}
.terms-end-marker span {
  font-size: 10px;
  font-weight: 700;
  color: #c8c8c8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.terms-scroll-prompt {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 8, 4, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 50px;
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s ease;
  opacity: 1;
}
.terms-scroll-prompt.hidden {
  opacity: 0;
}
.terms-scroll-prompt svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  animation: promptBounce 1.2s ease-in-out infinite;
}
@keyframes promptBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

.terms-footer {
  flex-shrink: 0;
  padding: 14px 24px 20px;
  background: #fff;
  border-top: 1px solid #f3f3f3;
  display: flex;
  gap: 10px;
}
@media (min-width: 600px) {
  .terms-footer {
    padding: 16px 36px 24px;
  }
}

.terms-btn-decline {
  flex: 0 0 auto;
  padding: 12px 20px;
  border: 1.5px solid #e0e0e0;
  border-radius: 50px;
  background: transparent;
  color: #888;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  white-space: nowrap;
}
.terms-btn-decline:hover {
  border-color: #c0391e;
  color: #c0391e;
  background: #fef2f2;
}

.terms-btn-accept {
  flex: 1;
  padding: 13px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #c0391e 0%, #a83010 55%, #8f2608 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(140, 40, 10, 0.38);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.terms-btn-accept.locked {
  background: linear-gradient(135deg, #d0d0d0 0%, #b8b8b8 100%);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}
.terms-btn-accept.locked:hover {
  transform: none;
}
.terms-btn-accept:not(.locked):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(140, 40, 10, 0.48);
}
.terms-btn-accept:not(.locked):active {
  transform: translateY(0);
}

.terms-btn-accept::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.20), transparent);
  transform: skewX(-18deg);
  transition: left 0.5s ease;
}
.terms-btn-accept:not(.locked):hover::before {
  left: 160%;
}

.terms-btn-accept svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.terms-btn-accept .lock-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
  flex-shrink: 0;
}

.terms-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 9999;
  background: linear-gradient(135deg, #166534, #15803d);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
  opacity: 0;
  pointer-events: none;
}
.terms-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.terms-toast svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.geo-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9998;
  background: linear-gradient(135deg, #b45309, #92400e);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 50px;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}
.geo-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── EXTRA SMALL SCREEN FIXES (≤ 420px) ─── */
@media (max-width: 420px) {
  .hero {
    padding: 1.6rem 1rem 4.4rem 1rem;
  }
  .hero-headline {
    font-size: 1.7rem;
  }
  .logo-circle {
    width: 40px;
    height: 40px;
  }
  .logo-circle svg {
    width: 20px;
    height: 20px;
  }
  .logo-text strong {
    font-size: 0.5rem;
  }
  .logo-text span {
    font-size: 0.45rem;
  }
  .card-scroll {
    padding: 1.2rem 1rem 0.5rem;
  }
  .field {
    margin-bottom: 0.9rem;
  }
  .field-label {
    font-size: 0.65rem;
  }
  .field input,
  .field select {
    font-size: 0.85rem;
    padding: 0.45rem 0;
  }
  .pw-toggle svg {
    width: 14px;
    height: 14px;
  }
  .pw-toggle {
    bottom: 0.35rem;
  }
  .section-divider span {
    font-size: 0.6rem;
  }
  .btn-signup {
    font-size: 0.88rem;
    padding: 0.85rem;
  }
  .checkbox-field label {
    font-size: 0.65rem;
  }
  .card-footer {
    padding: 0.8rem 1rem 1rem;
  }
  .login-partner-logo {
    width: 30px;
    height: 30px;
  }
  .dt-pw-toggle svg {
    width: 14px;
    height: 14px;
  }
}

/* ─── FIX FOR TOO-WIDE ELEMENTS ─── */
.card-scroll,
.dt-form-scroll,
.terms-body {
  overflow-x: hidden;
}