:root {
  --bg: #050817;
  --bg-deep: #02040d;
  --panel: rgba(10, 14, 31, .88);
  --panel2: rgba(16, 20, 43, .92);
  --panel3: rgba(23, 28, 56, .82);

  --purple: #8b3dff;
  --purple-bright: #b56cff;
  --green: #b7ff3c;
  --green-bright: #d4ff70;

  --line: rgba(139, 61, 255, .32);
  --line-soft: rgba(255, 255, 255, .08);

  --text: #f5f7ff;
  --silver: #c9d0df;
  --muted: #7e88a5;
  --red: #ff4d6d;

  --shadow-purple: 0 0 30px rgba(139, 61, 255, .22);
  --shadow-green: 0 0 28px rgba(183, 255, 60, .16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 15% 15%, rgba(139, 61, 255, .16), transparent 32%),
    radial-gradient(circle at 85% 80%, rgba(183, 255, 60, .07), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(20, 35, 90, .18), transparent 55%),
    var(--bg-deep);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

body {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* =========================================================
   APP
   ========================================================= */

.app-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
  height: 76px;
  flex: 0 0 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 6, 18, .92);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 35px rgba(0, 0, 0, .28);
  position: relative;
  z-index: 5;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--purple),
    var(--green),
    var(--purple),
    transparent
  );
  opacity: .75;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 0 10px rgba(139, 61, 255, .55));
}

.brand-title {
  font-weight: 900;
  letter-spacing: 3px;
  font-size: 17px;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--silver);
  opacity: .58;
  font-size: 9px;
  letter-spacing: 2.5px;
}

.room-info {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--silver);
  font-size: 11px;
  letter-spacing: 1.2px;
}

.status {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 9px;
  letter-spacing: 1.2px;
  background: rgba(0, 0, 0, .18);
}

.status.online {
  color: var(--green);
  box-shadow: 0 0 16px rgba(183, 255, 60, .12);
}

.status.offline {
  color: var(--red);
}

/* =========================================================
   MAIN
   ========================================================= */

.main-layout {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.meeting-area {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.video-grid {
  flex: 1;
  min-height: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  overflow: auto;
}

.video-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 61, 255, .11), transparent 45%),
    #030510;
  box-shadow:
    inset 0 0 45px rgba(139, 61, 255, .045),
    0 10px 30px rgba(0, 0, 0, .22);
}

.video-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.video-tile video {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
  background: #020307;
}

.video-name {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 11px;
  border-radius: 7px;
  background: rgba(2, 4, 12, .82);
  border-left: 2px solid var(--green);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 1px;
  backdrop-filter: blur(8px);
}

.video-badges {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  gap: 6px;
}

.badge {
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(3, 5, 15, .78);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.empty-state {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  text-align: center;
  color: var(--muted);
}

.empty-icon {
  color: var(--purple-bright);
  font-size: 46px;
  text-shadow: 0 0 25px rgba(139, 61, 255, .65);
}

.empty-state h2 {
  margin: 12px 0 8px;
  color: var(--text);
  letter-spacing: 3px;
}

.empty-state p {
  margin: 0;
  font-size: 13px;
}

/* =========================================================
   CONTROLS
   ========================================================= */

.control-bar {
  min-height: 82px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border-top: 1px solid var(--line);
  background: rgba(4, 7, 19, .94);
  backdrop-filter: blur(18px);
}

.control-btn {
  min-width: 80px;
  height: 60px;
  border: 1px solid rgba(139, 61, 255, .25);
  border-radius: 11px;
  background: linear-gradient(
    180deg,
    rgba(23, 28, 56, .9),
    rgba(10, 14, 31, .95)
  );
  color: var(--text);
  transition: .2s ease;
}

.control-btn:hover {
  border-color: var(--purple-bright);
  box-shadow: var(--shadow-purple);
  transform: translateY(-1px);
}

.control-btn span {
  display: block;
  font-size: 18px;
}

.control-btn small {
  display: block;
  margin-top: 5px;
  color: var(--silver);
  opacity: .7;
  font-size: 8px;
  letter-spacing: 1.3px;
}

.control-btn.danger:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 22px rgba(255, 77, 109, .14);
}

/* =========================================================
   SIDE PANEL
   ========================================================= */

.side-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(
      180deg,
      rgba(9, 13, 29, .98),
      rgba(5, 8, 20, .98)
    );
  box-shadow: -12px 0 35px rgba(0, 0, 0, .18);
}

.panel-block {
  padding: 15px;
  border-bottom: 1px solid var(--line-soft);
}

.chat-block {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 11px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.participants-list {
  max-height: 160px;
  overflow: auto;
}

.participant {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(139, 61, 255, .12);
  font-size: 12px;
}

.participant-meta {
  color: var(--muted);
  font-size: 10px;
}

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

.chat-messages {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 4px 0;
}

.chat-message {
  margin-bottom: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(16, 20, 43, .72);
  border-left: 2px solid var(--purple);
  box-shadow: inset 0 0 20px rgba(139, 61, 255, .025);
}

.chat-message .chat-user {
  color: var(--purple-bright);
  font-size: 10px;
  letter-spacing: 1px;
}

/* =========================================================
   CHAT FORM
   ========================================================= */

.chat-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.chat-form input {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(139, 61, 255, .25);
  border-radius: 9px;
  outline: none;
  background: rgba(4, 7, 18, .9);
  color: var(--text);
}

.chat-form input:focus {
  border-color: var(--purple-bright);
  box-shadow: 0 0 18px rgba(139, 61, 255, .14);
}

.chat-form button {
  width: 44px;
  border: 1px solid rgba(183, 255, 60, .35);
  border-radius: 9px;
  background: rgba(183, 255, 60, .08);
  color: var(--green);
}

.chat-form button:hover {
  background: rgba(183, 255, 60, .15);
  box-shadow: var(--shadow-green);
}

/* =========================================================
   MODERATION
   ========================================================= */

.action-btn {
  width: 100%;
  min-height: 40px;
  margin-bottom: 10px;
  border: 1px solid rgba(183, 255, 60, .25);
  border-radius: 8px;
  background: rgba(183, 255, 60, .055);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.action-btn:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-green);
}

.moderation-users {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* =========================================================
   LOGIN / ENTRANCE
   ========================================================= */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(139, 61, 255, .18), transparent 35%),
    radial-gradient(circle at 70% 75%, rgba(183, 255, 60, .08), transparent 25%),
    rgba(2, 4, 13, .96);
  backdrop-filter: blur(16px);
}

.login-card {
  width: min(460px, 100%);
  padding: 38px 38px 34px;
  border: 1px solid rgba(139, 61, 255, .42);
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(17, 21, 47, .96),
      rgba(6, 9, 24, .98)
    );
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .62),
    0 0 60px rgba(139, 61, 255, .14);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -120px;
  right: -100px;
  border-radius: 50%;
  background: rgba(183, 255, 60, .08);
  filter: blur(20px);
}

.login-card::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--purple),
    var(--green),
    var(--purple),
    transparent
  );
}

.login-logo {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  border: 1px solid rgba(183, 255, 60, .3);
  background:
    radial-gradient(circle, rgba(183, 255, 60, .09), transparent 68%),
    rgba(3, 6, 17, .72);
  color: var(--green);
  font-size: 42px;
  box-shadow:
    0 0 30px rgba(183, 255, 60, .1),
    inset 0 0 25px rgba(139, 61, 255, .08);
  overflow: hidden;
}

.login-logo img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.login-card h1 {
  margin: 0;
  text-align: center;
  color: var(--text);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 3px;
}

.login-card > p {
  margin: 9px 0 27px;
  text-align: center;
  color: var(--silver);
  opacity: .62;
  font-size: 9px;
  letter-spacing: 3px;
}

.login-card label {
  display: block;
  margin-bottom: 15px;
  color: var(--silver);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.login-card input {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 7px;
  padding: 0 14px;
  border: 1px solid rgba(139, 61, 255, .28);
  border-radius: 10px;
  outline: none;
  background: rgba(3, 6, 17, .9);
  color: var(--text);
  transition: .2s ease;
}

.login-card input::placeholder {
  color: #56617d;
}

.login-card input:focus {
  border-color: var(--purple-bright);
  box-shadow:
    0 0 20px rgba(139, 61, 255, .14),
    inset 0 0 12px rgba(139, 61, 255, .035);
}

.login-btn {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: 1px solid var(--green);
  border-radius: 11px;
  background:
    linear-gradient(
      90deg,
      rgba(139, 61, 255, .92),
      rgba(108, 54, 220, .92)
    );
  color: white;
  font-weight: 900;
  letter-spacing: 1.5px;
  box-shadow:
    0 0 25px rgba(139, 61, 255, .2),
    inset 0 0 20px rgba(255, 255, 255, .04);
  transition: .2s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 35px rgba(139, 61, 255, .35),
    0 0 15px rgba(183, 255, 60, .12);
}

.login-error {
  min-height: 18px;
  margin-top: 13px;
  color: var(--red);
  text-align: center;
  font-size: 11px;
}

/* =========================================================
   SCROLLBARS
   ========================================================= */

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 61, 255, .55) transparent;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(139, 61, 255, .45);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(183, 255, 60, .55);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {
  .topbar {
    padding: 0 14px;
  }

  .brand-subtitle {
    display: none;
  }

  .main-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    display: none;
  }

  .video-grid {
    padding: 12px;
    gap: 10px;
  }

  .control-bar {
    min-height: 74px;
  }

  .control-btn {
    min-width: 68px;
  }
}

@media (max-width: 520px) {
  .topbar {
    height: 62px;
    flex-basis: 62px;
  }

  .brand-title {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .room-info {
    gap: 7px;
    font-size: 9px;
  }

  .login-card {
    padding: 30px 22px 27px;
    border-radius: 20px;
  }

  .login-logo {
    width: 88px;
    height: 88px;
  }

  .login-card h1 {
    font-size: 21px;
  }

  .control-btn {
    min-width: 62px;
    height: 55px;
  }
}

/* KONECTA MEET — Mic Level V2 */
.mic-level-panel {
  width: min(420px, 90%);
  margin: 10px auto 0;
  padding: 8px 12px;
  border: 1px solid rgba(139, 61, 255, 0.35);
  border-radius: 12px;
  background: rgba(8, 12, 30, 0.72);
  box-shadow: 0 0 18px rgba(139, 61, 255, 0.08);
}

.mic-level-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.mic-level-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.mic-level-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b3dff, #b56cff, #b7ff3c);
  box-shadow: 0 0 12px rgba(183, 255, 60, 0.35);
  transition: width 80ms linear;
}

.mic-level-panel.is-speaking {
  border-color: rgba(183, 255, 60, 0.55);
  box-shadow: 0 0 20px rgba(183, 255, 60, 0.12);
}

.mic-level-panel.is-speaking #micLevelStatus {
  color: #b7ff3c;
}

.mic-level-panel.is-muted #micLevelStatus {
  color: #b56cff;
}


/* KONECTA MEET — Estado MIC/CAM en tarjetas */
.video-tile {
  position: relative;
}

.video-media-status {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.78);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 14px rgba(139, 61, 255, 0.18);
  font-size: 12px;
  line-height: 1;
}

.video-media-status span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.video-tile.media-muted .media-status-mic,
.video-tile.camera-off .media-status-camera {
  background: rgba(181, 108, 255, 0.18);
  box-shadow: 0 0 10px rgba(181, 108, 255, 0.18);
}


/* KONECTA MEET — Panel avanzado de participantes */
.participant-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 10px;
  margin-bottom: 7px;
  border: 1px solid rgba(139, 61, 255, 0.20);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(18, 22, 48, 0.88),
    rgba(8, 12, 30, 0.92)
  );
  box-shadow: inset 0 0 18px rgba(139, 61, 255, 0.035);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.participant-item:hover {
  transform: translateY(-1px);
  border-color: rgba(181, 108, 255, 0.45);
  box-shadow:
    0 0 18px rgba(139, 61, 255, 0.10),
    inset 0 0 18px rgba(139, 61, 255, 0.05);
}

.participant-item.participant-local {
  border-color: rgba(183, 255, 60, 0.42);
  box-shadow:
    0 0 16px rgba(183, 255, 60, 0.08),
    inset 0 0 18px rgba(183, 255, 60, 0.035);
}

.participant-item.participant-sharing {
  border-color: rgba(181, 108, 255, 0.58);
  box-shadow:
    0 0 18px rgba(181, 108, 255, 0.12);
}

.participant-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(181, 108, 255, 0.55);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 30%,
      rgba(181, 108, 255, 0.35),
      rgba(139, 61, 255, 0.12) 48%,
      rgba(5, 8, 22, 0.95) 100%
    );
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 0 12px rgba(139, 61, 255, 0.15);
}

.participant-local .participant-avatar {
  border-color: rgba(183, 255, 60, 0.65);
  color: #d4ff70;
  box-shadow: 0 0 14px rgba(183, 255, 60, 0.12);
}

.participant-main {
  flex: 1 1 auto;
  min-width: 0;
}

.participant-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.participant-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.participant-you {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid rgba(183, 255, 60, 0.45);
  border-radius: 999px;
  color: #d4ff70;
  background: rgba(183, 255, 60, 0.08);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.participant-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.participant-role,
.participant-share {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.60);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.participant-role.is-admin {
  color: #d4ff70;
  background: rgba(183, 255, 60, 0.09);
  border: 1px solid rgba(183, 255, 60, 0.22);
}

.participant-share {
  color: #d6b8ff;
  background: rgba(139, 61, 255, 0.13);
  border: 1px solid rgba(181, 108, 255, 0.28);
}

.participant-media {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.participant-media-icon {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  line-height: 1;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.participant-media-icon.is-on {
  box-shadow: 0 0 9px rgba(183, 255, 60, 0.08);
}

.participant-media-icon.is-off {
  background: rgba(181, 108, 255, 0.15);
  box-shadow: 0 0 9px rgba(181, 108, 255, 0.10);
  opacity: 0.92;
}

@media (max-width: 640px) {
  .participant-item {
    min-height: 54px;
    padding: 8px;
    gap: 8px;
  }

  .participant-avatar {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .participant-media-icon {
    width: 23px;
    height: 23px;
    font-size: 11px;
  }
}


/* KONECTA MEET — Avatar premium */
.participant-avatar {
  position: relative;
  overflow: visible;
  border-color: rgba(181, 108, 255, 0.72);
  background:
    radial-gradient(
      circle at 32% 28%,
      rgba(212, 255, 112, 0.38) 0%,
      rgba(181, 108, 255, 0.28) 24%,
      rgba(139, 61, 255, 0.18) 52%,
      rgba(5, 8, 22, 0.96) 100%
    );
  box-shadow:
    0 0 8px rgba(181, 108, 255, 0.45),
    0 0 20px rgba(139, 61, 255, 0.25),
    inset 0 0 12px rgba(183, 255, 60, 0.10);
}

.participant-avatar::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(183, 255, 60, 0.85),
    rgba(139, 61, 255, 0.90),
    rgba(181, 108, 255, 0.70),
    rgba(183, 255, 60, 0.85)
  );
  filter: blur(4px);
  opacity: 0.75;
  animation: konectaAvatarGlow 3.2s linear infinite;
}

.participant-avatar::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(5, 8, 22, 0.95);
  border-radius: 50%;
  background: #b7ff3c;
  box-shadow:
    0 0 7px rgba(183, 255, 60, 0.95),
    0 0 14px rgba(183, 255, 60, 0.55);
}

.participant-item.participant-local .participant-avatar {
  border-color: rgba(212, 255, 112, 0.88);
  box-shadow:
    0 0 10px rgba(183, 255, 60, 0.55),
    0 0 24px rgba(139, 61, 255, 0.32),
    inset 0 0 14px rgba(183, 255, 60, 0.13);
}

.participant-item.participant-muted .participant-avatar::after {
  background: #b56cff;
  box-shadow:
    0 0 7px rgba(181, 108, 255, 0.90),
    0 0 14px rgba(181, 108, 255, 0.50);
}

.participant-item.participant-sharing .participant-avatar::before {
  animation-duration: 1.6s;
  opacity: 1;
}

@keyframes konectaAvatarGlow {
  to {
    transform: rotate(360deg);
  }
}


/* KONECTA MEET — Selector de emojis */
.chat-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.chat-input-wrap input {
  width: 100%;
  padding-right: 48px;
}

.emoji-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(181, 108, 255, 0.45);
  border-radius: 10px;
  background: rgba(15, 19, 42, 0.9);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.emoji-button:hover {
  border-color: rgba(183, 255, 60, 0.8);
  box-shadow:
    0 0 10px rgba(183, 255, 60, 0.22),
    0 0 18px rgba(139, 61, 255, 0.18);
  transform: translateY(-50%) scale(1.05);
}

.emoji-button:active {
  transform: translateY(-50%) scale(0.96);
}


/* KONECTA MEET — Panel de emojis */
.emoji-picker {
  position: absolute;
  right: 8px;
  bottom: 58px;
  z-index: 50;
  display: none;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(181, 108, 255, 0.55);
  border-radius: 14px;
  background: rgba(6, 9, 24, 0.97);
  box-shadow:
    0 0 18px rgba(139, 61, 255, 0.28),
    0 0 35px rgba(183, 255, 60, 0.08);
  backdrop-filter: blur(14px);
}

.emoji-picker.visible {
  display: grid;
}

.emoji-option {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(181, 108, 255, 0.18);
  border-radius: 9px;
  background: rgba(15, 19, 42, 0.82);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: 0.15s ease;
}

.emoji-option:hover {
  border-color: rgba(183, 255, 60, 0.72);
  background: rgba(139, 61, 255, 0.22);
  box-shadow: 0 0 10px rgba(183, 255, 60, 0.18);
  transform: scale(1.08);
}

.emoji-option:active {
  transform: scale(0.94);
}

@media (max-width: 600px) {
  .emoji-picker {
    right: 4px;
    bottom: 54px;
    grid-template-columns: repeat(6, 1fr);
    width: min(260px, calc(100vw - 24px));
  }
}


/* KONECTA_AUDIO_PANEL_V1 */
.audio-settings-panel {
  margin: 12px 0 20px;
  padding: 16px;
  border: 1px solid rgba(181, 108, 255, 0.24);
  border-radius: 14px;
  background: rgba(12, 16, 35, 0.76);
  color: #f3f0ff;
}

.audio-settings-title {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #b7ff3c;
}

.audio-settings-field {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  font-size: 12px;
  color: #c8c2dd;
}

.audio-settings-field select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(181, 108, 255, 0.28);
  border-radius: 9px;
  background: #11152b;
  color: #fff;
}

