:root {
  --bg0: #06101f;
  --bg1: #0b1730;
  --bg2: #132445;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef3fb;
  --muted: #9aadc8;
  --brand: #1a8cff;
  --brand2: #4db0ff;
  --brand-navy: #001a3f;
  --danger: #f87171;
  --ok: #4ade80;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-display: "Outfit", "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background:
    radial-gradient(1100px 640px at 8% -8%, rgba(26, 140, 255, 0.22), transparent 58%),
    radial-gradient(900px 520px at 100% 4%, rgba(0, 26, 63, 0.55), transparent 52%),
    radial-gradient(700px 400px at 70% 100%, rgba(26, 140, 255, 0.08), transparent 55%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 42%, #071428);
  color: var(--text);
}
a { color: var(--brand2); text-decoration: none; }
button, input, select { font: inherit; }

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
  color: var(--text);
}
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  background: #fff;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(26, 140, 255, 0.35);
}

/* —— Landing —— */
.page-landing {
  min-height: 100vh;
  min-height: 100dvh;
}
.landing-shell {
  padding-top: 1.25rem;
  padding-bottom: 4.5rem;
}
.landing-topbar {
  margin-bottom: 2.5rem;
  animation: fadeRise 0.7s ease both;
}
.landing-nav {
  margin-top: 0;
  align-items: center;
}
.ui-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.2rem 0.35rem 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.ui-lang-label {
  white-space: nowrap;
}
.ui-lang select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 0.45rem 1.4rem 0.45rem 0.15rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aadc8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  min-width: 7.5rem;
}
.ui-lang select:focus {
  outline: none;
}
@media (max-width: 560px) {
  .ui-lang-label { display: none; }
  .ui-lang select { min-width: 6.5rem; }
}
.landing-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: min(68vh, 640px);
}
.landing-copy {
  display: grid;
  gap: 1.15rem;
  animation: fadeRise 0.85s ease 0.08s both;
}
.brand-hero {
  display: block;
  width: min(380px, 92%);
  height: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 60px rgba(0, 26, 63, 0.45);
  animation: logoGlow 4.5s ease-in-out infinite;
}
.landing-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.65rem, 3.6vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.landing-lead {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
}
.landing-steps {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 32rem;
}
.landing-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.landing-steps span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--brand2);
}
.auth-card {
  animation: fadeRise 0.9s ease 0.16s both;
  padding: 1.5rem 1.4rem 1.35rem;
  background: rgba(10, 22, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    var(--shadow);
}
.auth-card h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.auth-card-lead {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.btn-block {
  width: 100%;
  margin-top: 0.35rem;
  min-height: 2.85rem;
}
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 28px 60px rgba(0, 26, 63, 0.45); }
  50% { box-shadow: 0 0 0 1px rgba(77, 176, 255, 0.22), 0 28px 70px rgba(26, 140, 255, 0.28); }
}
@media (max-width: 860px) {
  .landing-stage {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.75rem;
  }
  .brand-hero {
    width: min(280px, 88%);
  }
  .landing-title {
    max-width: none;
  }
  .landing-topbar .brand-logo {
    height: 38px;
  }
}

