@font-face {
  font-family: MaxSans;
  src: url("fonts/MaxSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: MaxSans;
  src: url("fonts/MaxSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --rb-accent: #5b8def;
  --rb-accent-2: #4338ca;
  --rb-bg-dark: #0d0f14;
  --rb-card: #141826;
  --rb-card-border: #222a3d;
  --rb-text-muted: #7b8194;
  --rb-btn-text: #ffffff;
  --rb-radius: 28px;
  --rb-btn-radius: 999px;
  --rb-font: MaxSans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body.rb-body {
  margin: 0;
  min-height: 100%;
  color: #f4f6fb;
  font-family: var(--rb-font);
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--rb-bg-dark);
}

button, input, select, textarea {
  font-family: inherit;
}

.hidden { display: none !important; }

.rb-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow-x: hidden;
}

.rb-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--rb-accent) 40%, transparent), transparent 55%),
    linear-gradient(165deg, var(--rb-bg-dark) 0%, color-mix(in srgb, var(--rb-accent) 20%, var(--rb-bg-dark)) 100%);
}
.rb-bg.rb-bg--image {
  background: transparent;
}
.rb-bg--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rb-bg-image, none) center/cover no-repeat;
  opacity: 1;
}
.rb-bg--image::after {
  content: none;
  display: none;
}

.rb-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-card-border);
  background: var(--rb-card);
  padding: 20px 20px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.rb-card-hero {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  display: none;
  background: rgba(255, 255, 255, 0.04);
}
.rb-card-hero--visible { display: block; }
.rb-card-hero img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.rb-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.rb-badge.hidden {
  display: none !important;
}
.rb-badge span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  font-variant-numeric: tabular-nums;
  color: var(--rb-accent);
  background: color-mix(in srgb, var(--rb-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--rb-accent) 42%, transparent);
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--rb-accent) 22%, transparent);
}

.rb-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 16px;
}
.rb-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #33384a;
}
.rb-dots span.active { background: var(--rb-accent); }

.rb-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: normal;
  text-align: center;
  color: #fff;
}
.rb-subtitle {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.375;
  letter-spacing: normal;
  text-align: center;
  color: var(--rb-text-muted);
}

.rb-phone-row {
  display: flex;
  align-items: center;
  height: 54px;
  border-radius: 14px;
  background: #1a1d28;
  overflow: hidden;
  margin-top: 20px;
}
.rb-phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: default;
}
.rb-phone-prefix img { width: 24px; height: 18px; border-radius: 2px; }
.rb-phone-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: normal;
  padding: 0 12px 0 0;
}
.rb-phone-row input::placeholder { color: #6b7288; font-weight: 400; }

.rb-btn-primary {
  width: 100%;
  height: 56px;
  margin-top: 20px;
  border: 0;
  border-radius: var(--rb-btn-radius);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--rb-btn-text);
  background: var(--rb-accent);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--rb-accent) 35%, transparent);
  transition: transform 0.12s, filter 0.12s;
}
.rb-btn-primary:disabled {
  cursor: not-allowed;
  filter: grayscale(0.4) brightness(0.7);
  opacity: 0.65;
}
.rb-btn-primary:not(:disabled):active { transform: scale(0.98); }

.rb-err {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #f87171;
  text-align: center;
}

.rb-code-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.rb-code-cell {
  width: 44px;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: #1a1d28;
  color: #fff;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: normal;
  text-align: center;
}
.rb-code-cell:focus { outline: 2px solid var(--rb-accent); }

.rb-pwd-wrap {
  margin-top: 20px;
  display: flex;
  align-items: center;
  height: 52px;
  border-radius: 14px;
  background: #1a1d28;
  padding: 0 12px;
}
.rb-pwd-wrap input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
}
.rb-pwd-toggle {
  border: 0;
  background: transparent;
  color: var(--rb-text-muted);
  cursor: pointer;
  padding: 8px;
}

.rb-success-icon {
  width: 64px;
  height: 64px;
  margin: 24px auto 12px;
  border-radius: 50%;
  background: rgba(34, 194, 107, 0.15);
  border: 2px solid #22c26b;
  display: grid;
  place-items: center;
  color: #22c26b;
  font-size: 1.5rem;
  font-weight: 700;
}

[data-landing-field] { position: relative; }