.audio-settings-field select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.audio-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.audio-settings-actions button {
  padding: 9px 12px;
  border: 1px solid rgba(183, 255, 60, 0.35);
  border-radius: 9px;
  background: rgba(183, 255, 60, 0.08);
  color: #e9ffd0;
  cursor: pointer;
}

.audio-settings-actions button:hover {
  background: rgba(183, 255, 60, 0.16);
}

.audio-settings-status {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #bdb7d4;
}

.audio-settings-status.is-error {
  color: #ff9fba;
}

@media (max-width: 600px) {
  .audio-settings-panel {
    padding: 12px;
  }

  .audio-settings-actions button {
    flex: 1 1 140px;
  }
}
/* FIN KONECTA_AUDIO_PANEL_V1 */


/* KONECTA — Desplazamiento vertical hasta configuración de audio */
.app-shell {
  min-height: 0;
}

.main-layout {
  min-height: 0;
  overflow: hidden;
}

.meeting-area {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

.video-grid {
  flex: 0 0 auto;
  min-height: 180px;
  overflow: visible;
}

.audio-settings-panel {
  flex: 0 0 auto;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .meeting-area {
    min-height: 0;
    padding-bottom: 12px;
  }
}

/* KONECTA_FUTURISTIC_STUDIO_V1 */
:root {
  --cyan: #35eaff;
  --cyan-soft: rgba(53, 234, 255, .16);
  --line: rgba(53, 234, 255, .26);
  --shadow-cyan: 0 0 26px rgba(53, 234, 255, .12);
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 61, 255, .18), transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(53, 234, 255, .08), transparent 35%),
    var(--bg-deep);
}

.topbar {
  background: linear-gradient(110deg, rgba(8, 10, 28, .98), rgba(12, 17, 39, .96));
  border-bottom-color: rgba(53, 234, 255, .24);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3), 0 1px 0 rgba(53, 234, 255, .08);
}

.topbar::after {
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), var(--purple), transparent);
}

.brand-title {
  text-shadow: 0 0 18px rgba(53, 234, 255, .16);
}

.status.online {
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(53, 234, 255, .16);
}

.video-tile,
.panel-block,
.audio-settings-panel,
.mic-level-panel,
.login-card {
  border-color: rgba(120, 145, 210, .24);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .2), var(--shadow-cyan);
}

.video-tile {
  background: linear-gradient(145deg, rgba(15, 21, 45, .96), rgba(5, 8, 23, .98));
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.video-tile:hover {
  border-color: rgba(53, 234, 255, .5);
  box-shadow: 0 0 24px rgba(53, 234, 255, .1);
}

.panel-block,
.audio-settings-panel,
.mic-level-panel {
  background: linear-gradient(145deg, rgba(14, 19, 42, .94), rgba(6, 9, 25, .96));
  backdrop-filter: blur(16px);
}

.panel-title,
.audio-settings-title {
  letter-spacing: 1.8px;
}

.control-btn,
.action-btn,
.audio-settings-actions button {
  border: 1px solid rgba(53, 234, 255, .24);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.control-btn:hover,
.action-btn:hover,
.audio-settings-actions button:hover {
  border-color: rgba(53, 234, 255, .7);
  box-shadow: 0 0 18px rgba(53, 234, 255, .14);
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.audio-settings-field select,
.chat-input-wrap input,
.login-card input {
  border-color: rgba(120, 145, 210, .3);
  background-color: rgba(3, 7, 21, .88);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.audio-settings-field select:focus,
.chat-input-wrap input:focus,
.login-card input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 234, 255, .09);
}

.login-card {
  background: linear-gradient(145deg, rgba(17, 20, 47, .98), rgba(5, 8, 23, .99));
  border-color: rgba(53, 234, 255, .28);
}

.login-btn {
  box-shadow: 0 0 22px rgba(139, 61, 255, .2);
}

@media (prefers-reduced-motion: reduce) {
  .video-tile,
  .control-btn,
  .action-btn,
  .audio-settings-actions button,
  .audio-settings-field select,
  .chat-input-wrap input,
  .login-card input {
    transition: none;
  }
}
/* FIN KONECTA_FUTURISTIC_STUDIO_V1 */

/* KONECTA_PREMIUM_POLISH_V1 */

/* Paneles con profundidad y bordes discretos */
.side-panel {
  border-left-color: rgba(53, 234, 255, .2);
  background:
    linear-gradient(155deg, rgba(13, 19, 43, .97), rgba(4, 7, 20, .99));
}

.panel-block,
.audio-settings-panel,
.mic-level-panel {
  border-color: rgba(120, 145, 210, .18);
  border-radius: 14px;
}

/* Tarjetas de vídeo */
.video-tile {
  border-radius: 17px;
  border-color: rgba(112, 137, 202, .28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    0 14px 35px rgba(0, 0, 0, .24);
}

.video-name {
  border-left-color: var(--cyan);
  border-radius: 9px;
  backdrop-filter: blur(12px);
}

/* Controles principales */
.control-bar {
  border-top-color: rgba(53, 234, 255, .2);
  background: linear-gradient(
    180deg,
    rgba(8, 12, 29, .94),
    rgba(3, 5, 16, .98)
  );
}

.control-btn {
  border-radius: 13px;
  background: linear-gradient(
    145deg,
    rgba(24, 31, 61, .96),
    rgba(8, 12, 29, .98)
  );
}

.control-btn:focus-visible,
.action-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* Formulario de acceso */
.login-card {
  border-radius: 25px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .46),
    0 0 38px rgba(139, 61, 255, .12),
    0 0 24px rgba(53, 234, 255, .05);
}

.login-card input {
  border-radius: 12px;
  min-height: 46px;
}

.login-btn {
  border-color: rgba(190, 155, 255, .65);
  background: linear-gradient(105deg, #7138df, #4d58db);
  border-radius: 13px;
  min-height: 50px;
}

.login-btn:hover {
  border-color: var(--cyan);
}

/* Campos de audio y chat */
.audio-settings-field select,
.chat-input-wrap input {
  border-radius: 11px;
}

.chat-input-wrap input {
  min-height: 42px;
}

/* Móviles: evitar botones demasiado estrechos */
@media (max-width: 600px) {
  .video-grid {
    gap: 12px;
    padding: 12px;
  }

  .video-tile {
    border-radius: 13px;
  }

  .control-bar {
    gap: 7px;
    padding: 9px 7px;
  }

  .control-btn {
    min-width: 0;
    border-radius: 11px;
  }

  .login-card {
    padding: 28px 22px 26px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-tile,
  .control-btn,
  .login-btn {
    transition: none !important;
  }
}

/* FIN KONECTA_PREMIUM_POLISH_V1 */

/* =========================================================
   KONECTA_STUDIO_REDESIGN_V2
   Rediseño visual exclusivo de la hoja de estilos de Meet
   ========================================================= */

:root {
  --studio-cyan: #45e8ff;
  --studio-purple: #9865ff;
  --studio-green: #c3ff52;
  --studio-surface: #0c1224;
  --studio-border: rgba(139, 163, 220, .20);
}

html,
body {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(102, 65, 205, .19), transparent 36%),
    radial-gradient(ellipse at 85% 95%, rgba(28, 190, 220, .09), transparent 35%),
    #050816;
}

.app-shell {
  background: transparent;
}

.topbar {
  height: 72px;
  flex-basis: 72px;
  padding: 0 28px;
  background: rgba(7, 11, 26, .96);
  border-bottom: 1px solid rgba(69, 232, 255, .24);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .24);
}

.topbar::after {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 2%,
    var(--studio-purple) 25%,
    var(--studio-cyan) 65%,
    transparent 98%
  );
  opacity: .8;
}

.brand-title {
  letter-spacing: 2.8px;
  font-weight: 900;
}

.brand-subtitle {
  letter-spacing: 2px;
  color: #91a2c8;
}

.room-info {
  gap: 12px;
}

#roomLabel {
  padding: 8px 12px;
  border: 1px solid var(--studio-border);
  border-radius: 9px;
  background: rgba(17, 25, 48, .75);
  color: #dbe6ff;
}

#connectionStatus {
  border-radius: 7px;
  letter-spacing: 1.5px;
}

.main-layout {
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 0;
  min-height: 0;
  background: rgba(5, 8, 22, .3);
}

.meeting-area {
  min-width: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(25, 38, 80, .17), transparent 65%);
}

.video-grid {
  align-content: center;
  gap: 18px;
  padding: 22px;
}

.video-tile {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(130, 157, 220, .30);
  border-radius: 18px;
  background: linear-gradient(145deg, #131c35, #080d1c 75%);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, .32),
    inset 0 1px rgba(255, 255, 255, .055);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.video-tile:hover {
  border-color: rgba(69, 232, 255, .58);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .36),
    0 0 22px rgba(69, 232, 255, .08);
  transform: none;
}

.video-tile video {
  background: #070b17;
}

.video-name {
  border: 1px solid rgba(69, 232, 255, .2);
  border-left: 3px solid var(--studio-cyan);
  border-radius: 9px;
  background: rgba(5, 10, 24, .88);
  backdrop-filter: blur(12px);
}

.empty-state {
  padding: 38px 22px;
  border: 1px dashed rgba(69, 232, 255, .28);
  border-radius: 22px;
  background: radial-gradient(ellipse at top, rgba(69, 232, 255, .055), transparent 70%);
}

.empty-state h2 {
  letter-spacing: 3px;
}

.empty-icon {
  color: var(--studio-cyan);
  text-shadow: 0 0 28px rgba(69, 232, 255, .38);
}

.control-bar {
  gap: 13px;
  min-height: 91px;
  padding: 14px 18px;
  border-top: 1px solid rgba(69, 232, 255, .18);
  background: rgba(6, 10, 24, .96);
}

.control-btn {
  min-width: 86px;
  height: 62px;
  border: 1px solid rgba(136, 157, 211, .23);
  border-radius: 14px;
  background: linear-gradient(145deg, #18223d, #0a1022);
  box-shadow: inset 0 1px rgba(255, 255, 255, .045);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.control-btn:hover {
  border-color: var(--studio-cyan);
  background: linear-gradient(145deg, #202d4c, #101a30);
  box-shadow: 0 0 20px rgba(69, 232, 255, .12);
  transform: translateY(-2px);
}

.control-btn span {
  font-size: 20px;
}

.control-btn small {
  color: #b7c5e2;
  font-size: 9px;
  letter-spacing: 1.5px;
  opacity: 1;
}

.control-btn.danger {
  border-color: rgba(255, 77, 109, .35);
  background: linear-gradient(145deg, rgba(90, 25, 49, .65), rgba(29, 12, 28, .95));
}

.control-btn.danger:hover {
  border-color: #ff617b;
  background: rgba(115, 25, 51, .75);
  color: #fff;
}

.side-panel {
  min-width: 0;
  border-left: 1px solid rgba(69, 232, 255, .19);
  background: linear-gradient(180deg, #0d1428, #080d1c 72%, #070b18);
  box-shadow: -12px 0 35px rgba(0, 0, 0, .16);
}

.panel-block {
  padding: 19px 17px;
  border-bottom: 1px solid rgba(142, 164, 215, .14);
}

.panel-title {
  margin-bottom: 15px;
  color: var(--studio-cyan);
  font-size: 10px;
  letter-spacing: 2.1px;
}

.participant {
  align-items: center;
  padding: 12px 9px;
  border: 1px solid transparent;
  border-bottom-color: rgba(142, 164, 215, .10);
  border-radius: 9px;
  transition: background .18s ease;
}

.participant:hover {
  background: rgba(69, 232, 255, .045);
}

.participant-meta {
  color: #91a1c0;
}

.chat-messages {
  padding: 9px 2px;
  scrollbar-color: #344567 transparent;
  scrollbar-width: thin;
}

.chat-message {
  padding: 11px 12px;
  border: 1px solid rgba(145, 130, 255, .12);
  border-left: 3px solid var(--studio-purple);
  border-radius: 5px 12px 12px 12px;
  background: linear-gradient(125deg, rgba(26, 32, 61, .88), rgba(13, 19, 39, .85));
  box-shadow: none;
  overflow-wrap: anywhere;
}

.chat-message .chat-user {
  color: #b9a0ff;
  font-weight: 800;
  letter-spacing: .8px;
}

.chat-form input,
.chat-input-wrap input,
.login-card input,
.audio-settings-field select {
  border-color: rgba(139, 163, 220, .25);
  background-color: #0a1021;
  color: #f4f7ff;
}

.chat-form input:focus,
.chat-input-wrap input:focus,
.login-card input:focus,
.audio-settings-field select:focus {
  outline: none;
  border-color: var(--studio-cyan);
  box-shadow: 0 0 0 3px rgba(69, 232, 255, .09);
}

.action-btn {
  border-radius: 10px;
  transition: border-color .18s ease, background .18s ease;
}

.action-btn:hover {
  border-color: var(--studio-cyan);
}

.audio-settings-panel,
.mic-level-panel {
  border-color: rgba(139, 163, 220, .19);
  border-radius: 13px;
  background: rgba(10, 16, 34, .88);
}

.overlay {
  background: rgba(2, 4, 14, .84);
  backdrop-filter: blur(12px);
}

.login-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(69, 232, 255, .26);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(123, 77, 228, .16), transparent 52%),
    linear-gradient(145deg, #121a32, #080d1c 72%);
  box-shadow:
    0 32px 100px rgba(0, 0, 0, .58),
    0 0 45px rgba(105, 75, 222, .12);
}

.login-card h1 {
  letter-spacing: 2px;
}

.login-card > p {
  color: #aab8d5;
  line-height: 1.65;
}

.login-card label {
  color: #cbd6ef;
  letter-spacing: .5px;
}

.login-card input {
  min-height: 48px;
  border-radius: 12px;
}

.login-btn {
  min-height: 50px;
  border: 1px solid rgba(69, 232, 255, .38);
  border-radius: 12px;
  background: linear-gradient(105deg, #7040db, #4658d5);
  box-shadow: 0 8px 24px rgba(92, 67, 209, .19);
  font-weight: 800;
  letter-spacing: .6px;
  transition: filter .18s ease, box-shadow .18s ease;
}

.login-btn:hover {
  filter: brightness(1.12);
  box-shadow: 0 10px 28px rgba(69, 232, 255, .12);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--studio-cyan);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .video-grid {
    padding: 14px;
    gap: 12px;
  }

  .panel-block {
    padding: 14px 12px;
  }
}

@media (max-width: 600px) {
  .topbar {
    height: 64px;
    flex-basis: 64px;
    padding: 0 12px;
  }

  .brand-title {
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .brand-subtitle {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .room-info {
    gap: 6px;
  }

  #roomLabel {
    padding: 6px 7px;
    font-size: 10px;
  }

  .video-grid {
    padding: 10px;
    gap: 10px;
  }

  .control-bar {
    gap: 8px;
    padding: 10px 7px;
    min-height: 78px;
  }

  .control-btn {
    min-width: 0;
    flex: 1;
    max-width: 100px;
    height: 57px;
    padding: 5px 2px;
  }

  .control-btn small {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .login-card {
    width: calc(100% - 28px);
    padding: 27px 20px;
    border-radius: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-tile,
  .control-btn,
  .participant,
  .action-btn,
  .login-btn {
    transition: none !important;
  }
}

/* FIN KONECTA_STUDIO_REDESIGN_V2 */

/* KONECTA_FUTURISTIC_FINAL_POLISH_V1 */
:root {
  --studio-cyan: #35eaff;
  --studio-border: rgba(80, 205, 255, .3);
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 61, 255, .28), transparent 52%),
    radial-gradient(ellipse at 95% 80%, rgba(53, 234, 255, .13), transparent 38%),
    #050816 !important;
}

.topbar {
  background: linear-gradient(110deg, #080b20, #11152f 55%, #091b2c) !important;
  border-bottom: 1px solid rgba(53, 234, 255, .38) !important;
  box-shadow: 0 8px 34px rgba(0, 0, 0, .38), 0 1px 18px rgba(53, 234, 255, .08) !important;
}

.topbar::after {
  background: linear-gradient(90deg, transparent, #8b3dff, #35eaff, #8b3dff, transparent) !important;
}

.video-tile,
.panel-block,
.audio-settings-panel,
.mic-level-panel,
.login-card {
  border-color: rgba(75, 220, 255, .32) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .28), 0 0 22px rgba(53, 234, 255, .075) !important;
}

.video-tile {
  background: linear-gradient(145deg, #111a35, #070b1b 78%) !important;
}

.video-tile:hover {
  border-color: rgba(53, 234, 255, .8) !important;
  box-shadow: 0 0 28px rgba(53, 234, 255, .16) !important;
}

.panel-block,
.audio-settings-panel,
.mic-level-panel {
  background: linear-gradient(145deg, rgba(15, 22, 46, .97), rgba(6, 10, 27, .98)) !important;
}

.panel-title,
.audio-settings-title {
  text-shadow: 0 0 14px rgba(53, 234, 255, .16);
}

.control-btn,
.action-btn,
.audio-settings-actions button {
  border-color: rgba(53, 234, 255, .35) !important;
}

.control-btn:hover,
.action-btn:hover,
.audio-settings-actions button:hover {
  border-color: #35eaff !important;
  box-shadow: 0 0 22px rgba(53, 234, 255, .2) !important;
}

.status.online {
  color: #35eaff !important;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #35eaff !important;
  outline-offset: 3px;
}
/* FIN KONECTA_FUTURISTIC_FINAL_POLISH_V1 */

/* KONEKTA_PREMIUM_FINISH_V1 */

/* Superficies oscuras, con profundidad y menos ruido visual */
:root {
  --studio-border: rgba(139, 163, 220, .19);
}

.topbar {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .24) !important;
  border-bottom-color: rgba(80, 205, 255, .20) !important;
}

.video-tile,
.panel-block,
.audio-settings-panel,
.mic-level-panel,
.login-card {
  border-color: rgba(125, 166, 205, .20) !important;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .025) !important;
}

.video-tile {
  background: linear-gradient(
    145deg,
    rgba(18, 27, 49, .98),
    rgba(7, 11, 25, .99)
  ) !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}

.video-tile:hover {
  border-color: rgba(53, 234, 255, .48) !important;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .28),
    0 0 12px rgba(53, 234, 255, .055) !important;
}

.panel-block,
.audio-settings-panel,
.mic-level-panel {
  background: linear-gradient(
    145deg,
    rgba(16, 23, 43, .97),
    rgba(7, 11, 25, .98)
  ) !important;
}

.control-btn,
.action-btn,
.audio-settings-actions button {
  border-color: rgba(110, 164, 200, .24) !important;
  box-shadow: none !important;
  transition: background .2s ease, border-color .2s ease,
              box-shadow .2s ease, transform .2s ease !important;
}

.control-btn:hover,
.action-btn:hover,
.audio-settings-actions button:hover {
  border-color: rgba(53, 234, 255, .55) !important;
  box-shadow: 0 0 12px rgba(53, 234, 255, .07) !important;
}

.panel-title,
.audio-settings-title {
  text-shadow: 0 0 10px rgba(53, 234, 255, .08) !important;
}

.login-card {
  box-shadow:
    0 20px 55px rgba(0, 0, 0, .35),
    0 0 24px rgba(139, 61, 255, .055) !important;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #35eaff !important;
  outline-offset: 3px;
}

/* FIN KONEKTA_PREMIUM_FINISH_V1 */

/* KONEKTA_LOGIN_PREMIUM_POLISH_V1 */
#loginOverlay {
  background:
    radial-gradient(ellipse at 50% 38%, rgba(69, 88, 213, .19), transparent 42%),
    radial-gradient(ellipse at 50% 100%, rgba(53, 234, 255, .09), transparent 48%),
    rgba(3, 6, 18, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#loginOverlay .login-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(420px, calc(100% - 32px));
  padding: 32px 28px;
  border: 1px solid rgba(92, 220, 255, .25);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(20, 27, 55, .97), rgba(8, 12, 29, .985));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .48),
    0 0 42px rgba(53, 234, 255, .07),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

#loginOverlay .login-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #35eaff, #8b5cf6, transparent);
  opacity: .9;
}

#loginOverlay .login-logo img {
  max-width: 104px;
  max-height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(53, 234, 255, .16));
}

