/* ==========================================================================
   Acólitos Plus — Home / index.css
   v0.9.0-A.4 container 1390px
   --------------------------------------------------------------------------
   CSS reorganizado para remover overrides acumulados das versões A.1/A.2/A.3,
   mantendo o comportamento visual atual:
   - home compacta
   - imagem de fundo no início
   - painel Banda mensal no antigo espaço do painel Operação
   - efeito vidro no header e no painel de banda
   ========================================================================== */


/* ==========================================================================
   1. Design tokens / temas
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #05060c;
  --bg-soft: #0d0f1a;
  --surface: rgba(18, 18, 28, .72);
  --surface-strong: rgba(18, 18, 28, .88);
  --surface-soft: rgba(255, 255, 255, .055);

  --text: #ffffff;
  --text-soft: #e7e2ee;
  --muted: #a9a2b8;
  --muted-2: #746c82;

  --border: rgba(255, 255, 255, .13);
  --border-strong: rgba(255, 255, 255, .22);

  --accent: #a855f7;
  --accent-2: #ec4899;
  --accent-3: #60a5fa;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --shadow: 0 20px 80px rgba(0, 0, 0, .36);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --header-h: 74px;

  /* Layout container padrão:
     todo conteúdo visual fica dentro de 1390px com 19px de respiro.
     Exceções full-width: imagem de fundo da home e vidro do menu superior. */
  --layout-max: 1390px;
  --layout-gutter: 19px;
  --layout-pad: max(var(--layout-gutter), calc((100vw - var(--layout-max)) / 2 + var(--layout-gutter)));

  /* Imagem do início da home.
     Para usar sua arte final, coloque:
     assets/brand/home-hero.webp
  */
  --home-hero-bg-height: 835px;
  --home-hero-fade-height: 250px;
  --home-hero-image: url("/assets/brand/home-hero.webp");
  --home-hero-fallback-image: url("/assets/brand/home-hero.svg");
}

html[data-theme="light"] {
  color-scheme: light;

  --bg: #f3f1f8;
  --bg-soft: #fffaf7;
  --surface: rgba(255, 255, 255, .72);
  --surface-strong: rgba(255, 255, 255, .90);
  --surface-soft: rgba(20, 20, 32, .055);

  --text: #16131f;
  --text-soft: #2c2638;
  --muted: #6b6477;
  --muted-2: #8f8799;

  --border: rgba(34, 29, 47, .13);
  --border-strong: rgba(34, 29, 47, .22);

  --shadow: 0 22px 70px rgba(53, 39, 77, .15);
}


/* ==========================================================================
   2. Base
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 12%, rgba(168, 85, 247, .23), transparent 28%),
    radial-gradient(circle at 90% 6%, rgba(96, 165, 250, .15), transparent 30%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .28)),
    var(--bg);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
}

.layout-container {
  width: min(100%, var(--layout-max));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}


/* ==========================================================================
   3. Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 var(--layout-pad);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(9, 9, 14, .70), rgba(9, 9, 14, .34));
  backdrop-filter: blur(18px) saturate(1.2);
}

html[data-theme="light"] .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .42));
}

.brand {
  justify-self: start;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: clamp(21px, 1.65vw, 29px);
  font-weight: 950;
  letter-spacing: -.055em;
  text-shadow: 0 10px 34px rgba(0, 0, 0, .28);
  transform: rotate(-3deg);
}

.main-nav {
  justify-self: center;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav__link {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  transition: color .18s ease;
}

.main-nav__link:hover,
.main-nav__link--active {
  color: var(--text);
}

.main-nav__link--active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 52px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  box-shadow: 0 0 22px rgba(236, 72, 153, .48);
  transform: translateX(-50%);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-menu-button {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.theme-toggle {
  width: 78px;
  height: 40px;
  display: inline-grid;
  grid-template-columns: 1fr 30px 1fr;
  align-items: center;
  gap: 2px;
  padding: 4px;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(63, 63, 99, .42), rgba(20, 20, 34, .42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 34px rgba(0, 0, 0, .20);
}

html[data-theme="light"] .theme-toggle {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(232, 228, 245, .92));
}

.theme-toggle__icon {
  display: grid;
  place-items: center;
  font-size: 17px;
  opacity: .88;
}

.theme-toggle__knob {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #c9c4ff);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
  transform: translateX(0);
  transition: transform .22s ease;
}

html[data-theme="light"] .theme-toggle__knob {
  transform: translateX(-24px);
}

.profile-button {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .68);
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.profile-button__avatar {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-button__initials {
  position: absolute;
  inset: auto 0 4px;
  display: none;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}


/* ==========================================================================
   4. Home / imagem de fundo inicial
   ========================================================================== */

