/* VOYARX Live Chat widget — ink canvas, bone type, gold accent. Logical properties throughout (RTL-ready). */
.vxc { --c-bg: #0E0E10; --c-bg2: #151518; --c-bg3: #1C1C20; --c-line: rgba(242,238,230,.09); --c-line2: rgba(242,238,230,.16);
  --c-fg: #F2EEE6; --c-fg2: #CFC9BE; --c-mut: #8C877E; --c-gold: #C9A96E; --c-gold2: #E4CD9C; --c-ease: cubic-bezier(.22,1,.36,1);
  position: fixed; z-index: 90; inset-block-end: max(20px, env(safe-area-inset-bottom)); inset-inline-end: 20px;
  font-family: var(--f-ui, "Instrument Sans", system-ui, sans-serif); font-size: 15px; line-height: 1.55; color: var(--c-fg); -webkit-font-smoothing: antialiased; }
.vxc *, .vxc *::before, .vxc *::after { box-sizing: border-box; }
.vxc button { font: inherit; color: inherit; }
.vxc :focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.has-cursor .vxc-panel, .has-cursor .vxc-panel a, .has-cursor .vxc-panel button, .has-cursor .vxc-tease button { cursor: pointer; }
.has-cursor .vxc-panel { cursor: auto; }
.has-cursor .vxc-panel textarea, .has-cursor .vxc-panel input { cursor: text; }

