:root {
  --bg: #05070d;
  --bg-soft: #090d16;
  --panel: rgba(12, 17, 29, 0.84);
  --panel-strong: rgba(13, 19, 34, 0.96);
  --panel-muted: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.095);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --text-soft: #d3d9e6;
  --muted: #9da7bb;
  --muted-2: #77839a;
  --accent: #79d5ff;
  --accent-2: #4ca6ff;
  --accent-3: #b9f2ff;
  --gold: #ffcc7b;
  --gold-2: #ffad54;
  --green: #73e39a;
  --red: #ff818b;
  --violet: #b79cff;
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.48);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.34);
  --shadow-sm: 0 10px 25px rgba(0, 0, 0, 0.22);
  --radius-2xl: 38px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shell: min(1240px, calc(100vw - 48px));
  --ease: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 4%, rgba(107, 202, 255, 0.14), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(253, 185, 91, 0.11), transparent 26%),
    radial-gradient(circle at 56% 100%, rgba(120, 109, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #060811 0%, #05070d 48%, #04060c 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: #06111b;
  background: rgba(121, 213, 255, 0.82);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ambient,
.grid-noise {
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.ambient {
  width: 680px;
  height: 680px;
  border-radius: 999px;
  filter: blur(84px);
  opacity: 0.42;
}

.ambient-one {
  top: -340px;
  left: -220px;
  background: rgba(77, 174, 255, 0.34);
}

.ambient-two {
  top: -320px;
  right: -260px;
  background: rgba(255, 187, 96, 0.24);
}

.ambient-three {
  bottom: -400px;
  right: 8%;
  background: rgba(145, 113, 255, 0.2);
}

.grid-noise {
  inset: 0;
  opacity: 0.58;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, black 12%, transparent 74%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 18px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.92), rgba(5, 7, 13, 0.68));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 42px rgba(0, 0, 0, 0.32);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.brand:hover .brand-mark {
  transform: translateY(-2px) rotate(-1deg);
  border-color: rgba(121, 213, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(121, 213, 255, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-copy em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  white-space: nowrap;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.nav-links a {
  padding: 11px 15px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color var(--ease), background var(--ease), transform var(--ease), border-color var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.nav-actions,
.hero-actions,
.community-actions,
.dashboard-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.01em;
  background: transparent;
  transition:
    transform var(--ease),
    border-color var(--ease),
    background var(--ease),
    box-shadow var(--ease),
    opacity var(--ease),
    color var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.button-primary {
  color: #06111b;
  border-color: rgba(168, 231, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(185, 242, 255, 0.98), rgba(121, 213, 255, 0.98) 46%, rgba(76, 166, 255, 0.98));
  box-shadow:
    0 18px 42px rgba(61, 167, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.button-primary:hover {
  box-shadow:
    0 22px 56px rgba(61, 167, 255, 0.32),
    0 0 0 1px rgba(185, 242, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: rgba(121, 213, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost {
  color: var(--text-soft);
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.025);
}

.button-large {
  min-height: 62px;
  padding-inline: 22px;
  border-radius: 20px;
  font-size: 1rem;
}

.button-small {
  min-height: 42px;
  padding-inline: 14px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.button-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #06111b;
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.84rem;
}

.hero {
  min-height: calc(100vh - 114px);
  padding: 78px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
  align-items: center;
  gap: 56px;
}

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

.eyebrow-pill,
.result-pill,
.chip,
.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(121, 213, 255, 0.18);
  color: #def6ff;
  background: rgba(121, 213, 255, 0.08);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(115, 227, 154, 0.54);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(115, 227, 154, 0.55), 0 0 14px rgba(115, 227, 154, 0.35);
  }
  70% {
    box-shadow: 0 0 0 11px rgba(115, 227, 154, 0), 0 0 20px rgba(115, 227, 154, 0.28);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(115, 227, 154, 0), 0 0 14px rgba(115, 227, 154, 0.35);
  }
}

.hero h1,
.portal-copy h1,
.login-card h1,
.dashboard-top h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  max-width: 11ch;
}

.hero h1 span {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #d7f6ff 36%, #86d8ff 76%, #ffcf88 118%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead,
.portal-copy p,
.login-card p,
.dashboard-top p,
.section-head p,
.statement-card p,
.community-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.82;
}

.hero-lead {
  max-width: 62ch;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 4px;
}

.metric-card,
.glass-mini,
.statement-card,
.post-card,
.portal-stat-card,
.filter-panel,
.timeline-card,
.login-card,
.admin-card,
.metric-strip-card,
.community-band {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    var(--shadow-sm);
}

.metric-card {
  min-height: 154px;
  padding: 20px;
  border-radius: var(--radius-lg);
  display: grid;
  align-content: start;
  gap: 11px;
}

.metric-card strong,
.glass-mini strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.metric-card span,
.glass-mini p,
.stage-card p,
.post-card p,
.timeline-card p,
.portal-stat-card p,
.preview-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.hero-stage {
  min-height: 690px;
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(circle at 20% 18%, rgba(121, 213, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(255, 204, 123, 0.14), transparent 24%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(7, 11, 21, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow-lg);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.036) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 46% 45%, black 14%, transparent 78%);
  opacity: 0.55;
}

.stage-halo {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -86px;
  border-radius: 999px;
  background: rgba(121, 213, 255, 0.14);
  filter: blur(24px);
}

.stage-card,
.stage-grid,
.route-lines {
  position: relative;
  z-index: 1;
}

.stage-card {
  border-radius: 30px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 23, 0.86);
  box-shadow: var(--shadow-md);
}

.card-topline,
.feed-head,
.split-head,
.admin-card-head,
.dashboard-top,
.footer-shell,
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.muted-label,
.mini-kicker,
.section-kicker,
.portal-stat-card span,
.metric-strip-card span,
.field-shell > span,
.preview-post .preview-label {
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 900;
}

.chip-live {
  color: #d8ffe5;
  border-color: rgba(115, 227, 154, 0.24);
  background: rgba(115, 227, 154, 0.1);
}

.stage-card h2,
.section-head h2,
.statement-card h2,
.community-copy h2,
.feed-head h2,
.admin-card h2 {
  margin: 18px 0 12px;
  letter-spacing: -0.045em;
  line-height: 1.08;
  font-size: clamp(1.8rem, 3.5vw, 3.1rem);
}

.stage-card p {
  font-size: 1rem;
  max-width: 42ch;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--accent-3);
  font-weight: 900;
  transition: transform var(--ease), color var(--ease);
}

.inline-link:hover {
  transform: translateX(3px);
  color: #ffffff;
}

.stage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.glass-mini {
  min-height: 188px;
  padding: 22px;
  border-radius: var(--radius-lg);
  display: grid;
  align-content: start;
  gap: 12px;
}

.glass-mini strong {
  font-size: 1.16rem;
  line-height: 1.28;
}

.accent-mini {
  background:
    linear-gradient(145deg, rgba(255, 204, 123, 0.14), rgba(255, 255, 255, 0.025)),
    var(--panel);
}

.route-lines {
  min-height: 182px;
  margin-top: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(121, 213, 255, 0.08), rgba(255, 204, 123, 0.045)),
    rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.route-lines span {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(121, 213, 255, 0.92), rgba(255, 204, 123, 0.86), transparent);
  filter: drop-shadow(0 0 12px rgba(121, 213, 255, 0.4));
}

.route-lines span:nth-child(1) {
  width: 92%;
  left: 4%;
  top: 42px;
  transform: rotate(-8deg);
}

.route-lines span:nth-child(2) {
  width: 84%;
  left: 8%;
  top: 90px;
  transform: rotate(7deg);
}

.route-lines span:nth-child(3) {
  width: 72%;
  left: 14%;
  top: 136px;
  transform: rotate(-4deg);
}

.statement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 96px;
}

.statement-card {
  min-height: 250px;
  padding: 26px;
  border-radius: var(--radius-xl);
  display: grid;
  align-content: start;
  gap: 14px;
}

.statement-wide {
  grid-column: span 2;
  min-height: 330px;
  padding: 34px;
  background:
    radial-gradient(circle at 10% 20%, rgba(121, 213, 255, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    var(--panel);
}

.statement-card h2 {
  margin: 0;
  max-width: 16ch;
}

.statement-card h3 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  font-size: 1.34rem;
}

.updates-preview {
  padding: 0 0 96px;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2,
.feed-head h2 {
  margin: 10px 0 8px;
}

.split-head {
  align-items: flex-end;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  min-height: 310px;
  padding: 24px;
  border-radius: var(--radius-xl);
  display: grid;
  align-content: start;
  gap: 16px;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.post-card:hover,
.timeline-card:hover,
.admin-post-row:hover {
  transform: translateY(-3px);
  border-color: rgba(121, 213, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 22px 54px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(121, 213, 255, 0.06);
}

.post-card h3,
.timeline-card h3,
.preview-post h3,
.admin-post-row h3 {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  min-height: 32px;
  padding-inline: 12px;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.76rem;
}

.tag-update {
  color: #dcf6ff;
  border-color: rgba(121, 213, 255, 0.2);
  background: rgba(121, 213, 255, 0.085);
}

.tag-bugfix {
  color: #d9ffe6;
  border-color: rgba(115, 227, 154, 0.22);
  background: rgba(115, 227, 154, 0.09);
}

.tag-announcement {
  color: #fff0d4;
  border-color: rgba(255, 204, 123, 0.24);
  background: rgba(255, 204, 123, 0.1);
}

.tag-issue {
  color: #ffe1e5;
  border-color: rgba(255, 129, 139, 0.24);
  background: rgba(255, 129, 139, 0.09);
}

.tag-pinned {
  color: #efe7ff;
  border-color: rgba(183, 156, 255, 0.26);
  background: rgba(183, 156, 255, 0.11);
}

.post-meta,
.timeline-meta,
.dialog-head p,
.admin-post-meta {
  color: var(--muted-2);
  font-size: 0.92rem;
  font-weight: 700;
}

.post-card .inline-link,
.timeline-card .inline-link {
  margin-top: auto;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  color: var(--muted);
}

.post-skeleton,
.timeline-skeleton {
  overflow: hidden;
  position: relative;
}

.post-skeleton::before,
.timeline-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  animation: skeleton-shine 1.45s infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.post-skeleton span,
.timeline-skeleton span {
  display: block;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.post-skeleton span:nth-child(1),
.timeline-skeleton span:nth-child(1) {
  width: 32%;
}

.post-skeleton span:nth-child(2),
.timeline-skeleton span:nth-child(2) {
  width: 78%;
  height: 28px;
}

.post-skeleton span:nth-child(3),
.timeline-skeleton span:nth-child(3) {
  width: 92%;
}

@keyframes skeleton-shine {
  100% {
    transform: translateX(100%);
  }
}

.community-band {
  margin-bottom: 96px;
  padding: 34px;
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background:
    radial-gradient(circle at 12% 50%, rgba(121, 213, 255, 0.16), transparent 26%),
    radial-gradient(circle at 88% 20%, rgba(255, 204, 123, 0.12), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    var(--panel);
}

.community-copy {
  max-width: 760px;
}

.community-copy h2 {
  margin: 10px 0 12px;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 0 44px;
}

.footer-shell {
  min-height: 94px;
  padding: 24px 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.footer-shell > div:first-child {
  display: grid;
  gap: 6px;
}

.footer-shell strong {
  font-size: 1rem;
}

.footer-shell span {
  color: var(--muted);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--text-soft);
  font-weight: 800;
}

.footer-links a {
  transition: color var(--ease), transform var(--ease);
}

.footer-links a:hover {
  color: var(--accent-3);
  transform: translateY(-1px);
}

/* Updates */
.portal-hero {
  min-height: 460px;
  padding: 84px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 34px;
}

.portal-copy {
  display: grid;
  gap: 20px;
}

.portal-copy h1 {
  max-width: none;
  font-size: clamp(3.2rem, 7vw, 6.1rem);
}

.portal-copy p {
  max-width: 72ch;
}

.portal-stat-card {
  min-height: 240px;
  border-radius: var(--radius-xl);
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at 18% 22%, rgba(121, 213, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    var(--panel);
}

.portal-stat-card strong {
  font-size: 4rem;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.filter-panel {
  border-radius: var(--radius-xl);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.search-shell {
  flex: 1 1 420px;
}

.search-shell input,
.manager-search input,
.field-shell input,
.field-shell textarea,
.field-shell select {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  outline: none;
  padding: 0 18px;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.search-shell input:focus,
.manager-search input:focus,
.field-shell input:focus,
.field-shell textarea:focus,
.field-shell select:focus {
  border-color: rgba(121, 213, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(121, 213, 255, 0.11);
  background: rgba(255, 255, 255, 0.065);
}

input::placeholder,
textarea::placeholder {
  color: rgba(211, 217, 230, 0.48);
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 900;
  color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: color var(--ease), border-color var(--ease), background var(--ease), transform var(--ease);
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  border-color: rgba(121, 213, 255, 0.34);
  background: rgba(121, 213, 255, 0.11);
}

.filter-chip:hover {
  transform: translateY(-1px);
}

.portal-feed {
  padding: 0 0 96px;
}

.feed-head {
  margin-bottom: 20px;
}

.feed-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.timeline-feed {
  display: grid;
  gap: 18px;
}

.timeline-card {
  position: relative;
  min-height: 252px;
  padding: 26px;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.timeline-copy {
  display: grid;
  gap: 14px;
}

.timeline-card h3 {
  font-size: clamp(1.48rem, 2.5vw, 2rem);
}

.timeline-side {
  min-width: 188px;
  display: grid;
  justify-items: end;
  align-content: space-between;
  gap: 18px;
  height: 100%;
}

.timeline-date {
  display: grid;
  gap: 4px;
  min-width: 152px;
  padding: 16px;
  border-radius: 18px;
  text-align: right;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
}

.timeline-date strong {
  font-size: 1rem;
}

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

.post-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(86vh, 980px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(121, 213, 255, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    #0a0f1c;
  box-shadow: var(--shadow-lg);
}

.post-dialog::backdrop {
  background: rgba(2, 4, 9, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dialog-shell {
  position: relative;
  max-height: min(86vh, 980px);
  overflow: auto;
  padding: 38px;
}

.dialog-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  cursor: pointer;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.055);
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}

.dialog-close:hover {
  transform: translateY(-2px);
  border-color: rgba(121, 213, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.dialog-head {
  padding-right: 72px;
  display: grid;
  gap: 16px;
}

.dialog-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.dialog-content,
.preview-content {
  margin-top: 28px;
  color: var(--text-soft);
  line-height: 1.84;
  font-size: 1.04rem;
  white-space: pre-wrap;
}

/* Admin */
.admin-header {
  position: relative;
}

.admin-main {
  padding: 72px 0 96px;
}

.login-panel {
  min-height: calc(100vh - 280px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(650px, 100%);
  padding: 42px;
  border-radius: var(--radius-2xl);
  display: grid;
  gap: 20px;
  background:
    radial-gradient(circle at 15% 16%, rgba(121, 213, 255, 0.17), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    var(--panel-strong);
}

.login-card h1 {
  max-width: none;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.stack-form,
.post-form {
  display: grid;
  gap: 18px;
}

.field-shell {
  display: grid;
  gap: 10px;
}

.field-shell textarea {
  min-height: 230px;
  padding: 18px;
  resize: vertical;
  line-height: 1.7;
}

.field-shell select {
  appearance: none;
  cursor: pointer;
}

.notice {
  display: none;
  min-height: 54px;
  padding: 15px 17px;
  border-radius: 18px;
  line-height: 1.55;
  font-weight: 800;
  border: 1px solid transparent;
}

.notice.show {
  display: block;
}

.notice.success {
  color: #dbffe6;
  border-color: rgba(115, 227, 154, 0.22);
  background: rgba(115, 227, 154, 0.1);
}

.notice.error {
  color: #ffe0e4;
  border-color: rgba(255, 129, 139, 0.25);
  background: rgba(255, 129, 139, 0.1);
}

.dashboard {
  display: grid;
  gap: 28px;
}

.dashboard-top {
  align-items: flex-end;
}

.dashboard-top h1 {
  max-width: none;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.dashboard-top p {
  max-width: 78ch;
  margin-top: 12px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-strip-card {
  min-height: 150px;
  padding: 24px;
  border-radius: var(--radius-xl);
  display: grid;
  align-content: center;
  gap: 12px;
}

.metric-strip-card strong {
  font-size: 3.2rem;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 20px;
}

.admin-card {
  border-radius: var(--radius-2xl);
  padding: 28px;
}

.admin-card h2 {
  margin: 8px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.editor-card,
.preview-card {
  min-height: 780px;
}

.field-grid-two {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 16px;
}

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

.toggle-card {
  min-height: 94px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.toggle-card:hover {
  transform: translateY(-1px);
  border-color: rgba(121, 213, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.toggle-card input {
  margin-top: 4px;
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.toggle-card span {
  display: grid;
  gap: 5px;
}

.toggle-card strong {
  font-size: 1rem;
}

.toggle-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.preview-card {
  display: grid;
  align-content: start;
}

.preview-post {
  margin-top: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(circle at 16% 16%, rgba(121, 213, 255, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.04);
  padding: 26px;
}

.preview-post h3 {
  margin-top: 18px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.preview-summary {
  margin-top: 14px;
}

.preview-content {
  min-height: 180px;
  padding-top: 10px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.manager-card {
  padding-top: 30px;
}

.manager-search {
  width: min(360px, 100%);
}

.admin-post-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.admin-post-row {
  min-height: 156px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.admin-post-content {
  display: grid;
  gap: 12px;
}

.admin-post-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-row-actions {
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 10px;
  min-width: 140px;
}

.danger-button {
  color: #ffe0e4;
  border-color: rgba(255, 129, 139, 0.22);
  background: rgba(255, 129, 139, 0.08);
}

.danger-button:hover {
  border-color: rgba(255, 129, 139, 0.42);
  background: rgba(255, 129, 139, 0.14);
}

.admin-footer {
  padding-bottom: 48px;
}

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

@media (max-width: 1180px) {
  :root {
    --shell: min(1240px, calc(100vw - 32px));
  }

  .nav-shell {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 62px;
  }

  .hero-stage {
    min-height: 610px;
  }

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

  .post-grid {
    grid-template-columns: 1fr;
  }

  .portal-hero {
    grid-template-columns: 1fr;
  }

  .portal-stat-card {
    max-width: 420px;
  }

  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-row {
    justify-content: flex-start;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .preview-card,
  .editor-card {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .hero-metrics,
  .metric-strip,
  .toggle-row,
  .stage-grid {
    grid-template-columns: 1fr;
  }

  .statement-wide {
    grid-column: auto;
  }

  .community-band,
  .dashboard-top,
  .split-head,
  .footer-shell,
  .feed-head,
  .list-head,
  .admin-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-card,
  .admin-post-row {
    grid-template-columns: 1fr;
  }

  .timeline-side,
  .admin-row-actions {
    justify-items: start;
    min-width: 0;
  }

  .timeline-date {
    text-align: left;
  }

  .field-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100vw - 22px);
  }

  .site-header {
    padding: 12px 0;
  }

  .nav-shell {
    min-height: 0;
    gap: 14px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy em {
    font-size: 0.78rem;
  }

  .nav-actions,
  .hero-actions,
  .community-actions,
  .dashboard-actions,
  .form-actions,
  .admin-nav-actions {
    width: 100%;
  }

  .nav-actions .button,
  .hero-actions .button,
  .community-actions .button,
  .dashboard-actions .button,
  .form-actions .button,
  .admin-nav-actions .button {
    width: 100%;
  }

  .nav-links {
    padding: 6px;
    gap: 4px;
  }

  .nav-links a {
    min-width: fit-content;
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .hero {
    gap: 30px;
    padding: 42px 0 68px;
  }

  .hero h1,
  .portal-copy h1,
  .login-card h1,
  .dashboard-top h1 {
    font-size: clamp(2.55rem, 12vw, 4.3rem);
  }

  .hero-lead,
  .portal-copy p,
  .login-card p,
  .dashboard-top p,
  .section-head p,
  .statement-card p,
  .community-copy p {
    font-size: 1rem;
    line-height: 1.72;
  }

  .hero-stage,
  .stage-card,
  .statement-wide,
  .community-band,
  .login-card,
  .admin-card {
    padding: 22px;
  }

  .hero-stage {
    min-height: auto;
  }

  .route-lines {
    min-height: 140px;
  }

  .statement-grid,
  .updates-preview,
  .portal-feed {
    padding-bottom: 68px;
  }

  .statement-grid {
    grid-template-columns: 1fr;
  }

  .statement-card,
  .post-card,
  .timeline-card,
  .portal-stat-card,
  .metric-strip-card {
    padding: 20px;
  }

  .portal-hero {
    min-height: 0;
    padding: 48px 0 28px;
  }

  .filter-panel {
    padding: 14px;
  }

  .filter-row {
    width: 100%;
  }

  .filter-chip {
    flex: 1 1 calc(50% - 8px);
  }

  .timeline-side {
    gap: 14px;
  }

  .dialog-shell {
    padding: 24px;
  }

  .dialog-head {
    padding-right: 0;
    padding-top: 54px;
  }

  .dialog-close {
    top: 18px;
    right: 18px;
  }

  .admin-main {
    padding: 44px 0 72px;
  }

  .login-panel {
    min-height: 0;
  }

  .field-shell textarea {
    min-height: 210px;
  }

  .footer-shell {
    padding: 22px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

/* Roblox live stats panel */
.roblox-live-panel {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(circle at 14% 12%, rgba(121, 213, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(8, 12, 23, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 46px rgba(0, 0, 0, 0.28);
}

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

.roblox-live-head > div {
  display: grid;
  gap: 7px;
}

.roblox-live-head strong {
  font-size: 1.16rem;
  letter-spacing: -0.025em;
}

.refresh-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(121, 213, 255, 0.18);
  color: var(--accent-3);
  background: rgba(121, 213, 255, 0.075);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.roblox-stat {
  min-height: 116px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.028);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  display: grid;
  align-content: start;
  gap: 9px;
}

.roblox-stat span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.roblox-stat strong {
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.roblox-stat em {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.4;
}

.roblox-stat-members {
  background:
    radial-gradient(circle at 90% 10%, rgba(115, 227, 154, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(115, 227, 154, 0.08), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.028);
}

.member-delta {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem !important;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.member-delta.is-positive {
  color: #bdf7d1;
  border-color: rgba(115, 227, 154, 0.24);
  background: rgba(115, 227, 154, 0.1);
}

.member-delta.is-negative {
  color: #ffd0d4;
  border-color: rgba(255, 129, 139, 0.24);
  background: rgba(255, 129, 139, 0.1);
}

.member-delta.is-neutral {
  color: var(--text-soft);
}

.roblox-live-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .roblox-live-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .roblox-live-panel {
    padding: 20px;
  }

  .roblox-stat-grid {
    grid-template-columns: 1fr;
  }

  .roblox-stat {
    min-height: 104px;
  }
}

.mini-stat-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-3);
  font-size: 0.86rem;
  font-weight: 800;
  transition: transform var(--ease), color var(--ease);
}

.mini-stat-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.mini-stat-link b {
  font-size: 0.92rem;
}
