@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

:root {
  --mamba-orange: #ff6b35;
  --mamba-orange-dark: #e55a2b;
  --mamba-bg: #f5f5f5;
  --mamba-text: #1a1a1a;
  --mamba-muted: #5e5e5e;
  --mamba-border: #e0e0e0;
  --mamba-error: #e5484d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html.land-mamba body {
  font-family: 'Inter', sans-serif;
  background: var(--mamba-bg);
  color: var(--mamba-text);
  min-height: 100vh;
}

html.land-mamba .auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

html.land-mamba .header {
  padding: 20px 24px 0;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

html.land-mamba .logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--mamba-orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

html.land-mamba .main-card {
  max-width: 600px;
  margin: 16px auto 40px;
  background: #fff;
  border-radius: 32px;
  padding: 32px 28px 48px;
  flex: 1;
  width: calc(100% - 32px);
}

html.land-mamba .step-indicator {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  justify-content: center;
}

html.land-mamba .step-dot {
  width: 40px;
  height: 4px;
  background: var(--mamba-border);
  border-radius: 4px;
  transition: 0.2s;
}

html.land-mamba .step-dot.active { background: var(--mamba-orange); }

html.land-mamba .main-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.15;
}

html.land-mamba .sub-text {
  font-size: 16px;
  color: var(--mamba-muted);
  margin-bottom: 32px;
  line-height: 1.45;
}

html.land-mamba .input-field,
html.land-mamba .birth-select {
  width: 100%;
  padding: 16px 18px;
  font-size: 16px;
  border: 1.5px solid var(--mamba-border);
  border-radius: 16px;
  font-family: inherit;
  margin-bottom: 20px;
  background: #fff;
  color: var(--mamba-text);
}

html.land-mamba .input-field:focus,
html.land-mamba .birth-select:focus {
  outline: none;
  border-color: var(--mamba-orange);
}

html.land-mamba .birth-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

html.land-mamba .birth-select { flex: 1; margin-bottom: 0; }

html.land-mamba .gender-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

html.land-mamba .gender-btn {
  flex: 1;
  padding: 16px;
  background: #f7f7f7;
  border: 1.5px solid #e8e8e8;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  font-size: 15px;
}

html.land-mamba .gender-btn.active {
  background: var(--mamba-orange);
  border-color: var(--mamba-orange);
  color: #fff;
}

html.land-mamba .continue-btn,
html.land-mamba .submit-btn,
html.land-mamba .btn-gradient {
  width: 100%;
  background: var(--mamba-orange);
  color: #fff;
  border: none;
  padding: 18px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 60px;
  cursor: pointer;
  margin-bottom: 24px;
  font-family: inherit;
}

html.land-mamba .continue-btn:hover,
html.land-mamba .submit-btn:not(:disabled):hover,
html.land-mamba .btn-gradient:not(:disabled):hover {
  background: var(--mamba-orange-dark);
}

html.land-mamba .submit-btn:disabled,
html.land-mamba .btn-gradient:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

html.land-mamba .photo-zone {
  border: 2px dashed var(--mamba-orange);
  border-radius: 24px;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 24px;
  cursor: pointer;
  background: #fff7f3;
  transition: 0.2s;
}

html.land-mamba .photo-zone:hover { background: #ffefe7; }

html.land-mamba .photo-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 20px;
  margin-top: 12px;
}

html.land-mamba .photo-hint {
  font-size: 13px;
  color: #8a8a8a;
  margin-top: 8px;
}

html.land-mamba .error-msg {
  color: var(--mamba-error);
  font-size: 13px;
  margin: -12px 0 16px;
  display: none;
}

html.land-mamba .error-msg.show { display: block; }

html.land-mamba .cookies-note {
  text-align: center;
  font-size: 12px;
  color: #9a9a9a;
  border-top: 1px solid #ececec;
  padding-top: 24px;
}

html.land-mamba .cookies-note a { color: var(--mamba-orange); }

html.land-mamba .age-label {
  position: fixed;
  bottom: 16px;
  right: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 40px;
  font-size: 12px;
  z-index: 20;
}

html.land-mamba .mamba-step { display: none; }
html.land-mamba .mamba-step.active { display: block; }

html.land-mamba .hidden { display: none !important; }

/* auth views */
html.land-mamba .view { display: none; }
html.land-mamba .view.active { display: block; }

html.land-mamba .phone-box,
html.land-mamba .input-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

html.land-mamba .country-wrap { position: relative; flex-shrink: 0; }

html.land-mamba .country-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  border: 1.5px solid var(--mamba-border);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
}

html.land-mamba .country-drop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 240px;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--mamba-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

html.land-mamba .country-drop.open { display: block; }

html.land-mamba .country-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}

html.land-mamba .country-opt:hover,
html.land-mamba .country-opt.active { background: #fff7f3; }

html.land-mamba .c-cd { margin-left: auto; color: #888; }

html.land-mamba .phone-input,
html.land-mamba .password-input {
  flex: 1;
  width: 100%;
  padding: 16px 18px;
  font-size: 16px;
  border: 1.5px solid var(--mamba-border);
  border-radius: 16px;
  font-family: inherit;
}

html.land-mamba .phone-input:focus,
html.land-mamba .password-input:focus {
  outline: none;
  border-color: var(--mamba-orange);
}

html.land-mamba .tg-contact-block { margin-bottom: 16px; }

html.land-mamba .tg-manual-link,
html.land-mamba .link-btn,
html.land-mamba .back-btn,
html.land-mamba .resend-btn {
  background: none;
  border: none;
  color: var(--mamba-orange);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 0;
}

html.land-mamba .manual-phone-block { display: none; }
html.land-mamba .manual-phone-block.open { display: block; }

html.land-mamba .otp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 20px 0;
}

html.land-mamba .otp-input {
  width: 100%;
  aspect-ratio: 1;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 1.5px solid var(--mamba-border);
  border-radius: 14px;
}

html.land-mamba .otp-input:focus {
  outline: none;
  border-color: var(--mamba-orange);
}

html.land-mamba .timer-text {
  font-size: 13px;
  color: var(--mamba-muted);
  margin-bottom: 12px;
}

html.land-mamba .success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e8f8ef;
  color: #1a9f5c;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

html.land-mamba .legal-text {
  font-size: 12px;
  color: #9a9a9a;
  line-height: 1.5;
  margin-top: 12px;
}

html.land-mamba .legal-text a { color: var(--mamba-orange); }

@media (max-width: 550px) {
  html.land-mamba .main-card { padding: 24px 20px; margin: 8px 16px; width: auto; }
  html.land-mamba .main-title { font-size: 28px; }
  html.land-mamba .birth-row { flex-direction: column; gap: 10px; }
  html.land-mamba .gender-buttons { flex-direction: column; }
}
