#appPanel {
  max-width: 470px;
  margin: 0 auto;
  padding: 14px 14px 96px;
  border: 1px solid rgba(87, 247, 255, .28);
  border-radius: var(--vc-radius-phone);
  background:
    linear-gradient(180deg, rgba(3, 27, 43, .88), rgba(2, 19, 29, .94)),
    radial-gradient(circle at 50% 0%, rgba(87, 247, 255, .18), transparent 36%);
  box-shadow: var(--vc-shadow-phone), inset 0 1px 0 rgba(255, 255, 255, .22);
}

#appPanel .layout,
#appPanel .layout.lower,
#appPanel .layout.extras {
  display: block;
}

#appPanel .card {
  margin: 0 0 16px;
  border-radius: 30px;
  padding: 20px 18px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: screenIn .28s ease both;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.phone-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(430px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 26px;
  background: rgba(2, 19, 29, .86);
  border: 1px solid var(--vc-border);
  box-shadow: var(--vc-shadow-phone);
  backdrop-filter: blur(18px) saturate(150%);
  z-index: 30;
}

.phone-nav button {
  padding: 11px 6px;
  border-radius: 18px;
  background: transparent;
  color: var(--vc-muted);
  font-size: 13px;
}

.phone-nav button.active {
  color: #00131d;
  background: linear-gradient(145deg, var(--vc-cyan), var(--vc-blue));
  box-shadow: var(--vc-glow-cyan);
}

.topbar {
  max-width: 470px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 30px;
}

.auth-card {
  border-radius: var(--vc-radius-phone);
}

.side-menu {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.side-menu label {
  display: grid;
  gap: 6px;
  color: var(--vc-muted);
  font-size: 13px;
}

body.logged-in .side-menu {
  position: fixed;
  top: 16px;
  right: 16px;
  width: min(320px, calc(100vw - 32px));
  z-index: 60;
  padding: 16px;
  border: 1px solid var(--vc-border);
  border-radius: 24px;
  background: rgba(3, 27, 43, .94);
  box-shadow: var(--vc-shadow-phone);
  backdrop-filter: blur(18px) saturate(150%);
}

body.logged-in .side-menu.hidden {
  display: none;
}

.room-member-tools {
  display: grid;
  gap: 10px;
  margin: 16px 0 4px;
}

.room-member-tools input {
  border-radius: 999px;
  text-align: center;
}

.room-member {
  grid-template-columns: auto 1fr auto;
}

.invite-note {
  color: var(--vc-muted);
  text-align: right;
}

.room-background-tools {
  margin: 10px 0 2px;
  text-align: center;
}

.screen-room {
  background-size: cover;
  background-position: center;
}

.topbar {
  position: relative;
  z-index: 80;
}

body.logged-in .side-menu {
  z-index: 90;
}

.member .member-main {
  margin-left: 0;
  flex: 1 1 190px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vc-text);
  text-align: left;
}

.presence-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,.75);
}

.presence-dot.online {
  background: #35e08a;
  box-shadow: 0 0 12px rgba(53,224,138,.75);
}

.presence-dot.offline {
  background: #64748b;
}

.seat.speaking {
  box-shadow: 0 0 0 3px rgba(53,224,138,.45), 0 0 34px rgba(53,224,138,.45), inset 0 1px 0 rgba(255,255,255,.35);
  transform: translateY(-2px) scale(1.02);
}

.seat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--vc-border-soft);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
}

.room-chat {
  margin-top: 16px;
}

.room-chat-list {
  min-height: 120px;
  max-height: 220px;
}

.profile-modal-card,
.call-modal-card {
  text-align: center;
}

.profile-modal-card .cover {
  height: 130px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--vc-cyan), var(--vc-blue), #a855f7);
  background-size: cover;
  background-position: center;
}

.profile-modal-card img,
.call-modal-card img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--vc-cyan);
  margin-top: -42px;
  background: #07304a;
}

.call-modal-card img {
  margin-top: 0;
}

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

.active-call-bar {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  z-index: 55;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--vc-border);
  background: rgba(3,27,43,.92);
  box-shadow: var(--vc-shadow-phone);
}

.verified-badge {
  display: inline-flex;
  width: 17px;
  height: 17px;
  margin-left: 5px;
  vertical-align: -3px;
}

.verified-badge svg {
  width: 17px;
  height: 17px;
  fill: #1877f2;
  filter: drop-shadow(0 0 5px rgba(24,119,242,.45));
}

.verified-badge .badge-check {
  fill: none;
  stroke: #fff;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--vc-border-soft);
  border-radius: 20px;
  background: rgba(255,255,255,.06);
}

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

.check-row input {
  width: auto;
}

.premium-badge {
  display: inline-flex;
  width: 17px;
  height: 17px;
  margin-left: 5px;
  vertical-align: -3px;
}

.premium-badge svg {
  width: 17px;
  height: 17px;
  fill: #9aa7b4;
  filter: drop-shadow(0 0 5px rgba(154,167,180,.4));
}

.premium-badge .badge-check {
  fill: none;
  stroke: #fff;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
