/* ═══════════════════════════════════════════════════════════════
   bilateral-glass.css — "LISTENING…" overlay for the Translate
   panel on prod kiosk. Ported from demo.tinkytown.com so the
   sales-demo aesthetic and the real-customer kiosk look the same.
   Luke 2026-05-04: "I want it all impressive looking."

   Scope: only the bilateral Translate panel. Does NOT replace the
   existing kiosk-level #listenOverlay (used by Talk-to-Someone in
   the main kiosk). Distinct ID prefix `mt` keeps the surfaces
   separate.

   Uses CSS-only animations + pure DOM — no extra JS deps.
   ═══════════════════════════════════════════════════════════════ */

/* Overlay surface — full-screen dark glass blur over the bilateral
   panel. z-index 1000 sits above all the panel chrome but below
   any system toast. */
.mt-listen-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 40px;
  background: radial-gradient(circle at 50% 30%, rgba(20,18,32,0.88), rgba(8,6,16,0.95));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.mt-listen-overlay.active {
  display: flex;
  animation: mtListenIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes mtListenIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Glass card */
.mt-listen-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 28px 24px 22px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(36,34,46,0.72), rgba(22,20,30,0.82));
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.3),
    0 30px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.mt-listen-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 28px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 40%);
}

/* Language flow chip */
.mt-listen-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}
.mt-listen-flow-them { color: #8DD3F2; white-space: nowrap; }
.mt-listen-flow-me   { color: #FFC56F; white-space: nowrap; }
.mt-listen-flow-arrow { color: rgba(255,255,255,0.35); font-weight: 400; font-size: 0.95rem; }

/* Breathing orb */
.mt-listen-orb {
  position: relative;
  width: 140px; height: 140px;
  margin: 4px 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mt-listen-orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(141, 211, 242, 0.35);
  animation: mtOrbRing 2.4s ease-out infinite;
}
.mt-listen-orb-ring-2 { animation-delay: 0.8s; }
.mt-listen-orb-ring-3 { animation-delay: 1.6s; }
@keyframes mtOrbRing {
  0%   { transform: scale(0.7); opacity: 0.9; border-color: rgba(141, 211, 242, 0.55); }
  100% { transform: scale(1.35); opacity: 0; border-color: rgba(141, 211, 242, 0.0); }
}
.mt-listen-orb-core {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #a6e3ff 0%, #4A90D9 55%, #2857a8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 28px rgba(74, 144, 217, 0.55),
    inset 0 2px 0 rgba(255,255,255,0.45),
    inset 0 -4px 10px rgba(0,0,0,0.25);
  animation: mtOrbBreathe 2s ease-in-out infinite;
}
@keyframes mtOrbBreathe {
  0%, 100% { transform: scale(1);    box-shadow: 0 10px 28px rgba(74,144,217,0.55), inset 0 2px 0 rgba(255,255,255,0.45), inset 0 -4px 10px rgba(0,0,0,0.25); }
  50%      { transform: scale(1.06); box-shadow: 0 14px 38px rgba(74,144,217,0.75), inset 0 2px 0 rgba(255,255,255,0.6),  inset 0 -4px 12px rgba(0,0,0,0.28); }
}
.mt-listen-orb-mic {
  width: 32px; height: 32px;
  fill: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}

/* Status label */
.mt-listen-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.mt-listen-dots span {
  display: inline-block;
  opacity: 0.2;
  animation: mtListenDots 1.4s infinite;
}
.mt-listen-dots span:nth-child(2) { animation-delay: 0.2s; }
.mt-listen-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes mtListenDots { 0%, 60%, 100% { opacity: 0.2; } 30% { opacity: 1; } }

/* Transcript area */
.mt-listen-transcripts {
  width: 100%;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}
.mt-listen-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  animation: mtRowIn 0.3s ease;
}
@keyframes mtRowIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.mt-listen-row-them { border-left: 2px solid #8DD3F2; }
.mt-listen-row-me   { border-left: 2px solid #FFC56F; }
.mt-listen-row-label {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
}
.mt-listen-row-text {
  font-size: 1.02rem;
  line-height: 1.35;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}
.mt-listen-empty {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.3);
  font-style: italic;
  text-align: center;
  padding: 18px 0;
}

/* Action buttons */
.mt-listen-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  flex-wrap: wrap;
}
.mt-listen-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px 11px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #43A047, #2E7D32);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(67,160,71,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.12s ease;
}
.mt-listen-done:hover  {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(67,160,71,0.55), inset 0 1px 0 rgba(255,255,255,0.3);
  filter: brightness(1.05);
}
.mt-listen-done:active {
  transform: translateY(1px);
  filter: brightness(0.92);
  box-shadow: 0 4px 12px rgba(67,160,71,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.mt-listen-done svg {
  width: 18px; height: 18px; fill: #fff;
}
.mt-listen-skip {
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.55);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mt-listen-skip:hover  {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
}
.mt-listen-skip:active { transform: translateY(1px); }
