:root {
  color-scheme: dark;
  --bg: #050814;
  --panel: rgba(10, 16, 32, 0.72);
  --panel-2: rgba(68, 94, 142, 0.22);
  --line: rgba(186, 218, 255, 0.2);
  --text: #f7fbff;
  --muted: rgba(219, 233, 255, 0.78);
  --ink: #09111f;
  --gold: #ffd98a;
  --teal: #7ff7ff;
  --coral: #ff8fba;
  --green: #a7ffcb;
  --danger: #ff7f9a;
  --violet: #a98cff;
  --blue: #74b9ff;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.48), 0 0 46px rgba(116, 185, 255, 0.12);
  --soft-shadow: 0 16px 48px rgba(0, 0, 0, 0.38), 0 0 26px rgba(127, 247, 255, 0.1);
  --sky-bg: url("https://image.thatskygame.com/cdn-cgi/image/w%3D1280%2Cf%3Dauto%2Cq%3D80/https%3A//a.storyblok.com/f/108104/1009x1042/59839fa38b/guide-bg.jpeg");
  --clouds: url("https://www.thatskygame.com/images/splash-clouds.png");
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 18%, rgba(116, 185, 255, 0.22), transparent 32vw),
    radial-gradient(circle at 82% 12%, rgba(255, 143, 186, 0.14), transparent 28vw),
    linear-gradient(180deg, rgba(4, 7, 17, 0.84), rgba(5, 8, 20, 0.94) 56%, #02040a),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 5, 12, 0.28), rgba(2, 5, 12, 0.9)),
    var(--sky-bg) center 18% / cover no-repeat,
    var(--bg);
  pointer-events: none;
}

.site-backdrop-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  filter: saturate(1.15) contrast(1.08) brightness(0.72);
}

body.cloud-gate-active {
  overflow-x: hidden;
}

body.cloud-gate-active:not(.site-ready) .landing,
body.cloud-gate-active:not(.site-ready) .shell {
  opacity: 0;
  visibility: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 8%, rgba(127, 247, 255, 0.18), transparent 30vw),
    radial-gradient(circle at 78% 76%, rgba(255, 217, 138, 0.14), transparent 28vw),
    var(--clouds) center bottom / min(1200px, 135vw) auto no-repeat,
    linear-gradient(180deg, rgba(5, 8, 20, 0.16), rgba(5, 8, 20, 0.78) 74%, rgba(5, 8, 20, 0.94));
  opacity: 0.82;
  animation: cloud-drift 34s ease-in-out infinite alternate;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(127, 247, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(127, 247, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 16% 24%, rgba(127, 247, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 14%, rgba(255, 217, 138, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 42%, rgba(255, 143, 186, 0.5) 0 1px, transparent 2px);
  background-size: 70px 70px, 70px 70px, 220px 180px, 300px 240px, 260px 220px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  animation: drift-grid 24s linear infinite;
  pointer-events: none;
}

.cloud-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 0;
  background: transparent;
  color: var(--text);
  opacity: 1;
  transition: visibility 900ms ease;
  overflow: hidden;
  contain: layout paint style;
  transform: translateZ(0);
}

.cloud-gate[hidden] {
  display: none;
}

.cloud-gate.is-hiding {
  pointer-events: none;
}

.cloud-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 16%, rgba(220, 244, 255, 0.96), rgba(116, 185, 255, 0.42) 34%, transparent 62%),
    radial-gradient(circle at 78% 72%, rgba(194, 233, 255, 0.82), rgba(45, 88, 148, 0.5) 36%, transparent 66%),
    linear-gradient(180deg, rgba(8, 28, 68, 0.98), rgba(6, 18, 46, 0.97) 48%, rgba(2, 7, 22, 0.98));
  opacity: 1;
  pointer-events: none;
  transition: opacity 1180ms ease;
}

.cloud-gate::after {
  display: none;
}

.cloud-gate.is-hiding::before {
  opacity: 0;
}

.cloud-gate.is-hiding::after {
  display: none;
}

.cloud-gate-scene {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  transition: opacity 720ms ease;
}

.cloud-gate-cloud {
  position: absolute;
  width: clamp(430px, 62vw, 860px);
  height: clamp(185px, 29vw, 370px);
  background: url("/assets/cloud-fog.svg?v=blue-clouds-1") center center / contain no-repeat;
  opacity: 0.96;
  filter: saturate(1.08) brightness(1.02) drop-shadow(0 0 28px rgba(111, 203, 255, 0.24));
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 1180ms cubic-bezier(0.7, 0, 0.18, 1);
}

.cloud-gate-cloud-a {
  left: -20vw;
  top: -10vh;
  animation: gate-cloud-drift-a 9s ease-in-out infinite alternate;
}

.cloud-gate-cloud-b {
  right: -20vw;
  top: -8vh;
  opacity: 0.94;
  transform: scaleX(-1);
  animation: gate-cloud-drift-b 10.5s ease-in-out infinite alternate;
}

.cloud-gate-cloud-c {
  left: 5vw;
  top: 13vh;
  width: clamp(540px, 88vw, 1120px);
  height: clamp(220px, 40vw, 460px);
  opacity: 0.98;
  animation: gate-cloud-drift-c 12s ease-in-out infinite alternate;
}

.cloud-gate-cloud-d {
  left: -22vw;
  bottom: 12vh;
  width: clamp(420px, 62vw, 790px);
  height: clamp(180px, 29vw, 360px);
  opacity: 0.94;
  animation: gate-cloud-drift-d 11s ease-in-out infinite alternate;
}

.cloud-gate-cloud-e {
  right: -22vw;
  bottom: 10vh;
  width: clamp(430px, 64vw, 820px);
  height: clamp(180px, 30vw, 370px);
  opacity: 0.94;
  transform: scaleX(-1) rotate(-2deg);
  animation: gate-cloud-drift-e 10s ease-in-out infinite alternate;
}

.cloud-gate-cloud-f {
  left: 11vw;
  bottom: -13vh;
  width: clamp(520px, 80vw, 1020px);
  height: clamp(210px, 36vw, 430px);
  opacity: 0.98;
  animation: gate-cloud-drift-f 13s ease-in-out infinite alternate;
}

.cloud-gate-cloud-g {
  left: -9vw;
  top: 34vh;
  width: clamp(390px, 58vw, 740px);
  height: clamp(165px, 27vw, 330px);
  opacity: 0.9;
  animation: gate-cloud-drift-g 9.5s ease-in-out infinite alternate;
}

