:root {
  --page: #d8e9fb;
  --page-soft: #f3f8ff;
  --ink: #21304d;
  --muted: #64728d;
  --line: #c0d4ec;
  --line-soft: #e1edf8;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --blue: #2b67c7;
  --blue-dark: #174384;
  --green: #2e986f;
  --pink: #a24f7c;
  --gold: #df9f2d;
  --danger: #bd4a4a;
  --shadow: 0 16px 36px rgba(54, 86, 132, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, #d6e8fb 0, #edf6ff 270px, #f8fbff 100%);
  overflow-x: hidden;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(43, 103, 199, 0.1), transparent 28%, rgba(46, 152, 111, 0.08) 62%, transparent),
    linear-gradient(180deg, rgba(9, 24, 48, 0.1), transparent 34%, rgba(255, 255, 255, 0.68));
  content: "";
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.space-parallax {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
  --mx: 0px;
  --my: 0px;
  --scroll: 0px;
}

.space-layer,
.space-grid,
.space-ribbon,
.wire-cube,
.signal-line {
  position: absolute;
  will-change: transform, opacity;
}

.stars-near,
.stars-far {
  inset: -10%;
  opacity: 0.58;
  transform: translate3d(calc(var(--mx) * -0.25), calc(var(--my) * -0.25 + var(--scroll) * -0.04), 0);
}

.stars-near {
  background-image:
    radial-gradient(circle, rgba(43, 103, 199, 0.55) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(46, 152, 111, 0.45) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(223, 159, 45, 0.45) 0 1px, transparent 1.4px);
  background-position: 12px 18px, 72px 92px, 132px 44px;
  background-size: 164px 150px, 220px 210px, 280px 260px;
  animation: starDrift 26s linear infinite;
}

.stars-far {
  opacity: 0.36;
  background-image:
    radial-gradient(circle, rgba(23, 67, 132, 0.5) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(162, 79, 124, 0.34) 0 1px, transparent 1.4px);
  background-position: 32px 42px, 118px 80px;
  background-size: 260px 240px, 340px 300px;
  transform: translate3d(calc(var(--mx) * -0.12), calc(var(--my) * -0.12 + var(--scroll) * -0.025), 0);
  animation: starDrift 44s linear infinite reverse;
}

.space-grid {
  right: -20%;
  bottom: -18%;
  left: -20%;
  height: 44vh;
  min-height: 280px;
  opacity: 0.34;
  background:
    linear-gradient(rgba(43, 103, 199, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 152, 111, 0.15) 1px, transparent 1px);
  background-size: 42px 34px;
  transform: rotateX(64deg) translate3d(calc(var(--mx) * 0.08), calc(var(--scroll) * 0.05), -120px);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, black 0, transparent 86%);
}

.space-ribbon {
  width: 58vw;
  height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-right: 0;
  border-left: 0;
  opacity: 0.28;
  filter: blur(0.2px);
}

.ribbon-one {
  top: 14%;
  left: -12%;
  background: linear-gradient(90deg, transparent, rgba(88, 235, 225, 0.22), rgba(43, 103, 199, 0.18), transparent);
  transform: translate3d(calc(var(--mx) * 0.18), calc(var(--my) * 0.18), 0) rotate(-12deg);
  animation: ribbonScan 8s ease-in-out infinite;
}

.ribbon-two {
  right: -20%;
  bottom: 22%;
  background: linear-gradient(90deg, transparent, rgba(223, 159, 45, 0.16), rgba(162, 79, 124, 0.18), transparent);
  transform: translate3d(calc(var(--mx) * -0.16), calc(var(--my) * -0.16), 0) rotate(16deg);
  animation: ribbonScan 11s ease-in-out infinite reverse;
}

.signal-line {
  height: 1px;
  opacity: 0.36;
  background: linear-gradient(90deg, transparent, rgba(43, 103, 199, 0.66), rgba(46, 152, 111, 0.5), transparent);
}

.signal-one {
  top: 31%;
  left: -20%;
  width: 52vw;
  transform: translateX(calc(var(--mx) * 0.22)) rotate(-10deg);
  animation: signalSlide 7s ease-in-out infinite;
}

.signal-two {
  right: -18%;
  bottom: 33%;
  width: 44vw;
  transform: translateX(calc(var(--mx) * -0.2)) rotate(13deg);
  animation: signalSlide 9s ease-in-out infinite reverse;
}

.wire-cube {
  width: 82px;
  height: 82px;
  transform-style: preserve-3d;
  opacity: 0.24;
}

.wire-cube i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(43, 103, 199, 0.55);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 20px rgba(88, 235, 225, 0.08), 0 0 18px rgba(43, 103, 199, 0.08);
}

.wire-cube i:nth-child(1) { transform: translateZ(41px); }
.wire-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(41px); }
.wire-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(41px); }
.wire-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(41px); }
.wire-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(41px); }
.wire-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(41px); }

.wire-one {
  top: 18%;
  right: 8%;
  transform: translate3d(calc(var(--mx) * -0.3), calc(var(--my) * -0.24), 0) rotateX(-18deg) rotateY(32deg);
  animation: wireFloat 10s ease-in-out infinite;
}

.wire-two {
  bottom: 14%;
  left: 7%;
  width: 58px;
  height: 58px;
  transform: translate3d(calc(var(--mx) * 0.24), calc(var(--my) * 0.2), 0) rotateX(22deg) rotateY(-28deg);
  animation: wireFloat 13s ease-in-out infinite reverse;
}

.wire-two i:nth-child(1) { transform: translateZ(29px); }
.wire-two i:nth-child(2) { transform: rotateY(180deg) translateZ(29px); }
.wire-two i:nth-child(3) { transform: rotateY(90deg) translateZ(29px); }
.wire-two i:nth-child(4) { transform: rotateY(-90deg) translateZ(29px); }
.wire-two i:nth-child(5) { transform: rotateX(90deg) translateZ(29px); }
.wire-two i:nth-child(6) { transform: rotateX(-90deg) translateZ(29px); }

.login-view,
.app-view {
  display: none;
}

.login-view.active,
.app-view.active {
  display: block;
}

.login-view {
  min-height: 100vh;
  padding: 24px;
}

.login-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1100px, 100%);
  margin: 0 auto;
  color: #1d427d;
}

.login-topbar strong {
  font-size: 1.2rem;
  font-weight: 900;
}

.login-topbar span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 450px);
  align-items: center;
  gap: 42px;
  width: min(1100px, 100%);
  min-height: calc(100vh - 88px);
  margin: 0 auto;
}

.login-copy h1 {
  margin: 10px 0 14px;
  color: var(--blue-dark);
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 38px;
  border-radius: 6px;
  padding: 9px 14px;
  font-weight: 900;
}

.primary-button {
  border: 1px solid #17428d;
  color: #fff;
  background: linear-gradient(180deg, #3a78d6, #1f56ad);
  box-shadow: 0 8px 18px rgba(31, 86, 173, 0.2);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--blue-dark);
  background: #fff;
}

.danger-button {
  border: 1px solid rgba(189, 74, 74, 0.25);
  color: var(--danger);
  background: #fff5f5;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue-dark);
  background: #fff;
  font-weight: 900;
}

.cube-panel {
  display: grid;
  justify-items: center;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
  padding: 46px 28px;
}

.cube-scene {
  width: 230px;
  height: 230px;
  perspective: 760px;
}

.nexo-cube {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 40px auto;
  transform-style: preserve-3d;
  animation: spinCube 8s linear infinite;
}

.face {
  position: absolute;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  color: #fff;
  background: linear-gradient(145deg, rgba(49, 116, 212, 0.96), rgba(33, 77, 158, 0.98));
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.16);
  font-size: 3.2rem;
  font-weight: 900;
}

.face.front { transform: translateZ(75px); }
.face.back { transform: rotateY(180deg) translateZ(75px); }
.face.right { transform: rotateY(90deg) translateZ(75px); }
.face.left { transform: rotateY(-90deg) translateZ(75px); }
.face.top { transform: rotateX(90deg) translateZ(75px); }
.face.bottom {
  transform: rotateX(-90deg) translateZ(75px);
  font-size: 1.1rem;
}

.cube-caption {
  display: grid;
  gap: 4px;
  text-align: center;
}

.cube-caption strong {
  color: var(--blue-dark);
}

.cube-caption span {
  color: var(--muted);
  font-size: 0.88rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr minmax(210px, 320px);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(152, 184, 222, 0.72);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 38%, rgba(88, 235, 225, 0.1)),
    linear-gradient(180deg, rgba(91, 149, 216, 0.92), rgba(46, 110, 189, 0.94));
  backdrop-filter: blur(16px);
  padding: 10px max(16px, calc((100vw - 1220px) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 1.32rem;
  font-weight: 900;
  text-decoration: none;
}

.brand span,
.mini-cube span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  color: var(--blue-dark);
  background: #fff;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.main-nav button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 5px;
  color: #eef6ff;
  background: rgba(255, 255, 255, 0.1);
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.main-nav button.active {
  color: #17428d;
  background: #fff;
}

.search-box input {
  width: 100%;
  border: 1px solid #9dbce0;
  border-radius: 5px;
  padding: 9px 10px;
}

.page-grid {
  display: grid;
  grid-template-columns: 260px minmax(360px, 1fr) 300px;
  gap: 14px;
  width: min(1220px, 100%);
  margin: 14px auto;
  padding: 0 16px 32px;
}

.left-column,
.center-column,
.right-column,
.stack {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(77, 111, 154, 0.08);
  padding: 12px;
  backdrop-filter: blur(12px);
}

.panel,
.community-card,
.post,
.topic-card,
.friend-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.panel:hover,
.community-card:hover,
.post:hover,
.topic-card:hover,
.friend-card:hover {
  border-color: rgba(43, 103, 199, 0.32);
  box-shadow: 0 14px 34px rgba(54, 86, 132, 0.13);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 8px;
}

.panel-title h2,
.profile-card h2,
.hero-panel h2,
.community-hero h2 {
  color: var(--blue-dark);
  font-size: 1rem;
}

.panel-title span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.profile-card {
  text-align: center;
}

.avatar-frame {
  display: grid;
  height: 190px;
  place-items: end center;
  margin-bottom: 10px;
  border: 1px solid #d4e5f6;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0)),
    linear-gradient(145deg, #e9f4ff, #f6f0e6);
  overflow: hidden;
}

.nexo-avatar {
  width: 150px;
  height: 180px;
  filter: drop-shadow(0 9px 10px rgba(39, 58, 92, 0.16));
}

.nexo-avatar.small {
  width: 70px;
  height: 84px;
}

.nexo-avatar.tiny {
  width: 48px;
  height: 58px;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.avatar-frame .profile-photo {
  height: 190px;
}

.profile-card p,
.hero-panel p,
.post p,
.community-card p,
.small-copy,
.friend-card p,
.testimonial-card p,
.topic-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.profile-stats span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--panel-soft);
  padding: 8px 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.profile-stats strong {
  color: var(--blue-dark);
  font-size: 1rem;
}

.badge-row,
.interest-row,
.reaction-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge,
.interest-pill,
.reaction-button,
.chip {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--blue-dark);
  background: #f8fbff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 7px 9px;
}

.interest-pill.active,
.chip.active {
  border-color: rgba(46, 152, 111, 0.3);
  color: #1f684e;
  background: rgba(46, 152, 111, 0.1);
}

.hero-panel,
.community-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-actions,
.inline-actions,
.composer-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  align-items: stretch;
  gap: 14px;
  border-color: #a8c7eb;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.96)),
    #fff;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 10px;
}

