/* LangReply — Onboarding modal styles */
.lr-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 1; transition: opacity 180ms ease; }
.lr-modal.hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.lr-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.62); backdrop-filter: blur(2px); }
.lr-modal__card { position: relative; width: min(640px, 100%); max-height: min(88vh, 780px); background: #ffffff; color: #0f172a; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12); display: flex; flex-direction: column; overflow: hidden; transform: translateY(0) scale(1); transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease; animation: lr-modal-in 240ms cubic-bezier(0.16, 1, 0.3, 1); }
.lr-modal.hidden .lr-modal__card { transform: translateY(12px) scale(0.98); }
@keyframes lr-modal-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.lr-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #e2e8f0; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.lr-modal__title { margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: #0f172a; }
.lr-modal__close { appearance: none; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; color: #475569; transition: background 120ms ease, color 120ms ease; }
.lr-modal__close:hover { background: #f1f5f9; color: #0f172a; }
.lr-modal__body { padding: 18px 22px 4px; overflow-y: auto; }
.lr-modal__warnings { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.lr-modal__warn { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; line-height: 1.45; border: 1px solid transparent; }
.lr-modal__warn--info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.lr-modal__warn--warn { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.lr-modal__warn::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px; }
.lr-modal__warn--info::before { background: #3b82f6; }
.lr-modal__warn--warn::before { background: #f59e0b; }
.lr-modal__steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: none; display: flex; flex-direction: column; gap: 10px; }
.lr-modal__steps li { padding: 10px 12px 10px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 0.94rem; line-height: 1.5; color: #1e293b; word-break: break-word; }
.lr-modal__steps li a { color: #1d4ed8; text-decoration: underline; word-break: break-all; }
.lr-modal__helpline { margin: 4px 0 12px; font-size: 0.9rem; }
.lr-modal__helpline a { color: #1d4ed8; text-decoration: none; font-weight: 500; }
.lr-modal__helpline a:hover { text-decoration: underline; }
.lr-modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.lr-modal__lang { appearance: none; border: 1px solid #cbd5e1; background: #ffffff; color: #334155; font-size: 0.85rem; font-weight: 600; padding: 8px 12px; border-radius: 8px; cursor: pointer; transition: background 120ms ease, border-color 120ms ease; }
.lr-modal__lang:hover { background: #f1f5f9; border-color: #94a3b8; }
.lr-modal__cta { appearance: none; border: 0; background: #15355a; color: #ffffff; font-size: 0.95rem; font-weight: 600; padding: 10px 18px; border-radius: 8px; cursor: pointer; transition: background 140ms ease, transform 120ms ease; box-shadow: 0 2px 4px rgba(21, 53, 90, 0.25); }
.lr-modal__cta:hover { background: #1e4573; }
.lr-modal__cta:active { transform: translateY(1px); }
/* Provider link + detection badge injected next to #cn-provider */
.lr-guide-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.88rem; color: #1d4ed8; text-decoration: none; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background 120ms ease; }
.lr-guide-link:hover { background: #eff6ff; text-decoration: underline; }
.lr-provider-badge { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 3px 10px; font-size: 0.78rem; font-weight: 600; color: #065f46; background: #d1fae5; border: 1px solid #6ee7b7; border-radius: 999px; animation: lr-badge-in 260ms ease; }
@keyframes lr-badge-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
/* Responsive mobile */
@media (max-width: 600px) {
  .lr-modal { padding: 8px; align-items: flex-end; }
  .lr-modal__card { width: 100%; max-height: 92vh; border-radius: 14px 14px 8px 8px; animation: lr-modal-in-mobile 260ms cubic-bezier(0.16, 1, 0.3, 1); }
  @keyframes lr-modal-in-mobile { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .lr-modal__header, .lr-modal__body, .lr-modal__footer { padding-left: 16px; padding-right: 16px; }
  .lr-modal__title { font-size: 1.05rem; }
  .lr-modal__steps li { font-size: 0.92rem; }
  .lr-modal__footer { flex-direction: column-reverse; align-items: stretch; }
  .lr-modal__cta { width: 100%; padding: 12px 16px; }
  .lr-modal__lang { width: 100%; }
  .lr-provider-badge { display: block; margin-left: 0; margin-top: 6px; width: fit-content; }
}
/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lr-modal, .lr-modal__card, .lr-provider-badge { animation: none !important; transition: none !important; }
}