/* ECHIVO /oradea — assistant.css · the "Întreabă" lamp (FAB) + city panel, and the shared Ask message styles (OWNER: W4).
   Prefixes: .oxa- (assistant + shared messages), [data-ox-assistant] root. finish.css (FX) adds the lamp halo, the dots'
   bloom, sentence illumination and the pending dots; this file never uses ::before/::after on the FAB for that reason.
   Motion (FX §2 "Unfold"): open 420 ms spring from the lamp's corner, close 240 ms ease-out; transform/opacity only;
   nothing that moves carries backdrop-filter. Reduced motion: 150 ms fade. */

[data-ox-assistant] {
  --oxa-gap: clamp(16px, 2.4vw, 28px);
  --oxa-fab: 56px;
  --oxa-ink: rgba(11, 16, 32, .97);
  --oxa-gold-rgb: 245, 200, 130;
  position: fixed; right: var(--oxa-gap); bottom: calc(var(--oxa-gap) + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 0; height: 0; /* the root takes no space; children are anchored to its corner */
}
[data-ox-assistant]:not(.is-ready) { display: none; }

/* ---------- shared bits ---------- */
.oxa-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ox-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.oxa-dots3 { display: inline-flex; gap: 7px; align-items: center; }
.oxa-dots3 i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.oxa-dots3 i.is-off { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(var(--oxa-gold-rgb), .35); }

/* ---------- the lamp ---------- */
.oxa-fab { /* position is restated below at higher specificity: finish.css sets .ox [data-ox-assistant-open] { position: relative } */
  position: absolute; right: 0; bottom: 0;
  display: inline-flex; align-items: center; gap: 10px;
  height: var(--oxa-fab); min-width: var(--oxa-fab); padding: 0 20px 0 6px;
  border: 1px solid rgba(var(--oxa-gold-rgb), .28); border-radius: 999px;
  background: rgba(20, 29, 51, .78); color: var(--text);
  font: 700 .95rem/1 var(--font); letter-spacing: .02em; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 14px 40px -18px rgba(0, 0, 0, .8);
  transition: transform .42s var(--ease-spring), opacity .3s var(--ease-out), border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
html:not(.lp) .oxa-fab { -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.oxa-fab:hover { border-color: rgba(var(--oxa-gold-rgb), .55); }
.oxa-fab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.oxa-fab__core { /* the lamp's warm core: a static radial, never animated */
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 236, 200, .95) 0, rgba(var(--oxa-gold-rgb), .85) 26%, rgba(var(--oxa-gold-rgb), .22) 58%, rgba(var(--oxa-gold-rgb), 0) 72%);
}
.oxa-fab__ico { position: absolute; left: 6px; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; color: #1a1206; pointer-events: none; }
.oxa-fab__i { grid-area: 1 / 1; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: opacity .24s var(--ease-out), transform .42s var(--ease-spring); }
.oxa-fab__i--off { opacity: 0; transform: rotate(-90deg) scale(.6); }
.oxa-fab__label { white-space: nowrap; }
/* open: the lamp becomes the close button */
.is-open > .oxa-fab { padding-right: 6px; border-color: rgba(var(--oxa-gold-rgb), .5); }
.is-open > .oxa-fab .oxa-fab__label { display: none; }
.is-open > .oxa-fab .oxa-fab__i--on { opacity: 0; transform: rotate(90deg) scale(.6); }
.is-open > .oxa-fab .oxa-fab__i--off { opacity: 1; transform: none; }
/* tucked while the page's own Ask surface is on screen */
.is-tucked:not(.is-open) > .oxa-fab { opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; }

[data-ox-assistant] > .oxa-fab[data-ox-assistant-open] { position: absolute; right: 0; bottom: 0; }

/* ---------- the panel ---------- */
.oxa-panel {
  position: absolute; right: 0; bottom: calc(var(--oxa-fab) + 14px);
  width: min(408px, calc(100vw - 2 * var(--oxa-gap)));
  max-height: min(640px, calc(100vh - var(--oxa-fab) - 3 * var(--oxa-gap) - 72px));
  max-height: min(640px, calc(100dvh - var(--oxa-fab) - 3 * var(--oxa-gap) - 72px));
  display: flex; flex-direction: column;
  background: var(--oxa-ink); color: var(--text);
  border: 1px solid var(--hairline); border-radius: 28px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
  transform-origin: 100% 100%;
  opacity: 0; transform: translate3d(0, 10px, 0) scale(.92);
  transition: opacity .24s var(--ease-out), transform .24s var(--ease-out);
}
.oxa-panel[hidden] { display: none; }
.oxa-panel.is-open { opacity: 1; transform: none; transition: opacity .3s var(--ease-out), transform .42s var(--ease-spring); }
.reduced-motion .oxa-panel, .reduced-motion .oxa-panel.is-open { transform: none; transition: opacity .15s linear; }
@media (prefers-reduced-motion: reduce) { .oxa-panel, .oxa-panel.is-open { transform: none; transition: opacity .15s linear; } .oxa-fab, .oxa-fab__i { transition: none; } }

.oxa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 6px; }
.oxa-eyebrow { margin: 0 0 6px; font-size: .7rem; }
.oxa-title { margin: 0; font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: .95; letter-spacing: .015em; }
.oxa-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; margin: -4px -6px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; }
.oxa-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.oxa-x:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.oxa-x:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
@media (min-width: 761px) and (pointer: fine) { .oxa-x { display: none; } } /* desktop: the lamp is the close button */

