/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ───────────────────────────────────────────────── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0d0d14;
  color: #fff;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: rgba(13, 13, 20, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.btn-cta {
  display: inline-block;
  padding: 10px 22px;
  background: #ffc700;
  color: #171a1b;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn-cta:hover {
  background: #ffcf2e;
  transform: translateY(-1px);
}

/* ── Room Section ───────────────────────────────────────── */
.room-section {
  width: 100%;
  padding: 0px 0px 8px 16px;
}

/* ── Room Layout (room + drawer side by side) ────────────── */
.room-layout {
  display: flex;
  gap: 16px;
  align-items: stretch;
  height: 65vh;
  min-height: 420px;
}

/* ── Room Container ─────────────────────────────────────── */
.room-container {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 65vh;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #1a1a2e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 1);
  transition: opacity 0.25s ease;
}

.room-container.switching {
  opacity: 0;
}

/* ── Room Hint ───────────────────────────────────────────── */
.room-hint {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 240px;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.room-hint.is-hidden {
  opacity: 0;
}

.room-hint-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  line-height: 1.1;
}

.room-hint-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .room-hint {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 320px;
    width: 300px;
  }
}

/* ── Room HUD (toolbar + background selector, stacked) ───── */
.room-hud {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  max-width: calc(100% - 32px);
}

/* ── Toolbar ─────────────────────────────────────────────── */
.room-toolbar {
  display: flex;
  gap: 6px;
  padding: 6px 6px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.tool-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.tool-btn.is-active {
  background: rgba(112, 224, 3, 0.14);
}

.tool-icon {
  width: 38px;
  height: 38px;
  display: block;
  pointer-events: none;
}

/* Record dot (CSS icon) */
.record-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 8px rgba(255, 59, 48, 0.55);
  flex-shrink: 0;
}

/* Tooltip for info-only buttons */
.tool-btn {
  position: relative;
}

.tool-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  width: 220px;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 200;
}

/* Small arrow pointing down */
.tool-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(20, 20, 30, 0.95);
}

.tool-tooltip.is-hiding {
  opacity: 0;
}

.tool-tooltip.has-cta {
  pointer-events: all;
}

.tooltip-text {
  display: block;
  margin-bottom: 10px;
}

.tooltip-cta {
  display: block;
  width: 100%;
  padding: 7px 10px;
  background: #ffc700;
  color: #171a1b;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.tooltip-cta:hover {
  background: #ffcf2e;
}

/* ── Background Selector ────────────────────────────────── */
.bg-selector {
  display: flex;
  gap: 8px;
  padding: 8px 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.bg-selector::-webkit-scrollbar {
  display: none;
}

/* ── Background Thumbnails ──────────────────────────────── */
.bg-thumb {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color 0.2s, transform 0.15s;
}

.bg-thumb img {
  width: 80px;
  height: 50px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.bg-thumb span {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  padding-bottom: 2px;
}

.bg-thumb.active {
  border-color: #ffc700;
}

.bg-thumb.active img {
  border-radius: 4px;
}

.bg-thumb:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ── Room Circles ───────────────────────────────────────── */
.room-circle {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px dashed rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  cursor: grab;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.room-circle:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(1.05);
}

/* Avatar circle */
.room-circle.is-avatar {
  border: 3px solid #fff;
  background: transparent;
  box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.room-circle.is-avatar:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.9), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.room-circle.is-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  pointer-events: none;
}

/* Live camera feed inside avatar circle */
.avatar-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  transform: scaleX(-1); /* mirror like a selfie */
  pointer-events: none;
}

/* Mic on — pulsing green rings */
@keyframes mic-ring {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.75; }
  100% { transform: translate(-50%, -50%) scale(1.65); opacity: 0;    }
}

.room-circle.is-avatar.is-mic-on {
  overflow: visible;
}

.room-circle.is-avatar.is-mic-on::before,
.room-circle.is-avatar.is-mic-on::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(112, 224, 3, 0.8);
  animation: mic-ring 1.8s ease-out infinite;
  pointer-events: none;
}

