/* My Xenyra bridge: a few tiny hand-off screens between xenyra.com and the app (sign-in check, own Xenyra ID card, sign-out).
   Own file, own tokens: nothing here touches the app's styles. */
:root {
  --b-bg: #0B1020;
  --b-surface: #121933;
  --b-surface-2: #1A2150;
  --b-orb-soft: .5;
  --b-glow: rgba(110, 140, 255, .45);
  --b-line: #26305A;
  --b-ink: #F2F4FF;
  --b-muted: #AEB6DA;
  --b-blue: #3355FF;
  --b-violet: #7A4DFF;
  --b-blue-ink: #8FA6FF;
  --b-on-accent: #FFFFFF;
  --b-ok-ink: #8FE3B4;
  --b-warn-ink: #FFB4C0;
  --b-radius: 20px;
  --b-pill: 999px;
  --b-tap: 48px;
  --b-gutter: 16px;
  --b-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--b-bg); color: var(--b-ink); font-family: var(--b-font); font-weight: 300; -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; align-items: center; padding: max(24px, env(safe-area-inset-top)) var(--b-gutter) 32px; }
.b-top { width: 100%; max-width: 480px; min-height: var(--b-tap); display: flex; align-items: center; }
.b-brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--b-tap); color: var(--b-ink); font-size: 20px; text-decoration: none; }
.b-brand__mark { width: 32px; height: 32px; flex: none; object-fit: contain; }
.b-shell { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 20px; margin-top: 6vh; }
.b-note { margin: 0; color: var(--b-muted); font-size: 16px; line-height: 1.5; }
.b-title { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 300; }
.b-text { margin: 0; color: var(--b-muted); font-size: 16px; line-height: 1.55; }
.b-text[data-tone="error"] { color: var(--b-warn-ink); }
.b-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 16px; min-height: 168px; padding: 26px 24px; border-radius: var(--b-radius);
  background: linear-gradient(135deg, var(--b-surface), var(--b-surface-2)); border: 1px solid var(--b-line);
}
.b-card__text { min-width: min-content; }
.b-orb { position: absolute; right: -54px; bottom: -66px; width: 150px; height: 150px; isolation: isolate; }
.b-orb::before { content: ""; position: absolute; inset: -10%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, var(--b-glow) 0, transparent 68%); animation: b-orb-glow 5.2s ease-in-out infinite; }
.b-orb__img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: var(--b-orb-soft); filter: saturate(.7) contrast(.85); animation: b-orb-breathe 5.2s ease-in-out infinite; }
.b-card__avatar { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 2px solid var(--b-line); background: linear-gradient(135deg, var(--b-blue), var(--b-violet)); color: var(--b-on-accent); font-size: 30px; font-weight: 300; }
.b-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.b-card__label { margin: 0 0 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--b-muted); }
.b-card__name { display: flex; align-items: baseline; gap: 0; margin: 0; font-size: clamp(26px, 8vw, 34px); line-height: 1.2; font-weight: 300; white-space: nowrap; }
.b-card--long .b-card__name { font-size: 24px; white-space: normal; word-break: break-all; }
.x-dotmark { display: inline-flex; align-items: center; white-space: nowrap; vertical-align: -0.13em; }
.x-dotmark__period { color: var(--b-blue); }
.x-dotmark__symbol { display: inline-block; width: 0.94em; height: 0.94em; flex: none; object-fit: contain; vertical-align: middle; }
.b-card__state { margin: 14px 0 0; font-size: 14px; color: var(--b-ok-ink); }
@keyframes b-orb-breathe { 0%, 100% { transform: scale(0.96); } 50% { transform: scale(1.04); } }
@keyframes b-orb-glow { 0%, 100% { opacity: .3; transform: scale(0.94); } 50% { opacity: .55; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .b-orb::before, .b-orb__img { animation: none; } }
.b-actions { display: flex; flex-direction: column; gap: 12px; }
.b-btn {
  display: flex; align-items: center; justify-content: center; min-height: var(--b-tap); padding: 0 24px; border-radius: var(--b-pill);
  border: 1px solid var(--b-line); background: transparent; color: var(--b-ink); font: inherit; font-size: 16px; text-decoration: none; cursor: pointer;
}
.b-btn--main { border-color: transparent; background: linear-gradient(135deg, var(--b-blue), var(--b-violet)); color: var(--b-on-accent); }
.b-btn[disabled] { opacity: .6; cursor: default; }
.b-debug { margin: 0; padding: 12px; border: 1px dashed var(--b-line); border-radius: 12px; color: var(--b-muted); font-size: 12px; white-space: pre-wrap; word-break: break-all; }
@media (hover: hover) { .b-btn:hover { border-color: var(--b-blue); } }