#loginOverlay .login-card h1 {
  margin-top: 16px;
  letter-spacing: 3px;
  text-shadow: 0 0 24px rgba(53, 234, 255, .12);
}

#loginOverlay .login-card > p {
  color: rgba(188, 207, 235, .72);
  letter-spacing: 1.8px;
  line-height: 1.7;
}

#loginOverlay .login-card label {
  display: block;
  margin-top: 17px;
  color: #b8c9e8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

#loginOverlay .login-card input {
  box-sizing: border-box;
  width: 100%;
  min-height: 47px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(133, 160, 207, .23);
  border-radius: 12px;
  background: rgba(4, 9, 24, .78);
  color: #f4f8ff;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#loginOverlay .login-card input:hover {
  border-color: rgba(53, 234, 255, .4);
}

#loginOverlay .login-card input:focus {
  border-color: rgba(53, 234, 255, .8);
  background: rgba(7, 14, 33, .96);
  box-shadow: 0 0 0 3px rgba(53, 234, 255, .09);
  outline: none;
}

#loginOverlay .login-btn {
  min-height: 49px;
  margin-top: 24px;
  border: 1px solid rgba(152, 244, 255, .3);
  border-radius: 12px;
  background: linear-gradient(105deg, #7040db, #4658d5 58%, #287cc7);
  box-shadow: 0 9px 28px rgba(76, 77, 213, .24);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

#loginOverlay .login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
  box-shadow: 0 12px 32px rgba(53, 234, 255, .16);
}

#loginOverlay .login-btn:active {
  transform: translateY(0);
}

#loginOverlay .login-error {
  margin-top: 12px;
}

@media (max-width: 600px) {
  #loginOverlay .login-card {
    width: calc(100% - 36px);
    padding: 26px 20px;
    border-radius: 20px;
  }

  #loginOverlay .login-card h1 {
    font-size: clamp(20px, 6vw, 26px);
    letter-spacing: 2px;
  }

  #loginOverlay .login-card label {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #loginOverlay .login-card input,
  #loginOverlay .login-btn {
    transition: none !important;
  }

  #loginOverlay .login-btn:hover {
    transform: none;
  }
}
/* FIN KONEKTA_LOGIN_PREMIUM_POLISH_V1 */


/* KONEKTA_ROOM_PREMIUM_POLISH_V1 */
.app-shell {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(71, 86, 210, .09), transparent 38%),
    radial-gradient(ellipse at 95% 85%, rgba(53, 234, 255, .045), transparent 34%),
    #070b16;
}

.topbar {
  background: linear-gradient(100deg, rgba(14, 20, 39, .98), rgba(10, 15, 30, .96));
  border-bottom: 1px solid rgba(103, 204, 255, .16);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .16);
}

.topbar::after {
  opacity: .75;
}

.video-grid {
  gap: 16px;
}

.video-tile {
  border: 1px solid rgba(115, 151, 204, .23);
  border-radius: 17px;
  background: linear-gradient(145deg, #111a2b, #090e1b);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.video-tile:hover {
  border-color: rgba(53, 234, 255, .48);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .25),
    0 0 22px rgba(53, 234, 255, .06);
}

.video-tile video {
  border-radius: inherit;
}

.side-panel {
  gap: 14px;
}

.panel-block {
  border: 1px solid rgba(115, 151, 204, .19);
  border-radius: 17px;
  background: linear-gradient(150deg, rgba(18, 25, 44, .94), rgba(10, 15, 29, .96));
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .16),
    inset 0 1px 0 rgba(255, 255, 255, .035);
}

.control-bar {
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(115, 151, 204, .17);
  border-radius: 20px;
  background: linear-gradient(110deg, rgba(17, 24, 43, .96), rgba(9, 14, 27, .97));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
}

.control-btn {
  border: 1px solid rgba(130, 160, 207, .22);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(31, 43, 67, .94), rgba(17, 25, 43, .96));
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.control-btn:hover {
  border-color: rgba(53, 234, 255, .48);
  background: linear-gradient(145deg, rgba(35, 58, 82, .98), rgba(19, 31, 51, .98));
  box-shadow: 0 0 20px rgba(53, 234, 255, .08);
  transform: translateY(-1px);
}

.control-btn:focus-visible {
  outline: 2px solid #35eaff;
  outline-offset: 3px;
}

.control-btn.danger {
  border-color: rgba(255, 94, 123, .3);
}

.control-btn.danger:hover {
  border-color: rgba(255, 94, 123, .7);
  box-shadow: 0 0 20px rgba(255, 76, 110, .12);
}

.participant {
  border-radius: 11px;
  transition: background .18s ease, border-color .18s ease;
}

.participant:hover {
  background: rgba(53, 234, 255, .045);
}

@media (max-width: 900px) {
  .video-grid {
    gap: 12px;
  }

  .side-panel {
    gap: 10px;
  }

  .control-bar {
    gap: 8px;
    padding: 11px;
  }
}

@media (max-width: 600px) {
  .video-grid {
    gap: 10px;
    padding: 12px;
  }

  .video-tile {
    border-radius: 13px;
  }

  .control-bar {
    gap: 7px;
    padding: 9px;
    border-radius: 15px;
  }

  .control-btn {
    border-radius: 11px;
  }

  .panel-block {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-tile,
  .control-btn,
  .participant {
    transition: none !important;
  }

  .control-btn:hover {
    transform: none;
  }
}
/* FIN KONEKTA_ROOM_PREMIUM_POLISH_V1 */


/* KONEKTA_PARTICIPANTS_CHAT_POLISH_V1 */

/* Lista de participantes */
.participants-list {
  gap: 7px;
  padding: 8px 4px;
}

.participant {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 10px;
  transition: background .18s ease, border-color .18s ease;
}

.participant:hover {
  background: rgba(53, 234, 255, .055);
  border-color: rgba(53, 234, 255, .13);
}

.participant-meta {
  color: #91a4c2;
  line-height: 1.45;
}

.participant-name {
  color: #eef5ff;
  font-weight: 650;
  letter-spacing: .01em;
}

.participant-avatar {
  box-shadow: 0 0 0 3px rgba(53, 234, 255, .045);
}

/* Chat */
.chat-messages {
  padding: 13px;
  scroll-behavior: smooth;
}

.chat-message {
  margin: 7px 0;
  padding: 10px 12px;
  border: 1px solid rgba(115, 151, 204, .12);
  border-radius: 12px;
  background: rgba(20, 29, 49, .66);
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.chat-message .chat-user {
  display: block;
  margin-bottom: 4px;
  color: #70eaff;
  font-weight: 700;
  letter-spacing: .015em;
}

.chat-form {
  gap: 9px;
  padding-top: 10px;
}

.chat-form input,
.chat-input-wrap input {
  min-height: 43px;
  border: 1px solid rgba(115, 151, 204, .24);
  border-radius: 12px;
  background: rgba(7, 12, 25, .88);
  color: #f2f7ff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.chat-form input:focus,
.chat-input-wrap input:focus {
  border-color: rgba(53, 234, 255, .65);
  box-shadow: 0 0 0 3px rgba(53, 234, 255, .08);
  outline: none;
}

.chat-form input::placeholder,
.chat-input-wrap input::placeholder {
  color: #7486a4;
}

.chat-form button {
  border-radius: 12px;
  transition: filter .18s ease, transform .18s ease;
}

.chat-form button:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .participants-list {
    padding: 6px 2px;
  }

  .participant {
    padding: 8px;
  }

  .chat-messages {
    padding: 9px;
  }

  .chat-message {
    padding: 9px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .participant,
  .chat-form input,
  .chat-input-wrap input,
  .chat-form button {
    transition: none !important;
  }

  .chat-form button:hover {
    transform: none;
  }
}

/* FIN KONEKTA_PARTICIPANTS_CHAT_POLISH_V1 */

/* KONEKTA_CONTROLS_POLISH_V1 */

/* Estados de micrófono y cámara */
.control-btn.active {
  border-color: rgba(53, 234, 255, .62) !important;
  background: linear-gradient(
    145deg,
    rgba(15, 66, 83, .94),
    rgba(12, 29, 48, .98)
  ) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .06),
    0 0 16px rgba(53, 234, 255, .075) !important;
}

.control-btn.active span,
.control-btn.active small {
  color: #8df2ff;
}

.control-btn:not(.active):not(.danger) {
  border-color: rgba(142, 157, 184, .24);
  background: linear-gradient(
    145deg,
    rgba(35, 39, 54, .94),
    rgba(18, 22, 35, .98)
  );
}

.control-btn.danger {
  border-color: rgba(255, 91, 119, .52) !important;
  background: linear-gradient(
    145deg,
    rgba(112, 29, 52, .94),
    rgba(47, 15, 31, .98)
  ) !important;
  color: #fff1f4;
}

.control-btn.danger span,
.control-btn.danger small {
  color: #ffb6c4;
}

.control-btn.danger:hover {
  border-color: #ff617b !important;
  background: linear-gradient(
    145deg,
    rgba(145, 35, 61, .98),
    rgba(65, 17, 37, .98)
  ) !important;
  box-shadow: 0 0 22px rgba(255, 76, 110, .16) !important;
}

.control-btn:focus-visible {
  outline: 2px solid #35eaff;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .control-bar {
    justify-content: center;
  }

  .control-btn {
    min-width: 0;
    flex: 1 1 0;
    max-width: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .control-btn {
    transition: none !important;
  }

  .control-btn:hover {
    transform: none;
  }
}

/* FIN KONEKTA_CONTROLS_POLISH_V1 */

/* KONEKTA_VIDEO_TILES_POLISH_V1 */

/* Tarjetas de vídeo */
.video-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(145deg, #111b30, #070b16) !important;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .045) !important;
}

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

.video-name {
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  color: #f1f7ff;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
  border: 1px solid rgba(111, 207, 255, .25);
  border-left: 3px solid #35eaff;
  border-radius: 10px;
  background: rgba(5, 10, 24, .88);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .2);
  backdrop-filter: blur(12px);
  overflow-wrap: anywhere;
}

/* Indicadores de micrófono y cámara */
.video-tile .media-status-mic,
.video-tile .media-status-camera {
  z-index: 3;
  border: 1px solid rgba(139, 166, 205, .22);
  border-radius: 10px;
  background: rgba(6, 12, 26, .88);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  backdrop-filter: blur(10px);
}

/* Micrófono silenciado */
.video-tile.media-muted {
  border-color: rgba(255, 177, 92, .48) !important;
}

.video-tile.media-muted .media-status-mic {
  border-color: rgba(255, 177, 92, .5);
  background: rgba(79, 43, 18, .9);
}

/* Cámara apagada */
.video-tile.camera-off {
  background: radial-gradient(
    ellipse at 50% 35%,
    rgba(35, 57, 88, .65),
    rgba(7, 11, 22, .99) 75%
  ) !important;
}

/* Vídeo local: resalte sutil */
.video-tile.local,
.video-tile.is-local {
  border-color: rgba(53, 234, 255, .34);
}

/* Movimiento discreto al pasar el cursor */
.video-tile:hover {
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .video-tile {
    border-radius: 13px;
  }

  .video-name {
    max-width: calc(100% - 16px);
    padding: 6px 9px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-tile {
    transition: none !important;
  }

  .video-tile:hover {
    transform: none;
  }
}

/* FIN KONEKTA_VIDEO_TILES_POLISH_V1 */

/* KONEKTA_CHAT_STATUS_FINISH_V1 */

/* Área de mensajes */
.chat-messages {
  padding: 14px !important;
  gap: 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 191, 255, .38) transparent;
}

/* Mensajes recibidos */
.chat-message {
  position: relative;
  min-width: 0;
  padding: 11px 13px !important;
  margin: 0 0 9px !important;
  border: 1px solid rgba(142, 173, 219, .13);
  border-left: 3px solid rgba(112, 151, 204, .58);
  border-radius: 5px 14px 14px 14px !important;
  background: linear-gradient(
    135deg,
    rgba(25, 39, 64, .88),
    rgba(12, 20, 37, .94)
  ) !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .12);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-message strong {
  display: block;
  margin-bottom: 5px;
  color: #7edcff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .045em;
  overflow-wrap: anywhere;
}

.chat-message span {
  color: #e6edf8;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Mensajes enviados por ti */
.chat-message.own {
  border-left: 1px solid rgba(66, 237, 210, .32);
  border-right: 3px solid #38e4cf;
  border-radius: 14px 5px 14px 14px !important;
  background: linear-gradient(
    135deg,
    rgba(15, 62, 67, .72),
    rgba(12, 31, 47, .94)
  ) !important;
}

.chat-message.own strong {
  color: #6af3d9;
}

/* Campo de escritura */
.chat-input-wrap {
  border: 1px solid rgba(106, 183, 255, .2);
  border-radius: 14px;
  background: rgba(7, 14, 29, .8);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.chat-input-wrap:focus-within {
  border-color: rgba(53, 234, 255, .65);
  box-shadow: 0 0 0 3px rgba(53, 234, 255, .07);
}

/* Botón de enviar */
.chat-form > button[type="submit"] {
  min-width: 44px;
  border-radius: 13px;
  transition: transform .18s ease, filter .18s ease;
}

.chat-form > button[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

/* Estado de conexión */
.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid rgba(144, 170, 207, .22);
  border-radius: 999px;
  background: rgba(11, 20, 38, .84);
  color: #dbe8f8;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .13);
}

.connection-status.connected {
  border-color: rgba(67, 230, 166, .34);
  background: rgba(12, 54, 46, .72);
  color: #8af5c9;
}

.connection-status.connecting {
  border-color: rgba(255, 195, 92, .4);
  background: rgba(65, 44, 18, .68);
  color: #ffd58b;
}

.connection-status.error,
.connection-status.disconnected {
  border-color: rgba(255, 111, 130, .4);
  background: rgba(68, 22, 35, .72);
  color: #ffacba;
}

/* Adaptación móvil */
@media (max-width: 600px) {
  .chat-messages {
    padding: 10px !important;
  }

  .chat-message {
    padding: 9px 11px !important;
    margin-bottom: 7px !important;
  }

  .chat-message span {
    font-size: 12px;
  }

  .connection-status {
    font-size: 11px;
    padding: 6px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-input-wrap,
  .chat-form > button[type="submit"] {
    transition: none !important;
  }

  .chat-form > button[type="submit"]:hover {
    transform: none;
  }
}

/* FIN KONEKTA_CHAT_STATUS_FINISH_V1 */


/* KONEKTA_PARTICIPANTS_FINISH_V1 */

/* Tarjetas de participantes */
.participant-item {
  position: relative;
  gap: 11px;
  padding: 12px !important;
  margin-bottom: 8px;
  border: 1px solid rgba(130, 164, 210, .15);
  border-radius: 15px !important;
  background: linear-gradient(
    135deg,
    rgba(22, 35, 58, .88),
    rgba(10, 17, 32, .94)
  ) !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .12);
  transition: border-color .18s ease, background .18s ease,
              transform .18s ease, box-shadow .18s ease;
}

.participant-item:hover {
  border-color: rgba(89, 196, 255, .35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  transform: translateY(-1px);
}

/* Avatar */
.participant-avatar {
  flex-shrink: 0;
  border: 1px solid rgba(105, 208, 255, .28);
  background: linear-gradient(145deg, #203e63, #101a30) !important;
  color: #dff7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08),
              0 4px 12px rgba(0, 0, 0, .16);
  font-weight: 750;
}

/* Nombre y detalles */
.participant-main {
  min-width: 0;
}

.participant-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.participant-name {
  color: #eef5ff;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.participant-role {
  color: #9eb1cc;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .07em;
}

.participant-role.is-admin {
  color: #ffd48a;
}

.participant-you {
  padding: 3px 6px;
  border: 1px solid rgba(57, 234, 208, .3);
  border-radius: 6px;
  background: rgba(15, 94, 82, .28);
  color: #75f2d9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
}

.participant-share {
  padding: 3px 6px;
  border: 1px solid rgba(53, 234, 255, .28);
  border-radius: 6px;
  background: rgba(14, 91, 112, .3);
  color: #7ceaff;
  font-size: 9px;
  font-weight: 800;
}

/* Estados de micrófono y cámara */
.participant-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.participant-media-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(145, 172, 210, .2);
  border-radius: 9px;
  background: rgba(11, 20, 36, .85);
  font-size: 13px;
}

.participant-media-icon.is-on {
  border-color: rgba(66, 221, 170, .23);
  background: rgba(13, 64, 51, .38);
}

.participant-media-icon.is-off {
  border-color: rgba(255, 174, 105, .28);
  background: rgba(75, 43, 23, .42);
}

/* Tu propio usuario */
.participant-item.participant-local {
  border-color: rgba(56, 228, 207, .3) !important;
  background: linear-gradient(
    135deg,
    rgba(14, 57, 63, .68),
    rgba(10, 21, 37, .96)
  ) !important;
}

.participant-item.participant-local .participant-avatar {
  border-color: rgba(56, 228, 207, .5);
}

/* Administrador */
.participant-item.participant-admin .participant-avatar {
  border-color: rgba(255, 205, 116, .4);
}

/* Compartiendo pantalla */
.participant-item.participant-sharing {
  border-color: rgba(53, 205, 255, .48) !important;
  box-shadow: 0 0 0 1px rgba(53, 205, 255, .07),
              0 7px 22px rgba(0, 0, 0, .16);
}

/* Lista y contador */
.participants-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 191, 255, .35) transparent;
}

#participantCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  min-height: 25px;
  padding: 0 7px;
  border: 1px solid rgba(53, 234, 255, .24);
  border-radius: 9px;
  background: rgba(17, 75, 101, .35);
  color: #8ceaff;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .participant-item {
    gap: 8px;
    padding: 9px !important;
    border-radius: 12px !important;
  }

  .participant-media {
    gap: 3px;
  }

  .participant-media-icon {
    width: 25px;
    height: 25px;
    border-radius: 7px;
    font-size: 12px;
  }

  .participant-name {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .participant-item {
    transition: none !important;
  }

  .participant-item:hover {
    transform: none;
  }
}

/* FIN KONEKTA_PARTICIPANTS_FINISH_V1 */


/* KONEKTA_MODERATION_FINISH_V1 */

/* Paneles de moderación y administración */
#moderationPanel,
#roomAdminPanel {
  border: 1px solid rgba(125, 164, 215, .2);
  border-radius: 17px;
  background: linear-gradient(
    145deg,
    rgba(20, 32, 54, .96),
    rgba(9, 15, 29, .98)
  );
  box-shadow: 0 10px 28px rgba(0, 0, 0, .17);
}

