html:has(body.wawifri-site-page) {
  width: 100%;
  min-height: 100%;
  height: auto;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: none;
}

.wawifri-site-page {
  --site-text: rgba(250, 250, 252, .96);
  --site-muted: rgba(241, 243, 247, .62);
  --site-border: rgba(255, 255, 255, .18);
  --site-border-strong: rgba(255, 255, 255, .3);
  --site-glass: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045) 52%, rgba(255, 255, 255, .075));
  min-width: 320px;
  min-height: 100%;
  height: auto;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--site-text);
  background:
    radial-gradient(circle at 14% 12%, rgba(210, 213, 220, .28), transparent 35%),
    radial-gradient(circle at 86% 82%, rgba(92, 96, 106, .3), transparent 40%),
    #141517;
}

.wawifri-site-page::before,
.wawifri-site-page::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

.wawifri-site-page::before {
  inset: -32vmax;
  opacity: .94;
  background:
    radial-gradient(circle at 23% 30%, rgba(236, 237, 241, .32) 0 10%, transparent 31%),
    radial-gradient(circle at 72% 24%, rgba(112, 116, 126, .26) 0 13%, transparent 35%),
    radial-gradient(circle at 67% 73%, rgba(218, 220, 225, .22) 0 11%, transparent 33%),
    radial-gradient(circle at 34% 80%, rgba(73, 76, 84, .28) 0 12%, transparent 34%);
  filter: blur(48px);
  animation: site-gradient-drift 16s cubic-bezier(.45, .05, .55, .95) infinite alternate;
}

.wawifri-site-page::after {
  inset: -18%;
  opacity: .55;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .13), transparent 28% 68%, rgba(190, 193, 201, .1)),
    radial-gradient(circle at 48% 4%, rgba(255, 255, 255, .13), transparent 44%);
  filter: blur(28px);
  animation: site-gradient-sheen 22s ease-in-out infinite alternate;
}

.site-page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.site-glass {
  position: relative;
  overflow: hidden;
  background: var(--site-glass);
  border: 1px solid var(--site-border);
  box-shadow:
    0 36px 100px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(40px) saturate(145%);
  backdrop-filter: blur(40px) saturate(145%);
}

.site-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .13), transparent 24% 75%, rgba(255, 255, 255, .045));
}

.landing-shell {
  display: grid;
  place-items: center;
  gap: 20px;
}

.landing-card {
  width: min(100%, 1050px);
  min-height: min(680px, calc(100dvh - 96px));
  border-radius: 42px;
  padding: clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(360px, 1.12fr);
  align-items: center;
  gap: clamp(32px, 6vw, 78px);
  animation: site-card-enter 620ms cubic-bezier(.2, .85, .2, 1) both;
}

.brand-art {
  position: relative;
  width: min(100%, 410px);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .22);
  transform: translateZ(0);
}

.brand-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(255, 255, 255, .1), transparent 42%);
  pointer-events: none;
}

.brand-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-art-transparent {
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand-art-transparent::after {
  inset: 10%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(226, 228, 234, .08);
  filter: blur(38px);
}

.brand-art-transparent img {
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .38));
}

.brand-art-glow {
  position: absolute;
  z-index: -1;
  inset: -22%;
  border-radius: 50%;
  background: rgba(220, 222, 228, .16);
  filter: blur(54px);
}

.landing-copy {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.site-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: rgba(247, 248, 251, .7);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.site-eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dfe1e7;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .08), 0 0 18px rgba(255, 255, 255, .45);
}

.landing-copy h1 {
  margin: 0;
  font-size: clamp(2.65rem, 5.2vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 760;
  text-wrap: balance;
}

.landing-copy h1 span {
  color: rgba(237, 239, 244, .54);
}

.landing-description {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--site-muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.65;
}

.landing-description-secondary {
  margin-top: 11px;
  color: rgba(241, 243, 247, .5);
  font-size: clamp(.9rem, 1.2vw, 1.02rem);
}

.landing-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 32px;
}

.landing-capabilities span {
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(255, 255, 255, .11);
  color: rgba(248, 249, 252, .72);
  font-size: .82rem;
}

.landing-capabilities i { font-size: .72rem; }

.site-primary-action {
  width: fit-content;
  min-width: 190px;
  min-height: 58px;
  padding: 0 12px 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: #17181a;
  background: linear-gradient(145deg, #fafafa, #d9dbe0);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28), inset 0 1px #fff;
  font: inherit;
  font-size: .98rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 240ms cubic-bezier(.2, .85, .2, 1);
}

.site-primary-action i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f5f5f6;
  background: #222326;
  transition: transform 240ms cubic-bezier(.2, .85, .2, 1);
}

.site-primary-action:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .34), inset 0 1px #fff;
}

.site-primary-action:hover i { transform: translateX(2px); }
.site-primary-action:focus-visible,
.profile-button:focus-visible,
.room-card:focus-visible,
.text-input:focus-visible { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: 3px; }

