/* Auth + Onboarding — 1:1 Tayimz screenshots
   Tokens: #0B0E11 / #F0B90B / #1E2329 / #848E9C */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&display=swap');

.auth {
  --a-bg: #0B0E11;
  --a-gold: #F0B90B;
  --a-gold-b: #FCD535;
  --a-card: #12161C;
  --a-card2: #1E2329;
  --a-line: #2B3139;
  --a-muted: #848E9C;
  --a-soft: #B7BDC6;
  --a-text: #EAECEF;
  color: var(--a-text);
  padding: 0 0 28px;
  position: relative;
  min-height: calc(100vh - 56px);
}

.app-frame:has(.auth) {
  background: var(--a-bg);
}
.app-content:has(> .auth) {
  padding: 0 16px max(16px, env(safe-area-inset-bottom));
}
.app-frame:has(.auth) .top-nav {
  min-height: 52px;
  padding: 8px 12px 6px;
  border-bottom: none;
  background: transparent;
  align-items: flex-start;
}
.app-frame:has(.auth) .brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.app-frame:has(.auth) .brand-bot { color: var(--a-gold); }
.app-frame:has(.auth) .brand-text {
  gap: 3px;
  min-width: 0;
}
.app-frame:has(.auth) .brand-tagline,
.app-frame:has(.auth) .brand-live {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(234, 236, 239, 0.9);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}
.app-frame:has(.auth) .brand-live .dot { display: none; }
.app-frame:has(.auth) a.brand {
  align-items: flex-start;
  padding-top: 2px;
}
.app-frame:has(.auth) .brand-logo,
.app-frame:has(.auth) .brand-logo svg {
  width: 26px;
  height: 26px;
}
.app-frame:has(.auth) .back-btn {
  color: var(--a-gold);
  width: 34px;
  height: 34px;
}
.app-frame:has(.auth) .back-btn svg {
  color: var(--a-gold);
  stroke: var(--a-gold);
}

/* Language chip */
.auth-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--a-line);
  background: rgba(30, 35, 41, 0.85);
  color: var(--a-soft);
  font-size: 12px;
  font-weight: 600;
}
.auth-lang svg { width: 14px; height: 14px; color: var(--a-soft); }
.auth-lang i {
  width: 10px;
  height: 10px;
  display: grid;
  place-items: center;
  opacity: .7;
}
.auth-lang i svg { width: 10px; height: 10px; }

/* Hero */
.auth-hero {
  position: relative;
  padding: 10px 2px 18px;
  overflow: hidden;
  min-height: 108px;
}
.auth-hero-copy {
  position: relative;
  z-index: 3;
  max-width: 62%;
}
.auth-h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
}
.auth-h1 em {
  font-style: normal;
  color: var(--a-gold);
}
.auth-lead {
  margin: 0;
  font-size: 13px;
  color: var(--a-muted);
  line-height: 1.45;
}
.auth-hero-art {
  position: absolute;
  right: -2px;
  top: 0;
  width: 46%;
  height: 112px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.auth-hero-art svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: none;
}
.auth-login .auth-hero-art svg {
  width: 92%;
  margin-left: auto;
}

/* Live green/red candles (shared with landing) */
.auth-hero-art .hl-cndl.is-up .hl-cndl-wick,
.hl-cndl.is-up .hl-cndl-wick { stroke: #0ECB81; stroke-width: 1.35; }
.auth-hero-art .hl-cndl.is-up .hl-cndl-body,
.hl-cndl.is-up .hl-cndl-body {
  fill: #0ECB81;
  filter: drop-shadow(0 0 3px rgba(14, 203, 129, 0.5));
}
.auth-hero-art .hl-cndl.is-dn .hl-cndl-wick,
.hl-cndl.is-dn .hl-cndl-wick { stroke: #F6465D; stroke-width: 1.35; }
.auth-hero-art .hl-cndl.is-dn .hl-cndl-body,
.hl-cndl.is-dn .hl-cndl-body {
  fill: #F6465D;
  filter: drop-shadow(0 0 3px rgba(246, 70, 93, 0.4));
}
.auth-hero-art .hl-cndl.is-live .hl-cndl-body {
  animation: authCandlePulse 0.9s ease-in-out infinite;
}
@keyframes authCandlePulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}
.auth-script {
  position: absolute;
  right: 2px;
  top: 10px;
  width: auto;
  max-width: 38%;
  font-family: 'Caveat', cursive;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--a-gold-b);
  transform: rotate(-12deg);
  text-align: right;
  text-shadow: 0 0 10px rgba(240, 185, 11, 0.45);
  z-index: 2;
  pointer-events: none;
}
.auth-script.signup {
  top: 8px;
  right: 0;
  bottom: auto;
  font-size: 15px;
}