#moderationPanel .panel-title,
#roomAdminPanel .panel-title {
  color: #dcecff;
  letter-spacing: .09em;
}

/* Bloquear sala */
#lockRoomBtn {
  width: 100%;
  min-height: 43px;
  margin: 5px 0 12px;
  border: 1px solid rgba(255, 190, 94, .32);
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(111, 69, 24, .72),
    rgba(64, 40, 20, .9)
  );
  color: #ffdda0;
  font-weight: 800;
  letter-spacing: .045em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06),
              0 5px 14px rgba(0, 0, 0, .14);
  transition: filter .18s ease, transform .18s ease;
}

#lockRoomBtn:hover {
  filter: brightness(1.13);
  transform: translateY(-1px);
}

/* Filas de usuarios administrables */
.moderation-users {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.moderation-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(130, 164, 210, .14);
  border-radius: 12px;
  background: rgba(12, 21, 38, .78);
  transition: border-color .18s ease, background .18s ease;
}

.moderation-user:hover {
  border-color: rgba(98, 187, 255, .3);
  background: rgba(19, 33, 55, .92);
}

.moderation-user > span {
  min-width: 0;
  color: #e8f0fc;
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

/* Botones de acción */
#moderationPanel .moderation-user button,
#roomAdminPanel .moderation-user button,
#accountRequestsPanel .moderation-user button {
  flex-shrink: 0;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  transition: filter .18s ease, transform .18s ease;
}

#moderationPanel .moderation-user button.danger,
#roomAdminPanel .moderation-user button.danger,
#accountRequestsPanel .moderation-user button.danger {
  border: 1px solid rgba(255, 111, 130, .32);
  background: rgba(103, 29, 46, .72);
  color: #ffb0bd;
}

#moderationPanel .moderation-user button.danger:hover,
#roomAdminPanel .moderation-user button.danger:hover,
#accountRequestsPanel .moderation-user button.danger:hover {
  filter: brightness(1.18);
  transform: translateY(-1px);
}

#roomAdminPanel .moderation-user button.action-btn {
  border: 1px solid rgba(66, 207, 190, .28);
  background: rgba(15, 77, 76, .65);
  color: #91f4e3;
}

#roomAdminPanel .moderation-user button.action-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* Accesibilidad: foco visible */
#lockRoomBtn:focus-visible,
#moderationPanel .moderation-user button:focus-visible,
#roomAdminPanel .moderation-user button:focus-visible,
#accountRequestsPanel .moderation-user button:focus-visible {
  outline: 2px solid #66e7ff;
  outline-offset: 3px;
}

/* Pantallas pequeñas */
@media (max-width: 600px) {
  #moderationPanel,
  #roomAdminPanel {
    border-radius: 13px;
  }

  .moderation-user {
    gap: 7px;
    padding: 9px;
  }

  #moderationPanel .moderation-user button,
  #roomAdminPanel .moderation-user button {
    padding: 7px 8px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #lockRoomBtn,
  .moderation-user,
  #moderationPanel .moderation-user button,
  #roomAdminPanel .moderation-user button {
    transition: none !important;
  }

  #lockRoomBtn:hover,
  #moderationPanel .moderation-user button:hover,
  #roomAdminPanel .moderation-user button:hover {
    transform: none;
  }
}

/* FIN KONEKTA_MODERATION_FINISH_V1 */


/* KONEKTA_AUDIO_FINISH_V1 */

/* Panel de configuración */
#audioSettingsPanel {
  position: relative;
  border: 1px solid rgba(100, 180, 235, .22);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(19, 32, 55, .96),
    rgba(8, 15, 29, .98)
  );
  box-shadow: 0 12px 30px rgba(0, 0, 0, .17);
}

.audio-settings-title {
  color: #a8eaff;
  letter-spacing: .1em;
  font-weight: 800;
}

/* Etiquetas */
.audio-settings-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: #c5d5eb;
  font-size: 12px;
  font-weight: 650;
}

/* Selectores de micrófono y salida */
.audio-settings-field select {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid rgba(111, 164, 220, .25);
  border-radius: 11px;
  background-color: rgba(7, 15, 30, .94);
  color: #edf6ff;
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.audio-settings-field select:focus-visible {
  border-color: rgba(53, 234, 255, .7);
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 234, 255, .09);
}

.audio-settings-field select:disabled {
  opacity: .58;
  cursor: not-allowed;
}

/* Acciones de audio */
.audio-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.audio-settings-actions button {
  min-height: 39px;
  padding: 9px 13px;
  border: 1px solid rgba(79, 192, 255, .28);
  border-radius: 11px;
  background: linear-gradient(
    135deg,
    rgba(23, 76, 111, .76),
    rgba(15, 42, 72, .92)
  );
  color: #dff7ff;
  font-size: 11px;
  font-weight: 750;
  transition: filter .18s ease, transform .18s ease;
}

.audio-settings-actions button:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.audio-settings-actions button:focus-visible {
  outline: 2px solid #66e7ff;
  outline-offset: 3px;
}

/* Mensajes de estado */
.audio-settings-status {
  padding: 10px 12px;
  border: 1px solid rgba(116, 161, 211, .18);
  border-radius: 10px;
  background: rgba(8, 17, 32, .72);
  color: #b9cce5;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.audio-settings-status.is-error {
  border-color: rgba(255, 112, 133, .4);
  background: rgba(75, 25, 39, .55);
  color: #ffb5c0;
}

/* Medidor del micrófono */
#micLevelPanel {
  border: 1px solid rgba(86, 179, 225, .2);
  border-radius: 14px;
  background: linear-gradient(
    120deg,
    rgba(15, 34, 54, .94),
    rgba(8, 17, 32, .96)
  );
}

.mic-level-label {
  color: #c5d8ee;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .045em;
}

#micLevelValue {
  color: #83e9ff;
  font-variant-numeric: tabular-nums;
}

.mic-level-track {
  overflow: hidden;
  border: 1px solid rgba(128, 169, 209, .12);
  border-radius: 999px;
  background: rgba(3, 9, 20, .9);
}

.mic-level-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, #35d6b0, #42e8ec, #7b9cff);
  box-shadow: 0 0 12px rgba(53, 234, 255, .2);
}

.mic-level-panel.is-speaking {
  border-color: rgba(57, 226, 178, .38);
}

.mic-level-panel.is-speaking #micLevelStatus {
  color: #75f0c9;
}

.mic-level-panel.is-muted #micLevelStatus {
  color: #ffbd88;
}

/* Adaptación móvil */
@media (max-width: 600px) {
  #audioSettingsPanel {
    border-radius: 14px;
  }

  .audio-settings-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .audio-settings-actions button {
    width: 100%;
    min-height: 42px;
  }

  .audio-settings-field select {
    min-height: 42px;
    font-size: 12px;
  }
}

/* Respetar preferencias de movimiento */
@media (prefers-reduced-motion: reduce) {
  .audio-settings-field select,
  .audio-settings-actions button {
    transition: none !important;
  }

  .audio-settings-actions button:hover {
    transform: none;
  }
}

/* FIN KONEKTA_AUDIO_FINISH_V1 */


/* KONEKTA_ROOM_ADMIN_SCROLL_FIX_V2 */

/* Limitar la altura de la lista y forzar su desplazamiento */
#roomAdminPanel {
}

#roomAdminPanel #roomAdminUsers {
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #52bfe9 #101d32 !important;
}

#roomAdminPanel #roomAdminUsers .moderation-user {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  #roomAdminPanel {
  }

  #roomAdminPanel #roomAdminUsers {
  }
}

/* FIN KONEKTA_ROOM_ADMIN_SCROLL_FIX_V2 */


/* KONEKTA_ROOM_ADMIN_HORIZONTAL_FIX_V1 */
#roomAdminPanel {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#roomAdminPanel #roomAdminUsers {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100%;
  min-width: 0;
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 4px;
}

#roomAdminPanel #roomAdminUsers .moderation-user {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#roomAdminPanel #roomAdminUsers .moderation-user > span {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

#roomAdminPanel #roomAdminUsers .moderation-user > button {
  flex: 0 0 auto;
  width: auto;
  max-width: 55%;
  white-space: normal;
}

@media (max-width: 600px) {
  #roomAdminPanel #roomAdminUsers .moderation-user {
    flex-direction: row !important;
    align-items: center !important;
  }
}
/* FIN KONEKTA_ROOM_ADMIN_HORIZONTAL_FIX_V1 */


/* KONEKTA_VIDEO_PREMIUM_FINISH_V1 */

/* Acabado refinado de las tarjetas */
.video-tile {
  border: 1px solid rgba(119, 166, 218, .22) !important;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease !important;
}

/* Resplandor discreto al interactuar */
.video-tile:hover {
  border-color: rgba(65, 213, 255, .58) !important;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, .30),
    0 0 0 1px rgba(65, 213, 255, .08),
    0 0 22px rgba(39, 174, 235, .10) !important;
}

/* Nombre legible sobre cualquier imagen */
.video-tile .video-name {
  background: rgba(5, 12, 27, .90);
  border-color: rgba(100, 207, 255, .30);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .24);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

/* Indicadores multimedia más definidos */
.video-tile .media-status-mic,
.video-tile .media-status-camera {
  border-color: rgba(151, 190, 232, .28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .24);
}

/* No aplicar elevación en dispositivos táctiles */
@media (hover: none) {
  .video-tile:hover {
    transform: none;
  }
}

/* Respetar la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .video-tile,
  .video-tile:hover {
    transition: none !important;
    transform: none !important;
  }
}

/* FIN KONEKTA_VIDEO_PREMIUM_FINISH_V1 */


/* KONEKTA_CHAT_PARTICIPANTS_PREMIUM_V1 */

/* Lista de participantes */
.participants-list {
  gap: 9px;
}

.participant-item {
  border: 1px solid rgba(119, 166, 218, .18) !important;
  border-radius: 14px !important;
  background: linear-gradient(
    135deg,
    rgba(20, 35, 59, .82),
    rgba(9, 17, 32, .88)
  ) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.participant-item:hover {
  border-color: rgba(65, 213, 255, .42) !important;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .16);
}

.participant-name {
  color: #edf6ff !important;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.participant-role {
  letter-spacing: .035em;
}

.participant-item.participant-local {
  border-color: rgba(65, 213, 255, .30) !important;
}

.participant-item.participant-admin .participant-avatar {
  box-shadow: 0 0 0 2px rgba(90, 169, 255, .22);
}

.participant-media-icon {
  border-radius: 8px !important;
}

