/* ===================== REGISTER MODAL v2 — CLEAN CSS ===================== */
:root {
  --rg2-bg: #020b0f;
  --rg2-card: #051b1f;
  --rg2-card-2: #07242b;
  --rg2-text: #eaf7ff;
  --rg2-muted: #97b6c3;
  --rg2-input: #ffffff;
  --rg2-border: rgba(255, 255, 255, 0.14);
  --rg2-grad1: #ff6a3a; /* orange */
  --rg2-grad2: #ff3d62; /* coral red */
  --rg2-focus: #38bdf8; /* cyan */
  --rg2-good: #22c55e;
  --rg2-bad: #ef4444;
  --rg2-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  --rg2-radius: 18px;
  --rg2-radius-lg: 22px;
  --rg2-font: "DM Sans", "Inter", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
}

/* === Card (map old .rg2-modal to universal .modal-shell) === */
#rg2Overlay .modal-shell {
  position: relative;
  width: min(920px, 92vw);
  color: var(--rg2-text);
  background: linear-gradient(
    160deg,
    var(--rg2-card) 0%,
    var(--rg2-card-2) 100%
  );
  border: 1px solid var(--rg2-border);
  border-radius: var(--rg2-radius-lg);
  box-shadow: var(--rg2-shadow);
  overflow: hidden;
  isolation: isolate;
}

/* Header + sub */
#rg2Overlay .modal-head {
  padding: 28px 28px 8px;
}
#rg2Overlay .modal-head h2 {
  margin: 0;
  font: 800 26px/1 var(--rg2-font);
  letter-spacing: 0.3px;
}
#rg2Overlay .rg2-sub {
  color: #cde9f5;
  margin: 8px 0 12px;
  text-align: left;
}

/* Close button (override base look) */
#rg2Overlay .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #0a2a30;
  color: #9fd3e2;
  border: 1px solid var(--rg2-border);
}
#rg2Overlay .modal-close:hover {
  background: #0d3640;
  color: #c8f3ff;
}

/* Body spacing */
#rg2Overlay .modal-body {
  padding: 22px 26px 12px;
}
#rg2Overlay .rg2-foot {
  padding: 10px 20px 22px;
  text-align: center;
  color: var(--rg2-muted);
}

/* Underline accent (optional divider) */
#rg2Overlay .rg2-underline {
  height: 2px;
  width: 96%;
  margin: 14px auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    #00e0ff55 20%,
    #00e0ff,
    #00e0ff55 80%,
    transparent
  );
  border-radius: 999px;
}

/* ===================== Fields ===================== */
#rg2Overlay .rg2-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#rg2Overlay .rg2-field span {
  font: 600 13px/1 var(--rg2-font);
  color: #c8e7f3;
  letter-spacing: 0.2px;
}
#rg2Overlay .rg2-field input {
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--rg2-border);
  outline: none;
  background: #fff;
  color: #0a0f12;
  font: 600 15px/1 var(--rg2-font);
  transition: box-shadow 0.15s ease, border-color 0.15s ease,
    transform 0.04s ease;
}
#rg2Overlay .rg2-field input:focus {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
  border-color: #7dd3fc;
}
#rg2Overlay .rg2-field input:active {
  transform: translateY(1px);
}

/* Layouts */
#rg2Overlay .rg2-grid-3,
#rg2Overlay .rg2-grid-2 {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
}
#rg2Overlay .rg2-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
#rg2Overlay .rg2-grid-2 {
  grid-template-columns: 1fr 1fr;
}
#rg2Overlay .rg2-field-wide {
  grid-column: 1 / -1;
}

/* Phone + Send OTP inline row */
#rg2Overlay .rg2-grid-otp {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 6px;
}
#rg2Overlay .rg2-grid-otp .rg2-field {
  flex: 1 1 auto;
}
#rg2Overlay .rg2-grid-otp .rg2-tel {
  height: 56px;
  font-size: 16px;
  padding-left: 62px;
  width: 100%;
}

/* OTP Inputs */
#rg2Overlay .rg2-otp-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 16px;
}
#rg2Overlay .rg2-otp-grid input {
  width: 46px;
  height: 54px;
  text-align: center;
  font: 700 22px/1.1 var(--rg2-font);
  border-radius: 14px;
  border: 1px solid var(--rg2-border);
  background: #fff;
  color: #0a0f12;
}
#rg2Overlay .rg2-otp-grid input:focus {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
}