.cloud-gate-cloud-h {
  right: -10vw;
  top: 36vh;
  width: clamp(390px, 58vw, 740px);
  height: clamp(165px, 27vw, 330px);
  opacity: 0.9;
  transform: scaleX(-1);
  animation: gate-cloud-drift-h 9.8s ease-in-out infinite alternate;
}

.cloud-gate-cloud-i {
  left: 26vw;
  top: 45vh;
  width: clamp(360px, 52vw, 680px);
  height: clamp(150px, 24vw, 300px);
  opacity: 0.88;
  animation: gate-cloud-drift-i 11.5s ease-in-out infinite alternate;
}

.cloud-gate.is-hiding .cloud-gate-scene {
  opacity: 0;
}

.cloud-gate.is-hiding .cloud-gate-cloud {
  animation: none;
  opacity: 0.94;
}

.cloud-gate.is-hiding .cloud-gate-cloud-a {
  transform: translate3d(-78vw, -40vh, 0);
}

.cloud-gate.is-hiding .cloud-gate-cloud-b {
  transform: translate3d(78vw, -40vh, 0) scaleX(-1);
}

.cloud-gate.is-hiding .cloud-gate-cloud-c {
  transform: translate3d(0, -72vh, 0);
}

.cloud-gate.is-hiding .cloud-gate-cloud-d {
  transform: translate3d(-78vw, 34vh, 0);
}

.cloud-gate.is-hiding .cloud-gate-cloud-e {
  transform: translate3d(78vw, 34vh, 0) scaleX(-1) rotate(-2deg);
}

.cloud-gate.is-hiding .cloud-gate-cloud-f {
  transform: translate3d(0, 84vh, 0);
}

.cloud-gate.is-hiding .cloud-gate-cloud-g {
  transform: translate3d(-82vw, 0, 0);
}

.cloud-gate.is-hiding .cloud-gate-cloud-h {
  transform: translate3d(82vw, 0, 0) scaleX(-1);
}

.cloud-gate.is-hiding .cloud-gate-cloud-i {
  transform: translate3d(0, 70vh, 0);
}

.cloud-start-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  min-width: 164px;
  min-height: 50px;
  border-radius: 999px;
  padding: 0 28px;
  color: #071a35;
  background: linear-gradient(135deg, rgba(246, 253, 255, 0.9), rgba(127, 247, 255, 0.82));
  border: 1px solid rgba(191, 235, 255, 0.78);
  box-shadow: 0 18px 52px rgba(74, 144, 255, 0.28), 0 0 26px rgba(127, 247, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-weight: 900;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) !important;
  transition: opacity 340ms ease !important;
  will-change: opacity;
}

.cloud-start-button.is-visible {
  opacity: 1;
}

.cloud-start-button:hover:not(:disabled),
.cloud-start-button:active:not(:disabled),
.cloud-start-button:focus-visible {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(127, 247, 255, 0.9));
  box-shadow: 0 18px 52px rgba(74, 144, 255, 0.34), 0 0 34px rgba(127, 247, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translate3d(-50%, -50%, 0) !important;
}

.cloud-start-button.is-leaving,
.cloud-gate.is-hiding .cloud-start-button {
  opacity: 0;
  pointer-events: none;
}

.background-music {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

button {
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.landing {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding: 18px clamp(16px, 4vw, 52px) 42px;
}

.landing-nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  margin: -18px calc(clamp(16px, 4vw, 52px) * -1) 0;
  padding: 18px clamp(16px, 4vw, 52px) 10px;
  background: linear-gradient(180deg, rgba(31, 37, 59, 0.64), rgba(31, 37, 59, 0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.landing-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero {
  min-height: min(760px, calc(100vh - 108px));
  display: grid;
  grid-template-columns: minmax(280px, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: end;
  padding: clamp(48px, 9vh, 96px) 0 28px;
}

.hero-copy {
  display: grid;
  gap: 18px;
  max-width: 760px;
  align-self: center;
  text-shadow: 0 3px 20px rgba(25, 22, 45, 0.42);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 920px;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 249, 238, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.auth-hint {
  color: var(--muted);
  font-size: 14px;
}

.hero-panel {
  position: relative;
  min-height: 390px;
  width: min(100%, 560px);
  justify-self: end;
  border: 1px solid rgba(255, 248, 236, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.18), rgba(32, 44, 72, 0.36)),
    rgba(23, 30, 52, 0.44);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  align-content: center;
  padding: 22px;
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 244, 219, 0.2), rgba(156, 226, 220, 0.08) 48%, rgba(255, 154, 125, 0.12)),
    var(--clouds) center bottom / 130% auto no-repeat;
  opacity: 0.9;
  animation: hero-glow 5s ease-in-out infinite;
}

.feature-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  z-index: 1;
}

.feature-title {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.feature-grid div {
  min-height: 98px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: end;
  column-gap: 10px;
  row-gap: 5px;
  padding: 13px;
  border: 1px solid rgba(255, 248, 236, 0.2);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-grid strong {
  font-size: 15px;
}

.feature-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.feature-icon {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  align-self: start;
  display: grid;
  place-items: center;
  border: 1px solid rgba(127, 247, 255, 0.22);
  border-radius: 8px;
  color: var(--teal);
  background:
    linear-gradient(180deg, rgba(127, 247, 255, 0.12), rgba(116, 185, 255, 0.04)),
    rgba(4, 10, 24, 0.24);
  box-shadow: 0 0 18px rgba(127, 247, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feature-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(127, 247, 255, 0.26));
}

.sidebar {
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.15), rgba(31, 40, 62, 0.62)),
    rgba(19, 27, 45, 0.62);
  backdrop-filter: blur(18px) saturate(1.08);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}

.brand img,
.login-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 248, 236, 0.52);
  box-shadow: 0 12px 30px rgba(255, 180, 108, 0.18), 0 0 0 4px rgba(255, 248, 236, 0.08);
  animation: candle-float 2.8s ease-in-out infinite;
}

.brand strong {
  display: block;
  font-size: 20px;
}

.brand span,
.eyebrow,
.panel-heading span,
.manual-server span,
.status-line span,
.empty-state span,
.login-panel p {
  color: var(--muted);
  font-size: 13px;
}

.server-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.quick-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 248, 236, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 212, 137, 0.2), rgba(156, 226, 220, 0.12)),
    var(--panel);
  box-shadow: var(--soft-shadow);
}