/* Mensajes del chat */
.chat-messages {
  gap: 10px;
  padding: 12px;
  scroll-behavior: smooth;
}

.chat-message {
  border: 1px solid rgba(119, 166, 218, .15);
  border-radius: 14px !important;
  background: linear-gradient(
    145deg,
    rgba(25, 40, 64, .84),
    rgba(12, 22, 39, .92)
  ) !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .12);
  overflow-wrap: anywhere;
  transition: border-color .2s ease;
}

.chat-message:hover {
  border-color: rgba(119, 190, 255, .28);
}

.chat-message strong {
  color: #79dcff !important;
  font-weight: 700;
}

.chat-message span {
  color: #e1ebf8;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.chat-message.own {
  border-color: rgba(55, 197, 255, .28) !important;
  background: linear-gradient(
    145deg,
    rgba(16, 64, 91, .72),
    rgba(12, 35, 57, .94)
  ) !important;
}

.chat-message.own strong {
  color: #9be8ff !important;
}

/* Mejor adaptación en pantallas pequeñas */
@media (max-width: 600px) {
  .participants-list {
    gap: 7px;
  }

  .participant-item {
    border-radius: 12px !important;
  }

  .chat-messages {
    padding: 8px;
    gap: 8px;
  }

  .chat-message {
    border-radius: 12px !important;
  }
}

/* Accesibilidad: reducir animaciones si se solicita */
@media (prefers-reduced-motion: reduce) {
  .participant-item,
  .chat-message {
    transition: none !important;
  }

  .chat-messages {
    scroll-behavior: auto;
  }
}

/* FIN KONEKTA_CHAT_PARTICIPANTS_PREMIUM_V1 */


/* KONEKTA_CONTROLS_PREMIUM_FINISH_V2 */

/* Barra de controles */
.control-bar {
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(119, 166, 218, .20);
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(19, 32, 53, .96),
    rgba(7, 13, 26, .97)
  );
  box-shadow:
    0 12px 32px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* Botones de acción */
.control-bar .control-btn {
  min-width: 48px;
  min-height: 48px;
  border: 1px solid rgba(139, 177, 222, .23);
  border-radius: 15px;
  background: linear-gradient(
    145deg,
    rgba(39, 57, 83, .95),
    rgba(17, 29, 49, .98)
  );
  box-shadow:
    0 5px 13px rgba(0, 0, 0, .20),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.control-bar .control-btn:hover {
  border-color: rgba(65, 213, 255, .62);
  box-shadow:
    0 7px 18px rgba(0, 0, 0, .25),
    0 0 17px rgba(39, 174, 235, .12);
  transform: translateY(-2px);
}

.control-bar .control-btn:focus-visible {
  outline: 2px solid #41d5ff;
  outline-offset: 3px;
}

/* Salir: diferenciación clara */
.control-bar .control-btn.danger {
  border-color: rgba(255, 93, 111, .42);
  background: linear-gradient(
    145deg,
    rgba(135, 39, 57, .96),
    rgba(78, 20, 35, .98)
  );
  box-shadow:
    0 5px 15px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

.control-bar .control-btn.danger:hover {
  border-color: rgba(255, 119, 133, .82);
  box-shadow: 0 0 20px rgba(255, 65, 90, .17);
}

/* Adaptación móvil */
@media (max-width: 600px) {
  .control-bar {
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
  }

  .control-bar .control-btn {
    min-width: 44px;
    min-height: 44px;
    border-radius: 13px;
  }
}

/* Reducir movimiento si el usuario lo solicita */
@media (prefers-reduced-motion: reduce) {
  .control-bar .control-btn,
  .control-bar .control-btn:hover {
    transition: none;
    transform: none;
  }
}

/* FIN KONEKTA_CONTROLS_PREMIUM_FINISH_V2 */


/* KONEKTA_AUDIO_PREMIUM_FINISH_V2 */

/* Paneles de audio */
.audio-settings-panel,
.mic-level-panel {
  border: 1px solid rgba(119, 166, 218, .22) !important;
  border-radius: 17px !important;
  background: linear-gradient(
    145deg,
    rgba(19, 34, 57, .94),
    rgba(8, 16, 31, .97)
  ) !important;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, .20),
    inset 0 1px 0 rgba(255, 255, 255, .045) !important;
}

/* Selectores de micrófono y salida */
.audio-settings-panel select,
.audio-settings-panel input {
  border: 1px solid rgba(119, 166, 218, .28) !important;
  border-radius: 11px !important;
  background-color: rgba(7, 15, 29, .96) !important;
  color: #edf6ff !important;
}

.audio-settings-panel select:focus,
.audio-settings-panel input:focus {
  border-color: rgba(65, 213, 255, .72) !important;
  outline: 2px solid rgba(65, 213, 255, .12);
  outline-offset: 1px;
}

/* Estado y nivel del micrófono */
#micLevelStatus {
  color: #9dddf5;
  font-weight: 700;
  letter-spacing: .06em;
}

#micLevelValue {
  color: #e8f7ff;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.mic-level-bar {
  overflow: hidden;
  border-radius: 999px !important;
  background: rgba(91, 125, 164, .20) !important;
}

.mic-level-panel.is-speaking {
  border-color: rgba(56, 221, 177, .48) !important;
  box-shadow:
    0 0 20px rgba(56, 221, 177, .08),
    inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

.mic-level-panel.is-speaking #micLevelStatus {
  color: #72f0c5 !important;
}

.mic-level-panel.is-muted #micLevelStatus {
  color: #ffbd86 !important;
}

/* Mensajes de estado */
.audio-settings-status {
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.audio-settings-status.is-error {
  border-color: rgba(255, 93, 111, .40) !important;
  color: #ffb4be !important;
  background: rgba(112, 29, 47, .24) !important;
}

/* Espaciado en móvil */
@media (max-width: 600px) {
  .audio-settings-panel,
  .mic-level-panel {
    border-radius: 14px !important;
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .audio-settings-panel,
  .mic-level-panel {
    transition: none !important;
  }
}

/* FIN KONEKTA_AUDIO_PREMIUM_FINISH_V2 */


/* KONEKTA_VUMETER_RESTORE_COLORS_V1 */

/* Recuperar el aspecto multicolor del medidor */
.mic-level-bar {
  background: linear-gradient(
    90deg,
    #20e38b 0%,
    #7bfa55 22%,
    #d9f443 42%,
    #ffc247 62%,
    #ff773d 80%,
    #ff355d 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  box-shadow:
    0 0 12px rgba(32, 227, 139, .16),
    inset 0 1px 0 rgba(255, 255, 255, .20) !important;
}

/* Mantener visible el medidor sobre el panel oscuro */
#micLevelPanel .mic-level-bar {
  background-color: rgba(91, 125, 164, .20);
}

/* FIN KONEKTA_VUMETER_RESTORE_COLORS_V1 */


/* KONEKTA_LOGIN_AND_ROOM_NOTICES_PREMIUM_V1 */
#loginOverlay {
  background:
    radial-gradient(ellipse at 18% 18%, rgba(0, 224, 255, .13), transparent 42%),
    radial-gradient(ellipse at 82% 78%, rgba(75, 91, 255, .16), transparent 45%),
    rgba(3, 8, 22, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#loginOverlay .login-card {
  border: 1px solid rgba(83, 220, 255, .28);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .48),
    0 0 38px rgba(0, 207, 255, .09),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

#loginOverlay .login-card input {
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#loginOverlay .login-card input:focus {
  border-color: rgba(56, 220, 255, .85);
  box-shadow: 0 0 0 3px rgba(0, 207, 255, .12);
}

#loginOverlay .login-error:not(:empty) {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 100, 120, .32);
  border-radius: 12px;
  background: rgba(255, 64, 96, .09);
  color: #ffb4c0;
}

.chat-message.system {
  position: relative;
  width: fit-content;
  max-width: 94%;
  margin: 12px auto;
  padding: 9px 14px;
  border: 1px solid rgba(65, 211, 255, .20);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(18, 54, 83, .58), rgba(20, 31, 63, .58));
  color: #b9d8e9;
  text-align: center;
  font-size: .84rem;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .12);
}

.chat-message.system strong {
  display: block;
  margin-bottom: 3px;
  color: #55dcff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.chat-message.system span {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  #loginOverlay .login-card {
    width: min(92vw, 420px);
  }

  .chat-message.system {
    max-width: 96%;
    padding: 8px 11px;
    font-size: .8rem;
  }
}
/* FIN KONEKTA_LOGIN_AND_ROOM_NOTICES_PREMIUM_V1 */

/* KONEKTA_ROOM_NOTICES_REFINED_V2 */
.chat-message.system {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 14px auto;
  padding: 10px 16px;
  border: 1px solid rgba(61, 215, 255, .30);
  border-radius: 13px;
  background:
    linear-gradient(110deg, rgba(9, 34, 58, .96), rgba(17, 25, 53, .96));
  color: #d1eafa;
  text-align: center;
  font-size: .82rem;
  line-height: 1.5;
  box-shadow:
    0 5px 20px rgba(0, 0, 0, .20),
    inset 0 1px 0 rgba(255, 255, 255, .035),
    0 0 15px rgba(0, 204, 255, .055);
  animation: konektaNoticeAppear .24s ease-out both;
}

.chat-message.system strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #55e2ff;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.chat-message.system strong::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #42e7ff;
  box-shadow: 0 0 9px rgba(66, 231, 255, .75);
}

.chat-message.system span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.chat-message.system span::selection {
  background: rgba(53, 234, 255, .28);
}

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

@media (prefers-reduced-motion: reduce) {
  .chat-message.system {
    animation: none;
  }
}

@media (max-width: 600px) {
  .chat-message.system {
    gap: 4px 8px;
    max-width: calc(100% - 16px);
    padding: 9px 12px;
    font-size: .78rem;
  }
}
/* FIN KONEKTA_ROOM_NOTICES_REFINED_V2 */

.side-panel{min-height:0;height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}.chat-block{flex:1 1 240px;min-height:220px}#moderationPanel,#roomAdminPanel{flex:0 0 auto;min-width:0}#moderationPanel .moderation-users,#roomAdminPanel #roomAdminUsers{max-height:220px;overflow-y:auto;overflow-x:hidden}
.overlay{background:radial-gradient(ellipse at 50% 25%,rgba(69,232,255,.12),transparent 42%),radial-gradient(ellipse at 50% 100%,rgba(75,92,220,.12),transparent 48%),rgba(2,4,14,.94);backdrop-filter:blur(16px)}.login-card{width:min(460px,100%);padding:38px 34px 32px;border-color:rgba(69,232,255,.38);box-shadow:0 32px 100px rgba(0,0,0,.62),0 0 50px rgba(69,232,255,.10)}.login-logo{border-color:rgba(69,232,255,.42);box-shadow:0 0 32px rgba(69,232,255,.12),inset 0 0 24px rgba(69,232,255,.06)}.login-card h1{color:#f3f8ff;letter-spacing:2.5px}.login-btn{background:linear-gradient(105deg,#276bdc,#20b9d2);border-color:rgba(105,241,255,.7);box-shadow:0 8px 28px rgba(32,185,210,.18)}.login-btn:hover{box-shadow:0 10px 34px rgba(32,185,210,.3)}
.welcome-message{margin:22px 0 26px;padding:20px 18px 18px;text-align:center;border-top:1px solid rgba(69,232,255,.22);border-bottom:1px solid rgba(69,232,255,.22);background:linear-gradient(110deg,rgba(69,232,255,.035),rgba(75,92,220,.09),rgba(69,232,255,.035));border-radius:14px}.welcome-eyebrow{display:block;margin-bottom:10px;color:#45e8ff;font-size:10px;font-weight:800;letter-spacing:2.5px}.welcome-message h2{margin:0 0 10px;color:#f4f8ff;font-size:clamp(21px,4vw,27px);line-height:1.25;font-weight:750;letter-spacing:-.5px}.welcome-message p{margin:0;color:#aabbd5;font-size:13px;line-height:1.7}.login-card .welcome-message{position:relative}
.farewell-overlay{display:none;position:fixed;inset:0;z-index:99999;align-items:center;justify-content:center;padding:24px;background:radial-gradient(ellipse at 50% 20%,rgba(69,232,255,.13),transparent 42%),radial-gradient(ellipse at 50% 100%,rgba(75,92,220,.15),transparent 48%),rgba(2,4,14,.97);backdrop-filter:blur(18px)}.farewell-card{width:min(520px,100%);padding:42px 32px;text-align:center;border:1px solid rgba(69,232,255,.3);border-radius:26px;background:linear-gradient(145deg,rgba(18,29,53,.98),rgba(6,12,27,.99));box-shadow:0 30px 100px rgba(0,0,0,.6),0 0 55px rgba(69,232,255,.09)}.farewell-logo{width:86px;height:86px;object-fit:contain;margin:0 auto 25px;filter:drop-shadow(0 0 18px rgba(69,232,255,.16))}.farewell-eyebrow{display:block;margin-bottom:14px;color:#45e8ff;font-size:10px;font-weight:800;letter-spacing:3px}.farewell-card h2{margin:0 0 16px;color:#f4f8ff;font-size:clamp(26px,5vw,36px);line-height:1.2;letter-spacing:-.6px}.farewell-card p{max-width:370px;margin:0 auto 28px;color:#afbed8;font-size:14px;line-height:1.8}.farewell-home-btn{min-height:50px;padding:0 25px;border:1px solid rgba(105,241,255,.65);border-radius:12px;background:linear-gradient(105deg,#276bdc,#20b9d2);color:#fff;font-weight:800;letter-spacing:1px;cursor:pointer;box-shadow:0 8px 28px rgba(32,185,210,.2)}.farewell-home-btn:hover{filter:brightness(1.12)}@media(max-width:480px){.farewell-card{padding:34px 22px}.farewell-logo{width:72px;height:72px}}

 
/* KONECTA CAMERA PREVIEW */
.camera-preview-panel{margin:0 0 18px;padding:14px;border:1px solid rgba(69,232,255,.22);border-radius:14px;background:linear-gradient(135deg,rgba(69,232,255,.045),rgba(75,92,220,.09))}
.camera-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:#45e8ff;font-size:10px;font-weight:800;letter-spacing:1.5px}
#cameraPreviewStatus{color:#aabbd5;font-size:11px;font-weight:500;letter-spacing:0}
#cameraPreviewVideo{display:none;width:100%;max-height:180px;aspect-ratio:16/9;object-fit:cover;background:#050a16;border:1px solid rgba(69,232,255,.2);border-radius:10px;transform:scaleX(-1)}
.camera-preview-toggle{width:100%;min-height:40px;margin-top:4px;padding:9px 12px;border:1px solid rgba(69,232,255,.35);border-radius:10px;background:rgba(39,107,220,.12);color:#45e8ff;font-size:11px;font-weight:800;letter-spacing:1px;cursor:pointer}
.camera-preview-toggle:hover{background:rgba(39,107,220,.24)}
.camera-preview-panel.is-active #cameraPreviewVideo{display:block;margin-bottom:10px}
@media(max-width:480px){.camera-preview-panel{padding:11px}#cameraPreviewVideo{max-height:150px}}

/* AJUSTE: acceso visible en pantallas pequeñas */
#loginOverlay {
  overflow-y: auto !important;
  align-items: flex-start !important;
  padding: 12px !important;
  box-sizing: border-box;
}
#loginOverlay .login-card {
  margin: auto !important;
  flex-shrink: 0;
}
#loginOverlay .camera-preview-panel {
  padding: 8px;
  margin-bottom: 10px;
}
#loginOverlay #cameraPreviewVideo {
  max-height: 110px;
}
#loginOverlay .camera-preview-heading {
  margin-bottom: 6px;
}
#loginOverlay .camera-preview-toggle {
  min-height: 36px;
  padding: 7px 10px;
}
@media (max-width: 600px) {
  #loginOverlay {
    justify-content: flex-start !important;
  }
  #loginOverlay .login-card {
    width: 100%;
    max-width: 420px;
  }
}

/* KONECTA MICROPHONE PREVIEW */
.mic-preview-controls{margin-top:8px;padding-top:8px;border-top:1px solid rgba(69,232,255,.12)}
.mic-preview-controls .camera-preview-heading{margin-bottom:6px}
#micPreviewStatus{color:#aabbd5;font-size:11px;font-weight:500;letter-spacing:0}
.mic-preview-meter{width:100%;height:7px;margin:6px 0 8px;overflow:hidden;border-radius:99px;background:rgba(170,187,213,.16);border:1px solid rgba(69,232,255,.15)}
#micPreviewMeterFill{display:block;width:0%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#276bdc,#45e8ff);transition:width .07s linear}
.mic-preview-controls .camera-preview-toggle{min-height:34px;margin-top:0;padding:7px 10px}

/* KONECTA VIDEO LAYOUT REFINEMENT V1 */
.meeting-area {
min-width: 0;
min-height: 0;
}

