:root {
  --lb-bg: #000000;
  --lb-surface: #000000;
  --lb-input: #222326;
  --lb-input-border: #222326;
  --lb-text: #ffffff;
  --lb-muted: #767980;
  --lb-yellow: #ffdb00;
  --lb-yellow-hover: #ffe44d;
  --lb-btn-disabled-bg: #18191b;
  --lb-btn-disabled-text: #404247;
  --lb-social-bg: #18191b;
  --lb-link: #ffdb00;
  --lb-forgot: #0b73db;
  --lb-header-h: 48px;
  --lb-max-form: 480px;
  --lb-radius-input: 4px;
  --lb-radius-pill: 25px;
  --lb-font: "HarmonyOS Sans", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--lb-bg);
  color: var(--lb-text);
  font-family: var(--lb-font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.lb-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── Header (real: 48px) ── */
.lb-header {
  height: var(--lb-header-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .lb-header { padding: 0 24px; }
}

.lb-logo-link { display: flex; align-items: center; text-decoration: none; }
.lb-logo-img { display: block; height: 16px; width: 80px; }

.lb-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lb-lang {
  display: inline-flex;
  align-items: stretch;
  height: 28px;
  border: 1px solid #2e3033;
  border-radius: 14px;
  overflow: hidden;
  background: #18191b;
  flex-shrink: 0;
  direction: ltr;
}

.lb-lang-btn {
  min-width: 40px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: #767980;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  line-height: 26px;
}

.lb-lang-btn.is-active {
  background: #222326;
  color: #ffdb00;
}

html[dir="rtl"] {
  font-family: "Segoe UI", Tahoma, "Iranian Sans", "HarmonyOS Sans", Arial, sans-serif;
}

html[dir="rtl"] .lb-input[type="email"],
html[dir="rtl"] .lb-input[type="password"],
html[dir="rtl"] .lb-input[type="tel"],
html[dir="rtl"] .lb-verify-input,
html[dir="rtl"] #apiIp,
html[dir="rtl"] #captchaKey {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .lb-phone-row,
html[dir="rtl"] .lb-btn-google {
  direction: ltr;
}

html[dir="rtl"] .lb-dev-log {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .lb-signup-text,
html[dir="rtl"] .lb-legal {
  text-align: start;
}

html[dir="rtl"] .lb-qr-hint {
  text-align: start;
}

/* Header Log in pill — real desktop: 32px, bg #222326 */
.lb-login-pill {
  display: none;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 8px 16px;
  background: #222326;
  color: #fff;
  border-radius: 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .lb-login-pill {
    display: inline-flex;
  }
}

.lb-icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--lb-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.lb-menu {
  width: 22px;
  height: 48px;
}

/* Sign up pill — exact LBank header brand button */
.lb-signup-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 32px;
  padding: 8px 16px;
  background: var(--lb-yellow);
  color: #000;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  box-sizing: border-box;
}

.lb-signup-pill:hover {
  filter: brightness(1.03);
}

/* Animated gift sprite (LBank register-icon, 49 frames / 2s) */
.lb-signup-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-inline-end: 4px;
  position: relative;
  top: -2px;
  background-image: url("/static/assets/signup-icon.webp");
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center top;
  animation: lb-signup-icon 2s steps(49) infinite;
}

@keyframes lb-signup-icon {
  0% { background-position: center top 0; }
  100% { background-position: center bottom 0; }
}

.lb-signup-text-label {
  display: inline-block;
  line-height: 16px;
}

/* ── Main — real LBank container uses margin 100px 0 ── */
.lb-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 14px;
}

.lb-login-layout {
  width: 100%;
  max-width: 1280px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  /* Real LBank: 40px on mobile, 100px on desktop */
  margin: 40px 0;
}

@media (min-width: 768px) {
  .lb-login-layout {
    margin: 100px 0;
  }
}

.lb-hero {
  display: none;
}

.lb-hero-img {
  width: 478px;
  height: 478px;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

.lb-form-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0;
}

/* Title: 24/700, lh 28 — titleWrapper margin-bottom 32 */
.lb-title {
  margin: 0 0 32px;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0;
  color: #fff;
}

/* Promo banner — exact LBank adWrapper */
.lb-promo-banner {
  display: block;
  width: 100%;
  height: 74px;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 0 32px;
  background: #000;
  border: 0.5px solid #252525;
  line-height: 0;
}

.lb-promo-img {
  width: 100%;
  height: 74px;
  display: block;
  object-fit: fill;
  margin: 0;
}

/* ── Tabs: 14/500, height 36, gap 20, no full bottom border ── */
.lb-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: none;
  margin-bottom: 12px;
  height: 36px;
}

