/* Reset & Base Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #ffffff;
  color: #000000;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* SMOOTH INTERACTION ENGINE */
button {
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

button:active {
  transform: translateY(0);
}

/* SPLASH SCREEN */
#splashScreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
}

.splash-title {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 24px;
  color: #000000;
  text-align: center;
}

.premium-btn {
  background-color: #000000;
  color: #ffffff;
  padding: 16px 52px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.premium-btn:hover {
  background-color: #222222;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

/* MODALS & OVERLAYS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 16px;
  animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px;
  width: 490px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  position: relative;
  animation: scaleUpModal 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #000000;
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e2e2e5;
  background: #f8f8fa;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.modal-input:focus {
  border-color: #000000;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.btn-cancel {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  color: #000000;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 13px;
}

.btn-create, .btn-danger {
  background: #000000;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.btn-danger {
  background: #dc2626;
}

/* CIRCLE LOADING SPINNER & STATUS BALL INTERFACE */
.conn-circle-spinner {
  width: 64px;
  height: 64px;
  border: 5px solid #eaeaea;
  border-top: 5px solid #000000;
  border-radius: 50%;
  animation: spinConnCircle 0.8s linear infinite;
}

@keyframes spinConnCircle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.status-result-ball {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: scaleUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.status-result-ball.ball-green {
  background-color: #22c55e;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4);
}

.status-result-ball.ball-red {
  background-color: #ef4444;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.4);
}

/* GENDER & AVATAR GALLERY STYLES */
.gender-selector-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}

.gender-chip {
  padding: 8px 24px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  background: #f8f8f8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.gender-chip.selected {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.avatar-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 14px;
  background: #fcfcfc;
  border: 1px solid #eeeeee;
}

.avatar-preset-item {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-preset-item:hover {
  transform: scale(1.12);
}

.avatar-preset-item.selected {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.25);
  transform: scale(1.06);
}

/* AGE RESTRICTION BLOCK SCREEN */
#underAgeBlockScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  color: #000000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  animation: fadeInModal 0.3s ease;
}

.blocked-badge {
  font-size: 26px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 12px;
}

/* MAIN PAGE DASHBOARD */
#mainPage {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  animation: fadeInModal 0.35s ease;
}

.header {
  width: 100%;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f2f2f2;
  background: #ffffff;
  z-index: 10;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 2px;
  color: #000000;
}

.user-profile-badge {
  background: #f5f5f5;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-join {
  background: #000000;
  color: #ffffff;
  border-radius: 24px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-header-join:hover {
  background: #222222;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.clean-icon-btn {
  background: none !important;
  padding: 0 !important;
  cursor: pointer;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.clean-icon-btn:hover {
  opacity: 0.6;
  transform: scale(1.12);
}

.dashboard-body {
  display: flex;
  flex: 1;
  padding: 30px 48px;
  overflow-y: auto;
}

.rooms-section {
  width: 660px;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #666666;
}

.rooms-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding: 4px;
}

.room-box {
  background-color: #ffffff;
  padding: 18px 24px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #f2f2f4;
}

.room-box:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.room-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.room-timing-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f7ff;
  color: #0284c7;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 5px;
  border: 1px solid #e0f2fe;
}

.retention-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef2f2;
  color: #dc2626;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 5px;
  border: 1px solid #fee2e2;
}

.status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  background-color: #000000;
  color: #ffffff;
  width: fit-content;
  margin-top: 4px;
}

.status-badge.finished-badge {
  background-color: #ef4444;
}

.action-btn-item {
  background: #000000;
  color: #ffffff;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.edit-room-btn {
  background: #f3f4f6 !important;
  color: #111827 !important;
  border-radius: 50% !important;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 2px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  border: 1px solid #e5e7eb !important;
}

.edit-room-btn:hover {
  background: #000000 !important;
  color: #ffffff !important;
  transform: scale(1.15);
}

.delete-room-btn {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border-radius: 50% !important;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.delete-room-btn:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  transform: scale(1.15);
}

/* FULL PAGE VIDEO CALL INTERFACE */
#videoCallPage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  color: #000000;
  animation: fadeInModal 0.35s ease;
}

.call-header {
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  z-index: 10;
  height: 64px;
  position: relative;
}

.call-title-container {
  display: flex;
  flex-direction: column;
}

.call-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.call-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.powered-by-brand {
  font-size: 11px;
  color: #666666;
  font-weight: 500;
  margin-top: 1px;
  letter-spacing: 0.3px;
}

.status-indicator-ball {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.status-indicator-ball.red {
  background-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  animation: redBlink 1.8s infinite;
}

.status-indicator-ball.green {
  background-color: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

@keyframes redBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.e2ee-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.badge-unread {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #000000;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.members-dropdown-menu {
  position: absolute;
  top: 60px;
  right: 110px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  width: 270px;
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: scaleUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border: 1px solid #f0f0f0;
}

.members-dropdown-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888888;
  padding: 4px 6px 8px;
  border-bottom: 1px solid #f2f2f2;
}

.member-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-list-item:hover {
  background: #f4f4f5;
  transform: translateX(3px);
}

.member-list-item img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.inspected-profile-card {
  width: 360px !important;
  padding: 32px 24px !important;
  align-items: center;
  position: relative;
}

.profile-close-cross {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #888;
}

.profile-close-cross:hover {
  color: #000000;
  transform: scale(1.15) rotate(90deg);
}

.inspected-avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  border: 3px solid #000000;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.inspected-avatar-img:hover {
  transform: scale(1.05);
}

