#rvfw81-wrap { width: 100%; }
#rvfw81-hero {
  --lime: #b8f645;
  --bg-top: #131b2e;
  --bg-bottom: #0a0f1c;
  --glass: rgba(255,255,255,0.10);
  --glass-border: rgba(255,255,255,0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
  padding: 0;
  font-family: var(--font);
}
#rvfw81-hero, #rvfw81-hero *, #rvfw81-hero *::before, #rvfw81-hero *::after { box-sizing: border-box; }

#rvfw81-hero .rvfw81-phone {
  width: 294px;
  max-width: 100%;
  aspect-ratio: 294 / 612;
  background: #060a12;
  border-radius: 52px;
  padding: 11px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), inset 0 0 0 2px rgba(255,255,255,0.08);
  flex-shrink: 0;
  position: relative;
}
/* Titanium side buttons: volume (left), power (right) */
#rvfw81-hero .rvfw81-phone::before {
  content: '';
  position: absolute;
  left: -2.5px;
  top: 125px;
  width: 3px;
  height: 84px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2a3140, #10151f);
}
#rvfw81-hero .rvfw81-phone::after {
  content: '';
  position: absolute;
  right: -2.5px;
  top: 159px;
  width: 3px;
  height: 56px;
  border-radius: 2px;
  background: linear-gradient(270deg, #2a3140, #10151f);
}

#rvfw81-hero .rvfw81-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, var(--bg-top) 0%, var(--bg-bottom) 65%);
  color: #fff;
}

#rvfw81-hero .rvfw81-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 22px;
  background: #000;
  border-radius: 12px;
  z-index: 40;
}

#rvfw81-hero .rvfw81-statusbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 26px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  z-index: 35;
}
#rvfw81-hero .rvfw81-status-icons { display: flex; align-items: center; gap: 5px; }
#rvfw81-hero .rvfw81-status-icons svg { width: 15px; height: 11px; }

/* ---- Phase layers ---- */
#rvfw81-hero .rvfw81-phase {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: 52px;
  transition: opacity 0.45s ease;
}
#rvfw81-hero .rvfw81-phase-incoming { opacity: 1; }
#rvfw81-hero .rvfw81-phase-call { opacity: 0; pointer-events: none; }
#rvfw81-hero .rvfw81-screen.rvfw81-oncall .rvfw81-phase-incoming { opacity: 0; pointer-events: none; }
#rvfw81-hero .rvfw81-screen.rvfw81-oncall .rvfw81-phase-call { opacity: 1; pointer-events: auto; }

/* ---- Incoming phase ---- */
#rvfw81-hero .rvfw81-in-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 26px;
}
#rvfw81-hero .rvfw81-avatar {
  width: 86px; height: 86px; border-radius: 50%;
  background: linear-gradient(155deg, #1c2540, #0d1220);
  border: 1px solid rgba(184,246,69,0.35);
  display: flex; align-items: center; justify-content: center;
  animation: rvfw81Ring 2.2s infinite;
}
@keyframes rvfw81Ring {
  0% { box-shadow: 0 0 0 0 rgba(184,246,69,0.30); }
  70% { box-shadow: 0 0 0 16px rgba(184,246,69,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,246,69,0); }
}
#rvfw81-hero .rvfw81-avatar svg { width: 38px; height: 38px; color: var(--lime); }
#rvfw81-hero .rvfw81-in-name { font-size: 24px; font-weight: 600; }
#rvfw81-hero .rvfw81-in-sub { font-size: 14px; color: rgba(255,255,255,0.55); }

#rvfw81-hero .rvfw81-in-extras {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  padding: 0 46px;
  margin-bottom: 26px;
}
#rvfw81-hero .rvfw81-extra { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,0.6); }
#rvfw81-hero .rvfw81-extra svg { width: 20px; height: 20px; color: rgba(255,255,255,0.85); }

