/* ==========================================================================
   components.css — reusable visual components
   (glass cards, glows, buttons, cursor glow, particles, timeline, pricing,
    inputs, navbar state, hero canvas, mobile off-canvas drawer)
   Consumes tokens from css/tokens.css.
   ========================================================================== */

/* --- Grid background ---------------------------------------------------- */

.grid-bg {
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- Glow effects ------------------------------------------------------- */

.glow-blue {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.15), 0 0 60px rgba(0, 212, 255, 0.05);
}

.glow-purple {
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.15), 0 0 60px rgba(168, 85, 247, 0.05);
}

.glow-border {
  border: 1px solid rgba(0, 212, 255, 0.15);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.glow-border:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1), inset 0 0 30px rgba(0, 212, 255, 0.03);
}

/* --- Glass card --------------------------------------------------------- */

.glass-card {
  background: var(--color-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  transition: all 0.4s var(--ease-smooth);
}

.glass-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

/* --- Animated gradient text --------------------------------------------- */

.gradient-text {
  background: linear-gradient(135deg, #00d4ff 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Animated counter ---------------------------------------------------- */

.counter-glow {
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.2);
}

/* --- Timeline connector -------------------------------------------------- */

.timeline-line {
  background: linear-gradient(180deg, #00d4ff 0%, #a855f7 100%);
  width: 2px;
}

/* --- Pricing ------------------------------------------------------------- */

.pricing-featured {
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.15), 0 0 80px rgba(168, 85, 247, 0.05);
}

/* --- Hero canvas ---------------------------------------------------------- */

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --- Navbar scroll state -------------------------------------------------- */

.nav-scrolled {
  background: var(--nav-bg-scrolled) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1) !important;
}

/* --- Cursor glow ----------------------------------------------------------- */

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* --- CTA shimmer ------------------------------------------------------------ */

.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s;
}

.btn-shimmer:hover::after {
  transform: rotate(45deg) translateX(100%);
}

/* --- Newsletter input glow --------------------------------------------------- */

.input-glow:focus {
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.1);
  border-color: var(--color-neon-blue);
}

/* --- Floating DOM particles --------------------------------------------------- */

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-neon-blue);
  border-radius: 50%;
  pointer-events: none;
  animation: float-particle linear infinite;
}

/* --- Mobile off-canvas drawer --------------------------------------------------- */

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(80vw, 320px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--color-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-glass);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease-smooth), visibility 0.35s;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

body.drawer-open {
  overflow: hidden;
}

/* --- Language switcher (glassmorphism) --------------------------------------- */

.lang-switcher {
  position: relative;
}

.lang-switcher__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--border-glass);
  background: rgba(13, 17, 30, 0.6);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.lang-switcher__toggle:hover,
.lang-switcher__toggle[aria-expanded="true"] {
  color: var(--color-text-primary);
  border-color: var(--border-glass-hover);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.12);
}

.lang-switcher__caret {
  transition: transform 0.3s var(--ease-smooth);
}

.lang-switcher__toggle[aria-expanded="true"] .lang-switcher__caret {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 70;
  min-width: 13rem;
  max-height: min(60vh, 24rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: rgba(13, 17, 30, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 212, 255, 0.08);
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  transition: opacity 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth), visibility 0.25s;
}

.lang-switcher.open .lang-switcher__menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.65rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switcher__option:hover,
.lang-switcher__option:focus-visible {
  background: rgba(0, 212, 255, 0.08);
  color: var(--color-text-primary);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.25);
}

.lang-switcher__option[aria-selected="true"] {
  color: var(--color-neon-blue);
}