.site-primary-action:disabled {
  opacity: .58;
  cursor: wait;
  transform: none;
}

.site-primary-action.is-loading i { animation: site-action-pulse .8s ease-in-out infinite alternate; }

.login-note {
  margin: 14px 0 0 18px;
  color: rgba(244, 246, 250, .46);
  font-size: .78rem;
}

.login-note i { margin-right: 6px; }

.site-footnote {
  position: absolute;
  z-index: 2;
  bottom: max(10px, env(safe-area-inset-bottom));
  margin: 0;
  color: rgba(255, 255, 255, .34);
  font-size: .72rem;
  letter-spacing: .04em;
}

.rooms-shell {
  display: grid;
  place-items: center;
}

.rooms-panel {
  width: min(100%, 1180px);
  max-width: 1180px;
  max-height: none;
  min-height: min(760px, calc(100dvh - 48px));
  padding: clamp(22px, 3.5vw, 46px);
  border-radius: 38px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: site-card-enter 620ms cubic-bezier(.2, .85, .2, 1) both;
}

.rooms-panel-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin: 0;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--site-text);
  text-decoration: none;
}

.site-brand-image {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.site-brand-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.site-brand-image-transparent {
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.site-brand-image-transparent img {
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .32));
}
.site-brand-copy { display: grid; gap: 3px; }
.site-brand-copy strong { font-size: 1.1rem; letter-spacing: -.02em; }
.site-brand-copy small { color: var(--site-muted); font-size: .73rem; }

.rooms-heading { text-align: center; }
.rooms-heading .site-eyebrow { justify-content: center; margin-bottom: 6px; }
.rooms-heading h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.45rem); letter-spacing: -.045em; }

.site-profile-button {
  justify-self: end;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  border: 1px solid var(--site-border-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .18);
  transition: transform 240ms cubic-bezier(.2, .85, .2, 1);
}

.rooms-dashboard {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .72fr);
  gap: clamp(18px, 3vw, 34px);
  padding-top: 30px;
}

.rooms-list-section {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2,
.create-room-box h2 { margin: 0; font-size: 1.18rem; letter-spacing: -.02em; }
.section-heading p,
.create-room-box > p { margin: 7px 0 0; color: var(--site-muted); font-size: .84rem; line-height: 1.5; }

.rooms-total {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .76);
  font-size: .82rem;
  font-weight: 700;
}

.wawifri-rooms-page #rooms-list {
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 2px 8px 2px 2px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
}

.wawifri-rooms-page .room-card {
  min-height: 80px;
  padding: 15px 16px 15px 19px;
  border-radius: 22px;
  background: rgba(20, 21, 24, .3);
  border: 1px solid rgba(255, 255, 255, .105);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  color: var(--site-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-decoration: none;
  transition: transform 240ms cubic-bezier(.2, .85, .2, 1);
}

.wawifri-rooms-page .room-card:hover {
  transform: translateY(-2px) scale(1.005);
  background: rgba(255, 255, 255, .085);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .08);
}

.room-card-copy { min-width: 0; display: grid; gap: 5px; }
.room-card-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .98rem; font-weight: 680; }
.room-card-copy small { color: var(--site-muted); font-size: .74rem; }
.room-card-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }

.room-lock { width: 28px; color: rgba(255, 255, 255, .48) !important; text-align: center; }
.room-chevron { width: 28px; color: rgba(255, 255, 255, .3) !important; text-align: center; transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1); }
.room-card:hover .room-chevron { transform: translateX(3px); color: rgba(255, 255, 255, .72) !important; }

.rooms-empty {
  min-height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  text-align: center;
  color: var(--site-muted);
  border: 1px dashed rgba(255, 255, 255, .13);
  border-radius: 24px;
}

.rooms-empty i { margin-bottom: 5px; font-size: 1.7rem; color: rgba(255, 255, 255, .46); }
.rooms-empty strong { color: var(--site-text); }
.rooms-empty span { font-size: .82rem; }

.wawifri-rooms-page .create-room-box {
  align-self: stretch;
  margin: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 28px;
  background: rgba(18, 19, 22, .25);
  box-shadow: inset 0 1px rgba(255, 255, 255, .055);
}

.create-room-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, .76);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: inset 0 1px rgba(255, 255, 255, .12);
}

.wawifri-rooms-page #create-room-form { display: grid; gap: 14px; margin-top: 26px; }
.site-field { display: grid; gap: 8px; color: rgba(249, 250, 252, .62); font-size: .74rem; font-weight: 650; }

.wawifri-rooms-page .text-input {
  height: 50px;
  margin: 0;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--site-text);
  background: rgba(3, 4, 6, .23);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
  font-size: 16px;
  outline: none;
  transition: none;
}

