:root {
  --bg: #3d0004;
  --panel: #ffffff;
  --text: #121826;
  --muted: #667085;
  --line: #d9dee7;
  --field: #ffffff;
  --soft: #f6f7f9;
  --dark: #273140;
  --red: #c6111f;
  --gold: #ffbd18;
  --gold-dark: #db9700;
  --danger: #c62828;
  --success: #147a45;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
}

* {
  box-sizing: border-box;
}

body.betcx7-auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(145,0,0,.35), transparent 32rem),
    radial-gradient(circle at 90% 70%, rgba(111,0,0,.28), transparent 30rem),
    linear-gradient(135deg, #220002 0%, #4c0005 45%, #210001 100%);
}

button, input, select {
  font: inherit;
}

a {
  color: #8f0c17;
}

button,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px;
}

.registration-card {
  width: min(1050px, 100%);
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  text-decoration: none;
  font-size: 34px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -2px;
}

.brand-bet {
  color: #0e1116;
}

.brand-cx {
  color: var(--red);
}

.support-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #ead2d4;
  background: #fff7f8;
  color: var(--red);
  cursor: pointer;
}

.intro {
  text-align: center;
  margin: 4px 0 24px;
}

.intro h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
}

.intro p {
  margin: 8px 0 0;
  color: var(--muted);
}

.method-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 22px;
}

.tab {
  min-height: 54px;
  border: 0;
  border-radius: 9px;
  background: #eceef2;
  color: #222;
  font-weight: 600;
  cursor: pointer;
  transition: .18s ease;
}

.tab:hover {
  background: #e3e6eb;
}

.tab.active {
  background: var(--dark);
  color: #fff;
}

.tab-icon {
  margin-right: 7px;
}

.bonus-panel {
  border: 1px solid #e3e6eb;
  background: #fbfbfc;
  border-radius: 13px;
  padding: 20px;
  margin-bottom: 22px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-title-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 16px;
}

.gift-icon {
  font-size: 18px;
}

.optional-label {
  font-size: 12px;
  color: var(--muted);
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.bonus-card {
  min-height: 164px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #d9dee7;
  border-radius: 11px;
  background: white;
  cursor: pointer;
  padding: 16px;
  transition: .18s ease;
  text-align: center;
}

.bonus-card:hover {
  transform: translateY(-1px);
  border-color: #bbbfc8;
}

.bonus-card.selected {
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 2px rgba(255,189,24,.08);
}

.bonus-card input {
  position: absolute;
  opacity: 0;
}

.radio-dot {
  position: absolute;
  left: 15px;
  top: 16px;
  width: 19px;
  height: 19px;
  border: 1.5px solid #a9b0bc;
  border-radius: 50%;
}

.bonus-card.selected .radio-dot {
  border: 6px solid var(--gold);
}

.badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--gold);
  padding: 5px 9px;
  border-radius: 0 9px 0 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.bonus-art {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 9px;
}

.bonus-art.muted {
  filter: grayscale(1);
}

.bonus-card strong {
  font-size: 17px;
}

.bonus-percent {
  color: var(--red);
}

.bonus-card small {
  margin-top: 6px;
  color: var(--muted);
}

.form-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 17px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}

.input-wrap,
.select-wrap,
.phone-row {
  min-height: 48px;
  border: 1px solid #cfd5df;
  border-radius: var(--radius-sm);
  background: var(--field);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}

.input-wrap:focus-within,
.select-wrap:focus-within,
.phone-row:focus-within {
  border-color: #a97800;
  box-shadow: 0 0 0 3px rgba(255,189,24,.18);
}

.input-icon {
  width: 44px;
  display: grid;
  place-items: center;
  color: #68707e;
}

.input-wrap input,
.phone-row input {
  width: 100%;
  border: 0;
  outline: 0;
  min-height: 46px;
  padding: 0 12px 0 0;
  background: transparent;
}

.select-wrap select {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  padding-right: 14px;
}

.country-code {
  min-width: 128px;
  align-self: stretch;
  border: 0;
  border-right: 1px solid #e0e4ea;
  background: #fafafa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.password-toggle {
  width: 48px;
  min-height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.field-hint,
.field-error,
.terms-error {
  min-height: 16px;
  margin: 5px 0 0;
  font-size: 11px;
}

.field-hint {
  color: var(--muted);
}

.field-error,
.terms-error {
  color: var(--danger);
}

.oneclick-info {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff9e8;
  border: 1px solid #f0d68b;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 18px;
}

.oneclick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold);
  font-size: 20px;
}

.oneclick-info h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.oneclick-info p {
  margin: 0;
  color: #6d6250;
  font-size: 12px;
}

.label-light {
  color: var(--muted);
  font-weight: 400;
}

.consent-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.55;
  margin: 2px auto 12px;
  max-width: 720px;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--gold);
}

.primary-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffc52e, #ffb20f);
  color: #131313;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(214,150,0,.18);
}

.primary-btn:hover {
  filter: brightness(.98);
}