/* DOB */
#rg2Overlay .rg2-dob {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 8px 0 6px;
}
#rg2Overlay .rg2-dob input {
  width: 82px;
  height: 52px;
  text-align: center;
  font: 700 18px/1.1 var(--rg2-font);
  border-radius: 14px;
  border: 1px solid var(--rg2-border);
  background: #fff;
  color: #0a0f12;
}
#rg2Overlay .rg2-dob span {
  color: #7bd8f3;
}

/* Links / checks */
#rg2Overlay .rg2-link {
  color: #63e1ff;
  text-decoration: none;
}
#rg2Overlay .rg2-link:hover {
  text-decoration: underline;
}
#rg2Overlay .rg2-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 4px;
  color: #d5f5ff;
}
#rg2Overlay .rg2-check input {
  transform: translateY(2px);
}

/* Actions row */
#rg2Overlay .rg2-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

/* Hints / messages */
#rg2Overlay .rg2-hint {
  color: var(--rg2-muted);
  font-size: 13px;
  margin-top: 6px;
}
#rg2Overlay .rg2-msg {
  min-height: 22px;
  margin: 12px 0 2px;
  text-align: center;
  color: #ffd1d1;
  font-weight: 800;
}

/* OTP skeleton shimmer (optional) */
#rg2Overlay .rg2-otp-grid input.rg2-otp-skeleton {
  background: linear-gradient(90deg, #dfe6eb 25%, #f5f7fa 50%, #dfe6eb 75%);
  background-size: 200% 100%;
  animation: rg2Shimmer 1.5s infinite;
  color: transparent;
  pointer-events: none;
}
@keyframes rg2Shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ===================== intl-tel-input overrides ===================== */
#rg2Overlay .rg2-field .rg2-tel {
  height: 48px;
  padding-left: 62px;
  padding-right: 14px;
  border-radius: 14px;
  border: 1px solid var(--rg2-border);
  background: #fff;
  color: #0a0f12;
  font: 600 15px/1 var(--rg2-font);
}
#rg2Overlay .iti {
  width: 100%;
}
#rg2Overlay .iti__flag-container {
  inset-inline-start: 8px;
}
#rg2Overlay .iti--separate-dial-code .iti__selected-dial-code {
  font-weight: 700;
  color: #0a0f12;
}
#rg2Overlay .iti__country-list {
  background: #0b2730;
  color: #e6f6ff;
  border: 1px solid #11424e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 100000; /* above modal */
}
#rg2Overlay .iti__country-list .iti__country:hover {
  background: #0f3340;
}

/* ===================== Buttons ===================== */
/* Back: .button-84 */
#rg2Overlay .button-84 {
  align-items: center;
  background-image: linear-gradient(#464d55, #25292e);
  border-radius: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-size: 18px;
  height: 52px;
  justify-content: center;
  padding: 0 28px;
  transition: all 0.15s;
}
#rg2Overlay .button-84:hover {
  box-shadow: rgba(0, 0, 0, 0.2) 0 2px 8px;
  opacity: 0.9;
}

/* Send/Verify OTP: .button-82-pushable (+ inner spans) */
#rg2Overlay .button-82-pushable {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  transition: filter 250ms;
  user-select: none;
}
#rg2Overlay .button-82-shadow {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: hsl(0 0% 0% / 0.25);
  transform: translateY(2px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}
#rg2Overlay .button-82-edge {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(
    to left,
    hsl(340 100% 16%) 0%,
    hsl(340 100% 32%) 8%,
    hsl(340 100% 32%) 92%,
    hsl(340 100% 16%) 100%
  );
}
#rg2Overlay .button-82-front {
  display: block;
  position: relative;
  padding: 12px 42px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: hsl(345 100% 47%);
  transform: translateY(-4px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}
#rg2Overlay .button-82-pushable:hover {
  filter: brightness(110%);
}
#rg2Overlay .button-82-pushable:hover .button-82-front {
  transform: translateY(-6px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}
#rg2Overlay .button-82-pushable:active .button-82-front {
  transform: translateY(-2px);
  transition: transform 34ms;
}
#rg2Overlay .button-82-pushable:hover .button-82-shadow {
  transform: translateY(4px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}
#rg2Overlay .button-82-pushable:active .button-82-shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}

