/* ==========================================================================
   RetroChat (Pre-Alpha) — 1:1 Skype 2010 UI Stylesheet
   Matches Screenshot 1 (Login Window) & Screenshot 3 (Main Messenger Window)
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --skype-blue: #00aff0;
  --skype-blue-dark: #0078d4;
  --skype-header-top: #2c8ef4;
  --skype-header-bot: #1368ce;
  --skype-ice-bg: #dcecfc;
  --skype-tab-bg: #d2e5f7;
  --skype-border: #9cb8d2;
  --skype-text: #1e293b;
  --skype-link: #0066cc;
  --btn-radius: 14px;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: "Tahoma", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  color: #1e293b;
  background: #3a6ea5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.ui-icon {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  flex-shrink: 0;
}

.ui-icon-sm {
  width: 13px;
  height: 13px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   SCREEN 1: 1:1 SKYPE 2010 LOGIN WINDOW ("Welcome to RetroChat.")
   ========================================================================== */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #b5d3f0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.skype-login-window {
  width: 100vw;
  height: 100dvh;
  background: linear-gradient(135deg, #c6dff7 0%, #b5d3f0 50%, #9fc3e6 100%);
  border: none;
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 6px 6px 6px;
}

.skype-aero-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 6px 4px;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.95);
  user-select: none;
}

.skype-aero-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.skype-title-ico {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.skype-aero-title-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-conn-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #94a3b8;
  color: #334155;
}

.auth-conn-pill.online {
  background: #dcfce7;
  border-color: #22c55e;
  color: #15803d;
  font-weight: 700;
}

