/* Shared QR linking UI — from design-prototypes/qr-linking-light */
:root {
  --ql-ink: #0b1423;
  --ql-copy: #56657b;
  --ql-green: #0aaf51;
  --ql-line: #e2e8e5;
  --ql-soft: #ecf9f1;
}
.ql-page {
  min-width: 320px;
  margin: 0;
  color: var(--ql-ink);
  background:
    radial-gradient(circle at 50% 100%, rgba(74, 223, 128, 0.12), transparent 35%),
    #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ql-page a { color: inherit; text-decoration: none; }
.ql-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ql-ui-icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ql-topbar {
  height: 94px;
  border-bottom: 1px solid #e9eeec;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
}
.ql-topbar-inner {
  width: min(calc(100% - 112px), 1420px);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ql-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -0.04em;
}
.ql-brand img { width: 51px; height: 51px; object-fit: contain; }
.ql-back-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #526076;
  font-size: 16px;
}
.ql-back-link .ql-ui-icon { width: 20px; height: 20px; }

.ql-main { min-height: calc(100vh - 94px); padding: 52px 20px 31px; }
.ql-link-card {
  width: min(100%, 1098px);
  min-height: 741px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e2e8e5;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(24, 82, 48, 0.07);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ql-intro { padding: 49px 59px 45px 72px; border-right: 1px solid #e6ebe9; }
.ql-intro h1 {
  max-width: 390px;
  margin: 0;
  font-size: 39px;
  line-height: 1.1;
  letter-spacing: -0.055em;
  font-weight: 700;
}
.ql-intro h1 span { color: var(--ql-green); }
.ql-intro-lede {
  max-width: 390px;
  margin: 17px 0 43px;
  color: #526076;
  font-size: 18px;
  line-height: 1.42;
}
.ql-steps { display: grid; gap: 31px; }
.ql-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 17px;
  align-items: center;
}
.ql-step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0b9c4b;
  background: linear-gradient(145deg, #ebf9f0, #dff6e8);
  font-size: 20px;
  font-weight: 720;
}
.ql-step strong { display: block; margin-bottom: 6px; font-size: 17px; letter-spacing: -0.02em; }
.ql-step span { color: #5e6b80; font-size: 15px; }
.ql-rule { height: 1px; margin: 35px 0 28px; background: #e1e8e5; }
.ql-next-card {
  min-height: 137px;
  padding: 22px 24px;
  border: 1px solid #deebe3;
  border-radius: 13px;
  background: linear-gradient(135deg, #f8fdf9, #f2faf5);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}
.ql-shield { width: 42px; height: 42px; color: #0ba351; }
.ql-next-card strong { display: block; margin: 1px 0 8px; font-size: 16px; }
.ql-next-card p { margin: 0; color: #536177; font-size: 14px; line-height: 1.55; }
.ql-security {
  margin: 42px 0 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #8792a2;
  font-size: 15px;
}
.ql-security-lock {
  width: 15px;
  height: 13px;
  border: 2px solid #98a3b2;
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}
.ql-security-lock::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -9px;
  width: 7px;
  height: 8px;
  border: 2px solid #98a3b2;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.ql-scan { padding: 49px 58px 45px; text-align: center; }
.ql-scan h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.035em; font-weight: 700; }
.ql-scan-lede { margin: 0; color: #5b687d; font-size: 16px; }
.ql-qr-frame {
  width: 300px;
  height: 290px;
  margin: 30px auto 21px;
  padding: 23px;
  border: 1px solid #e2e7e5;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 7px 20px rgba(14, 50, 31, 0.025);
}
.ql-qr-frame img.ql-qr-img,
.ql-qr-frame .ql-qr-img {
  width: 244px;
  height: 244px;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 8px;
}
.ql-qr-loading {
  width: 244px;
  height: 244px;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #5b687d;
  font-size: 14px;
}
.ql-qr-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #dff6e8;
  border-top-color: #0aaf51;
  border-radius: 50%;
  animation: ql-spin 0.8s linear infinite;
}
@keyframes ql-spin { to { transform: rotate(360deg); } }

.ql-scan-status { margin: 0; color: #1c2738; font-size: 16px; }
.ql-scan-status:not(:empty)::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: 0 10px 1px 0;
  border-radius: 50%;
  background: #0eaa52;
  vertical-align: middle;
}
.ql-scan-status.is-error:not(:empty)::before { background: #dc2626; }
.ql-scan-status.is-wait:not(:empty)::before { background: #f59e0b; }

/* Primary CTA — used in QR frame + pairing + success */
.ql-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 9px;
  background: #0aaf51;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.ql-primary-btn:hover { background: #099a48; }
.ql-primary-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.ql-code-box {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid #e2e8e5;
  border-radius: 12px;
  background: #f8faf9;
  text-align: center;
}
.ql-code-box .ql-code,
.ql-code {
  margin: 0;
  font-size: 28px;
  font-weight: 760;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  color: var(--ql-ink);
}
.ql-refresh-copy { margin: 12px 0 0; color: #607087; font-size: 15px; }

.ql-or {
  width: 338px;
  max-width: 100%;
  margin: 34px auto 27px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 13px;
  align-items: center;
  color: #536177;
  font-size: 15px;
}
.ql-or::before,
.ql-or::after { content: ""; height: 1px; background: #dce4e1; }

.ql-phone-button {
  width: 386px;
  max-width: 100%;
  height: 58px;
  margin: auto;
  border: 1.5px solid #07a84d;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #079c49;
  background: #fff;
  font-size: 16px;
  font-weight: 720;
  cursor: pointer;
  font-family: inherit;
}
.ql-phone-button .ql-ui-icon {
  width: 23px;
  height: 23px;
  fill: currentColor;
  stroke: none;
}
.ql-phone-button:hover { background: #f8fdf9; }
.ql-phone-note {
  max-width: 365px;
  margin: 16px auto 0;
  color: #647188;
  font-size: 16px;
  line-height: 1.5;
}

.ql-page-links {
  margin: 50px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: #647188;
  font-size: 15px;
  flex-wrap: wrap;
}
.ql-page-links a:hover { color: #079e4a; }
.ql-page-links a.ql-accent { color: #079e4a; font-weight: 650; }
.ql-page-links .ql-divider {
  width: 1px;
  height: 24px;
  background: #b8c2c0;
}

/* Pairing form inside scan column */
.ql-pairing {
  text-align: left;
  max-width: 386px;
  margin: 0 auto;
}
.ql-pairing .ql-field-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
@media (min-width: 480px) {
  .ql-pairing .ql-field-row { flex-direction: row; }
}
.ql-pairing select,
.ql-pairing input[type="tel"],
.ql-pairing input[type="email"] {
  width: 100%;
  border: 1px solid #e2e8e5;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
  color: var(--ql-ink);
  font-family: inherit;
}
.ql-pairing .ql-primary-btn { width: 100%; }
.ql-text-btn {
  background: none;
  border: 0;
  color: #079c49;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  padding: 0;
}
.ql-hidden,
.ql-page .hidden { display: none !important; }

.ql-success {
  padding: 64px 40px;
  text-align: center;
  grid-column: 1 / -1;
}
.ql-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #ecf9f1;
  color: #0aaf51;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.ql-success h1 { margin: 0 0 10px; font-size: 28px; letter-spacing: -0.03em; }
.ql-success p { color: #536177; font-size: 16px; line-height: 1.5; max-width: 420px; margin: 0 auto 16px; }
.ql-success .ql-primary-btn {
  min-width: 280px;
  margin-top: 8px;
}

@media (max-width: 800px) {
  .ql-topbar { height: 76px; }
  .ql-topbar-inner { width: calc(100% - 32px); }
  .ql-brand { font-size: 19px; }
  .ql-brand img { width: 41px; height: 41px; }
  .ql-back-link { font-size: 14px; }
  .ql-back-link span { display: none; }
  .ql-main { padding: 26px 16px 28px; }
  .ql-link-card { grid-template-columns: 1fr; min-height: 0; }
  .ql-intro {
    padding: 38px 27px;
    border-right: 0;
    border-bottom: 1px solid #e6ebe9;
  }
  .ql-intro h1 { font-size: 35px; }
  .ql-scan { padding: 38px 24px; }
  .ql-qr-frame { width: 280px; height: 270px; }
  .ql-qr-frame img.ql-qr-img,
  .ql-qr-frame .ql-qr-img { width: 224px; height: 224px; }
  .ql-phone-button { width: 100%; }
  .ql-page-links { margin-top: 30px; gap: 18px; font-size: 14px; }
}