.lb-tab {
  background: none;
  border: none;
  color: var(--lb-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lb-tab.is-active {
  color: #fff;
}

.lb-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: #fff;
}

/* ── Fields: 40px tall, radius 4, bg #222326 ── */
.lb-field {
  position: relative;
  margin-bottom: 0;
}

.lb-email-field {
  position: relative;
}

.lb-input-wrap {
  position: relative;
  height: 40px;
  background: var(--lb-input);
  border: 1px solid var(--lb-input-border);
  border-radius: var(--lb-radius-input);
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.lb-input-wrap:focus-within {
  border-color: #767980;
}

.lb-input-wrap.is-invalid,
.lb-input-wrap.is-invalid:focus-within {
  border-color: #db426b;
}

.lb-field-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  color: #fff;
  margin: 0 0 12px;
}

.lb-input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 8px;
  background: var(--lb-input);
  border: 1px solid var(--lb-input-border);
  border-radius: var(--lb-radius-input);
  color: var(--lb-text);
  font-size: 14px;
  line-height: 16px;
  outline: none;
  transition: border-color 0.15s;
}

.lb-input::placeholder { color: #767980; }

.lb-input:focus {
  border-color: #767980;
}

.lb-input-wrap .lb-input {
  background: transparent;
  border: none;
  height: 38px; /* 40px wrap − 1px borders */
  padding: 0 40px 0 8px;
}

.lb-input-wrap .lb-input:focus {
  border: none;
}

.lb-clear, .lb-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--lb-muted);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

/* Email domain suggestions — exact LBank picker */
.lb-email-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  background: #111212;
  border: 1px solid #18191b;
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.4) 0 4px 16px 0;
  padding: 4px 0;
  max-height: 220px;
  overflow-y: auto;
}

.lb-email-suggest-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  padding: 9px 8px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  text-align: left;
  cursor: pointer;
}

.lb-email-suggest-item:hover,
.lb-email-suggest-item.is-active {
  background: #222326;
}

.lb-email-error {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 14px;
  color: #db426b;
}

.lb-password-block {
  margin-top: 0;
}

.lb-password-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 12px;
}

.lb-label {
  font-size: 14px;
  color: var(--lb-text);
  font-weight: 500;
}

.lb-label-pwd {
  font-weight: 400;
  line-height: 14px;
}

.lb-forgot {
  font-size: 14px;
  line-height: 16px;
  color: #0b73db;
  text-decoration: none;
}

.lb-forgot:hover { opacity: 0.9; }

/* ── Buttons ── */
.lb-btn {
  position: relative;
  width: 100%;
  height: 48px;
  padding: 15px 24px;
  border: none;
  border-radius: var(--lb-radius-pill);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
  line-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lb-btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Verify: disabled #18191B / #404247; enabled yellow */
.lb-btn-verify {
  margin-top: 48px;
  background: var(--lb-btn-disabled-bg);
  color: var(--lb-btn-disabled-text);
}

.lb-btn-verify:not(:disabled) {
  background: var(--lb-yellow);
  color: #000;
  cursor: pointer;
}

.lb-btn-verify:not(:disabled):hover {
  background: var(--lb-yellow-hover);
}

/* After email verify — same button becomes Log in */
.lb-btn-verify.is-login,
.lb-btn-verify.is-login:not(:disabled) {
  margin-top: 48px;
  background: var(--lb-yellow);
  color: #000;
}

.lb-btn-verify.is-login:hover {
  background: var(--lb-yellow-hover);
}

/* Button loading */
.lb-btn.is-loading {
  pointer-events: none;
  cursor: default;
  color: transparent !important;
}

/* Verify wait: dark button + yellow spinner */
.lb-btn.is-loading:not(.is-login) {
  background: #18191b !important;
}

.lb-btn.is-loading .lb-btn-label {
  visibility: hidden;
}

.lb-btn-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2.5px solid rgba(255, 219, 0, 0.22);
  border-top-color: var(--lb-yellow);
  border-radius: 50%;
  animation: lb-spin 0.75s linear infinite;
}

/* Log in wait: keep yellow button + dark spinner (exact LBank) */
.lb-btn.is-loading.is-login {
  background: var(--lb-yellow) !important;
}

.lb-btn.is-loading.is-login .lb-btn-spinner {
  border-color: rgba(0, 0, 0, 0.18);
  border-top-color: #111;
}

.lb-btn-login {
  background: var(--lb-yellow);
  color: #000;
  margin-top: 16px;
}

.lb-btn-login:hover { background: var(--lb-yellow-hover); }

.lb-btn-login:disabled {
  background: var(--lb-btn-disabled-bg);
  color: var(--lb-btn-disabled-text);
  cursor: not-allowed;
}

.lb-btn:disabled { cursor: not-allowed; }