.oxa-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 22px 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.oxa-intro { margin: 0 0 14px; color: var(--text-2); font-size: .92rem; line-height: 1.5; }
.oxa-jump { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 14px; padding: 12px 14px; border-radius: 16px;
  color: var(--text); text-decoration: none; font-size: .92rem; background: rgba(20, 29, 51, .9); border: 1px solid rgba(var(--oxa-gold-rgb), .22); }
.oxa-jump svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.oxa-jump:hover { border-color: rgba(var(--oxa-gold-rgb), .5); }
.oxa-sugg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.oxa-sugg[hidden] { display: none; }
.oxa-chip { font: 500 .88rem/1.2 var(--font); color: var(--text); padding: 10px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255, 255, 255, .14); transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out); text-align: left; }
.oxa-chip:hover { border-color: rgba(var(--oxa-gold-rgb), .5); background: rgba(var(--oxa-gold-rgb), .06); }
.oxa-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.oxa-bottom { flex: none; padding: 12px 16px 14px; border-top: 1px solid var(--hairline); }
.oxa-status { display: flex; align-items: center; gap: 10px; padding: 0 6px 10px; color: var(--text-3); font-size: .78rem; }
.oxa-field { position: relative; display: flex; align-items: center; }
.oxa-field[hidden] { display: none; }
.oxa-input { flex: 1; min-width: 0; height: 50px; padding: 0 58px 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(20, 29, 51, .9); color: var(--text); font: 500 16px/1 var(--font); /* 16px: no iOS zoom on focus */
  transition: border-color .25s var(--ease-out); }
.oxa-input::placeholder { color: var(--text-3); }
.oxa-input:focus { outline: none; border-color: rgba(var(--oxa-gold-rgb), .6); }
.oxa-input:focus-visible { box-shadow: 0 0 0 3px rgba(var(--oxa-gold-rgb), .18); }
.oxa-go { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--gold); color: #1a1206; cursor: pointer; transition: transform .2s var(--ease-out), opacity .2s; }
.oxa-go svg, .ox-ask__go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.oxa-field > .oxa-go[data-ox-ask-submit] { position: absolute; } /* beats finish.css .ox [data-ox-ask-submit] { position: relative } */
.oxa-go:active { transform: scale(.94); }
.oxa-go:disabled { opacity: .55; cursor: default; }
.oxa-go:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.oxa-foot { margin: 10px 6px 0; color: var(--text-3); font-size: .72rem; line-height: 1.45; }
.oxa-foot a { color: var(--text-2); }
.oxa-foot a:hover { color: var(--gold); }