.quick-card::after {
  content: "";
  position: absolute;
  inset: -80% auto auto -40%;
  width: 80%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.11), transparent);
  transform: rotate(18deg);
  animation: sheen 4.4s ease-in-out infinite;
}

.quick-card strong,
.quick-card button,
.quick-kicker {
  position: relative;
  z-index: 1;
}

.quick-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.server-actions button,
.manual-server button,
.ghost-button {
  min-height: 40px;
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.12);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.manual-server {
  display: grid;
  gap: 8px;
}

.manual-server div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
}

.guild-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 3px;
}

.guild-button {
  min-height: 58px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px;
  text-align: left;
}

.guild-button:hover,
.guild-button.active {
  background: rgba(255, 248, 236, 0.15);
  border-color: rgba(255, 248, 236, 0.32);
  box-shadow: var(--soft-shadow);
}

.guild-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 800;
  overflow: hidden;
  box-shadow: 0 0 0 0 rgba(255, 212, 137, 0.35);
  animation: soft-pulse 3.8s ease-in-out infinite;
}

.guild-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guild-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.guild-meta {
  color: var(--muted);
  font-size: 12px;
}

.workspace {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
}

.topbar {
  min-height: 96px;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.17), rgba(30, 39, 62, 0.28)),
    rgba(18, 25, 45, 0.28);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.topbar h2 {
  margin: 3px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0;
  line-height: 1.1;
}

.install-strip {
  margin: 18px 28px 8px;
  border: 1px solid rgba(255, 248, 236, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(156, 226, 220, 0.16), rgba(255, 154, 125, 0.1)),
    rgba(34, 44, 68, 0.72);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(340px, 0.9fr);
  gap: 18px;
  align-items: end;
  overflow: hidden;
  position: relative;
  animation: panel-in 520ms ease both;
}

.install-strip::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral), var(--teal));
  background-size: 220% 100%;
  animation: flow-line 3s linear infinite;
}

.install-copy h3 {
  margin: 2px 0 8px;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0;
}

.install-copy p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.45;
}

.install-controls {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 0.9fr);
  gap: 12px;
}

.install-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.live-strip {
  margin: 8px 28px 10px;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(320px, 1.2fr) minmax(220px, 0.95fr);
  gap: 12px;
}

.landing-live {
  margin: 0;
  padding-top: 22px;
}

.founders-strip {
  order: 3;
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px 18px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 248, 236, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.18), rgba(255, 212, 137, 0.1) 34%, rgba(156, 226, 220, 0.08)),
    rgba(21, 30, 50, 0.42);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.founders-strip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #fff5cc, var(--gold), var(--coral));
  opacity: 0.9;
}

.founders-heading {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 82px;
  padding-left: 8px;
}

.founders-kicker,
.sponsors-heading span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.founders-heading strong {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 8px 26px rgba(255, 154, 125, 0.24);
}

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

.founder-card {
  min-width: min(240px, 100%);
  min-height: 72px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 248, 236, 0.2);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: var(--soft-shadow);
}

.founder-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 248, 236, 0.46);
  background: linear-gradient(135deg, var(--gold), var(--teal));
}

.founder-card strong,
.founder-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.founder-card strong {
  font-size: 15px;
}

.founder-card span {
  color: var(--muted);
  font-size: 12px;
}

.sponsors-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 248, 236, 0.14);
}

.sponsors-heading strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sponsors-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.sponsor-card {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 248, 236, 0.15);
  border-radius: 8px;
  background: rgba(12, 20, 35, 0.26);
}

.sponsor-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 212, 137, 0.42);
  background: linear-gradient(135deg, var(--gold), var(--coral));
}

.sponsor-card strong,
.sponsor-card span,
.sponsors-empty {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sponsor-card strong {
  font-size: 14px;
}

.sponsor-card span,
.sponsors-empty {
  color: var(--muted);
  font-size: 12px;
}

.socio-strip {
  order: 4;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.76fr) minmax(300px, 1fr);
  gap: 16px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 248, 236, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.2), rgba(156, 226, 220, 0.14) 35%, rgba(255, 212, 137, 0.12) 70%, rgba(255, 154, 125, 0.1)),
    rgba(21, 30, 50, 0.42);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.socio-strip.public-only {
  grid-template-columns: 1fr;
}

.socio-strip.public-only .socio-members {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.socio-strip.public-only .socio-members-heading {
  justify-content: center;
  text-align: center;
}

.socio-strip.public-only .socio-members-heading span {
  font-size: 14px;
}

.socio-strip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--gold), var(--coral));
}

.socio-strip::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 245, 204, 0.2), transparent 68%);
  pointer-events: none;
}

.socio-copy {
  position: relative;
  display: grid;
  align-content: center;
  gap: 10px;
  z-index: 1;
}

.socio-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.socio-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 212, 137, 0.58);
  box-shadow: 0 10px 28px rgba(255, 212, 137, 0.18), 0 0 0 5px rgba(255, 248, 236, 0.08);
}

.socio-copy h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
  letter-spacing: 0;
}

.socio-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.socio-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.socio-actions .primary-button {
  position: relative;
  overflow: hidden;
  min-width: 168px;
  animation: soft-pulse 2.6s ease-in-out infinite;
}

.socio-actions .primary-button::after {
  content: "";
  position: absolute;
  inset: -80% auto auto -45%;
  width: 45%;
  height: 260%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: rotate(18deg);
  animation: sheen 3.4s ease-in-out infinite;
}

.socio-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.socio-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.socio-steps span {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(255, 248, 236, 0.14);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.socio-steps strong {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  color: var(--ink);
  font-size: 12px;
}

.socio-user-status {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 8px;
  background: rgba(12, 20, 35, 0.28);
}

.socio-user-status.active {
  border-color: rgba(165, 231, 168, 0.42);
  background: rgba(63, 129, 87, 0.18);
}

.socio-user-status strong {
  font-size: 14px;
}

.socio-user-status span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.socio-benefits {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  z-index: 1;
}

.socio-benefits div {
  min-height: 112px;
  display: grid;
  align-content: end;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(255, 248, 236, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.16), rgba(12, 20, 35, 0.16)),
    rgba(255, 248, 236, 0.1);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.socio-benefits div:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 212, 137, 0.4);
  background: rgba(255, 248, 236, 0.16);
}

.socio-benefits strong {
  font-size: 22px;
  line-height: 1;
}