/* ── Phone / QR ── */
.lb-phone-row { display: flex; gap: 8px; }
.lb-prefix {
  height: 40px;
  padding: 0 12px;
  background: var(--lb-input);
  border: 1px solid var(--lb-input-border);
  border-radius: var(--lb-radius-input);
  color: var(--lb-text);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 14px;
}

.lb-phone-row .lb-input { flex: 1; }

/* QR panel — matches LBank scanQR layout */
.lb-qr-wrap { margin-bottom: 8px; }

.lb-qr-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #111212;
  border-radius: 8px;
  padding: 16px;
  min-height: 228px;
}

.lb-qr-code {
  position: relative;
  width: 196px;
  height: 196px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.lb-qr-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.lb-qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--lb-yellow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 0 0 4px #fff;
}

.lb-qr-logo img { width: 100%; height: 100%; object-fit: contain; }

.lb-qr-phone {
  width: min(180px, 42%);
  height: auto;
  object-fit: contain;
  flex-shrink: 1;
}

.lb-qr-hint {
  margin: 16px 0 8px;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.lb-qr-hint strong { color: #fff; font-weight: 600; }
.lb-qr-hint-icon { color: #fff; font-size: 16px; line-height: 20px; }

/* Google + social — mobile defaults match real (140×42 / 40×40 / gap 11) */
.lb-social-block {
  margin: 20px 0 0;
}

.lb-third-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 42px;
}

.lb-circle-group {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.lb-btn-google {
  flex: 0 0 auto;
  width: 140px;
  min-width: 120px;
  max-width: 211px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #000;
  border: 1px solid #767980;
  border-radius: 24px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  cursor: pointer;
  padding: 0 12px;
  margin: 0;
}

.lb-social {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--lb-social-bg);
  border: none;
  color: var(--lb-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.lb-social img,
.lb-social svg {
  display: block;
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .lb-third-row {
    gap: 17px;
    height: 48px;
  }

  .lb-circle-group {
    gap: 20px;
  }

  .lb-btn-google {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 48px;
  }

  .lb-social {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }

  .lb-social img,
  .lb-social svg {
    width: 22px;
    height: 22px;
  }
}

/* Footer — real: mt 20 / mb 6, then agree mt 26, 14/16 */
.lb-signup-text {
  text-align: left;
  font-size: 14px;
  color: var(--lb-muted);
  margin: 20px 0 6px;
  line-height: 16px;
}

.lb-signup-text a {
  color: var(--lb-link);
  text-decoration: none;
  font-weight: 500;
}

.lb-legal {
  text-align: left;
  font-size: 14px;
  color: var(--lb-muted);
  margin: 26px 0 0;
  line-height: 16px;
}

.lb-legal a {
  color: var(--lb-link);
  text-decoration: underline;
  font-weight: 500;
}

/* Chat FAB */
.lb-chat-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lb-yellow);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  padding: 0;
}

@media (min-width: 768px) {
  .lb-chat-fab { right: 28px; bottom: 28px; }
}

/* Dev panel */
.lb-dev-toggle {
  position: fixed;
  left: 16px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--lb-muted);
  cursor: pointer;
  z-index: 60;
  font-size: 16px;
}

.lb-dev-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 70vh;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px 16px 0 0;
  padding: 16px;
  overflow-y: auto;
  z-index: 100;
}

.lb-dev-panel.hidden {
  display: none !important;
}

.lb-dev-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.lb-dev-head button {
  background: none;
  border: none;
  color: var(--lb-text);
  font-size: 24px;
  cursor: pointer;
}

.lb-dev-panel .lb-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--lb-muted);
}

.lb-dev-panel .lb-input {
  margin-bottom: 10px;
}

.lb-dev-panel .lb-btn {
  margin-top: 0;
}

.lb-dev-status {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  color: var(--lb-muted);
}