.primary-btn:disabled {
  opacity: .65;
  cursor: wait;
}

.btn-icon {
  margin-right: 8px;
}

.form-message {
  min-height: 20px;
  margin-top: 9px;
  text-align: center;
  font-size: 13px;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--danger);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #e8ebef;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
}

.trust-item + .trust-item {
  border-left: 1px solid #e4e7ec;
}

.trust-item > span {
  font-size: 25px;
}

.trust-item strong,
.trust-item small {
  display: block;
}

.trust-item strong {
  font-size: 12px;
  text-transform: uppercase;
}

.trust-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.login-row {
  text-align: center;
  margin: 24px 0 0;
  font-size: 14px;
}

.login-row a {
  margin-left: 6px;
  font-weight: 700;
  text-decoration: none;
  color: var(--red);
}

@media (max-width: 760px) {
  body.betcx7-auth-page {
    background: #f7f7f8;
  }

  .page-shell {
    display: block;
    padding: 0;
  }

  .registration-card {
    min-height: 100vh;
    border-radius: 0;
    padding: 18px 16px 22px;
    box-shadow: none;
  }

  .topbar {
    margin-bottom: 8px;
  }

  .brand {
    font-size: 27px;
  }

  .intro {
    margin-bottom: 17px;
  }

  .intro h1 {
    font-size: 25px;
  }

  .intro p {
    font-size: 12px;
  }

  .method-tabs {
    gap: 5px;
    position: sticky;
    top: 0;
    z-index: 4;
    background: white;
    padding: 5px 0 8px;
  }

  .tab {
    min-height: 46px;
    padding: 5px;
    font-size: 12px;
  }

  .tab-icon {
    display: none;
  }

  .bonus-panel {
    padding: 13px;
  }

  .bonus-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bonus-card {
    min-height: 72px;
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    text-align: left;
    align-items: center;
    justify-items: start;
    padding: 10px 46px 10px 50px;
  }

  .bonus-art {
    grid-row: 1 / 3;
    grid-column: 1;
    font-size: 30px;
    margin: 0;
  }

  .bonus-card strong {
    grid-column: 2;
    font-size: 14px;
  }

  .bonus-card small {
    grid-column: 2;
    margin: 0;
    font-size: 11px;
  }

  .radio-dot {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  .badge {
    top: 0;
    right: 0;
  }

  .form-grid.two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .field {
    margin-bottom: 13px;
  }

  .country-code {
    min-width: 112px;
  }

  .trust-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px 0;
  }

  .trust-item {
    padding: 0 8px;
  }

  .trust-item + .trust-item {
    border-left: 0;
  }

  .consent-row {
    justify-content: flex-start;
  }

  .primary-btn {
    min-height: 50px;
    font-size: 16px;
  }

  #registerPage .registration-card {
    padding: 18px 16px 22px;
  }
}

@media (max-width: 420px) {
  .registration-card {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-title-row h2 {
    font-size: 14px;
  }

  .optional-label {
    display: none;
  }

  .trust-row {
    display: none;
  }
}


.generated-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.generated-item {
  border: 1px dashed #d5b24b;
  background: #fffaf0;
  border-radius: 10px;
  padding: 14px;
}
.generated-item span,
.generated-item strong {
  display: block;
}
.generated-item span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.generated-item strong {
  font-size: 14px;
}
.credentials-box {
  margin-top: 16px;
  border: 1px solid #e3c25b;
  background: #fff9e8;
  border-radius: 10px;
  padding: 16px;
}
.credentials-title {
  font-weight: 800;
  margin-bottom: 12px;
}
.credential-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid #eadcae;
}
.credentials-box p {
  margin: 10px 0 0;
  color: #6d6250;
  font-size: 12px;
}
@media (max-width: 760px) {
  .generated-preview { grid-template-columns: 1fr; }
}

.livechat-btn {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--red);
  background: #fff7f8;
  border: 1px solid #f0cfd3;
}
.livechat-icon {
  width: 25px;
  height: 25px;
}
.livechat-status {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1ca75b;
  border: 2px solid #fff;
}
.livechat-btn:hover {
  background: #fff0f2;
  border-color: #e9aeb5;
}

.brand-logo {
  display: block;
  width: 150px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 760px) {
  .brand-logo { width: 120px; height: 48px; }
}

/* Register page layout */
#registerPage .captcha-code {
  min-width: 90px;
  min-height: 48px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #131313;
  margin: 0;
}
#registerPage .captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}
#registerPage .field-error.text-danger,
#registerPage .terms-error.text-danger {
  color: var(--danger);
}

/* Login / register page layout inside existing site chrome */
body.betcx7-auth-page .page_wrap {
  max-width: none;
  padding: 0;
}
body.betcx7-auth-page .de_wi > .form-row {
  display: none;
}
body.betcx7-auth-page .main_page {
  padding: 0;
}
.betcx7-login-shell.page-shell,
.betcx7-register-shell.page-shell {
  min-height: calc(100vh - 120px);
}