.app-hero h2,
.profile-hero h2,
.friends-hero h2,
.communities-hero h2 {
  color: var(--blue-dark);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.08;
}

.app-hero p,
.profile-hero p,
.friends-hero p,
.communities-hero p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.48;
}

.hero-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.hero-dashboard div,
.community-hero-stats,
.profile-score div {
  display: grid;
  align-content: center;
  min-height: 70px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #f8fbff;
  padding: 10px;
}

.hero-dashboard strong,
.community-hero-stats strong,
.profile-score strong {
  color: var(--blue-dark);
  font-size: 1.45rem;
  line-height: 1;
}

.hero-dashboard span,
.community-hero-stats span,
.profile-score span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.launch-event {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px 130px;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border-color: #9ec3eb;
  background:
    radial-gradient(circle at 72% 50%, rgba(46, 152, 111, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff, #eef6ff);
}

.launch-event::before {
  position: absolute;
  inset: -60px auto auto -60px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(223, 159, 45, 0.2), transparent 66%);
  content: "";
}

.launch-copy {
  position: relative;
  display: grid;
  gap: 8px;
}

.launch-copy h2 {
  color: var(--blue-dark);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.1;
}

.launch-copy p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.launch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.launch-meta span {
  border: 1px solid rgba(223, 159, 45, 0.28);
  border-radius: 999px;
  color: #7c5a15;
  background: rgba(223, 159, 45, 0.12);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 6px 8px;
}

.living-cube-card {
  position: relative;
  display: grid;
  min-height: 138px;
  place-items: center;
  border: 1px solid rgba(43, 103, 199, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.cube-aura {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(87, 235, 225, 0.42), rgba(43, 103, 199, 0.12) 45%, transparent 68%);
  animation: auraPulse 2.8s ease-in-out infinite;
}

.living-cube {
  position: relative;
  width: 70px;
  height: 70px;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(32deg);
  animation: cubeCreature 4.6s ease-in-out infinite;
}

.cube-face {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: linear-gradient(145deg, #68f2e8, #14948f);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.28), 0 0 22px rgba(87, 235, 225, 0.3);
}

.cube-front { transform: translateZ(35px); }
.cube-back { transform: rotateY(180deg) translateZ(35px); }
.cube-right { transform: rotateY(90deg) translateZ(35px); }
.cube-left { transform: rotateY(-90deg) translateZ(35px); }
.cube-top { transform: rotateX(90deg) translateZ(35px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(35px); }

.cube-label {
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 6px;
}

.launch-badge-preview {
  position: relative;
  display: grid;
  place-items: center;
}

.launch-badge-preview img {
  width: 118px;
  max-width: 100%;
  filter: drop-shadow(0 10px 16px rgba(24, 42, 76, 0.18));
}

.launch-event.claimed .living-cube {
  animation-duration: 7s;
}

.launch-event.unlocking .living-cube {
  animation: cubeUnlock 1.15s ease-in-out infinite;
}

.launch-event.unlocking .cube-aura {
  animation: auraUnlock 700ms ease-in-out infinite;
}

.launch-event.compact {
  grid-template-columns: 1fr;
}

.launch-event.compact .launch-badge-preview {
  display: none;
}

.launch-event.compact .living-cube-card {
  min-height: 112px;
}

.badge-special {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(223, 159, 45, 0.42);
  color: #6b4d13;
  background: linear-gradient(180deg, #fff8d8, #fff3b0);
}

.badge-special img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.author-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.post-badge {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgba(24, 42, 76, 0.18));
}

.quick-publish {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.quick-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: end center;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #eef6ff;
}

.quick-publish button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--blue-dark);
  background: #fff;
  font-weight: 900;
}

.quick-publish button:first-of-type {
  text-align: left;
  padding: 0 12px;
}

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 9px;
}

.discovery-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  min-height: 150px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: var(--ink);
  background: #fbfdff;
  padding: 10px;
  text-align: left;
}

.discovery-card .community-icon {
  width: 42px;
  height: 42px;
}

.discovery-card strong {
  color: var(--blue-dark);
}

.discovery-card span,
.topic-chip span,
.suggestion-card span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.topic-rail,
.people-strip,
.suggestion-row,
.category-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.topic-chip {
  display: grid;
  gap: 6px;
  min-width: 220px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: var(--ink);
  background: #fbfdff;
  padding: 10px;
  text-align: left;
}

.topic-chip strong {
  color: var(--blue-dark);
  font-size: 0.9rem;
}

.people-strip button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 86px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: var(--blue-dark);
  background: #fbfdff;
  padding: 9px 6px;
}

.people-strip strong {
  font-size: 0.76rem;
}

.people-strip span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(120px, 160px);
  align-items: center;
  gap: 14px;
}

.profile-hero-avatar {
  display: grid;
  width: 148px;
  height: 160px;
  place-items: end center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(145deg, #edf6ff, #f7f1e8);
}

.profile-hero-avatar .nexo-avatar {
  width: 126px;
  height: 150px;
}

.profile-hero-copy {
  display: grid;
  gap: 9px;
}

.profile-score {
  display: grid;
  gap: 8px;
}

.profile-actions-panel {
  background: #fbfdff;
}

.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.profile-action-grid button,
.suggestion-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  padding: 10px;
  text-align: left;
}

.profile-action-grid strong,
.suggestion-card strong {
  color: var(--blue-dark);
}

.profile-action-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.photo-upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fff;
}

.photo-upload-panel div {
  display: grid;
  gap: 4px;
}

.photo-upload-panel strong {
  color: var(--blue-dark);
  font-size: 0.9rem;
}

.photo-upload-panel span,
.photo-upload-panel small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.photo-upload-panel input[type="file"] {
  display: none;
}

.photo-file-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--blue-dark);
  background: #f4f8ff;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.photo-upload-panel.is-locked {
  opacity: 0.72;
}

.friends-hero,
.communities-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.friend-online-stack {
  display: flex;
}

.friend-online-stack .friend-avatar {
  margin-left: -8px;
  border: 3px solid #fff;
}

.friend-online-stack .friend-avatar:first-child {
  margin-left: 0;
}

.suggestion-card {
  min-width: 145px;
  justify-items: start;
}

.suggestion-card .secondary-button {
  width: 100%;
}

.communities-hero {
  border-color: #a8c7eb;
}

.category-row .chip {
  white-space: nowrap;
}

.featured-community-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.floating-post,
.bottom-nav {
  display: none;
}

