:root {
  --bg: #f0f4ff;
  --bg2: #e8edf8;
  --bg3: #dde4f4;
  --surface: #ffffff;
  --surface2: #f5f7ff;
  --border: #cbd5e1;
  --accent: #2563eb;
  --accent2: #1d4ed8;
  --accent3: #3b82f6;
  --green: #16a34a;
  --red: #dc2626;
  --yellow: #d97706;
  --text: #0f172a;
  --text2: #475569;
  --text3: #94a3b8;
}
body.dark {
  --bg: #0b0f1a;
  --bg2: #111827;
  --bg3: #1a2235;
  --surface: #1e2d45;
  --surface2: #243450;
  --border: #2a3f5f;
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --accent3: #93c5fd;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --text: #f0f4ff;
  --text2: #94a3b8;
  --text3: #64748b;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;
}
.page {
  display: none;
  min-height: 100vh;
  flex-direction: column;
}
.page.active {
  display: flex;
  flex-direction: column;
}

/* NAV */
.topnav {
  height: 60px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  margin-right: 40px;
  cursor: pointer;
}
.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 8px 16px;
  border-radius: 5px;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  border: none;
}
.nav-link:hover {
  background: var(--surface);
  color: var(--text);
}
.nav-link.active-nav {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* BUTTONS */
.btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: "DM Sans", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37, 99, 235, 0.04);
}
.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: none;
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}
.btn-danger {
  background: #dc2626;
  color: #fff;
}
.btn-danger:hover {
  background: #b91c1c;
}
.btn-danger-soft {
  background: rgba(220, 38, 38, 0.07);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}
.btn-danger-soft:hover {
  background: rgba(220, 38, 38, 0.14);
}
.btn-success {
  background: var(--green);
  color: #fff;
}
.btn-success:hover {
  background: #15803d;
}
.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: 10px;
}
.btn-xl {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 12px;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* AVATAR */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.avatar.xl {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

/* SIDEBAR */
.sidebar-layout {
  display: flex;
  flex: 1;
}
.sidebar {
  width: 240px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  min-height: calc(100vh - 60px);
}
.sidebar-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.sidebar-link:hover {
  background: var(--surface);
  color: var(--text);
}
.sidebar-link.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
}
.sidebar-link .sicon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.55;
}
.sidebar-link.active .sicon {
  opacity: 1;
}
.sidebar-spacer {
  flex: 1;
}

.main-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-green {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}
.badge-blue {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}
.badge-yellow {
  background: rgba(217, 119, 6, 0.1);
  color: #b45309;
}
.badge-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.dark-mode .badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.dark-mode .badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
}
.input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
  transition: border 0.2s;
  outline: none;
  width: 100%;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.input::placeholder {
  color: var(--text3);
}
select.input {
  cursor: pointer;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.section-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 4px;
}
.section-sub {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.contact-item:hover {
  background: var(--bg3);
}
.contact-info {
  flex: 1;
}
.contact-name {
  font-weight: 500;
  font-size: 14px;
}
.contact-status {
  font-size: 12px;
  color: var(--text3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-online {
  background: #16a34a;
}
.status-offline {
  background: var(--text3);
}
.status-away {
  background: #d97706;
}

.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 64px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-link {
  display: block;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 8px;
  cursor: pointer;
  text-decoration: none;
}
.footer-link:hover {
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text3);
}

.webcam-box {
  background: linear-gradient(135deg, #c7d2fe, #dde4f6);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.dark-mode .webcam-box {
  background: linear-gradient(135deg, #0d1a2e, #1a2a45);
}
.webcam-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text3);
  font-size: 13px;
}
.webcam-placeholder img {
  width: 44px;
  height: 44px;
  opacity: 0.25;
}
.webcam-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #fff;
}

.toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--border);
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
  border: none;
  outline: none;
}
.toggle.on {
  background: var(--accent);
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.toggle.on::after {
  transform: translateX(20px);
}

.perm-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.perm-card.granted {
  border-color: var(--green);
  background: rgba(22, 163, 74, 0.04);
}
.perm-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.perm-icon img {
  width: 30px;
  height: 30px;
}
.perm-info {
  flex: 1;
}
.perm-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 3px;
}
.perm-desc {
  font-size: 13px;
  color: var(--text2);
}
.perm-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: all 0.3s;
  flex-shrink: 0;
  font-weight: 700;
}
.perm-check.ok {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.chat-msg {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.chat-bubble {
  background: var(--bg3);
  border-radius: 10px;
  padding: 8px 12px;
  max-width: 80%;
  font-size: 13px;
  line-height: 1.5;
}
.chat-bubble.own {
  background: rgba(37, 99, 235, 0.1);
  margin-left: auto;
}

.subtitle-entry {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--bg3);
  border-left: 3px solid var(--accent);
}
.subtitle-speaker {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2px;
}
.subtitle-text {
  font-size: 14px;
  line-height: 1.5;
}
.subtitle-entry.live {
  border-left-color: var(--green);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.step-flow {
  display: flex;
  align-items: flex-start;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}
.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}
.step-circle img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 28px;
}
.step-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.step-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  max-width: 120px;
}