.home-page {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  isolation: isolate;
}

.home-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--home-hero-bg-height);
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .40) 42%, rgba(0, 0, 0, .18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .14) 55%, rgba(0, 0, 0, .34) 100%),
    var(--home-hero-image),
    var(--home-hero-fallback-image);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-page::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--home-hero-bg-height) - var(--home-hero-fade-height));
  height: var(--home-hero-fade-height);
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--bg) 78%, transparent) 62%,
    var(--bg) 100%
  );
}

html[data-theme="light"] .home-page::before {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .76) 0%, rgba(255, 255, 255, .43) 42%, rgba(255, 255, 255, .18) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .22) 55%, rgba(243, 241, 248, .58) 100%),
    var(--home-hero-image),
    var(--home-hero-fallback-image);
}


/* ==========================================================================
   5. Hero / criação de sala
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 68px) var(--layout-pad) 150px;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

.hero-section__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 40%, rgba(168, 85, 247, .28), transparent 28%),
    radial-gradient(circle at 25% 70%, rgba(16, 185, 129, .14), transparent 34%);
}

.hero-content {
  width: min(590px, 100%);
  margin-top: 4px;
}

.hero-kicker {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .60);
  font-size: 8.5px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .20em;
  text-transform: uppercase;
}

html[data-theme="light"] .hero-kicker {
  color: var(--muted);
}

.hero-content h1 {
  max-width: 590px;
  margin: 0;
  color: #fff;
  font-size: clamp(36.5px, 4.25vw, 61px);
  line-height: .98;
  font-weight: 1000;
  letter-spacing: -.055em;
  text-shadow: 0 16px 55px rgba(0, 0, 0, .42);
}

html[data-theme="light"] .hero-content h1 {
  color: var(--text);
  text-shadow: 0 14px 38px rgba(255, 255, 255, .20);
}

.hero-subtitle {
  max-width: 560px;
  margin: 10px 0 8px;
  color: rgba(255, 255, 255, .93);
  font-size: clamp(18px, 1.4vw, 26.5px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -.03em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, .36);
}

html[data-theme="light"] .hero-subtitle {
  color: var(--text-soft);
  text-shadow: none;
}

.hero-hint {
  margin: 0 0 36px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(12px, .92vw, 14.5px);
  line-height: 1.35;
  font-weight: 620;
}

html[data-theme="light"] .hero-hint {
  color: var(--muted);
}

.create-room-card {
  width: min(590px, 100%);
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(17, 14, 18, .70);
  box-shadow: 0 18px 58px rgba(0, 0, 0, .28);
  backdrop-filter: blur(22px) saturate(1.15);
}

html[data-theme="light"] .create-room-card {
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 48px rgba(58, 38, 78, .16);
}

.create-room-input {
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 19px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .36);
}

html[data-theme="light"] .create-room-input {
  background: rgba(23, 17, 33, .07);
}

.create-room-input input {
  width: 100%;
  min-width: 0;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
  font-weight: 780;
}

html[data-theme="light"] .create-room-input input {
  color: var(--text);
}

.create-room-input input::placeholder {
  color: rgba(255, 255, 255, .66);
}

html[data-theme="light"] .create-room-input input::placeholder {
  color: rgba(44, 38, 56, .58);
}

#createBtn {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  box-shadow: 0 14px 34px rgba(168, 85, 247, .36), inset 0 1px 0 rgba(255, 255, 255, .22);
  font-size: 14px;
  font-weight: 950;
  transition: transform .16s ease, filter .16s ease, opacity .16s ease;
}

#createBtn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

#createBtn:disabled {
  cursor: wait;
  opacity: .70;
  transform: none;
}

.create-output {
  max-width: 590px;
  min-height: 0;
  margin: 14px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, .86);
  background: transparent;
  border-radius: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.create-output:empty,
.hero-bandwidth {
  display: none !important;
}


/* ==========================================================================
   6. Banda mensal no antigo espaço do painel Operação
   ========================================================================== */

