@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* VMeet AI Mode — SaaS meeting overlay */
.vmeet-ai-root {
  --ai-ink: #1a1d2e;
  --ai-muted: #6b7085;
  --ai-line: #e4e6ef;
  --ai-surface: #ffffff;
  --ai-surface-2: #f6f7fb;
  --ai-accent: #5b4ce6;
  --ai-accent-dark: #4638ca;
  --ai-danger: #d93b3b;
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

.vmeet-ai-root.is-prejoin {
  visibility: hidden;
}

.vmeet-ai-root * {
  box-sizing: border-box;
}

.vmeet-ai-toolbar-slot {
  display: flex;
  align-items: center;
  margin: 0 8px 0 2px;
  flex-shrink: 0;
  pointer-events: auto;
  z-index: 1300;
}

.vmeet-ai-toolbar-slot.is-fallback {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  margin: 0;
  z-index: 1400;
}

.vmeet-ai-toolbar-slot .vmeet-ai-fab,
.vmeet-ai-fab.is-toolbar,
.vmeet-ai-fab.is-fallback {
  box-shadow: none;
}

.vmeet-ai-toolbar-slot .vmeet-ai-fab:hover {
  transform: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.vmeet-ai-toolbar-slot .vmeet-ai-fab-inner,
.vmeet-ai-fab.is-toolbar .vmeet-ai-fab-inner,
.vmeet-ai-fab.is-fallback .vmeet-ai-fab-inner {
  padding: 7px 14px 7px 10px;
  font-size: 13px;
}

.vmeet-ai-toolbar-slot .vmeet-ai-fab-icon,
.vmeet-ai-fab.is-toolbar .vmeet-ai-fab-icon,
.vmeet-ai-fab.is-fallback .vmeet-ai-fab-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.vmeet-ai-fab {
  pointer-events: auto;
}

.vmeet-ai-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3.5px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #5b4ce6 0%, #1881f8 48%, #24c6ff 72%, #7b6ff0 100%);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(91, 76, 230, 0.28);
  transition: box-shadow 0.15s ease, filter 0.15s ease;
}

.vmeet-ai-fab:hover {
  box-shadow: 0 6px 22px rgba(91, 76, 230, 0.42);
  filter: brightness(1.05);
}

.vmeet-ai-fab:focus-visible {
  outline: 2px solid #7b6ff0;
  outline-offset: 3px;
}

.vmeet-ai-fab-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
}

.vmeet-ai-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  overflow: hidden;
}

.vmeet-ai-icon-img,
.vmeet-ai-loader-svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.vmeet-ai-fab[aria-pressed="true"] {
  background: linear-gradient(135deg, #4638ca 0%, #1881f8 48%, #24c6ff 72%, #8b7cf6 100%);
  filter: brightness(1.08);
}

.vmeet-ai-fab[aria-pressed="true"] .vmeet-ai-fab-inner {
  background: #fff;
  color: #111;
}

.vmeet-ai-mark {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.vmeet-ai-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.vmeet-ai-panel {
  position: fixed;
  right: 20px;
  bottom: 76px;
  pointer-events: auto;
  width: min(352px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--ai-line);
  background: var(--ai-surface);
  color: var(--ai-ink);
  box-shadow: 0 16px 40px rgba(26, 29, 46, 0.18);
  animation: vmeet-ai-panel-in 0.22s ease-out;
}

@keyframes vmeet-ai-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vmeet-ai-panel-glow {
  display: none;
}

.vmeet-ai-panel[hidden] {
  display: none !important;
}

.vmeet-ai-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.vmeet-ai-panel-head .vmeet-ai-mark {
  width: 22px;
  height: 22px;
}

.vmeet-ai-panel-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vmeet-ai-panel h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-transform: none;
}

.vmeet-ai-panel-tag {
  color: var(--ai-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.vmeet-ai-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 12px;
  padding: 3px;
  border-radius: 9px;
  background: var(--ai-surface-2);
  border: 1px solid var(--ai-line);
}

.vmeet-ai-modes button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--ai-muted);
  background: transparent;
  font: 600 12px/1.25 "Segoe UI", Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.vmeet-ai-modes button .mode-kicker {
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.85;
}

.vmeet-ai-modes button .mode-name {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.vmeet-ai-modes button:hover {
  color: var(--ai-ink);
}

.vmeet-ai-modes button.is-active {
  color: var(--ai-ink);
  background: var(--ai-surface);
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(26, 29, 46, 0.08);
}

.vmeet-ai-modes button.is-active .mode-kicker {
  color: var(--ai-accent);
  opacity: 1;
}

.vmeet-ai-draft-wrap {
  margin: 0 0 12px;
}

.vmeet-ai-draft-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ai-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.vmeet-ai-draft {
  min-height: 64px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--ai-line);
  background: var(--ai-surface-2);
  color: var(--ai-ink);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.vmeet-ai-status {
  position: relative;
  margin: 0 0 12px;
  padding-left: 14px;
  color: var(--ai-muted);
  font-size: 12px;
  line-height: 1.4;
}

.vmeet-ai-status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ai-accent);
}