.lb-dev-status.ok { color: #00d084; }
.lb-dev-status.err { color: #ff4d6a; }
.lb-dev-status.load { color: var(--lb-yellow); }

.lb-dev-balance {
  padding: 12px;
  background: rgba(0,208,132,0.08);
  border: 1px solid rgba(0,208,132,0.2);
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 14px;
}

.lb-dev-balance strong { color: #00d084; font-size: 18px; }

.lb-dev-log {
  max-height: 160px;
  overflow: auto;
  padding: 10px;
  background: #050505;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  font-size: 11px;
  color: #888;
  white-space: pre-wrap;
  word-break: break-word;
  direction: ltr;
  text-align: left;
  margin: 8px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.lb-toast {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 16px;
}

.lb-toast-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  min-height: 48px;
  padding: 11px 16px;
  background: #222326;
  border: 1px solid #2e3033;
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.5) 0 8px 16px 0;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.lb-toast-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.lb-toast.error .lb-toast-icon {
  background: #db426b;
  color: #fff;
}

.lb-toast.success .lb-toast-icon {
  background: #00d084;
  color: #fff;
}

/* Exact LBank warning toast (wrong Google Auth / expired code) */
.lb-toast.warning .lb-toast-icon {
  background: transparent;
  color: #f0b90b;
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.lb-toast.warning .lb-toast-inner {
  background: #222326;
  border: 1px solid #2e3033;
}

.lb-toast-content {
  color: #fff;
}

.hidden { display: none !important; }

/* ── Loading overlay ── */
.lb-loading {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lb-loading-card {
  background: #18191b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 28px 32px;
  min-width: 200px;
  text-align: center;
}

.lb-loading-card p {
  margin: 14px 0 0;
  font-size: 14px;
  color: #fff;
}

.lb-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: var(--lb-yellow);
  border-radius: 50%;
  animation: lb-spin 0.8s linear infinite;
}

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

/* ── Security Verification modal (matches LBank centered card) ── */
.lb-modal {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.lb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.lb-modal-sheet {
  position: relative;
  width: min(520px, 100%);
  max-height: min(90vh, 640px);
  overflow-y: auto;
  background: #111212;
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  z-index: 1;
  animation: lb-modal-in 0.18s ease-out;
}

.lb-modal.is-pinned .lb-modal-sheet {
  animation: none;
}

@keyframes lb-modal-in {
  from { transform: translateY(8px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

.lb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 12px;
  gap: 12px;
}

.lb-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 20px;
  color: #fff;
}

.lb-modal-close {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: #767980;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lb-modal-close:hover {
  color: #fff;
}

.lb-modal-body {
  padding: 20px 24px 24px;
}

.lb-verify-block + .lb-verify-block {
  margin-top: 16px;
}

.lb-verify-block .lb-verify-input-wrap {
  margin-bottom: 0;
}

#verifyApiView .lb-verify-confirm {
  margin-top: 20px;
}

.lb-verify-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  color: #fff;
  word-break: break-word;
}

.lb-verify-label-email {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
}

.lb-verify-email-title {
  font-weight: 400;
}

.lb-verify-email-masked {
  margin-top: 2px;
}

.lb-verify-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px 0 12px;
  background: #222326;
  border: 1px solid #222326;
  border-radius: 4px;
  margin-bottom: 12px;
}

.lb-verify-input-wrap:focus-within {
  border-color: #404247;
}

.lb-verify-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  line-height: 16px;
  padding: 0;
}

.lb-verify-input::placeholder {
  color: #767980;
}

.lb-verify-addon {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #0b73db;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 4px;
  white-space: nowrap;
}

.lb-verify-addon:disabled {
  color: #0b73db;
  opacity: 0.85;
  cursor: default;
}

.lb-verify-addon.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lb-verify-addon.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(11, 115, 219, 0.25);
  border-top-color: #0b73db;
  border-radius: 50%;
  animation: lb-spin 0.7s linear infinite;
}

.lb-switch-method {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 20px;
  padding: 0;
  border: none;
  background: none;
  color: #0b73db;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  line-height: 17px;
}

.lb-switch-arrow {
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

.lb-verify-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 25px;
  background: var(--lb-yellow);
  color: #111;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.lb-verify-confirm:disabled {
  background: #18191b;
  color: #404247;
  cursor: not-allowed;
}

#geeCaptcha {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
}

#geeCaptcha > * {
  pointer-events: auto;
}

.lb-email-help {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 0;
  border: none;
  background: none;
  color: #a8abb2;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}

.lb-email-help:hover {
  color: #fff;
}

/* Desktop: split hero + form (matches LBank ~100px gap) */
@media (min-width: 960px) {
  .lb-main {
    padding: 0 40px;
  }

  .lb-login-layout {
    justify-content: center;
    align-items: center;
    gap: 100px;
    margin: 100px 0;
  }

  .lb-hero {
    display: block;
    flex: 0 0 auto;
  }

  .lb-form-wrap {
    width: 480px;
    max-width: 480px;
  }

  /* Small promo often hidden on desktop; hero replaces it */
  .lb-promo-banner {
    display: none;
  }
}

/* Mobile / responsive */
@media (max-width: 480px) {
  .lb-form-wrap { max-width: 100%; }
  .lb-promo-banner { height: 74px; }
  .lb-qr-box {
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
  }
  .lb-qr-phone { width: 160px; }
  .lb-otp-input { width: 40px; height: 44px; font-size: 18px; }
}

@media (max-width: 360px) {
  .lb-btn-google { min-width: 110px; font-size: 13px; padding: 0 8px; }
  .lb-third-row { gap: 8px; }
  .lb-qr-code { width: 168px; height: 168px; }
}