#rvfw81-hero .rvfw81-answer-row {
  display: flex;
  justify-content: space-between;
  padding: 0 46px 34px;
}
#rvfw81-hero .rvfw81-answer-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.75); }
#rvfw81-hero .rvfw81-answer-circle {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease;
}
#rvfw81-hero .rvfw81-answer-circle svg { width: 27px; height: 27px; color: #fff; }
#rvfw81-hero .rvfw81-decline .rvfw81-answer-circle { background: #ff3b30; }
#rvfw81-hero .rvfw81-decline .rvfw81-answer-circle svg { transform: rotate(135deg); }
#rvfw81-hero .rvfw81-accept .rvfw81-answer-circle {
  background: #34c759;
  animation: rvfw81Bounce 1.4s infinite;
}
@keyframes rvfw81Bounce {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(52,199,89,0.4); }
  50% { transform: translateY(-5px); box-shadow: 0 0 0 12px rgba(52,199,89,0); }
}
#rvfw81-hero .rvfw81-accept.rvfw81-pressed .rvfw81-answer-circle {
  animation: none;
  transform: scale(0.82);
  box-shadow: 0 0 0 6px rgba(52,199,89,0.35);
}

/* ---- Call phase ---- */
#rvfw81-hero .rvfw81-call-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding-top: 8px;
  flex-shrink: 0;
}
#rvfw81-hero .rvfw81-call-name { font-size: 18px; font-weight: 600; }
#rvfw81-hero .rvfw81-call-timer { font-size: 13px; color: rgba(255,255,255,0.55); font-variant-numeric: tabular-nums; }
#rvfw81-hero .rvfw81-speaking {
  margin-top: 3px;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
#rvfw81-hero .rvfw81-speaking-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); flex-shrink: 0; }
#rvfw81-hero .rvfw81-speaking.rvfw81-ai-turn .rvfw81-speaking-dot { background: var(--lime); }
#rvfw81-hero .rvfw81-speaking.rvfw81-ai-turn { color: var(--lime); }
#rvfw81-hero .rvfw81-wave { display: none; gap: 2px; align-items: center; height: 10px; }
#rvfw81-hero .rvfw81-speaking.rvfw81-ai-turn .rvfw81-wave { display: flex; }
#rvfw81-hero .rvfw81-wave span { width: 2px; background: var(--lime); border-radius: 1px; animation: rvfw81Wave 0.5s infinite ease-in-out alternate; }
#rvfw81-hero .rvfw81-wave span:nth-child(1) { height: 4px; animation-delay: 0s; }
#rvfw81-hero .rvfw81-wave span:nth-child(2) { height: 9px; animation-delay: 0.1s; }
#rvfw81-hero .rvfw81-wave span:nth-child(3) { height: 6px; animation-delay: 0.2s; }
@keyframes rvfw81Wave { 0% { transform: scaleY(0.4); } 100% { transform: scaleY(1); } }

#rvfw81-hero .rvfw81-transcript {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 12px 14px 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 11px 12px 4px;
}
#rvfw81-hero .rvfw81-transcript-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.38); margin-bottom: 4px;
  flex-shrink: 0;
}
#rvfw81-hero .rvfw81-transcript-label svg { width: 12px; height: 12px; }
#rvfw81-hero .rvfw81-transcript-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  padding-bottom: 10px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 16px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px);
}
#rvfw81-hero .rvfw81-transcript-scroll::-webkit-scrollbar { display: none; }
#rvfw81-hero .rvfw81-bubble-row { display: flex; align-items: flex-end; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s ease; flex-shrink: 0; }
#rvfw81-hero .rvfw81-bubble-row.rvfw81-in { opacity: 1; transform: translateY(0); }
#rvfw81-hero .rvfw81-bubble-row.rvfw81-human { justify-content: flex-start; }
#rvfw81-hero .rvfw81-bubble-row.rvfw81-ai { justify-content: flex-end; }
#rvfw81-hero .rvfw81-bubble-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
#rvfw81-hero .rvfw81-bubble-avatar svg { width: 11px; height: 11px; }
#rvfw81-hero .rvfw81-bubble-row.rvfw81-human .rvfw81-bubble-avatar { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.65); }
#rvfw81-hero .rvfw81-bubble-row.rvfw81-ai .rvfw81-bubble-avatar { background: rgba(184,246,69,0.18); color: var(--lime); }
#rvfw81-hero .rvfw81-bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 500;
}
#rvfw81-hero .rvfw81-bubble-row.rvfw81-human .rvfw81-bubble { background: rgba(255,255,255,0.10); color: #fff; border-bottom-left-radius: 4px; }
#rvfw81-hero .rvfw81-bubble-row.rvfw81-ai .rvfw81-bubble { background: rgba(184,246,69,0.16); color: var(--lime); border-bottom-right-radius: 4px; }