.vmeet-ai-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(217, 59, 59, 0.35);
  background: #fff5f5;
  color: #9b1c1c;
  font-size: 12px;
  line-height: 1.45;
}

.vmeet-ai-error[hidden] {
  display: none !important;
}

.vmeet-ai-actions {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 6px;
}

.vmeet-ai-actions button {
  border: 0;
  border-radius: 8px;
  padding: 9px 8px;
  font: 600 12px/1 "Segoe UI", Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.vmeet-ai-actions .primary {
  color: #fff;
  background: var(--ai-accent);
}

.vmeet-ai-actions .primary:hover {
  background: var(--ai-accent-dark);
}

.vmeet-ai-actions .primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.vmeet-ai-actions .primary:disabled:hover {
  background: var(--ai-accent);
}

.vmeet-ai-actions .ghost {
  color: var(--ai-ink);
  background: var(--ai-surface);
  border: 1px solid var(--ai-line);
}

.vmeet-ai-actions .ghost:hover {
  background: var(--ai-surface-2);
}

.vmeet-ai-actions .danger {
  color: #fff;
  background: var(--ai-danger);
}

.vmeet-ai-actions .danger:hover {
  filter: brightness(0.95);
}

@media (max-width: 640px) {
  .vmeet-ai-panel {
    right: 12px;
    bottom: 84px;
  }

  .vmeet-ai-toolbar-slot .vmeet-ai-fab-inner {
    padding: 6px 10px 6px 8px;
    font-size: 12px;
  }

  .vmeet-ai-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* Enable splash — dark liquid blobs + running border */
.vmeet-ai-splash {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  background: #030308;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.vmeet-ai-splash.is-on {
  opacity: 1;
  visibility: visible;
}

.vmeet-ai-splash-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(165deg, #020208 0%, #0a0a16 48%, #05050e 100%);
}

.vmeet-ai-splash-bg-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 42%, rgba(3, 3, 12, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(3, 3, 8, 0.55) 0%, transparent 55%);
  pointer-events: none;
}

.vmeet-ai-blob {
  position: absolute;
  border-radius: 42% 58% 60% 40% / 45% 42% 58% 55%;
  filter: blur(48px);
  opacity: 0.78;
  will-change: transform, border-radius;
  mix-blend-mode: screen;
}

.vmeet-ai-blob-a {
  width: min(72vw, 620px);
  height: min(72vw, 620px);
  top: -18%;
  left: -12%;
  background: radial-gradient(circle at 35% 35%, #7b6ff0 0%, #4638ca 42%, transparent 72%);
  animation: vmeet-ai-blob-a 9s ease-in-out infinite;
}

.vmeet-ai-blob-b {
  width: min(68vw, 560px);
  height: min(68vw, 560px);
  top: 8%;
  right: -18%;
  background: radial-gradient(circle at 60% 40%, #24c6ff 0%, #1881f8 38%, transparent 70%);
  animation: vmeet-ai-blob-b 11s ease-in-out infinite;
}

.vmeet-ai-blob-c {
  width: min(80vw, 700px);
  height: min(70vw, 580px);
  bottom: -28%;
  left: 10%;
  background: radial-gradient(circle at 50% 40%, #5b4ce6 0%, #2a1f8a 40%, transparent 72%);
  opacity: 0.65;
  animation: vmeet-ai-blob-c 10s ease-in-out infinite;
}

.vmeet-ai-blob-d {
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  top: 38%;
  left: 38%;
  background: radial-gradient(circle at 50% 50%, rgba(139, 124, 246, 0.95) 0%, rgba(24, 129, 248, 0.35) 48%, transparent 70%);
  filter: blur(36px);
  opacity: 0.55;
  animation: vmeet-ai-blob-d 7.5s ease-in-out infinite;
}

.vmeet-ai-splash.is-ready .vmeet-ai-blob {
  filter: blur(42px) brightness(1.12);
}

@keyframes vmeet-ai-blob-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 42% 58% 60% 40% / 45% 42% 58% 55%;
  }
  33% {
    transform: translate(14%, 18%) scale(1.18) rotate(28deg);
    border-radius: 60% 40% 48% 52% / 38% 62% 40% 60%;
  }
  66% {
    transform: translate(6%, 28%) scale(0.92) rotate(-18deg);
    border-radius: 48% 52% 38% 62% / 55% 40% 60% 45%;
  }
}

@keyframes vmeet-ai-blob-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 55% 45% 42% 58% / 48% 55% 45% 52%;
  }
  40% {
    transform: translate(-18%, 22%) scale(1.22) rotate(-32deg);
    border-radius: 40% 60% 55% 45% / 60% 40% 55% 45%;
  }
  70% {
    transform: translate(-8%, 8%) scale(0.88) rotate(16deg);
    border-radius: 62% 38% 48% 52% / 42% 58% 40% 60%;
  }
}

