/* ============== MISSED CALL TEXT BACK DEMO (System 1 phone) ============== */
.rv-mc-phone .mc-screen {
  position: relative; padding: 0; overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(94,211,224,.18) 0%, transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(242,163,58,.12) 0%, transparent 55%),
    linear-gradient(145deg, #0a1322 0%, #15243a 100%);
}

.mc-view {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 320ms ease;
  display: flex; flex-direction: column;
}
.mc-view.on { opacity: 1; }

/* ---------- SCREEN 1: Incoming call ---------- */
.mc-view-call {
  padding: 56px 24px 28px;
  justify-content: space-between;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%),
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Crect width='200' height='200' fill='%231a2a3f'/%3E%3Ccircle cx='100' cy='90' r='60' fill='%23243348'/%3E%3C/svg%3E");
  background-size: cover;
  filter: none;
}
.mc-caller { margin-top: 10px; }
.mc-number { color: #fff; font-size: 22px; font-weight: 500; letter-spacing: .5px; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.mc-unknown { color: rgba(255,255,255,.85); font-size: 15px; margin-top: 4px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.mc-call-bottom { }
.mc-label { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .18em; opacity: .85; margin-bottom: 14px; }
.mc-slider {
  position: relative;
  background: rgba(60, 60, 65, .55);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  height: 56px;
  display: flex; align-items: center;
  padding: 4px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.mc-slider-text {
  position: absolute; left: 0; right: 0;
  text-align: center; font-size: 14px;
  color: rgba(255,255,255,.55);
  letter-spacing: .02em;
  pointer-events: none;
  animation: mc-shimmer 2s linear infinite;
  background: linear-gradient(90deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.3) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@keyframes mc-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.mc-slider-btn {
  position: relative; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: #34c759;
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(52,199,89,.4), 0 0 0 1px rgba(255,255,255,.12);
  transform: translateX(0);
  animation: mc-slide 4s cubic-bezier(.4,.1,.6,1) infinite;
}
.mc-slider-btn svg { transform: rotate(10deg); }
/* Slide bar animates L -> R, pauses midway, slides back (abandoned answer) */
@keyframes mc-slide {
  0%, 10%  { transform: translateX(0); }
  55%      { transform: translateX(calc(100% + 110px)); } /* reach near the end */
  60%      { transform: translateX(calc(100% + 110px)); }
  85%, 100% { transform: translateX(0); } /* slides back — call not answered */
}

/* ---------- SCREEN 2: Missed call notification ---------- */
.mc-view-miss {
  justify-content: flex-start; padding: 70px 14px 0;
}
.mc-notif {
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  animation: mc-notif-in 500ms cubic-bezier(.4,.1,.25,1);
}
@keyframes mc-notif-in {
  from { opacity: 0; transform: translateY(-10px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.mc-notif-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: grid; place-items: center;
  flex: none;
}
.mc-notif-body { flex: 1; min-width: 0; }
.mc-notif-body b { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.mc-notif-body small { display: block; color: rgba(255,255,255,.7); font-size: 12px; margin-top: 2px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.mc-notif-icon { flex: none; }

/* ---------- SCREEN 3: SMS thread (iMessage style) ---------- */
.mc-view-sms {
  padding: 52px 14px 20px;
  gap: 12px;
  justify-content: flex-start;
}
.mc-sms {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 280ms ease;
  position: relative;
}
.mc-sms.on { opacity: 1; }
.mc-sms p { margin: 0; color: #fff; font-size: 13px; line-height: 1.4; min-height: 18px; }
.mc-sms-biz {
  background: #7FB8E8; color: #0E1A2B;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 14px rgba(127,184,232,.3);
}
.mc-sms-biz p { color: #0E1A2B; font-weight: 600; }
.mc-sms-cust {
  background: #E8912B; color: #0E1A2B;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  box-shadow: 0 4px 14px rgba(232,145,43,.3);
}
.mc-sms-cust p { color: #0E1A2B; font-weight: 600; }

/* Typewriter text + caret */
.mc-typed { font-size: inherit; color: inherit; font-family: inherit; }
.mc-caret {
  display: inline-block;
  width: 2px; height: 14px;
  background: currentColor;
  margin-left: 1px; vertical-align: text-bottom;
  opacity: 0;
  animation: mc-caret-blink 900ms steps(2) infinite;
}
.mc-sms.typing .mc-caret { opacity: 1; }
@keyframes mc-caret-blink { 50% { opacity: 0; } }
