:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(19, 28, 49, 0.75);
  --bg-card-hover: rgba(28, 41, 71, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.4);

  --accent-cyan: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(129, 140, 248, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Header */
header {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-glow);
}

.brand-info h1 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: linear-gradient(120deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.badge.online {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.badge.recording {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  animation: pulse-border 2s infinite;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Nav Tabs */
nav.tabs {
  display: flex;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(11, 17, 33, 0.5);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: #fff;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

/* Main Container */
main {
  flex: 1;
  padding: 24px 28px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.tab-content {
  display: none;
  animation: fadeIn 0.25s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

/* Buttons */
.btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  border-color: rgba(56, 189, 248, 0.5);
  color: #04101e;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8, #7dd3fc);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: rgba(16, 185, 129, 0.4);
  color: #fff;
}

.btn-danger {
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fff;
}

.btn-amber {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border-color: rgba(245, 158, 11, 0.4);
  color: #000;
}

/* Conference Hero */
.conf-hero {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.conf-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.conf-room-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.conf-number {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
}

.conf-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Participant Grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.member-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.member-card.talking {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.member-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
}

.member-card.talking .member-avatar {
  background: linear-gradient(135deg, #059669, #10b981);
}

.member-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.member-num {
  font-size: 12px;
  color: var(--text-muted);
}

.member-actions {
  display: flex;
  gap: 6px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.icon-btn.danger:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
  color: #f43f5e;
}

/* Web Dialer in Page */
.dialer-container {
  max-width: 380px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.dialer-screen {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 20px;
  min-height: 64px;
  color: #fff;
}

.dialpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dial-digit {
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.dial-digit span.sub {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 400;
}

.dial-digit:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}

.dial-digit:active {
  transform: scale(0.95);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

th {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Audio Player */
.audio-player-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

audio {
  height: 36px;
  border-radius: 999px;
  outline: none;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-md);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-cyan);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-top: 8px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-cyan);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Toast */
#toastContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

.toast.success { border-color: rgba(16, 185, 129, 0.5); }
.toast.error { border-color: rgba(244, 63, 94, 0.5); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  header { padding: 14px 16px; flex-direction: column; gap: 12px; align-items: flex-start; }
  nav.tabs { padding: 10px 16px; }
  main { padding: 16px; }
  .conf-hero { padding: 20px; }
  .meet-dock { bottom: 12px; padding: 8px 14px; gap: 8px; }
  .dock-btn { width: 42px; height: 42px; font-size: 17px; }
  .dock-btn-hangup { padding: 10px 18px; font-size: 13px; }
  .local-pip-container { width: 140px; }
}

/* ==========================================================================
   GOOGLE MEET & YANDEX TELEMOST CINEMA STAGE
   ========================================================================== */

main.in-call-active {
  max-width: 100% !important;
  padding: 10px 18px !important;
  transition: padding 0.3s ease;
}

.meet-stage {
  width: 100%;
  min-height: calc(100vh - 160px);
  height: calc(100vh - 160px);
  max-height: 920px;
  background: radial-gradient(circle at 50% 20%, #0d1527 0%, #060913 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
}

.meet-stage.fullscreen,
.meet-stage:fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 99999 !important;
  margin: 0 !important;
}

/* Meet Header */
.meet-header {
  padding: 14px 24px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.meet-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.meet-room-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.meet-room-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.meet-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.meet-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meet-badge-live {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.meet-badge-secure {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.meet-badge-rec {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.4);
  animation: pulse 1.5s infinite;
}

.meet-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.meet-timer-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.meet-timer {
  font-size: 24px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #10b981;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.meet-tool-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all 0.2s;
}

.meet-tool-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.06);
}

/* Center Meet Canvas */
.meet-canvas {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

/* 1. Video Call Stage */
.meet-video-stage {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.85);
}

.remote-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.remote-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 5;
}

.local-pip-container {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 220px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  background: #0f172a;
  z-index: 20;
  transition: all 0.2s ease;
}

.local-pip-container:hover {
  border-color: rgba(56, 189, 248, 0.8);
  transform: scale(1.02);
}

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

.local-pip-label {
  position: absolute;
  bottom: 6px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #fff;
}

.local-cam-off {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: var(--text-dim);
  font-size: 12px;
}

/* 2. P2P Direct Audio Stage */
.meet-avatar-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
}

.p2p-avatar-glow {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p2p-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.45);
  z-index: 2;
}

.p2p-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.5);
  animation: p2pPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes p2pPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.p2p-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.p2p-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.p2p-voice-wave {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  margin-top: 6px;
}

.wave-bar {
  width: 5px;
  height: 12px;
  border-radius: 3px;
  background: #10b981;
  animation: waveMotion 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 20px; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 28px; }
.wave-bar:nth-child(4) { animation-delay: 0.1s; height: 16px; }
.wave-bar:nth-child(5) { animation-delay: 0.3s; height: 14px; }

@keyframes waveMotion {
  0% { transform: scaleY(0.4); background: #10b981; }
  100% { transform: scaleY(1.3); background: #38bdf8; }
}

/* 3. Group Conference Grid (Room 300) */
.meet-grid-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.meet-tiles-container {
  display: grid;
  gap: 16px;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  align-content: center;
}

.meet-tiles-container.count-1 {
  grid-template-columns: 1fr;
  max-width: 720px;
  max-height: 480px;
  margin: auto;
}

.meet-tiles-container.count-2 {
  grid-template-columns: 1fr 1fr;
}

.meet-tiles-container.count-3,
.meet-tiles-container.count-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.meet-tiles-container.count-many {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.meet-tile {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(14px);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  min-height: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.meet-tile.speaking {
  border-color: #10b981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.06);
}

.meet-tile-avatar-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.meet-tile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.meet-tile-waves {
  display: none;
  align-items: center;
  gap: 4px;
  height: 18px;
}

.meet-tile-waves.active {
  display: flex;
}

.meet-tile-waves span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: #10b981;
  animation: tileWave 1s ease-in-out infinite alternate;
}

.meet-tile-waves span:nth-child(2) { animation-delay: 0.15s; height: 14px; }
.meet-tile-waves span:nth-child(3) { animation-delay: 0.3s; height: 18px; }
.meet-tile-waves span:nth-child(4) { animation-delay: 0.1s; height: 10px; }

@keyframes tileWave {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.4); }
}

.meet-tile-name-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: calc(100% - 70px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meet-tile-status-tag {
  position: absolute;
  bottom: 14px;
  right: 14px;
}

.meet-mic-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meet-mic-badge.muted {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.5);
}

.meet-tile-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.meet-tile:hover .meet-tile-actions {
  opacity: 1;
}

.icon-btn-meet {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.icon-btn-meet:hover {
  background: rgba(255, 255, 255, 0.2);
}

.icon-btn-meet.danger:hover {
  background: rgba(239, 68, 68, 0.8);
}

/* 4. Bottom Floating Control Dock */
.meet-dock {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(24px);
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  z-index: 50;
}

.dock-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
  transition: all 0.2s ease;
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.dock-btn.active {
  background: #0284c7;
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.5);
}

.dock-btn.danger-active {
  background: #ef4444 !important;
  border-color: #f87171 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}

.dock-btn.rec-active {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #f59e0b;
  animation: pulse 1.5s infinite;
}

.dock-btn-hangup {
  background: #ef4444;
  border: 1px solid #f87171;
  color: #fff;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.45);
  transition: all 0.2s ease;
}

.dock-btn-hangup:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.65);
}

.dock-tooltip {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.dock-btn:hover .dock-tooltip {
  opacity: 1;
}

/* DTMF Popover */
.meet-dtmf-popover {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 16px;
  width: 220px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  z-index: 60;
}

.dtmf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.dtmf-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
}

.dtmf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dtmf-btn {
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.dtmf-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
}