.lang-switcher__option-code {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

/* Drawer variant: full-width toggle, menu opens upwards and stays inline. */
.lang-switcher--drawer .lang-switcher__toggle {
  width: 100%;
  justify-content: space-between;
}

.lang-switcher--drawer .lang-switcher__menu {
  top: auto;
  bottom: calc(100% + 0.6rem);
  right: 0;
  left: 0;
  min-width: 0;
  max-height: min(45vh, 18rem);
}

/* --- Contact FAB (floating action button + speed dial) ------------------------ */

.contact-fab {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: opacity 0.3s var(--ease-smooth), visibility 0.3s var(--ease-smooth);
}

/* The open mobile drawer owns the viewport: suppress the FAB entirely. */
body.drawer-open .contact-fab {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Speed-dial column anchored above the trigger. */
.contact-fab__menu {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Main trigger: signature glassmorphism with a top-edge shimmer highlight. */
.contact-fab__trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border-glass);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 45%),
    var(--color-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--color-neon-blue);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.15);
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.contact-fab__trigger:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.contact-fab__trigger:focus-visible {
  outline: none;
  border-color: var(--border-glass-hover);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.45), 0 0 30px rgba(0, 212, 255, 0.3);
}

/* Icon swap: headset when idle, X when the dial is open. */
.contact-fab__icon-close {
  display: none;
}

.contact-fab.open .contact-fab__icon-close {
  display: block;
}

.contact-fab.open .contact-fab__icon-open {
  display: none;
}

/* Speed-dial actions: glass pills with the label beside the icon. */
.contact-fab__action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border-glass);
  background: var(--color-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--color-text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.contact-fab__action:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.contact-fab__action:focus-visible {
  outline: none;
  border-color: var(--border-glass-hover);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.45), 0 0 18px rgba(0, 212, 255, 0.2);
}

.contact-fab__badge {
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(236, 72, 153, 0.3);
  background: rgba(236, 72, 153, 0.1);
  color: var(--color-neon-pink);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Voice AI demo modal (Phase 3 WebRTC) --------------------------------------
   Overlay at z-[90] (above navbar 50, drawer 60, FAB 80). Glass tokens from
   tokens.css; motion (fade/scale entrance, agent glow pulse) lives in
   animations.css. js/voice-demo.js drives [data-voice-*] hooks. */

.voice-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  visibility: hidden;
  pointer-events: none;
}

.voice-modal.open {
  visibility: visible;
  pointer-events: auto;
}

body.voice-open {
  overflow: hidden;
}

.voice-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 15, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.voice-modal__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 27rem);
  max-height: min(90vh, 42rem);
  overflow-y: auto;
  background: var(--color-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 1rem; /* rounded-2xl */
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 48px rgba(0, 212, 255, 0.08);
}

/* Header */

.voice-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
}

.voice-modal__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.voice-modal__title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.voice-modal__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid var(--border-glass);
  background: rgba(13, 17, 30, 0.6);
  color: var(--color-text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.voice-modal__status::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: var(--color-neon-blue);
  transition: background 0.3s ease;
}

.voice-modal__card[data-state="connected"] .voice-modal__status {
  color: var(--color-neon-cyan);
  border-color: rgba(34, 211, 238, 0.3);
}

.voice-modal__card[data-state="connected"] .voice-modal__status::before {
  background: var(--color-neon-cyan);
}

.voice-modal__card[data-state="error"] .voice-modal__status {
  color: var(--color-neon-pink);
  border-color: rgba(236, 72, 153, 0.3);
}

.voice-modal__card[data-state="error"] .voice-modal__status::before {
  background: var(--color-neon-pink);
}

.voice-modal__card[data-state="ended"] .voice-modal__status {
  opacity: 0.7;
}

.voice-modal__card[data-state="ended"] .voice-modal__status::before {
  background: var(--color-text-muted);
}

.voice-modal__header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.voice-modal__timer {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--color-neon-blue);
}

.voice-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.voice-modal__close:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.voice-modal__close:focus-visible {
  outline: none;
  border-color: var(--border-glass-hover);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.45);
}

/* Body */

.voice-modal__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
}

.voice-modal__ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  border: 2px solid rgba(168, 85, 247, 0.35);
  background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.18), rgba(0, 212, 255, 0.05));
  transition: border-color 0.3s ease;
}

.voice-modal__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--color-neon-blue), var(--color-neon-purple));
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Dual-waveform visualizer (device-pixel-ratio sizing handled in voice-demo.js) */

.voice-modal__viz {
  width: 100%;
}