.search-wrap {
  position: relative;
}
.search-wrap .s-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  opacity: 0.4;
  pointer-events: none;
}
.search-wrap .input {
  padding-left: 36px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.stat-label {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 6px;
  font-weight: 500;
}
.stat-value {
  font-family: "Syne", sans-serif;
  font-size: 28px;
  font-weight: 700;
}
.stat-sub {
  font-size: 12px;
  color: var(--text2);
  margin-top: 4px;
}

.pill-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg3);
  padding: 4px;
  border-radius: 10px;
  width: fit-content;
  margin-bottom: 20px;
}
.pill-tab {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text2);
  transition: all 0.15s;
  border: none;
  background: transparent;
}
.pill-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.hero {
  padding: 80px 64px 60px;
  background: radial-gradient(
    ellipse 80% 60% at 50% -10%,
    rgba(37, 99, 235, 0.08) 0%,
    transparent 70%
  );
  text-align: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}
.hero-title span {
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 60px;
}
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.hero-feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hero-feat:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}
.feat-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}
.feat-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}
.feat-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 12px;
}
.team-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.team-role {
  font-size: 12px;
  color: var(--text2);
}

.waiting-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 1.2s linear infinite;
  position: absolute;
}
.waiting-ring2 {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-bottom-color: #7c3aed;
  animation: spin 2s linear infinite reverse;
  position: absolute;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.call-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.call-btn img {
  width: 20px;
  height: 20px;
}
.call-btn-red {
  background: #dc2626;
}
.call-btn-red:hover {
  background: #b91c1c;
  transform: scale(1.05);
}
.call-btn-red img {
  filter: brightness(0) invert(1);
}
.call-btn-gray {
  background: var(--bg3);
}
.call-btn-gray:hover {
  background: var(--border);
}
.call-btn-green {
  background: var(--green);
}
.call-btn-green:hover {
  background: #15803d;
  transform: scale(1.05);
}
.call-btn-green img {
  filter: brightness(0) invert(1);
}

.call-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.call-item:hover {
  background: var(--bg3);
}
.call-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.call-icon img {
  width: 16px;
  height: 16px;
}
.call-icon.out {
  background: rgba(22, 163, 74, 0.1);
}
.call-icon.in {
  background: rgba(37, 99, 235, 0.1);
}
.call-icon.missed {
  background: rgba(220, 38, 38, 0.1);
}

.info-box {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-box img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.tag-blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
}
.tag-purple {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.gap-2 {
  gap: 8px;
}
.gap-3 {
  gap: 12px;
}
.gap-4 {
  gap: 16px;
}
.mb-3 {
  margin-bottom: 12px;
}
.mb-4 {
  margin-bottom: 16px;
}
.mb-6 {
  margin-bottom: 24px;
}
.text-sm {
  font-size: 13px;
}
.text-xs {
  font-size: 12px;
}
.text-muted {
  color: var(--text2);
}
.font-semibold {
  font-weight: 600;
}
.text-center {
  text-align: center;
}
.w-full {
  width: 100%;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* HOW IT WORKS PAGE */
.how-section {
  padding: 48px 64px;
}
.how-step-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.how-step-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.07);
}
.how-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.how-step-content h3 {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}
.how-step-content p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  margin-top: 10px;
  margin-right: 6px;
}