.aero-close-btn {
  width: 42px;
  height: 20px;
  background: linear-gradient(180deg, #f29b94 0%, #e0473b 50%, #bd2115 51%, #d6453a 100%);
  color: #ffffff;
  border: 1px solid #731810;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.skype-login-menubar {
  background: linear-gradient(180deg, #f8fafc 0%, #e5eaf0 100%);
  border: 1px solid #8ba2b8;
  border-bottom: 1px solid #a8bacb;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #1e293b;
}

.skype-login-menus {
  display: flex;
  gap: 14px;
}

.skype-login-menus span {
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 2px;
}

.skype-login-menus span:hover {
  background: #d0e4f7;
}

.skype-dl-mini-btn {
  background: linear-gradient(180deg, #ffffff 0%, #e2effa 100%);
  border: 1px solid #7da7d0;
  border-radius: 10px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #0066cc;
  cursor: pointer;
}

.skype-dl-mini-btn:hover {
  background: #d0e8fc;
}

/* Sky-Blue Illustrated Canvas */
.skype-login-canvas {
  position: relative;
  flex: 1;
  background: linear-gradient(180deg, #35baee 0%, #16a1e3 65%, #1196d8 100%);
  border: 1px solid #8ba2b8;
  border-top: none;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  min-height: 465px;
}

.skype-bg-art-left {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 220px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.skype-bg-art-right {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 220px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Center White Column inside Login Screen */
.auth-card {
  position: relative;
  z-index: 2;
  width: 365px;
  max-width: 100%;
  background: #ffffff;
  padding: 36px 28px 18px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 24px rgba(0, 65, 115, 0.18);
  overflow-y: auto;
}

.skype-welcome-title {
  text-align: center;
  color: #009fd9;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.skype-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skype-field-label {
  font-size: 12px;
  color: #111827;
  font-weight: 400;
}

.skype-combo-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.skype-text-input {
  width: 100%;
  padding: 5px 24px 5px 7px;
  border: 1px solid #9ca3af;
  border-top-color: #6b7280;
  border-radius: 1px;
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.skype-text-input:focus {
  border-color: #009fd9;
  box-shadow: 0 0 3px rgba(0, 159, 217, 0.45);
}

.skype-combo-arrow {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border: none;
  border-left: 1px solid #cbd5e1;
  font-size: 9px;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skype-combo-arrow:hover {
  background: #dbeafe;
  color: #0284c7;
}

.saved-accounts-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  border: 1px solid #6b7280;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  max-height: 160px;
  overflow-y: auto;
}

.saved-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  font-size: 12.5px;
  color: #111827;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}

.saved-account-row:hover {
  background: #009fd9;
  color: #ffffff;
}

.saved-account-del {
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.7;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 1px 4px;
}

.saved-account-del:hover {
  opacity: 1;
  text-decoration: underline;
}

.skype-pw-eye-btn {
  position: absolute;
  right: 5px;
  background: none;
  border: none;
  font-size: 10.5px;
  color: #0066cc;
  cursor: pointer;
  opacity: 0.85;
}

.skype-inline-link {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  margin-top: 2px;
  color: #0066cc;
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: none;
}

.skype-inline-link:hover {
  text-decoration: underline;
}

.skype-signin-btn-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0 8px 0;
}

.skype-glossy-signin-btn {
  width: 100%;
  padding: 6px 18px;
  border-radius: 16px;
  border: 1px solid #bababa;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 48%, #e4e4e4 52%, #f7f7f7 100%);
  color: #111827;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 1px 0 #ffffff;
}

.skype-glossy-signin-btn:hover {
  border-color: #009fd9;
  background: linear-gradient(180deg, #ffffff 0%, #eaf6fd 50%, #d5eefb 100%);
}

/* Light-Blue Rounded Checkbox Footer Box inside Login Card */
.skype-login-bottom-box {
  background: #e4f3fb;
  border-radius: 5px;
  padding: 10px 14px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skype-check-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #111827;
  cursor: pointer;
}

.skype-guest-divider {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #93c5fd;
}

.skype-guest-row {
  display: flex;
  gap: 5px;
  align-items: center;
}

.skype-mini-pill-btn {
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #7da7d0;
  background: linear-gradient(180deg, #ffffff 0%, #e1effa 100%);
  color: #0f172a;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.skype-mini-pill-btn:hover {
  background: #cde5f9;
}

.auth-error-banner {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  margin-bottom: 8px;
}

.auth-success-banner {
  background: #dcfce7;
  border: 1px solid #22c55e;
  color: #166534;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  margin-bottom: 8px;
}

.auth-server-details {
  margin-top: 8px;
  font-size: 10.5px;
  color: #64748b;
}

.auth-server-details summary {
  cursor: pointer;
}

.username-check-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.name-avail-badge {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #334155;
  white-space: nowrap;
  font-weight: 600;
}

.name-avail-badge.avail {
  background: #dcfce7;
  color: #15803d;
}

.name-avail-badge.taken {
  background: #fee2e2;
  color: #b91c1c;
}

.reg-pfp-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reg-pfp-preview {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #94a3b8;
}

/* ==========================================================================
   SCREEN 2: 1:1 SKYPE 2010 MAIN MESSENGER WINDOW ("RetroChat Pre-Alpha")
   Matches Screenshot 3 (media_1793201770515_ee86d59b.jpg)
   ========================================================================== */
.app-shell {
  width: 100vw;
  height: 100dvh;
  background: linear-gradient(135deg, #c6dff7 0%, #b5d3f0 50%, #9fc3e6 100%);
  padding: 0 6px 6px 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Classic Skype 5.0 Menu Bar directly under native OS Titlebar */
.skype5-menubar {
  background: linear-gradient(180deg, #f8fafc 0%, #e1ebf5 100%);
  border: 1px solid #8ba2b8;
  border-bottom: 1px solid #a3bcd6;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.skype5-menubar-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.skype5-menubar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-badge {
  font-size: 11px;
  color: #334155;
}

.skype5-menu-item {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 2px 7px;
  font-family: inherit;
  font-size: 12px;
  color: #1e293b;
  cursor: pointer;
}

.skype5-menu-item:hover {
  background: #c7dff7;
  border-color: #8cb4dc;
}

/* Main 2-Column Workspace (Left Contacts Sidebar + Resizer + Right Tabbed Main Area) */
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: var(--sidebar-width, 265px) 6px 1fr;
  gap: 0;
  padding: 6px;
  min-height: 0;
  overflow: hidden;
  background: #cfe2f3;
  border: 1px solid #8ba2b8;
  border-top: none;
}

.skype5-sidebar-resizer {
  width: 6px;
  cursor: ew-resize;
  background: transparent;
  position: relative;
  user-select: none;
  touch-action: none;
  transition: background 0.12s;
}

.skype5-sidebar-resizer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  width: 2px;
  height: 32px;
  border-radius: 2px;
  background: #8ba8c7;
}

.skype5-sidebar-resizer:hover,
.skype5-sidebar-resizer.dragging {
  background: rgba(0, 159, 217, 0.28);
}

/* ==========================================================================
   LEFT PANE: 1:1 SKYPE 2010 CONTACTS / RECENT / SERVERS SIDEBAR
   ========================================================================== */
.left-pane {
  display: flex;
  flex-direction: column;
  background: #eaf3fc;
  border: 1px solid #96b3d0;
  border-radius: 4px;
  overflow: hidden;
  min-height: 0;
}

/* Glossy Blue User Bar ("✔ David Budden  🏠") */
.skype5-user-bar {
  background: linear-gradient(180deg, #3294f8 0%, #1c7be3 50%, #1166c9 100%);
  color: #ffffff;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  border-bottom: 1px solid #0d50a1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.skype5-user-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
}

.skype5-user-bar-left strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skype5-mini-pfp {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}

.presence-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #ffffff;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.presence-dot.online { background: #22c55e; }
.presence-dot.away { background: #f59e0b; }
.presence-dot.busy { background: #ef4444; }
.presence-dot.offline { background: #94a3b8; }

.skype5-home-icon-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  color: #ffffff;
  width: 26px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
}

.skype5-home-icon-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Light-Blue Status / Credit Row ("S  £ 1.69 - 1 subscription") */
.skype5-credit-bar {
  background: linear-gradient(180deg, #e7f2fd 0%, #d4e7fa 100%);
  border-bottom: 1px solid #aec9e4;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #1e293b;
  cursor: pointer;
}

.skype5-coin-badge {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fde047 0%, #eab308 100%);
  border: 1px solid #ca8a04;
  color: #713f12;
  font-weight: 800;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skype5-mood-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Classic Segmented Sidebar Tabs ("👤 Contacts | 🕒 Recent (69) | 🏰 Servers | 📩 Req") */
.skype5-sidebar-tabs {
  display: flex;
  background: #cbe0f5;
  padding: 5px 5px 0 5px;
  gap: 2px;
  border-bottom: 1px solid #9dbadd;
  flex-wrap: wrap;
}

.skype5-sidebar-tab {
  flex: 1;
  background: linear-gradient(180deg, #e3effb 0%, #cde1f6 100%);
  border: 1px solid #9dbadd;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  padding: 5px 4px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}

.skype5-sidebar-tab.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  position: relative;
  top: 1px;
  padding-bottom: 6px;
}

.skype5-orange-pill {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 8px;
}

/* Search Bar Row */
.skype5-search-row {
  background: #ffffff;
  padding: 6px 6px;
  border-bottom: 1px solid #dde8f3;
  display: flex;
  align-items: center;
  gap: 5px;
}

.skype5-search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.skype5-search-icon {
  position: absolute;
  left: 7px;
  font-size: 11px;
  opacity: 0.55;
  pointer-events: none;
}

.skype5-search-input {
  width: 100%;
  padding: 4px 8px 4px 23px;
  border: 1px solid #b6cde4;
  border-radius: 12px;
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

.skype5-search-input:focus {
  border-color: #009fd9;
}

.skype5-new-chat-btn {
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid #8eb6dc;
  background: linear-gradient(180deg, #ffffff 0%, #e1f0fc 100%);
  color: #0066cc;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* White Contacts / Conversations / Servers List */
.skype5-list-container {
  flex: 1;
  background: #ffffff;
  overflow-y: auto;
  min-height: 0;
}

.skype5-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.skype5-contact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  font-size: 12.5px;
  color: #1e293b;
}

.skype5-contact-list li:hover,
.skype5-contact-list li.active {
  background: #e1f0fc;
}

.skype5-contact-row-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.skype5-contact-avatar {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.skype5-status-ico {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.skype5-status-ico.online {
  background: #22c55e;
}

.skype5-status-ico.offline {
  background: #cbd5e1;
  color: #64748b;
}

/* Bottom Left Dock ("Add a contact" + "Call phones" + "people online") */
.skype5-bottom-dock {
  background: #eaf3fc;
  border-top: 1px solid #b5cde6;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.skype5-add-contact-row {
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #cde0f2;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0066cc;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.skype5-add-contact-row:hover {
  background: #f0f7fe;
}

.skype5-add-contact-ico {
  background: #e1f0fc;
  border: 1px solid #9ec5ea;
  border-radius: 3px;
  padding: 2px 5px;
  font-size: 11px;
}

.skype5-call-phones-row {
  background: linear-gradient(180deg, #f4f9fe 0%, #dcebfb 100%);
  border: none;
  border-bottom: 1px solid #b5cde6;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e293b;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

.skype5-call-phones-row:hover {
  background: #cfe5fc;
}

.skype5-people-online-bar {
  background: #d5e6f7;
  padding: 4px 10px;
  font-size: 11px;
  color: #64748b;
}

/* ==========================================================================
   RIGHT PANE: TOP TAB BAR + SKYPE HOME VIEW & ACTIVE CONVERSATION VIEW
   ========================================================================== */
.chat-pane {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #96b3d0;
  border-radius: 4px;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}

/* Top Tab Strip ("[S] RetroChat Home | 💬 Global Lobby | [i] Profile | 🏰 Servers | ⬇ Get Pre-Alpha App") */
.skype5-main-tabbar {
  background: linear-gradient(180deg, #cbe0f5 0%, #bad4ef 100%);
  border-bottom: 1px solid #96b3d0;
  padding: 5px 8px 0 8px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  overflow-x: auto;
  flex-shrink: 0;
}

.skype5-main-tab {
  background: linear-gradient(180deg, #e3f0fc 0%, #cce1f7 100%);
  border: 1px solid #96b3d0;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.skype5-main-tab.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  position: relative;
  top: 1px;
  padding-bottom: 7px;
}

.skype5-tab-ico {
  width: 15px;
  height: 15px;
  border-radius: 3px;
}

.skype5-tab-info-ico {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #009fd9;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   VIEW A: SKYPE HOME FEED (Matches Screenshot 3 Right Pane 1:1)
   ========================================================================== */
.skype5-home-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow-y: auto;
  min-height: 0;
}

.skype5-learn-banner {
  background: linear-gradient(180deg, #fffef0 0%, #fef9c3 100%);
  border-bottom: 1px solid #e5dbb2;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.skype5-learn-title {
  font-size: 16px;
  color: #334155;
  font-weight: 400;
}

.skype5-pill-btn {
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid #a8bacb;
  background: linear-gradient(180deg, #ffffff 0%, #e9f1f8 100%);
  color: #1e293b;
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

.skype5-pill-btn:hover {
  border-color: #009fd9;
  background: #eef7fe;
}

.skype5-news-section {
  background: linear-gradient(180deg, #d7e9fa 0%, #ffffff 90px);
  padding: 14px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skype5-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.skype5-news-header h2 {
  font-size: 16px;
  font-weight: 400;
  color: #1e293b;
}

/* Mood / Status Input Row with Speech Bubble */
.skype5-mood-post-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.skype5-feed-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid #94a3b8;
  flex-shrink: 0;
}

.skype5-speech-bubble-input {
  flex: 1;
  position: relative;
  background: #ffffff;
  border: 1px solid #b6cde4;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.skype5-speech-bubble-input input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 12.5px;
  color: #1e293b;
}

/* Feed Items List (Matches Sebby Saul, Charlie Kent, Chloe Rose rows in Screenshot 3) */
.skype5-feed-list {
  display: flex;
  flex-direction: column;
}

.skype5-feed-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid #e2e8f0;
}

.skype5-feed-item-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.skype5-feed-avatar {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.skype5-feed-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.skype5-feed-text {
  font-size: 12px;
  color: #1e293b;
  line-height: 1.35;
  word-break: break-word;
}

.skype5-feed-author-link {
  color: #0066cc;
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  align-self: flex-start;
  font-family: inherit;
}

.skype5-feed-time {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   VIEW B: ACTIVE CONVERSATION / CHAT & CALL VIEW
   ========================================================================== */
.skype5-conversation-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.active-room-bar {
  background: linear-gradient(180deg, #f3f9fe 0%, #dfeefc 100%);
  border-bottom: 1px solid #aec9e4;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.active-room-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #0f172a;
}

.skype2008-online-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.room-members-tag {
  font-size: 11.5px;
  color: #475569;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #cbd5e1;
  padding: 1px 8px;
  border-radius: 10px;
}

.active-room-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.skype5-call-action-btn {
  padding: 5px 11px;
  border-radius: 14px;
  border: 1px solid #8eb6dc;
  background: linear-gradient(180deg, #ffffff 0%, #e1f0fc 100%);
  color: #0f172a;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.skype5-call-action-btn.green {
  background: linear-gradient(180deg, #65d643 0%, #38a817 100%);
  border-color: #267d0c;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.skype5-call-action-btn.green:hover {
  filter: brightness(1.06);
}

.skype5-call-action-btn.danger {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  border-color: #991b1b;
  color: #ffffff;
}

/* Rebooter Founder Bar */
.rebooter-command-bar {
  background: linear-gradient(90deg, #1e1b4b 0%, #312e81 100%);
  color: #fef08a;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid #4338ca;
  flex-shrink: 0;
}

.rebooter-pill-btn,
.rebooter-mini-btn,
.rebooter-reports-btn,
.rebooter-unban-btn {
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.rebooter-quick-announce {
  display: flex;
  gap: 4px;
  align-items: center;
}

.rebooter-mini-input,
.rebooter-mini-select {
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid #6366f1;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
}

.founder-crown-badge {
  background: linear-gradient(90deg, #f59e0b, #eab308);
  color: #111827;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   VOICE & VIDEO CALL STAGE (Black Avatar Stage + Green Speaking Ring)
   ========================================================================== */
.media-stage {
  background: #0a0a0c;
  color: #f8fafc;
  border-bottom: 1px solid #334155;
  padding: 10px 14px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  height: var(--call-stage-height, 250px);
  min-height: 118px;
  max-height: 76vh;
  overflow: hidden;
  position: relative;
}

.media-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.media-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}

.live-pill {
  background: #dc2626;
  color: #ffffff;
  font-weight: 800;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

.hd-pill {
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

.media-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.media-ctrl-btn {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #475569;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.media-ctrl-btn.muted-active,
.media-ctrl-btn.danger {
  background: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
}

.call-volume-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1e293b;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid #475569;
  font-size: 11px;
}

.call-volume-slider {
  width: 70px;
  cursor: pointer;
}

.call-device-select {
  max-width: 130px;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 10px;
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #475569;
}

.voice-avatar-stage {
  background: #000000;
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  flex: 1;
  min-height: 64px;
  overflow: hidden;
}

.voice-participant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.voice-pfp-circle {
  position: relative;
  width: var(--call-avatar-size, 96px);
  height: var(--call-avatar-size, 96px);
  border-radius: 50%;
  border: 4px solid #334155;
  overflow: hidden;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.voice-pfp-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Green speaking ring when person talks */
.voice-pfp-circle.speaking {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.45), 0 0 22px rgba(34, 197, 94, 0.85) !important;
  transform: scale(1.04);
}

/* Bouncy ringing effect while calling */
.voice-pfp-circle.calling-ringing {
  border-color: #f59e0b;
  animation: callingBounce 0.85s infinite cubic-bezier(0.28, 0.84, 0.42, 1),
             callingRingPulse 1.3s infinite ease-in-out;
}

@keyframes callingBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-14px) scale(1.06); }
  75% { transform: translateY(-4px) scale(1.02); }
}

@keyframes callingRingPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.8); }
  70% { box-shadow: 0 0 0 16px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.voice-mute-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(220, 38, 38, 0.9);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.voice-participant-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
}

.video-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  flex: 1;
  min-height: 70px;
  overflow: hidden;
}

.video-tile {
  position: relative;
  background: #000000;
  border-radius: 6px;
  overflow: hidden;
  min-height: 70px;
  height: 100%;
}

.video-tile video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Drag Resizer Bars (Skype 2010 Splitters) */
.media-stage-resizer {
  height: 10px;
  margin: 0 -14px;
  background: linear-gradient(180deg, #162032 0%, #0f172a 100%);
  border-top: 1px solid #334155;
  cursor: ns-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
  flex-shrink: 0;
}

.media-stage-resizer:hover,
.media-stage-resizer.dragging {
  background: #0284c7;
}

.chat-input-resizer {
  height: 7px;
  background: linear-gradient(180deg, #e2eef9 0%, #cfe2f3 100%);
  border-top: 1px solid #b4cce4;
  cursor: ns-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
  flex-shrink: 0;
}

.chat-input-resizer:hover,
.chat-input-resizer.dragging {
  background: #93c5fd;
}

.resizer-grip-dots {
  font-size: 9px;
  letter-spacing: 2px;
  color: #94a3b8;
  line-height: 1;
  pointer-events: none;
}

.media-stage-resizer:hover .resizer-grip-dots,
.chat-input-resizer:hover .resizer-grip-dots {
  color: #ffffff;
}

.video-label {
  position: absolute;
  bottom: 6px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

/* Incoming Call Popup Modal */
.incoming-call-banner {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.incoming-call-popup-card {
  background: linear-gradient(180deg, #1b7ae0 0%, #0d4f99 100%);
  color: #ffffff;
  border: 2px solid #93c5fd;
  border-radius: 14px;
  padding: 24px 28px;
  width: 340px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.incoming-call-badge-pill {
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.incoming-call-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.incoming-call-btn {
  padding: 8px 14px;
  border-radius: 16px;
  border: none;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  color: #ffffff;
}

.incoming-call-btn.answer-voice,
.incoming-call-btn.answer-video {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
}

.incoming-call-btn.decline {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
}

/* ==========================================================================
   CHAT MESSAGES LOG & INPUT (Skype 2010 Conversation Style)
   ========================================================================== */
.chat-messages {
  flex: 1;
  background: #ffffff;
  padding: 12px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

.msg-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 4px;
}

.msg-item.own {
  background: #f8fbff;
}

.msg-item.mentioned-me {
  background: rgba(245, 158, 11, 0.14) !important;
  border-left: 4px solid #f59e0b !important;
}

.msg-pfp {
  width: 34px;
  height: 34px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.msg-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.msg-sender {
  font-weight: 700;
  color: #0066cc;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.msg-brand-icon {
  display: none;
}

.msg-founder-tag {
  background: #f59e0b;
  color: #111827;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.msg-mod-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.msg-action-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10.5px;
  color: #475569;
  cursor: pointer;
}

.msg-action-btn:hover {
  background: #e2e8f0;
}

.msg-meta {
  font-size: 11px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.msg-era-pill {
  display: none;
}

.msg-body {
  font-size: 13px;
  color: #1e293b;
  line-height: 1.4;
  word-break: break-word;
}

.system-msg {
  font-size: 11.5px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 5px 10px;
  border-radius: 4px;
  text-align: center;
}

.admin-announce-msg {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 5px;
}

/* @Ping Mention Pills & Autocomplete */
.mention-pill {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 1px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #7dd3fc;
}

.mention-pill.mention-me {
  background: #fef3c7;
  color: #b45309;
  border-color: #f59e0b;
}

.mention-autocomplete-popup {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 10px;
  background: #f0f9ff;
  border-top: 1px solid #93c5fd;
  align-items: center;
}

.mention-suggestion-btn {
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid #7dd3fc;
  background: #ffffff;
  color: #0284c7;
  cursor: pointer;
}

.mention-suggestion-btn:hover {
  background: #0284c7;
  color: #ffffff;
}

/* Animated Typing Bubble */
.typing-indicator-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: #f0f9ff;
  border-top: 1px solid #bae6fd;
  font-size: 11.5px;
  color: #0369a1;
}

.typing-bubble-pfp {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.typing-dots {
  display: inline-flex;
  gap: 3px;
}

.typing-dots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0284c7;
  animation: typingDotBounce 1.2s infinite ease-in-out;
}

.typing-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* Quick Emoticons Toolbar & Message Input */
.chat-toolbar {
  background: #f1f7fd;
  border-top: 1px solid #cbe0f5;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.quick-emojis {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.emoji-btn {
  background: #ffffff;
  border: 1px solid #b6cde4;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11.5px;
  cursor: pointer;
  color: #1e293b;
}

.emoji-btn:hover {
  background: #e1f0fc;
}

.chat-input-area {
  background: #e7f2fd;
  border-top: 1px solid #aec9e4;
  padding: 8px 10px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
  height: var(--chat-input-height, 52px);
  min-height: 44px;
  max-height: 220px;
}

.message-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #8eb6dc;
  border-radius: 4px;
  background: #ffffff;
  color: #1e293b;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.message-input:focus {
  border-color: #009fd9;
  box-shadow: 0 0 4px rgba(0, 159, 217, 0.35);
}

.send-btn {
  padding: 8px 18px;
  border-radius: 16px;
  border: 1px solid #0078d4;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.send-btn:hover {
  filter: brightness(1.06);
}

.footerbar {
  background: #d0e2f4;
  border-top: 1px solid #96b3d0;
  padding: 3px 10px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #475569;
  flex-shrink: 0;
}

/* ==========================================================================
   MODALS, BAN SCREEN & SETTINGS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-dialog {
  width: 460px;
  max-width: 100%;
  max-height: 90dvh;
  background: #ffffff;
  border: 1px solid #6899c7;
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-dialog-lg {
  width: 640px;
}

.modal-header {
  background: linear-gradient(180deg, #3294f8 0%, #166fd8 100%);
  color: #ffffff;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-tabs-nav {
  display: flex;
  background: #dbeafe;
  border-bottom: 1px solid #93c5fd;
  padding: 4px 8px 0 8px;
  gap: 4px;
}

.settings-tab-btn {
  padding: 6px 12px;
  border: 1px solid #93c5fd;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  background: #eff6ff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.settings-tab-btn.active {
  background: #ffffff;
  font-weight: 700;
}

.settings-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

.field-input {
  padding: 6px 9px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12.5px;
}

.field-checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  cursor: pointer;
}

.pfp-picker-section {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.pfp-modal-preview {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #94a3b8;
}

.pfp-picker-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pfp-btn-row,
.pfp-presets,
.friend-chips,
.friend-row-actions,
.mixer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-upload-pfp,
.mixer-btn-sm,
.friend-mini-btn,
.mini-icon-btn,
.friend-chip {
  padding: 4px 9px;
  border-radius: 10px;
  border: 1px solid #94a3b8;
  background: #f8fafc;
  color: #1e293b;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.info-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px;
}

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

.participant-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 160px;
  overflow-y: auto;
}

.participant-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 11.5px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.btn-primary {
  padding: 6px 14px;
  border-radius: 14px;
  border: 1px solid #0284c7;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary {
  padding: 6px 14px;
  border-radius: 14px;
  border: 1px solid #94a3b8;
  background: #f8fafc;
  color: #1e293b;
  font-weight: 600;
  cursor: pointer;
}

/* Ban & Maintenance Screens */
.ban-screen,
.maintenance-screen {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #f8fafc;
}

.ban-card,
.maintenance-card {
  width: 540px;
  max-width: 100%;
  max-height: 92dvh;
  overflow-y: auto;
  background: #1e293b;
  border: 2px solid #ef4444;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ban-header,
.maintenance-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ban-hammer-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.ban-hammer-sprite {
  width: 68px;
  height: 68px;
}

.ban-target-pfp {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ef4444;
}

.ban-info-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ban-info-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

/* ==========================================================================
   iOS & ANDROID MOBILE / TABLET OPTIMIZATION (Safe Areas, VisualViewport & Touch)
   ========================================================================== */
html, body {
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

button, a, input, select {
  touch-action: manipulation;
}

.chat-messages,
.skype5-contact-list,
.skype5-home-feed,
.modal-body,
.auth-card {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.app-shell,
.skype-login-window {
  height: var(--app-dvh, 100dvh);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
  padding-left: max(6px, env(safe-area-inset-left, 0px));
  padding-right: max(6px, env(safe-area-inset-right, 0px));
}

.mobile-nav-bar {
  display: none;
  background: #cbe0f5;
  border-bottom: 1px solid #96b3d0;
  padding: 5px 6px;
  gap: 5px;
  flex-shrink: 0;
}

.mobile-nav-btn {
  flex: 1;
  min-height: 38px;
  padding: 7px 4px;
  border-radius: 5px;
  border: 1px solid #8eb6dc;
  background: #ffffff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-nav-btn.active {
  background: #009fd9;
  color: #ffffff;
  border-color: #0284c7;
}

@media (max-width: 700px) {
  .skype-bg-art-left,
  .skype-bg-art-right {
    opacity: 0.25;
  }

  .skype-login-window {
    width: 100%;
    height: var(--app-dvh, 100dvh);
    max-height: var(--app-dvh, 100dvh);
    border-radius: 0;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px) 0;
  }

  .auth-card {
    width: 100%;
    padding: 18px 14px;
  }

  .skype5-menubar-left {
    display: none;
  }

  .skype5-menubar {
    justify-content: flex-end;
    padding: 3px 6px;
  }

  .mobile-nav-bar {
    display: flex !important;
  }

  .skype5-sidebar-resizer {
    display: none !important;
  }

  .workspace {
    grid-template-columns: 1fr !important;
    padding: 2px !important;
  }

  html:not([data-mobile-pane="sidebar"]) .left-pane {
    display: none !important;
  }

  html:not([data-mobile-pane="sidebar"]) .chat-pane {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
  }

  html[data-mobile-pane="sidebar"] .left-pane {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
  }

  html[data-mobile-pane="sidebar"] .chat-pane {
    display: none !important;
  }

  /* Horizontal scroll on call toolbar & tabs for iPhone / Android portrait screens */
  .media-controls,
  .skype5-main-tabbar,
  .quick-emojis {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .media-controls::-webkit-scrollbar,
  .skype5-main-tabbar::-webkit-scrollbar,
  .quick-emojis::-webkit-scrollbar {
    display: none;
  }

  .skype5-contact-row {
    min-height: 46px;
    padding: 7px 10px;
  }

  /* 16px prevents iOS Safari auto-zoom when tapping text inputs */
  .message-input,
  .skype-text-input,
  .field-input,
  .skype5-search-input,
  .skype5-mood-bubble-input {
    font-size: 16px !important;
  }

  .settings-grid-2col,
  .video-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   RUNTIME RENDERING & COMPOSITOR OPTIMIZATIONS
   ========================================================================== */
.msg-item,
.skype5-contact-row,
.feed-card {
  contain: layout style;
}

.chat-messages,
.skype5-contacts-scroll,
.skype5-home-feed {
  will-change: scroll-position;
  transform: translateZ(0);
}

.voice-pfp-circle,
.video-box video {
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}