.mini-cube {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(145deg, #2e6ebd, #79aee8);
  animation: miniCubePulse 3s ease-in-out infinite;
}

.composer,
.edit-form,
.create-form {
  display: grid;
  gap: 9px;
}

.composer textarea,
.edit-form input,
.edit-form textarea,
.create-form input,
.create-form textarea,
.comment-form input {
  width: 100%;
  border: 1px solid #c8d8ea;
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
}

.composer textarea,
.edit-form textarea,
.create-form textarea {
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.composer label,
.control-group > span,
.comment-form label {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.feed {
  display: grid;
  gap: 10px;
}

.post,
.topic-card,
.friend-card,
.community-card,
.testimonial-card,
.notice-card {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fbfdff;
  padding: 10px;
}

.post-head,
.friend-card,
.community-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.post-body,
.community-body,
.friend-body {
  min-width: 0;
  flex: 1;
}

.post strong,
.topic-card strong,
.community-card strong,
.friend-card strong,
.testimonial-card strong {
  color: var(--blue-dark);
}

.post-time {
  display: block;
  margin-top: 7px;
  color: #8490a5;
  font-size: 0.72rem;
  font-weight: 700;
}

.fake-gif {
  display: grid;
  position: relative;
  width: min(230px, 100%);
  min-height: 118px;
  place-items: center;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.35), transparent 25%),
    radial-gradient(circle at 72% 72%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, var(--gif-a, #38a37a), var(--gif-b, #2b65c9) 58%, var(--gif-c, #9b4d78));
  box-shadow: 0 12px 28px rgba(24, 42, 76, 0.16), inset 0 0 34px rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.fake-gif::before {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 18%, rgba(255, 255, 255, 0.28) 22% 28%, transparent 34% 100%);
  animation: reactionSpin 4.6s linear infinite;
  content: "";
}

.fake-gif::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(143, 233, 255, 0.18);
  content: "";
}

.fake-gif strong {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  background: rgba(14, 36, 72, 0.28);
  box-shadow: 0 0 22px rgba(143, 233, 255, 0.28);
  padding: 8px 14px;
  text-transform: uppercase;
}

.real-gif {
  display: grid;
  width: min(260px, 100%);
  margin: 8px 0 0;
  overflow: hidden;
  border: 1px solid rgba(143, 233, 255, 0.28);
  border-radius: 14px;
  background: rgba(6, 23, 31, 0.42);
  box-shadow: 0 12px 28px rgba(24, 42, 76, 0.16);
}

.real-gif img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(6, 23, 31, 0.32);
}

.real-gif figcaption {
  padding: 7px 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.gif-orbit,
.gif-spark {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.gif-orbit {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-right-color: rgba(143, 233, 255, 0.82);
  border-radius: 50%;
  animation: reactionOrbit 2.8s linear infinite;
}

.gif-spark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px #fff, 0 0 26px rgba(143, 233, 255, 0.82);
}

.spark-one {
  top: 20px;
  left: 22px;
  animation: reactionSpark 1.8s ease-in-out infinite;
}

.spark-two {
  right: 26px;
  bottom: 24px;
  animation: reactionSpark 2.2s ease-in-out infinite reverse;
}

.reaction-row {
  margin-top: 9px;
}

.reaction-button {
  padding: 6px 8px;
}

.reaction-button.active {
  border-color: rgba(43, 103, 199, 0.3);
  background: rgba(43, 103, 199, 0.1);
}

.gift-action {
  border-color: rgba(223, 159, 45, 0.28);
  color: #7c5a15;
  background: rgba(223, 159, 45, 0.1);
}

.gift-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.gift-pill {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, var(--g1), var(--g2));
  box-shadow: 0 8px 16px rgba(24, 42, 76, 0.1);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 6px 9px;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 9px;
}

.comment-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.comment {
  border-left: 3px solid #d9e8fb;
  padding-left: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.avatar-panel {
  display: grid;
  gap: 10px;
}

.control-group {
  display: grid;
  gap: 7px;
}

.segmented,
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segmented button {
  border: 1px solid #c8d8ea;
  border-radius: 5px;
  color: var(--blue-dark);
  background: #f7fbff;
  padding: 7px 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.segmented button.active {
  border-color: #7fa9dc;
  color: #fff;
  background: var(--blue);
}

.swatches button {
  width: 30px;
  height: 30px;
  border: 1px solid #b7cbe2;
  border-radius: 5px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.56);
}

.swatches button.active {
  outline: 3px solid rgba(43, 101, 201, 0.25);
}

.right-list,
.community-list,
.friend-list,
.topic-list {
  display: grid;
  gap: 8px;
}

.community-card,
.community-item {
  width: 100%;
  text-align: left;
}

.community-card {
  border-color: var(--line);
}

.community-card.active,
.community-item.active {
  border-color: #9fc0e6;
  background: #eef6ff;
}

.community-icon,
.friend-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(145deg, var(--c1, #2b67c7), var(--c2, #2e986f));
  font-weight: 900;
}

.community-meta,
.friend-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.community-item {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fbfdff;
  padding: 9px;
}

.community-item strong {
  color: var(--blue-dark);
}

.community-item span {
  color: var(--muted);
  font-size: 0.76rem;
}

.friend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.friend-grid button {
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fbfdff;
  padding: 8px 4px;
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.friend-avatar {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--skin, #f0b78f) 0 45%, var(--shirt, #2f66c7) 46%);
}

.community-hero {
  align-items: flex-start;
}

.community-hero .community-icon {
  width: 70px;
  height: 70px;
  font-size: 1.5rem;
}

.rule-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.search-results {
  display: grid;
  gap: 8px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  padding: 18px;
  text-align: center;
}

.skin-fill { fill: var(--avatar-skin, #f0b78f); }
.hair-fill { fill: var(--avatar-hair, #151823); }
.shirt-fill { fill: var(--avatar-shirt, #2f66c7); }
.line-art {
  fill: none;
  stroke: #17213a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}
.eye-fill { fill: #17213a; }
.avatar-shadow { fill: rgba(36, 53, 84, 0.16); }
.avatar-glasses,
.avatar-beard,
.avatar-hat,
.avatar-earring {
  display: none;
}
.has-glasses .avatar-glasses,
.has-beard .avatar-beard,
.has-hat .avatar-hat,
.has-earring .avatar-earring {
  display: block;
}
.hair-bald .hair-shape,
.hair-bald .hair-long,
.hair-bald .hair-curls,
.hair-bald .hair-mohawk {
  display: none;
}
.hair-short .hair-long,
.hair-short .hair-curls,
.hair-short .hair-mohawk {
  display: none;
}
.hair-long .hair-shape,
.hair-long .hair-curls,
.hair-long .hair-mohawk {
  display: none;
}
.hair-curly .hair-shape,
.hair-curly .hair-long,
.hair-curly .hair-mohawk {
  display: none;
}
.hair-mohawk .hair-shape,
.hair-mohawk .hair-long,
.hair-mohawk .hair-curls {
  display: none;
}
.style-fem .shoulders {
  transform: scaleX(0.9);
  transform-origin: 90px 160px;
}
.expression-serious .mouth-smile,
.expression-happy .mouth-serious,
.expression-wink .mouth-serious {
  display: none;
}
.expression-serious .mouth-serious {
  display: block;
}
.expression-wink .wink-eye {
  display: block;
}
.expression-wink .right-eye {
  display: none;
}
.wink-eye,
.mouth-serious {
  display: none;
}

.modal-backdrop,
.gift-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(25, 42, 72, 0.36);
  padding: 18px;
}

.modal-backdrop[hidden],
.gift-backdrop[hidden] {
  display: none;
}

.modal-card,
.gift-card {
  width: min(560px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(24, 42, 76, 0.25);
  padding: 14px;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.gift-choice {
  display: grid;
  justify-items: start;
  gap: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: var(--ink);
  background: #fbfdff;
  padding: 10px;
  text-align: left;
}

.gift-choice strong {
  color: var(--blue-dark);
}

.gift-choice span:last-child {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.gift-icon {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 44%, rgba(255, 255, 255, 0.75) 45% 55%, transparent 56%),
    linear-gradient(145deg, var(--g1), var(--g2));
  box-shadow: 0 8px 16px rgba(24, 42, 76, 0.12);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.badge-reveal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(87, 235, 225, 0.18), transparent 26%),
    rgba(12, 24, 45, 0.72);
  padding: 18px;
}

.badge-reveal-backdrop[hidden] {
  display: none;
}

.badge-reveal-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 28%, rgba(87, 235, 225, 0.28), transparent 34%),
    linear-gradient(160deg, #08172e, #153f7e 58%, #0b213f);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  padding: 28px 18px 20px;
  text-align: center;
  animation: revealPop 520ms cubic-bezier(.2, 1.15, .35, 1) both;
}

.badge-reveal-card img {
  position: relative;
  z-index: 1;
  width: min(310px, 82vw);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.34));
  animation: badgeFloat 2.4s ease-in-out infinite;
}

.badge-reveal-card h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.08;
}

.badge-reveal-card p {
  position: relative;
  z-index: 1;
  max-width: 380px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
}

.badge-reveal-card .eyebrow {
  color: #ffe079;
}

.badge-reveal-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
}

.badge-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.reveal-rays {
  position: absolute;
  inset: -45%;
  background:
    conic-gradient(from 0deg, transparent 0 8%, rgba(255, 224, 121, 0.26) 9% 12%, transparent 13% 22%, rgba(87, 235, 225, 0.22) 23% 27%, transparent 28% 100%);
  animation: raySpin 7s linear infinite;
}

.gif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gif-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.gif-search input {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
  font-weight: 800;
}

.gif-status {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.gif-choice {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfdff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.gif-choice:hover {
  border-color: rgba(143, 233, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(143, 233, 255, 0.16), 0 14px 28px rgba(31, 55, 91, 0.1);
  transform: translateY(-1px);
}

.gif-choice .fake-gif {
  width: 100%;
  min-height: 112px;
  margin: 0;
}

.gif-choice .real-gif {
  width: 100%;
  margin: 0;
}

.gif-choice > strong {
  color: var(--blue-dark);
}

.gif-choice > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 7px;
  color: #fff;
  background: rgba(23, 67, 132, 0.96);
  box-shadow: 0 14px 34px rgba(24, 42, 76, 0.22);
  padding: 11px 13px;
  font-size: 0.86rem;
  font-weight: 800;
}

.toast[hidden] {
  display: none;
}

@keyframes spinCube {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to { transform: rotateX(-18deg) rotateY(360deg); }
}

@keyframes starDrift {
  from {
    background-position: 12px 18px, 72px 92px, 132px 44px;
  }
  to {
    background-position: 176px 168px, 292px 302px, 412px 304px;
  }
}

@keyframes ribbonScan {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.38;
  }
}

@keyframes signalSlide {
  0%, 100% {
    opacity: 0.16;
    filter: blur(0);
  }
  50% {
    opacity: 0.52;
    filter: blur(0.2px);
  }
}

@keyframes wireFloat {
  0%, 100% {
    margin-top: 0;
  }
  50% {
    margin-top: -14px;
  }
}

@keyframes cubeCreature {
  0%, 12%, 100% {
    transform: rotateX(-18deg) rotateY(32deg) translateX(0) rotateZ(0);
  }
  16% {
    transform: rotateX(-18deg) rotateY(42deg) translateX(-3px) rotateZ(-3deg);
  }
  20% {
    transform: rotateX(-12deg) rotateY(24deg) translateX(4px) rotateZ(4deg);
  }
  25% {
    transform: rotateX(-18deg) rotateY(32deg) translateX(0) rotateZ(0);
  }
  62% {
    transform: rotateX(-22deg) rotateY(38deg) translateY(-2px) rotateZ(-2deg);
  }
  68% {
    transform: rotateX(-14deg) rotateY(24deg) translateY(2px) rotateZ(2deg);
  }
  74% {
    transform: rotateX(-18deg) rotateY(32deg) translateY(0) rotateZ(0);
  }
}

@keyframes cubeUnlock {
  0%, 100% {
    transform: rotateX(-18deg) rotateY(32deg) scale(1);
  }
  25% {
    transform: rotateX(-8deg) rotateY(70deg) scale(1.08) translateX(-5px);
  }
  50% {
    transform: rotateX(-28deg) rotateY(-24deg) scale(1.13) translateX(5px);
  }
  75% {
    transform: rotateX(-12deg) rotateY(140deg) scale(1.08);
  }
}

@keyframes auraPulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes auraUnlock {
  0%, 100% {
    opacity: 0.65;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.28);
  }
}

@keyframes revealPop {
  from {
    opacity: 0;
    transform: scale(0.82) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes badgeFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
}

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

@keyframes miniCubePulse {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.05); }
}

@media (max-width: 1020px) {
  .topbar,
  .page-grid,
  .login-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
  }

  .page-grid {
    width: min(760px, 100%);
  }

  .center-column {
    order: 1;
  }

  .left-column {
    order: 2;
  }

  .right-column {
    order: 3;
  }

  .discovery-grid,
  .featured-community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 78px;
  }

  .login-view {
    padding: 16px;
  }

  .login-topbar,
  .hero-panel,
  .community-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .cube-panel {
    padding: 28px 16px;
  }

  .cube-scene {
    width: 190px;
    height: 190px;
  }

  .nexo-cube,
  .face {
    width: 120px;
    height: 120px;
  }

  .nexo-cube {
    margin: 35px auto;
  }

  .face {
    font-size: 2.4rem;
  }

  .face.front { transform: translateZ(60px); }
  .face.back { transform: rotateY(180deg) translateZ(60px); }
  .face.right { transform: rotateY(90deg) translateZ(60px); }
  .face.left { transform: rotateY(-90deg) translateZ(60px); }
  .face.top { transform: rotateX(90deg) translateZ(60px); }
  .face.bottom { transform: rotateX(-90deg) translateZ(60px); }

  .page-grid {
    margin-top: 10px;
    padding: 0 10px 26px;
  }

  .topbar {
    gap: 10px;
    border-bottom: 1px solid #b6d1ee;
    background: rgba(248, 251, 255, 0.96);
    padding: 10px;
  }

  .brand {
    color: var(--blue-dark);
  }

  .brand span {
    color: #fff;
    background: var(--blue);
  }

  .main-nav {
    display: none;
  }

  .search-box input {
    min-height: 40px;
    border-color: var(--line-soft);
    background: #fff;
  }

  .login-actions,
  .composer-actions,
  .form-actions,
  .inline-actions {
    flex-direction: column;
  }

  .form-grid,
  .gif-grid,
  .gift-grid,
  .comment-form {
    grid-template-columns: 1fr;
  }

  .app-hero,
  .profile-hero,
  .friends-hero,
  .communities-hero,
  .launch-event {
    grid-template-columns: 1fr;
  }

  .app-hero h2,
  .profile-hero h2,
  .friends-hero h2,
  .communities-hero h2 {
    font-size: 1.55rem;
  }

  .hero-dashboard {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-dashboard div,
  .community-hero-stats,
  .profile-score div {
    min-height: 64px;
    padding: 8px;
  }

  .quick-publish {
    grid-template-columns: auto 1fr;
  }

  .launch-event {
    justify-items: stretch;
  }

  .living-cube-card {
    min-height: 126px;
  }

  .launch-badge-preview {
    position: absolute;
    right: 12px;
    top: 12px;
    opacity: 0.18;
    pointer-events: none;
  }

  .launch-badge-preview img {
    width: 120px;
  }

  .quick-publish button:last-child {
    grid-column: 1 / -1;
  }

  .discovery-grid,
  .featured-community-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .discovery-card,
  .featured-community-grid .community-card {
    min-width: 220px;
  }

  .profile-score,
  .profile-action-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-upload-panel {
    grid-template-columns: 1fr;
  }

  .photo-upload-panel .secondary-button,
  .photo-file-button {
    width: 100%;
  }

  .profile-hero-avatar {
    width: 100%;
    height: 170px;
  }

  .side-profile {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .side-profile .avatar-frame {
    width: 86px;
    height: 86px;
    margin: 0;
  }

  .side-profile .nexo-avatar {
    width: 72px;
    height: 86px;
  }

  .side-profile .profile-photo {
    height: 86px;
  }

  .side-profile .profile-stats {
    grid-column: 1 / -1;
  }

  .side-badges,
  .side-avatar-builder {
    display: none;
  }

  body[data-route="profile"] .side-avatar-builder {
    display: grid;
  }

  .bottom-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 22;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    border: 1px solid rgba(151, 184, 222, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(24, 42, 76, 0.2);
    padding: 6px;
  }

  .bottom-nav button {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 0;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    padding: 7px 2px;
    font-size: 0.68rem;
    font-weight: 900;
  }

  .bottom-nav button span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    background: #eef6ff;
    color: var(--blue-dark);
    font-size: 0.78rem;
  }

  .bottom-nav button.active {
    color: var(--blue-dark);
    background: #eef6ff;
  }

  .bottom-nav button.active span,
  .bottom-nav [data-focus-composer] span {
    color: #fff;
    background: var(--blue);
  }

  .floating-post {
    position: fixed;
    right: 16px;
    bottom: 86px;
    z-index: 21;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid #17428d;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(180deg, #3a78d6, #1f56ad);
    box-shadow: 0 12px 28px rgba(31, 86, 173, 0.28);
    font-size: 1.5rem;
    font-weight: 900;
  }
}

/* Final Primus dark skin override */
:root {
  --page: #06151c;
  --page-soft: #092735;
  --ink: #ecfffb;
  --muted: #9fb6b2;
  --line: rgba(114, 255, 231, 0.22);
  --line-soft: rgba(114, 255, 231, 0.14);
  --panel: rgba(6, 23, 31, 0.66);
  --panel-soft: rgba(10, 39, 53, 0.52);
  --blue: #35a7ff;
  --blue-dark: #dffffa;
  --nexo-light: #19e0bd;
  --nexo-glow: rgba(25, 224, 189, 0.62);
  --soft-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  --deep-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(25, 224, 189, 0.2), transparent 27rem),
    radial-gradient(circle at 74% 16%, rgba(53, 167, 255, 0.2), transparent 30rem),
    linear-gradient(135deg, #04121b 0%, #092735 46%, #06151c 100%);
}

body::after {
  background:
    radial-gradient(circle, rgba(25, 224, 189, 0.42) 0 1px, transparent 1.5px) 14px 18px / 150px 134px,
    radial-gradient(circle, rgba(53, 167, 255, 0.24) 0 1px, transparent 1.5px) 76px 44px / 210px 190px,
    linear-gradient(rgba(114, 255, 231, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 255, 231, 0.035) 1px, transparent 1px);
  opacity: 0.72;
}

.site-shell::before {
  background:
    linear-gradient(28deg, transparent 0 22%, rgba(25, 224, 189, 0.18) 22.05%, transparent 22.18% 54%, rgba(53, 167, 255, 0.12) 54.05%, transparent 54.18%),
    linear-gradient(148deg, transparent 0 16%, rgba(25, 224, 189, 0.13) 16.06%, transparent 16.2% 76%, rgba(53, 167, 255, 0.1) 76.05%, transparent 76.2%),
    linear-gradient(78deg, transparent 0 38%, rgba(114, 255, 231, 0.11) 38.05%, transparent 38.2% 68%, rgba(114, 255, 231, 0.08) 68.05%, transparent 68.2%);
  opacity: 0.74;
  mask-image: none;
}

.stars-near,
.stars-far,
.space-grid,
.wire-cube {
  display: block;
}

.wire-cube {
  opacity: 0.32;
}

.wire-cube i {
  border-color: rgba(25, 224, 189, 0.46);
  background: rgba(25, 224, 189, 0.02);
  box-shadow: inset 0 0 20px rgba(25, 224, 189, 0.08), 0 0 18px rgba(25, 224, 189, 0.1);
}

.space-grid {
  opacity: 0.18;
  background:
    linear-gradient(rgba(114, 255, 231, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 255, 231, 0.08) 1px, transparent 1px);
}

.login-topbar,
.topbar,
.panel,
.community-card,
.post,
.friend-card,
.testimonial-card,
.topic-card,
.suggestion-card,
.discovery-card,
.composer,
.modal-card,
.gift-card {
  border-color: rgba(114, 255, 231, 0.18);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(6, 23, 31, 0.74), rgba(6, 23, 31, 0.54)),
    radial-gradient(circle at 92% 8%, rgba(25, 224, 189, 0.12), transparent 36%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.topbar {
  background:
    linear-gradient(180deg, rgba(6, 23, 31, 0.86), rgba(6, 23, 31, 0.62)),
    radial-gradient(circle at 8% 0%, rgba(25, 224, 189, 0.16), transparent 34%);
}

.brand,
.panel-title h2,
.profile-card h2,
.hero-panel h2,
.community-hero h2,
.post strong,
.topic-card strong,
.community-card strong,
.friend-card strong,
.testimonial-card strong,
.home-community-card strong,
.profile-action-grid strong,
.suggestion-card strong,
.photo-upload-panel strong,
.gif-choice > strong,
.gift-choice strong {
  color: #f2fffc;
}

.login-topbar span,
.profile-card p,
.hero-panel p,
.post p,
.community-card p,
.small-copy,
.friend-card p,
.testimonial-card p,
.topic-card p,
.home-community-card small,
.panel-title span,
.post-time,
.photo-upload-panel span,
.photo-upload-panel small,
.gift-choice span:last-child,
.gif-choice > span {
  color: var(--muted);
}

.eyebrow {
  color: var(--nexo-light);
}

.main-nav,
.search-box,
.quick-publish button:first-of-type,
.composer textarea,
.edit-form input,
.edit-form textarea,
.create-form input,
.create-form textarea,
.comment-form input,
.home-community-card,
.community-item,
.notice-card,
.hero-dashboard div,
.profile-score div,
.community-hero-stats,
.profile-stats span {
  border-color: rgba(114, 255, 231, 0.16);
  color: #dffffa;
  background: rgba(4, 18, 26, 0.48);
}

.search-box input,
.composer textarea,
.edit-form input,
.edit-form textarea,
.create-form input,
.create-form textarea,
.comment-form input {
  color: #f2fffc;
}

.search-box input::placeholder,
.composer textarea::placeholder,
.comment-form input::placeholder {
  color: rgba(223, 255, 250, 0.56);
}

.secondary-button,
.photo-file-button,
.chip,
.interest-pill,
.topic-chip,
.profile-action-grid button,
.quick-publish button,
.composer-actions button,
.reaction-button {
  border-color: rgba(114, 255, 231, 0.18);
  color: #dffffa;
  background: rgba(4, 18, 26, 0.46);
}

.primary-button,
.floating-post,
.composer-actions .primary-button,
.add-community-card i,
.brand span,
.login-topbar strong::before {
  color: #04121b;
  background: linear-gradient(135deg, #19e0bd, #35a7ff);
  box-shadow: 0 0 0 4px rgba(25, 224, 189, 0.12), 0 0 26px rgba(25, 224, 189, 0.5);
}

.avatar-frame,
.profile-hero-avatar,
.quick-avatar {
  border-color: rgba(114, 255, 231, 0.2);
  background:
    radial-gradient(circle at 50% 16%, rgba(25, 224, 189, 0.25), transparent 34%),
    linear-gradient(145deg, rgba(10, 39, 53, 0.92), rgba(4, 18, 26, 0.78));
}

.badge {
  background: rgba(4, 18, 26, 0.55);
}

.room-panel .room-item,
.home-communities-panel,
.topic-focus-panel,
.app-hero,
.profile-hero,
.friends-hero,
.communities-hero,
.community-hero,
.launch-event {
  background:
    linear-gradient(180deg, rgba(6, 23, 31, 0.74), rgba(6, 23, 31, 0.5)),
    radial-gradient(circle at 14% 8%, rgba(25, 224, 189, 0.12), transparent 30%),
    radial-gradient(circle at 90% 60%, rgba(53, 167, 255, 0.12), transparent 34%);
}

.nexo-cube .face,
.cube-face {
  border-color: rgba(114, 255, 231, 0.52);
  color: #dffffa;
  background: linear-gradient(145deg, rgba(25, 224, 189, 0.88), rgba(6, 103, 111, 0.9));
  box-shadow: inset 0 0 26px rgba(223, 255, 250, 0.18), 0 0 48px rgba(25, 224, 189, 0.32);
}

.bottom-nav {
  border-color: rgba(114, 255, 231, 0.2);
  background: rgba(6, 23, 31, 0.86);
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 18% 12%, rgba(25, 224, 189, 0.2), transparent 22rem),
      radial-gradient(circle at 78% 16%, rgba(53, 167, 255, 0.18), transparent 24rem),
      linear-gradient(135deg, #04121b 0%, #092735 46%, #06151c 100%);
  }
}

/* Primus dark atmosphere */
:root {
  --page: #06151c;
  --page-soft: #092735;
  --ink: #ecfffb;
  --muted: #9fb6b2;
  --line: rgba(114, 255, 231, 0.22);
  --line-soft: rgba(114, 255, 231, 0.14);
  --panel: rgba(6, 23, 31, 0.66);
  --panel-soft: rgba(10, 39, 53, 0.52);
  --blue: #35a7ff;
  --blue-dark: #dffffa;
  --nexo-light: #19e0bd;
  --nexo-glow: rgba(25, 224, 189, 0.62);
  --soft-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  --deep-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(25, 224, 189, 0.2), transparent 27rem),
    radial-gradient(circle at 74% 16%, rgba(53, 167, 255, 0.2), transparent 30rem),
    radial-gradient(circle at 52% 82%, rgba(25, 224, 189, 0.1), transparent 34rem),
    linear-gradient(135deg, #04121b 0%, #092735 46%, #06151c 100%);
}

body::after {
  z-index: -4;
  background:
    radial-gradient(circle, rgba(25, 224, 189, 0.42) 0 1px, transparent 1.5px) 14px 18px / 150px 134px,
    radial-gradient(circle, rgba(53, 167, 255, 0.24) 0 1px, transparent 1.5px) 76px 44px / 210px 190px,
    linear-gradient(rgba(114, 255, 231, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 255, 231, 0.035) 1px, transparent 1px);
  background-size: 150px 134px, 210px 190px, 72px 72px, 72px 72px;
  opacity: 0.72;
}

.site-shell::before {
  z-index: -3;
  background:
    linear-gradient(28deg, transparent 0 22%, rgba(25, 224, 189, 0.18) 22.05%, transparent 22.18% 54%, rgba(53, 167, 255, 0.12) 54.05%, transparent 54.18%),
    linear-gradient(148deg, transparent 0 16%, rgba(25, 224, 189, 0.13) 16.06%, transparent 16.2% 76%, rgba(53, 167, 255, 0.1) 76.05%, transparent 76.2%),
    linear-gradient(78deg, transparent 0 38%, rgba(114, 255, 231, 0.11) 38.05%, transparent 38.2% 68%, rgba(114, 255, 231, 0.08) 68.05%, transparent 68.2%);
  opacity: 0.7;
  mask-image: none;
}

.space-parallax {
  opacity: 1;
}

.stars-near,
.stars-far,
.space-grid,
.wire-cube {
  display: block;
}

.stars-near {
  opacity: 0.54;
  background-image:
    radial-gradient(circle, rgba(25, 224, 189, 0.65) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(53, 167, 255, 0.38) 0 1px, transparent 1.5px);
}

.stars-far {
  opacity: 0.32;
  background-image:
    radial-gradient(circle, rgba(114, 255, 231, 0.36) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(53, 167, 255, 0.25) 0 1px, transparent 1.5px);
}

.space-grid {
  opacity: 0.16;
  background:
    linear-gradient(rgba(114, 255, 231, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 255, 231, 0.08) 1px, transparent 1px);
}

.space-ribbon {
  opacity: 0.22;
  filter: blur(3px);
}

.ribbon-one,
.ribbon-two,
.signal-line {
  background: linear-gradient(90deg, transparent, rgba(25, 224, 189, 0.76), rgba(53, 167, 255, 0.42), transparent);
}

.wire-cube {
  display: block;
  opacity: 0.32;
}

.wire-cube i {
  border-color: rgba(25, 224, 189, 0.46);
  background: rgba(25, 224, 189, 0.02);
  box-shadow: inset 0 0 20px rgba(25, 224, 189, 0.08), 0 0 18px rgba(25, 224, 189, 0.1);
}

.login-topbar,
.topbar,
.panel,
.community-card,
.post,
.friend-card,
.testimonial-card,
.topic-card,
.suggestion-card,
.discovery-card,
.composer,
.modal-card,
.gift-card {
  border: 1px solid rgba(114, 255, 231, 0.18);
  background:
    linear-gradient(180deg, rgba(6, 23, 31, 0.74), rgba(6, 23, 31, 0.54)),
    radial-gradient(circle at 92% 8%, rgba(25, 224, 189, 0.12), transparent 36%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.topbar {
  background:
    linear-gradient(180deg, rgba(6, 23, 31, 0.86), rgba(6, 23, 31, 0.62)),
    radial-gradient(circle at 8% 0%, rgba(25, 224, 189, 0.16), transparent 34%);
}

.brand,
.panel-title h2,
.profile-card h2,
.hero-panel h2,
.community-hero h2,
.post strong,
.topic-card strong,
.community-card strong,
.friend-card strong,
.testimonial-card strong,
.home-community-card strong,
.profile-action-grid strong,
.suggestion-card strong,
.photo-upload-panel strong,
.gif-choice > strong,
.gift-choice strong {
  color: #f2fffc;
}

.login-topbar span,
.profile-card p,
.hero-panel p,
.post p,
.community-card p,
.small-copy,
.friend-card p,
.testimonial-card p,
.topic-card p,
.home-community-card small,
.panel-title span,
.post-time,
.photo-upload-panel span,
.photo-upload-panel small,
.gift-choice span:last-child,
.gif-choice > span {
  color: var(--muted);
}

.eyebrow {
  color: var(--nexo-light);
}

.main-nav,
.search-box,
.quick-publish button:first-of-type,
.composer textarea,
.edit-form input,
.edit-form textarea,
.create-form input,
.create-form textarea,
.comment-form input,
.home-community-card,
.community-item,
.notice-card,
.hero-dashboard div,
.profile-score div,
.community-hero-stats,
.profile-stats span {
  border-color: rgba(114, 255, 231, 0.16);
  color: #dffffa;
  background: rgba(4, 18, 26, 0.48);
}

.search-box input,
.composer textarea,
.edit-form input,
.edit-form textarea,
.create-form input,
.create-form textarea,
.comment-form input {
  color: #f2fffc;
}

.search-box input::placeholder,
.composer textarea::placeholder,
.comment-form input::placeholder {
  color: rgba(223, 255, 250, 0.56);
}

.secondary-button,
.photo-file-button,
.chip,
.interest-pill,
.topic-chip,
.profile-action-grid button,
.quick-publish button,
.composer-actions button,
.reaction-button {
  border-color: rgba(114, 255, 231, 0.18);
  color: #dffffa;
  background: rgba(4, 18, 26, 0.46);
}

.primary-button,
.floating-post,
.composer-actions .primary-button,
.add-community-card i,
.brand span,
.login-topbar strong::before {
  color: #04121b;
  background: linear-gradient(135deg, #19e0bd, #35a7ff);
  box-shadow: 0 0 0 4px rgba(25, 224, 189, 0.12), 0 0 26px rgba(25, 224, 189, 0.5);
}

.avatar-frame,
.profile-hero-avatar,
.quick-avatar {
  border-color: rgba(114, 255, 231, 0.2);
  background:
    radial-gradient(circle at 50% 16%, rgba(25, 224, 189, 0.25), transparent 34%),
    linear-gradient(145deg, rgba(10, 39, 53, 0.92), rgba(4, 18, 26, 0.78));
}

.community-icon,
.friend-avatar,
.badge,
.post-badge {
  box-shadow: 0 0 0 3px rgba(25, 224, 189, 0.12), 0 10px 20px rgba(0, 0, 0, 0.22);
}

.badge {
  background: rgba(4, 18, 26, 0.55);
}

.badge-special {
  color: #ffe9a7;
  background: rgba(54, 40, 10, 0.42);
}

.room-panel .room-item,
.home-communities-panel,
.topic-focus-panel,
.app-hero,
.profile-hero,
.friends-hero,
.communities-hero,
.community-hero,
.launch-event {
  background:
    linear-gradient(180deg, rgba(6, 23, 31, 0.74), rgba(6, 23, 31, 0.5)),
    radial-gradient(circle at 14% 8%, rgba(25, 224, 189, 0.12), transparent 30%),
    radial-gradient(circle at 90% 60%, rgba(53, 167, 255, 0.12), transparent 34%);
}

.nexo-cube .face,
.cube-face {
  border-color: rgba(114, 255, 231, 0.52);
  color: #dffffa;
  background: linear-gradient(145deg, rgba(25, 224, 189, 0.88), rgba(6, 103, 111, 0.9));
  box-shadow: inset 0 0 26px rgba(223, 255, 250, 0.18), 0 0 48px rgba(25, 224, 189, 0.32);
}

.bottom-nav {
  border-color: rgba(114, 255, 231, 0.2);
  background: rgba(6, 23, 31, 0.86);
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 18% 12%, rgba(25, 224, 189, 0.2), transparent 22rem),
      radial-gradient(circle at 78% 16%, rgba(53, 167, 255, 0.18), transparent 24rem),
      linear-gradient(135deg, #04121b 0%, #092735 46%, #06151c 100%);
  }

  .login-copy,
  .topbar,
  .panel,
  .post,
  .community-card,
  .friend-card,
  .testimonial-card,
  .topic-card,
  .suggestion-card,
  .composer,
  .modal-card,
  .gift-card {
    border-color: rgba(114, 255, 231, 0.18);
    background:
      linear-gradient(180deg, rgba(6, 23, 31, 0.78), rgba(6, 23, 31, 0.58)),
      radial-gradient(circle at 92% 8%, rgba(25, 224, 189, 0.13), transparent 36%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .space-parallax {
    opacity: 0.45;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .login-view {
    padding: max(14px, env(safe-area-inset-top)) 14px calc(22px + env(safe-area-inset-bottom));
  }

  .login-grid {
    min-height: auto;
    gap: 18px;
    padding-top: 28px;
  }

  .login-copy {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24)),
      radial-gradient(circle at 88% 12%, rgba(143, 233, 255, 0.32), transparent 32%);
    box-shadow: 0 18px 44px rgba(31, 55, 91, 0.12);
    backdrop-filter: blur(20px);
    padding: 22px;
    overflow: hidden;
  }

  .login-copy h1 {
    font-size: clamp(2.65rem, 15vw, 4.6rem);
  }

  .login-actions {
    display: grid;
  }

  .login-actions .primary-button,
  .login-actions .secondary-button {
    width: 100%;
    min-height: 48px;
  }

  .topbar {
    position: sticky;
    top: env(safe-area-inset-top);
    z-index: 25;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
      radial-gradient(circle at 10% 10%, rgba(143, 233, 255, 0.34), transparent 40%);
    box-shadow: 0 14px 34px rgba(31, 55, 91, 0.13);
    backdrop-filter: blur(20px);
  }

  .page-grid {
    width: 100%;
    grid-template-columns: 1fr !important;
    padding-inline: 12px;
  }

  .center-column {
    order: 1;
  }

  .left-column {
    order: 2;
  }

  .right-column {
    order: 3;
  }

  .panel,
  .post,
  .community-card,
  .friend-card,
  .testimonial-card,
  .topic-card,
  .suggestion-card,
  .composer,
  .modal-card,
  .gift-card {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66)),
      radial-gradient(circle at 92% 8%, rgba(143, 233, 255, 0.16), transparent 36%);
    box-shadow: 0 14px 34px rgba(31, 55, 91, 0.1);
    backdrop-filter: blur(18px);
  }

  .bottom-nav {
    bottom: calc(10px + env(safe-area-inset-bottom));
    border-radius: 22px;
  }

  .floating-post {
    right: 18px;
    bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .modal-backdrop,
  .gift-backdrop,
  .badge-reveal-backdrop {
    align-items: end;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }

  .modal-card,
  .gift-card,
  .badge-reveal-card {
    max-height: min(86vh, 720px);
    overflow: auto;
    border-radius: 24px;
  }

  .gif-grid,
  .gift-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fake-gif {
    min-height: 106px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .login-view {
    padding: max(14px, env(safe-area-inset-top)) 14px calc(22px + env(safe-area-inset-bottom));
  }

  .login-grid {
    min-height: auto;
    gap: 18px;
    padding-top: 28px;
  }

  .login-copy {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24)),
      radial-gradient(circle at 88% 12%, rgba(143, 233, 255, 0.32), transparent 32%);
    box-shadow: 0 18px 44px rgba(31, 55, 91, 0.12);
    backdrop-filter: blur(20px);
    padding: 22px;
    overflow: hidden;
  }

  .login-copy::after {
    position: absolute;
    right: -26px;
    bottom: -34px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 233, 255, 0.52), transparent 66%);
    content: "";
  }

  .login-copy h1 {
    font-size: clamp(2.65rem, 15vw, 4.6rem);
  }

  .lead {
    font-size: 1rem;
  }

  .login-actions {
    display: grid;
  }

  .login-actions .primary-button,
  .login-actions .secondary-button {
    width: 100%;
    min-height: 48px;
  }

  .topbar {
    position: sticky;
    top: env(safe-area-inset-top);
    z-index: 25;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
      radial-gradient(circle at 10% 10%, rgba(143, 233, 255, 0.34), transparent 40%);
    box-shadow: 0 14px 34px rgba(31, 55, 91, 0.13);
    backdrop-filter: blur(20px);
  }

  .page-grid {
    width: 100%;
    grid-template-columns: 1fr;
    padding-inline: 12px;
  }

  .center-column {
    order: 1;
  }

  .left-column {
    order: 2;
  }

  .right-column {
    order: 3;
  }

  .panel,
  .post,
  .community-card,
  .friend-card,
  .testimonial-card,
  .topic-card,
  .suggestion-card,
  .composer,
  .modal-card,
  .gift-card {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66)),
      radial-gradient(circle at 92% 8%, rgba(143, 233, 255, 0.16), transparent 36%);
    box-shadow: 0 14px 34px rgba(31, 55, 91, 0.1);
    backdrop-filter: blur(18px);
  }

  .bottom-nav {
    bottom: calc(10px + env(safe-area-inset-bottom));
    border-radius: 22px;
  }

  .floating-post {
    right: 18px;
    bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .modal-backdrop,
  .gift-backdrop,
  .badge-reveal-backdrop {
    align-items: end;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }

  .modal-card,
  .gift-card,
  .badge-reveal-card {
    max-height: min(86vh, 720px);
    overflow: auto;
    border-radius: 24px;
  }

  .gif-grid,
  .gift-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fake-gif {
    min-height: 106px;
  }
}

/* NEXO Social clean redesign */
:root {
  --page: #eef3f8;
  --page-soft: #f6f9fc;
  --ink: #17223a;
  --muted: #69778d;
  --line: #d9e4f0;
  --line-soft: #eaf0f7;
  --panel: #ffffff;
  --panel-soft: #f9fbfe;
  --blue: #245fc5;
  --blue-dark: #153b80;
  --nexo-light: #8fe9ff;
  --nexo-glow: rgba(143, 233, 255, 0.62);
  --soft-shadow: 0 10px 26px rgba(31, 55, 91, 0.08);
  --deep-shadow: 0 18px 44px rgba(34, 78, 142, 0.14);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(25, 224, 189, 0.2), transparent 24rem),
    radial-gradient(circle at 78% 12%, rgba(53, 167, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 50% 86%, rgba(143, 233, 255, 0.18), transparent 34rem),
    linear-gradient(135deg, #eaf7fb 0%, #f4f8fc 48%, #e9f1f8 100%);
}

body::after {
  z-index: -4;
  background:
    radial-gradient(circle, rgba(36, 95, 197, 0.18) 0 2px, transparent 2.6px) 22px 18px / 190px 170px,
    radial-gradient(circle, rgba(25, 224, 189, 0.18) 0 1.6px, transparent 2.4px) 92px 74px / 230px 210px,
    linear-gradient(115deg, transparent 0 24%, rgba(36, 95, 197, 0.08) 24.1%, transparent 24.3% 58%, rgba(25, 224, 189, 0.08) 58.1%, transparent 58.3%),
    linear-gradient(90deg, transparent 0 23%, rgba(255, 255, 255, 0.5) 23% 23.16%, transparent 23.16% 76%, rgba(255, 255, 255, 0.42) 76% 76.16%, transparent 76.16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), transparent 42%);
  opacity: 0.95;
}

.site-shell::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(28deg, transparent 0 32%, rgba(25, 224, 189, 0.12) 32.1%, transparent 32.35%),
    linear-gradient(148deg, transparent 0 18%, rgba(53, 167, 255, 0.12) 18.1%, transparent 18.35%),
    linear-gradient(78deg, transparent 0 62%, rgba(25, 224, 189, 0.1) 62.1%, transparent 62.28%);
  mask-image: linear-gradient(180deg, black, transparent 88%);
  content: "";
  animation: nexoMoleculeDrift 18s ease-in-out infinite alternate;
}

.space-parallax {
  z-index: -3;
  opacity: 0.72;
}

.stars-near,
.stars-far,
.space-grid,
.wire-cube {
  display: none;
}

.space-ribbon {
  width: 46vw;
  height: 68px;
  border: 0;
  opacity: 0.38;
  filter: blur(8px);
  mix-blend-mode: screen;
}

.ribbon-one,
.ribbon-two,
.signal-line {
  background: linear-gradient(90deg, transparent, rgba(143, 233, 255, 0.68), rgba(36, 95, 197, 0.3), transparent);
}

.signal-line {
  height: 2px;
  opacity: 0.44;
  box-shadow: 0 0 18px rgba(143, 233, 255, 0.8);
}

.login-view {
  width: 100%;
  max-width: none;
}

.login-topbar,
.topbar {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.6)),
    linear-gradient(90deg, rgba(36, 95, 197, 0.08), rgba(143, 233, 255, 0.06));
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.login-topbar {
  border-radius: 0 0 12px 12px;
}

.topbar {
  top: 12px;
  border-radius: 12px;
}

.brand span,
.login-topbar strong::before {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(135deg, #1d58bc, #2f83e6 64%, #65dfff);
  box-shadow:
    0 0 0 4px rgba(143, 233, 255, 0.22),
    0 0 22px rgba(143, 233, 255, 0.78),
    0 10px 18px rgba(23, 67, 132, 0.2);
}

.brand {
  color: var(--blue-dark);
  letter-spacing: 0;
}

.main-nav {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #f4f8fd;
  padding: 4px;
}

.main-nav button,
.search-box input {
  border-radius: 999px;
}

.main-nav button.active,
.main-nav button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #337bdc);
  box-shadow: 0 0 22px rgba(143, 233, 255, 0.46);
}

.search-box {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.page-grid {
  max-width: 1180px;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) minmax(220px, 280px);
  gap: 14px;
  padding-top: 92px;
}

.panel,
.community-card,
.post,
.friend-card,
.testimonial-card,
.topic-card,
.suggestion-card,
.discovery-card,
.composer,
.modal-card,
.gift-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.54)),
    radial-gradient(circle at 92% 8%, rgba(143, 233, 255, 0.16), transparent 36%);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
  transform-style: preserve-3d;
}

