/* «اجتماع نوفا» — hero launcher card + the meeting room. Refs: R080 (glass mark + dust), R005 (light-dot captions),
   R040 (nodes lighting up along wires). Tokens from main.css (--violet, --cyan, --grad, --line, --ease). */

/* ---------- the room ---------- */
html.meet-open, html.meet-open body { overflow: hidden; }
.meet { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr; background: rgba(6, 7, 14, .9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; transition: opacity .4s var(--ease); color: var(--white); }
.meet.is-open { opacity: 1; }
/* display:grid above beat [hidden]: after the first close an invisible full-screen layer (z 200, 20px backdrop blur)
   stayed over the page — every button under it dead, and a full-screen blur repainting on phones. */
.meet[hidden] { display: none; }
.meet__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background-image: linear-gradient(rgba(150, 162, 189, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 162, 189, .05) 1px, transparent 1px); background-size: 48px 48px; }
.meet__bg i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .35; }
.meet__bg i:first-child { background: #3F2BFF; top: -30vmax; inset-inline-start: -20vmax; }
.meet__bg i:last-child { background: #007A99; bottom: -35vmax; inset-inline-end: -25vmax; }

.meet__top { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.meet__live { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: #8FF0FF; padding: 3px 10px; border-radius: 999px; background: rgba(47, 227, 138, .08); box-shadow: inset 0 0 0 1px rgba(47, 227, 138, .3); }
.meet__title { font-size: 1rem; font-weight: 600; }
.meet__clock { color: var(--gray); font-size: .85rem; direction: ltr; }
.meet__steps { display: flex; gap: 6px; margin: 0 auto; padding: 0; list-style: none; }
.meet__steps li { width: 26px; height: 4px; border-radius: 4px; background: rgba(150, 162, 189, .2); transition: background .4s; }
.meet__steps li.is-now { background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.meet__steps li.is-done { background: var(--cyan); }
.meet__icon { width: 38px; height: 38px; border: 0; border-radius: 12px; background: rgba(245, 247, 255, .05); color: var(--white); display: grid; place-items: center; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.meet__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meet__icon:hover, .meet__icon:focus-visible { background: rgba(245, 247, 255, .1); }
.meet__icon:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.meet__voice[aria-pressed="true"] { color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(0, 213, 255, .5); }
.meet__end:hover { background: rgba(229, 72, 77, .25); }

.meet__body { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr); gap: clamp(16px, 2vw, 28px); padding: clamp(16px, 2.4vw, 32px); min-height: 0; overflow: auto; }
.meet__stage { display: grid; grid-template-columns: 1fr 220px; grid-template-rows: 1fr auto auto; gap: 14px; min-height: 0; }
.meet__tile { position: relative; border-radius: 22px; background: linear-gradient(170deg, rgba(20, 24, 46, .7), rgba(11, 13, 24, .6)); box-shadow: inset 0 0 0 1px var(--line); }
.meet__tile--nova { grid-row: 1; grid-column: 1 / -1; display: grid; place-items: center; align-content: center; gap: 18px; padding: 28px 24px 26px; min-height: 360px; }
.meet__tile--you { grid-row: 1; grid-column: 2; align-self: end; margin: 0 12px 12px; padding: 12px 14px; min-height: 84px; background: rgba(9, 11, 19, .82); opacity: .55; transition: opacity .4s; }
html[dir="rtl"] .meet__tile--you { grid-column: 2; }
.meet__tile--you.is-on { opacity: 1; box-shadow: inset 0 0 0 1px rgba(108, 99, 255, .45); }
.meet__name { position: absolute; top: 12px; inset-inline-start: 16px; font-size: .75rem; color: var(--gray); display: flex; gap: 6px; align-items: center; }
.meet__name span { font: 600 10px var(--en); padding: 1px 6px; border-radius: 6px; background: rgba(0, 213, 255, .14); color: var(--cyan); }
.meet__tile--you .meet__name { position: static; margin-bottom: 4px; }
.meet__heard { font-size: .88rem; color: #DCE1F2; line-height: 1.55; max-height: 4.6em; overflow: hidden; }

.meet__orb { --amp: 0; position: relative; width: clamp(170px, 20vw, 230px); aspect-ratio: 1; display: grid; place-items: center; }
.meet__dust { position: absolute; inset: -30%; width: 160%; height: 160%; }
.meet__orb img { position: relative; width: 38%; height: auto; transform: scale(calc(1 + var(--amp) * .08)); filter: drop-shadow(0 0 calc(14px + var(--amp) * 26px) rgba(0, 213, 255, .75)); transition: filter .2s; }
.meet__orb::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 50% 42%, rgba(0, 213, 255, .26), rgba(108, 99, 255, .14) 55%, transparent 72%); transform: scale(calc(1 + var(--amp) * .18)); }
.meet__ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(0, 213, 255, .22); border-top-color: rgba(0, 213, 255, .95); transform: scale(calc(1 + var(--amp) * .1)); animation: core-spin 7s linear infinite; }
.meet__ring--b { inset: -2%; border-color: rgba(108, 99, 255, .16); border-inline-end-color: rgba(108, 99, 255, .85); animation-duration: 11s; animation-direction: reverse; }
.meet__ring--c { inset: 16%; border-color: transparent; border-bottom-color: rgba(199, 155, 255, .7); animation-duration: 4.5s; }
.meet__orb[data-state="thinking"] .meet__ring { animation-duration: 1.6s; }
.meet__orb[data-state="listening"] .meet__ring--b { border-color: rgba(47, 227, 138, .2); border-inline-end-color: rgba(47, 227, 138, .9); }

.meet__say { max-width: 34ch; min-height: 3.4em; text-align: center; font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.6; font-weight: 500; }
.meet__dot { display: inline-block; width: 9px; height: 9px; margin-inline-start: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px 4px rgba(0, 213, 255, .6); vertical-align: middle; opacity: 0; transition: opacity .2s; }
.meet.is-saying .meet__dot { opacity: 1; }

.meet [hidden] { display: none !important; }
.meet__answer { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.meet__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.meet__chip { padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(245, 247, 255, .05); color: var(--white); font: inherit; font-size: .9rem; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(150, 162, 189, .25); transition: background .25s, box-shadow .25s, transform .25s; animation: meet-in .45s var(--ease) both; }
.meet__chip:nth-child(2) { animation-delay: .05s; } .meet__chip:nth-child(3) { animation-delay: .1s; } .meet__chip:nth-child(4) { animation-delay: .15s; } .meet__chip:nth-child(5) { animation-delay: .2s; } .meet__chip:nth-child(6) { animation-delay: .25s; }
.meet__chip:hover, .meet__chip:focus-visible { background: rgba(108, 99, 255, .2); box-shadow: inset 0 0 0 1px rgba(108, 99, 255, .7); transform: translateY(-2px); }
.meet__chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.meet__form { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 16px; background: rgba(9, 11, 19, .7); box-shadow: inset 0 0 0 1px var(--line); }
.meet__form:focus-within { box-shadow: inset 0 0 0 1px rgba(0, 213, 255, .5); }
.meet__input { flex: 1; min-width: 0; height: 42px; padding: 0 10px; border: 0; background: none; color: var(--white); font: inherit; outline: none; }
.meet__input::placeholder { color: rgba(150, 162, 189, .8); }
.meet__mic, .meet__send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: var(--white); }
.meet__mic { background: rgba(245, 247, 255, .06); }
.meet__mic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.meet__mic.is-on { background: rgba(47, 227, 138, .2); color: #6BFFB5; box-shadow: 0 0 0 0 rgba(47, 227, 138, .5); animation: meet-ping 1.4s infinite; }
.meet__send { background: linear-gradient(120deg, #00B8E6, #5B45FF); }
.meet__send .ic { width: 18px; height: 18px; }
html[dir="rtl"] .meet__send .ic { transform: scaleX(-1); }
.meet__mic:focus-visible, .meet__send:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.meet__ai { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--gray); }
.meet__ai .ic { width: 14px; height: 14px; color: var(--cyan); }

.meet__notes { display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: 20px; border-radius: 22px; background: rgba(245, 247, 255, .035); box-shadow: inset 0 0 0 1px var(--line); min-height: 0; overflow: auto; overscroll-behavior: contain; }
.meet.is-closing .meet__map svg { max-height: 170px; }
.meet__notes-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.meet__notes-h b { font-size: 1.05rem; }
.meet__notes-h span { font-size: .72rem; color: var(--cyan); }
.meet__minutes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.meet__minutes li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(9, 11, 19, .55); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); font-size: .9rem; line-height: 1.6; }
.meet__minutes li.is-in { opacity: 1; transform: none; }
.meet__minutes:empty::before { content: attr(data-empty); display: block; padding: 14px; border-radius: 12px; border: 1px dashed rgba(150, 162, 189, .25); color: var(--gray); font-size: .85rem; line-height: 1.7; }
.meet__map:has(svg:empty) { display: none; }
.meet__minutes li b { font-size: .75rem; color: var(--gray); font-weight: 600; padding-top: 2px; }
.meet__minutes li.is-sys { background: rgba(47, 227, 138, .06); box-shadow: inset 0 0 0 1px rgba(47, 227, 138, .25); color: #9DFFCB; font-size: .82rem; }
.meet__minutes li.is-sys b { color: #6BFFB5; }
.meet__minutes li.is-key { background: linear-gradient(120deg, rgba(0, 213, 255, .1), rgba(108, 77, 255, .16)); box-shadow: inset 0 0 0 1px rgba(0, 213, 255, .4); }
.meet__minutes li.is-key b { color: var(--cyan); }

.meet__map { align-self: end; }
.meet__map-h { font-size: .72rem; color: var(--gray); margin-bottom: 6px; }
.meet__map svg { width: 100%; height: auto; overflow: visible; }
.mm-wire { fill: none; stroke: rgba(108, 99, 255, .45); stroke-width: 1.4; stroke-dasharray: 300; stroke-dashoffset: 300; animation: meet-draw 1s var(--ease) var(--d, 0s) forwards; }
.mm-wire--out { stroke: rgba(0, 213, 255, .45); }
.mm-pulse { fill: #9D96FF; filter: drop-shadow(0 0 4px #9D96FF); }
.mm-pulse--out { fill: var(--cyan); filter: drop-shadow(0 0 4px var(--cyan)); }
.mm-node, .mm-core { opacity: 0; animation: meet-in .5s var(--ease) var(--d, 0s) forwards; }
.mm-node rect { fill: rgba(13, 16, 32, .95); stroke: rgba(150, 162, 189, .3); }
.mm-node text, .mm-cap { fill: #DCE1F2; font: 500 11px var(--ar); }
html[lang="en"] .mm-node text, html[lang="en"] .mm-cap { font-family: var(--en); }
.mm-cap { fill: var(--gray); font-size: 10px; }
.mm-in rect { stroke: rgba(108, 99, 255, .55); }
.mm-out rect { stroke: rgba(0, 213, 255, .45); }
.mm-out.is-lit rect { fill: rgba(0, 213, 255, .12); stroke: var(--cyan); filter: drop-shadow(0 0 6px rgba(0, 213, 255, .5)); }
.mm-core circle { fill: rgba(13, 16, 32, .95); stroke: rgba(0, 213, 255, .7); stroke-width: 1.4; filter: drop-shadow(0 0 10px rgba(0, 213, 255, .45)); }

.meet__acts { display: grid; gap: 10px; }
.meet__acts .meet__wa { justify-content: center; width: 100%; }
.meet__acts .meet__wa .btn__tag { white-space: nowrap; }
.meet__acts-row { display: flex; flex-wrap: wrap; gap: 8px; }
.meet__lead { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: linear-gradient(150deg, rgba(0, 213, 255, .08), rgba(108, 77, 255, .14)); box-shadow: inset 0 0 0 1px rgba(0, 213, 255, .3); }
.meet__lead-h { display: grid; gap: 2px; }
.meet__lead-h b { font-size: 1rem; }
.meet__lead-h span { font-size: .82rem; color: var(--gray); }
.meet__lead-f { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meet__lead-f label { display: grid; gap: 4px; font-size: .75rem; color: var(--gray); }
.meet__lead-f input { height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: rgba(9, 11, 19, .75); color: var(--white); font: inherit; font-size: .92rem; box-shadow: inset 0 0 0 1px var(--line); outline: none; min-width: 0; }
.meet__lead-f input:focus { box-shadow: inset 0 0 0 1px rgba(0, 213, 255, .6); }
.meet__lead-f input[dir="ltr"] { text-align: left; }
.meet__consent { display: flex; gap: 8px; align-items: flex-start; font-size: .78rem; color: #C9D0E2; line-height: 1.55; cursor: pointer; }
.meet__consent a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.meet__consent input { margin-top: 3px; accent-color: var(--cyan); width: 16px; height: 16px; flex: none; }
.meet__hp { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; inset-inline-start: -9999px; }
.meet__send-lead { justify-content: center; }
.meet__send-lead[disabled] { opacity: .7; cursor: progress; }
.meet__lead-msg { font-size: .8rem; color: #FFB3B6; min-height: 0; }
.meet__lead-msg:empty { display: none; }
.meet__lead-ok { display: flex; gap: 8px; align-items: center; color: #9DFFCB; font-weight: 500; }
.meet__lead-ok .ic { width: 18px; height: 18px; }
.meet__acts .meet__wa { justify-content: center; }
@media (max-width: 420px) { .meet__lead-f { grid-template-columns: 1fr; } }

/* phones: the call on top, the minutes under it */
@media (max-width: 900px) {
  .meet { background: rgba(6, 7, 14, .985); }
  .meet__top { gap: 10px; padding: 10px 14px; }
  .meet__title, .meet__steps { display: none; }
  .meet__clock { margin-inline-start: auto; }
  .meet__body { grid-template-columns: minmax(0, 1fr); align-content: start; padding: 12px 14px 24px; overflow-x: hidden; }
  .meet__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: auto; min-height: auto; }
  .meet__tile--nova { grid-column: 1; min-height: 0; padding: 34px 16px 18px; gap: 12px; }
  .meet__tile--you { grid-row: auto; grid-column: 1; align-self: stretch; margin: 0; min-height: 0; }
  .meet__tile--you:not(.is-on) { display: none; }
  html[dir="rtl"] .meet__tile--you { grid-column: 1; }
  .meet__orb { width: 132px; }
  .meet__say { font-size: 1.02rem; min-height: 0; }
  .meet__chip { font-size: .85rem; padding: 7px 12px; }
  .meet__notes { overflow: visible; }
  .meet__minutes li { grid-template-columns: 78px 1fr; }
}

@keyframes meet-ping { 0% { box-shadow: 0 0 0 0 rgba(47, 227, 138, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(47, 227, 138, 0); } }
@keyframes meet-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes meet-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes meet-draw { to { stroke-dashoffset: 0; } }
@keyframes core-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .meet-card__orb img, .meet-card__orb i, .meet__ring, .meet__mic.is-on, .meet-card__live i, .meet__live i { animation: none; }
  .meet__chip, .mm-node, .mm-core { animation: none; opacity: 1; }
  .mm-wire { animation: none; stroke-dashoffset: 0; }
  .meet, .meet__minutes li { transition: none; }
}