#videoGrid {
min-width: 0;
min-height: 260px;
align-content: center;
justify-content: center;
gap: 16px;
padding: clamp(12px, 2vw, 24px);
}

#videoGrid .video-tile {
min-width: 0;
max-width: 100%;
}

#videoGrid .empty-state {
width: min(100%, 620px);
margin: auto;
padding: clamp(22px, 4vw, 38px);
box-sizing: border-box;
background:
  radial-gradient(ellipse at center, rgba(69,232,255,.07), transparent 72%),
  rgba(8,14,30,.58);
}

#videoGrid .empty-state h2 {
font-size: clamp(18px, 2.2vw, 27px);
line-height: 1.3;
letter-spacing: clamp(1px, .25vw, 3px);
}

#videoGrid .empty-state p {
max-width: 390px;
margin-inline: auto;
line-height: 1.7;
}

@media (max-width: 600px) {
#videoGrid {
  min-height: 220px;
  gap: 10px;
  padding: 10px;
}

#videoGrid .empty-state {
  padding: 22px 14px;
  border-radius: 16px;
}
}
/* FIN KONECTA VIDEO LAYOUT REFINEMENT V1 */

/* KONECTA AUDIO CONSOLE REFINEMENT V1 */
.audio-settings-panel {
margin: 10px 0 16px;
padding: 14px;
border-color: rgba(53, 234, 255, .22);
border-radius: 16px;
background: linear-gradient(
  145deg,
  rgba(13, 24, 43, .96),
  rgba(7, 13, 27, .97)
);
box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.audio-settings-title {
color: #8deeff;
letter-spacing: .14em;
}

.audio-settings-field {
gap: 5px;
margin: 8px 0;
}

.audio-settings-field select {
min-height: 42px;
border-color: rgba(100, 165, 220, .24);
border-radius: 10px;
background: #091326;
}

.audio-settings-actions button {
min-height: 38px;
border-color: rgba(53, 234, 255, .26);
background: rgba(53, 234, 255, .07);
color: #d9faff;
}

.audio-settings-actions button:hover {
background: rgba(53, 234, 255, .14);
}

.audio-settings-status {
padding: 9px 11px;
border: 1px solid rgba(100, 165, 220, .13);
border-radius: 10px;
background: rgba(4, 10, 23, .55);
}

.mic-level-panel {
width: min(100% - 24px, 560px);
box-sizing: border-box;
margin: 10px auto 14px;
border-radius: 15px;
}

@media (max-width: 600px) {
.audio-settings-panel {
  margin: 8px 0 12px;
  padding: 11px;
}

.audio-settings-field select {
  min-height: 40px;
  padding: 9px;
}
}
/* FIN KONECTA AUDIO CONSOLE REFINEMENT V1 */

/* KONECTA PREMIUM STUDIO V1 */
:root {
  --konecta-cyan: #45e8ff;
  --konecta-violet: #9b7bff;
  --konecta-panel: rgba(10, 18, 35, .94);
}

.topbar {
  background: linear-gradient(100deg, rgba(7, 15, 31, .98), rgba(14, 20, 43, .96));
  border-bottom: 1px solid rgba(69, 232, 255, .22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
}

.main-layout {
  gap: 16px;
}

.meeting-area {
  min-width: 0;
  border-radius: 18px;
}

#videoGrid .video-tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(69, 232, 255, .24);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 29, 51, .98), rgba(7, 12, 25, .98));
  box-shadow: 0 8px 26px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: border-color .2s ease, box-shadow .2s ease;
}

#videoGrid .video-tile:hover {
  border-color: rgba(69, 232, 255, .58);
  box-shadow: 0 0 0 1px rgba(69, 232, 255, .08), 0 10px 30px rgba(0, 0, 0, .28);
}

#videoGrid .video-tile video {
  border-radius: inherit;
}

#videoGrid .video-tile .video-name {
  letter-spacing: .025em;
}

.side-panel {
  border: 1px solid rgba(120, 145, 200, .17);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(13, 22, 41, .97), rgba(7, 13, 27, .98));
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.control-bar {
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(69, 232, 255, .16);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(12, 22, 41, .97), rgba(17, 17, 39, .97));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.control-bar .control-btn {
  border-radius: 12px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.control-bar .control-btn:hover {
  transform: translateY(-1px);
}

#videoGrid .empty-state {
  border: 1px solid rgba(69, 232, 255, .2);
  border-radius: 20px;
  box-shadow: 0 0 45px rgba(69, 232, 255, .045), inset 0 1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(10px);
}

.audio-settings-panel,
.mic-level-panel {
  backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
  .main-layout {
    gap: 12px;
  }
  .side-panel {
    border-radius: 15px;
  }
}

@media (max-width: 600px) {
  .control-bar {
    gap: 7px;
    padding: 9px;
    border-radius: 15px;
  }
  .control-bar .control-btn {
    border-radius: 10px;
  }
  .side-panel {
    border-radius: 14px;
  }
}
/* FIN KONECTA PREMIUM STUDIO V1 */

/* KONECTA CINEMATIC VIDEO V1 */
#videoGrid .video-tile {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(69, 232, 255, .3);
  border-radius: 17px;
  background: linear-gradient(145deg, #101d33, #070d1b 72%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .045);
  transition: border-color .22s ease, box-shadow .22s ease;
}

#videoGrid .video-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(69, 232, 255, .045), transparent 38%, rgba(155, 123, 255, .035));
}

#videoGrid .video-tile:hover {
  border-color: rgba(69, 232, 255, .62);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3), 0 0 18px rgba(69, 232, 255, .07);
}

#videoGrid .video-tile video {
  display: block;
  max-width: 100%;
  background: #070d18;
}

#videoGrid .video-tile .video-name {
  text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
}

@media (prefers-reduced-motion: reduce) {
  #videoGrid .video-tile {
    transition: none;
  }
}
/* FIN KONEKTA CINEMATIC VIDEO V1 */

/* KONECTA LOGIN — REFINAMIENTO VISUAL */
#loginOverlay {
  background:
    radial-gradient(ellipse at 50% 15%,
      rgba(32, 185, 210, .15), transparent 42%),
    radial-gradient(ellipse at 85% 85%,
      rgba(75, 92, 220, .13), transparent 40%),
    rgba(3, 7, 19, .96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#loginOverlay .login-card {
  width: min(440px, calc(100% - 28px));
  padding: clamp(25px, 5vw, 38px);
  border: 1px solid rgba(91, 222, 255, .27);
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(17, 29, 53, .98),
    rgba(7, 13, 29, .98)
  );
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .55),
    0 0 45px rgba(32, 185, 210, .09),
    inset 0 1px 0 rgba(255, 255, 255, .055);
  color: #f3f7ff;
}

#loginOverlay .login-card h1 {
  margin-bottom: 12px;
  color: #f4f9ff;
  font-size: clamp(25px, 5vw, 31px);
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.2;
}

#loginOverlay .login-card > p {
  color: #a9bad2;
  line-height: 1.7;
}

#loginOverlay .login-card label {
  display: block;
  margin: 17px 0 8px;
  color: #d6e5f8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .45px;
}

#loginOverlay .login-card input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 178, 216, .23);
  border-radius: 12px;
  outline: none;
  background: rgba(3, 10, 24, .72);
  color: #f4f8ff;
  font-size: 15px;
  transition: border-color .2s ease,
              box-shadow .2s ease,
              background .2s ease;
}

#loginOverlay .login-card input::placeholder {
  color: #71839f;
}

#loginOverlay .login-card input:hover {
  border-color: rgba(69, 232, 255, .42);
}

#loginOverlay .login-card input:focus {
  border-color: #45d9f4;
  background: rgba(5, 16, 34, .96);
  box-shadow: 0 0 0 3px rgba(69, 217, 244, .12);
}

#loginOverlay .login-btn {
  width: 100%;
  min-height: 49px;
  margin-top: 22px;
  border: 1px solid rgba(126, 244, 255, .6);
  border-radius: 12px;
  background: linear-gradient(110deg, #2868dc, #16b6cc);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .8px;
  box-shadow: 0 8px 25px rgba(22, 182, 204, .18);
  cursor: pointer;
  transition: transform .2s ease,
              box-shadow .2s ease,
              filter .2s ease;
}

#loginOverlay .login-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 10px 30px rgba(22, 182, 204, .3);
  transform: translateY(-1px);
}

#loginOverlay .login-btn:active {
  transform: translateY(0);
}

#loginOverlay .login-btn:focus-visible,
#loginOverlay .camera-preview-toggle:focus-visible {
  outline: 2px solid #65eaff;
  outline-offset: 3px;
}

#loginOverlay .login-error:not(:empty) {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 100, 120, .3);
  border-radius: 10px;
  background: rgba(255, 70, 95, .08);
  color: #ffb5c0;
  line-height: 1.5;
}

#loginOverlay .camera-preview-panel {
  border-color: rgba(69, 232, 255, .2);
  border-radius: 15px;
  background: linear-gradient(
    135deg,
    rgba(69, 232, 255, .055),
    rgba(75, 92, 220, .09)
  );
}

#loginOverlay #cameraPreviewVideo {
  max-width: 100%;
  border-radius: 11px;
  background: #020611;
}

#loginOverlay .camera-preview-heading {
  color: #dceeff;
  font-weight: 700;
}

#loginOverlay .camera-preview-toggle {
  border-radius: 10px;
  transition: background .2s ease,
              border-color .2s ease;
}

#loginOverlay .camera-preview-toggle:hover {
  border-color: rgba(69, 232, 255, .48);
}

#loginOverlay .mic-preview-controls {
  border-top-color: rgba(69, 232, 255, .16);
}

@media (max-width: 480px) {
  #loginOverlay .login-card {
    border-radius: 19px;
    padding: 25px 20px;
  }

  #loginOverlay .login-card input {
    min-height: 46px;
    font-size: 16px;
  }

  #loginOverlay .login-btn {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #loginOverlay .login-card input,
  #loginOverlay .login-btn,
  #loginOverlay .camera-preview-toggle {
    transition: none;
  }

  #loginOverlay .login-btn:hover {
    transform: none;
  }
}

/* FIN KONECTA LOGIN */

/* KONECTA MEET — MEJORA VISUAL ADITIVA */
#loginOverlay .login-card {
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#loginOverlay .login-logo {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

#loginOverlay input,
#loginOverlay select,
#loginOverlay textarea {
  border-radius: 12px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#loginOverlay input:focus,
#loginOverlay select:focus,
#loginOverlay textarea:focus {
  outline: none;
  border-color: #35c9b0 !important;
  box-shadow: 0 0 0 3px rgba(53, 201, 176, 0.18) !important;
}

#loginOverlay .login-btn,
#loginOverlay button {
  border-radius: 12px !important;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

#loginOverlay .login-btn:hover,
#loginOverlay button:hover {
  filter: brightness(1.07);
}

#loginOverlay .login-btn:active,
#loginOverlay button:active {
  transform: scale(0.985);
}

@media (prefers-reduced-motion: reduce) {
  #loginOverlay *,
  #loginOverlay *::before,
  #loginOverlay *::after {
    transition: none !important;
    animation: none !important;
  }
}
/* FIN KONECTA MEET — MEJORA VISUAL ADITIVA */

/* KONECTA MEET — MEJORA VISUAL SEGURA */
#loginOverlay.overlay {
  background-color: #050816 !important;
  background-image:
    radial-gradient(ellipse at 10% 12%, rgba(0, 224, 210, .22), transparent 36%),
    radial-gradient(ellipse at 92% 24%, rgba(111, 76, 255, .23), transparent 39%),
    radial-gradient(ellipse at 50% 100%, rgba(22, 132, 190, .18), transparent 46%),
    linear-gradient(145deg, #080d1d 0%, #090f22 55%, #050816 100%) !important;
}

#loginOverlay .login-card {
  border: 1px solid rgba(111, 231, 255, .34) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(48, 123, 169, .13), transparent 62%),
    linear-gradient(145deg, rgba(19, 30, 56, .99), rgba(7, 12, 28, .99)) !important;
  box-shadow:
    0 30px 85px rgba(0, 0, 0, .58),
    0 0 38px rgba(36, 191, 220, .13),
    inset 0 1px 0 rgba(255, 255, 255, .09) !important;
}

#loginOverlay .login-card h1 {
  text-shadow: 0 0 24px rgba(69, 217, 244, .20);
}

#loginOverlay .welcome-message {
  padding: 18px;
  border: 1px solid rgba(111, 196, 255, .20);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(38, 120, 164, .15), rgba(92, 77, 190, .14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

#loginOverlay .welcome-eyebrow {
  color: #68e7e0;
  letter-spacing: 1.6px;
}

#loginOverlay .login-btn {
  min-height: 52px;
  border: 1px solid rgba(147, 255, 250, .48) !important;
  border-radius: 14px !important;
  background: linear-gradient(105deg, #2867e8, #167fc9 48%, #13b9ad) !important;
  box-shadow: 0 10px 28px rgba(24, 143, 211, .26) !important;
  letter-spacing: 1.4px;
  transition: filter .2s ease, box-shadow .2s ease;
}

#loginOverlay .login-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 32px rgba(24, 174, 211, .32) !important;
}

@media (prefers-reduced-motion: reduce) {
  #loginOverlay .login-btn {
    transition: none !important;
  }
}
/* FIN KONEKTA MEET — MEJORA VISUAL SEGURA */

/* KONEKTA MEET - ACABADO AUDIOVISUAL */
#loginOverlay.overlay {
  background-color: #050816 !important;
  background-image:
    radial-gradient(ellipse at 12% 20%, rgba(0,224,210,.22), transparent 34%),
    radial-gradient(ellipse at 88% 18%, rgba(111,76,255,.24), transparent 36%),
    radial-gradient(ellipse at 50% 100%, rgba(22,132,190,.19), transparent 48%),
    linear-gradient(145deg,#080d1d,#090f22 55%,#050816) !important;
}
#loginOverlay .login-card {
  border: 1px solid rgba(111,231,255,.38) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(48,123,169,.16),transparent 65%),
    linear-gradient(145deg,rgba(19,30,56,.99),rgba(7,12,28,.99)) !important;
  box-shadow: 0 30px 85px rgba(0,0,0,.58),
              0 0 38px rgba(36,191,220,.14),
              inset 0 1px 0 rgba(255,255,255,.09) !important;
}
#loginOverlay .login-card h1 {
  text-shadow: 0 0 24px rgba(69,217,244,.28);
}
#loginOverlay .welcome-message {
  border: 1px solid rgba(111,196,255,.22);
  border-radius: 16px;
  background: linear-gradient(135deg,rgba(38,120,164,.17),rgba(92,77,190,.15));
}
#loginOverlay .welcome-eyebrow {
  color: #68e7e0;
  letter-spacing: 1.6px;
}
#loginOverlay .login-btn {
  min-height: 52px;
  border: 1px solid rgba(147,255,250,.48) !important;
  border-radius: 14px !important;
  background: linear-gradient(105deg,#2867e8,#167fc9 48%,#13b9ad) !important;
  box-shadow: 0 10px 28px rgba(24,143,211,.26) !important;
  letter-spacing: 1.2px;
}
#loginOverlay .login-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 32px rgba(24,174,211,.32) !important;
}
@media (prefers-reduced-motion: reduce) {
  #loginOverlay * { animation: none !important; transition: none !important; }
}
/* FIN ACABADO AUDIOVISUAL */

/* KONECTA MEET - AMBIENTE DE ESTUDIO RADIOFONICO */
#loginOverlay.overlay {
  background-color: #050816 !important;
  background-image:
    radial-gradient(ellipse at 18% 32%, rgba(0,235,220,.20), transparent 32%),
    radial-gradient(ellipse at 85% 28%, rgba(123,75,255,.22), transparent 35%),
    radial-gradient(ellipse at 50% 110%, rgba(19,151,219,.24), transparent 52%),
    repeating-linear-gradient(90deg,
      transparent 0px, transparent 23px,
      rgba(75,220,255,.025) 24px,
      transparent 25px, transparent 42px),
    linear-gradient(145deg,#080d1d,#090f22 55%,#050816) !important;
}
#loginOverlay .login-card {
  position: relative;
  border-color: rgba(91,231,255,.48) !important;
  box-shadow:
    0 30px 85px rgba(0,0,0,.60),
    0 0 24px rgba(0,215,226,.13),
    0 0 65px rgba(105,76,255,.10),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
}
#loginOverlay .login-logo img {
  filter: drop-shadow(0 0 14px rgba(0,224,230,.24));
}
#loginOverlay .login-card h1 {
  color: #f3fbff;
  text-shadow:
    0 0 12px rgba(54,221,255,.32),
    0 0 30px rgba(54,221,255,.13);
}
#loginOverlay .welcome-message {
  border-color: rgba(84,220,245,.28);
  box-shadow: inset 0 0 24px rgba(30,151,195,.06);
}
#loginOverlay .login-btn {
  background: linear-gradient(105deg,#315fe8,#167fc9 52%,#12b9ad) !important;
  box-shadow:
    0 8px 26px rgba(24,143,211,.28),
    inset 0 1px 0 rgba(255,255,255,.20) !important;
}
#loginOverlay input:focus {
  border-color: #48dce8 !important;
  box-shadow: 0 0 0 3px rgba(40,207,226,.12) !important;
}
/* FIN AMBIENTE DE ESTUDIO RADIOFONICO */