.panel::before,
.post::before,
.community-card::before {
  position: absolute;
  top: 0;
  right: -36%;
  left: -36%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 233, 255, 0.95), rgba(36, 95, 197, 0.32), transparent);
  transform: translateX(-38%);
  animation: nexoLightSweep 7s ease-in-out infinite;
  content: "";
}

.panel:hover,
.community-card:hover,
.post:hover {
  border-color: rgba(143, 233, 255, 0.72);
  box-shadow:
    var(--deep-shadow),
    0 0 0 1px rgba(143, 233, 255, 0.18),
    0 0 28px rgba(143, 233, 255, 0.2);
  transform: translateY(-2px) perspective(900px) rotateX(0.8deg);
}

.left-column,
.right-column {
  gap: 12px;
}

.center-column {
  gap: 12px;
}

.profile-card {
  text-align: left;
}

.side-profile {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.side-profile .avatar-frame {
  width: 76px;
  height: 76px;
  margin: 0;
  border-radius: 50%;
  place-items: end center;
}

.side-profile .nexo-avatar {
  width: 70px;
  height: 84px;
  transform: translateY(10px);
}

.side-profile .profile-photo {
  height: 76px;
}

.side-profile h2,
.side-profile p {
  min-width: 0;
}

.side-profile h2 {
  font-size: 0.98rem;
}

.side-profile p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.side-profile .profile-stats {
  grid-column: 1 / -1;
}

.avatar-frame,
.profile-hero-avatar {
  border: 1px solid rgba(143, 233, 255, 0.46);
  background:
    radial-gradient(circle at 50% 16%, rgba(143, 233, 255, 0.36), transparent 34%),
    linear-gradient(145deg, #f5fbff, #edf3f8);
  box-shadow: inset 0 0 28px rgba(143, 233, 255, 0.18);
}

.profile-hero-avatar {
  border-radius: 50%;
}

.app-hero,
.profile-hero,
.friends-hero,
.communities-hero,
.community-hero,
.launch-event {
  background:
    radial-gradient(circle at 88% 18%, rgba(143, 233, 255, 0.28), transparent 22%),
    linear-gradient(180deg, #fff, #f9fbfe);
}

.hero-panel h2,
.app-hero h2,
.profile-hero h2,
.friends-hero h2,
.communities-hero h2,
.community-hero h2 {
  color: #13284f;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--blue);
  letter-spacing: 0.02em;
}

.primary-button,
.floating-post,
.composer-actions .primary-button {
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #1d58bc, #2f83e6 64%, #65dfff);
  box-shadow: 0 10px 24px rgba(36, 95, 197, 0.26), 0 0 22px rgba(143, 233, 255, 0.46);
  transform: translateZ(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.primary-button:hover,
.floating-post:hover,
.composer-actions .primary-button:hover {
  filter: saturate(1.1);
  box-shadow:
    0 14px 30px rgba(36, 95, 197, 0.28),
    0 0 18px rgba(143, 233, 255, 0.72),
    0 0 44px rgba(143, 233, 255, 0.3);
  transform: translateY(-1px) translateZ(10px);
}

.secondary-button,
.photo-file-button,
.chip,
.interest-pill,
.topic-chip,
.profile-action-grid button,
.quick-publish button,
.composer-actions button {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #f7faff;
  color: var(--blue-dark);
}

.secondary-button:hover,
.photo-file-button:hover,
.chip:hover,
.interest-pill:hover,
.topic-chip:hover,
.profile-action-grid button:hover,
.quick-publish button:hover {
  border-color: rgba(143, 233, 255, 0.78);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(143, 233, 255, 0.16);
}

.chip.active,
.interest-pill.active,
.segmented button.active,
.bottom-nav button.active span,
.bottom-nav [data-focus-composer] span {
  background: linear-gradient(135deg, var(--blue), #5bccef);
  box-shadow: 0 0 20px rgba(143, 233, 255, 0.54);
}

.quick-publish {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.quick-publish button:first-of-type {
  justify-content: flex-start;
  min-height: 44px;
  border-radius: 999px;
  background: #f6f9fd;
  color: var(--muted);
}

.post,
.community-card,
.friend-card {
  padding: 12px;
}

.profile-edit-shortcut {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
}

.home-communities-panel,
.topic-focus-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at 14% 8%, rgba(25, 224, 189, 0.12), transparent 30%),
    radial-gradient(circle at 90% 60%, rgba(53, 167, 255, 0.12), transparent 34%);
}

.home-community-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.home-community-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(220, 231, 243, 0.9);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  padding: 10px;
  text-align: left;
}

.home-community-card:hover {
  border-color: rgba(143, 233, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(143, 233, 255, 0.14);
}

.home-community-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.home-community-card strong {
  overflow: hidden;
  color: var(--blue-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-community-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.add-community-card i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #6ee8ff);
  box-shadow: 0 0 20px rgba(143, 233, 255, 0.44);
  font-style: normal;
  font-weight: 900;
}

.room-panel .room-item {
  border-color: rgba(143, 233, 255, 0.42);
  background:
    radial-gradient(circle at 92% 20%, rgba(143, 233, 255, 0.24), transparent 28%),
    rgba(255, 255, 255, 0.68);
}

.post-head,
.community-card,
.friend-card {
  gap: 10px;
}

.post-body {
  padding-top: 6px;
}

.community-icon,
.friend-avatar,
.quick-avatar,
.badge,
.post-badge {
  box-shadow: 0 0 0 3px rgba(143, 233, 255, 0.16), 0 8px 18px rgba(31, 55, 91, 0.08);
}

.badge {
  border-radius: 999px;
  background: #f7fbff;
}

.badge-special {
  background: linear-gradient(135deg, rgba(143, 233, 255, 0.18), rgba(255, 255, 255, 0.96));
}

.hero-dashboard div,
.profile-score div,
.community-hero-stats {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.photo-upload-panel {
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 255, 0.94));
}

.cube-panel {
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 20%, rgba(143, 233, 255, 0.24), transparent 30%),
    #fff;
}

.nexo-cube .face {
  border-color: rgba(143, 233, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(22, 77, 174, 0.94), rgba(45, 129, 229, 0.94));
  box-shadow:
    inset 0 0 22px rgba(143, 233, 255, 0.26),
    0 0 24px rgba(36, 95, 197, 0.2),
    0 0 44px rgba(143, 233, 255, 0.36);
}

.cube-scene,
.living-cube-card {
  filter: drop-shadow(0 18px 34px rgba(37, 95, 197, 0.18));
}

.nexo-cube,
.living-cube {
  animation: nexoCubePulse 4.8s ease-in-out infinite;
}

.app-hero::after,
.profile-hero::after,
.community-hero::after,
.launch-event::after {
  position: absolute;
  right: 18px;
  bottom: -42px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 233, 255, 0.5), rgba(143, 233, 255, 0.12) 38%, transparent 68%);
  filter: blur(2px);
  opacity: 0.72;
  transform: translateZ(-1px);
  animation: nexoOrbBreath 5.5s ease-in-out infinite;
  content: "";
}

.profile-card::after,
.side-badges::after,
.avatar-panel::after,
.right-column .panel::after {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8fe9ff;
  box-shadow: 0 0 10px #8fe9ff, 0 0 22px rgba(143, 233, 255, 0.7);
  animation: nexoPresencePulse 2.6s ease-in-out infinite;
  content: "";
}

.bottom-nav {
  border: 1px solid rgba(222, 234, 246, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(31, 55, 91, 0.18);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  border-radius: 14px;
}

.bottom-nav button span {
  border-radius: 12px;
}

@keyframes nexoLightSweep {
  0%,
  56% {
    transform: translateX(-46%);
    opacity: 0;
  }
  68% {
    opacity: 1;
  }
  100% {
    transform: translateX(46%);
    opacity: 0;
  }
}

@keyframes nexoMoleculeDrift {
  from {
    transform: translate3d(-14px, -8px, 0);
    opacity: 0.74;
  }
  to {
    transform: translate3d(14px, 10px, 0);
    opacity: 1;
  }
}

@keyframes nexoCubePulse {
  0%,
  100% {
    filter: drop-shadow(0 0 12px rgba(143, 233, 255, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(143, 233, 255, 0.62));
  }
}

@keyframes nexoOrbBreath {
  0%,
  100% {
    opacity: 0.42;
    transform: translate3d(0, 0, -1px) scale(0.94);
  }
  50% {
    opacity: 0.78;
    transform: translate3d(-10px, -6px, -1px) scale(1.08);
  }
}

@keyframes nexoPresencePulse {
  0%,
  100% {
    opacity: 0.56;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes reactionSpin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes reactionOrbit {
  to {
    transform: rotate(1turn);
  }
}

@keyframes reactionSpark {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.24);
  }
}

@media (max-width: 980px) {
  .page-grid {
    padding-top: 84px;
  }

  .topbar {
    top: 8px;
    border-radius: 16px;
  }

  .side-profile {
    grid-template-columns: 74px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at 18% 0%, rgba(143, 233, 255, 0.28), transparent 28%),
      linear-gradient(180deg, #edf3f8, #f9fbfd);
  }

  .login-topbar,
  .topbar {
    margin-inline: 10px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .search-box {
    display: none;
  }

  .panel,
  .community-card,
  .post,
  .friend-card,
  .testimonial-card,
  .topic-card,
  .suggestion-card {
    border-radius: 14px;
  }

  .profile-action-grid,
  .hero-dashboard,
  .profile-score {
    grid-template-columns: 1fr;
  }

  .quick-publish {
    grid-template-columns: auto 1fr;
  }

  .quick-publish button:last-child {
    grid-column: 1 / -1;
  }

  .home-community-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 3px;
    scroll-snap-type: x mandatory;
  }

  .home-community-card {
    min-width: 235px;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel::before,
  .post::before,
  .community-card::before,
  .nexo-cube,
  .living-cube,
  .fake-gif::before,
  .gif-orbit,
  .gif-spark,
  .app-hero::after,
  .profile-hero::after,
  .community-hero::after,
  .launch-event::after,
  .profile-card::after,
  .side-badges::after,
  .avatar-panel::after,
  .right-column .panel::after {
    animation: none !important;
  }
}

.watch-side-panel {
  padding: 8px;
}

.watch-side-card {
  display: grid;
  position: relative;
  width: 100%;
  min-height: 128px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--watch-a) 70%, transparent);
  border-radius: 12px;
  padding: 14px;
  color: #f2fffc;
  background:
    radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--watch-b) 60%, transparent), transparent 32%),
    linear-gradient(145deg, rgba(6, 23, 31, 0.74), rgba(6, 23, 31, 0.96));
  text-align: left;
  box-shadow: inset 0 0 26px color-mix(in srgb, var(--watch-a) 18%, transparent);
}