/* ---------- launcher ---------- */
.vxc-fab { position: relative; display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(120% 120% at 30% 20%, #232326 0%, #0B0B0C 70%); color: var(--c-fg);
  box-shadow: 0 0 0 1px rgba(201,169,110,.45), 0 18px 44px -10px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .5s var(--c-ease), box-shadow .4s; }
.vxc-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 0 1px var(--c-gold), 0 22px 50px -10px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.08); }
.vxc-fab::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--c-gold); opacity: 0; animation: vxc-ring 3.2s var(--c-ease) 2s infinite; pointer-events: none; }
.vxc.is-open .vxc-fab::after { animation: none; }
@keyframes vxc-ring { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.vxc-fab-ic, .vxc-fab-x { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .35s, transform .5s var(--c-ease); }
.vxc-fab-star { position: absolute; width: 11px; height: 11px; fill: var(--c-gold); inset-block-start: 15px; inset-inline-end: 14px; }
.vxc-fab-x { opacity: 0; transform: rotate(-45deg) scale(.6); }
.vxc.is-open .vxc-fab-ic { opacity: 0; transform: rotate(45deg) scale(.6); }
.vxc.is-open .vxc-fab-x { opacity: 1; transform: none; }
.vxc-badge { position: absolute; inset-block-start: -3px; inset-inline-end: -3px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--c-gold); color: #0A0A0B;
  font-size: 11px; font-weight: 700; line-height: 21px; text-align: center; box-shadow: 0 0 0 3px #0A0A0B; animation: vxc-pop .5s var(--c-ease); }
@keyframes vxc-pop { from { transform: scale(.3); } to { transform: none; } }

/* ---------- teaser ---------- */
.vxc-tease { position: absolute; inset-block-end: 74px; inset-inline-end: 0; display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 16px; border-radius: 16px;
  background: var(--c-fg); color: #0A0A0B; box-shadow: 0 18px 40px -12px rgba(0,0,0,.55); white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--c-ease); }
[dir="rtl"] .vxc-tease { padding: 6px 16px 6px 6px; }
.vxc-tease.is-in { opacity: 1; transform: none; }
.vxc-tease::after { content: ""; position: absolute; inset-block-end: -5px; inset-inline-end: 24px; width: 10px; height: 10px; background: var(--c-fg); transform: rotate(45deg); }
.vxc-tease-t { border: 0; background: none; padding: 4px 0; font-size: 13.5px; font-weight: 500; cursor: pointer; color: #0A0A0B; }
.vxc-tease-x { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(10,10,11,.07); color: #0A0A0B; cursor: pointer; }

/* ---------- panel ---------- */
.vxc-panel { position: absolute; inset-block-end: 76px; inset-inline-end: 0; width: 392px; height: min(640px, calc(100vh - 120px)); height: min(640px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--c-bg);
  box-shadow: 0 0 0 1px var(--c-line2), 0 40px 90px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(201,169,110,.06) inset;
  opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right; transition: opacity .3s, transform .5s var(--c-ease); }
[dir="rtl"] .vxc-panel { transform-origin: bottom left; }
.vxc-panel.is-in { opacity: 1; transform: none; }
.vxc-panel[hidden] { display: none; }

.vxc-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 14px 18px; border-block-end: 1px solid var(--c-line);
  background: linear-gradient(180deg, rgba(201,169,110,.07), transparent 120%); }
[dir="rtl"] .vxc-head { padding: 16px 18px 14px 14px; }
.vxc-av { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #0A0A0B; box-shadow: 0 0 0 1px rgba(201,169,110,.5); }
.vxc-av-star { width: 15px; height: 15px; fill: var(--c-gold); }
.vxc-av-dot { position: absolute; inset-block-end: 0; inset-inline-end: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--c-gold); box-shadow: 0 0 0 2.5px var(--c-bg); }
.vxc-av-dot.on { background: #7FB79A; }
.vxc-av-dot.off { background: #6B665E; }
.vxc-htxt { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.vxc-title { font-family: var(--f-display, "Instrument Serif", serif); font-weight: 400; font-size: 21px; letter-spacing: .01em; color: var(--c-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vxc:lang(ar) .vxc-title { font-size: 17px; font-weight: 500; }
.vxc-stat { font-size: 12px; line-height: 1.3; color: var(--c-mut); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vxc-hbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--c-bg3); box-shadow: inset 0 0 0 1px var(--c-line2);
  font-size: 12.5px; font-weight: 500; color: var(--c-fg2); cursor: pointer; white-space: nowrap; transition: background .25s, color .25s; }
.vxc-hbtn:hover { background: var(--c-fg); color: #0A0A0B; }
.vxc-hbtn[hidden] { display: none; }
.vxc-x { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--c-mut); cursor: pointer; transition: background .25s, color .25s; }
.vxc-x:hover { background: var(--c-bg3); color: var(--c-fg); }

/* ---------- messages ---------- */
.vxc-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 4px; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: rgba(242,238,230,.15) transparent; }
.vxc-list:focus { outline: none; }
.vxc-msg { display: flex; flex-direction: column; max-width: 86%; margin-block-start: 10px; animation: vxc-in .45s var(--c-ease) both; }
.vxc-msg.is-grouped { margin-block-start: 2px; }
.vxc-msg.is-me { align-self: flex-end; align-items: flex-end; }
.vxc-msg.is-them { align-self: flex-start; align-items: flex-start; }
@keyframes vxc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vxc-who { display: flex; align-items: center; gap: 7px; margin: 0 2px 6px; font-size: 12px; color: var(--c-mut); }
.vxc-who b { font-weight: 600; color: var(--c-fg2); }
.vxc-who small { font-size: 11px; }
.vxc-who-star { width: 11px; height: 11px; fill: var(--c-gold); }
.vxc-ini { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c-gold); color: #0A0A0B; font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.vxc-bub { padding: 11px 15px; border-radius: 18px; background: var(--c-bg3); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-fg); overflow-wrap: anywhere; }
.vxc-msg.is-them .vxc-bub { border-start-start-radius: 6px; }
.vxc-msg.is-them.is-grouped .vxc-bub { border-start-start-radius: 18px; }
.vxc-msg.is-agent .vxc-bub { box-shadow: inset 0 0 0 1px rgba(201,169,110,.28); background: linear-gradient(180deg, rgba(201,169,110,.08), rgba(201,169,110,.03)), var(--c-bg3); }
.vxc-msg.is-me .vxc-bub { background: var(--c-fg); color: #111; box-shadow: none; border-start-end-radius: 6px; }
.vxc-msg.is-me.is-grouped .vxc-bub { border-start-end-radius: 18px; }
.vxc-msg.is-failed .vxc-bub { opacity: .55; }
.vxc-txt p { margin: 0; }
.vxc-txt p + p, .vxc-txt p + ul, .vxc-txt ul + p { margin-block-start: .6em; }
.vxc-txt ul { margin: .45em 0 0; padding: 0; list-style: none; display: grid; gap: .25em; }
.vxc-txt li { position: relative; padding-inline-start: 1.1em; }
.vxc-txt li::before { content: ""; position: absolute; inset-inline-start: .15em; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--c-gold); }
.vxc-msg.is-me .vxc-txt li::before { background: #8E7444; }
.vxc-txt strong { font-weight: 600; color: inherit; }
.vxc-txt a { color: var(--c-gold2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.vxc-msg.is-me .vxc-txt a { color: #6B5530; }
.vxc-time { margin: 4px 4px 0; font-size: 10.5px; color: var(--c-mut); opacity: 0; transition: opacity .25s; }
.vxc-msg:hover .vxc-time, .vxc-msg:last-of-type .vxc-time { opacity: .8; }
.vxc-msg.is-grouped + .vxc-msg:not(.is-grouped) .vxc-time { opacity: 0; }

.vxc-sys { align-self: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; max-width: 92%; margin: 14px 0 4px; padding: 8px 14px;
  border-radius: 14px; background: rgba(201,169,110,.08); box-shadow: inset 0 0 0 1px rgba(201,169,110,.2); font-size: 12.5px; line-height: 1.5; color: var(--c-fg2); text-align: center; animation: vxc-in .45s var(--c-ease) both; }
.vxc-sys.is-err { background: rgba(217,119,107,.1); box-shadow: inset 0 0 0 1px rgba(217,119,107,.3); }
.vxc-retry { border: 0; background: none; padding: 0; color: var(--c-gold2); font-size: 12.5px; font-weight: 600; text-decoration: underline; cursor: pointer; }

.vxc-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 2px; padding: 9px 14px 9px 16px; border-radius: 999px;
  background: var(--c-gold); color: #0A0A0B; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .25s, transform .4s var(--c-ease); animation: vxc-in .45s var(--c-ease) .1s both; }
[dir="rtl"] .vxc-cta { padding: 9px 16px 9px 14px; }
.vxc-cta:hover { background: var(--c-gold2); transform: translateY(-1px); }

.vxc-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 4px; animation: vxc-in .45s var(--c-ease) .15s both; }
.vxc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--c-line2);
  font-size: 13px; color: var(--c-fg2); cursor: pointer; text-align: start; transition: background .25s, color .25s, box-shadow .25s; }
.vxc-chip:hover { background: var(--c-fg); color: #0A0A0B; box-shadow: none; }
.vxc-chip.is-human { color: var(--c-gold2); box-shadow: inset 0 0 0 1px rgba(201,169,110,.4); }
.vxc-chip.is-human:hover { background: var(--c-gold); color: #0A0A0B; }

.vxc-typing { align-self: flex-start; display: flex; gap: 4px; margin: 10px 0 2px; padding: 13px 15px; border-radius: 18px; border-start-start-radius: 6px; background: var(--c-bg3); box-shadow: inset 0 0 0 1px var(--c-line); }
.vxc-typing[hidden] { display: none; }
.vxc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-mut); animation: vxc-dot 1.2s ease-in-out infinite; }
.vxc-typing i:nth-child(2) { animation-delay: .15s; } .vxc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes vxc-dot { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- inline contact card ---------- */
.vxc-card { align-self: stretch; margin: 10px 0 4px; padding: 16px; border-radius: 18px; background: var(--c-bg2); box-shadow: inset 0 0 0 1px var(--c-line2); display: grid; gap: 8px; animation: vxc-in .45s var(--c-ease) both; }
.vxc-form-t { margin: 0 0 4px; font-size: 13.5px; color: var(--c-fg2); }
.vxc-field { width: 100%; height: 42px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-line2); color: var(--c-fg); font: inherit; font-size: 14px; transition: box-shadow .2s; }
.vxc-field::placeholder { color: var(--c-mut); }
.vxc-field:focus { outline: none; box-shadow: inset 0 0 0 1px var(--c-gold); }
[dir="rtl"] .vxc-field[dir="ltr"] { text-align: right; }
.vxc-form-err { margin: 0; font-size: 12.5px; color: #E59A8F; }
.vxc-btn { height: 42px; margin-top: 2px; border: 0; border-radius: 999px; background: var(--c-gold); color: #0A0A0B; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .25s; }
.vxc-btn:hover { background: var(--c-gold2); }
.vxc-btn:disabled { opacity: .6; cursor: default; }

/* ---------- composer ---------- */
.vxc-foot { padding: 10px 12px 10px; border-block-start: 1px solid var(--c-line); background: var(--c-bg); }
.vxc-comp { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 22px; background: var(--c-bg2); box-shadow: inset 0 0 0 1px var(--c-line2); transition: box-shadow .25s; }
[dir="rtl"] .vxc-comp { padding: 6px 14px 6px 6px; }
.vxc-comp:focus-within { box-shadow: inset 0 0 0 1px rgba(201,169,110,.6); }
.vxc-in { flex: 1; min-width: 0; min-height: 36px; max-height: 132px; padding: 8px 0; border: 0; background: none; color: var(--c-fg); font: inherit; font-size: 15px; line-height: 1.45; resize: none; }
.vxc-in::placeholder { color: var(--c-mut); }
.vxc-in:focus { outline: none; }
.vxc-send { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--c-gold); color: #0A0A0B; cursor: pointer; transition: background .25s, transform .3s var(--c-ease); }
.vxc-send:hover { background: var(--c-gold2); transform: scale(1.05); }
.vxc-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 6px 0; min-height: 22px; }
.vxc-note { font-size: 10.5px; color: var(--c-mut); line-height: 1.35; }
.vxc-end { flex: none; border: 0; background: none; padding: 0; font-size: 11.5px; color: var(--c-mut); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vxc-end:hover { color: var(--c-fg); }
.vxc-end[hidden] { display: none; }

/* ---------- coexist with the WhatsApp button & the hero AI Creative Director ---------- */
.has-vxc .wa-float { bottom: calc(max(20px, env(safe-area-inset-bottom)) + 74px); width: 50px; height: 50px; inset-inline-end: 25px; }
.has-vxc .wa-float svg { width: 22px; height: 22px; }

/* ---------- small screens: full-screen sheet ---------- */
@media (max-width: 600px) {
  .vxc { inset-block-end: max(16px, env(safe-area-inset-bottom)); inset-inline-end: 16px; }
  .vxc-fab { width: 56px; height: 56px; }
  .vxc.is-open .vxc-fab { opacity: 0; pointer-events: none; }
  .vxc-panel { position: fixed; inset: 0; width: auto; height: 100%; height: 100dvh; border-radius: 0; transform: translateY(24px); }
  .vxc-head { padding-block-start: max(14px, env(safe-area-inset-top)); }
  .vxc-foot { padding-block-end: max(10px, env(safe-area-inset-bottom)); }
  .vxc-in { font-size: 16px; }
  .vxc-msg { max-width: 90%; }
  .vxc-hbtn span { display: none; }
  .vxc-hbtn { width: 34px; padding: 0; justify-content: center; }
  html.vxc-lock, html.vxc-lock body { overflow: hidden; }
  .has-vxc .wa-float { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 68px); inset-inline-end: 19px; width: 46px; height: 46px; }
  html.cd-live .vxc:not(.is-open) { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vxc *, .vxc *::before, .vxc *::after { animation: none !important; transition-duration: .01ms !important; }
}
@media print { .vxc { display: none; } }