.wawifri-rooms-page .text-input::placeholder { color: rgba(255, 255, 255, .3); }
.wawifri-rooms-page .text-input:focus { border-color: rgba(255, 255, 255, .36); background: rgba(255, 255, 255, .055); box-shadow: 0 0 0 4px rgba(255, 255, 255, .04); }

.create-room-submit {
  width: 100%;
  min-width: 0;
  margin-top: 4px;
}

.wawifri-rooms-page .modal-content {
  background: linear-gradient(145deg, rgba(63, 65, 70, .76), rgba(27, 28, 31, .82));
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(38px) saturate(140%);
  backdrop-filter: blur(38px) saturate(140%);
}

@keyframes site-gradient-drift {
  0% { transform: translate3d(-5%, -3%, 0) rotate(-4deg) scale(1); }
  45% { transform: translate3d(4%, 2%, 0) rotate(2deg) scale(1.08); }
  100% { transform: translate3d(-1%, 6%, 0) rotate(6deg) scale(1.04); }
}

@keyframes site-gradient-sheen {
  0% { transform: translate3d(-5%, 1%, 0) rotate(-2deg) scale(1.04); opacity: .38; }
  50% { transform: translate3d(4%, -3%, 0) rotate(2deg) scale(1.1); opacity: .62; }
  100% { transform: translate3d(1%, 4%, 0) rotate(-1deg) scale(1.06); opacity: .46; }
}

@keyframes site-card-enter {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes site-action-pulse {
  from { transform: scale(.94); }
  to { transform: scale(1.04); }
}

@media (max-width: 900px) {
  .landing-card {
    grid-template-columns: minmax(210px, .76fr) minmax(330px, 1.24fr);
    gap: 30px;
  }

  .rooms-dashboard { grid-template-columns: 1fr; overflow: visible; }
  .rooms-panel { min-height: auto; }
  .rooms-list-section { min-height: auto; }
  .wawifri-rooms-page #rooms-list { max-height: 48vh; }
}

@media (max-width: 680px) {
  .site-page-shell { padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .landing-shell { align-content: start; padding-top: max(16px, env(safe-area-inset-top)); }
  .landing-card {
    width: 100%;
    min-height: auto;
    padding: 18px 18px 30px;
    border-radius: 30px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .brand-art { width: min(100%, 245px); border-radius: 26px; }
  .landing-copy { text-align: center; }
  .site-eyebrow { justify-content: center; margin-bottom: 14px; font-size: .67rem; }
  .landing-copy h1 { font-size: clamp(2.25rem, 12vw, 3.35rem); }
  .landing-description { margin-top: 20px; font-size: .94rem; line-height: 1.55; }
  .landing-capabilities { justify-content: center; margin: 20px 0 25px; }
  .landing-capabilities span { min-height: 32px; padding: 0 10px; font-size: .72rem; }
  .site-primary-action { width: 100%; }
  .login-note { margin-left: 0; }
  .site-footnote { position: static; text-align: center; padding-bottom: 4px; }

  .rooms-shell { display: block; }
  .rooms-panel { width: 100%; padding: 18px; border-radius: 28px; }
  .rooms-panel-header { grid-template-columns: 1fr auto; gap: 14px; padding-bottom: 18px; }
  .site-brand-image { width: 48px; height: 48px; border-radius: 14px; }
  .site-brand-copy small { display: none; }
  .rooms-heading { grid-column: 1 / -1; grid-row: 2; text-align: left; margin-top: 8px; }
  .rooms-heading .site-eyebrow { justify-content: flex-start; }
  .site-profile-button { grid-column: 2; grid-row: 1; width: 48px; height: 48px; min-width: 48px; min-height: 48px; }
  .rooms-dashboard { padding-top: 22px; gap: 22px; }
  .rooms-list-section { min-height: auto; }
  .section-heading { align-items: center; }
  .section-heading p { max-width: 240px; }
  .wawifri-rooms-page #rooms-list { max-height: none; min-height: auto; padding-right: 2px; overflow: visible; }
  .wawifri-rooms-page .room-card { min-height: 74px; padding: 13px 12px 13px 15px; border-radius: 20px; }
  .room-card-meta { gap: 5px; }
  .room-lock { width: 22px; }
  .room-chevron { display: none; }
  .wawifri-rooms-page .create-room-box { padding: 22px; border-radius: 24px; }
}

@media (max-width: 390px) {
  .landing-card { padding-inline: 15px; }
  .brand-art { width: 210px; }
  .landing-capabilities span:nth-child(2) { order: 3; }
  .site-brand-copy strong { font-size: 1rem; }
  .room-card-copy strong { max-width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  .wawifri-site-page::before,
  .wawifri-site-page::after,
  .landing-card,
  .rooms-panel,
  .site-primary-action.is-loading i { animation: none !important; }
  .site-primary-action,
  .site-primary-action i,
  .wawifri-rooms-page .room-card,
  .room-chevron,
  .site-profile-button { transition-duration: .01ms !important; }
}