/* Login: quieter layout */
.auth-login {
  padding-bottom: 20px;
}
.auth-login .auth-card {
  padding: 16px 16px 18px;
  border-radius: 18px;
  border-color: rgba(240, 185, 11, 0.14);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
}
.auth-login .auth-tabs {
  margin-bottom: 18px;
}
.auth-login .auth-card-title {
  font-size: 20px;
  margin-bottom: 2px;
}
.auth-login .auth-card-sub {
  margin-bottom: 16px;
  font-size: 13px;
}
.auth-login .auth-field {
  height: 48px;
  margin-bottom: 12px;
}
.auth-login .auth-row {
  margin: 2px 0 16px;
}
.auth-login .auth-or {
  margin: 16px 0 12px;
}
.auth-login .auth-switch {
  margin: 18px 0 0;
  font-size: 13px;
}
.auth-login .auth-foot {
  margin-top: 28px;
}

/* Card */
.auth-card {
  position: relative;
  z-index: 5;
  background: var(--a-card);
  border: 1px solid rgba(240, 185, 11, 0.18);
  border-radius: 16px;
  padding: 14px 14px 16px;
  box-shadow: 0 0 28px rgba(240, 185, 11, 0.08), 0 12px 40px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #0B0E11;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 16px;
  border: 1px solid var(--a-line);
}
.auth-tab {
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--a-muted);
}
.auth-tab.is-on {
  background: var(--a-gold);
  color: #0B0E11;
}
.auth-card-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.auth-card-sub {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--a-muted);
  line-height: 1.4;
}

/* Fields */
.auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--a-line);
  background: #0B0E11;
  margin-bottom: 10px;
}
.auth-field[hidden] { display: none !important; }
.auth-field:focus-within {
  border-color: rgba(240, 185, 11, 0.55);
}
.auth-field svg {
  width: 18px;
  height: 18px;
  color: var(--a-muted);
  flex-shrink: 0;
}
.auth-field input,
.auth-field select {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  color: #fff;
}
.auth-field input::placeholder { color: var(--a-muted); }
.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  transition: background-color 99999s ease-out;
  box-shadow: 0 0 0 1000px #0B0E11 inset;
}
.auth-field .auth-eye {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--a-muted);
}
.auth-field .auth-eye svg { width: 18px; height: 18px; }
.auth-field.is-select { cursor: pointer; }
.auth-field.is-select span {
  flex: 1;
  font-size: 13.5px;
  color: var(--a-muted);
}
.auth-field.is-select span.has-val { color: #fff; }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 12.5px;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--a-gold);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.auth-check input { position: absolute; opacity: 0; pointer-events: none; }
.auth-check b {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--a-gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.auth-check input:checked + b {
  background: var(--a-gold);
}
.auth-check input:checked + b::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 1.8px solid #0B0E11;
  border-bottom: 1.8px solid #0B0E11;
  transform: rotate(-45deg) translateY(-1px);
}
.auth-check em { font-style: normal; color: var(--a-gold); }
.auth-link {
  color: var(--a-gold);
  font-weight: 600;
}
.auth-agree {
  margin: 6px 0 14px;
  font-size: 12px;
  color: var(--a-soft);
  line-height: 1.4;
}
.auth-agree a {
  color: var(--a-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 46px;
  border-radius: 10px;
  background: var(--a-gold);
  color: #0B0E11;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.auth-btn:active { opacity: .92; transform: scale(0.99); }
.auth-btn.ghost {
  background: transparent;
  border: 1.5px solid var(--a-gold);
  color: var(--a-gold);
  margin-top: 10px;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  color: var(--a-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--a-line);
}
.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.auth-social a {
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--a-line);
  background: #0B0E11;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--a-soft);
}
.auth-social a svg { width: 16px; height: 16px; }
.auth-switch {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--a-muted);
}
.auth-switch a {
  color: var(--a-gold);
  font-weight: 700;
}

.auth-new {
  margin: 18px 2px 0;
  text-align: center;
}
.auth-new strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.auth-new p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--a-muted);
}

