/**
 * Habereta — Ultimate Member auth pages
 * Modern centered brand login.
 */

.habereta-auth-page {
  background:
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(37, 99, 235, 0.14), transparent 58%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 48%, #f1f5f9 100%) !important;
  /* Sticky header is hidden on auth screens — clear the spacer it leaves. */
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.habereta-auth-page #hb-site-header,
.habereta-auth-page .hb-header,
.habereta-auth-page .hb-topbar,
.habereta-auth-page .hb-footer,
.habereta-auth-page footer,
.habereta-auth-page #colophon,
.habereta-auth-page .site-footer,
.habereta-auth-page #apus-footer,
.habereta-auth-page .apus-footer,
.habereta-auth-page .habereta-mobile-bottom,
.habereta-auth-page .header-mobile,
.habereta-auth-page .apus-header-mobile,
.habereta-auth-page #apus-header,
.habereta-auth-page .apus-header,
.habereta-auth-page .back-to-top,
.habereta-auth-page a[href="#page"],
.habereta-auth-page #main-container.inner,
.habereta-auth-page .apus-breadcrumb,
.habereta-auth-page .breadcrumb,
.habereta-auth-page .page-title,
.habereta-auth-page .entry-header {
  display: none !important;
}

.habereta-auth-page #wrapper-container,
.habereta-auth-page #page,
.habereta-auth-page .wrapper-container,
.habereta-auth-page #apus-main-content,
.habereta-auth-page .main-content,
.habereta-auth-page .main-page {
  min-height: 100vh;
  background: transparent;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.hb-auth-page {
  --hb-brand: #1e56ff;
  --hb-brand-dark: #1240d6;
  --hb-ink: #0b1220;
  --hb-muted: #64748b;
  --hb-border: #dbe3f0;
  --hb-font: "Inter", "Noto Sans Ethiopic", system-ui, -apple-system, sans-serif;

  font-family: var(--hb-font);
  color: var(--hb-ink);
  background: transparent;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 20px;
  box-sizing: border-box;
}

.hb-auth-simple {
  width: min(100%, 440px);
  margin: 0 auto;
}

.hb-auth-card--simple {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 50px rgba(15, 39, 79, 0.12);
  padding: 0 0 28px;
  overflow: hidden;
}

.hb-auth-brand {
  display: block;
  text-decoration: none;
  background:
    radial-gradient(circle at 78% 18%, rgba(30, 86, 255, 0.42), transparent 46%),
    #000;
  padding: 32px 28px 28px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.hb-auth-brand::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30, 86, 255, 0.45), transparent);
}

.hb-auth-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.hb-auth-brand__mark img {
  width: min(100%, 260px);
  height: auto;
  display: block;
}

.hb-auth-intro {
  text-align: center;
  margin: 20px 28px 0;
}

.hb-auth-eyebrow {
  display: none;
}

.hb-auth-intro h1 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--hb-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hb-auth-intro p {
  margin: 0;
  color: var(--hb-muted);
  font-size: 14px;
  line-height: 1.5;
}

.hb-auth-premium {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 24px 0;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid #c7d7ff;
  background: linear-gradient(180deg, #f3f6ff 0%, #eef3ff 100%);
  text-align: left;
}

.hb-auth-premium__icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #c7d7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hb-brand);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(30, 86, 255, 0.08);
}

.hb-auth-premium__content h2 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 800;
  color: var(--hb-ink);
}

.hb-auth-premium__content p {
  margin: 0;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
}

.hb-auth-plan-notice {
  margin: 0 24px 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.45;
}

.hb-auth-form-wrap {
  margin: 18px 24px 0;
}