.voice-modal__viz-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.voice-modal__viz-label {
  padding: 0.12rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-modal__viz-label--agent {
  color: var(--color-neon-purple);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.voice-modal__viz-label--you {
  color: var(--color-neon-blue);
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.voice-modal__canvas {
  display: block;
  width: 100%;
  height: 7.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-glass);
  background: rgba(7, 8, 15, 0.55);
}

.voice-modal__guidance {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.voice-modal__mic-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px dashed rgba(0, 212, 255, 0.35);
  color: var(--color-neon-blue);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

/* Microphone-denied banner */

.voice-modal__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(236, 72, 153, 0.35);
  background: rgba(236, 72, 153, 0.07);
  text-align: center;
}

.voice-modal__error-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-neon-pink);
}

.voice-modal__error-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.voice-modal__fallback {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.voice-modal__channels {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.voice-modal__channel {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid var(--border-glass);
  background: var(--color-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--color-text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.voice-modal__channel:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.voice-modal__channel:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.45);
}

/* Footer controls */

.voice-modal__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem 1.35rem;
  border-top: 1px solid var(--border-glass);
}

.voice-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.voice-modal__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.voice-modal__btn--mute {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border-glass);
  background: rgba(13, 17, 30, 0.6);
  color: var(--color-text-primary);
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), color 0.3s ease;
}

.voice-modal__btn--mute:hover:not(:disabled) {
  border-color: var(--border-glass-hover);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.15);
}

.voice-modal__btn--mute:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.45);
}

.voice-modal__btn--mute .voice-modal__icon-muted {
  display: none;
}

.voice-modal__btn--mute.is-muted .voice-modal__icon-muted {
  display: block;
}

.voice-modal__btn--mute.is-muted .voice-modal__icon-unmuted {
  display: none;
}

.voice-modal__btn--mute.is-muted {
  color: var(--color-neon-pink);
  border-color: rgba(236, 72, 153, 0.4);
}

.voice-modal__btn--end {
  padding: 0.7rem 1.6rem;
  border: 1px solid rgba(236, 72, 153, 0.45);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.9), rgba(168, 85, 247, 0.9));
  color: #fff;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25);
  transition: box-shadow 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.voice-modal__btn--end:hover {
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
  transform: translateY(-1px);
}

.voice-modal__btn--end:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.5);
}

/* Small screens: tighten the overlay so the card always fits the viewport */

@media (max-width: 480px) {
  .voice-modal {
    padding: 0.75rem;
  }

  .voice-modal__canvas {
    height: 6rem;
  }

  .voice-modal__ring {
    width: 4.5rem;
    height: 4.5rem;
  }

  .voice-modal__avatar {
    width: 3.25rem;
    height: 3.25rem;
  }
}

/* --- RTL (bidirectional) overrides -------------------------------------------- */

[dir="rtl"] .lang-switcher__menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .mobile-drawer {
  right: auto;
  left: 0;
  border-left: 0;
  border-right: 1px solid var(--border-glass);
  transform: translateX(-100%);
}

[dir="rtl"] .mobile-drawer.open {
  transform: translateX(0);
}

[dir="rtl"] .process-line {
  left: auto;
  right: 2rem;
}

/* Mirror the FAB to the bottom-left corner and flip the dial/tooltip side. */
[dir="rtl"] .contact-fab {
  right: auto;
  left: 1.5rem;
  align-items: flex-start;
}

[dir="rtl"] .contact-fab__menu {
  right: auto;
  left: 0;
  align-items: flex-start;
}

[dir="rtl"] .contact-fab__item {
  transform-origin: 0% 100%;
}

/* Voice modal: flex rows and logical properties mirror automatically under
   dir="rtl"; the explicit overrides below pin the pieces that must not
   mirror — the countdown timer stays on a stable LTR digit axis, and the
   header action cluster keeps close-to-edge placement. */
[dir="rtl"] .voice-modal__timer {
  direction: ltr;
  unicode-bidi: isolate;
}

[dir="rtl"] .voice-modal__heading {
  align-items: flex-end;
}

[dir="rtl"] .voice-modal__viz-legend {
  flex-direction: row-reverse;
}