.auth-feats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin: 18px 0 10px;
  padding: 4px 0;
}
.auth-feat {
  text-align: center;
  padding: 0 8px;
  border-right: 1px solid var(--a-line);
}
.auth-feat:last-child { border-right: 0; }
.auth-feat svg {
  width: 22px;
  height: 22px;
  color: var(--a-gold);
  margin: 0 auto 6px;
}
.auth-feat span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--a-gold);
  line-height: 1.25;
}

.auth-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--a-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-foot::before,
.auth-foot::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--a-line);
}

/* —— Onboarding —— */
.ob-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  margin: 6px 0 18px;
  padding: 0 2px;
  position: relative;
}
.ob-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  right: 28px;
  top: 13px;
  height: 2px;
  background: var(--a-line);
  z-index: 0;
}
.ob-steps[data-progress="1"]::before {
  background: var(--a-line);
}
.ob-steps[data-progress="2"]::before {
  background: linear-gradient(90deg, var(--a-gold) 0%, var(--a-gold) 33%, var(--a-line) 33%);
}
.ob-steps[data-progress="3"]::before {
  background: linear-gradient(90deg, var(--a-gold) 0%, var(--a-gold) 66%, var(--a-line) 66%);
}
.ob-steps[data-progress="4"]::before {
  background: var(--a-gold);
}
.ob-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 72px;
  text-align: center;
}
.ob-step i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--a-line);
  background: var(--a-bg);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--a-soft);
  font-style: normal;
}
.ob-step span {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--a-muted);
  line-height: 1.2;
}
.ob-step.is-on i {
  background: var(--a-gold);
  border-color: var(--a-gold);
  color: #0B0E11;
  box-shadow: 0 0 14px rgba(240, 185, 11, 0.45);
}
.ob-step.is-on span { color: var(--a-gold); }
.ob-step.is-done i {
  background: var(--a-gold);
  border-color: var(--a-gold);
  color: #0B0E11;
}
.ob-step.is-done span { color: #fff; }
.ob-step.is-done.is-on span { color: var(--a-gold); }

.ob-kicker {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--a-muted);
  text-transform: uppercase;
}
.ob-h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #fff;
}
.ob-h1 em {
  font-style: normal;
  color: var(--a-gold);
}
.ob-lead {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--a-muted);
  line-height: 1.45;
}

.ob-card {
  background: #12161C;
  border: 1px solid var(--a-line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.ob-card-h {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.ob-card-h .ico {
  width: 28px;
  height: 28px;
  color: var(--a-gold);
  flex-shrink: 0;
  margin-top: 1px;
}
.ob-card-h .ico svg { width: 22px; height: 22px; }
.ob-card-h h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.ob-card-h p {
  margin: 0;
  font-size: 12px;
  color: var(--a-muted);
}

.ob-dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--a-line);
  background: #0B0E11;
  font-size: 13.5px;
  color: var(--a-muted);
  width: 100%;
  text-align: left;
}
.ob-dd.has-val { color: #fff; }
.ob-dd svg {
  width: 16px;
  height: 16px;
  color: var(--a-gold);
  flex-shrink: 0;
}

.ob-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ob-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--a-line);
  background: #0B0E11;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.ob-chip i {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1.5px solid var(--a-soft);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-style: normal;
}
.ob-chip.is-on {
  border-color: rgba(240, 185, 11, 0.45);
}
.ob-chip.is-on i {
  background: var(--a-gold);
  border-color: var(--a-gold);
}
.ob-chip.is-on i::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 1.8px solid #0B0E11;
  border-bottom: 1.8px solid #0B0E11;
  transform: rotate(-45deg) translateY(-1px);
}