.operation-panel.bandwidth-dock {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100vw - (var(--layout-gutter) * 2)));
  margin: -78px auto 34px;
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.operation-panel.bandwidth-dock[data-state="blocked"],
.operation-panel.bandwidth-dock[data-state="admin"] {
  border-color: transparent;
  background: transparent;
}

.operation-bandwidth--dock {
  width: 100%;
}

.bandwidth-card {
  padding: 14px 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025)),
    rgba(11, 11, 18, .62);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px) saturate(1.2);
}

html[data-theme="light"] .bandwidth-card {
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 20px 60px rgba(43, 31, 59, .15);
}

.operation-panel.bandwidth-dock .bandwidth-card {
  position: relative;
  overflow: hidden;
  border-color: var(--border);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(9, 9, 14, .70), rgba(9, 9, 14, .34));
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .10);
  backdrop-filter: blur(18px) saturate(1.2);
}

.operation-panel.bandwidth-dock .bandwidth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .65;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, .12), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
}

.operation-panel.bandwidth-dock .bandwidth-card > * {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] .operation-panel.bandwidth-dock .bandwidth-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .42));
  box-shadow: 0 20px 60px rgba(53, 39, 77, .16), inset 0 1px 0 rgba(255, 255, 255, .72);
}

.bandwidth-card__label {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 850;
}

.bandwidth-card__value {
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 680;
  letter-spacing: -.02em;
}

.bandwidth-card__track {
  height: 8px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .17);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
}

html[data-theme="light"] .bandwidth-card__track {
  background: rgba(28, 23, 39, .13);
}

.bandwidth-card__bar {
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  transition: width .35s ease, background .35s ease, box-shadow .35s ease;
}

.bandwidth-card__bar--green {
  background: #22c55e;
  box-shadow: 0 0 13px rgba(34, 197, 94, .35);
}

.bandwidth-card__bar--lime {
  background: #84cc16;
  box-shadow: 0 0 13px rgba(132, 204, 22, .35);
}

.bandwidth-card__bar--yellow {
  background: #eab308;
  box-shadow: 0 0 13px rgba(234, 179, 8, .35);
}

.bandwidth-card__bar--orange {
  background: #f97316;
  box-shadow: 0 0 13px rgba(249, 115, 22, .35);
}

.bandwidth-card__bar--red {
  background: #ef4444;
  box-shadow: 0 0 13px rgba(239, 68, 68, .35);
}

.operation-bandwidth--error,
.operation-panel.bandwidth-dock .operation-bandwidth--error {
  padding: 14px 18px;
  color: #fff2c7;
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(9, 9, 14, .70), rgba(9, 9, 14, .34));
  box-shadow: 0 18px 60px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px) saturate(1.2);
}


/* ==========================================================================
   7. Seções da home
   ========================================================================== */

.home-section {
  position: relative;
  z-index: 1;
  width: min(100%, var(--layout-max));
  margin: 0 auto;
  padding: 40px var(--layout-gutter);
}

.section-heading {
  max-width: 620px;
  margin-bottom: 20px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 2.4vw, 40px);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -.055em;
}

.section-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}


/* ==========================================================================
   8. Salas ativas / salas fechadas
   ========================================================================== */

.operation-panel__rooms {
  min-height: 108px;
}

.operation-room-empty,
.closed-room-placeholder {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.operation-room-empty__icon,
.closed-room-placeholder__icon {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 18px 35px rgba(168, 85, 247, .28);
}

.closed-room-placeholder strong,
.operation-room-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
}

.closed-room-placeholder span,
.operation-room-empty span {
  display: block;
  line-height: 1.45;
}

.operation-room-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.operation-room-item {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03)),
    radial-gradient(circle at 20% 0%, rgba(168, 85, 247, .30), transparent 35%),
    radial-gradient(circle at 100% 60%, rgba(96, 165, 250, .20), transparent 32%),
    rgba(18, 18, 28, .76);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.operation-room-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(7, 8, 16, .18), rgba(7, 8, 16, .84)),
    radial-gradient(circle at 20% 20%, rgba(236, 72, 153, .28), transparent 32%),
    radial-gradient(circle at 80% 25%, rgba(96, 165, 250, .22), transparent 34%);
}

.operation-room-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .68));
}

.operation-room-info {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 6px;
}

.operation-room-title {
  max-width: 88%;
  color: #fff;
  font-size: 20px;
  line-height: 1.08;
  font-weight: 1000;
  letter-spacing: -.04em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, .46);
  word-break: break-word;
}