.socio-benefits span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.socio-members {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  z-index: 1;
}

.socio-members-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.socio-members-heading span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.socio-members-heading strong {
  font-size: 28px;
  line-height: 1;
}

.socio-members-title {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.socio-mini-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 212, 137, 0.56);
  box-shadow: 0 8px 18px rgba(255, 212, 137, 0.14);
}

.socio-members-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  min-width: 0;
}

.socio-payment-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 212, 137, 0.32);
  border-radius: 8px;
  background: rgba(12, 20, 35, 0.34);
}

.socio-payment-box.is-open {
  animation: panel-in 280ms ease both;
}

.socio-payment-box > div:first-child {
  display: grid;
  gap: 3px;
}

.socio-payment-box strong {
  font-size: 15px;
}

.socio-payment-box span {
  color: var(--muted);
  font-size: 12px;
}

.socio-payment-note {
  display: block;
  padding: 9px 10px;
  border: 1px solid rgba(165, 231, 168, 0.22);
  border-radius: 8px;
  background: rgba(63, 129, 87, 0.16);
}

.socio-qr {
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  justify-self: center;
}

.socio-payment-box textarea {
  min-height: 86px;
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  padding: 10px;
  font-size: 12px;
}

.socio-payment-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.socio-payment-link {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.socio-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 15, 26, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.socio-modal[hidden] {
  display: none !important;
}

.socio-modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 248, 236, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.18), rgba(156, 226, 220, 0.1), rgba(255, 154, 125, 0.1)),
    rgba(21, 30, 50, 0.92);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  animation: savebar-in 260ms ease both;
}

.socio-modal-panel > .ghost-button {
  justify-self: end;
  min-height: 34px;
}

.socio-modal-heading {
  display: grid;
  gap: 4px;
}

.socio-modal-heading strong {
  font-size: 24px;
  line-height: 1.1;
}

.socio-modal-body,
.socio-modal-body > div:first-child {
  display: grid;
  gap: 10px;
}

.socio-modal-body .socio-qr {
  width: min(280px, 100%);
}

.socio-member-card {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 248, 236, 0.15);
  border-radius: 8px;
  background: rgba(12, 20, 35, 0.26);
}

.socio-member-card strong,
.socio-member-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.socio-member-card strong {
  font-size: 14px;
}

.socio-member-card span {
  color: var(--muted);
  font-size: 12px;
}

.socio-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  min-width: 38px;
  overflow: visible !important;
  white-space: normal !important;
}

.socio-avatar-wrap .sponsor-avatar {
  width: 38px;
  height: 38px;
}

.socio-card-icon {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(21, 30, 50, 0.96);
  background: rgba(21, 30, 50, 0.96);
  box-shadow: 0 4px 12px rgba(255, 212, 137, 0.24);
}

.sponsors-empty {
  padding: 12px;
  border: 1px dashed rgba(255, 248, 236, 0.18);
  border-radius: 8px;
  background: rgba(12, 20, 35, 0.18);
}

.daily-live-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.live-card {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  border: 1px solid rgba(255, 248, 236, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.15), rgba(29, 40, 63, 0.38)),
    rgba(24, 33, 54, 0.62);
  box-shadow: var(--soft-shadow);
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 7px;
  backdrop-filter: blur(10px);
  animation: panel-in 480ms ease both;
}

.live-card > img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 248, 236, 0.2);
  margin-bottom: 4px;
}

.live-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: 0.55;
}

.live-card.is-active {
  border-color: rgba(123, 216, 143, 0.38);
  box-shadow: 0 0 0 1px rgba(123, 216, 143, 0.1), 0 14px 34px rgba(123, 216, 143, 0.08);
}

.live-card.is-active::before {
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--teal), var(--gold));
  animation: flow-line 2.4s linear infinite;
}

.live-card.is-muted {
  opacity: 0.72;
}

.live-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-card strong {
  font-size: 20px;
  letter-spacing: 0;
}

.live-card span:not(.live-kicker) {
  color: var(--muted);
  font-size: 13px;
}

.live-card.compact strong {
  font-size: 24px;
}

.live-card.compact {
  align-content: start;
}

.active-events-card {
  align-content: start;
}

.active-events-list {
  display: grid;
  gap: 8px;
  max-height: 156px;
  overflow: auto;
}

.active-event-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  padding: 9px;
  border: 1px solid rgba(255, 248, 236, 0.14);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.09);
}

.active-event-row.is-active {
  border-color: rgba(123, 216, 143, 0.24);
}

.active-event-row.is-upcoming {
  border-color: rgba(243, 201, 122, 0.22);
}

.active-event-row img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 248, 236, 0.18);
}

.active-event-row strong {
  font-size: 14px;
}

.active-event-row span {
  color: var(--muted);
  font-size: 12px;
}

.active-event-row em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.status-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.status-line span {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.12);
}

.status-line button {
  min-height: 34px;
}

#economyTopButton {
  border-color: rgba(255, 212, 137, 0.34);
  background: rgba(255, 212, 137, 0.14);
}

.status-line .ok {
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(123, 216, 143, 0.12);
}

.status-line .warn {
  color: var(--coral);
  animation: status-breathe 1.8s ease-in-out infinite;
}

.socio-top-status {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: grid !important;
  gap: 2px;
  align-content: center;
  text-align: left;
}

.socio-top-status[hidden] {
  display: none !important;
}

.socio-top-status b,
.socio-top-status small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
}

.socio-top-status b {
  color: var(--gold);
  font-size: 12px;
}

.socio-top-status small {
  color: var(--muted);
  font-size: 11px;
}

.socio-top-status.sponsor {
  border-color: rgba(255, 212, 137, 0.38);
  background: rgba(255, 212, 137, 0.12);
}

.tabs {
  min-height: 58px;
  padding: 10px 28px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(19, 27, 45, 0.22);
  backdrop-filter: blur(12px);
  overflow-x: auto;
}

.tab {
  min-width: 112px;
  min-height: 38px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  padding: 0 12px;
  white-space: nowrap;
}