.watch-side-card span,
.watch-side-card strong,
.watch-side-card small {
  position: relative;
  z-index: 1;
}

.watch-side-card span {
  max-width: 90px;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.05;
}

.watch-side-card strong {
  align-self: end;
  margin-top: 26px;
  font-size: 0.84rem;
}

.watch-side-card small,
.live-badge,
.watch-thumb i {
  display: inline-grid;
  width: max-content;
  border-radius: 5px;
  padding: 3px 6px;
  color: #fff;
  background: #d82335;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
}

.watch-side-card i {
  display: grid;
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--watch-a) 76%, transparent);
  border-radius: 50%;
  color: #04121b;
  background: linear-gradient(135deg, var(--watch-a), var(--watch-b));
  font-size: 0;
  font-style: normal;
}

.watch-side-card i::before {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
  margin-left: 2px;
  content: "";
}

.watch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.watch-hero h2 {
  margin: 4px 0 8px;
  color: #f2fffc;
  font-size: 1.55rem;
}

.watch-hero p:last-child,
.watch-note-panel p,
.watch-room-info p {
  color: var(--muted);
  line-height: 1.45;
}

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

.watch-room-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--watch-a) 38%, transparent);
  border-radius: 12px;
  padding: 9px;
  color: #f2fffc;
  background: rgba(4, 18, 26, 0.42);
  text-align: left;
}

