@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* InnovAI Official Palette (from website) */
  --primary: #7C3AED;
  --primary-hover: #6D28D9;
  --primary-gradient: linear-gradient(135deg, #7C3AED 0%, #6366F1 50%, #00B2FE 100%);
  --primary-glow: rgba(124, 58, 237, 0.22);

  --accent-cyan: #00D4FF;
  --accent-blue: #0284C7;
  --accent-blue-light: #E0F2FE;
  --accent-blue-border: #BAE6FD;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  --bg-base: #F8FAFC;
  --bg-sidebar: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-input: #F1F5F9;
  --bg-hover: #F1F5F9;
  --bg-active: #EEF2FF;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --border: #E2E8F0;
  --border-active: #818CF8;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);

  --sidebar-width: 260px;
  --members-width: 240px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: 'Inter', sans-serif; background: var(--bg-base); color: var(--text-primary); overflow: hidden; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─── APP SHELL ─── */
#app { display: none; height: 100vh; width: 100vw; background: var(--bg-base); }
#app.visible { display: flex; }

/* ─── TOP NAVBAR (MATCHING WEBSITE HEADER) ─── */
.top-nav {
  height: 64px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo img { height: 38px; object-fit: contain; }
.brand-logo span { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 800; color: #0F172A; letter-spacing: -0.5px; }
.brand-logo span strong { color: var(--primary); }

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ─── SIDEBAR ─── */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-logo {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
}
.sidebar-logo img { height: 36px; object-fit: contain; }
.sidebar-logo span { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 800; color: var(--text-primary); }

.sidebar-section { padding: 12px 0; }
.sidebar-section-label {
  padding: 6px 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-section-label button {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.sidebar-section-label button:hover { background: var(--primary-gradient); color: #fff; transform: scale(1.1); border-color: transparent; }

.channel-item {
  padding: 9px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  margin: 2px 12px;
  transition: all var(--transition);
}
.channel-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.channel-item.active { background: var(--primary-gradient); color: #FFFFFF; font-weight: 700; box-shadow: 0 4px 14px var(--primary-glow); }

.sidebar-user {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: #FFFFFF;
  transition: background var(--transition);
}
.sidebar-user:hover { background: var(--bg-hover); }
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
  flex-shrink: 0; overflow: hidden; position: relative;
  box-shadow: 0 4px 10px var(--primary-glow);
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.status-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid #FFFFFF;
}
.status-dot.active { background: var(--success); }
.status-dot.away { background: var(--warning); }
.status-dot.busy, .status-dot.dnd { background: var(--danger); }
.status-dot.offline { background: var(--text-muted); }

.user-info { flex: 1; min-width: 0; }
.user-info .name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.user-info .role-badge { font-size: 11px; color: var(--primary); font-weight: 700; text-transform: uppercase; }

/* ─── MAIN AREA ─── */
.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-base); }

/* ─── CHANNEL HEADER ─── */
.channel-header {
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.channel-header h2 { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 800; color: var(--text-primary); }
.channel-header p { font-size: 13px; color: var(--text-secondary); }
.header-actions { margin-left: auto; display: flex; gap: 10px; }
.btn-icon {
  background: var(--bg-input); border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 18px;
  transition: all var(--transition);
}
.btn-icon:hover { background: var(--primary-gradient); color: #fff; border-color: transparent; transform: scale(1.08); box-shadow: 0 4px 12px var(--primary-glow); }
.btn-icon.active { color: var(--primary); border-color: var(--primary); }

/* ─── MESSAGES ─── */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-base);
}

.message-group { display: flex; gap: 14px; padding: 10px 14px; border-radius: var(--radius); transition: background var(--transition); background: #FFFFFF; border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-bottom: 4px; }
.message-group:hover { box-shadow: var(--shadow-md); }
.message-group .avatar { flex-shrink: 0; margin-top: 2px; }
.message-content { flex: 1; min-width: 0; }
.message-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.message-author { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.message-time { font-size: 11px; color: var(--text-muted); }
.message-text { font-size: 14px; line-height: 1.6; color: var(--text-secondary); word-break: break-word; }
.message-text .mention { color: var(--primary); font-weight: 700; background: #EEF2FF; padding: 2px 8px; border-radius: 6px; }
.message-system { font-size: 13px; color: var(--text-secondary); text-align: center; padding: 12px; font-style: italic; background: #EEF2FF; border-radius: var(--radius); margin: 8px 0; border: 1px solid #C7D2FE; }

/* ─── MESSAGE INPUT ─── */
.message-input-area {
  padding: 16px 28px 24px;
  border-top: 1px solid var(--border);
  background: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
}
.typing-indicator { font-size: 12px; color: var(--text-muted); height: 18px; margin-bottom: 6px; font-style: italic; }
.input-box {
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 12px 18px;
  transition: all var(--transition);
}
.input-box:focus-within { border-color: var(--primary); background: #FFFFFF; box-shadow: 0 0 16px var(--primary-glow); }
.input-box textarea {
  flex: 1; background: none; border: none; outline: none; resize: none;
  color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: 14px;
  line-height: 1.5; max-height: 160px; min-height: 24px;
}
.input-box textarea::placeholder { color: var(--text-muted); }
.input-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.send-btn {
  background: var(--primary-gradient); border: none; color: #fff; width: 42px; height: 42px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: all var(--transition); box-shadow: 0 4px 14px var(--primary-glow);
}
.send-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px var(--primary-glow); }

/* ─── PANELS (right side) ─── */
.right-panel {
  width: var(--members-width);
  min-width: var(--members-width);
  background: #FFFFFF;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.panel-header { padding: 20px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.member-item { padding: 10px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; border-radius: var(--radius-pill); margin: 2px 10px; transition: all var(--transition); }
.member-item:hover { background: var(--bg-hover); }
.member-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }

/* ─── MODALS ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; width: 100%; max-width: 540px; box-shadow: var(--shadow-lg);
  position: relative;
}
.modal::before {
  content: ''; position: absolute; top: 16px; left: 20px; display: flex; gap: 6px;
  width: 10px; height: 10px; border-radius: 50%; background: #FF5F56;
  box-shadow: 16px 0 0 #FFBD2E, 32px 0 0 #27C93F;
}
.modal h3 { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; margin-top: 10px; margin-bottom: 24px; color: var(--text-primary); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; font-size: 12px; font-weight: 800; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.8px; }
.form-input {
  width: 100%; padding: 12px 18px; background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text-primary); font-family: 'Inter', sans-serif;
  font-size: 14px; outline: none; transition: all var(--transition);
}
.form-input:focus { border-color: var(--primary); background: #FFFFFF; box-shadow: 0 0 14px var(--primary-glow); }
.form-input::placeholder { color: var(--text-muted); }

/* ─── BUTTONS (INNOVAI OFFICIAL WEBSITE STYLE) ─── */
.btn {
  padding: 12px 26px; border-radius: var(--radius-pill); border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; transition: all var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn-primary {
  background: var(--primary-gradient); color: #FFFFFF;
  box-shadow: 0 8px 22px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 12px 28px var(--primary-glow); opacity: 0.95;
}
.btn-secondary {
  background: #FFFFFF; color: var(--primary); border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--bg-active); transform: translateY(-1px);
}
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,0.3); }
.btn-danger:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: 12px; }

/* ─── LOGIN PAGE (MATCHING INNOVAI OFFICIAL WEBSITE LANDING) ─── */
#loginPage {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08), transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(0, 212, 255, 0.08), transparent 40%),
              #F8FAFC;
}
.login-card {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 28px;
  padding: 52px 48px; width: 100%; max-width: 460px; text-align: center;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08); position: relative;
}
.login-card::before {
  content: ''; position: absolute; top: 20px; left: 24px; display: flex; gap: 6px;
  width: 10px; height: 10px; border-radius: 50%; background: #FF5F56;
  box-shadow: 16px 0 0 #FFBD2E, 32px 0 0 #27C93F;
}
.login-logo { height: 60px; object-fit: contain; margin-bottom: 14px; margin-top: 10px; }
.login-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; font-weight: 500; }
.login-title { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 800; margin-bottom: 6px; color: #0F172A; }
.login-btn {
  width: 100%; padding: 15px; background: var(--primary-gradient);
  border: none; border-radius: var(--radius-pill); color: #fff; font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: all var(--transition);
  margin-top: 12px; box-shadow: 0 8px 24px var(--primary-glow);
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--primary-glow); }
.login-error { background: #FEE2E2; border: 1px solid #FCA5A5; border-radius: var(--radius); padding: 12px 16px; font-size: 13px; color: var(--danger); margin-bottom: 16px; display: none; }
.login-error.show { display: block; }

/* ─── INTERACTIVE CALENDAR UI ─── */
.calendar-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.calendar-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}
.calendar-controls { display: flex; gap: 10px; align-items: center; }
.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.calendar-day {
  min-height: 110px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all var(--transition);
}
.calendar-day:hover {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.calendar-day.other-month { opacity: 0.35; background: #F1F5F9; }
.calendar-day.today { background: #EEF2FF; border-color: var(--primary); }
.calendar-day .day-num {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.calendar-day.today .day-num {
  background: var(--primary-gradient);
  color: #FFFFFF;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.calendar-events { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.event-chip {
  background: var(--primary-gradient);
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 4px rgba(124,58,237,0.25);
  transition: transform 0.15s ease;
}
.event-chip:hover {
  transform: scale(1.03);
}

/* ══════════════════════════════════════════════════════════════
   FULL SCREEN VIDEO CALL OVERLAY
   ══════════════════════════════════════════════════════════════ */
.call-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #0F172A !important;
  z-index: 999999 !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #FFFFFF !important;
  font-family: 'Inter', sans-serif !important;
}

.call-grid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.video-tile {
  position: relative;
  background: #1E293B;
  border-radius: 16px;
  overflow: hidden;
  flex: 1;
  width: 100%;
  max-width: 540px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-video {
  font-size: 64px;
  color: rgba(255,255,255,0.4);
}

.tile-name {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0,0,0,0.65);
  padding: 5px 14px;
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.call-controls {
  display: flex;
  gap: 14px;
  padding: 12px 24px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  align-items: center;
}

.call-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 18px;
  min-width: 90px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.call-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.call-action-btn .icon {
  font-size: 22px;
  line-height: 1;
}

.call-action-btn .label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.call-action-btn.active {
  background: rgba(239, 68, 68, 0.3);
  border-color: #EF4444;
}

.call-action-btn.active .label {
  color: #EF4444;
}

.call-action-btn.hangup {
  background: #EF4444;
  border-color: #DC2626;
  color: #FFFFFF;
}

.call-action-btn.hangup:hover {
  background: #DC2626;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.call-action-btn.hangup .label {
  color: #FFFFFF;
  font-weight: 700;
}

/* ─── BACKGROUND EFFECTS PICKER POPUP ─── */
.bg-picker-menu {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  z-index: 100000;
  width: 380px;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translate(-50%, 15px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.bg-options-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.bg-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
}

.bg-option:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.bg-option.active {
  border-color: #00D4FF;
  background: rgba(0, 212, 255, 0.15);
}

.bg-preview {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.bg-option span {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* VIDEO CAMERA EFFECT STYLES */
.video-tile video, .video-tile canvas {
  filter: none !important;
  transform: none !important;
}

.incoming-call {
  position: fixed;
  top: 28px;
  right: 28px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px rgba(124, 58, 237, 0.4);
  z-index: 9999999;
  border: 2px solid rgba(124, 58, 237, 0.8);
  width: 360px;
  color: #FFFFFF;
  animation: pulseCallBorder 1.5s infinite alternate;
}

@keyframes pulseCallBorder {
  0% { box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(124, 58, 237, 0.4); }
  100% { box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 35px rgba(124, 58, 237, 0.9); }
}

.incoming-call h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #A78BFA;
  display: flex;
  align-items: center;
  gap: 8px;
}

.incoming-call p {
  font-size: 14px;
  color: #E2E8F0;
  margin-bottom: 18px;
  line-height: 1.4;
}

.incoming-call .actions {
  display: flex;
  gap: 10px;
}

.incoming-call .actions button {
  flex: 1;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 12px;
}

/* ─── TOAST ─── */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #FFFFFF; border: 1.5px solid var(--border); border-radius: var(--radius-pill); padding: 14px 22px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease; max-width: 360px; color: var(--text-primary); }
.toast.success { border-color: var(--success); color: var(--success); }
.toast.error { border-color: var(--danger); color: var(--danger); }

/* ─── WELCOME SCREEN ─── */
.welcome-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; color: var(--text-secondary); text-align: center; padding: 40px; }
.welcome-screen img { height: 80px; object-fit: contain; }
.welcome-screen h3 { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 800; color: var(--text-primary); }
.welcome-screen p { font-size: 15px; color: var(--text-secondary); max-width: 480px; line-height: 1.6; }

/* ─── ANIMATIONS ─── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── ADMIN PANEL STYLES ─── */
.admin-panel {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: var(--bg-main);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.stat-card .label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-card .value {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-card .icon {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 24px;
  opacity: 0.8;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.data-table th {
  background: #F8FAFC;
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #F8FAFC;
}

.role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.role-badge.admin, .role-badge.superadmin {
  background: #FEE2E2;
  color: #DC2626;
}

.role-badge.member {
  background: #E0E7FF;
  color: #4F46E5;
}