.ob-radios {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.ob-radio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--a-line);
  background: #0B0E11;
  font-size: 12px;
  font-weight: 600;
  color: var(--a-soft);
  cursor: pointer;
}
.ob-radio i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--a-soft);
  display: grid;
  place-items: center;
  font-style: normal;
}
.ob-radio.is-on {
  border-color: rgba(240, 185, 11, 0.5);
  color: #fff;
}
.ob-radio.is-on i {
  border-color: var(--a-gold);
  border-width: 2px;
}
.ob-radio.is-on i::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--a-gold);
}

.ob-cta {
  margin-top: 8px;
}
.ob-back-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* All set */
.ob-success {
  text-align: center;
  padding: 18px 8px 8px;
}
.ob-success-ico {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--a-gold);
  display: grid;
  place-items: center;
  color: var(--a-gold);
  position: relative;
  box-shadow: 0 0 28px rgba(240, 185, 11, 0.35);
}
.ob-success-ico svg { width: 34px; height: 34px; }
.ob-success-ico::before,
.ob-success-ico::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 2px;
  background: var(--a-gold);
  top: 50%;
}
.ob-success-ico::before { left: -16px; box-shadow: 0 -8px 0 var(--a-gold), 0 8px 0 var(--a-gold); }
.ob-success-ico::after { right: -16px; box-shadow: 0 -8px 0 var(--a-gold), 0 8px 0 var(--a-gold); }
.ob-success h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.ob-success h1 em {
  font-style: normal;
  color: var(--a-gold);
}
.ob-success p {
  margin: 0 auto 18px;
  max-width: 320px;
  font-size: 13.5px;
  color: var(--a-soft);
  line-height: 1.45;
}

.ob-profile {
  text-align: left;
  background: #12161C;
  border: 1px solid var(--a-line);
  border-radius: 12px;
  padding: 12px 12px 4px;
  margin-bottom: 16px;
}
.ob-profile-h {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 8px;
}
.ob-profile-h .ico {
  color: var(--a-gold);
  width: 22px;
  height: 22px;
}
.ob-profile-h h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.ob-profile-h p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--a-muted);
  text-align: left;
}
.ob-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--a-line);
}
.ob-row .ico {
  width: 20px;
  height: 20px;
  color: var(--a-gold);
  flex-shrink: 0;
}
.ob-row .ico svg { width: 18px; height: 18px; }
.ob-row .lab {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.ob-row .val {
  font-size: 12.5px;
  color: var(--a-muted);
  text-align: right;
  max-width: 48%;
}
.ob-row svg.chev {
  width: 14px;
  height: 14px;
  color: var(--a-soft);
  flex-shrink: 0;
}

/* Sheet option with subtitle */
.sheet-option .radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.6px solid #B7BDC6;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.sheet-option.selected .radio,
.sheet-option.is-on .radio {
  border-color: #F0B90B;
  border-width: 2px;
}
.sheet-option.selected .radio::after,
.sheet-option.is-on .radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F0B90B;
}
.sheet-option .opt-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sheet-option .opt-text strong {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.sheet-option .opt-text small {
  font-size: 12px;
  color: #848E9C;
  line-height: 1.3;
}
.sheet-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 10px;
  border-radius: 10px;
  background: #F0B90B;
  color: #0B0E11;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* —— Forgot Password —— */
.auth-fp .auth-hero-copy { max-width: 62%; }
.auth-fp .auth-h1 { font-size: 30px; }
.auth-fp .auth-lead { max-width: 100%; font-size: 12.5px; }
.auth-fp .auth-card {
  text-align: center;
  padding-top: 18px;
}
.auth-fp .auth-card-title { margin-top: 4px; }
.auth-fp .auth-form { text-align: left; }
.auth-fp .auth-or {
  letter-spacing: 0.12em;
  margin: 16px 0 12px;
}
.fp-back-login { margin-top: 0 !important; }

.fp-badge {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
}
.fp-badge-glow {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 185, 11, 0.45) 0%, rgba(240, 185, 11, 0.08) 55%, transparent 70%);
  filter: blur(2px);
}
.fp-badge-ring {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #FFE27A, #F0B90B 55%, #C9A006);
  box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.22), 0 8px 22px rgba(240, 185, 11, 0.35);
}
.fp-lock {
  width: 26px;
  height: 26px;
  color: #0B0E11;
}
.fp-mail {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: #1E2329;
  border: 1.5px solid rgba(240, 185, 11, 0.7);
  color: #F0B90B;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.fp-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin: 14px 0 12px;
  border-radius: 10px;
  background: #0B0E11;
  border: 1px solid var(--a-line);
}
.fp-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--a-soft);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.fp-mode-btn svg {
  width: 15px;
  height: 15px;
}
.fp-mode-btn.is-on {
  background: var(--a-gold);
  color: #0B0E11;
}
.fp-mode-btn.is-on svg { color: #0B0E11; }

/* —— Terms / Privacy —— */
.auth-legal {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
.app-content:has(> .auth-legal) {
  padding-left: 14px;
  padding-right: 14px;
}
.lg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 6px 2px 12px;
}
.lg-h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
}
.lg-lead {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--a-soft);
  max-width: 240px;
}
.lg-secure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 2px;
  text-align: center;
}
.lg-secure-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 4px 10px rgba(240, 185, 11, 0.35));
}
.lg-secure-ico svg { width: 42px; height: 42px; display: block; }
.lg-secure em {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--a-gold);
  letter-spacing: 0.01em;
}