.hb-auth-page .um {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.hb-auth-page .um-form {
  margin: 0;
}

.hb-auth-page .um-row,
.hb-auth-page .um-col-1 {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hb-auth-page .um-field {
  margin: 0 0 15px !important;
  padding: 0 !important;
}

.hb-auth-page .um-field-label {
  margin: 0 0 7px !important;
  float: none !important;
  width: 100% !important;
}

.hb-auth-page .um-field-label label {
  margin: 0 !important;
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.hb-auth-page .um-field-area {
  float: none !important;
  width: 100% !important;
  position: relative;
}

.hb-auth-page .um-field-area input[type="text"],
.hb-auth-page .um-field-area input[type="password"],
.hb-auth-page .um-field-area input[type="email"],
.hb-auth-page .um-field-area input[type="tel"],
.hb-auth-page .um-field-area input[type="number"],
.hb-auth-page .um-field-area select,
.hb-auth-page .um-field-area textarea {
  width: 100% !important;
  min-height: 48px !important;
  border: 1px solid var(--hb-border) !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.02) !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  color: var(--hb-ink) !important;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.hb-auth-page .um-field-area input:focus,
.hb-auth-page .um-field-area select:focus,
.hb-auth-page .um-field-area textarea:focus {
  border-color: var(--hb-brand) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(30, 86, 255, 0.14) !important;
  outline: none !important;
}

.hb-auth-page .um-toggle-password {
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%);
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.hb-auth-page .um-col-alt {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 2px 0 14px !important;
}

.hb-auth-page .um-field-checkbox,
.hb-auth-page .um-field-checkbox .um-field-label,
.hb-auth-page .um-left.um-half {
  float: none !important;
  width: auto !important;
  margin: 0 0 12px !important;
  display: block !important;
}

.hb-auth-page .um-field-checkbox-option {
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.hb-auth-page .um-right.um-half,
.hb-auth-page .um .um-button.um-alt,
.hb-auth-page .um-col-alt-b {
  display: none !important;
}

.hb-auth-page .um-left.um-half,
.hb-auth-page .um-center,
.hb-auth-page .um-half {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hb-auth-page .hb-auth-submit,
.hb-auth-page .um input[type="submit"].um-button,
.hb-auth-page .um .um-button#um-submit-btn,
.hb-auth-page .um input[type="submit"],
.hb-auth-page .um a.um-button {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 50px !important;
  margin: 0 0 16px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #2f67ff 0%, var(--hb-brand) 100%) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(30, 86, 255, 0.28) !important;
  cursor: pointer;
  float: none !important;
  display: block !important;
  text-align: center !important;
  line-height: 50px !important;
  padding: 0 16px !important;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.hb-auth-page .hb-auth-submit:hover,
.hb-auth-page .um input[type="submit"].um-button:hover,
.hb-auth-page .um input[type="submit"]:hover {
  background: linear-gradient(180deg, var(--hb-brand) 0%, var(--hb-brand-dark) 100%) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(30, 86, 255, 0.34) !important;
  filter: brightness(1.02);
}

.hb-auth-forgot {
  display: block;
  text-align: center;
  margin: 0 0 14px;
  color: var(--hb-brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hb-auth-forgot:hover {
  text-decoration: underline;
}

.hb-auth-switch {
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
}

.hb-auth-switch__label {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.hb-auth-switch__label a {
  color: var(--hb-brand);
  font-weight: 800;
  text-decoration: none;
}

.hb-auth-switch__label a:hover {
  text-decoration: underline;
}

.hb-auth-call-us {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--hb-border, #dbe3f0);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--hb-muted, #64748b);
  line-height: 1.5;
}

.hb-auth-call-us__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}

.hb-auth-call-us__icon {
  color: var(--hb-brand, #1e56ff);
}

.hb-auth-call-us a,
.hb-auth-call-us__phones a,
.hb-support-phones a {
  color: var(--hb-brand, #1e56ff);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hb-auth-call-us a:hover,
.hb-auth-call-us__phones a:hover,
.hb-support-phones a:hover {
  text-decoration: underline;
}

.hb-auth-telegram-help {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
  line-height: 1.5;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.hb-auth-telegram-help__label {
  display: block;
}

.hb-auth-plan-notice__text {
  margin: 0;
}

.hb-auth-plan-notice .hb-telegram-link {
  color: #1d4ed8;
}

.hb-auth-footnote {
  margin: 18px 0 0;
  text-align: center;
}

.hb-auth-footnote a {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.hb-auth-footnote a:hover {
  color: var(--hb-brand);
}

.hb-auth-page .um-notice {
  border-radius: 12px !important;
  margin-bottom: 14px !important;
}

.hb-auth-page .um-field-error .um-field-error {
  color: #dc2626 !important;
  font-size: 12px !important;
  margin-top: 4px !important;
}

.hb-auth-shell,
.hb-auth-benefits {
  display: none !important;
}

.hb-auth-page--register .hb-auth-intro,
.hb-auth-page--reset .hb-auth-intro {
  display: block;
}

.hb-auth-page--login .hb-auth-intro {
  display: none;
}

/* Split login layout — refined professional UX */
.hb-auth-page--split {
  flex-direction: column;
  gap: 0;
  padding: clamp(20px, 4vw, 40px) 16px 28px;
}

.hb-auth-split {
  width: min(100%, 960px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06),
    0 32px 64px rgba(30, 64, 175, 0.1);
  animation: hb-auth-card-in 0.5s ease both;
}

@keyframes hb-auth-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hb-auth-welcome {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 40px);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.65), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(37, 99, 235, 0.12), transparent 40%),
    linear-gradient(165deg, #f0f6ff 0%, #e8f0ff 52%, #eef4ff 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  min-height: 100%;
  overflow: hidden;
}

.hb-auth-welcome__content {
  display: grid;
  gap: 12px;
}

.hb-auth-welcome__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(191, 219, 254, 0.9);
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.hb-auth-welcome__greet-text {
  font-family: "Noto Sans Ethiopic", var(--hb-font);
}

.hb-auth-welcome__wave {
  font-size: 16px;
  line-height: 1;
}

.hb-auth-welcome__title {
  margin: 4px 0 0;
  font-size: clamp(1.75rem, 2.8vw, 2.125rem);
  line-height: 1.12;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.hb-auth-welcome__lead {
  margin: 0;
  max-width: 26rem;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

.hb-auth-illustration {
  position: relative;
  width: min(100%, 200px);
  height: 200px;
  margin: 8px 0 4px;
}

.hb-auth-illustration__glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
}

.hb-auth-illustration__card {
  position: absolute;
  inset: 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow:
    0 16px 32px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hb-auth-illustration__svg {
  width: 52%;
  height: auto;
}

.hb-auth-illustration__orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.hb-auth-illustration__orb--1 {
  top: 8%;
  right: 6%;
  width: 36px;
  height: 36px;
}

.hb-auth-illustration__orb--2 {
  bottom: 14%;
  left: 0;
  width: 28px;
  height: 28px;
  background: rgba(219, 234, 254, 0.9);
}

.hb-auth-illustration__orb--3 {
  top: 42%;
  right: -2%;
  width: 18px;
  height: 18px;
  background: #bfdbfe;
}

.hb-auth-welcome__benefits {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hb-auth-welcome__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
  font-weight: 500;
}

.hb-auth-welcome__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hb-auth-welcome__switch {
  margin: 0;
  padding-top: 12px;
  font-size: 14px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.hb-auth-welcome__switch a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.hb-auth-welcome__switch a:hover {
  text-decoration: underline;
}

.hb-auth-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3.5vw, 44px);
  min-width: 0;
  background: #fff;
}

.hb-auth-panel__head {
  margin-bottom: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eef2f7;
}

.hb-auth-panel__brand-wrap {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #0b1220;
  line-height: 0;
}

.hb-auth-panel__brand-wrap .hb-auth-logo-link {
  margin: 0;
}

.hb-auth-panel__brand {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hb-auth-panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #64748b;
}

.hb-auth-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
}

.hb-auth-logo-img,
.hb-auth-panel__logo-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.hb-auth-panel__logo-img {
  max-width: 168px;
  max-height: 48px;
}

.hb-auth-page--split .hb-auth-premium {
  margin: 20px 0 0;
  border-radius: 12px;
}

.hb-auth-page--split .hb-auth-form-wrap {
  margin: 24px 0 0;
}

.hb-auth-native-form--split {
  gap: 18px;
}

.hb-auth-native-form--split .hb-auth-field label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}

.hb-auth-input-wrap {
  position: relative;
  display: block;
}

.hb-auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  display: inline-flex;
}

.hb-auth-native-form--split input[type="text"],
.hb-auth-native-form--split input[type="email"],
.hb-auth-native-form--split input[type="tel"],
.hb-auth-native-form--split input[type="password"] {
  padding: 13px 14px 13px 44px !important;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #f8fafc;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hb-auth-input-wrap--password input[type="password"],
.hb-auth-input-wrap--password input[type="text"] {
  padding-right: 48px !important;
}

.hb-auth-password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.hb-auth-password-toggle:hover {
  color: #475569;
  background: rgba(148, 163, 184, 0.12);
}

.hb-auth-password-toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.hb-auth-password-toggle__hide {
  display: none;
}

.hb-auth-password-toggle.is-visible .hb-auth-password-toggle__show {
  display: none;
}

.hb-auth-password-toggle.is-visible .hb-auth-password-toggle__hide {
  display: block;
}

.hb-auth-native-form--split input:hover {
  border-color: #bfdbfe;
  background: #fff;
}

.hb-auth-native-form--split input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.hb-auth-native-form--split input::placeholder {
  color: #94a3b8;
}

.hb-auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: -4px;
}

.hb-auth-page--split .hb-auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.hb-auth-page--split .hb-auth-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.hb-auth-page--split .hb-auth-checkbox input[type="checkbox"]:checked {
  border-color: #2563eb;
  background: #2563eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 12l4 4 8-8' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hb-auth-page--split .hb-auth-checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.hb-auth-forgot-inline {
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.hb-auth-forgot-inline:hover {
  text-decoration: underline;
}

.hb-auth-field--submit {
  margin-top: 6px;
}

.hb-auth-page--split .hb-auth-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px !important;
  border-radius: 12px !important;
  line-height: 1.2 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  background: #2563eb !important;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hb-auth-page--split .hb-auth-submit:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.28) !important;
}

.hb-auth-page--split .hb-auth-submit:active {
  transform: translateY(0);
}

.hb-auth-page--split .hb-auth-submit.is-loading {
  pointer-events: none;
  opacity: 0.88;
}

.hb-auth-page--split .hb-auth-submit.is-loading span {
  opacity: 0.85;
}

.hb-auth-page--split .hb-auth-submit.is-loading svg:not(.hb-auth-submit__spinner) {
  opacity: 0;
}

.hb-auth-page--split .hb-auth-submit.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hb-auth-spin 0.65s linear infinite;
}

.hb-auth-page--split .hb-auth-submit {
  position: relative;
}

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

.hb-auth-page--split .hb-auth-footnote {
  width: min(100%, 960px);
  margin: 18px auto 0;
}

.hb-auth-page--split .hb-auth-footnote a {
  color: #64748b;
  font-size: 13px;
}

.hb-auth-page--split .hb-auth-footnote a:hover {
  color: #2563eb;
}

@media (max-width: 767px) {
  .hb-auth-split {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .hb-auth-welcome {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding: 24px 22px 22px;
  }

  .hb-auth-illustration {
    display: none;
  }

  .hb-auth-welcome__benefits {
    gap: 8px;
  }

  .hb-auth-panel {
    padding: 24px 22px 28px;
  }

  .hb-auth-panel__head {
    padding-bottom: 16px;
  }

  .hb-auth-panel__brand-wrap {
    padding: 8px 12px;
  }

  .hb-auth-panel__logo-img {
    max-width: 150px;
    max-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-auth-split {
    animation: none;
  }

  .hb-auth-page--split .hb-auth-submit {
    transition: none;
  }

  .hb-auth-page--split .hb-auth-submit:hover {
    transform: none;
  }

  .hb-auth-page--split .hb-auth-submit.is-loading::after {
    animation: none;
  }
}

@media (max-width: 480px) {
  .hb-auth-page {
    padding: 24px 12px;
  }

  .hb-auth-brand {
    padding: 22px 18px 20px;
  }

  .hb-auth-brand__mark img {
    width: min(100%, 200px);
  }

  .hb-auth-form-wrap,
  .hb-auth-premium {
    margin-left: 18px;
    margin-right: 18px;
  }

  .hb-auth-intro {
    margin-left: 18px;
    margin-right: 18px;
  }
}

/* Native Habereta auth forms (non-UM) */
.hb-auth-native-form {
  display: grid;
  gap: 14px;
}

.hb-auth-field {
  margin: 0;
  display: grid;
  gap: 6px;
}

.hb-auth-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--hb-ink, #0b1220);
}

.hb-auth-required {
  color: #dc2626;
  text-decoration: none;
  font-weight: 700;
  margin-left: 2px;
}

.hb-auth-native-form input[type="text"],
.hb-auth-native-form input[type="email"],
.hb-auth-native-form input[type="password"],
.hb-auth-native-form input[type="tel"],
.hb-auth-native-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--hb-border, #dbe3f0);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.hb-auth-native-form input:focus,
.hb-auth-native-form select:focus {
  outline: none;
  border-color: var(--hb-brand, #1e56ff);
  box-shadow: 0 0 0 3px rgba(30, 86, 255, 0.15);
}

.hb-auth-field--inline {
  margin-top: -4px;
}

.hb-auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.hb-auth-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.hb-auth-notice--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.hb-auth-notice--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.hb-auth-plan-notice {
  margin: 0 24px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 14px;
}

.hb-auth-logged-in {
  margin: 0;
  font-size: 15px;
}

/* Split registration — welcome left, form + plans right */
.hb-auth-split--register {
  width: min(100%, 1040px);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.hb-auth-register-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.hb-auth-register-stack {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  gap: 20px;
}

.hb-auth-register-stack > .hb-auth-split {
  width: 100%;
}

.hb-auth-pricing-block {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  padding: clamp(24px, 3.5vw, 36px) clamp(20px, 3vw, 32px) clamp(22px, 3vw, 28px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06),
    0 24px 48px rgba(30, 64, 175, 0.08);
}

.hb-auth-field--plans-block {
  margin: 0;
}

.hb-auth-pricing-head {
  text-align: center;
  margin-bottom: 22px;
}

.hb-auth-pricing-head__title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.15;
}

.hb-auth-pricing-head__accent {
  color: #2563eb;
}

.hb-auth-pricing-head__sub {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.hb-auth-plans--block {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.hb-auth-plan-card--block .hb-auth-plan-card__surface {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  min-height: 100%;
  padding: 28px 18px 22px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.hb-auth-plan-card--block.hb-auth-plan-card--featured .hb-auth-plan-card__surface {
  border-color: #2563eb;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.14);
  padding-top: 36px;
}

.hb-auth-plan-card__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.hb-auth-plan-card--block .hb-auth-plan-card__head {
  margin-bottom: 10px;
}

.hb-auth-plan-card--block .hb-auth-plan-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #334155;
}

.hb-auth-plan-card--block .hb-auth-plan-card__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 16px;
}

.hb-auth-plan-card--block .hb-auth-plan-card__amount {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hb-auth-plan-card--block .hb-auth-plan-card__currency {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-transform: lowercase;
}

.hb-auth-plan-card__features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 8px;
  text-align: left;
}

.hb-auth-plan-card__features li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
  font-weight: 500;
}

.hb-auth-plan-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #2563eb;
  font-weight: 800;
}

.hb-auth-plan-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  border-radius: 10px;
  border: 2px solid #2563eb;
  background: #fff;
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hb-auth-plan-card--block:hover .hb-auth-plan-card__cta {
  background: #eff6ff;
}

.hb-auth-plan-card--block input:checked + .hb-auth-plan-card__surface {
  border-color: #2563eb;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.16);
}

.hb-auth-plan-card--block input:checked + .hb-auth-plan-card__surface .hb-auth-plan-card__cta {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.hb-auth-plan-card--featured input:checked + .hb-auth-plan-card__surface .hb-auth-plan-card__cta {
  background: #16a34a;
  border-color: #16a34a;
}

.hb-auth-plan-card--block .hb-auth-plan-card__check {
  top: 12px;
  right: 12px;
}

.hb-auth-field--submit-block {
  margin: 22px auto 0;
  max-width: 360px;
}

.hb-auth-pricing-block .hb-auth-support-grid {
  margin-top: 18px;
}

.hb-auth-page--register.hb-auth-page--split .hb-auth-footnote {
  width: min(100%, 1040px);
}

.hb-auth-welcome--register .hb-auth-welcome__title {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
}

.hb-auth-welcome--register .hb-auth-illustration {
  width: min(100%, 180px);
  height: 180px;
  margin: 4px 0 0;
}

.hb-auth-field .hb-auth-field__hint {
  display: block;
  margin: -2px 0 8px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.hb-auth-field--plans {
  margin: 2px 0 0;
}

.hb-auth-field__legend {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.hb-auth-field__hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.hb-auth-plans {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}

.hb-auth-plans--inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hb-auth-plans--stack {
  grid-template-columns: 1fr;
}

.hb-auth-plans .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hb-auth-plan-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.hb-auth-plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hb-auth-plan-card__surface {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(191, 219, 254, 0.95);
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.hb-auth-plans--inline .hb-auth-plan-card__surface {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 4px;
  text-align: center;
  padding: 16px 12px 14px;
  min-height: 100%;
}

.hb-auth-plans--inline .hb-auth-plan-card__price {
  grid-column: 1;
  grid-row: auto;
  justify-self: center;
  margin-top: 4px;
}

.hb-auth-plans--inline .hb-auth-plan-card__monthly {
  grid-column: 1;
}

.hb-auth-plans--inline .hb-auth-plan-card__check {
  top: 10px;
  right: 10px;
  transform: none;
}

.hb-auth-plan-card:hover .hb-auth-plan-card__surface {
  border-color: #93c5fd;
  background: #fff;
}

.hb-auth-plan-card input:focus-visible + .hb-auth-plan-card__surface {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.hb-auth-plan-card input:checked + .hb-auth-plan-card__surface {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.hb-auth-plan-card--featured .hb-auth-plan-card__surface {
  border-color: #93c5fd;
}

.hb-auth-plan-card__badge {
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.hb-auth-plan-card__head {
  display: grid;
  gap: 1px;
}

.hb-auth-plan-card__name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hb-auth-plan-card__duration {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.hb-auth-plan-card__price {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: baseline;
  gap: 4px;
  justify-self: end;
}

.hb-auth-plan-card__currency {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hb-auth-plan-card__amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hb-auth-plan-card__monthly {
  grid-column: 1;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.hb-auth-plan-card__check {
  display: none;
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.hb-auth-plan-card input:checked + .hb-auth-plan-card__surface .hb-auth-plan-card__check {
  display: inline-flex;
}

.hb-auth-register-steps {
  margin-top: 4px;
  padding: 14px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(191, 219, 254, 0.75);
}

.hb-auth-register-steps__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hb-auth-register-steps__list {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.hb-auth-register-steps__list li::marker {
  color: #2563eb;
  font-weight: 700;
}

.hb-auth-panel__subtitle {
  margin: 6px 0 0;
  max-width: 28rem;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
  font-weight: 500;
}

.hb-auth-page--register.hb-auth-page--split .hb-auth-form-wrap {
  margin: 20px 0 0;
}

.hb-auth-native-form--register {
  gap: 16px;
}

.hb-auth-page--split .hb-auth-submit--register {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px !important;
  border-radius: 12px !important;
  line-height: 1.2 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  background: #2563eb !important;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  position: relative;
}

.hb-auth-page--split .hb-auth-submit--register:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.28) !important;
}

.hb-auth-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.hb-auth-support-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.hb-auth-support-card--telegram {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.hb-auth-support-card__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hb-auth-support-card--telegram .hb-auth-support-card__icon {
  border-color: #bfdbfe;
}

.hb-auth-support-card__body {
  min-width: 0;
}

.hb-auth-support-card__label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hb-auth-support-card__links {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.hb-auth-support-card__links a,
.hb-auth-support-card__phones a {
  color: #2563eb;
  text-decoration: none;
}

.hb-auth-support-card__links a:hover,
.hb-auth-support-card__phones a:hover {
  text-decoration: underline;
}

.hb-auth-support-card .hb-telegram-link--inline {
  font-size: 13px;
  font-weight: 700;
}

.hb-auth-panel--solo {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
}

@media (max-width: 900px) {
  .hb-auth-split--register {
    grid-template-columns: 1fr;
  }

  .hb-auth-welcome--register {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  .hb-auth-welcome--register .hb-auth-illustration {
    display: none;
  }

  .hb-auth-plans--inline,
  .hb-auth-plans--block {
    grid-template-columns: 1fr;
  }

  .hb-auth-plan-card--block.hb-auth-plan-card--featured .hb-auth-plan-card__surface {
    order: -1;
  }

  .hb-auth-support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hb-auth-plan-card__surface {
    padding: 12px 14px;
  }

  .hb-auth-plan-card__amount {
    font-size: 1.1rem;
  }
}

/* Registration success modal */
body.hb-auth-modal-open {
  overflow: hidden;
}

.hb-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.hb-auth-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hb-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.hb-auth-modal__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 400px);
  max-height: min(88dvh, 680px);
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 20px 40px rgba(15, 23, 42, 0.16),
    0 40px 80px rgba(37, 99, 235, 0.12);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}

.hb-auth-modal.is-open .hb-auth-modal__card {
  transform: translateY(0) scale(1);
}

.hb-auth-modal__dismiss {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.95);
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.hb-auth-modal__dismiss:hover {
  background: #e2e8f0;
  color: #334155;
}

.hb-auth-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 20px 16px;
  -webkit-overflow-scrolling: touch;
}

.hb-auth-modal__hero {
  text-align: center;
  margin-bottom: 14px;
}

.hb-auth-modal__badge {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #dcfce7 0%, #bbf7d0 100%);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.18);
}

.hb-auth-modal__title {
  margin: 0 0 6px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}

.hb-auth-modal__lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

.hb-auth-modal__steps {
  margin: 0 0 14px;
  padding: 10px 12px 10px 28px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #475569;
}

.hb-auth-modal__steps li::marker {
  color: #2563eb;
  font-weight: 700;
}

.hb-auth-modal__actions-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  text-align: center;
}

.hb-auth-modal__actions-panel {
  flex-shrink: 0;
  display: grid;
  gap: 8px;
  padding: 0 20px 12px;
  border-top: 1px solid #f1f5f9;
  background: #fff;
}

.hb-auth-modal__phone-actions {
  display: grid;
  gap: 8px;
}

.hb-auth-modal__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hb-auth-modal__action-btn--phone {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.hb-auth-modal__action-btn--phone:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.hb-auth-modal--registration .hb-auth-modal__action-btn--telegram {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  box-shadow: none;
}

.hb-auth-modal--registration .hb-auth-modal__action-btn--telegram:hover,
.hb-auth-modal--registration .hb-auth-modal__action-btn--telegram:focus-visible {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: none;
}

.hb-auth-modal--registration .hb-auth-modal__action-btn-title {
  color: #0f172a;
}

.hb-auth-modal--registration .hb-auth-modal__action-btn-meta {
  color: #64748b;
}

.hb-auth-modal--registration .hb-auth-modal__action-btn--telegram:hover .hb-auth-modal__action-btn-meta,
.hb-auth-modal--registration .hb-auth-modal__action-btn--telegram:focus-visible .hb-auth-modal__action-btn-meta {
  color: #475569;
}

.hb-auth-modal__telegram-icon {
  flex-shrink: 0;
  color: #229ed9;
}

.hb-auth-modal__action-btn-text {
  display: grid;
  gap: 1px;
  text-align: left;
}

.hb-auth-modal__action-btn-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.hb-auth-modal__action-btn-meta {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

.hb-auth-modal__action-btn--telegram:hover .hb-auth-modal__action-btn-meta {
  color: #475569;
}

.hb-auth-modal__footer {
  flex-shrink: 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.hb-auth-modal__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
  transition: background 0.15s ease, transform 0.15s ease;
}

.hb-auth-modal__cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  .hb-auth-modal__body {
    padding: 24px 22px 18px;
  }

  .hb-auth-modal__title {
    font-size: 1.38rem;
  }

  .hb-auth-modal__lead {
    font-size: 14px;
  }

  .hb-auth-modal__steps {
    font-size: 13px;
    padding: 12px 14px 12px 30px;
  }

  .hb-auth-modal__phone-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hb-auth-modal__actions-panel {
    padding: 0 22px 14px;
  }

  .hb-auth-modal__action-btn {
    font-size: 13px;
    min-height: 48px;
  }

  .hb-auth-modal__action-btn--telegram {
    justify-content: flex-start;
    padding-inline: 16px;
  }
}

@media (max-width: 639px) {
  .hb-auth-modal {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  .hb-auth-modal__card {
    position: relative;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px));
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }

  .hb-auth-modal.is-open .hb-auth-modal__card {
    transform: translateY(0);
  }

  .hb-auth-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 16px 10px;
    padding-top: 36px;
  }

  .hb-auth-modal__hero {
    margin-bottom: 8px;
  }

  .hb-auth-modal__badge {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
  }

  .hb-auth-modal__badge svg {
    width: 22px;
    height: 22px;
  }

  .hb-auth-modal__title {
    font-size: 1.1rem;
  }

  .hb-auth-modal__lead {
    font-size: 12px;
    line-height: 1.4;
  }

  .hb-auth-modal__steps {
    margin-bottom: 0;
    padding: 8px 10px 8px 22px;
    gap: 3px;
    font-size: 11px;
  }

  .hb-auth-modal__actions-panel {
    flex-shrink: 0;
    padding: 10px 16px 8px;
  }

  .hb-auth-modal__actions-label {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .hb-auth-modal__phone-actions {
    grid-template-columns: 1fr;
  }

  .hb-auth-modal__action-btn {
    min-height: 40px;
    font-size: 13px;
    padding: 8px 12px;
  }

  .hb-auth-modal__action-btn-title {
    font-size: 13px;
  }

  .hb-auth-modal__footer {
    flex-shrink: 0;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .hb-auth-modal__cta {
    min-height: 42px;
  }

  .hb-auth-modal__action-btn span {
    word-break: break-word;
  }

  .hb-auth-modal__action-btn--telegram {
    justify-content: flex-start;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-auth-modal,
  .hb-auth-modal__card {
    transition: none;
  }

  .hb-auth-modal.is-open .hb-auth-modal__card {
    transform: none;
  }
}

/* Compact contact footer on login/register pages */
.hb-auth-page-footer {
  width: min(100%, 960px);
  margin: 20px auto 0;
}

.hb-auth-page--register .hb-auth-page-footer {
  width: min(100%, 1040px);
}

.hb-auth-page-footer__card {
  display: grid;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.hb-auth-page-footer__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.hb-auth-page-footer__lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
}

.hb-auth-page-footer__contacts {
  display: grid;
  gap: 12px;
}

.hb-auth-page-footer__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.hb-auth-page-footer__item--phone {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.hb-auth-page-footer__item--telegram {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.hb-auth-page-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.hb-auth-page-footer__item--telegram .hb-auth-page-footer__icon {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.hb-auth-page-footer__label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.hb-auth-page-footer__phones,
.hb-auth-page-footer__link {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.hb-auth-page-footer__phones a,
.hb-auth-page-footer__link {
  color: #2563eb;
  text-decoration: none;
}

.hb-auth-page-footer__phones a:hover,
.hb-auth-page-footer__link:hover {
  text-decoration: underline;
}

.hb-auth-page-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hb-auth-page-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #2563eb;
}

.hb-auth-page-footer__cta:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.hb-auth-page-footer__cta--ghost {
  background: #fff;
  color: #2563eb !important;
  border-color: #bfdbfe;
}

.hb-auth-page-footer__cta--ghost:hover {
  background: #eff6ff;
}

.hb-telegram-link--auth-footer {
  font-size: 14px;
  font-weight: 700;
  color: #15803d;
}

@media (min-width: 768px) {
  .hb-auth-page-footer__contacts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hb-auth-page-footer__card {
    padding: 22px 24px;
  }

  .hb-auth-page-footer__intro,
  .hb-auth-page-footer__contacts,
  .hb-auth-page-footer__actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .hb-auth-page-footer__actions {
    flex-direction: column;
  }

  .hb-auth-page-footer__cta {
    width: 100%;
  }
}