.room-circle.is-avatar.is-mic-on::after {
  animation-delay: 0.6s;
}

/* Dragging state */
.room-circle.is-dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.12);
  transition: none;
  z-index: 50;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

/* Prevent text selection while dragging */
.room-container {
  user-select: none;
  -webkit-user-select: none;
}

/* ── Flying Avatar (click-to-move animation) ────────────── */
.avatar-flyer {
  position: fixed;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 1000;
  pointer-events: none;
  transition:
    left   0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    top    0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    width  0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    height 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-flyer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .room-section {
  padding: 0px 0px 8px 16px;
  }

  .room-layout {
    min-height: 380px;
  }

  .room-container {
    border-radius: 12px;
  }

  .testimonial-drawer.is-open {
    width: 180px;
  }

  .drawer-inner {
    width: 180px;
    padding: 14px;
  }

  .drawer-quote {
    font-size: 11.5px;
  }

  .page-header {
    padding: 14px 16px;
  }

  .header-logo {
    font-size: 19px;
  }

  .btn-cta {
    padding: 8px 16px;
    font-size: 13px;
  }

  .bg-thumb img {
    width: 68px;
    height: 42px;
  }
}

/* ── Meet Our Users ──────────────────────────────────────── */
.meet-users-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 28px 22px;
  flex-wrap: wrap;
}

.btn-cta-lg {
  padding: 13px 28px;
  font-size: 14px;
  border-radius: 40px;
}

.btn-meet-users {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #6d5c20;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
}

.btn-meet-users:hover {
  background: #0088c0;
  transform: translateY(-1px);
}

.btn-meet-users.is-active {
  background: rgba(0, 153, 214, 0.25);
  border: 1px solid rgba(0, 153, 214, 0.5);
  padding: 11px 28px;
}

.btn-stars {
  color: #ffc700;
  letter-spacing: 1px;
}

/* ── Testimonial Drawer ──────────────────────────────────── */
.testimonial-drawer {
  width: 0;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: width 0.42s cubic-bezier(0.34, 1.1, 0.64, 1);
}

.testimonial-drawer.is-open {
  width: 320px;
}

.drawer-inner {
  width: 320px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: rgba(18, 18, 28, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-sizing: border-box;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.drawer-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.drawer-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.drawer-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  padding-right: 2px;
}

.drawer-card {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--card-color, #0099d6);
  transition: background 0.2s;
}

.drawer-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.drawer-stars {
  font-size: 11px;
  color: var(--card-color, #0099d6);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.drawer-quote {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  margin-bottom: 8px;
}

.drawer-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.3px;
}

/* ── Badges ──────────────────────────────────────────────── */
.badges-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 28px 48px;
}

.badges-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.badges-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.badge-img {
  height: 52px;
  width: auto;
  filter: grayscale(1) brightness(0.95) opacity(0.85);
  transition: filter 0.3s ease;
}

.badge-img:hover {
  filter: grayscale(0) brightness(1) opacity(1);
}

@media (max-width: 768px) {
  .badges-strip {
    gap: 8px;
  }
}

/* ── CTA Popup ───────────────────────────────────────────── */
.cta-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cta-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.cta-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(18, 18, 28, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.cta-overlay.is-open .cta-modal {
  transform: scale(1.1) translateY(0);
}

.cta-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.cta-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.cta-headline {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #fff;
}

.cta-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: -12px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.cta-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.cta-input:focus {
  border-color: rgba(255, 199, 0, 0.5);
  background: rgba(255, 255, 255, 0.09);
}

.cta-submit {
  width: 100%;
  padding: 14px;
  background: #ffc700;
  color: #171a1b;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s, transform 0.1s;
}

.cta-submit:hover {
  background: #ffcf2e;
  transform: translateY(-1px);
}

.cta-testimonial {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #6c47ff;
}

.cta-testimonial-quote {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  margin-bottom: 8px;
}

.cta-testimonial-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.3px;
}

@media (max-width: 768px) {
  .cta-modal {
    padding: 28px 24px;
  }

  .cta-headline {
    font-size: 22px;
  }
}