/* Next/Submit: .button-85 (glow plate) */
#rg2Overlay .button-85 {
  min-width: 150px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  outline: none;
  color: #fff;
  background: #000;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
}
#rg2Overlay .button-85:before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  background-size: 400%;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  z-index: -1;
  animation: glowing-button-85 20s linear infinite;
}
#rg2Overlay .button-85:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  border-radius: 10px;
  z-index: -1;
}
@keyframes glowing-button-85 {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* Unify action sizes */
#rg2Overlay .button-82-pushable .button-82-front,
#rg2Overlay .button-85,
#rg2Overlay .button-84,
#rg2Overlay .button-59 {
  min-width: 160px;
  padding: 14px 42px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Resend OTP: .button-59 */
#rg2Overlay .button-59 {
  align-items: center;
  background: #fff;
  border: 2px solid #000;
  color: #000;
  cursor: pointer;
  display: inline-flex;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-size: 16px;
  font-weight: 600;
  height: 52px;
  justify-content: center;
  letter-spacing: -0.8px;
  line-height: 24px;
  min-width: 140px;
  padding: 0 17px;
  transition: all 0.3s;
  border-radius: 12px;
}
#rg2Overlay .button-59:hover,
#rg2Overlay .button-59:active,
#rg2Overlay .button-59:focus {
  border-color: #06f;
  color: #06f;
}

/* ===================== Terms & scrollbar ===================== */
#rg2Overlay .rg2-terms-box {
  max-height: 180px;
  overflow-y: auto;
  padding: 14px 18px;
  margin: 0 0 14px;
  border: 1px solid var(--rg2-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #c8e7f3;
  font-size: 14px;
  line-height: 1.5;
}
#rg2Overlay .rg2-terms-box h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #00e0ff;
}
#rg2Overlay .rg2-terms-box ul {
  margin: 0;
  padding-left: 18px;
}
#rg2Overlay .rg2-terms-box li {
  margin-bottom: 6px;
}
#rg2Overlay .rg2-terms-box::-webkit-scrollbar {
  width: 8px;
}
#rg2Overlay .rg2-terms-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}
#rg2Overlay .rg2-terms-box::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00e0ff, #ff3d62);
  border-radius: 8px;
}
#rg2Overlay .rg2-terms-box::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00b5cc, #ff1744);
}
#rg2Overlay .rg2-terms-box {
  scrollbar-width: thin;
  scrollbar-color: #00e0ff #1a2b34;
}

/* ===================== Error Modal ===================== */
#rg2Overlay .rg2-error-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}
#rg2Overlay .rg2-error-modal.open {
  display: flex;
  animation: fadeIn 0.3s ease both;
}
#rg2Overlay .rg2-error-box {
  position: relative;
  background: linear-gradient(160deg, #320a0a, #220505);
  border: 1px solid #ff3d62;
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 420px;
  width: 90%;
  color: #ffd1d1;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  animation: popIn 0.35s ease;
}
#rg2Overlay .rg2-error-box h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #ff5a7c;
}
#rg2Overlay .rg2-error-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}
#rg2Overlay .rg2-error-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  color: #ff9da8;
  cursor: pointer;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===================== Ticker (Step 2) ===================== */
#rg2Overlay #rg2Ticker {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  min-height: 20px;
  color: #ccc;
}
#rg2Overlay #rg2Ticker .rg2-status-text {
  color: #00e0ff;
}
#rg2Overlay #rg2Ticker .rg2-status-text.rg2-ok {
  color: #6cff9b;
  font-weight: 600;
}
#rg2Overlay #rg2Ticker .rg2-dots span {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 3px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.4s infinite both;
}
#rg2Overlay #rg2Ticker .rg2-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
#rg2Overlay #rg2Ticker .rg2-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
}

/* ===================== Eye button (password show/hide) ===================== */
#rg2Overlay .rg2-pass-wrap {
  position: relative;
}
#rg2Overlay .rg2-eye {
  position: absolute;
  right: 10px;
  top: 30px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--rg2-border);
  background: #0a2a30;
  color: #9fd3e2;
  cursor: pointer;
}
#rg2Overlay .rg2-eye:hover {
  background: #0d3640;
  color: #c8f3ff;
}
/* show diagonal slash when hidden */
#rg2Overlay .rg2-eye svg line {
  display: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
#rg2Overlay .rg2-eye.is-hidden svg line {
  display: block;
}