.tab.active {
  color: var(--text);
  background: rgba(255, 248, 236, 0.16);
  border-color: rgba(255, 248, 236, 0.28);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.content {
  overflow: auto;
  padding: 24px 28px 108px;
}

.tab-panel {
  display: none;
  gap: 16px;
}

.tab-panel.active {
  display: grid;
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.13), rgba(28, 39, 61, 0.46)),
    rgba(21, 30, 50, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
  width: 100%;
  animation: panel-in 420ms ease both;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.panel:hover {
  border-color: rgba(255, 248, 236, 0.42);
  transform: translateY(-1px);
  box-shadow: 0 28px 76px rgba(61, 45, 78, 0.34);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 16px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.economy-admin-panel {
  min-height: min(640px, calc(100vh - 190px));
}

.economy-admin-heading {
  align-items: center;
}

.economy-server-list {
  display: grid;
  gap: 12px;
}

.economy-server-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.4fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 248, 236, 0.14);
  border-radius: 8px;
  background: rgba(12, 20, 35, 0.24);
}

.economy-server-title {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.economy-server-title strong,
.economy-server-title span span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-server-title strong {
  font-size: 15px;
}

.economy-server-title span span {
  color: var(--muted);
  font-size: 12px;
}

.economy-server-controls {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(130px, 0.6fr) minmax(150px, 0.8fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: end;
}

.compact-toggle {
  padding-top: 20px;
}

.economy-server-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.economy-server-actions span {
  color: var(--muted);
  font-size: 12px;
}

.economy-server-actions .ok {
  color: var(--green);
}

.economy-server-actions .warn {
  color: var(--coral);
}

.sky-overview-panel {
  overflow: hidden;
}

.sky-overview-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.4fr);
  gap: 12px;
}

.config-daily-events {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sky-event-card {
  position: relative;
  min-height: 168px;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 20, 35, 0.08), rgba(12, 20, 35, 0.56)),
    rgba(255, 248, 236, 0.08);
  overflow: hidden;
}

.sky-event-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: 0.6;
}

.sky-event-card.is-active {
  border-color: rgba(165, 231, 168, 0.46);
  box-shadow: 0 0 0 1px rgba(165, 231, 168, 0.12), var(--soft-shadow);
}

.sky-event-card.is-active::before {
  background: linear-gradient(90deg, var(--green), var(--teal), var(--gold));
  animation: flow-line 2.4s linear infinite;
}

.sky-event-card.is-muted {
  opacity: 0.72;
}

.sky-event-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  z-index: 0;
}

.sky-event-card > span,
.sky-event-card > strong {
  position: relative;
  z-index: 1;
}

.sky-event-card strong {
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1;
}

.sky-event-card span:not(.live-kicker) {
  color: var(--muted);
  font-size: 13px;
}

.sky-event-card.fragment-card {
  min-height: 168px;
}

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

.form-grid.wide {
  grid-template-columns: minmax(240px, 1fr) 160px;
}

.stacked-fields {
  grid-template-columns: 1fr;
  max-width: 100%;
}

.giveaway-builder {
  overflow: hidden;
}

.bingo-builder {
  overflow: hidden;
}

.giveaway-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.84fr);
  gap: 18px;
  align-items: start;
}

.bingo-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.giveaway-fields {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.bingo-fields {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.giveaway-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.bingo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.giveaway-actions span {
  color: var(--muted);
  font-size: 13px;
}

.bingo-actions span {
  color: var(--muted);
  font-size: 13px;
}

.giveaway-actions .ok {
  color: var(--green);
}

.bingo-actions .ok {
  color: var(--green);
}

.giveaway-actions .warn {
  color: var(--coral);
}

.bingo-actions .warn {
  color: var(--coral);
}

.giveaway-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.1);
}

.bingo-preview {
  display: grid;
  gap: 12px;
}

.bingo-embed-preview {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  min-height: 250px;
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: #202225;
}

.bingo-embed-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 14px;
  padding: 16px;
}

.bingo-embed-content {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.bingo-embed-content > strong {
  color: #ffffff;
  font-size: 22px;
}

.bingo-embed-content p {
  margin: 0;
  color: #dcddde;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
}

.bingo-embed-body img {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 248, 236, 0.08);
}

.bingo-embed-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bingo-embed-buttons button {
  min-height: 34px;
  border-radius: 8px;
  padding: 0 12px;
  color: #ffffff;
  background: #4e5058;
}

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

.bingo-status-panel div {
  min-height: 74px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 12px;
  border: 1px solid rgba(255, 248, 236, 0.14);
  border-radius: 8px;
  background: rgba(12, 20, 35, 0.24);
}

.bingo-status-panel span {
  color: var(--muted);
  font-size: 12px;
}

.bingo-status-panel strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.bingo-participants-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 248, 236, 0.14);
  border-radius: 8px;
  background: rgba(12, 20, 35, 0.24);
}

.compact-heading {
  margin-bottom: 0;
}

.compact-heading h3 {
  font-size: 16px;
}

.bingo-participants-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.bingo-participant-card {
  min-height: 54px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(255, 248, 236, 0.12);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.08);
}

.bingo-participant-card img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 212, 137, 0.36);
}

