:root {
  --auth-bg: #040814;
  --auth-bg-strong: #09111f;
  --auth-surface: rgba(9, 16, 31, 0.82);
  --auth-surface-soft: rgba(14, 24, 44, 0.68);
  --auth-surface-muted: rgba(255, 255, 255, 0.05);
  --auth-border: rgba(255, 255, 255, 0.12);
  --auth-border-strong: rgba(94, 230, 106, 0.28);
  --auth-text: #f5fbff;
  --auth-muted: rgba(224, 235, 255, 0.68);
  --auth-dim: rgba(224, 235, 255, 0.44);
  --auth-brand: #5ee66a;
  --auth-brand-strong: #18b75d;
  --auth-brand-shadow: rgba(94, 230, 106, 0.28);
  --auth-sky: #45d7ff;
  --auth-danger: #ff9b9b;
  --auth-danger-border: rgba(255, 155, 155, 0.36);
  --auth-shadow: 0 40px 120px rgba(0, 0, 0, 0.48);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--auth-text);
  background:
    radial-gradient(circle at top left, rgba(69, 215, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(94, 230, 106, 0.16), transparent 22%),
    linear-gradient(160deg, #040814 0%, #07101d 48%, #03060f 100%);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.auth-modal-open {
  overflow: hidden;
}

h1,
h2,
button,
strong {
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.auth-page {
  position: relative;
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
}

.auth-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.72;
}

.auth-orb-a {
  width: 340px;
  height: 340px;
  top: 72px;
  left: -84px;
  background: rgba(69, 215, 255, 0.22);
}

.auth-orb-b {
  width: 380px;
  height: 380px;
  right: -72px;
  top: 220px;
  background: rgba(94, 230, 106, 0.16);
}

.auth-orb-c {
  width: 280px;
  height: 280px;
  bottom: -32px;
  left: 32%;
  background: rgba(70, 120, 255, 0.12);
}

.auth-header,
.auth-main {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 18px;
}

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

.auth-brand-mark {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 28px;
  background: linear-gradient(135deg, var(--auth-brand) 0%, var(--auth-brand-strong) 100%);
  box-shadow: 0 18px 40px rgba(24, 183, 93, 0.28);
}

.auth-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-brand-copy strong {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.auth-brand-copy span {
  color: var(--auth-muted);
  font-size: 0.92rem;
}

.user-stats {
  display: flex;
  gap: 8px;
}

.user-stats-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.user-stats-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-muted);
  flex-shrink: 0;
}

.user-stats-icon--online {
  color: rgba(34, 197, 94, 0.7);
}

.user-stats-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  border: 1.5px solid var(--auth-bg, #040814);
}

.user-stats-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.user-stats-label {
  font-size: 10px;
  line-height: 1;
  color: var(--auth-muted);
  white-space: nowrap;
}

.user-stats-value {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--auth-text);
  white-space: nowrap;
}

.user-stats-value--online {
  color: #22c55e;
}

.auth-header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--auth-border);
  background: rgba(7, 14, 26, 0.72);
  backdrop-filter: blur(16px);
}

.auth-header-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--auth-muted);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auth-header-nav a:hover,
.auth-header-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--auth-text);
  transform: translateY(-1px);
  outline: none;
}