.hero {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.55;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: rgba(12, 24, 46, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.card h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.field { margin-bottom: 0.85rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
  opacity: 0.95;
}
.field input, .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}
.field input:focus, .field select:focus {
  outline: 2px solid rgba(26, 140, 255, 0.35);
  border-color: rgba(26, 140, 255, 0.55);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #0d6fd8);
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 140, 255, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(26, 140, 255, 0.38);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-danger {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.35);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }

.msg {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }

.room-action-card {
  min-height: 280px;
}
.room-choice-lead {
  margin: -0.35rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 520px) {
  .choice-grid { grid-template-columns: 1fr; }
}
.choice-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  width: 100%;
  padding: 1.15rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(26, 140, 255, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.choice-tile:hover,
.choice-tile:focus-visible {
  border-color: rgba(26, 140, 255, 0.5);
  background:
    linear-gradient(160deg, rgba(26, 140, 255, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
  outline: none;
}
.choice-tile:active { transform: translateY(0) scale(0.99); }
.choice-tile.is-disabled,
.choice-tile:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}
.choice-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 8px 18px rgba(26, 140, 255, 0.3);
}
.choice-icon-key {
  background: linear-gradient(135deg, #0d6fd8, #38bdf8);
  box-shadow: 0 8px 18px rgba(56, 189, 248, 0.28);
}
.choice-title {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.choice-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.room-panel[hidden] { display: none !important; }
.room-panel {
  animation: panelIn 0.28s ease;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.btn-back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-back:hover { color: var(--brand); }

.invite-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}
.invite-item {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.invite-item strong { display: block; }
.invite-item small {
  color: var(--muted);
  word-break: break-all;
}
.invite-item .btn-row {
  margin-top: 0.15rem;
}
.invite-edit-form {
  display: grid;
  gap: 0.65rem;
}
.invite-edit-form .field {
  margin: 0;
}
.invite-item.is-editing {
  border-color: rgba(26, 140, 255, 0.4);
}
.room-item .btn-enter-room.is-locked,
.room-item .btn-enter-room:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  min-width: 7.5rem;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffe9a8;
}

  margin-top: 0;
  flex-shrink: 0;
}
.guest-shell {
  max-width: 520px;
}
.guest-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.room-list { display: grid; gap: 0.65rem; }
.room-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.room-item strong { display: block; }
.room-item small { color: var(--muted); }
.room-item-main { min-width: 0; flex: 1; }
.room-title-form {
  display: grid;
  gap: 0.5rem;
  width: 100%;
}
.room-title-input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
}
.room-title-input:focus {
  outline: 2px solid rgba(26, 140, 255, 0.35);
  border-color: rgba(26, 140, 255, 0.55);
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Sala de vídeo — Jitsi em ecrã cheio; barra da app por cima (não rouba espaço à toolbox) */
.room-page {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}
.room-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  padding-top: max(0.45rem, env(safe-area-inset-top, 0.45rem));
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.94) 55%, rgba(11, 18, 32, 0.72) 85%, transparent);
  border-bottom: 0;
  pointer-events: none;
}
.room-bar > * {
  pointer-events: auto;
}
.room-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.room-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}
.room-meta strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.room-status {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.room-status:empty {
  display: none;
}

.room-timer-badge.warn {
  color: #f6c945;
  border-color: rgba(246, 201, 69, 0.45);
}
.room-timer-badge.danger {
  color: #ff7b72;
  border-color: rgba(255, 123, 114, 0.5);
  animation: timerPulse 1s ease-in-out infinite;
}
@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.session-warn {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 90;
  max-width: min(520px, calc(100% - 1.5rem));
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #1a2a12;
  border: 1px solid rgba(246, 201, 69, 0.55);
  color: #ffe9a8;
  font-size: 0.92rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.25s ease;
  pointer-events: none;
}
.session-warn.show {
  transform: translateX(-50%) translateY(0);
}

.room-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0.4rem;
}
.room-actions .room-lang,
.room-actions .btn {
  width: 100%;
  min-height: 2.45rem;
  font-size: 0.88rem;
  border-radius: 12px;
}
.room-lang {
  border: 1px solid var(--line);
  background: rgba(26, 36, 56, 0.95);
  color: var(--text);
  padding: 0.45rem 0.65rem;
}
.btn-stt {
  min-height: 2.45rem;
  font-size: 0.88rem;
  white-space: nowrap;
}
.room-actions #btnPlayTrans {
  grid-column: 1 / -1;
  position: relative;
}
.room-actions #btnPlayTrans:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.room-actions #btnPlayTrans.has-queue {
  box-shadow: 0 0 0 2px rgba(26, 140, 255, 0.55);
  animation: queue-pulse 1.4s ease-in-out infinite;
}
.queue-badge {
  display: inline-block;
  margin-inline-start: 0.35rem;
  min-width: 1.25rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: var(--brand-navy);
  color: var(--brand2);
  font-size: 0.75rem;
  font-weight: 800;
  vertical-align: middle;
}
@keyframes queue-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}
.btn-accent {
  background: linear-gradient(135deg, #0d6fd8, var(--brand));
  color: #fff;
  border: 0;
  font-weight: 700;
}
.room-actions #btnLeave {
  grid-column: 1 / -1;
}
.room-stage {
  position: absolute;
  inset: 0;
  min-height: 0;
  background: #000;
  z-index: 1;
}
#jitsiContainer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#jitsiContainer > iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}
.caption-layer {
  position: absolute;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(720px, calc(100% - 1.25rem));
  z-index: 8;
  pointer-events: none;
}
.stt-gate {
  position: absolute;
  left: 50%;
  bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 15;
  width: min(420px, calc(100% - 1.5rem));
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #0d6fd8);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.stt-gate[hidden] { display: none !important; }
.caption-bubble {
  background: rgba(8, 12, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.caption-bubble .who {
  font-size: 0.75rem;
  color: var(--brand);
  margin-bottom: 0.25rem;
}
.caption-bubble .txt {
  font-size: 1.05rem;
  line-height: 1.4;
}
.caption-bubble .orig {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.listening-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}
.listening-dot.on {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
  animation: pulse 1.2s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@media (min-width: 860px) {
  .room-bar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem 0.85rem;
    padding: 0.55rem 1rem;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.92), rgba(11, 18, 32, 0.55) 70%, transparent);
  }
  .room-bar-top {
    flex: 1;
    min-width: 220px;
  }
  .room-status {
    order: 3;
    width: 100%;
    -webkit-line-clamp: 1;
  }
  .room-actions {
    display: flex;
    flex-wrap: wrap;
    width: auto;
    grid-template-columns: none;
  }
  .room-actions .room-lang,
  .room-actions .btn {
    width: auto;
    min-height: 2.3rem;
    font-size: 0.88rem;
    border-radius: 999px;
  }
  .btn-stt {
    min-height: 2.3rem;
    font-size: 0.88rem;
  }
  .room-actions #btnPlayTrans,
  .room-actions #btnCopy,
  .room-actions #btnLeave {
    grid-column: auto;
  }
  .caption-layer {
    bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }
}