@keyframes vmeet-ai-blob-c {
  0%,
  100% {
    transform: translate(0, 0) scale(1.05) rotate(0deg);
    border-radius: 48% 52% 58% 42% / 50% 45% 55% 50%;
  }
  50% {
    transform: translate(16%, -20%) scale(1.2) rotate(24deg);
    border-radius: 38% 62% 45% 55% / 55% 40% 60% 45%;
  }
}

@keyframes vmeet-ai-blob-d {
  0%,
  100% {
    transform: translate(-10%, 0) scale(0.9);
    border-radius: 50% 50% 45% 55% / 48% 52% 48% 52%;
    opacity: 0.45;
  }
  50% {
    transform: translate(12%, -14%) scale(1.25);
    border-radius: 42% 58% 55% 45% / 58% 42% 55% 45%;
    opacity: 0.7;
  }
}

.vmeet-ai-splash-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(520px, calc(100vw - 48px));
  padding: 0 12px;
  text-align: center;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
}

.vmeet-ai-splash.is-on .vmeet-ai-splash-content {
  animation: vmeet-ai-content-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.vmeet-ai-splash.is-exit .vmeet-ai-splash-content {
  animation: vmeet-ai-content-out 0.55s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes vmeet-ai-content-in {
  0% {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes vmeet-ai-content-out {
  0% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-16px);
    filter: blur(4px);
  }
}

.vmeet-ai-splash-loader {
  width: clamp(180px, 24vw, 220px);
  height: clamp(180px, 24vw, 220px);
  margin: 0 auto 40px;
  opacity: 0;
  transform: scale(0.88);
}

.vmeet-ai-loader-svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.vmeet-ai-splash.is-on .vmeet-ai-splash-loader {
  animation: vmeet-ai-loader-in 0.7s cubic-bezier(0.34, 1.45, 0.64, 1) 0.35s forwards;
}

.vmeet-ai-splash.is-ready .vmeet-ai-splash-loader {
  animation: vmeet-ai-loader-ready 0.5s ease forwards;
}

@keyframes vmeet-ai-loader-in {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes vmeet-ai-loader-ready {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(139, 124, 246, 0));
  }
  45% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 22px rgba(139, 124, 246, 0.65));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(139, 124, 246, 0.3));
  }
}

.vmeet-ai-splash-title {
  margin: 0 0 12px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(36px, 7vw, 52px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
}

.vmeet-ai-splash.is-on .vmeet-ai-splash-title {
  animation: vmeet-ai-text-in 0.5s ease 0.52s forwards;
}

.vmeet-ai-splash-line {
  margin: 0;
  min-height: 1.35em;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.68);
  opacity: 0;
  transform: translateY(8px);
}

.vmeet-ai-splash-line-text {
  display: inline-block;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.vmeet-ai-splash-line-text.is-fading {
  opacity: 0;
  transform: translateY(-6px);
}

.vmeet-ai-dots {
  display: inline-flex;
  gap: 1px;
  margin-left: 2px;
}

.vmeet-ai-dots span {
  animation: vmeet-ai-dot-bounce 1.2s ease-in-out infinite;
  opacity: 0.35;
}

.vmeet-ai-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.vmeet-ai-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes vmeet-ai-dot-bounce {
  0%,
  70%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.vmeet-ai-splash.is-on .vmeet-ai-splash-line {
  animation: vmeet-ai-text-in 0.5s ease 0.62s forwards;
}

@keyframes vmeet-ai-text-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vmeet-ai-splash.is-ready .vmeet-ai-splash-line {
  color: #b4b0ff;
}

.vmeet-ai-splash.is-ready .vmeet-ai-dots {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .vmeet-ai-blob,
  .vmeet-ai-splash-content,
  .vmeet-ai-splash-loader,
  .vmeet-ai-splash-title,
  .vmeet-ai-splash-line,
  .vmeet-ai-dots span {
    animation: none !important;
    transition: none !important;
  }

  .vmeet-ai-blob {
    opacity: 0.4;
    filter: blur(52px);
  }

  .vmeet-ai-splash.is-on .vmeet-ai-splash-content,
  .vmeet-ai-splash.is-on .vmeet-ai-splash-loader,
  .vmeet-ai-splash.is-on .vmeet-ai-splash-title,
  .vmeet-ai-splash.is-on .vmeet-ai-splash-line {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