.watch-room-card strong,
.watch-room-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-room-card small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.watch-room-card em {
  color: var(--nexo-light);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.watch-thumb {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  border-radius: 10px;
}

.watch-thumb::after,
.watch-mini-thumb::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.48));
  content: "";
}

.watch-thumb i {
  position: absolute;
  top: 8px;
  left: 8px;
}

.watch-session {
  display: grid;
  gap: 10px;
}

.watch-session-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.watch-session-head h2 {
  overflow: hidden;
  color: #f2fffc;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-session-head > span {
  border-radius: 999px;
  padding: 6px 8px;
  color: #f2fffc;
  background: rgba(0, 0, 0, 0.32);
  font-size: 0.74rem;
  font-weight: 900;
}

.watch-player {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--watch-a) 45%, transparent);
  border-radius: 12px;
  background: #02070a;
  aspect-ratio: 16 / 9;
}

.watch-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.persistent-watch-player {
  z-index: 32;
  border: 1px solid color-mix(in srgb, var(--watch-a) 45%, transparent);
  color: #f2fffc;
  background:
    linear-gradient(180deg, rgba(6, 23, 31, 0.94), rgba(6, 23, 31, 0.82)),
    radial-gradient(circle at 96% 12%, color-mix(in srgb, var(--watch-b) 32%, transparent), transparent 34%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), 0 0 22px color-mix(in srgb, var(--watch-a) 22%, transparent);
  backdrop-filter: blur(18px);
}