.bingo-participant-card strong,
.bingo-participant-card span span,
.bingo-empty {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bingo-participant-card strong {
  font-size: 13px;
}

.bingo-participant-card span span,
.bingo-empty {
  color: var(--muted);
  font-size: 12px;
}

.bingo-empty {
  padding: 10px;
  border: 1px dashed rgba(255, 248, 236, 0.16);
  border-radius: 8px;
}

.bingo-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.danger-button {
  border-color: rgba(255, 120, 120, 0.32);
  color: #ffd8d8;
  background: rgba(255, 120, 120, 0.1);
}

.discord-embed {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  min-height: 242px;
  border: 1px solid rgba(255, 248, 236, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #202225;
}

.embed-color {
  background: var(--gold);
}

.embed-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
}

.embed-content {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.embed-content > strong {
  color: #ffffff;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.embed-content p {
  margin: 0;
  color: #dcddde;
  font-size: 14px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.embed-field {
  display: grid;
  gap: 4px;
}

.embed-field span {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.embed-field strong {
  color: #dcddde;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.embed-content small {
  color: #b9bbbe;
  font-size: 12px;
}

.embed-body img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.giveaway-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.giveaway-buttons button {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  color: #ffffff;
  background: #248046;
}

.giveaway-buttons button + button {
  background: #4e5058;
}

label {
  position: relative;
  display: grid;
  gap: 8px;
}

label > span {
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  color: var(--text);
  background: rgba(12, 20, 35, 0.54);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

select[multiple] {
  min-height: 170px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  background: rgba(12, 20, 35, 0.68);
  box-shadow: 0 0 0 3px rgba(156, 226, 220, 0.16);
}

label.field-confirmed select {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(123, 216, 143, 0.16), 0 0 24px rgba(123, 216, 143, 0.14);
  animation: selected-pop 360ms ease both;
}

label.field-confirmed::after {
  content: "OK";
  position: absolute;
  right: 10px;
  top: 30px;
  min-width: 34px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #10140f;
  background: linear-gradient(135deg, var(--green), var(--teal));
  font-size: 12px;
  font-weight: 900;
  animation: confirm-badge 940ms ease both;
  pointer-events: none;
}

input[type="color"] {
  padding: 4px;
  min-height: 42px;
}

[data-manual] {
  display: none;
}

.toggle-line {
  min-height: 42px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding-top: 24px;
}

.toggle-line input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.toggle-line span {
  color: var(--text);
}

.full {
  grid-column: 1 / -1;
}

.savebar {
  position: fixed;
  right: 28px;
  bottom: 22px;
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(22, 30, 49, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  transform-origin: right bottom;
}

.savebar[hidden] {
  display: none;
}

.savebar-show {
  animation: savebar-in 280ms ease both;
}

.savebar-hide {
  animation: savebar-out 220ms ease both;
}

.primary-button {
  min-height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff5cc, var(--gold) 52%, var(--coral));
  color: var(--ink);
  padding: 0 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 14px 34px rgba(255, 154, 125, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.primary-button:hover:not(:disabled) {
  box-shadow: 0 16px 34px rgba(243, 201, 122, 0.26);
}

.ghost-button {
  padding: 0 14px;
}

.empty-state {
  place-self: center;
  max-width: 460px;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  color: var(--muted);
  padding: 28px;
}

.empty-state img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.empty-state strong {
  color: var(--text);
  font-size: 20px;
}

.login {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(17, 19, 23, 0.72);
  backdrop-filter: blur(12px);
}

.login.hidden {
  display: none;
}

.login-panel {
  width: min(400px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  animation: panel-in 360ms ease both;
}

.login-panel h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.login-panel p {
  margin: 0;
}

.error {
  color: var(--danger) !important;
}

.selection-toast {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 20;
  min-width: min(360px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(123, 216, 143, 0.24);
  border-radius: 8px;
  background: rgba(25, 29, 35, 0.94);
  box-shadow: var(--shadow);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  pointer-events: none;
}

.selection-toast.show {
  animation: toast-in 1.9s ease both;
}

.selection-toast strong {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #10140f;
  background: linear-gradient(135deg, var(--green), var(--teal));
  font-size: 13px;
}

.selection-toast span {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 881px) {
  .shell {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .sidebar {
    min-height: 100vh;
    max-height: 100vh;
    overflow: auto;
  }

  .workspace {
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }

  .topbar {
    min-width: 0;
  }

  .topbar > div:first-child {
    min-width: 0;
  }

  .status-line {
    max-width: 55%;
  }

  .content {
    min-height: 0;
  }
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 36px;
  }

  .hero-panel {
    width: 100%;
    justify-self: stretch;
    min-height: 380px;
  }

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 360px;
    overflow: auto;
  }

  .guild-list {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-width: 0;
  }

  .status-line {
    width: 100%;
    justify-content: flex-start;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: hidden;
  }

  .tab {
    width: 100%;
    min-width: 0;
  }

  .install-strip {
    grid-template-columns: 1fr;
  }

  .live-strip {
    grid-template-columns: 1fr;
  }

  .founders-strip {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .socio-strip {
    grid-template-columns: 1fr;
  }

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

  .founders-list {
    justify-content: flex-start;
  }

  .sponsors-heading {
    align-items: start;
    flex-direction: column;
  }

  .daily-live-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-grid,
  .form-grid.wide {
    grid-template-columns: 1fr;
  }

  .sky-overview-grid {
    grid-template-columns: 1fr;
  }

  .giveaway-layout,
  .bingo-layout {
    grid-template-columns: 1fr;
  }

  .economy-server-card,
  .economy-server-controls {
    grid-template-columns: 1fr;
  }

  .economy-server-actions {
    justify-items: stretch;
  }

  .savebar {
    left: 14px;
    right: 14px;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  body {
    min-width: 0;
  }

  .landing {
    padding: 14px 16px 32px;
  }

  .shell {
    display: block;
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
  }

  .sidebar {
    max-height: none;
    padding: 12px;
    gap: 10px;
    overflow-x: hidden;
  }

  .sidebar .brand {
    min-height: 44px;
  }

  .sidebar .brand img,
  .sidebar .login-mark {
    width: 42px;
    height: 42px;
  }

  .quick-card {
    padding: 12px;
  }

  .guild-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 4px;
  }

  .guild-button {
    min-width: 0;
    width: 100%;
    flex: 0 0 auto;
  }

  .workspace {
    display: block;
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
  }

  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

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

  .hero-panel {
    min-height: auto;
    padding-top: 22px;
  }

  .topbar,
  .tabs,
  .content,
  .install-strip {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .topbar h2 {
    font-size: 28px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .status-line {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .status-line span,
  .status-line button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding-left: 8px;
    padding-right: 8px;
    text-align: center;
    justify-content: center;
  }

  #socioTopButton {
    grid-column: 1 / -1;
  }

  #socioTopStatus {
    grid-column: 1 / -1;
  }

  .tabs {
    position: sticky;
    top: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    overflow-x: hidden;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    font-size: 14px;
  }

  .content {
    overflow: visible;
    padding-top: 16px;
    padding-bottom: 96px;
  }

  .panel {
    padding: 14px;
    overflow: hidden;
  }

  .panel-heading {
    gap: 4px;
  }

  .panel-heading h3 {
    font-size: 19px;
    overflow-wrap: anywhere;
  }

  .form-grid label,
  .stacked-fields label {
    min-width: 0;
  }

  input,
  select,
  textarea {
    min-width: 0;
    width: 100%;
  }

  .install-strip {
    margin-left: 16px;
    margin-right: 16px;
  }

  .live-strip {
    margin-left: 16px;
    margin-right: 16px;
  }

  .daily-live-cards {
    grid-template-columns: 1fr;
  }

  .socio-benefits,
  .socio-members-list,
  .socio-steps {
    grid-template-columns: 1fr;
  }

  .config-daily-events {
    grid-template-columns: 1fr;
  }

  .founders-list {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .founder-card {
    min-width: 0;
  }

  .install-controls {
    grid-template-columns: 1fr;
  }

  .install-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .giveaway-fields,
  .bingo-fields {
    grid-template-columns: 1fr;
  }

  .giveaway-actions,
  .bingo-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bingo-status-panel {
    grid-template-columns: 1fr;
  }

  .embed-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .embed-body img {
    order: -1;
  }

  .bingo-embed-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .bingo-embed-body img {
    order: -1;
  }

  .tabs {
    gap: 6px;
  }

  .tab {
    min-width: 0;
  }

  .shell .workspace .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: hidden;
  }

  .shell .workspace .tabs .tab {
    width: 100%;
    min-width: 0;
  }

  .panel-heading {
    display: grid;
  }
}

@keyframes drift-grid {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 220px 180px, -300px 240px, 260px -220px;
  }
}

@keyframes cloud-drift {
  from {
    background-position: center calc(100% + 22px), 0 0;
  }
  to {
    background-position: center calc(100% + 2px), 0 0;
  }
}

@keyframes cloud-sweep {
  from {
    transform: translateX(-4vw) translateY(2vh) scale(1.04);
  }
  to {
    transform: translateX(4vw) translateY(-1vh) scale(1.08);
  }
}

@keyframes cloud-sweep-reverse {
  from {
    transform: translateX(5vw) translateY(1vh) scale(1.08);
  }
  to {
    transform: translateX(-5vw) translateY(-2vh) scale(1.12);
  }
}

@keyframes gate-fog-top {
  from {
    transform: translateX(-2vw) translateY(1vh) rotate(180deg) scale(1.1);
  }
  to {
    transform: translateX(2vw) translateY(-1vh) rotate(180deg) scale(1.14);
  }
}

@keyframes gate-fog-bottom {
  from {
    transform: translateX(2vw) translateY(1vh) scale(1.08);
  }
  to {
    transform: translateX(-2vw) translateY(-1vh) scale(1.12);
  }
}

@keyframes gate-logo-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.03);
  }
}

@keyframes gate-cloud-a {
  from {
    transform: translateX(-28px) translateY(12px);
  }
  to {
    transform: translateX(28px) translateY(-8px);
  }
}

@keyframes gate-cloud-b {
  from {
    transform: translateX(30px) translateY(-6px);
  }
  to {
    transform: translateX(-26px) translateY(10px);
  }
}

@keyframes gate-cloud-c {
  from {
    transform: translateX(-18px) translateY(10px);
  }
  to {
    transform: translateX(22px) translateY(-10px);
  }
}

@keyframes gate-cloud-drift-a {
  from { transform: translate3d(-1.5vw, 0.8vh, 0) rotate(-1deg); }
  to { transform: translate3d(2.4vw, -1.2vh, 0) rotate(1deg); }
}

@keyframes gate-cloud-drift-b {
  from { transform: translate3d(1.8vw, 0.6vh, 0) scaleX(-1) rotate(1deg); }
  to { transform: translate3d(-2.2vw, -1.4vh, 0) scaleX(-1) rotate(-1deg); }
}

@keyframes gate-cloud-drift-c {
  from { transform: translate3d(-1.2vw, -0.4vh, 0) scale(1); }
  to { transform: translate3d(1.2vw, 1.2vh, 0) scale(1.018); }
}

@keyframes gate-cloud-drift-d {
  from { transform: translate3d(-1vw, 1vh, 0) rotate(0deg); }
  to { transform: translate3d(2vw, -0.6vh, 0) rotate(1deg); }
}

@keyframes gate-cloud-drift-e {
  from { transform: translate3d(1.6vw, 0.9vh, 0) scaleX(-1) rotate(-2deg); }
  to { transform: translate3d(-2vw, -0.9vh, 0) scaleX(-1) rotate(-0.5deg); }
}

@keyframes gate-cloud-drift-f {
  from { transform: translate3d(-1vw, 1.3vh, 0) scale(1); }
  to { transform: translate3d(1vw, -1.3vh, 0) scale(1.015); }
}

@keyframes gate-cloud-drift-g {
  from { transform: translate3d(-1.7vw, -0.5vh, 0); }
  to { transform: translate3d(2.1vw, 0.9vh, 0); }
}

@keyframes gate-cloud-drift-h {
  from { transform: translate3d(1.7vw, -0.4vh, 0) scaleX(-1); }
  to { transform: translate3d(-2.1vw, 1vh, 0) scaleX(-1); }
}

@keyframes gate-cloud-drift-i {
  from { transform: translate3d(-0.8vw, 1vh, 0) scale(1); }
  to { transform: translate3d(1.4vw, -1vh, 0) scale(1.02); }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes candle-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-3px) rotate(1deg);
  }
}

@keyframes soft-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(243, 201, 122, 0.18);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(243, 201, 122, 0);
  }
}

@keyframes sheen {
  0%,
  58% {
    transform: translateX(-80%) rotate(18deg);
  }
  100% {
    transform: translateX(260%) rotate(18deg);
  }
}

@keyframes flow-line {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 220% 0;
  }
}