/* KONECTA PREMIUM LOGIN V1 — acabado visual aditivo */
#loginOverlay.overlay {
  background-color: #030712 !important;
  background-image:
    radial-gradient(ellipse at 50% 12%,
      rgba(0, 210, 255, .16), transparent 38%),
    radial-gradient(ellipse at 90% 78%,
      rgba(40, 76, 255, .17), transparent 42%),
    radial-gradient(ellipse at 8% 85%,
      rgba(0, 180, 210, .10), transparent 36%),
    repeating-linear-gradient(90deg,
      transparent 0, transparent 39px,
      rgba(80, 205, 255, .018) 40px,
      transparent 41px),
    linear-gradient(145deg, #050916 0%, #080e20 52%, #030712 100%) !important;
}

#loginOverlay .login-card {
  border: 1px solid rgba(85, 220, 255, .38) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(ellipse at 50% 0%,
      rgba(24, 110, 180, .18), transparent 58%),
    linear-gradient(145deg,
      rgba(13, 25, 48, .99), rgba(5, 11, 26, .99)) !important;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .62),
    0 0 34px rgba(0, 190, 255, .10),
    0 0 75px rgba(39, 75, 255, .08),
    inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

#loginOverlay .login-logo img {
  filter:
    drop-shadow(0 0 10px rgba(0, 220, 255, .20))
    drop-shadow(0 0 24px rgba(38, 93, 255, .10));
}

#loginOverlay .login-card h1 {
  color: #f4faff !important;
  letter-spacing: 1.2px;
  text-shadow:
    0 0 14px rgba(50, 215, 255, .22),
    0 0 32px rgba(42, 100, 255, .12);
}

#loginOverlay .login-card > p {
  color: #aebed5;
}

#loginOverlay .welcome-message {
  border: 1px solid rgba(74, 205, 255, .24);
  border-radius: 16px;
  background:
    linear-gradient(130deg,
      rgba(0, 178, 218, .09),
      rgba(55, 79, 205, .12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

#loginOverlay .welcome-eyebrow {
  color: #67eaff;
  letter-spacing: 1.8px;
}

#loginOverlay .login-card label {
  color: #d5e5fa;
}

#loginOverlay input,
#loginOverlay select,
#loginOverlay textarea {
  border-color: rgba(133, 174, 220, .25) !important;
  background-color: rgba(3, 9, 23, .82);
  color: #f2f8ff;
}

#loginOverlay input::placeholder,
#loginOverlay textarea::placeholder {
  color: #7f91ad;
}

#loginOverlay input:hover,
#loginOverlay select:hover,
#loginOverlay textarea:hover {
  border-color: rgba(57, 207, 255, .48) !important;
}

#loginOverlay input:focus,
#loginOverlay select:focus,
#loginOverlay textarea:focus {
  border-color: #42dcff !important;
  outline: none;
  box-shadow:
    0 0 0 3px rgba(40, 194, 255, .13),
    0 0 18px rgba(0, 164, 255, .07) !important;
}

#loginOverlay .login-btn {
  border: 1px solid rgba(126, 237, 255, .52) !important;
  border-radius: 13px !important;
  background: linear-gradient(
    105deg, #2458e8 0%, #167edb 52%, #08b8ca 100%
  ) !important;
  color: #fff;
  box-shadow:
    0 9px 28px rgba(25, 104, 238, .22),
    0 0 22px rgba(0, 205, 235, .10),
    inset 0 1px 0 rgba(255, 255, 255, .18) !important;
  letter-spacing: 1.2px;
}

#loginOverlay .login-btn:hover {
  filter: brightness(1.10);
  box-shadow:
    0 12px 32px rgba(25, 104, 238, .30),
    0 0 28px rgba(0, 205, 235, .16) !important;
}

#loginOverlay .camera-preview-panel {
  border-color: rgba(68, 205, 255, .23);
  background:
    linear-gradient(135deg,
      rgba(0, 172, 215, .055),
      rgba(53, 76, 200, .09));
}

#loginOverlay .camera-preview-heading {
  color: #dff5ff;
}

#loginOverlay .camera-preview-toggle:focus-visible,
#loginOverlay .login-btn:focus-visible,
#loginOverlay input:focus-visible,
#loginOverlay select:focus-visible,
#loginOverlay textarea:focus-visible {
  outline: 2px solid #66eaff;
  outline-offset: 3px;
}

#loginOverlay .login-error:not(:empty) {
  border-color: rgba(255, 100, 125, .36);
  background: rgba(255, 55, 90, .09);
  color: #ffc0cb;
}

@media (max-width: 480px) {
  #loginOverlay .login-card {
    border-radius: 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #loginOverlay .login-btn,
  #loginOverlay input,
  #loginOverlay select,
  #loginOverlay textarea,
  #loginOverlay .camera-preview-toggle {
    transition: none !important;
  }

  #loginOverlay .login-btn:hover {
    transform: none;
  }
}
/* FIN KONECTA PREMIUM LOGIN V1 */
/* KONECTA RADIO STUDIO BACKGROUND V1 — presentación solamente */
#loginOverlay {
  background-color: #030712;
  background-image:
    linear-gradient(rgba(2, 7, 20, .18), rgba(2, 7, 20, .32)),
    url('/konecta-radio-studio.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

@media (max-width: 700px) {
  #loginOverlay {
    background-position: center center;
  }
}
/* FIN KONECTA RADIO STUDIO BACKGROUND V1 */

/* KONECTA RADIO STUDIO BACKGROUND FIX V2 */
#loginOverlay.overlay {
  background-color: #030712 !important;
  background-image:
    linear-gradient(rgba(2, 7, 20, .18), rgba(2, 7, 20, .32)),
    url('/konecta-radio-studio.webp') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
/* FIN KONECTA RADIO STUDIO BACKGROUND FIX V2 */

/* KONECTA LOGIN REFINEMENT V2 — solo presentación */
#loginOverlay .login-card {
  background:
    linear-gradient(145deg, rgba(22, 20, 43, .91), rgba(5, 9, 24, .94))
    !important;
  border: 1px solid rgba(181, 108, 255, .42) !important;
  border-radius: 22px !important;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .48),
    0 0 34px rgba(139, 61, 255, .13),
    inset 0 1px 0 rgba(255, 255, 255, .07) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#loginOverlay .login-logo {
  border-color: rgba(181, 108, 255, .42) !important;
  box-shadow:
    0 0 24px rgba(139, 61, 255, .12),
    inset 0 0 18px rgba(181, 108, 255, .05) !important;
}

#loginOverlay .login-card h1 {
  text-shadow: 0 0 22px rgba(181, 108, 255, .16);
}

#loginOverlay .welcome-message {
  border-color: rgba(181, 108, 255, .19) !important;
  background:
    linear-gradient(110deg,
      rgba(139, 61, 255, .07),
      rgba(8, 13, 32, .38),
      rgba(183, 255, 60, .035)) !important;
}

#loginOverlay .welcome-eyebrow {
  color: #c49aff !important;
}

#loginOverlay .login-card input,
#loginOverlay .login-card select,
#loginOverlay .login-card textarea {
  border: 1px solid rgba(160, 170, 205, .22) !important;
  border-radius: 11px !important;
  background-color: rgba(4, 8, 23, .68) !important;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease !important;
}

#loginOverlay .login-card input:hover,
#loginOverlay .login-card select:hover,
#loginOverlay .login-card textarea:hover {
  border-color: rgba(181, 108, 255, .48) !important;
}

#loginOverlay .login-card input:focus,
#loginOverlay .login-card select:focus,
#loginOverlay .login-card textarea:focus {
  border-color: rgba(181, 108, 255, .9) !important;
  background-color: rgba(8, 12, 30, .92) !important;
  box-shadow: 0 0 0 3px rgba(139, 61, 255, .13) !important;
  outline: none;
}

#loginOverlay .login-btn {
  border-radius: 12px !important;
  background: linear-gradient(105deg, #7540d9, #9656ed) !important;
  border: 1px solid rgba(205, 174, 255, .56) !important;
  box-shadow:
    0 8px 25px rgba(117, 64, 217, .22),
    inset 0 1px 0 rgba(255, 255, 255, .12) !important;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    filter .2s ease !important;
}

#loginOverlay .login-btn:hover {
  filter: brightness(1.09);
  box-shadow:
    0 10px 30px rgba(139, 61, 255, .3),
    0 0 18px rgba(181, 108, 255, .12) !important;
  transform: translateY(-1px);
}

#loginOverlay .login-btn:active {
  transform: translateY(0);
}

#loginOverlay .login-btn:focus-visible,
#loginOverlay .login-card input:focus-visible,
#loginOverlay .login-card select:focus-visible,
#loginOverlay .login-card textarea:focus-visible {
  outline: 2px solid #b7ff3c;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  #loginOverlay .login-card {
    border-radius: 18px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #loginOverlay .login-card input,
  #loginOverlay .login-card select,
  #loginOverlay .login-card textarea,
  #loginOverlay .login-btn {
    transition: none !important;
  }

  #loginOverlay .login-btn:hover {
    transform: none;
  }
}
/* FIN KONECTA LOGIN REFINEMENT V2 */


/* KONECTA MEETING POLISH V1 — solo acabado visual */
#videoGrid .video-tile {
  border-color: rgba(181, 108, 255, .30);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 255, 255, .045);
}

#videoGrid .video-tile:hover {
  border-color: rgba(181, 108, 255, .62);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .28),
    0 0 22px rgba(139, 61, 255, .12);
}

#videoGrid .video-tile .video-name {
  border-color: rgba(181, 108, 255, .32);
  border-left-color: #b7ff3c;
}

.control-bar {
  border-color: rgba(181, 108, 255, .22);
}

.control-bar .control-btn:focus-visible {
  outline-color: #b7ff3c;
}

@media (hover: none) {
  #videoGrid .video-tile:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #videoGrid .video-tile,
  #videoGrid .video-tile:hover {
    transition: none !important;
    transform: none !important;
  }
}
/* FIN KONEKTA MEETING POLISH V1 */

/* KONECTA EMPTY STATE POLISH V1 — solo presentación */
#videoGrid .empty-state {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(181, 108, 255, .28);
  border-radius: 20px;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(139, 61, 255, .14),
      transparent 68%
    ),
    linear-gradient(
      145deg,
      rgba(13, 15, 35, .94),
      rgba(5, 8, 20, .88)
    );
  box-shadow:
    0 16px 42px rgba(0, 0, 0, .22),
    0 0 30px rgba(139, 61, 255, .07),
    inset 0 1px 0 rgba(255, 255, 255, .045);
}

#videoGrid .empty-state .empty-icon {
  color: #b7ff3c;
  text-shadow:
    0 0 12px rgba(183, 255, 60, .28),
    0 0 28px rgba(139, 61, 255, .22);
}

#videoGrid .empty-state h2 {
  color: #f5f2ff;
  text-shadow: 0 0 22px rgba(139, 61, 255, .16);
}

#videoGrid .empty-state p {
  color: #aeb6cc;
}

@media (max-width: 600px) {
  #videoGrid .empty-state {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #videoGrid .empty-state {
    scroll-behavior: auto;
  }
}
/* FIN KONECTA EMPTY STATE POLISH V1 */

/* KONECTA CONTROLS POLISH V1 — solo acabado visual */
.control-bar {
  border-color: rgba(181, 108, 255, .24);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .24),
    0 0 24px rgba(139, 61, 255, .055),
    inset 0 1px 0 rgba(255, 255, 255, .045);
}

.control-bar .control-btn {
  border-color: rgba(181, 108, 255, .25);
  box-shadow:
    0 5px 14px rgba(0, 0, 0, .20),
    inset 0 1px 0 rgba(255, 255, 255, .055);
}

.control-bar .control-btn:hover {
  border-color: rgba(181, 108, 255, .65);
  box-shadow:
    0 7px 18px rgba(0, 0, 0, .24),
    0 0 17px rgba(139, 61, 255, .13);
}

.control-bar .control-btn:focus-visible {
  outline: 2px solid #b7ff3c;
  outline-offset: 3px;
}

.control-bar .control-btn.danger {
  border-color: rgba(255, 93, 111, .42);
}

.control-bar .control-btn.danger:hover {
  border-color: rgba(255, 119, 133, .82);
  box-shadow:
    0 0 20px rgba(255, 65, 90, .17);
}

@media (hover: none) {
  .control-bar .control-btn:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .control-bar .control-btn,
  .control-bar .control-btn:hover {
    transition: none !important;
    transform: none !important;
  }
}
/* FIN KONECTA CONTROLS POLISH V1 */

/* KONECTA STUDIO OVERLAY PREMIUM V3 — solo presentación */
#loginOverlay.overlay {
  position: fixed;
  isolation: isolate;
  background-color: #030712 !important;
  background-image:
    linear-gradient(
      115deg,
      rgba(2, 8, 22, .48) 0%,
      rgba(3, 12, 29, .22) 48%,
      rgba(1, 8, 20, .52) 100%
    ),
    url('/konecta-radio-studio.webp') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Viñeta cinematográfica sin bloquear el formulario */
#loginOverlay.overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 50% 42%,
      rgba(0, 174, 255, .09) 0%,
      transparent 56%
    ),
    linear-gradient(
      180deg,
      rgba(2, 8, 20, .12) 0%,
      rgba(2, 8, 20, .08) 48%,
      rgba(1, 5, 16, .58) 100%
    );
}

/* Tarjeta principal */
#loginOverlay .login-card {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(
      145deg,
      rgba(10, 24, 46, .94),
      rgba(4, 10, 25, .96)
    ) !important;
  border: 1px solid rgba(68, 205, 255, .42) !important;
  border-radius: 24px !important;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .52),
    0 0 38px rgba(0, 174, 255, .12),
    inset 0 1px 0 rgba(255, 255, 255, .09) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Logo y marca */
#loginOverlay .login-logo {
  border-color: rgba(68, 205, 255, .48) !important;
  box-shadow:
    0 0 26px rgba(0, 190, 255, .15),
    inset 0 0 18px rgba(68, 205, 255, .07) !important;
}

#loginOverlay .login-card h1 {
  color: #f3fbff;
  text-shadow: 0 0 24px rgba(0, 190, 255, .20);
  letter-spacing: .09em;
}

/* Mensaje de bienvenida */
#loginOverlay .welcome-message {
  border-color: rgba(68, 205, 255, .22) !important;
  background:
    linear-gradient(
      110deg,
      rgba(0, 174, 255, .10),
      rgba(8, 20, 42, .52),
      rgba(0, 225, 210, .045)
    ) !important;
}

#loginOverlay .welcome-eyebrow {
  color: #73e8ff !important;
  letter-spacing: .13em;
}

/* Campos de acceso */
#loginOverlay .login-card input,
#loginOverlay .login-card select,
#loginOverlay .login-card textarea {
  border-color: rgba(133, 183, 219, .28) !important;
  border-radius: 12px !important;
  background-color: rgba(3, 10, 25, .82) !important;
  color: #f1f8ff;
}

#loginOverlay .login-card input:hover,
#loginOverlay .login-card select:hover,
#loginOverlay .login-card textarea:hover {
  border-color: rgba(68, 205, 255, .58) !important;
}

#loginOverlay .login-card input:focus,
#loginOverlay .login-card select:focus,
#loginOverlay .login-card textarea:focus {
  border-color: #44cdff !important;
  box-shadow: 0 0 0 3px rgba(0, 174, 255, .15) !important;
}

/* Acción principal */
#loginOverlay .login-btn {
  background: linear-gradient(105deg, #087fce, #06b9d5) !important;
  border: 1px solid rgba(140, 239, 255, .65) !important;
  border-radius: 12px !important;
  color: #fff !important;
  box-shadow:
    0 9px 26px rgba(0, 145, 220, .25),
    inset 0 1px 0 rgba(255, 255, 255, .20) !important;
}

#loginOverlay .login-btn:hover {
  filter: brightness(1.10);
  box-shadow:
    0 12px 32px rgba(0, 174, 255, .32),
    0 0 22px rgba(0, 225, 240, .12) !important;
}

#loginOverlay .login-btn:focus-visible,
#loginOverlay input:focus-visible,
#loginOverlay select:focus-visible,
#loginOverlay textarea:focus-visible {
  outline: 2px solid #65eaff;
  outline-offset: 3px;
}

/* Vista móvil */
@media (max-width: 600px) {
  #loginOverlay.overlay {
    background-position: center center !important;
  }

  #loginOverlay .login-card {
    border-radius: 19px !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

/* Respetar movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  #loginOverlay .login-btn {
    transition: none !important;
  }

  #loginOverlay .login-btn:hover {
    transform: none !important;
  }
}
/* FIN KONECTA STUDIO OVERLAY PREMIUM V3 */