/* ===================== Responsive ===================== */
@media (max-width: 860px) {
  #rg2Overlay .rg2-grid-3,
  #rg2Overlay .rg2-grid-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  /* Phone + OTP: stack, center button */
  #rg2Overlay .rg2-grid-otp {
    flex-direction: column;
    align-items: stretch;
  }
  #rg2Overlay .rg2-grid-otp .rg2-tel {
    width: 100%;
    height: 52px;
  }
  #rg2Overlay .rg2-grid-otp .button-82-pushable {
    display: block;
    width: auto;
    margin: 12px auto 0;
  }
  #rg2Overlay .rg2-grid-otp .button-82-front {
    min-width: 150px;
    padding: 12px 28px;
  }

  /* Step 2: equal buttons */
  #rg2Overlay .rg2-step[data-step="2"] .rg2-actions {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  #rg2Overlay .rg2-step[data-step="2"] .rg2-actions .button-82-pushable,
  #rg2Overlay .rg2-step[data-step="2"] .rg2-actions .button-59,
  #rg2Overlay .rg2-step[data-step="2"] .rg2-actions .button-84 {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    margin: 0 auto;
    border-radius: 12px;
  }
  #rg2Overlay .rg2-step[data-step="2"] .rg2-actions .button-82-front {
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1;
  }
  #rg2Overlay .rg2-step[data-step="2"] .rg2-actions .button-59,
  #rg2Overlay .rg2-step[data-step="2"] .rg2-actions .button-84 {
    height: 44px;
    padding: 0;
    font-size: 14px;
    line-height: 44px;
  }

  /* Add a bit more top padding when header gets tight */
  #rg2Overlay .modal-head {
    padding-top: 50px;
  }
}

/* Center ALL step headings + subtitles in Register Modal */
#rg2Overlay .modal-head {
  justify-content: center !important; /* override main.css space-between */
}

#rg2Overlay .modal-head > * {
  flex: 1 1 100%; /* stretch inner wrapper full width */
  text-align: center; /* now the title + subtitle align center */
}

#rg2Overlay .rg2-sub {
  text-align: center !important;
}

/* --- Give the card more breathing room --- */
#rg2Overlay .modal-body {
  padding: 28px 28px 32px; /* was 22px 26px 12px */
}

/* Head + sub already centered from earlier step */

/* --- Form grids: more gap and bottom margin --- */
#rg2Overlay .rg2-grid-3,
#rg2Overlay .rg2-grid-2 {
  gap: 16px; /* was 14px */
  margin-bottom: 18px; /* was 12px */
}

/* --- Actions row: add space above & below --- */
#rg2Overlay .rg2-actions {
  justify-content: center;
  gap: 12px;
  margin-top: 16px; /* was 8px */
  margin-bottom: 8px; /* new: ensures space above footer edge */
}

/* OTP/DOB sections: relax vertical rhythm a bit */
#rg2Overlay .rg2-otp-grid {
  /* Step 2 */
  margin: 14px 0 20px; /* was 10px 0 16px */
}
#rg2Overlay .rg2-dob {
  /* Step 3 */
  margin: 12px 0 12px; /* was 8px 0 6px */
}

/* Terms box + consent: add breathing room (Step 5) */
#rg2Overlay .rg2-terms-box {
  margin: 4px 0 18px; /* was 0 0 14px */
}
#rg2Overlay .rg2-check {
  margin: 12px 0 10px; /* was 10px 0 4px */
}

/* Email/Password step: keep inputs off the edges visually */
#rg2Overlay .rg2-pass-wrap {
  /* wrapper around password + eye */
  margin-bottom: 6px; /* adds a little space before actions */
}

/* Optional: ensure last thing in body never sticks to the shell edge */
#rg2Overlay .modal-body > :last-child {
  margin-bottom: 0; /* rely on body padding instead */
}

/* Email + Password fields: shrink a little inside */
#rg2Overlay .rg2-field input {
  width: 96%; /* was auto 100% */
  margin: 0 auto; /* center within column */
}

/* Specific to email/password row */
#rg2Overlay .rg2-grid-2 .rg2-field input {
  width: 94%; /* slightly more breathing space */
}

/* Terms box: keep off modal edges */
#rg2Overlay .rg2-terms-box {
  margin: 0 12px 18px; /* add left/right gap, keep bottom gap */
  padding: 14px 16px; /* a bit more inner breathing */
  border-radius: 12px;
}

/* 1) Labels above, left-aligned (already column, just force left + spacing) */
#rg2Overlay .rg2-field span {
  display: block;
  text-align: left;
  margin-left: 4px;
  margin-bottom: 2px;
}

/* 2) Password eye INSIDE the input */
#rg2Overlay .rg2-pass-wrap {
  position: relative;
  width: 94%; /* match the email shrink */
  margin: 0 auto 6px; /* center + a little gap below */
}

/* make the password input fill this wrapper and keep space for the eye */
#rg2Overlay .rg2-pass-wrap input {
  width: 100%;
  padding-right: 46px; /* room for the eye */
}

/* place the eye inside, vertically centered */
#rg2Overlay .rg2-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--rg2-border);
  background: #0a2a30;
  color: #9fd3e2;
  cursor: pointer;
}

/* 3) Consent row (checkbox + text) — give side margins so it isn't stuck to edges */
#rg2Overlay .rg2-check {
  margin: 12px 12px 10px; /* L/R margins added (was 10px 0 4px) */
}
/* ===== STEP 4 — eye icon inside, no layout shift, tidy labels ===== */