@keyframes status-breathe {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(240, 139, 115, 0.1);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(240, 139, 115, 0.35);
  }
}

@keyframes selected-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes confirm-badge {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.86);
  }
  22% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px) scale(0.92);
  }
}

@keyframes toast-in {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  14% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  84% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@keyframes savebar-in {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes savebar-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

@keyframes hero-glow {
  0%,
  100% {
    opacity: 0.74;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

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

/* Midnight glow theme */
.landing {
  position: relative;
}

.landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.2), rgba(2, 4, 10, 0.78)),
    radial-gradient(circle at 22% 64%, rgba(127, 247, 255, 0.18), transparent 34vw),
    radial-gradient(circle at 88% 34%, rgba(169, 140, 255, 0.16), transparent 30vw);
  pointer-events: none;
}

.landing-nav {
  background: linear-gradient(180deg, rgba(3, 7, 17, 0.82), rgba(3, 7, 17, 0.2), transparent);
  border-bottom: 1px solid rgba(127, 247, 255, 0.08);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.brand img,
.login-mark,
.empty-state img {
  filter: drop-shadow(0 0 18px rgba(127, 247, 255, 0.26)) drop-shadow(0 0 34px rgba(255, 217, 138, 0.1));
}

.brand strong {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(127, 247, 255, 0.28);
}

.brand span,
.auth-hint {
  color: rgba(219, 233, 255, 0.72);
}

.eyebrow,
.live-kicker {
  color: var(--teal);
  text-shadow: 0 0 18px rgba(127, 247, 255, 0.34);
}

.hero-copy h1 {
  font-size: clamp(38px, 5.7vw, 74px);
  line-height: 1.02;
  color: #ffffff;
  text-shadow:
    0 0 28px rgba(127, 247, 255, 0.24),
    0 18px 72px rgba(0, 0, 0, 0.62);
}

.hero-copy p {
  color: rgba(232, 241, 255, 0.86);
}

.hero-panel,
.live-card,
.quick-card,
.founder-card,
.sponsor-card,
.socio-card,
.socio-modal-panel,
.economy-server-card,
.sky-event-card,
.bingo-participant-card,
.socio-member-card,
.savebar,
.sidebar,
.content,
.panel,
.form-section,
.preview-panel,
.embed-preview,
.bingo-preview,
.empty-state {
  border-color: rgba(153, 221, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 28, 52, 0.72), rgba(7, 12, 27, 0.78)),
    rgba(5, 8, 20, 0.68);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(127, 247, 255, 0.04);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
}

.hero-panel {
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.48),
    0 0 64px rgba(127, 247, 255, 0.12),
    0 0 38px rgba(169, 140, 255, 0.1);
}