/* ---------- messages (shared by the panel and the hub hero) ---------- */
.oxa-log { display: flex; flex-direction: column; gap: 12px; margin: 0 0 14px; }
.oxa-log[hidden] { display: none; }
.oxa-msg { max-width: 92%; font-size: .95rem; line-height: 1.55; }
.oxa-msg p { margin: 0; }
.oxa-msg p + p { margin-top: .6em; }
.oxa-msg--me { align-self: flex-end; padding: 10px 15px; border-radius: 18px 18px 6px 18px; background: var(--midnight); color: var(--text); }
.oxa-msg--ai { align-self: flex-start; }
.oxa-who { display: block; margin: 0 0 4px; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.oxa-answer { color: var(--text); }
.oxa-answer[data-covered="0"] { color: var(--text-2); }
.oxa-vlink { color: var(--gold); text-decoration: none; }
.oxa-vlink:focus-visible, .oxa-venue:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.oxa-venues { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.oxa-venues li { border-bottom: 1px solid var(--hairline); }
.oxa-venue { display: flex; align-items: center; gap: 12px; padding: 11px 2px; color: var(--text); text-decoration: none; }
.oxa-venue__name { flex: 1; min-width: 0; font-weight: 700; font-size: .9rem; letter-spacing: .02em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oxa-venue__stars { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; font-size: .88rem; }
.oxa-star { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.oxa-venue__go svg { display: block; width: 18px; height: 18px; fill: none; stroke: var(--text-3); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out), stroke .3s; }
.oxa-venue:hover .oxa-venue__go svg { stroke: var(--gold); transform: translateX(3px); }
.oxa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 0; color: var(--text-3); font-size: .75rem; }
.oxa-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--text-3); font-size: .72rem; letter-spacing: .04em; }
.oxa-wait { min-height: 24px; }
.oxa-pending { display: inline-flex; gap: 6px; align-items: center; min-height: 1.5em; }
/* fallback dots if finish.css is absent (FX styles [data-ox-ask-pending] when present) */
.oxa-pending::before, .oxa-pending::after, .oxa-pending > i { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--oxa-gold-rgb, 245, 200, 130), .8); }
.oxa-note { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: .88rem; color: var(--text-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--hairline); }
.oxa-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 4px 6px 2px; }
.oxa-cta__line { margin: 0; color: var(--text); font-size: .98rem; line-height: 1.45; }
.oxa-cta__btn { font-size: .9rem; }

/* ---------- phones: the panel becomes a sheet from the bottom edge; the lamp is icon-only ---------- */
@media (max-width: 760px) {
  [data-ox-assistant] { --oxa-gap: 16px; }
  .oxa-fab { padding: 0 6px; }
  .oxa-fab__label { display: none; }
  .oxa-panel { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: auto;
    max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); border-radius: 26px; }
  .is-open > .oxa-fab { opacity: 0; pointer-events: none; transform: scale(.8); }
  .oxa-head { padding: 18px 18px 4px; }
  .oxa-scroll { padding: 4px 18px 10px; }
  .oxa-bottom { padding: 10px 12px 12px; }
}

/* ---------- guards against page-wide rules (finish.css `.ox [data-ox-assistant-open] > *` positions children relative;
   core.css/finish.css `:focus-visible` set a small border-radius that would square the round controls) ---------- */
[data-ox-assistant] .oxa-fab[data-ox-assistant-open] > .oxa-fab__ico { position: absolute; }
[data-ox-assistant] .oxa-fab:focus-visible, [data-ox-assistant] .oxa-chip:focus-visible, [data-ox-assistant] .oxa-field .oxa-go:focus-visible { border-radius: 999px; }
[data-ox-assistant] .oxa-x:focus-visible { border-radius: 50%; }
[data-ox-assistant] .oxa-field .oxa-input:focus-visible { outline: none; border-radius: 999px; }
[data-ox-assistant] .oxa-jump:focus-visible { border-radius: 16px; }
[data-ox-assistant] .oxa-cta .oxa-cta__btn:focus-visible { border-radius: 999px; }
