* { box-sizing: border-box; }
body {
  margin: 0;
  background: #F8F7F3;
  font-family: Poppins, sans-serif;
  color: #17171A;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ajax-loader {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 26, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.ajax-loader[hidden] {
  display: none !important;
}

.ajax-loader__box {
  min-width: 220px;
  background: #fff;
  border-radius: 18px;
  padding: 24px 28px;
  text-align: center;
  border: 1px solid #E0DED7;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.ajax-loader__box p {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #17171A;
}

.ajax-loader__spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid #FFD7CE;
  border-top-color: #FF4D2E;
  animation: gf-spin 0.8s linear infinite;
}

@keyframes gf-spin {
  to { transform: rotate(360deg); }
}

/* switcher */
.switcher {
  position: fixed; top: 14px; right: 14px; z-index: 50;
  display: flex; gap: 6px;
  background: #fff; border: 1px solid #E0DED7; border-radius: 999px;
  padding: 5px; box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.switcher button {
  border: none; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  background: transparent; color: #71726E;
}
.switcher button.active { background: #17171A; color: #fff; }

.container { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 40px 24px 24px; }

/* header */
.app-header { display: flex; justify-content: center; margin-bottom: 28px; }
.logo {
  width: 84px; height: 84px; border-radius: 22px; background: #17171A;
  display: flex; align-items: center; justify-content: center;
}
.logo-ring {
  width: 34px; height: 34px; border-radius: 50%;
  border: 5px solid #FF4D2E; border-top-color: transparent; transform: rotate(45deg);
}
.logo.small { width: 56px; height: 56px; border-radius: 15px; flex-shrink: 0; }
.logo.small .logo-ring { width: 22px; height: 22px; border-width: 3.5px; }

/* card */
.card { background: #fff; border: 1px solid #E0DED7; border-radius: 20px; padding: 30px; }
.card.center { text-align: center; padding: 40px 30px; }
.card h1 { margin: 0 0 4px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.card.center h1 { font-size: 25px; font-weight: 700; margin: 0 0 10px; }
.subtitle { margin: 0 0 26px; font-size: 15px; color: #71726E; font-weight: 500; }

.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.input {
  width: 100%; border: 1.5px solid #E0DED7; border-radius: 12px; padding: 13px 14px;
  font-family: inherit; font-size: 16px; font-weight: 500; color: #17171A; background: #F8F7F3;
  margin-bottom: 4px;
}
.select { appearance: none; cursor: pointer; }
.input:focus, .mobile-input:focus-within { outline: none; border-color: #17171A; }
input::placeholder { color: #A9A9A4; }

/* mobile */
.mobile-row { display: flex; gap: 10px; }
.mobile-input {
  flex: 1; display: flex; align-items: center;
  border: 1.5px solid #E0DED7; border-radius: 12px; padding: 0 14px; background: #F8F7F3;
}
.mobile-input .cc { font-size: 16px; font-weight: 500; color: #71726E; margin-right: 8px; }
.mobile-input input {
  flex: 1; border: none; background: transparent; font-family: inherit;
  font-size: 16px; font-weight: 500; padding: 13px 0; color: #17171A;
  font-variant-numeric: tabular-nums;
}
.mobile-input input:focus { outline: none; }
.btn-validate {
  border: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 0 18px; border-radius: 12px; white-space: nowrap; background: #17171A; color: #fff;
}
.btn-validate.verified { background: #1F9D55; }

/* errors / spacing */
.err { margin: 6px 0 18px; font-size: 12.5px; color: #FF4D2E; font-weight: 500; min-height: 0; display: none; }
.err.show { display: block; }
.ok { margin: 6px 0 18px; font-size: 12.5px; color: #1F9D55; font-weight: 600; display: none; }
.ok.show { display: block; }
.field-label { margin-top: 16px; }
.app-header + .page .card h1 + .subtitle { margin-top: 0; }
.field-meta { margin: 6px 0 18px; font-size: 12.5px; color: #71726E; font-weight: 500; }
.hidden-field { display: none; }

/* gender */
.gender-row { display: flex; gap: 10px; margin-bottom: 4px; }
.gender-btn {
  flex: 1; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 13px; border-radius: 12px; border: 1.5px solid #E0DED7; background: #fff; color: #17171A;
}
.gender-btn.active { border-color: #FF4D2E; background: #FFF1EE; color: #FF4D2E; }

/* payment */
.payment { border: 1.5px solid #E0DED7; border-radius: 14px; overflow: hidden; margin-top: 20px; }
.payment-head { padding: 14px 16px; font-size: 13px; font-weight: 600; border-bottom: 1px solid #E0DED7; background: #F8F7F3; }
.payment-body { padding: 6px 16px; }
.prow { display: flex; justify-content: space-between; padding: 11px 0; font-size: 15px; font-weight: 500; border-bottom: 1px solid #E0DED7; }
.prow.total { padding: 13px 0; font-size: 17px; font-weight: 700; border-bottom: none; }
.muted { color: #71726E; }
.num { font-variant-numeric: tabular-nums; }
.accent { color: #FF4D2E; }

/* buttons */
.btn-primary {
  width: 100%; border: none; background: #FF4D2E; color: #fff; font-family: inherit;
  font-size: 16px; font-weight: 600; padding: 16px; border-radius: 12px; cursor: pointer; margin-top: 26px;
}
.btn-primary[disabled], .btn-validate[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn-dark {
  border: none; background: #17171A; color: #fff; font-family: inherit;
  font-size: 15px; font-weight: 600; padding: 14px 30px; border-radius: 12px; cursor: pointer;
}

.form-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  display: none;
}

.form-note.show { display: block; }
.form-note.error { background: #FFF1EE; color: #C93B1C; }
.form-note.success { background: #ECF9F1; color: #1F7A46; }

/* status pages */
.status-icon {
  width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; color: #fff;
}
.status-icon.success { background: #1F9D55; font-size: 32px; }
.status-icon.failure { background: #FF4D2E; font-size: 34px; }
.status-text { margin: 0 0 30px; font-size: 16px; color: #71726E; font-weight: 500; line-height: 1.5; }
.strong { color: #17171A; font-weight: 600; }

.app-card {
  background: #F8F7F3; border: 1px solid #E0DED7; border-radius: 16px; padding: 22px;
  display: flex; align-items: center; gap: 16px; text-align: left; margin-bottom: 22px;
}
.app-name { font-size: 17px; font-weight: 700; }
.app-desc { font-size: 13.5px; color: #71726E; font-weight: 500; }
.store-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.store-btn {
  display: flex; align-items: center; gap: 11px; justify-content: center;
  background: #17171A; color: #fff; text-decoration: none; padding: 13px; border-radius: 12px; font-weight: 600;
}
.store-txt { text-align: left; line-height: 1.15; font-size: 15px; }
.store-txt small { display: block; font-size: 10px; font-weight: 400; opacity: .7; }

/* sponsors */
.sponsors { padding: 22px 0 14px; }
.sponsors-title {
  text-align: center; margin: 0 0 14px; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #A9A9A4;
}
.marquee-mask {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee { display: flex; width: max-content; animation: gf-marquee 26s linear infinite; }
.sponsor-item {
  width: 210px; height: 96px; margin: 0 14px; border: 1px dashed #D8D6CE; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; background: #fff; flex-shrink: 0;
  font-family: monospace; font-size: 13px; color: #A9A9A4;
}
@keyframes gf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* footer */
footer { border-top: 1px solid #E0DED7; background: #F8F7F3; }
.footer-inner {
  max-width: 980px; margin: 0 auto; padding: 18px 24px;
  display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: space-between;
}
.policies { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.policies a { font-size: 12.5px; color: #71726E; text-decoration: none; font-weight: 500; }
.credit { font-size: 12.5px; color: #A9A9A4; font-weight: 500; }

@media (max-width: 520px) {
  .container { padding: 28px 16px 16px; }
  .card { padding: 24px 20px; }
  .mobile-row { flex-direction: column; }
  .btn-validate { width: 100%; min-height: 48px; }
  .gender-row { flex-direction: column; }
  .btn-primary { font-size: 15px; padding: 15px; }
  .payment-body { padding: 6px 14px; }
  .prow { gap: 12px; font-size: 14px; }
  .footer-inner { justify-content: center; text-align: center; }
}
