/* ═══════════════════════════════════════════════════════════════
   KANURAGAN MAP — LIVE SHARE VIDEO CALL TAKTIS (V74.1 POLISHED)
   Tema-Aware via CSS Variables KMAP (Zero Blue Hardcode)
   ═══════════════════════════════════════════════════════════════ */
.lvcall-fab {
  position: fixed;
  right: 15px;
  bottom: 292px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card-solid, #131a16);
  color: var(--text-main, #ffffff);
  border: 2px solid var(--accent-primary, #10b981);
  box-shadow: var(--shadow-float, 0 6px 18px rgba(0, 0, 0, 0.35));
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  transition: bottom 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
.lvcall-fab:active {
  transform: scale(0.94);
}
.lvcall-fab.ringing {
  border-color: #ef4444;
  animation: lvcall-pulse 1.1s infinite;
}
.lvcall-fab.active-call {
  background: var(--accent-primary, #10b981);
  color: #ffffff;
}
.lvcall-fab-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--bg-card-solid, #131a16);
}
.lvcall-fab.ringing .lvcall-fab-dot {
  background: #ef4444;
}
@keyframes lvcall-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65); }
  70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Modal / Layar Panggilan Video */
.lvcall-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 8, 0.94);
  z-index: 2147483640;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
}
.lvcall-overlay.minimized {
  inset: auto;
  right: 14px;
  bottom: 92px;
  width: 152px;
  height: 218px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--accent-primary, #10b981);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.lvcall-overlay.minimized:active {
  cursor: grabbing;
}
.lvcall-topbar {
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,0.75), transparent);
  z-index: 5;
  flex-shrink: 0;
}
.lvcall-overlay.minimized .lvcall-topbar {
  padding: 6px 8px;
}
.lvcall-status-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lvcall-title {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lvcall-sub {
  font-size: 11px;
  font-weight: 700;
  color: #a7f3d0;
  margin-top: 2px;
}
.lvcall-overlay.minimized .lvcall-title,
.lvcall-overlay.minimized .lvcall-sub {
  font-size: 10px;
}
.lvcall-min-btn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}
.lvcall-overlay.minimized .lvcall-min-btn {
  padding: 3px 7px;
  font-size: 11px;
}

.lvcall-stage {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0f0d;
}
.lvcall-remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0f0d;
}
.lvcall-local-video {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 110px;
  height: 152px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid var(--accent-primary, #10b981);
  background: #131a16;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 4;
}
.lvcall-overlay.minimized .lvcall-local-video {
  display: none;
}
.lvcall-waiting-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  pointer-events: none;
  z-index: 2;
}
.lvcall-waiting-icon {
  font-size: 46px;
}
.lvcall-waiting-txt {
  font-size: 14px;
  font-weight: 800;
  color: #e2e8f0;
}
.lvcall-overlay.minimized .lvcall-waiting-icon {
  font-size: 26px;
}
.lvcall-overlay.minimized .lvcall-waiting-txt {
  font-size: 10.5px;
}

.lvcall-controls {
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.86), transparent);
  z-index: 5;
  flex-shrink: 0;
}
.lvcall-overlay.minimized .lvcall-controls {
  padding: 6px;
  gap: 6px;
}
.lvcall-ctrl-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(30, 41, 35, 0.85);
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.lvcall-ctrl-btn.off {
  background: #f59e0b;
  border-color: #f59e0b;
}
.lvcall-ctrl-btn.hangup {
  width: 56px;
  height: 56px;
  background: #ef4444;
  border-color: #ef4444;
  font-size: 22px;
}
.lvcall-overlay.minimized .lvcall-ctrl-btn:not(.hangup) {
  display: none;
}
.lvcall-overlay.minimized .lvcall-ctrl-btn.hangup {
  width: 34px;
  height: 34px;
  font-size: 15px;
}

/* Modal Panggilan Masuk */
.lvcall-incoming-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  z-index: 2147483643;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lvcall-incoming-card {
  width: 100%;
  max-width: 350px;
  background: var(--bg-card-solid, #131a16);
  border: 2px solid var(--accent-primary, #10b981);
  border-radius: 20px;
  padding: 22px 18px;
  color: var(--text-main, #ffffff);
  box-shadow: var(--shadow-float, 0 20px 50px rgba(0, 0, 0, 0.55));
  text-align: center;
}
.lvcall-incoming-icon {
  font-size: 42px;
  margin-bottom: 8px;
}
.lvcall-incoming-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-main, #ffffff);
}
.lvcall-incoming-sub {
  font-size: 12.5px;
  color: var(--text-sub, #94a3b8);
  margin-top: 6px;
  line-height: 1.4;
}
.lvcall-incoming-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.lvcall-btn-accept {
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: var(--accent-primary, #10b981);
  color: #ffffff;
  font-weight: 900;
  font-size: 13.5px;
  cursor: pointer;
}
.lvcall-btn-reject {
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #ef4444;
  color: #ffffff;
  font-weight: 900;
  font-size: 13.5px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .lvcall-fab {
    right: 24px;
  }
}