.persistent-watch-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.persistent-watch-player.is-full {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: #02070a;
  box-shadow: none;
}

.persistent-watch-player.is-full .persistent-watch-frame {
  width: 100%;
  height: 100%;
}

.persistent-watch-player.is-full .persistent-watch-info,
.persistent-watch-player.is-full [data-return-watch],
.persistent-watch-player.is-full [data-close-watch] {
  display: none;
}

.persistent-watch-player.is-mini {
  position: fixed;
  right: 16px;
  bottom: 92px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: min(520px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 12px;
  padding: 8px;
}

.persistent-watch-player.is-mini .persistent-watch-frame {
  width: 132px;
  overflow: hidden;
  border-radius: 9px;
  background: #02070a;
  aspect-ratio: 16 / 9;
}

.persistent-watch-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.persistent-watch-info strong,
.persistent-watch-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.persistent-watch-info span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.watch-player-fallback {
  display: grid;
  height: 100%;
  place-items: center;
  gap: 6px;
  text-align: center;
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.watch-room-info {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.watch-mini-thumb {
  position: relative;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 10px;
}

.watch-room-info strong {
  display: block;
  overflow: hidden;
  color: #f2fffc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-chat {
  display: grid;
  gap: 10px;
}

.watch-presence-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.watch-presence-line .friend-avatar {
  width: 28px;
  height: 28px;
  margin-right: -12px;
}

.watch-presence-line span {
  margin-left: 12px;
}

.watch-chat-list {
  display: grid;
  gap: 6px;
}

.watch-message {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  border-radius: 10px;
  padding: 8px;
  background: rgba(4, 18, 26, 0.34);
}

.watch-message .friend-avatar {
  width: 34px;
  height: 34px;
}

.watch-message p {
  margin-top: 2px;
  color: #dffffa;
  font-size: 0.88rem;
}

.watch-message time {
  color: var(--muted);
  font-size: 0.7rem;
}

.watch-system {
  border-radius: 9px;
  padding: 7px 10px;
  color: var(--nexo-light);
  background: rgba(25, 224, 189, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.watch-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.watch-comment-form input {
  min-width: 0;
  border: 1px solid rgba(114, 255, 231, 0.16);
  border-radius: 999px;
  padding: 10px 12px;
  color: #f2fffc;
  background: rgba(4, 18, 26, 0.48);
}

.watch-comment-form input::placeholder {
  color: rgba(223, 255, 250, 0.56);
}

.watch-chat .real-gif,
.watch-message .real-gif {
  max-width: 210px;
  margin-top: 8px;
}

@media (max-width: 720px) {
  body[data-route="home"] .page-grid {
    grid-template-columns: minmax(0, 1fr) 118px !important;
    align-items: start;
    gap: 8px;
    padding-right: 8px;
    padding-left: 8px;
  }

  body[data-route="home"] .center-column {
    grid-column: 1;
    order: 1;
  }

  body[data-route="home"] .right-column {
    grid-column: 2;
    order: 2;
    gap: 8px;
    width: 118px;
    min-width: 0;
    overflow: hidden;
  }

  body[data-route="home"] .left-column {
    display: none;
  }

  body[data-route="home"] .right-column .panel {
    border-radius: 10px;
    padding: 8px;
    min-width: 0;
    overflow: hidden;
  }

  body[data-route="home"] .right-column .panel-title {
    display: grid;
    gap: 2px;
    margin-bottom: 7px;
    padding-bottom: 6px;
  }

  body[data-route="home"] .right-column .panel-title h2 {
    font-size: 0.74rem;
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-route="home"] .right-column .panel-title span {
    font-size: 0.66rem;
  }

  body[data-route="home"] .right-column .community-item,
  body[data-route="home"] .right-column .room-item {
    min-height: auto;
    border-radius: 9px;
    padding: 8px;
  }

  body[data-route="home"] .right-column .community-item strong,
  body[data-route="home"] .right-column .room-item strong {
    display: block;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-route="home"] .right-column .community-item span,
  body[data-route="home"] .right-column .room-item span {
    display: block;
    overflow: hidden;
    font-size: 0.64rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-route="home"] .friend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body[data-route="home"] .friend-grid button {
    min-width: 0;
    padding: 5px 2px;
  }

  body[data-route="home"] .friend-grid .friend-avatar {
    width: 28px;
    height: 28px;
  }

  body[data-route="home"] .friend-grid span {
    overflow: hidden;
    width: 100%;
    font-size: 0.62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-route="home"] .moderation-panel {
    display: none;
  }

  body[data-route="home"] .watch-side-card {
    min-height: 112px;
    border-radius: 10px;
    padding: 10px;
  }

  body[data-route="home"] .watch-side-card span {
    max-width: 82px;
    font-size: 0.98rem;
  }

  body[data-route="home"] .watch-side-card strong {
    margin-top: 18px;
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-route="home"] .watch-side-card small {
    font-size: 0.56rem;
  }

  body[data-route="home"] .watch-side-card i {
    width: 28px;
    height: 28px;
    right: 8px;
    bottom: 8px;
  }

  body[data-route="home"] .quick-publish {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
  }

  body[data-route="home"] .quick-avatar {
    width: 36px;
    height: 36px;
    overflow: hidden;
  }

  body[data-route="home"] .quick-avatar .nexo-avatar {
    width: 44px;
    height: 54px;
  }

  body[data-route="home"] .quick-publish button:first-of-type {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.78rem;
    line-height: 1.15;
  }

  body[data-route="home"] .quick-publish button:last-child {
    grid-column: 1 / -1;
    min-height: 34px;
    font-size: 0.76rem;
  }

  body[data-route="home"] .composer textarea {
    min-height: 76px;
  }

  body[data-route="home"] .panel-title h2 {
    font-size: 0.92rem;
  }

  body[data-route="home"] .home-community-strip {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  body[data-route="home"] .home-community-card {
    min-width: 0;
    padding: 8px;
  }

  body[data-route="home"] .home-community-card:nth-child(n+4) {
    display: none;
  }
}

@media (max-width: 380px) {
  body[data-route="home"] .page-grid {
    grid-template-columns: minmax(0, 1fr) 104px !important;
    gap: 7px;
  }

  body[data-route="home"] .right-column {
    width: 104px;
  }

  body[data-route="home"] .right-column .panel {
    padding: 7px;
  }

  body[data-route="home"] .right-column .panel-title h2 {
    font-size: 0.68rem;
  }

  body[data-route="home"] .watch-side-card span {
    font-size: 0.86rem;
  }
}

@media (max-width: 720px) {
  .watch-hero,
  .watch-session-head,
  .watch-room-info {
    grid-template-columns: 1fr;
  }

  .watch-room-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .watch-room-card {
    min-width: min(74vw, 260px);
    scroll-snap-align: start;
  }

  .watch-thumb {
    min-height: 104px;
  }

  .watch-session-head > span {
    width: max-content;
  }

  .watch-chat {
    margin-bottom: 4px;
  }

  .watch-message {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .watch-message .friend-avatar {
    width: 30px;
    height: 30px;
  }

  .watch-comment-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .watch-comment-form .primary-button,
  .watch-comment-form .secondary-button {
    min-width: 0;
    padding-inline: 8px;
  }

  .persistent-watch-player.is-mini {
    right: 10px;
    bottom: 84px;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 8px;
    width: calc(100vw - 20px);
    padding: 7px;
  }

  .persistent-watch-player.is-mini .persistent-watch-frame {
    width: 96px;
  }

  .persistent-watch-player.is-mini [data-return-watch] {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.76rem;
  }

  .persistent-watch-player.is-mini [data-close-watch] {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.72rem;
  }

  .persistent-watch-info strong {
    max-width: calc(100vw - 226px);
    font-size: 0.82rem;
  }

  .persistent-watch-info span {
    font-size: 0.68rem;
  }
}