/* SETTINGS */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child {
  border-bottom: none;
}
.settings-label {
  font-weight: 500;
  font-size: 14px;
}
.settings-desc {
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
}

/* NOTIFICATION TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
/* ================================================================
   INCOMING CALL OVERLAY
   ================================================================ */
.incoming-call-overlay {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  width: 340px;
  animation: slideInCall 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideInCall {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.incoming-call-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(37,99,235,0.12);
  position: relative;
  overflow: hidden;
}
.incoming-call-pulse {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(22,163,74,0.04));
  animation: callPulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes callPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
.incoming-call-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.incoming-call-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: ringShake 1.2s ease-in-out infinite;
}
@keyframes ringShake {
  0%, 100% { transform: rotate(0deg); }
  10%       { transform: rotate(-10deg); }
  20%       { transform: rotate(10deg); }
  30%       { transform: rotate(-8deg); }
  40%       { transform: rotate(8deg); }
  50%       { transform: rotate(0deg); }
}

/* ================================================================
   WAITING ROOM DOTS
   ================================================================ */
.waiting-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.waiting-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotBounce 1.2s ease-in-out infinite;
}
.waiting-dots span:nth-child(2) { animation-delay: 0.2s; }
.waiting-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40%            { transform: scale(1);   opacity: 1; }
}

/* ================================================================
   CHAT MESSAGE STYLES
   ================================================================ */
.chat-msg-own {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 8px;
}
.chat-msg-other {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.chat-bubble-own {
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 16px 16px 4px 16px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 210px;
  word-break: break-word;
}
.chat-bubble-other {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 16px 16px 16px 4px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 210px;
  word-break: break-word;
}
.chat-time {
  font-size: 10px;
  color: var(--text3);
  margin-top: 3px;
  text-align: right;
}
.chat-time-other {
  font-size: 10px;
  color: var(--text3);
  margin-top: 3px;
}

/* ================================================================
   ACTIVE CALL PAGE — full redesign
   ================================================================ */

/* ── Top bar ── */
.call-topbar {
  height: 52px;
  background: #0d1117;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  flex-shrink: 0;
  z-index: 10;
}
.call-topbar-left  { display: flex; align-items: center; gap: 10px; }
.call-topbar-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.call-topbar-right { display: flex; align-items: center; }

.call-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  flex-shrink: 0;
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── Call stage (dark left area) ── */
.call-stage {
  flex: 1;
  position: relative;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, #1a2235 0%, #0d1117 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

/* faint grid texture */
.call-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ── Remote user card ── */
.call-remote-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 1;
  animation: callCardIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes callCardIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ── Self tile (picture-in-picture corner) ── */
.call-self-tile {
  position: absolute;
  bottom: 96px;
  right: 20px;
  width: 120px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 8px;
  gap: 6px;
  z-index: 2;
}
.call-self-avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Controls bar ── */
.call-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 84px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 3;
}
.call-ctrl-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.call-ctrl-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.call-ctrl-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.06);
}
.call-ctrl-btn.muted {
  background: rgba(220,38,38,0.3);
  border: 1px solid rgba(220,38,38,0.5);
}
.call-ctrl-end {
  background: #dc2626 !important;
  width: 52px;
  height: 52px;
}
.call-ctrl-end:hover {
  background: #b91c1c !important;
}
.call-ctrl-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── Chat panel (right column) ── */
.call-chat-panel {
  width: 340px;
  flex-shrink: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.call-chat-header {
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: var(--surface2);
}
.call-chat-input-wrap {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  background: var(--surface);
}
.call-chat-input {
  flex: 1;
  font-size: 13px;
  border-radius: 10px;
}
.call-chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.call-chat-send-btn:hover {
  background: var(--accent2);
  transform: scale(1.05);
}