/* Labels: thoda right, upar-left */
#rg2Overlay .rg2-step[data-step="4"] .rg2-field > span {
  display: block;
  margin: 0 0 4px 4px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

/* Grid cells ke andar inputs: compact + centered */
#rg2Overlay .rg2-step[data-step="4"] .rg2-field input[type="email"],
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap input[type="password"],
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap input[type="text"] {
  width: 92% !important;
  height: 44px !important;
  line-height: 44px !important;
  margin: 0 auto !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  box-sizing: border-box;
}

/* Wrapper relative + same width as email */
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap {
  position: relative !important;
  width: 92% !important;
  margin: 0 auto 8px !important;
  box-sizing: border-box;
}

/* Always reserve space for eye (no width jump) */
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap input {
  padding-right: 48px !important;
}

/* Eye inside + center. Remove borders/outline/transition to stop layout shift */
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap .rg2-eye {
  position: absolute !important;
  top: 50% !important;
  right: 8px !important;
  transform: translateY(-50%) !important;
  width: 28px;
  height: 28px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  outline: none !important;
}

/* Kill any animations that may nudge layout on click/focus */
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap,
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap * {
  transition: none !important;
}

/* SVG eye: open vs slashed (no funky resizing) */
#rg2Overlay .rg2-step[data-step="4"] .rg2-eye svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  display: block;
}
#rg2Overlay .rg2-step[data-step="4"] .rg2-eye svg line {
  display: none; /* default: eye open */
}
#rg2Overlay .rg2-step[data-step="4"] .rg2-eye.is-hidden svg line {
  display: block; /* password hidden -> show slash */
}

/* Mobile stack */
@media (max-width: 768px) {
  #rg2Overlay .rg2-step[data-step="4"] .rg2-grid-2 {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
}
/* === STEP 3 (DOB) === */
#rg2Overlay .rg2-step[data-step="3"] .rg2-actions {
  margin-top: 20px; /* thoda extra gap */
  margin-bottom: 16px; /* buttons ke niche bhi space */
}

/* === STEP 4 (Email + Password) === */
/* Labels upar-left */
#rg2Overlay .rg2-step[data-step="4"] .rg2-field > span {
  display: block;
  margin: 0 0 4px 4px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

/* Inputs compact + centered */
#rg2Overlay .rg2-step[data-step="4"] .rg2-field input[type="email"],
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap input[type="password"],
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap input[type="text"] {
  width: 92% !important;
  height: 44px !important;
  margin: 0 auto !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  box-sizing: border-box;
}

/* Password wrapper relative */
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap {
  position: relative !important;
  width: 92% !important;
  margin: 0 auto 10px !important;
  box-sizing: border-box;
}

/* Eye inside, centered vertically */
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap input {
  padding-right: 44px !important; /* space for eye */
}
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap .rg2-eye {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  transform: translateY(-50%) !important;
  width: 28px;
  height: 28px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
}

/* Buttons niche padding */
#rg2Overlay .rg2-step[data-step="4"] .rg2-actions {
  margin-top: 20px;
  margin-bottom: 16px;
}
/* === STEP 4 Fixes === */

/* Labels properly upar-left */
#rg2Overlay .rg2-step[data-step="4"] .rg2-field > span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  margin: 0 0 6px 4px; /* thoda bottom gap */
  color: #c8e7f3;
}

/* Inputs same width + compact */
#rg2Overlay .rg2-step[data-step="4"] .rg2-field input[type="email"],
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap input[type="password"],
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap input[type="text"] {
  width: 92% !important;
  height: 44px !important;
  margin: 0 auto !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  box-sizing: border-box;
}

/* Password wrapper */
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap {
  position: relative !important;
  width: 92% !important;
  margin: 0 auto 12px !important;
}

/* Reserve space for eye inside */
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap input {
  padding-right: 50px !important;
}

/* Eye icon styling */
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap .rg2-eye {
  position: absolute !important;
  top: 80% !important;
  right: 18px !important; /* aur andar */
  transform: translateY(-80%) !important;
  width: 28px;
  height: 28px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #0a2a30 !important;
  border: 2px solid #000 !important; /* black stroke */
  border-radius: 6px !important;
  color: #9fd3e2;
  cursor: pointer;
}
#rg2Overlay .rg2-step[data-step="4"] .rg2-pass-wrap .rg2-eye:hover {
  background: #0d3640 !important;
  color: #c8f3ff;
}
