:root {
  --aja-bg: #000000;
  --aja-surface: #111111;
  --aja-field: #1c1c1c;
  --aja-field-border: #2d2d2d;
  --aja-text: #f5f5f5;
  --aja-text-muted: #9a9a9a;
  --aja-accent: #e4002b;
  --aja-hero: 216, 13, 131;
  --aja-btn: #3d3d3d;
  --aja-btn-register: #6b6b6b;
  --aja-radius: 6px;
  --aja-font: Roboto, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--aja-bg);
  color: var(--aja-text);
  font-family: var(--aja-font);
  -webkit-font-smoothing: antialiased;
}

.no-click,
.no-click * {
  pointer-events: none !important;
  cursor: default !important;
}

.aja-page {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background: var(--aja-bg);
}

.aja-modal {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  background: var(--aja-surface);
  display: flex;
  flex-direction: column;
}

.aja-banner-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
  background: #000;
  overflow: hidden;
}

.aja-banner-link {
  display: block;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.aja-banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  vertical-align: top;
  image-rendering: -webkit-optimize-contrast;
}

.aja-banner-wrap picture {
  display: block;
  width: 100%;
}

.aja-banner-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  pointer-events: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.aja-body {
  flex: 1;
  padding: 18px 14px 28px;
}

.aja-title {
  margin: 0 0 18px 4px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--aja-text);
}

.aja-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aja-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  background: var(--aja-field);
  border: 1px solid var(--aja-field-border);
  border-radius: var(--aja-radius);
  padding: 0 12px 0 44px;
}

.aja-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #bdbdbd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aja-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--aja-text);
  font: 400 15px/1.4 var(--aja-font);
  padding: 14px 0;
}

.aja-input::placeholder {
  color: #8c8c8c;
}

.aja-eye {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #b0b0b0;
  padding: 4px;
  margin-left: 4px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.aja-eye .eye-on {
  display: none;
}

.aja-eye.is-visible .eye-off {
  display: none;
}

.aja-eye.is-visible .eye-on {
  display: block;
}

.aja-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 2px;
}

.aja-footer-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 52px;
  text-align: center;
  text-decoration: none;
}

.aja-footer-row::before,
.aja-footer-row::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36px;
  height: 1px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.22);
}

.aja-footer-row::before {
  left: 0;
}

.aja-footer-row::after {
  right: 0;
}

.aja-footer-text {
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.72);
}

.aja-support-line {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.aja-support-line:active .aja-footer-text {
  color: #fff;
}

.aja-consent-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 6px 0 6px;
}

.aja-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.aja-consent-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.aja-consent-box {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  background: #1c1c1c;
  border: 1px solid #6b6b6b;
  box-sizing: border-box;
  box-shadow: none;
}

.aja-consent-input:checked + .aja-consent-box {
  background: #737373;
  border-color: #737373;
}

.aja-consent-input:checked + .aja-consent-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.aja-consent-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.35;
  font-weight: 400;
}

.aja-consent-error {
  display: none;
  position: relative;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 10px 0 2px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid rgba(var(--aja-hero), 0.9);
  background: linear-gradient(
    135deg,
    rgba(72, 10, 44, 0.98) 0%,
    rgba(118, 24, 62, 0.96) 42%,
    rgba(58, 8, 38, 0.98) 100%
  );
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  box-sizing: border-box;
}

.aja-consent-wrap.has-error .aja-consent-error,
.aja-consent-error.visible {
  display: flex;
}

.aja-consent-error::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: rgb(88, 16, 52);
  border-left: 1px solid rgba(var(--aja-hero), 0.9);
  border-top: 1px solid rgba(var(--aja-hero), 0.9);
}

.aja-consent-error p {
  margin: 0;
  flex: 1;
  font-weight: 400;
  color: #fff;
}

.aja-consent-error-icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  color: #fff;
}

.aja-submit {
  margin-top: 14px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: var(--aja-radius);
  background: #262626;
  color: rgba(255, 255, 255, 0.32);
  font: 500 16px/1 var(--aja-font);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}

.aja-submit:not(:disabled) {
  background: #2aac65;
  color: #fff;
}

.aja-submit:not(:disabled):active {
  background: #239a59;
  color: #fff;
}

.aja-submit:disabled {
  cursor: default;
  pointer-events: none;
}

.aja-submit:disabled:not([aria-busy="true"]) {
  background: #262626;
  color: rgba(255, 255, 255, 0.32);
  opacity: 1;
}

.aja-submit:disabled[aria-busy="true"] {
  background: var(--aja-btn);
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.85;
  cursor: wait;
  pointer-events: none;
}

.aja-register-block {
  position: relative;
  z-index: 6;
  margin-top: 16px;
}

.aja-divider {
  margin: 0 0 14px;
  text-align: center;
  font-size: 13px;
  color: var(--aja-text-muted);
  position: relative;
}

.aja-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #333;
  z-index: 0;
}

.aja-divider span {
  position: relative;
  z-index: 1;
  background: var(--aja-surface);
  padding: 0 12px;
}

.aja-forgot-line {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.aja-forgot-line:active .aja-footer-text {
  color: #fff;
}

.aja-register {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: var(--aja-radius);
  background: var(--aja-btn-register);
  color: #fff;
  font: 500 16px/1 var(--aja-font);
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 6;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.aja-register:active {
  background: #7a7a7a;
}

.aja-register--static {
  pointer-events: none;
  cursor: default;
  touch-action: auto;
  user-select: none;
}

.aja-register--static:active {
  background: var(--aja-btn-register);
}

.aja-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.aja-popup.hidden {
  display: none !important;
}

.aja-popup-inner {
  position: relative;
  width: 100%;
  max-width: 320px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 2px solid var(--aja-accent);
  border-radius: 18px;
  background: #141414;
  padding: 24px 18px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.aja-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.aja-popup-content {
  text-align: center;
}

.aja-popup-gift-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.aja-popup-gift {
  width: min(220px, 86%);
  height: auto;
}

.aja-popup-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
}

.aja-popup-text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.aja-popup-accent {
  color: var(--aja-accent);
  font-weight: 500;
}

.aja-popup-ok {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: var(--aja-radius);
  background: #1db954;
  color: #fff;
  font: 700 15px/1 var(--aja-font);
  cursor: pointer;
}

body.offer-success-open {
  overflow: hidden;
}