.inspected-age-badge {
  background: #f0f0f0;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-top: 6px;
}

.video-call-viewport {
  flex: 1;
  position: relative;
  width: 100%;
  height: calc(100vh - 148px);
  display: flex;
  overflow: hidden;
  padding: 16px 20px;
  background-color: #fafafa;
}

.center-grid-container {
  flex: 1;
  display: grid;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.center-grid-container.layout-extended {
  display: flex;
  gap: 16px;
}

.center-grid-container.layout-extended .video-box.box-active-extended {
  flex: 1;
  height: 100%;
  max-height: 100%;
  box-shadow: 0 14px 40px rgba(0,0,0,0.22);
}

.extended-side-column {
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  height: 100%;
  animation: fadeInModal 0.4s ease;
}

.extended-side-column .video-box {
  height: 140px;
  flex-shrink: 0;
}

.video-box {
  background: #111111;
  border-radius: 20px;
  width: 100%;
  height: 100%;
  max-height: 520px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.camera-off-avatar-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #18181b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5;
}

.avatar-toggle-shape {
  cursor: pointer;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border: 2px solid #ffffff;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-toggle-shape.shape-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
}

.avatar-toggle-shape.shape-box {
  width: 140px;
  height: 140px;
  border-radius: 20px;
}

.camera-off-avatar-view .avatar-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}

.video-user-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  z-index: 10;
}

.box-extend-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.65);
  color: #ffffff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.box-extend-btn:hover {
  background: #000000;
  transform: scale(1.15);
}

.local-camera-floating-box {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 220px;
  height: 150px;
  background: #111111;
  border-radius: 18px;
  overflow: hidden;
  z-index: 30;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  border: 2px solid transparent;
  transform: translateX(0);
}

.local-camera-floating-box:hover {
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.4);
}

.local-camera-floating-box.pos-left {
  transform: translateX(calc(-100vw + 268px));
}

.local-camera-floating-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.change-pos-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 15;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: fadeInModal 0.2s ease;
}

.change-pos-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: scale(1.06);
}

.meeting-footer-bar {
  height: 84px;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  z-index: 20;
  padding: 0 20px;
  position: relative;
}

.footer-control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #eeeeee;
  background: #f7f7f7;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-control-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.footer-control-btn.active-off {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  animation: iconPulse 0.3s ease;
}