.auth-header-nav .auth-header-cta {
  color: #041109;
  background: linear-gradient(135deg, var(--auth-brand) 0%, #8bf6b9 100%);
}

.auth-main {
  display: block;
  padding-bottom: 40px;
}

.hero-panel {
  padding: 18px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow,
.feature-kicker,
.auth-kicker,
.preview-live,
.auth-note-chip,
.auth-placeholder-badge {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.hero-eyebrow {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(69, 215, 255, 0.2);
  background: rgba(69, 215, 255, 0.08);
  color: #b8f2ff;
}

.hero-panel h1 {
  margin: 22px auto 18px;
  max-width: 11ch;
  font-size: clamp(3.3rem, 7vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-align: center;
}

.hero-lead {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--auth-muted);
  font-size: 1.08rem;
  line-height: 1.65;
  text-align: center;
}

.hero-lead-brand {
  display: inline-block;
  font-size: 1.62rem;
  font-weight: 700;
  line-height: 1;
  color: var(--auth-brand);
  vertical-align: -0.08em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
}

.hero-primary,
.hero-secondary,
.auth-submit {
  min-height: 56px;
  border-radius: 18px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.hero-primary {
  color: #041109;
  background: linear-gradient(135deg, var(--auth-brand) 0%, #8bf6b9 100%);
  box-shadow: 0 20px 40px var(--auth-brand-shadow);
}

.hero-primary:hover,
.hero-primary:focus-visible,
.auth-submit:hover,
.auth-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(24, 183, 93, 0.36);
  outline: none;
}

.hero-secondary {
  color: var(--auth-text);
  border-color: var(--auth-border);
  background: rgba(255, 255, 255, 0.05);
}

.hero-secondary:hover,
.hero-secondary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(69, 215, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
  width: 100%;
}

.feature-card,
.preview-shell,
.auth-card {
  border: 1px solid var(--auth-border);
  background: var(--auth-surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--auth-shadow);
}

.feature-card {
  padding: 22px;
  border-radius: 24px;
  text-align: center;
}

.feature-kicker {
  display: block;
  color: #b8f2ff;
}

.feature-card h2 {
  margin: 14px 0 12px;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.feature-card p {
  margin: 0;
  color: var(--auth-muted);
  line-height: 1.62;
}

.preview-shell {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(4, 8, 20, 0.96), rgba(6, 11, 24, 0.98)),
    radial-gradient(circle at top right, rgba(94, 230, 106, 0.12), transparent 28%);
}

.preview-window-bar {
  min-height: 58px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--auth-border);
  background: rgba(255, 255, 255, 0.03);
}

.preview-window-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview-window-controls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.preview-window-controls span:first-child {
  background: rgba(255, 155, 155, 0.82);
}

.preview-window-controls span:nth-child(2) {
  background: rgba(255, 210, 107, 0.82);
}

.preview-window-controls span:nth-child(3) {
  background: rgba(94, 230, 106, 0.82);
}

.preview-window-address {
  min-width: 0;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--auth-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.preview-window-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.preview-window-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--auth-brand);
  box-shadow: 0 0 0 6px rgba(94, 230, 106, 0.12);
}

.preview-window-user-avatar,
.preview-avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #041109;
  background: linear-gradient(135deg, rgba(94, 230, 106, 0.94), rgba(69, 215, 255, 0.88));
}

.preview-window-user-avatar {
  width: 32px;
  height: 32px;
}

.preview-app {
  display: grid;
  grid-template-columns: 88px 290px minmax(0, 1fr);
  min-height: 640px;
}

.preview-servers {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.025);
  border-right: 1px solid var(--auth-border);
}

.preview-servers-list,
.preview-servers-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.preview-server {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--auth-text);
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.preview-server-active {
  background: linear-gradient(135deg, var(--auth-brand) 0%, var(--auth-brand-strong) 100%);
  color: #041109;
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(24, 183, 93, 0.28);
}

.preview-server-footer {
  color: var(--auth-muted);
}