#rvfw81-hero .rvfw81-buttons {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  padding: 14px 44px 0;
}
#rvfw81-hero .rvfw81-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; }
#rvfw81-hero .rvfw81-btn-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
}
#rvfw81-hero .rvfw81-btn.rvfw81-active .rvfw81-btn-circle { background: #fff; }
#rvfw81-hero .rvfw81-btn.rvfw81-active .rvfw81-btn-circle svg { color: #0a0f1c; }
#rvfw81-hero .rvfw81-btn-circle svg { width: 21px; height: 21px; color: #fff; }
#rvfw81-hero .rvfw81-btn span { font-size: 10.5px; color: rgba(255,255,255,0.55); }

#rvfw81-hero .rvfw81-endcall-wrap { flex-shrink: 0; display: flex; justify-content: center; padding: 13px 0 20px; }
#rvfw81-hero .rvfw81-endcall {
  width: 58px; height: 58px; border-radius: 50%;
  background: #ff3b30;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(255,59,48,0.4);
}
#rvfw81-hero .rvfw81-endcall svg { width: 24px; height: 24px; color: #fff; transform: rotate(135deg); }

/* Booking banner */
#rvfw81-hero .rvfw81-banner {
  position: absolute;
  top: 46px;
  left: 10px;
  right: 10px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30,35,48,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(-140%);
  transition: transform 0.45s cubic-bezier(0.34,1.3,0.64,1), opacity 0.3s ease;
}
#rvfw81-hero .rvfw81-banner.rvfw81-show { opacity: 1; transform: translateY(0); }
#rvfw81-hero .rvfw81-banner-icon {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 7px;
  background: var(--lime); display: flex; align-items: center; justify-content: center;
}
#rvfw81-hero .rvfw81-banner-icon svg { width: 14px; height: 14px; color: #0a0f1c; }
#rvfw81-hero .rvfw81-banner-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
#rvfw81-hero .rvfw81-banner-title { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.3px; }
#rvfw81-hero .rvfw81-banner-desc { font-size: 12.5px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* ---- Light theme (activate by adding class rvfw81-light to #rvfw81-wrap) ---- */
#rvfw81-wrap.rvfw81-light .rvfw81-phone {
  background: #e7e9f0;
  box-shadow: 0 20px 50px rgba(30,40,70,0.18), inset 0 0 0 2px rgba(0,0,0,0.05);
}
#rvfw81-wrap.rvfw81-light .rvfw81-phone::before { background: linear-gradient(90deg, #c6cad6, #9aa0b0); }
#rvfw81-wrap.rvfw81-light .rvfw81-phone::after { background: linear-gradient(270deg, #c6cad6, #9aa0b0); }
#rvfw81-wrap.rvfw81-light .rvfw81-screen {
  background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #eef1f7 65%);
  color: #10182b;
}
#rvfw81-wrap.rvfw81-light .rvfw81-statusbar { color: #10182b; }
#rvfw81-wrap.rvfw81-light .rvfw81-status-icons svg rect,
#rvfw81-wrap.rvfw81-light .rvfw81-status-icons svg path { fill: #10182b; stroke: none; }
#rvfw81-wrap.rvfw81-light .rvfw81-status-icons svg [stroke] { stroke: #10182b; fill: none; }
#rvfw81-wrap.rvfw81-light .rvfw81-in-name,
#rvfw81-wrap.rvfw81-light .rvfw81-call-name { color: #10182b; }
#rvfw81-wrap.rvfw81-light .rvfw81-in-sub,
#rvfw81-wrap.rvfw81-light .rvfw81-call-timer { color: rgba(16,24,43,0.55); }
#rvfw81-wrap.rvfw81-light .rvfw81-avatar {
  background: linear-gradient(155deg, #ffffff, #e4e8f2);
  border-color: rgba(106,148,10,0.45);
}
#rvfw81-wrap.rvfw81-light .rvfw81-avatar svg { color: #6a940a; }
#rvfw81-wrap.rvfw81-light .rvfw81-extra { color: rgba(16,24,43,0.6); }
#rvfw81-wrap.rvfw81-light .rvfw81-extra svg { color: rgba(16,24,43,0.85); }
#rvfw81-wrap.rvfw81-light .rvfw81-answer-btn { color: rgba(16,24,43,0.75); }
#rvfw81-wrap.rvfw81-light .rvfw81-speaking {
  background: rgba(16,24,43,0.05);
  border-color: rgba(16,24,43,0.10);
  color: rgba(16,24,43,0.65);
}
#rvfw81-wrap.rvfw81-light .rvfw81-speaking-dot { background: rgba(16,24,43,0.4); }
#rvfw81-wrap.rvfw81-light .rvfw81-speaking.rvfw81-ai-turn { color: #55780a; }
#rvfw81-wrap.rvfw81-light .rvfw81-speaking.rvfw81-ai-turn .rvfw81-speaking-dot,
#rvfw81-wrap.rvfw81-light .rvfw81-wave span { background: #6a940a; }
#rvfw81-wrap.rvfw81-light .rvfw81-transcript {
  background: rgba(16,24,43,0.04);
  border-color: rgba(16,24,43,0.08);
}
#rvfw81-wrap.rvfw81-light .rvfw81-transcript-label { color: rgba(16,24,43,0.4); }
#rvfw81-wrap.rvfw81-light .rvfw81-bubble-row.rvfw81-human .rvfw81-bubble { background: rgba(16,24,43,0.07); color: #10182b; }
#rvfw81-wrap.rvfw81-light .rvfw81-bubble-row.rvfw81-ai .rvfw81-bubble { background: rgba(150,196,45,0.22); color: #3d5a06; }
#rvfw81-wrap.rvfw81-light .rvfw81-bubble-row.rvfw81-human .rvfw81-bubble-avatar { background: rgba(16,24,43,0.08); color: rgba(16,24,43,0.6); }
#rvfw81-wrap.rvfw81-light .rvfw81-bubble-row.rvfw81-ai .rvfw81-bubble-avatar { background: rgba(150,196,45,0.25); color: #55780a; }
#rvfw81-wrap.rvfw81-light .rvfw81-btn-circle { background: rgba(16,24,43,0.07); }
#rvfw81-wrap.rvfw81-light .rvfw81-btn-circle svg { color: #10182b; }
#rvfw81-wrap.rvfw81-light .rvfw81-btn.rvfw81-active .rvfw81-btn-circle { background: #10182b; }
#rvfw81-wrap.rvfw81-light .rvfw81-btn.rvfw81-active .rvfw81-btn-circle svg { color: #fff; }
#rvfw81-wrap.rvfw81-light .rvfw81-btn span { color: rgba(16,24,43,0.55); }
#rvfw81-wrap.rvfw81-light .rvfw81-banner {
  background: rgba(255,255,255,0.92);
  border-color: rgba(16,24,43,0.10);
}
#rvfw81-wrap.rvfw81-light .rvfw81-banner-title { color: rgba(16,24,43,0.55); }
#rvfw81-wrap.rvfw81-light .rvfw81-banner-desc { color: #10182b; }
#rvfw81-wrap.rvfw81-light .rvfw81-banner-icon { background: #9dc832; }

@media (prefers-reduced-motion: reduce) {
  #rvfw81-hero .rvfw81-avatar, #rvfw81-hero .rvfw81-accept .rvfw81-answer-circle, #rvfw81-hero .rvfw81-wave span { animation: none; }
  #rvfw81-hero .rvfw81-banner, #rvfw81-hero .rvfw81-bubble-row, #rvfw81-hero .rvfw81-phase { transition: none; }
}