.room-ui-lang {
  margin-inline-start: 0.25rem;
  padding: 0.1rem 0.25rem 0.1rem 0.5rem;
  font-size: 0.7rem;
}
.room-ui-lang select {
  min-width: 5.5rem;
  padding: 0.3rem 1.2rem 0.3rem 0.1rem;
  font-size: 0.75rem;
}
@media (max-width: 720px) {
  .room-ui-lang .ui-lang-label { display: none; }
}

.install-banner {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%) translateY(120%);
  width: min(520px, calc(100% - 1.5rem));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 0% 50%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(120deg, rgba(90, 170, 255, 0.28), rgba(26, 140, 255, 0.08) 38%, transparent 62%),
    rgba(10, 18, 34, 0.94);
  border: 1px solid rgba(160, 205, 255, 0.28);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.install-banner.show {
  display: flex;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.install-banner[hidden] {
  display: none !important;
}
.install-banner-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.install-banner-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(210, 230, 255, 0.75) 45%, rgba(120, 180, 255, 0.35) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 6px 16px rgba(26, 140, 255, 0.35);
  display: grid;
  place-items: center;
}
.install-banner-icon img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  mix-blend-mode: normal;
}
.install-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.install-banner-title {
  font-family: Outfit, sans-serif;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.install-banner-text {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}
.install-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}
.install-banner-actions .btn {
  min-height: 2.2rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.84rem;
  border-radius: 999px;
}
@media (max-width: 560px) {
  .install-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 0.75rem;
  }
  .install-banner-actions {
    justify-content: flex-end;
  }
}

/* Alerta limite de salas (plano gratuito) */
.plan-limit-tip {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 0.95rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(246, 201, 69, 0.28);
  background:
    linear-gradient(145deg, rgba(246, 201, 69, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.plan-limit-tip[hidden] {
  display: none !important;
}
.plan-limit-tip-icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ffe9a8;
  background: rgba(246, 201, 69, 0.14);
  border: 1px solid rgba(246, 201, 69, 0.28);
}
.plan-limit-tip-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.plan-limit-tip-title {
  font-family: Outfit, sans-serif;
  font-size: 0.92rem;
  font-weight: 650;
  color: #ffe9a8;
  letter-spacing: -0.01em;
}
.plan-limit-tip-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.45;
}
.plan-limit-tip-cta {
  align-self: flex-start;
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #06101f;
  background: linear-gradient(135deg, #ffe9a8, #f6c945);
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.plan-limit-tip-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.plan-limit-tip-cta::after {
  content: '→';
}