.hero-panel::before {
  background:
    radial-gradient(circle at 24% 18%, rgba(127, 247, 255, 0.24), transparent 36%),
    radial-gradient(circle at 86% 64%, rgba(255, 217, 138, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(116, 185, 255, 0.16), rgba(169, 140, 255, 0.1) 48%, rgba(255, 143, 186, 0.12)),
    var(--clouds) center bottom / 130% auto no-repeat;
  opacity: 0.82;
}

.feature-grid div,
.active-event-row,
label,
input,
select,
textarea {
  border-color: rgba(153, 221, 255, 0.18);
  background: rgba(4, 9, 22, 0.56);
}

.feature-grid div {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-grid strong,
.live-card strong,
.empty-state strong {
  color: #ffffff;
}

.feature-grid span,
.live-card span:not(.live-kicker),
.muted,
label span,
.field-help {
  color: rgba(219, 233, 255, 0.74);
}

.primary-button {
  background: linear-gradient(135deg, #f8fdff, var(--teal) 35%, var(--blue) 68%, var(--violet));
  color: #04101f;
  box-shadow:
    0 0 24px rgba(127, 247, 255, 0.28),
    0 14px 36px rgba(116, 185, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.primary-button:hover:not(:disabled) {
  box-shadow:
    0 0 34px rgba(127, 247, 255, 0.36),
    0 18px 42px rgba(169, 140, 255, 0.24);
}

.ghost-button {
  border-color: rgba(127, 247, 255, 0.24);
  background: rgba(4, 9, 22, 0.48);
  color: rgba(244, 249, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ghost-button:hover:not(:disabled) {
  border-color: rgba(127, 247, 255, 0.48);
  box-shadow: 0 0 22px rgba(127, 247, 255, 0.14);
}

.live-card::before,
.sky-event-card::before {
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--gold));
  box-shadow: 0 0 18px rgba(127, 247, 255, 0.5);
}

.live-card.is-active,
.sky-event-card.is-active {
  border-color: rgba(167, 255, 203, 0.44);
  box-shadow:
    0 0 0 1px rgba(167, 255, 203, 0.12),
    0 18px 48px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(167, 255, 203, 0.16);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(11, 18, 36, 0.92), rgba(3, 7, 17, 0.88)),
    rgba(5, 8, 20, 0.82);
}

input,
select,
textarea {
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(127, 247, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(127, 247, 255, 0.12), 0 0 24px rgba(127, 247, 255, 0.1);
}

.hero-panel {
  border-color: rgba(196, 226, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(6, 14, 32, 0.12)),
    rgba(5, 12, 30, 0.16);
  box-shadow:
    0 28px 88px rgba(0, 0, 0, 0.34),
    0 0 52px rgba(74, 144, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(1.36) brightness(1.04);
  -webkit-backdrop-filter: blur(24px) saturate(1.36) brightness(1.04);
}

.hero-panel::before {
  background: linear-gradient(135deg, rgba(127, 247, 255, 0.04), rgba(255, 255, 255, 0.02) 48%, rgba(116, 185, 255, 0.04));
  opacity: 0.52;
  animation: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%);
  opacity: 0.42;
  pointer-events: none;
}

.feature-title {
  color: #f8fcff;
  text-shadow: 0 0 20px rgba(127, 247, 255, 0.28);
}

.feature-grid div {
  position: relative;
  min-height: 98px;
  border-color: rgba(196, 226, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(3, 9, 24, 0.18)),
    rgba(4, 10, 24, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px) saturate(1.24);
  -webkit-backdrop-filter: blur(18px) saturate(1.24);
  overflow: hidden;
}

.feature-grid div::before {
  display: none;
}

.feature-grid div::after {
  display: none;
}

.feature-grid strong,
.feature-grid span {
  position: relative;
  z-index: 1;
}

.feature-grid strong {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(127, 247, 255, 0.2);
}

.feature-grid span {
  color: rgba(222, 237, 255, 0.78);
}

@keyframes star-shimmer {
  0%,
  100% {
    opacity: 0.82;
    filter: brightness(0.96);
  }
  50% {
    opacity: 1;
    filter: brightness(1.18);
  }
}

.feature-grid .feature-icon {
  color: var(--teal);
  font-size: 0;
  line-height: 1;
}

.landing-live .live-card {
  border-color: rgba(196, 226, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(4, 10, 24, 0.16)),
    rgba(5, 12, 30, 0.16);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.28),
    0 0 42px rgba(74, 144, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(1.34) brightness(1.04);
  -webkit-backdrop-filter: blur(24px) saturate(1.34) brightness(1.04);
}

.landing-live .live-card > img {
  border-color: rgba(196, 226, 255, 0.16);
  background: rgba(4, 10, 24, 0.18);
  opacity: 0.86;
  filter: saturate(1.08) contrast(1.02);
}

.landing-live .live-card::before {
  background: linear-gradient(90deg, transparent, rgba(127, 247, 255, 0.66), rgba(116, 185, 255, 0.34), transparent);
  opacity: 0.62;
}

.landing-live .active-events-card {
  min-height: 104px;
}

.landing-live .active-events-list > span {
  color: rgba(222, 237, 255, 0.78);
}