.preview-channels {
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  border-right: 1px solid var(--auth-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-presence-title,
.preview-stage-subtitle {
  color: var(--auth-dim);
}

.preview-presence-title {
  margin-bottom: 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.preview-sidebar-header {
  min-height: 80px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(94, 230, 106, 0.18) 0%, rgba(69, 215, 255, 0.08) 100%),
    rgba(9, 18, 31, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preview-sidebar-badge,
.preview-stage-chip,
.preview-panel-button,
.preview-status,
.preview-participant-chip {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: var(--auth-muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-sidebar-badge {
  white-space: nowrap;
}

.preview-stage-title {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.preview-stage-subtitle {
  margin-top: 4px;
  font-size: 0.86rem;
  letter-spacing: 0;
  text-transform: none;
}

.preview-channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-channel {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.05);
  color: var(--auth-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-channel-active {
  border-color: rgba(94, 230, 106, 0.28);
  background: linear-gradient(135deg, rgba(94, 230, 106, 0.24), rgba(24, 183, 93, 0.08));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.preview-channel-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.preview-channel-main span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.preview-channel-main strong,
.preview-user-copy strong,
.preview-controls-copy strong,
.preview-participant-copy strong,
.preview-panel-heading strong,
.preview-screen-meta strong,
.preview-chat-author {
  font-size: 0.94rem;
}

.preview-channel-main small,
.preview-user-copy small,
.preview-controls-copy small,
.preview-participant-copy small,
.preview-panel-heading span,
.preview-screen-meta span,
.preview-chat-text {
  color: var(--auth-muted);
  font-size: 0.82rem;
}

.preview-channel-icon,
.preview-channel-action {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.preview-channel-icon {
  font-weight: 800;
  color: var(--auth-muted);
}

.preview-presence {
  flex: 1 1 auto;
}

.preview-user {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.preview-user + .preview-user {
  margin-top: 10px;
}

.preview-avatar {
  width: 32px;
  height: 32px;
}

.preview-avatar-large {
  width: 40px;
  height: 40px;
}

.preview-status,
.preview-live {
  white-space: nowrap;
}

.preview-user-copy,
.preview-controls-copy,
.preview-participant-copy,
.preview-panel-heading div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.preview-user-speaking {
  background: linear-gradient(90deg, rgba(94, 230, 106, 0.2) 0%, rgba(69, 215, 255, 0.07) 100%);
  border-color: rgba(94, 230, 106, 0.18);
}

.preview-controls {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(94, 230, 106, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.preview-controls-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-controls-buttons {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(94, 230, 106, 0.2);
  background: rgba(8, 12, 22, 0.84);
}

.preview-control-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-muted);
}

.preview-control-pill + .preview-control-pill {
  border-left: 1px solid rgba(94, 230, 106, 0.14);
}

.preview-stage {
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(69, 215, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  display: flex;
  flex-direction: column;
}

.preview-stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-stage-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.preview-live {
  color: #b8f2ff;
  border: 1px solid rgba(69, 215, 255, 0.2);
  background: rgba(69, 215, 255, 0.1);
}

.preview-stage-chip {
  color: var(--auth-text);
}

.preview-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.84fr);
  gap: 16px;
  margin-top: 24px;
  min-height: 0;
  flex: 1 1 auto;
}

.preview-stage-panel,
.preview-chat-panel {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.preview-panel-header {
  min-height: 76px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(94, 230, 106, 0.14) 0%, rgba(69, 215, 255, 0.06) 100%),
    rgba(8, 13, 24, 0.82);
}

.preview-panel-heading,
.preview-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-panel-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preview-panel-button-active {
  color: #041109;
  background: linear-gradient(135deg, rgba(94, 230, 106, 0.94), rgba(69, 215, 255, 0.72));
  border-color: transparent;
}

.preview-screen-share {
  position: relative;
  margin: 18px;
  padding: 44px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top, rgba(94, 230, 106, 0.18), transparent 50%),
    linear-gradient(160deg, rgba(14, 24, 44, 0.98) 0%, rgba(3, 7, 18, 0.98) 100%);
  overflow: hidden;
}

.preview-screen-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(94, 230, 106, 0.9);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-screen-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  gap: 6px;
}

.preview-screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
}

.preview-screen-content {
  min-height: 214px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
}

.preview-screen-sidebar {
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-screen-sidebar span {
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.preview-screen-main {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.preview-screen-line {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.preview-screen-line + .preview-screen-line {
  margin-top: 12px;
}

.preview-screen-line-long {
  width: 82%;
}

.preview-screen-line-short {
  width: 48%;
}

.preview-screen-cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preview-screen-cards span {
  min-height: 72px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.preview-screen-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(4, 10, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-camera-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px;
}

.preview-camera-card {
  min-height: 128px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(5, 11, 20, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.preview-camera-card-accent {
  border-color: rgba(94, 230, 106, 0.24);
  background:
    radial-gradient(circle at top, rgba(94, 230, 106, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(5, 11, 20, 0.9);
}

.preview-camera-name {
  font-weight: 700;
}

.preview-camera-state {
  color: var(--auth-muted);
  font-size: 0.8rem;
}

.preview-participants {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-participant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.preview-participant-speaking {
  background: linear-gradient(90deg, rgba(94, 230, 106, 0.22) 0%, rgba(69, 215, 255, 0.07) 100%);
  border-color: rgba(94, 230, 106, 0.18);
}

.preview-participant-main,
.preview-participant-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-participant-meter {
  width: 74px;
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(94, 230, 106, 1) 0%, rgba(69, 215, 255, 0.9) 78%, rgba(255, 255, 255, 0.14) 78%, rgba(255, 255, 255, 0.14) 100%);
}

.preview-chat-panel {
  overflow: hidden;
}

.preview-panel-header-chat {
  min-height: 72px;
}

.preview-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-chat-message {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-chat-message-accent {
  background: linear-gradient(135deg, rgba(94, 230, 106, 0.18), rgba(69, 215, 255, 0.06));
  border-color: rgba(94, 230, 106, 0.18);
}

.preview-chat-author {
  display: block;
  margin-bottom: 6px;
}

.preview-chat-text {
  display: block;
  line-height: 1.5;
}

.preview-chat-input {
  margin: 0 18px 18px;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-chat-plus,
.preview-chat-send {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--auth-text);
}

.preview-chat-placeholder {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--auth-muted);
}

.preview-app-real {
  --bg-main: #000000;
  --bg-panel: #0a0a0a;
  --bg-secondary: #2f3136;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-dim: rgba(255, 255, 255, 0.4);
  --danger: #ef4444;
  --border: rgba(255, 255, 255, 0.1);
  --titlebar-height: 64px;
  --panel-header-height: 80px;
  --shared-green-gradient: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.24) 0%,
    rgba(22, 163, 74, 0.2) 45%,
    rgba(16, 185, 129, 0.18) 70%,
    rgba(16, 185, 129, 0.1) 100%
  );
  height: 980px;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.preview-app-real *,
.preview-app-real *::before,
.preview-app-real *::after {
  box-sizing: border-box;
}

.preview-app-real button,
.preview-app-real input {
  font: inherit;
}

.preview-app-real svg {
  display: block;
}

.preview-app-real .top-header {
  height: var(--titlebar-height);
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.preview-app-real .header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-app-real .logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.preview-app-real .logo-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.preview-app-real .header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-app-real .user-profile-btn {
  background: none;
  border: none;
  padding: 0;
}

.preview-app-real .avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  position: relative;
  flex-shrink: 0;
}

.preview-app-real .user-profile-btn .avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.preview-app-real .header-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-app-real .app-root {
  display: flex;
  height: calc(100% - var(--titlebar-height));
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.preview-app-real .servers-sidebar {
  width: 96px;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  flex-shrink: 0;
  overflow-x: hidden;
}

.preview-app-real .servers-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 20px;
  align-items: center;
}

.preview-app-real .server-item {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  border: none;
  flex-shrink: 0;
}

.preview-app-real .server-item.active {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.3);
}

.preview-app-real .servers-footer {
  padding: 8px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-app-real .server-action-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: none;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-app-real .channels-main {
  width: 320px;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  margin: 16px;
  margin-right: 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.preview-app-real .channels-header,
.preview-app-real .conference-header,
.preview-app-real .chat-header {
  background-image: var(--shared-green-gradient);
  background-color: rgba(9, 18, 12, 0.82);
  background-repeat: no-repeat;
  background-size: cover;
}

.preview-app-real .channels-header {
  height: var(--panel-header-height);
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.preview-app-real .channels-title,
.preview-app-real .conference-title,
.preview-app-real .chat-channel-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.preview-app-real .channels-subtitle,
.preview-app-real .conference-type,
.preview-app-real .chat-channel-type {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.preview-app-real .channels-actions,
.preview-app-real .conference-header-actions,
.preview-app-real .chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-app-real .channel-action-btn,
.preview-app-real .channel-chat-btn,
.preview-app-real .chat-close-btn,
.preview-app-real .conference-screen-share-fullscreen,
.preview-app-real .chat-input-action {
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.preview-app-real .channel-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.preview-app-real .channels-container {
  flex: 1;
  overflow: hidden;
  padding: 16px;
}

.preview-app-real .channel-block {
  margin-bottom: 12px;
}

.preview-app-real .channel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(76, 127, 101, 0.38);
  border-radius: 12px;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 6px 14px rgba(0, 0, 0, 0.28);
}

.preview-app-real .channel-block.active .channel-header {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(16, 185, 129, 0.3) 100%);
  border-color: rgba(76, 127, 101, 0.46);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.preview-app-real .channel-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.preview-app-real .channel-block.active .channel-icon {
  background: rgba(255, 255, 255, 0.2);
}

.preview-app-real .channel-info {
  flex: 1;
  min-width: 0;
}

.preview-app-real .channel-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-app-real .channel-count {
  font-size: 12px;
  color: var(--text-dim);
}

.preview-app-real .channel-chat-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(44, 50, 58, 0.42) 0%, rgba(20, 24, 30, 0.34) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.25);
}

.preview-app-real .channel-chat-btn.active {
  background: rgba(34, 197, 94, 0.17);
  border-color: rgba(76, 127, 101, 0.46);
  color: #5ae98a;
}

.preview-app-real .channel-participants {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview-app-real .participant-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
}

.preview-app-real .participant-item .avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.preview-app-real .avatar.speaking::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: preview-pulse 1s infinite;
}

@keyframes preview-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

.preview-app-real .participant-name {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-app-real .user-controls-panel {
  padding: 16px;
  margin: 12px;
  margin-top: 8px;
  border: 1px solid rgba(76, 127, 101, 0.38);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 8px 24px rgba(0, 0, 0, 0.28);
}

.preview-app-real .user-controls-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.preview-app-real .user-controls-info .avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.preview-app-real .user-controls-text {
  flex: 1;
  min-width: 0;
}

.preview-app-real .user-controls-name {
  font-size: 14px;
  font-weight: 600;
}

.preview-app-real .user-controls-tag {
  font-size: 12px;
  color: var(--text-dim);
}

.preview-app-real .user-controls-buttons {
  display: flex;
  position: relative;
  gap: 0;
  align-items: stretch;
  border: 1px solid rgba(76, 127, 101, 0.38);
  border-radius: 12px;
  background: rgba(12, 14, 18, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 6px 14px rgba(0, 0, 0, 0.28);
  overflow: visible;
}

.preview-app-real .user-controls-buttons > * + * {
  border-left: 0.5px solid rgba(116, 173, 142, 0.42);
}

.preview-app-real .user-control-btn {
  flex: 1 1 0;
  height: 44px;
  padding: 0 12px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.preview-app-real .user-control-btn.active {
  background: rgba(34, 197, 94, 0.17);
  color: #5ae98a;
}

.preview-app-real .mic-control-group {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
  gap: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.preview-app-real .mic-main-btn {
  flex: 0 0 44px;
  border-right: 0.5px solid rgba(116, 173, 142, 0.42);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.preview-app-real .mic-menu-btn {
  flex: 0 0 36px;
  padding: 0;
}

.preview-app-real .mic-main-btn.active + .mic-menu-btn {
  background: rgba(34, 197, 94, 0.2);
  color: var(--accent);
}

.preview-app-real .settings-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 56%;
  transform: translateY(-50%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.07) 14%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.07) 86%,
    rgba(255, 255, 255, 0) 100%
  );
  clip-path: polygon(50% 0%, 100% 16%, 100% 84%, 50% 100%, 0 84%, 0 16%);
}

.preview-app-real .chat-panel {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 16px;
}

.preview-app-real .chat-layout {
  width: 100%;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.preview-app-real .conference-panel,
.preview-app-real .chat-card,
.preview-app-real .chat-input-container {
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

.preview-app-real .conference-panel {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.preview-app-real .conference-header {
  height: 80px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.preview-app-real .conference-header-info,
.preview-app-real .chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.preview-app-real .conference-icon,
.preview-app-real .chat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.preview-app-real .conference-chat-btn,
.preview-app-real .conference-screen-btn,
.preview-app-real .chat-connect-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.preview-app-real .conference-chat-btn,
.preview-app-real .conference-screen-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.preview-app-real .conference-chat-btn.active {
  background: rgba(59, 130, 246, 0.24);
  color: #bfdbfe;
}

.preview-app-real .conference-screen-btn.active {
  background: rgba(34, 197, 94, 0.24);
  color: #d8ffe7;
}

.preview-app-real .chat-connect-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
}

.preview-app-real .conference-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.preview-app-real .conference-participants {
  display: none;
  width: 100%;
}

.preview-app-real .conference-panel.in-channel .conference-content {
  align-items: stretch;
  justify-content: flex-start;
}

.preview-app-real .conference-panel.in-channel .conference-participants {
  display: block;
}

.preview-app-real .conference-screen-shares,
.preview-app-real .conference-camera-grid {
  display: none;
  margin: 0 0 14px;
}

.preview-app-real .conference-panel.in-channel.has-screen-shares .conference-screen-shares,
.preview-app-real .conference-panel.in-channel.has-camera-grid .conference-camera-grid {
  display: block;
}

.preview-app-real .conference-screen-shares-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.preview-app-real .conference-screen-share-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.38);
  aspect-ratio: 16 / 9;
}

.preview-app-real .conference-screen-share-item.active {
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.22) inset;
}

.preview-app-real .preview-share-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #050505;
}

.preview-app-real .conference-screen-share-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(34, 197, 94, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.preview-app-real .conference-screen-share-fullscreen {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.56);
  color: rgba(255, 255, 255, 0.92);
}

.preview-app-real .conference-screen-share-meta {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.preview-app-real .conference-screen-share-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.preview-app-real .conference-screen-share-state {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.preview-app-real .conference-camera-grid-title,
.preview-app-real .conference-screen-shares-title,
.preview-app-real .conference-participants-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.preview-app-real .conference-camera-grid-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preview-app-real .conference-camera-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.22), transparent 58%),
    linear-gradient(160deg, rgba(17, 24, 39, 0.95) 0%, rgba(3, 7, 18, 0.98) 100%);
  aspect-ratio: 4 / 3;
}

.preview-app-real .conference-camera-card.local {
  border-color: rgba(34, 197, 94, 0.38);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.16) inset;
}

.preview-app-real .conference-camera-grid-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #020617;
}

.preview-app-real .conference-camera-grid-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  padding: 16px;
}

.preview-app-real .conference-camera-card-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(4, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.preview-app-real .conference-camera-card-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
}

.preview-app-real .conference-camera-card-state {
  font-size: 11px;
  color: rgba(125, 255, 175, 0.94);
}

.preview-app-real .conference-participants-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-app-real .conference-participant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px;
}

.preview-app-real .conference-participant.speaking {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.26) 0%, rgba(16, 185, 129, 0.12) 100%);
  border-color: rgba(34, 197, 94, 0.65);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.18) inset;
}

.preview-app-real .conference-participant-main,
.preview-app-real .conference-participant-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-app-real .conference-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.preview-app-real .conference-avatar {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.preview-app-real .conference-participant-info {
  min-width: 0;
}

.preview-app-real .conference-participant-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.preview-app-real .conference-participant-status {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.preview-app-real .conference-participant.speaking .conference-participant-status {
  color: rgba(228, 255, 238, 0.88);
}

.preview-app-real .conference-audio-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(76, 127, 101, 0.42);
  background: rgba(12, 14, 18, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 6px 14px rgba(0, 0, 0, 0.28);
}

.preview-app-real .conference-audio-widget-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.preview-app-real .conference-audio-widget .conference-audio-widget-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.preview-app-real .conference-participant-control svg {
  width: 16px;
  height: 16px;
}

.preview-app-real .conference-audio-widget .conference-audio-widget-mic {
  color: #5ae98a;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(84, 228, 138, 0.2);
}

.preview-app-real .conference-audio-widget.conference-audio-widget-local {
  padding: 4px 6px;
}

.preview-app-real .conference-volume-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.preview-app-real .conference-volume-tooltip {
  position: absolute;
  left: var(--volume-percent, 50%);
  top: -38px;
  transform: translateX(-50%);
  min-width: 54px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 23, 31, 0.96);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
  color: #f2f5ff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  z-index: 3;
}

.preview-app-real .conference-volume-slider {
  width: 96px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(
    90deg,
    #18c966 0%,
    #34dc72 var(--volume-percent, 100%),
    rgba(255, 255, 255, 0.18) var(--volume-percent, 100%),
    rgba(255, 255, 255, 0.18) 100%
  );
  border-radius: 999px;
  outline: none;
}

.preview-app-real .conference-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4fee84 0%, #24c761 100%);
  border: 2px solid rgba(6, 55, 30, 0.88);
}

.preview-app-real .chat-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.preview-app-real .chat-card {
  flex: 1;
  min-height: 0;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.preview-app-real .chat-header {
  height: 80px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.preview-app-real .chat-users-count {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.preview-app-real .conference-header-actions,
.preview-app-real .chat-header-actions {
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.preview-app-real .chat-users-count span {
  white-space: nowrap;
}

.preview-app-real .chat-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  flex-shrink: 0;
}

.preview-app-real .chat-messages {
  flex: 1;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-app-real .chat-message {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
}

.preview-app-real .chat-message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.preview-app-real .chat-message-content {
  flex: 1;
  min-width: 0;
}

.preview-app-real .chat-message-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.preview-app-real .chat-message-username {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.preview-app-real .chat-message-timestamp {
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
}

.preview-app-real .chat-message-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.preview-app-real .chat-input-container {
  display: block;
  padding: 24px;
  border-top: none;
  border-radius: 0 0 16px 16px;
}

.preview-app-real .chat-input-container > div {
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.preview-app-real .chat-input-action,
.preview-app-real .chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  flex-shrink: 0;
}

.preview-app-real .chat-send-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-app-real .chat-input-container input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  padding: 8px;
}

.preview-app-real .chat-input-container input::placeholder {
  color: var(--text-dim);
}

@media (max-width: 1180px) {
  .preview-app-real {
    height: auto;
  }

  .preview-app-real .app-root {
    flex-direction: column;
    height: auto;
  }

  .preview-app-real .servers-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .preview-app-real .servers-list,
  .preview-app-real .servers-footer {
    flex-direction: row;
    padding: 0;
  }

  .preview-app-real .channels-main {
    width: auto;
    margin: 16px;
    margin-bottom: 0;
  }

  .preview-app-real .chat-panel {
    margin-top: 0;
  }

  .preview-app-real .chat-layout {
    grid-template-columns: 1fr;
  }

  .preview-app-real .conference-header {
    height: 80px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .preview-app-real .conference-header-info,
  .preview-app-real .conference-header-actions {
    width: auto;
  }

  .preview-app-real .conference-header-info > div {
    min-width: 0;
  }

  .preview-app-real .conference-header-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .preview-app-real .conference-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
  }

  .preview-app-real .conference-title {
    margin-bottom: 1px;
    font-size: 14px;
    line-height: 1.05;
  }

  .preview-app-real .conference-type {
    font-size: 10px;
    line-height: 1.1;
  }

  .preview-app-real .conference-chat-btn,
  .preview-app-real .conference-screen-btn,
  .preview-app-real .chat-connect-btn {
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    gap: 4px;
    border-radius: 7px;
  }

  .preview-app-real .conference-chat-btn svg,
  .preview-app-real .conference-screen-btn svg,
  .preview-app-real .chat-connect-btn svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 720px) {
  .preview-app-real .top-header,
  .preview-app-real .channels-header,
  .preview-app-real .conference-header,
  .preview-app-real .chat-header {
    height: auto;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .preview-app-real .conference-camera-grid-list {
    grid-template-columns: 1fr;
  }

  .preview-app-real .conference-header-actions,
  .preview-app-real .chat-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .preview-app-real .conference-participant,
  .preview-app-real .conference-screen-share-meta {
    flex-wrap: wrap;
  }
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 20, 0.74);
  backdrop-filter: blur(16px);
}

.auth-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 36px;
  transform: translateY(12px) scale(0.985);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.auth-modal.is-visible .auth-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.auth-card {
  border-radius: 32px;
  padding: 28px;
}

.auth-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-close {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--auth-text);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.auth-close span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.auth-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.auth-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.auth-close:hover,
.auth-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(69, 215, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
  outline: none;
}

.auth-card-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-kicker {
  color: #b8f2ff;
}

.auth-mode-switch,
.auth-method-switch {
  display: grid;
  gap: 8px;
  padding: 6px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--auth-border);
}

.auth-mode-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-method-switch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-mode-switch button,
.auth-method-switch button {
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  color: var(--auth-muted);
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-mode-switch button:hover,
.auth-mode-switch button:focus-visible,
.auth-method-switch button:hover,
.auth-method-switch button:focus-visible {
  color: var(--auth-text);
  outline: none;
}

.auth-mode-switch button.is-active,
.auth-method-switch button.is-active {
  color: var(--auth-text);
  background: linear-gradient(135deg, rgba(94, 230, 106, 0.24), rgba(69, 215, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(94, 230, 106, 0.14);
}

.auth-copy {
  margin-top: 22px;
}

.auth-copy h2 {
  margin: 0 0 10px;
  font-size: 2.05rem;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.auth-copy p {
  margin: 0;
  color: var(--auth-muted);
  line-height: 1.62;
}

.auth-method-switch {
  margin-top: 22px;
}

.auth-panel-view {
  margin-top: 22px;
}

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

.auth-note-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  width: fit-content;
  max-width: 100%;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(69, 215, 255, 0.08);
  border: 1px solid rgba(69, 215, 255, 0.18);
  color: #b8f2ff;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field span {
  color: var(--auth-muted);
  font-size: 0.94rem;
}

.auth-field input {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--auth-text);
  padding: 0 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-field input::placeholder {
  color: rgba(224, 235, 255, 0.36);
}

.auth-field input:hover {
  background: rgba(255, 255, 255, 0.07);
}

.auth-field input:focus-visible {
  outline: none;
  border-color: var(--auth-border-strong);
  box-shadow: 0 0 0 4px rgba(94, 230, 106, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--auth-muted);
  line-height: 1.55;
}

.auth-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--auth-brand-strong);
}

.auth-submit {
  margin-top: 4px;
  border: 0;
  color: #041109;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--auth-brand) 0%, #8bf6b9 100%);
}

.auth-submit:disabled {
  cursor: progress;
}

.auth-submit-disabled,
.auth-submit-disabled:hover,
.auth-submit-disabled:focus-visible {
  color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transform: none;
}

.auth-inline-help {
  margin: 0;
  color: var(--auth-muted);
}

.auth-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #b8f2ff;
}

.auth-inline-link:hover,
.auth-inline-link:focus-visible {
  color: var(--auth-text);
  outline: none;
}

.auth-error {
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--auth-danger-border);
  background: rgba(255, 155, 155, 0.11);
  color: #ffe1e1;
  line-height: 1.5;
}

.auth-form-placeholder .auth-field input {
  cursor: not-allowed;
  opacity: 0.62;
}

.auth-placeholder-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  color: #b8f2ff;
  background: rgba(69, 215, 255, 0.08);
  border: 1px solid rgba(69, 215, 255, 0.2);
}

.auth-placeholder-copy {
  border-radius: 20px;
  padding: 16px;
  color: var(--auth-muted);
  line-height: 1.6;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-legal {
  margin: 22px 0 0;
  color: var(--auth-dim);
  line-height: 1.6;
  text-align: center;
  font-size: 0.92rem;
}

.auth-legal a {
  color: #b8f2ff;
  border-bottom: 1px dashed rgba(184, 242, 255, 0.44);
}

.auth-legal a:hover,
.auth-legal a:focus-visible {
  color: var(--auth-text);
  border-bottom-color: rgba(255, 255, 255, 0.6);
  outline: none;
}

@media (max-width: 1180px) {
  .hero-panel h1 {
    max-width: 13ch;
  }
}

@media (max-width: 980px) {
  .hero-features,
  .preview-stage-grid,
  .preview-camera-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-app {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-servers,
  .preview-channels,
  .preview-stage {
    min-height: auto;
  }

  .preview-servers {
    flex-direction: row;
    justify-content: space-between;
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--auth-border);
  }

  .preview-servers-list,
  .preview-servers-footer {
    flex-direction: row;
  }

  .preview-channels {
    border-right: 0;
    border-bottom: 1px solid var(--auth-border);
  }
}

@media (max-width: 720px) {
  .auth-header,
  .auth-main {
    width: min(100%, calc(100% - 28px));
  }

  .auth-header {
    flex-direction: column;
    align-items: stretch;
  }

  .user-stats {
    width: 100%;
    justify-content: center;
  }

  .user-stats-label {
    display: none;
  }

  .auth-header-nav {
    justify-content: space-between;
  }

  .auth-header-nav a {
    flex: 1 1 0;
    text-align: center;
  }

  .auth-card {
    padding: 22px;
    border-radius: 26px;
  }

  .auth-modal {
    padding: 14px;
  }

  .auth-modal-dialog {
    max-height: calc(100vh - 28px);
  }

  .hero-panel h1 {
    margin-top: 18px;
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .hero-primary,
  .hero-secondary,
  .auth-submit {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .preview-window-bar {
    grid-template-columns: auto auto;
  }

  .preview-window-address {
    display: none;
  }

  .preview-sidebar-header,
  .preview-panel-header {
    min-height: auto;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-screen-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-screen-sidebar {
    display: none;
  }

  .preview-screen-meta,
  .preview-participant,
  .preview-chat-input {
    flex-wrap: wrap;
  }

  .preview-controls-buttons {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-control-pill + .preview-control-pill {
    border-left: 0;
    border-top: 1px solid rgba(94, 230, 106, 0.14);
  }

  .auth-copy h2 {
    font-size: 1.72rem;
  }
}