/* KONECTA MEETING ROOM PREMIUM V1 — solo presentación */

/* Fondo de la zona de reunión */
.main-layout {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91, 54, 180, .10), transparent 52%),
    linear-gradient(180deg, rgba(5, 8, 23, .35), rgba(2, 4, 13, .72));
}

.meeting-area {
  background: transparent;
  min-width: 0;
}

/* Área de participantes */
#videoGrid.video-grid {
  gap: clamp(12px, 1.6vw, 20px);
  align-content: center;
  min-width: 0;
}

#videoGrid .video-tile {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(151, 113, 255, .30);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(46, 67, 110, .24), transparent 65%),
    linear-gradient(145deg, rgba(13, 19, 40, .98), rgba(4, 8, 21, .98));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .045);
  transition: border-color .2s ease, box-shadow .2s ease;
}

#videoGrid .video-tile:hover {
  border-color: rgba(181, 108, 255, .58);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, .30),
    0 0 22px rgba(139, 61, 255, .09);
}

/* Vídeo: conserva el comportamiento de reproducción */
#videoGrid .video-tile video {
  max-width: 100%;
  border-radius: inherit;
}

/* Nombre del participante */
#videoGrid .video-tile .video-name {
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 9px;
  background: rgba(3, 7, 19, .76);
  color: #f5f7ff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Indicadores de micrófono y cámara */
#videoGrid .video-tile .media-status-mic,
#videoGrid .video-tile .media-status-camera {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .35));
}

/* Participante local: acento verde discreto */
#videoGrid .video-tile.local,
#videoGrid .video-tile.is-local {
  border-color: rgba(183, 255, 60, .40);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .24),
    inset 0 0 0 1px rgba(183, 255, 60, .035);
}

/* Estado de sala vacía */
#videoGrid #emptyState.empty-state {
  border: 1px dashed rgba(139, 61, 255, .34);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 61, 255, .12), transparent 65%),
    linear-gradient(145deg, rgba(12, 17, 37, .76), rgba(4, 8, 21, .72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

/* Controles: coherencia visual sin cambiar sus acciones */
.meeting-area .control-bar {
  border-top-color: rgba(139, 61, 255, .20);
}

/* Pantallas medianas y móviles */
@media (max-width: 900px) {
  #videoGrid .video-tile {
    border-radius: 15px;
  }
}

@media (max-width: 600px) {
  #videoGrid.video-grid {
    gap: 10px;
  }

  #videoGrid .video-tile {
    border-radius: 13px;
  }

  #videoGrid #emptyState.empty-state {
    border-radius: 17px;
  }
}

/* Accesibilidad: evitar animaciones de hover innecesarias */
@media (prefers-reduced-motion: reduce) {
  #videoGrid .video-tile {
    transition: none;
  }
}

/* FIN KONECTA MEETING ROOM PREMIUM V1 */

/* KONECTA AUDIO EXPERIENCE PREMIUM V1 */

/* Panel del medidor */
#micLevelPanel.mic-level-panel {
  width: min(calc(100% - 24px), 560px);
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid rgba(139, 61, 255, .28) !important;
  border-radius: 16px !important;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(69, 232, 255, .07), transparent 55%),
    linear-gradient(145deg, rgba(13, 21, 43, .97), rgba(5, 10, 24, .98)) !important;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

/* Etiquetas y porcentaje */
#micLevelPanel .mic-level-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #cbd7ee;
  font-size: 11px;
  letter-spacing: .08em;
}

#micLevelPanel #micLevelStatus {
  color: #a9c5e9;
  font-weight: 800;
}

#micLevelPanel #micLevelValue {
  color: #73e8ff;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Canal del medidor: no se altera el ancho dinámico de la barra */
#micLevelPanel .mic-level-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(135, 165, 210, .16);
  border-radius: 999px;
  background: rgba(2, 7, 18, .95);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45);
}

#micLevelPanel #micLevelBar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #35d6a4 0%, #65f06c 38%, #45e8ff 72%, #9b7bff 100%);
  box-shadow: 0 0 12px rgba(69, 232, 255, .22);
}

/* Indicador al hablar */
#micLevelPanel.is-speaking {
  border-color: rgba(91, 245, 166, .48) !important;
  box-shadow:
    0 0 22px rgba(53, 214, 164, .09),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

#micLevelPanel.is-speaking #micLevelStatus {
  color: #78f5b1 !important;
}

/* Estado silenciado */
#micLevelPanel.is-muted {
  border-color: rgba(255, 189, 134, .35) !important;
}

#micLevelPanel.is-muted #micLevelStatus {
  color: #ffbd86 !important;
}

/* Consola de configuración de audio */
#audioSettingsPanel.audio-settings-panel {
  box-sizing: border-box;
  border: 1px solid rgba(139, 61, 255, .26) !important;
  border-radius: 17px !important;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(69, 232, 255, .055), transparent 60%),
    linear-gradient(145deg, rgba(12, 20, 40, .97), rgba(5, 10, 24, .98)) !important;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, .20),
    inset 0 1px 0 rgba(255, 255, 255, .045) !important;
}

#audioSettingsPanel .audio-settings-title {
  color: #82eaff !important;
  font-weight: 800;
  letter-spacing: .12em;
}

#audioSettingsPanel .audio-settings-field > span {
  color: #cbd7ee;
  font-size: 12px;
  font-weight: 650;
}

#audioSettingsPanel .audio-settings-field select {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 42px;
  border: 1px solid rgba(119, 166, 218, .28) !important;
  border-radius: 11px !important;
  background-color: rgba(4, 10, 25, .96) !important;
  color: #edf6ff !important;
}

#audioSettingsPanel .audio-settings-field select:focus-visible,
#audioSettingsPanel .audio-settings-actions button:focus-visible {
  outline: 2px solid #65eaff;
  outline-offset: 3px;
}

#audioSettingsPanel .audio-settings-actions button {
  min-height: 40px;
  border: 1px solid rgba(69, 232, 255, .28);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(69, 232, 255, .09), rgba(139, 61, 255, .10));
  color: #e8f8ff;
  transition: border-color .18s ease, background .18s ease;
}

#audioSettingsPanel .audio-settings-actions button:hover {
  border-color: rgba(69, 232, 255, .58);
  background: linear-gradient(135deg, rgba(69, 232, 255, .15), rgba(139, 61, 255, .16));
}

#audioSettingsPanel .audio-settings-status {
  border-radius: 10px;
  overflow-wrap: anywhere;
}

/* Adaptación móvil */
@media (max-width: 600px) {
  #micLevelPanel.mic-level-panel {
    width: calc(100% - 16px);
    padding: 12px;
    border-radius: 14px !important;
  }

  #audioSettingsPanel.audio-settings-panel {
    border-radius: 14px !important;
  }

  #audioSettingsPanel .audio-settings-actions button {
    min-height: 42px;
  }
}

/* Respeto a la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  #audioSettingsPanel .audio-settings-actions button {
    transition: none;
  }
}

/* FIN KONECTA AUDIO EXPERIENCE PREMIUM V1 */

/* KONECTA FINAL VISUAL HARMONY V1 */
/* Pulido visual aditivo: no modifica funciones ni estructura */

/* Zona principal de reunión */
.main-layout .meeting-area {
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(93, 75, 190, .075), transparent 56%),
    linear-gradient(180deg, rgba(7, 12, 28, .25), rgba(2, 5, 16, .18));
}

/* Tarjetas de vídeo: borde y profundidad discretos */
.video-grid .video-tile {
  border-color: rgba(132, 155, 205, .22);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .20),
    inset 0 1px 0 rgba(255, 255, 255, .035);
  background-color: rgba(8, 13, 29, .92);
}

.video-grid .video-tile:focus-within {
  outline: 2px solid rgba(101, 234, 255, .65);
  outline-offset: 2px;
}

/* Barra inferior de controles */
.meeting-area .control-bar {
  border-top: 1px solid rgba(133, 155, 207, .18);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 61, 255, .07), transparent 65%),
    linear-gradient(180deg, rgba(9, 13, 29, .96), rgba(4, 7, 19, .99));
  box-shadow: 0 -12px 30px rgba(0, 0, 0, .12);
}

/* Consistencia entre los botones */
.meeting-area .control-bar .control-btn {
  box-sizing: border-box;
  border-color: rgba(139, 61, 255, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  -webkit-tap-highlight-color: transparent;
}

.meeting-area .control-bar .control-btn:focus-visible {
  outline: 2px solid #65eaff;
  outline-offset: 3px;
}

/* Panel lateral: separación elegante */
.side-panel {
  scrollbar-color: rgba(139, 61, 255, .48) rgba(4, 8, 20, .65);
  scrollbar-width: thin;
}

/* Transiciones suaves, sin animaciones adicionales */
@media (prefers-reduced-motion: no-preference) {
  .video-grid .video-tile,
  .meeting-area .control-bar .control-btn {
    transition:
      border-color .18s ease,
      box-shadow .18s ease;
  }
}

/* Ajustes seguros para móvil */
@media (max-width: 600px) {
  .meeting-area .control-bar {
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
  }

  .video-grid .video-tile {
    box-shadow: 0 7px 18px rgba(0, 0, 0, .18);
  }
}

/* FIN KONECTA FINAL VISUAL HARMONY V1 */

/* KONECTA EMOJI STABILITY V1 */
/* Evita parpadeos de iconos al pasar el puntero */
.meeting-area .control-bar .control-btn span,
.meeting-area .control-bar .control-btn small,
.meeting-area .control-bar .control-btn svg,
.meeting-area .control-bar .control-btn i,
.meeting-area .control-bar .control-btn .icon,
.meeting-area .control-bar .control-btn .emoji {
  animation: none !important;
  transition: none !important;
  filter: none !important;
  opacity: 1;
}

/* El hover puede resaltar el botón, pero no animar sus iconos */
.meeting-area .control-bar .control-btn:hover span,
.meeting-area .control-bar .control-btn:hover small,
.meeting-area .control-bar .control-btn:hover svg,
.meeting-area .control-bar .control-btn:hover i,
.meeting-area .control-bar .control-btn:hover .icon,
.meeting-area .control-bar .control-btn:hover .emoji {
  animation: none !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* FIN KONEKTA EMOJI STABILITY V1 */

/* KONECTA PARTICIPANT FINISH V1 */
/* Pulido de nombres e indicadores, sin cambiar su funcionamiento */

#videoGrid .video-tile .video-name {
  max-width: calc(100% - 24px);
  overflow-wrap: anywhere;
  line-height: 1.35;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .015em;
  border-color: rgba(155, 178, 224, .17);
  background: rgba(3, 7, 19, .84);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .22);
}

#videoGrid .video-tile .media-status-mic,
#videoGrid .video-tile .media-status-camera {
  animation: none !important;
  transition: none !important;
}

/* El hover destaca la tarjeta sin mover ni parpadear su contenido */
#videoGrid .video-tile,
#videoGrid .video-tile:hover {
  animation: none !important;
}

#videoGrid .video-tile video {
  outline: none;
}

#videoGrid .video-tile.local .video-name,
#videoGrid .video-tile.is-local .video-name {
  border-color: rgba(183, 255, 60, .25);
}

@media (max-width: 600px) {
  #videoGrid .video-tile .video-name {
    max-width: calc(100% - 16px);
    font-size: 12px;
    border-radius: 8px;
  }
}

/* FIN KONECTA PARTICIPANT FINISH V1 */

/* KONECTA EMPTY STATE FINISH V1 */
#emptyState.empty-state {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 240px;
  padding: clamp(24px, 4vw, 44px);
  text-align: center;
  border: 1px solid rgba(151, 113, 255, .30);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 61, 255, .14), transparent 65%),
    linear-gradient(145deg, rgba(14, 18, 39, .88), rgba(5, 8, 23, .96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    0 16px 44px rgba(0, 0, 0, .18);
}

#emptyState.empty-state::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(183, 255, 60, .07);
  border-radius: 15px;
}

#emptyState.empty-state h1,
#emptyState.empty-state h2,
#emptyState.empty-state h3 {
  margin: 0;
  color: #f5f7ff;
  letter-spacing: .09em;
  text-wrap: balance;
}

#emptyState.empty-state p {
  max-width: 440px;
  margin: 0;
  color: #aab3cc;
  line-height: 1.65;
  text-wrap: pretty;
}

@media (max-width: 600px) {
  #emptyState.empty-state {
    min-height: 190px;
    padding: 24px 18px;
    border-radius: 17px;
  }

  #emptyState.empty-state::before {
    inset: 8px;
    border-radius: 11px;
  }
}
/* FIN KONECTA EMPTY STATE FINISH V1 */

/* KONECTA: solicitudes de cuenta en horizontal */
#accountRequestsPanel .moderation-user {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

#accountRequestsPanel .moderation-user > span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  text-overflow: ellipsis;
  overflow: hidden;
}

#accountRequestsPanel .moderation-user button {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 600px) {
  #accountRequestsPanel .moderation-user {
    gap: 5px;
    padding: 8px 6px;
  }

  #accountRequestsPanel .moderation-user button {
    padding: 6px 7px;
    font-size: 9px;
  }
}

/* KONECTA FIX: fila de solicitudes, NIK y acciones en horizontal */
#accountRequestsPanel #accountRequestsList .moderation-user {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#accountRequestsPanel #accountRequestsList .moderation-user > span {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

#accountRequestsPanel #accountRequestsList .moderation-user button {
  display: inline-flex !important;
  width: auto !important;
  min-width: 84px !important;
  max-width: none !important;
  white-space: nowrap !important;
  justify-content: center !important;
}

@media (max-width: 430px) {
  #accountRequestsPanel #accountRequestsList .moderation-user {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  #accountRequestsPanel #accountRequestsList .moderation-user > span {
    grid-column: 1 / -1 !important;
  }

  #accountRequestsPanel #accountRequestsList .moderation-user button {
    min-width: 0 !important;
  }
}

/* FIX DEFINITIVO: impedir que los NIK se partan letra por letra */
#accountRequestsPanel #accountRequestsList .moderation-user > span {
  overflow-wrap: normal !important;
  word-break: normal !important;
  white-space: nowrap !important;
  min-width: 0 !important;
  width: auto !important;
}

#accountRequestsPanel #accountRequestsList .moderation-user {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 8px !important;
}

#accountRequestsPanel #accountRequestsList .moderation-user button {
  min-width: 84px !important;
  white-space: nowrap !important;
}

/* KONECTA MODERN MEETING UI V1
   Solo presentación visual. Sin cambios en la lógica de la aplicación. */

.main-layout {
  grid-template-columns: minmax(0, 1fr) clamp(290px, 26vw, 360px);
  gap: 14px;
  padding: 14px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
}

.meeting-area {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(139, 61, 255, .18);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 61, 255, .09), transparent 60%),
    rgba(5, 9, 23, .72);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}

#videoGrid.video-grid {
  align-content: center;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 18px);
  padding: clamp(12px, 1.6vw, 22px);
  box-sizing: border-box;
}

#videoGrid .video-tile {
  min-width: 0;
  border: 1px solid rgba(155, 133, 255, .28);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(18, 25, 48, .98), rgba(5, 9, 22, .99));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

#videoGrid .video-tile video {
  max-width: 100%;
  border-radius: inherit;
}

#videoGrid .video-tile .video-name {
  border-radius: 9px;
  background: rgba(3, 7, 19, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.side-panel {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  gap: 12px;
  border: 1px solid rgba(139, 61, 255, .20);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(69, 232, 255, .045), transparent 55%),
    rgba(7, 11, 27, .92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .20);
}

.side-panel .panel-block {
  min-width: 0;
  border: 1px solid rgba(151, 169, 215, .13);
  border-radius: 14px;
  background: rgba(14, 20, 40, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.side-panel .panel-title {
  letter-spacing: 1.4px;
}

.meeting-area .control-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(139, 61, 255, .20);
  background: rgba(5, 8, 21, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.meeting-area .control-bar .control-btn {
  border-radius: 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.meeting-area .control-bar .control-btn:hover {
  box-shadow: 0 0 18px rgba(139, 61, 255, .16);
}

.meeting-area .control-bar .control-btn.danger {
  border-color: rgba(255, 77, 109, .42);
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 10px;
    padding: 10px;
  }

  .side-panel {
    padding: 9px;
    gap: 9px;
  }
}

@media (max-width: 680px) {
  .main-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(300px, 1fr) minmax(180px, 38vh);
    gap: 10px;
    padding: 8px;
    overflow: auto;
  }

  .meeting-area {
    overflow: visible;
    border-radius: 15px;
  }

  .side-panel {
    height: auto;
    max-height: none;
    overflow: visible;
    border-radius: 15px;
  }

  .meeting-area .control-bar {
    position: relative;
  }

  #videoGrid.video-grid {
    padding: 10px;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meeting-area .control-bar .control-btn {
    transition: none;
  }
}

/* FIN KONECTA MODERN MEETING UI V1 */
