:root {
  --bg: #1d0a33;
  --bg2: #2a1148;
  --gold1: #e0b866;
  --gold2: #b8841f;
  --green: #12994a;
  --field: #d0d4e0;
  --text: #0d0d14;
  --muted: #8a8fa3;
  --link: #4a1760;
  --error: #d0293b;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  font-family:
    "Inter",
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.topbar {
  margin: 10px;
  padding: 10px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
}
.burger {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.burger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #cbbfe0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.5px;
  font-size: 18px;
}
.brand img {
  height: 29px;
  width: auto;
}
.btn-pill {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  color: #2a1700;
  padding: 8px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--gold1), var(--gold2));
}
.hero {
  padding: 40px 24px;
  color: #fff;
  text-align: center;
}
.hero h1 {
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.hero h1 span {
  color: var(--gold1);
}
.hero p {
  color: #cbbfe0;
  margin-bottom: 22px;
}
.hero .btn-pill {
  font-size: 16px;
  padding: 12px 32px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 3, 20, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 50;
}
.overlay.open {
  display: flex;
}
.sheet {
  background: #fff;
  width: 100%;
  max-width: 497px;
  margin-top: 55px;
  border-radius: 22px 22px 0 0;
  min-height: calc(100% - 55px);
  padding: 10px 18px 30px;
  animation: up 0.25s ease-out;
  overflow-y: auto;
}
@keyframes up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.bonus {
  display: flex;
  gap: 10px;
  margin: 0 -10px;
  padding: 0 0 0 0;
  align-items: flex-start;
}
.bonus-img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  flex: none;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #6a1fb5 0%, #2d0b56 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.bonus-img span {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.bonus-body {
  flex: 1;
  min-width: 0;
  position: relative;
  padding-right: 4px;
}
.bonus-body .cat {
  font-weight: 600;
  font-size: 15px;
  margin-top: 2px;
}
.bonus-body .amount {
  font-weight: 800;
  font-size: 19px;
  color: var(--green);
  margin-top: 2px;
}
.bonus-body .sub {
  font-size: 14px;
  color: #3b3b4a;
  margin-top: 2px;
}
.info {
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
}
.btn-activate {
  width: 100%;
  margin-top: 7px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 12px;
  border-radius: 8px;
  background: var(--green);
}
.btn-activate.on {
  background: #0b6b32;
}

.reg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 42px 0 18px;
}
.reg-head h2 {
  font-size: 21px;
  font-weight: 800;
}

.field {
  margin-bottom: 12px;
}
.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  width: 100%;
  height: 52px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--field);
  padding: 0 16px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  font-family: inherit;
}
.field input::placeholder {
  color: #0d0d14;
  opacity: 1;
}
.field input:focus {
  border-color: #7a3fc0;
  background: #d9dcea;
}
.field.invalid input {
  border-color: var(--error);
}
.pw-wrap {
  position: relative;
}
.pw-wrap input {
  padding-right: 48px !important;
}
.eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  color: #5b6070;
}
.eye svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.err {
  display: none;
  color: var(--error);
  font-size: 12.5px;
  margin: 5px 4px 0;
  font-weight: 500;
}
.field.invalid .err {
  display: block;
}
.hints {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 6px 4px 0;
  font-size: 12px;
  color: var(--muted);
}
.hints li::before {
  content: "○ ";
}
.hints li.ok {
  color: var(--green);
}
.hints li.ok::before {
  content: "● ";
}

.toggles {
  margin: 16px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  cursor: pointer;
  user-select: none;
}
.toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sw {
  width: 35px;
  height: 18px;
  border-radius: 9px;
  background: #dcdee6;
  position: relative;
  flex: none;
  transition: 0.2s;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.sw::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: 0.2s;
}
.toggle-row input:checked + .sw {
  background: var(--green);
}
.toggle-row input:checked + .sw::after {
  transform: translateX(17px);
}
.toggle-row input:focus-visible + .sw {
  outline: 2px solid #7a3fc0;
  outline-offset: 2px;
}
.toggle-row a {
  color: var(--link);
  text-decoration: underline;
}
.toggle-wrap.invalid .sw {
  box-shadow: 0 0 0 2px var(--error);
}
.toggle-wrap .err {
  margin-left: 47px;
  margin-top: 3px;
}
.toggle-wrap.invalid .err {
  display: block;
}
.promo {
  display: none;
  margin-top: 2px;
}
.promo.show {
  display: block;
}

.btn-reg {
  width: 100%;
  height: 49px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  background: linear-gradient(180deg, #d9b25f 0%, #b5821c 100%);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}
.btn-reg:hover {
  filter: brightness(1.05);
}
.btn-reg:disabled {
  opacity: 0.7;
  cursor: wait;
}
.legal {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 18px;
}
.legal a {
  color: var(--link);
  font-weight: 800;
  text-decoration: underline;
}

.success {
  display: none;
  text-align: center;
  padding: 60px 10px;
}
.success.show {
  display: block;
}
.success .check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success .check svg {
  width: 36px;
  height: 36px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}
.success h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.success p {
  color: #555;
}

.chat {
  position: fixed;
  right: 7px;
  bottom: 74px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #4a14a8;
  border: 0;
  cursor: pointer;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.chat svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

.b-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 3, 20, 0.6);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 70;
}
.b-overlay.open {
  display: flex;
}
.b-sheet {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 497px;
  margin-top: 55px;
  height: calc(100% - 55px);
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: up 0.25s ease-out;
}
.b-banner {
  aspect-ratio: 5 / 2;
}
.b-banner span {
  display: block;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.b-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.b-close svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
  stroke-width: 2.4;
}
.b-scroll {
  overflow-y: auto;
  padding: 0 20px 14px;
  flex: 1;
  min-height: 0;
}
.b-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  margin: 32px 0 12px;
}
.b-box {
  background: #f5f6f8;
  border-radius: 14px;
}
.b-summary {
  padding: 16px;
  text-align: center;
}
.b-summary small {
  display: block;
  font-size: 12.5px;
  color: #4b5060;
}
.b-summary strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}
.b-time {
  text-align: center;
  font-size: 12.5px;
  color: #4b5060;
  margin: 16px 0 8px;
}
.b-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.b-timer .cell {
  background: #eceef2;
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 50px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.b-timer .sep {
  font-weight: 700;
  color: #4b5060;
}
.b-detail {
  border: 1px solid #e3e5ea;
  background: #f7f8fa;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 10px;
}
.b-detail h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}
.badge {
  display: inline-block;
  background: #2563ff;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 14px;
  margin-bottom: 14px;
}
.b-detail .lbl {
  font-size: 12.5px;
  color: #4b5060;
  margin-top: 10px;
}
.b-detail .val {
  font-size: 15px;
  font-weight: 800;
  margin-top: 3px;
}
.b-acc {
  background: #f5f6f8;
  border-radius: 14px;
  overflow: hidden;
}
.b-acc button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-family: inherit;
}
.b-acc svg {
  width: 16px;
  height: 16px;
  stroke: #7b8090;
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s;
}
.b-acc.open svg {
  transform: rotate(180deg);
}
.b-acc .content {
  display: none;
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: #4b5060;
  line-height: 1.5;
}
.b-acc.open .content {
  display: block;
}
.b-acc ul {
  padding-left: 18px;
}
.b-foot {
  flex: none;
  border-top: 1px solid #e9ebf0;
  padding: 20px 20px 16px;
  text-align: center;
  background: #fff;
}
.b-btn {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  background: #000;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  font-family: inherit;
}
.b-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1f5eff;
  text-decoration: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(30px);
  background: #222;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 80;
  max-width: 90%;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%);
}