.lg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin: 0 0 12px;
  border-radius: 12px;
  background: #12161C;
  border: 1px solid var(--a-line);
}
.lg-tab {
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 9px;
  color: var(--a-soft);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 0 8px;
}
.lg-tab.is-on {
  background: var(--a-gold);
  color: #0B0E11;
}

.lg-card {
  background: #12161C;
  border: 1px solid var(--a-line);
  border-radius: 14px;
  overflow: hidden;
}
.lg-card-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--a-line);
}
.lg-card-ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(240, 185, 11, 0.14);
  border: 1px solid rgba(240, 185, 11, 0.35);
  color: var(--a-gold);
  flex-shrink: 0;
}
.lg-card-ico svg { width: 18px; height: 18px; }
.lg-card-h strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.lg-card-h span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--a-muted);
}

.lg-body { padding: 4px 14px 8px; }
.lg-item {
  padding: 12px 0;
  border-bottom: 1px solid #1E2329;
}
.lg-item:last-child { border-bottom: 0; }
.lg-item h3 {
  margin: 0 0 5px;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.lg-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--a-muted);
}
.lg-item.is-num {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.lg-num {
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--a-gold);
  color: var(--a-gold);
  font-size: 11px;
  font-weight: 800;
  background: rgba(240, 185, 11, 0.06);
}

.lg-foot {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px -14px -28px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(11, 14, 17, 0.72) 0%, #0B0E11 28%);
  border-top: 1px solid #1E2329;
}
.lg-agree {
  flex: 1;
  min-width: 0;
  color: var(--a-soft) !important;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
}
.lg-agree span { color: #EAECEF; }
.lg-agree-btn {
  flex-shrink: 0;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--a-gold);
  color: #0B0E11;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.lg-agree-btn:active { opacity: .92; }

/* Country picker — flags + search */
.auth-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.auth-country-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.auth-country-label .auth-flag {
  width: 20px;
  height: 15px;
}
.auth-country-sheet .sheet-panel,
.sheet-panel.auth-country-sheet {
  max-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
}
.auth-country-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0 12px;
  height: 40px;
  border-radius: 10px;
  background: #0F1217;
  border: 1px solid #2B3139;
}
.auth-country-search svg {
  width: 16px;
  height: 16px;
  color: #848E9C;
  flex-shrink: 0;
}
.auth-country-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #EAECEF;
  font-size: 14px;
  outline: none;
}
.auth-country-search input::placeholder { color: #848E9C; }
.auth-country-list {
  overflow-y: auto;
  max-height: min(52vh, 420px);
  margin: 0 -2px 8px;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}
.auth-country-list .sheet-option {
  gap: 10px;
}
.auth-country-list .sheet-option[hidden] {
  display: none !important;
}