.btn-cut-call {
  background: #ef4444 !important;
  color: #ffffff !important;
  width: 56px;
  height: 56px;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

.btn-cut-call:hover {
  background: #dc2626 !important;
  transform: scale(1.15) !important;
}

@keyframes iconPulse {
  0% { transform: scale(0.85); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* REACTION POPUP DRAWER */
.reactions-popup-menu {
  position: fixed;
  bottom: 96px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(0,0,0,0.2);
  width: 350px;
  max-width: calc(100vw - 28px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 6500;
  border: 1px solid #eaeaea;
  animation: scaleUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reaction-tabs {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
  gap: 10px;
}

.reaction-tab-btn {
  flex: 1;
  padding: 7px;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: #888888;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.reaction-tab-btn.active {
  color: #000000;
  background: #f2f2f2;
}

.emoji-grid-panel {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  user-select: none;
  -webkit-user-select: none;
}

.emoji-click-item {
  font-size: 22px;
  padding: 5px 2px;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.15s ease, background-color 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-click-item:hover, .emoji-click-item:active {
  transform: scale(1.25);
  background: #f2f2f4;
}

.animation-options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.anim-option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f8f8f8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.anim-option-row:hover, .anim-option-row:active {
  background: #000000;
  color: #ffffff;
  transform: translateX(4px);
}

.animation-viewport-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 100;
}

.anim-particle {
  position: absolute;
  user-select: none;
  pointer-events: none;
  font-size: 32px;
}

/* MINI PIECES OF PAPERS (CONFETTI RAIN) */
.confetti-paper {
  position: absolute;
  opacity: 0.95;
  border-radius: 2px;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

@keyframes confettiRainFall {
  0% {
    transform: translateY(-40px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotateX(720deg) rotateY(1080deg) rotateZ(360deg);
    opacity: 0;
  }
}

@keyframes riseToTop {
  0% { transform: translateY(105vh) scale(0.6); opacity: 1; }
  50% { opacity: 1; }
  100% { transform: translateY(-80px) scale(1.2); opacity: 0; }
}

@keyframes floatRightSide {
  0% { transform: translateY(80vh) scale(0.6); opacity: 1; right: 30px; }
  100% { transform: translateY(10vh) scale(1.5); opacity: 0; right: 50px; }
}

.drawer-panel {
  position: fixed;
  top: 64px;
  right: -420px;
  width: 390px;
  height: calc(100vh - 64px);
  background: #ffffff;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0,0,0,0.12);
  border-left: 1px solid #f0f0f0;
}

.drawer-panel.open {
  right: 0;
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #000000;
}

.drawer-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.chat-messages-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  position: relative;
  touch-action: pan-y;
  user-select: none;
  animation: fadeInModal 0.25s ease;
}

.chat-msg-wrapper.self {
  align-self: flex-end;
}

.chat-msg-bubble {
  background: #f0f0f0;
  color: #000000;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  cursor: grab;
  transition: transform 0.15s ease;
}

.chat-msg-wrapper.self .chat-msg-bubble {
  background: #000000;
  color: #ffffff;
}

.reply-quote-box {
  border-left: 3px solid #000000;
  background: rgba(0,0,0,0.06);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin-bottom: 6px;
  color: #444;
}

.chat-msg-wrapper.self .reply-quote-box {
  border-left-color: #ffffff;
  background: rgba(255,255,255,0.15);
  color: #eee;
}

.swipe-reply-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4f4f5;
  padding: 6px 14px;
  border-left: 4px solid #000000;
  font-size: 12px;
  color: #333;
  animation: fadeInModal 0.2s ease;
}

.attachment-preview-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f0f2;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  margin-top: 6px;
  animation: fadeInModal 0.2s ease;
}

.chat-recipient-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  color: #666;
}

.recipient-select-input {
  background: #f4f4f6;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  outline: none;
  flex: 1;
}

.chat-doc-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  padding: 10px 14px;
  border-radius: 12px;
  margin-top: 6px;
  color: #000000;
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.chat-doc-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.doc-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: #ffffff;
  flex-shrink: 0;
}

.badge-pdf { background: #ef4444; }
.badge-word { background: #2563eb; }
.badge-txt { background: #64748b; }

.doc-file-info {
  flex: 1;
  overflow: hidden;
}

.doc-file-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-file-size {
  font-size: 10px;
  color: #777;
}

.doc-download-btn {
  color: #000000;
  transition: transform 0.2s;
}

.doc-download-btn:hover {
  transform: scale(1.2);
}

.chat-media-box {
  max-width: 220px;
  max-height: 160px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
  cursor: pointer;
  position: relative;
}

.chat-media-box img, .chat-media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.chat-media-box:hover img, .chat-media-box:hover video {
  transform: scale(1.05);
}

.center-media-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.25s ease;
}

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lightbox-close-btn:hover {
  transform: scale(1.2);
}

.lightbox-content-box {
  max-width: 85vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0,0,0,0.6);
  animation: scaleUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox-content-box img, .lightbox-content-box video {
  max-width: 85vw;
  max-height: 82vh;
  object-fit: contain;
}

#textPadArea {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 14px;
  line-height: 1.6;
  padding: 16px;
}

.toast-notification {
  position: fixed;
  top: 24px;
  right: 24px;
  background-color: #000000;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 99999;
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: calc(100vw - 48px);
  text-align: center;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUpModal {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* RESPONSIVE ENGINE */
@media (max-width: 680px) {
  .header {
    padding: 14px 18px;
  }
  .brand-logo {
    font-size: 18px;
    letter-spacing: 1px;
  }
  .user-profile-badge span {
    max-width: 75px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dashboard-body {
    padding: 18px 16px;
  }
  .rooms-section {
    width: 100%;
  }
  .room-box {
    padding: 14px 16px;
  }
  .room-title {
    font-size: 15px;
  }
  .modal-card {
    padding: 24px 18px;
    border-radius: 20px;
  }
  .call-header {
    padding: 10px 16px;
    height: 60px;
  }
  .call-title {
    font-size: 14px;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .call-nav-icons {
    gap: 14px !important;
  }
  .video-call-viewport {
    padding: 8px 10px;
    height: calc(100vh - 134px);
  }
  .meeting-footer-bar {
    height: 74px;
    gap: 14px;
    padding: 0 12px;
  }
  .footer-control-btn {
    width: 44px;
    height: 44px;
  }
  .btn-cut-call {
    width: 50px;
    height: 50px;
  }
  .local-camera-floating-box {
    width: 140px;
    height: 98px;
    bottom: 84px;
    right: 12px;
    border-radius: 14px;
  }
  .local-camera-floating-box.pos-left {
    transform: translateX(calc(-100vw + 164px));
  }
  .drawer-panel {
    top: 60px;
    width: 100vw;
    right: -100vw;
    height: calc(100vh - 60px);
  }
  .drawer-panel.open {
    right: 0;
  }
  .members-dropdown-menu {
    right: 14px;
    top: 56px;
    width: calc(100vw - 28px);
    max-width: 290px;
  }
  .reactions-popup-menu {
    bottom: 86px;
    width: calc(100vw - 24px);
    max-width: 370px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    padding: 12px;
    border-radius: 18px;
  }
  .emoji-grid-panel {
    grid-template-columns: repeat(7, 1fr);
    max-height: 190px;
    gap: 4px;
  }
  .emoji-click-item {
    font-size: 21px;
    padding: 6px 0;
  }
}