.operation-room-meta {
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.operation-room-id {
  color: rgba(255, 255, 255, .48);
  font-size: 11px;
}

.operation-room-link {
  position: absolute;
  right: 15px;
  bottom: 15px;
  flex: 0 0 auto;
  padding: 8px 13px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 58, 237, .88), rgba(236, 72, 153, .88));
  box-shadow: 0 12px 28px rgba(168, 85, 247, .28);
  font-size: 12px;
  font-weight: 950;
}

.operation-room-link:hover,
.operation-room-link:focus-visible {
  outline: none;
  filter: brightness(1.05);
}


/* ==========================================================================
   9. Overlays
   ========================================================================== */

.access-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(16px);
}

.access-overlay[data-visible="true"] {
  display: flex;
}

.access-card {
  width: min(470px, calc(100vw - 32px));
  padding: 28px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface-strong);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
  backdrop-filter: blur(22px) saturate(1.2);
}

.access-card h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
  letter-spacing: -.04em;
}

.access-card p {
  color: var(--muted);
  line-height: 1.45;
}

.access-card label {
  display: block;
  margin: 14px 0 7px;
  color: var(--text-soft);
  font-weight: 850;
}

.access-card input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
  outline: none;
}

.access-card button,
.source-actions button {
  min-height: 46px;
  margin-top: 14px;
  padding: 0 18px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  font-weight: 950;
}

.access-error {
  min-height: 18px;
  margin-top: 10px;
  color: #ffcf70;
  white-space: pre-wrap;
}

.source-card {
  width: min(720px, 94vw);
}

.source-status {
  margin: 14px 0;
  color: var(--muted);
}

.source-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.source-option {
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-soft);
}

.source-option--admin {
  border-color: rgba(168, 85, 247, .46);
  background: rgba(168, 85, 247, .12);
}

.source-option__title {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  text-align: left;
}

.source-option__meta {
  color: #ffd37a;
  font-size: 13px;
  font-weight: 950;
}


/* ==========================================================================
   10. Responsivo
   ========================================================================== */

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
    --home-hero-bg-height: 748px;
    --home-hero-fade-height: 220px;
  }

  .site-header {
    grid-template-columns: 46px 1fr 46px;
    padding: 0 var(--layout-gutter);
  }

  .mobile-menu-button {
    display: grid;
    grid-column: 1;
    grid-row: 1;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
  }

  .brand-mark {
    font-size: 22px;
  }

  .main-nav,
  .theme-toggle {
    display: none;
  }

  .header-actions {
    grid-column: 3;
  }

  .mobile-menu-button,
  .profile-button {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .hero-section {
    min-height: 690px;
    align-items: flex-start;
    padding: calc(var(--header-h) + 44px) var(--layout-gutter) 132px;
  }

  .hero-content {
    margin-top: 28px;
  }

  .hero-content h1 {
    font-size: clamp(32px, 10.2vw, 49px);
  }

  .hero-subtitle {
    font-size: clamp(16px, 5.1vw, 23px);
    line-height: 1.24;
  }

  .hero-hint {
    margin-bottom: 22px;
    font-size: 12px;
    line-height: 1.35;
  }

  .create-room-card {
    grid-template-columns: 1fr;
    padding: 10px;
    border-radius: 24px;
  }

  .create-room-input {
    height: 48px;
  }

  #createBtn {
    width: 100%;
  }

  .operation-panel.bandwidth-dock {
    width: calc(100vw - (var(--layout-gutter) * 2));
    margin: -72px auto 26px;
  }

  .operation-panel.bandwidth-dock .bandwidth-card,
  .bandwidth-card {
    padding: 14px;
    border-radius: 20px;
  }

  .home-section {
    width: min(100%, var(--layout-max));
    padding: 32px var(--layout-gutter);
  }

  .operation-room-list {
    grid-template-columns: 1fr;
  }

  .operation-room-item {
    min-height: 180px;
    display: block;
  }

  .operation-room-link {
    position: static;
    width: max-content;
    margin-top: 16px;
  }
}

@media (max-width: 520px) {
  :root {
    --home-hero-bg-height: 712px;
    --home-hero-fade-height: 210px;
  }

  .hero-section {
    min-height: 650px;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .create-room-input input {
    font-size: 14px;
  }

  .operation-room-empty,
  .closed-room-placeholder {
    flex-direction: column;
    align-items: flex-start;
  }
}
