:root {
  color-scheme: dark;
  --bg: #19243a;
  --panel: rgba(28, 39, 58, 0.58);
  --panel-2: rgba(255, 248, 236, 0.18);
  --line: rgba(255, 248, 236, 0.24);
  --text: #fff9ee;
  --muted: rgba(255, 249, 238, 0.74);
  --ink: #28344e;
  --gold: #ffd489;
  --teal: #9ce2dc;
  --coral: #ff9a7d;
  --green: #a5e7a8;
  --danger: #ff7878;
  --shadow: 0 24px 70px rgba(61, 45, 78, 0.28);
  --soft-shadow: 0 14px 38px rgba(103, 87, 120, 0.18);
  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;
  position: relative;
  background:
    linear-gradient(180deg, rgba(17, 20, 34, 0.2), rgba(22, 28, 45, 0.72) 52%, rgba(9, 14, 26, 0.94)),
    linear-gradient(112deg, rgba(255, 190, 128, 0.14), rgba(156, 226, 220, 0.12) 42%, rgba(114, 92, 169, 0.16));
  color: var(--text);
  overflow-x: hidden;
}

.site-background-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  background: #101624;
}

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: 0;
  background:
    linear-gradient(180deg, rgba(16, 20, 34, 0.26), rgba(15, 20, 35, 0.5) 54%, rgba(9, 13, 24, 0.72)),
    radial-gradient(circle at 50% 18%, rgba(255, 248, 236, 0.16), transparent 58%);
  opacity: 1;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 14%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 42%, rgba(255, 212, 137, 0.44) 0 1px, transparent 2px);
  background-size: 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 24% 20%, rgba(255, 255, 255, 0.18), transparent 46%),
    radial-gradient(circle at 76% 68%, rgba(255, 212, 137, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(13, 18, 30, 0.5), rgba(11, 15, 26, 0.7));
  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: rgba(255, 255, 255, 0.58);
  filter: blur(26px);
  opacity: 0.96;
  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;
}

.cloud-gate-cloud-b {
  right: -20vw;
  top: -8vh;
  opacity: 0.94;
  transform: scaleX(-1);
}

.cloud-gate-cloud-c {
  left: 5vw;
  top: 13vh;
  width: clamp(540px, 88vw, 1120px);
  height: clamp(220px, 40vw, 460px);
  opacity: 0.98;
}

.cloud-gate-cloud-d {
  left: -22vw;
  bottom: 12vh;
  width: clamp(420px, 62vw, 790px);
  height: clamp(180px, 29vw, 360px);
  opacity: 0.94;
}

.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);
}

.cloud-gate-cloud-f {
  left: 11vw;
  bottom: -13vh;
  width: clamp(520px, 80vw, 1020px);
  height: clamp(210px, 36vw, 430px);
  opacity: 0.98;
}

.cloud-gate-cloud-g {
  left: -9vw;
  top: 34vh;
  width: clamp(390px, 58vw, 740px);
  height: clamp(165px, 27vw, 330px);
  opacity: 0.9;
}

.cloud-gate-cloud-h {
  right: -10vw;
  top: 36vh;
  width: clamp(390px, 58vw, 740px);
  height: clamp(165px, 27vw, 330px);
  opacity: 0.9;
  transform: scaleX(-1);
}

.cloud-gate-cloud-i {
  left: 26vw;
  top: 45vh;
  width: clamp(360px, 52vw, 680px);
  height: clamp(150px, 24vw, 300px);
  opacity: 0.88;
}

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

.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: #6f3952;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 52px rgba(219, 130, 170, 0.24), 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: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 52px rgba(219, 130, 170, 0.24), 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 {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.landing {
  position: relative;
  z-index: 1;
  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));
  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: 92px;
  display: grid;
  align-content: end;
  gap: 5px;
  padding: 12px;
  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;
}

.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;
}

.central-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.central-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(255, 248, 236, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(156, 226, 220, 0.11), rgba(255, 154, 125, 0.07)),
    rgba(12, 20, 35, 0.24);
}

.central-teia-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-color: rgba(156, 226, 220, 0.26);
}

.central-card strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.central-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.central-teia-card .primary-button {
  text-decoration: none;
  white-space: nowrap;
}

.central-card-heading,
.economy-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#centralServerCount {
  min-width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--teal));
  font-weight: 900;
}

.central-server-list {
  display: grid;
  gap: 8px;
  max-height: 230px;
  overflow: auto;
}

.central-server-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255, 248, 236, 0.12);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.08);
}

.central-server-card strong,
.central-server-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.central-server-card small {
  color: var(--muted);
  font-size: 12px;
}

.central-skypremium-section {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(255, 208, 111, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 208, 111, 0.11), rgba(135, 90, 28, 0.07)),
    rgba(12, 20, 35, 0.3);
}

.central-skypremium-list {
  display: grid;
  gap: 10px;
  max-height: 580px;
  overflow: auto;
}

.central-skypremium-card {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(150px, 0.42fr) auto;
  gap: 14px;
  align-items: end;
  padding: 13px;
  border: 1px solid rgba(255, 224, 165, 0.15);
  border-radius: 10px;
  background: rgba(255, 248, 236, 0.06);
}

.central-skypremium-card .economy-server-title {
  align-self: center;
}

.central-skypremium-card .economy-server-title small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.central-skypremium-card .economy-server-title span.ok {
  color: #aeeacb;
}

.central-skypremium-card > label {
  display: grid;
  gap: 6px;
}

.central-skypremium-card > label > span {
  color: var(--muted);
  font-size: 11px;
}

.central-skypremium-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.central-skypremium-actions > span {
  min-height: 16px;
  color: var(--muted);
  font-size: 11px;
}

.central-skypremium-actions > span.warn {
  color: #ffe0a5;
}

.central-default-missions {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(126, 216, 255, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(37, 116, 154, 0.12), rgba(32, 73, 112, 0.08)),
    rgba(7, 16, 31, 0.32);
}

.central-default-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.central-default-heading > div {
  display: grid;
  gap: 4px;
}

.central-default-heading strong {
  font-size: 18px;
}

.central-default-heading small {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.45;
}

.central-default-catalog-heading {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 248, 236, 0.11);
}

.central-default-mission-list {
  max-height: 560px;
}

.central-default-mission-item {
  grid-template-columns: 120px minmax(0, 1fr) auto;
}

.central-default-mission-item > img {
  width: 120px;
}

.central-default-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 248, 236, 0.11);
}

.central-default-actions > span {
  color: var(--muted);
  font-size: 12px;
}

.central-default-actions > span.ok {
  color: #aeeacb;
}

.central-default-actions > span.warn {
  color: #ffe0a5;
}

.economy-section-title {
  margin: 4px 0 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 248, 236, 0.12);
}

.economy-section-title strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.economy-section-title > span,
.economy-locked {
  color: var(--muted);
  font-size: 13px;
}

.economy-locked {
  padding: 14px;
  border: 1px solid rgba(255, 248, 236, 0.12);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.08);
}

.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;
}

.mission-mode-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  gap: 10px;
  margin-top: 20px;
}

.mission-mode-button {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid rgba(213, 239, 255, 0.15);
  border-radius: 14px;
  color: #e8f4ff;
  text-align: left;
  background: rgba(3, 12, 28, 0.32);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.mission-mode-button:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 216, 255, 0.42);
}

.mission-mode-button.active {
  border-color: #7ed8ff;
  background: linear-gradient(145deg, rgba(37, 116, 154, 0.3), rgba(32, 73, 112, 0.22));
  box-shadow: 0 0 0 2px rgba(126, 216, 255, 0.09);
}

.mission-mode-button strong {
  font-size: 14px;
}

.mission-mode-button span {
  color: rgba(222, 241, 255, 0.62);
  font-size: 11px;
  line-height: 1.4;
}

.mission-today-panel,
.mission-catalog-panel {
  max-width: 820px;
  margin-top: 20px;
}

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

.mission-today-card {
  overflow: hidden;
  border: 1px solid rgba(213, 239, 255, 0.13);
  border-radius: 13px;
  background: rgba(3, 12, 28, 0.3);
}

.mission-today-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.03);
}

.mission-today-card div {
  display: grid;
  gap: 3px;
  padding: 10px 12px 12px;
}

.mission-today-card span {
  color: #ffe0a5;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-today-card strong {
  overflow: hidden;
  color: #f5f9fd;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-title-locked[readonly] {
  color: rgba(236, 246, 255, 0.76);
  background: rgba(255, 255, 255, 0.035);
  cursor: not-allowed;
}

.mission-catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.mission-catalog-workspace {
  max-width: 820px;
  margin-top: 20px;
}

.mission-catalog-workspace .mission-catalog-panel {
  max-width: none;
  margin-top: 0;
}

.mission-catalog-view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px;
  border: 1px solid rgba(213, 239, 255, 0.12);
  border-radius: 14px;
  background: rgba(3, 12, 28, 0.34);
}

.mission-catalog-view-tabs button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(231, 242, 250, 0.62);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.mission-catalog-view-tabs button:hover {
  color: #f4f8fc;
  background: rgba(255, 255, 255, 0.035);
}

.mission-catalog-view-tabs button.active {
  border-color: rgba(126, 231, 199, 0.3);
  color: #dffff4;
  background: linear-gradient(135deg, rgba(77, 190, 156, 0.2), rgba(32, 91, 76, 0.13));
  box-shadow: inset 0 0 0 1px rgba(126, 231, 199, 0.05);
}

.mission-catalog-view-panel.view-enter {
  animation: mission-catalog-view-enter 220ms ease both;
}

@keyframes mission-catalog-view-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mission-theme-panel {
  overflow: hidden;
  border: 1px solid rgba(213, 239, 255, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(118, 203, 174, 0.13), transparent 34%),
    rgba(3, 12, 28, 0.42);
}

.mission-theme-heading {
  display: grid;
  gap: 7px;
  padding: 15px 16px 13px;
  border-bottom: 1px solid rgba(213, 239, 255, 0.1);
}

.mission-theme-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mission-theme-heading strong {
  color: #f4f8fc;
  font-size: 14px;
}

.mission-theme-heading small,
.mission-theme-summary small {
  color: rgba(222, 241, 255, 0.56);
  font-size: 10px;
  line-height: 1.45;
}

.mission-theme-kicker {
  padding: 4px 8px;
  border: 1px solid rgba(126, 231, 199, 0.22);
  border-radius: 999px;
  color: #9ce8cf;
  background: rgba(77, 190, 156, 0.1);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-theme-realms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 12px 12px 10px;
}

.mission-theme-realms button {
  padding: 7px 9px;
  border: 1px solid rgba(213, 239, 255, 0.12);
  border-radius: 9px;
  color: rgba(231, 242, 250, 0.72);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.mission-theme-realms button:last-child {
  grid-column: 1 / -1;
}

.mission-theme-realms button.active {
  border-color: rgba(126, 231, 199, 0.42);
  color: #dffff4;
  background: rgba(77, 190, 156, 0.16);
  box-shadow: inset 0 0 0 1px rgba(126, 231, 199, 0.06);
}

.mission-theme-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 9px;
}

.mission-theme-summary > span {
  color: #ffe0a5;
  font-size: 11px;
  font-weight: 850;
}

.mission-theme-list {
  display: grid;
  max-height: 620px;
  gap: 10px;
  padding: 0 12px 12px;
  overflow-y: auto;
}

.mission-theme-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 11px;
  border: 1px solid rgba(213, 239, 255, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(3, 12, 28, 0.34);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mission-theme-item.configured {
  border-color: rgba(126, 231, 199, 0.4);
  background:
    radial-gradient(circle at 0% 0%, rgba(77, 190, 156, 0.16), transparent 52%),
    rgba(3, 18, 31, 0.58);
  box-shadow: 0 10px 28px rgba(17, 116, 91, 0.12), inset 0 0 0 1px rgba(126, 231, 199, 0.05);
}

.mission-theme-preview {
  position: relative;
  min-height: 78px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(213, 239, 255, 0.13);
  border-radius: 11px;
  background: rgba(0, 7, 20, 0.7);
  cursor: zoom-in;
}

.mission-theme-preview img {
  display: block;
  width: 100%;
  height: 78px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.mission-theme-preview:hover img {
  transform: scale(1.045);
}

.mission-theme-preview span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #f3fbff;
  background: rgba(0, 8, 20, 0.76);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(7px);
}

.mission-theme-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 9px;
}

.mission-theme-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 8px;
}

.mission-theme-item strong {
  overflow: hidden;
  color: #f4f8fc;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-theme-state {
  flex: 0 0 auto;
  color: rgba(222, 241, 255, 0.46);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-theme-state.configured {
  color: #9ce8cf;
}

.mission-theme-image-input {
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  font-size: 10px;
}

.mission-display-controls {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 15px;
  border: 1px solid rgba(255, 210, 124, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 190, 87, 0.12), transparent 38%),
    rgba(17, 14, 12, 0.38);
}

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

.mission-display-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(255, 235, 200, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.mission-display-toggle:has(input:checked) {
  border-color: rgba(255, 207, 105, 0.4);
  background: rgba(255, 190, 70, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 224, 159, 0.05);
}

.mission-display-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: #ffc45f;
}

.mission-display-toggle > span {
  display: grid;
  gap: 4px;
}

.mission-display-toggle strong {
  color: #fff7e7;
  font-size: 11px;
}

.mission-display-toggle small,
.mission-refresh-row > span {
  color: rgba(235, 241, 247, 0.62);
  font-size: 9px;
  line-height: 1.45;
}

.mission-refresh-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 4px;
}

.mission-refresh-row > span.ok {
  color: #9ce8cf;
}

.mission-refresh-row > span.warn {
  color: #ffd08a;
}

.mission-container-candle-preview {
  display: grid;
  gap: 8px;
}

.mission-container-candle-preview:empty {
  display: none;
}

.mission-container-candle-preview section {
  display: grid;
  gap: 5px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 224, 165, 0.14);
}

.mission-container-candle-preview strong {
  color: #ffe0a3;
  font-size: 9px;
}

.mission-container-candle-preview img {
  display: block;
  width: 100%;
  max-height: 180px;
  border-radius: 10px;
  object-fit: cover;
}

.central-default-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .mission-display-toggle-grid {
    grid-template-columns: 1fr;
  }

  .mission-refresh-row,
  .central-default-heading-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mission-refresh-row .primary-button,
  .central-default-heading-actions > * {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .mission-theme-item {
    grid-template-columns: 1fr;
  }

  .mission-theme-preview,
  .mission-theme-preview img {
    min-height: 126px;
    height: 126px;
  }
}

.mission-catalog-heading > div {
  display: grid;
  gap: 3px;
}

.mission-catalog-heading small,
.mission-catalog-count {
  color: rgba(222, 241, 255, 0.58);
  font-size: 11px;
}

.mission-catalog-search {
  display: grid;
  width: min(320px, 100%);
  gap: 5px;
}

.mission-catalog-search span {
  color: rgba(222, 241, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
}

.mission-catalog-count {
  margin: 10px 0 7px;
}

.mission-catalog-list {
  display: grid;
  max-height: 430px;
  gap: 7px;
  padding-right: 5px;
  overflow-y: auto;
}

.mission-catalog-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border: 1px solid rgba(213, 239, 255, 0.11);
  border-radius: 11px;
  background: rgba(3, 12, 28, 0.28);
}

.mission-catalog-item > img {
  display: block;
  width: 96px;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  object-fit: cover;
}

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

.mission-catalog-copy strong {
  overflow: hidden;
  color: #f4f8fc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-catalog-copy small {
  color: rgba(222, 241, 255, 0.52);
  font-size: 10px;
}

.mission-catalog-image-input {
  width: 100%;
  min-height: 34px;
  margin-top: 2px;
  padding: 7px 9px;
  font-size: 11px;
}

.mission-catalog-badge {
  padding: 5px 7px;
  border-radius: 999px;
  color: #bcd7e8;
  background: rgba(111, 141, 164, 0.15);
  font-size: 9px;
  font-weight: 800;
}

.mission-catalog-badge.customized {
  color: #ffe0a5;
  background: rgba(231, 170, 74, 0.15);
}

.mission-layout-preview {
  max-width: 820px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(213, 239, 255, 0.15);
  border-radius: 18px;
  background: rgba(3, 12, 28, 0.42);
}

.candle-custom-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(183, 225, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(13, 31, 55, 0.9), rgba(20, 15, 43, 0.88));
}

.candle-custom-tabs,
.candle-custom-realms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.candle-custom-tabs button,
.candle-custom-realms button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(212, 239, 255, 0.18);
  border-radius: 999px;
  color: rgba(238, 249, 255, 0.76);
  background: rgba(225, 246, 255, 0.07);
  cursor: pointer;
}

.candle-custom-tabs button.active,
.candle-custom-realms button.active {
  color: #172235;
  border-color: rgba(255, 220, 151, 0.75);
  background: linear-gradient(135deg, #ffe2a8, #9ee5ff);
}

.candle-custom-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(232, 247, 255, 0.68);
}

.candle-custom-summary span {
  color: #f8fcff;
  font-weight: 800;
}

.candle-custom-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: 14px;
}

.candle-custom-list {
  display: grid;
  gap: 10px;
}

.candle-custom-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(212, 240, 255, 0.14);
  border-radius: 16px;
  background: rgba(224, 245, 255, 0.055);
}

.candle-custom-item > img {
  width: 128px;
  aspect-ratio: 16 / 9;
  border-radius: 11px;
  object-fit: cover;
  background: rgba(0, 7, 20, 0.58);
}

.candle-custom-item > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.candle-custom-item input {
  width: 100%;
}

.candle-custom-item button {
  justify-self: start;
  padding: 6px 10px;
  border: 0;
  color: #aadfff;
  background: transparent;
  cursor: pointer;
}

.candle-custom-state {
  color: rgba(225, 242, 252, 0.55);
}

.candle-custom-state.configured {
  color: #9df3c8;
}

.candle-custom-preview {
  align-self: start;
  position: sticky;
  top: 14px;
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(255, 222, 158, 0.22);
  border-radius: 17px;
  background: rgba(2, 12, 28, 0.68);
}

.candle-custom-preview > span {
  color: #ffdca3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.candle-custom-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(0, 7, 20, 0.7);
}

.candle-custom-preview small {
  color: rgba(226, 243, 255, 0.58);
  line-height: 1.45;
}

@media (max-width: 780px) {
  .candle-custom-workspace {
    grid-template-columns: 1fr;
  }

  .candle-custom-preview {
    position: static;
  }
}

@media (max-width: 520px) {
  .candle-custom-item {
    grid-template-columns: 1fr;
  }

  .candle-custom-item > img {
    width: 100%;
  }

  .candle-custom-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

.mission-editor-grid {
  max-width: 820px;
  margin-top: 20px;
}

.mission-editor-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.mission-editor-heading small {
  color: rgba(222, 241, 255, 0.58);
}

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

.mission-editor-cards article {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(213, 239, 255, 0.13);
  border-radius: 13px;
  background: rgba(3, 12, 28, 0.3);
}

.mission-editor-cards b {
  color: #ffe0a5;
  font-size: 12px;
}

.mission-layout-preview-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.mission-layout-preview-heading > span {
  color: #f7fbff;
  font-size: 14px;
  font-weight: 800;
}

.mission-layout-preview-heading > small {
  color: rgba(222, 241, 255, 0.56);
  font-size: 11px;
}

.mission-discord-preview {
  max-height: 540px;
  padding: 15px;
  border-radius: 14px;
  color: #eef3f7;
  background: #25283a;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  overflow-x: hidden;
  overflow-y: auto;
}

.mission-preview-author {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  font-size: 12px;
}

.mission-preview-avatar {
  background-position: center;
  background-size: cover;
}

.skypremium-preview-banner {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.skypremium-preview-bio {
  margin: 0 0 12px;
  color: var(--muted);
  white-space: pre-wrap;
}

.mission-preview-author small {
  color: #949ba4;
  font-size: 10px;
}

.mission-preview-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #23334a;
  background: linear-gradient(135deg, #ffe0aa, #aee5ff);
  font-size: 12px;
  font-weight: 900;
}

.mission-container-demo {
  display: grid;
  gap: 10px;
  max-width: 560px;
  padding: 14px;
  border-left: 4px solid #f3c97a;
  border-radius: 4px 12px 12px 4px;
  background: rgba(12, 14, 22, 0.44);
}

.mission-container-demo > strong,
.mission-free-demo > strong {
  font-size: 12px;
}

.mission-container-demo > small {
  color: #d2d6dc;
  font-size: 10px;
  line-height: 1.45;
}

.mission-demo-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.mission-container-quests,
.mission-free-images {
  display: grid;
  gap: 7px;
}

.mission-container-quests {
  grid-template-columns: 1fr;
}

.mission-container-quests section {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.mission-container-quests section > strong {
  display: -webkit-box;
  min-height: 27px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 10px;
  line-height: 1.35;
}

.mission-container-quests img,
.mission-free-images img,
.mission-free-candle,
.mission-free-seasonal {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  border-radius: 7px;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.24) contrast(1.04);
  background:
    linear-gradient(155deg, rgba(115, 216, 255, 0.68), rgba(81, 119, 89, 0.75)),
    #394657;
}

.mission-container-quests img,
.mission-free-images img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mission-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mission-demo-actions span {
  padding: 5px 8px;
  border-radius: 5px;
  color: #d9dee5;
  background: #4e5058;
  font-size: 9px;
  font-weight: 700;
}

.mission-free-demo {
  display: grid;
  gap: 8px;
  max-width: 560px;
}

.mission-free-heading {
  display: grid;
  gap: 3px;
  padding-left: 8px;
  border-left: 3px solid #b7c8dd;
}

.mission-free-heading > strong {
  font-size: 12px;
}

.mission-free-heading > small {
  color: #b9bec7;
  font-size: 9px;
}

.mission-free-images {
  grid-template-columns: 1fr;
}

.mission-free-images img {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mission-free-candle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.mission-free-candle-grid section {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.mission-free-candle-grid strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .mission-mode-picker,
  .mission-today-grid {
    grid-template-columns: 1fr;
  }

  .mission-catalog-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .mission-catalog-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .mission-catalog-item > img {
    width: 76px;
  }

  .mission-catalog-badge {
    grid-column: 2;
    justify-self: start;
  }

  .mission-editor-cards {
    grid-template-columns: 1fr;
  }

  .mission-layout-preview-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .mission-discord-preview {
    max-height: 460px;
  }
}

.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;
}

.panel-help {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.live-events-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.live-event-config-card {
  display: grid;
  gap: 11px;
  padding: 15px;
  border: 1px solid rgba(161, 189, 255, 0.2);
  border-radius: 15px;
  background: rgba(11, 19, 41, 0.48);
}

.live-event-config-card h4 {
  margin: 0;
  font-size: 0.96rem;
}

.live-event-config-card label:not(.toggle-line) {
  display: grid;
  gap: 6px;
}

.live-event-config-card label > span {
  color: var(--muted);
  font-size: 0.79rem;
}

.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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.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;
  }

  .central-grid,
  .central-teia-card {
    grid-template-columns: 1fr;
  }

  .central-teia-card .primary-button {
    width: 100%;
  }

  .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;
  }

  .central-card-heading,
  .economy-section-title,
  .central-server-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .central-card-heading,
  .economy-section-title {
    display: grid;
  }

  .central-default-heading,
  .central-default-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .central-default-heading .primary-button,
  .central-default-actions .primary-button {
    width: 100%;
  }

  .central-default-mission-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .central-default-mission-item > img {
    width: 76px;
  }

  .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 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;
  }
}

/* DisCloud edition — the dashboard lives in the Valley of Triumph. */
:root {
  --night: #07101e;
  --navy: #0e1c32;
  --ice: #dff8ff;
  --sky: #9ee8ff;
  --sun: #ffd087;
  --violet: #b6a5ff;
  --glass: rgba(8, 21, 40, 0.56);
  --glass-strong: rgba(7, 17, 33, 0.76);
  --border: rgba(224, 247, 255, 0.2);
  --shadow-deep: 0 30px 80px rgba(0, 5, 18, 0.48);
  --page-image: url("https://i.pinimg.com/1200x/de/ca/c3/decac39d367fed80a04dd7054424afa8.jpg");
  --text: #f5fbff;
  --muted: rgba(229, 245, 255, 0.72);
  --line: var(--border);
  --panel: var(--glass);
  --panel-2: rgba(170, 226, 255, 0.12);
  --ink: #07111f;
  --gold: var(--sun);
  --teal: var(--sky);
  --coral: #ffb28b;
  --green: #a8f0cf;
  --shadow: var(--shadow-deep);
  --soft-shadow: 0 18px 44px rgba(0, 7, 22, 0.26);
}

body {
  background:
    linear-gradient(180deg, rgba(3, 12, 28, 0.2) 0%, rgba(5, 15, 31, 0.62) 52%, rgba(4, 10, 22, 0.96) 100%),
    var(--page-image) center / cover;
}

body::before {
  background:
    radial-gradient(ellipse 70% 46% at 80% 5%, rgba(160, 232, 255, 0.22), transparent 68%),
    radial-gradient(ellipse 48% 42% at 14% 42%, rgba(255, 184, 119, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(4, 10, 24, 0.18), rgba(3, 12, 27, 0.74));
}

body::after {
  opacity: 0.62;
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 14%, rgba(224, 250, 255, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 42%, rgba(255, 212, 137, 0.8) 0 1px, transparent 2px);
}

.landing {
  width: min(1500px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding: 18px clamp(20px, 5vw, 76px) 48px;
}

.landing-nav {
  min-height: 70px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(225, 248, 255, 0.14);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.brand {
  gap: 13px;
}

.brand img,
.login-mark {
  width: 47px;
  height: 47px;
  border-color: rgba(229, 248, 255, 0.46);
  box-shadow: 0 0 0 5px rgba(194, 237, 255, 0.09), 0 12px 30px rgba(0, 6, 18, 0.34);
}

.brand strong {
  font-size: 21px;
  letter-spacing: -0.04em;
}

.brand span {
  color: rgba(215, 241, 255, 0.65);
  letter-spacing: 0.02em;
}

.primary-button,
.ghost-button,
.hero-link {
  border-radius: 999px;
  font-weight: 750;
}

.primary-button {
  min-height: 44px;
  color: #07111f;
  background: linear-gradient(135deg, #fcf5cf 0%, #ffd18b 44%, #ffad82 100%);
  box-shadow: 0 12px 26px rgba(255, 163, 108, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 34px rgba(255, 170, 111, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ghost-button {
  min-height: 44px;
  color: var(--ice);
  border-color: rgba(230, 249, 255, 0.25);
  background: rgba(9, 25, 46, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ghost-button:hover:not(:disabled) {
  background: rgba(154, 226, 255, 0.14);
  border-color: rgba(216, 247, 255, 0.45);
}

.hero {
  grid-template-columns: minmax(320px, 1.08fr) minmax(340px, 0.8fr);
  gap: clamp(38px, 7vw, 112px);
  align-items: center;
  min-height: min(740px, calc(100vh - 112px));
  padding: clamp(48px, 8vh, 92px) 0 clamp(40px, 6vh, 72px);
}

.hero-copy {
  gap: 21px;
  max-width: 780px;
  animation: rise-in 800ms 80ms both cubic-bezier(0.2, 0.75, 0.25, 1);
}

.hero-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 10px;
  border: 1px solid rgba(228, 248, 255, 0.18);
  border-radius: 999px;
  color: rgba(232, 249, 255, 0.85);
  background: rgba(8, 25, 45, 0.33);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker i,
.status-pulse {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #b9ffd9;
  box-shadow: 0 0 0 5px rgba(169, 255, 208, 0.1), 0 0 18px rgba(169, 255, 208, 0.8);
  animation: pulse-ring 2.3s ease-in-out infinite;
}

.hero-copy h1 {
  max-width: 800px;
  font-size: clamp(56px, 7.4vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.075em;
  text-wrap: balance;
  text-shadow: 0 12px 42px rgba(0, 7, 23, 0.32);
}

.hero-copy h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.075em;
  color: #ffe2a9;
}

.hero-copy p {
  max-width: 610px;
  color: rgba(237, 249, 255, 0.85);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.62;
}

.hero-actions {
  gap: 14px;
  margin-top: 4px;
}

.hero-primary {
  min-height: 54px;
  padding: 0 22px;
  font-size: 15px;
}

.hero-primary span {
  margin-left: 4px;
  font-size: 20px;
  transition: transform 180ms ease;
}

.hero-primary:hover span {
  transform: translateX(3px);
}

.hero-link {
  min-height: 46px;
  padding: 0 8px;
  color: #e9f7ff;
  background: transparent;
  border: 0;
}

.hero-link span {
  color: var(--sun);
  font-size: 22px;
  margin-left: 5px;
}

.auth-hint {
  min-height: 18px;
  color: rgba(229, 246, 255, 0.58);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 19px;
  margin-top: 4px;
  color: rgba(233, 247, 255, 0.62);
  font-size: 12px;
}

.hero-proof span + span {
  padding-left: 19px;
  border-left: 1px solid rgba(224, 247, 255, 0.2);
}

.hero-proof b {
  color: #fff5db;
  font-size: 13px;
}

.hero-panel {
  min-height: 490px;
  width: min(100%, 510px);
  padding: 29px;
  border-color: rgba(229, 248, 255, 0.36);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(210, 244, 255, 0.18), rgba(74, 143, 194, 0.06) 42%, rgba(8, 21, 42, 0.2)),
    rgba(7, 22, 44, 0.27);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  transform: rotate(1.6deg);
  animation: card-enter 900ms 180ms both cubic-bezier(0.2, 0.75, 0.25, 1), card-float 7s 1.2s ease-in-out infinite;
}

.hero-panel::before {
  opacity: 0.32;
  background: linear-gradient(142deg, rgba(255, 245, 213, 0.2), transparent 42%, rgba(149, 193, 255, 0.15));
}

.feature-head,
.feature-grid,
.panel-status {
  position: relative;
  z-index: 2;
}

.feature-head {
  display: grid;
  gap: 6px;
  margin-bottom: 21px;
}

.feature-head span {
  color: var(--sun);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.feature-head strong {
  max-width: 280px;
  color: #f8fcff;
  font-size: 27px;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.feature-grid {
  gap: 10px;
}

.feature-grid div {
  min-height: 122px;
  align-content: center;
  gap: 7px;
  padding: 16px;
  border-color: rgba(224, 248, 255, 0.16);
  border-radius: 17px;
  background: rgba(6, 24, 48, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.feature-grid div:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 249, 255, 0.4);
  background: rgba(113, 187, 237, 0.15);
}

.feature-grid .feature-main {
  background: linear-gradient(140deg, rgba(255, 201, 125, 0.19), rgba(134, 212, 255, 0.08));
}

.feature-symbol {
  color: #ffe2a5;
  font-size: 21px;
  line-height: 1;
}

.feature-grid strong {
  font-size: 15px;
  letter-spacing: -0.025em;
}

.feature-grid span:not(.feature-symbol) {
  color: rgba(231, 247, 255, 0.65);
  font-size: 12px;
}

.panel-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
  color: rgba(226, 248, 255, 0.66);
  font-size: 12px;
}

.panel-status .status-pulse {
  width: 6px;
  height: 6px;
}

.panel-orbit {
  position: absolute;
  z-index: 1;
  width: 200px;
  aspect-ratio: 1;
  border: 1px solid rgba(207, 244, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  top: -120px;
  right: -92px;
}

.orbit-two {
  right: -44px;
  bottom: -150px;
  width: 270px;
}

.landing-live {
  position: relative;
  margin: 0;
  gap: 14px;
  padding: 0;
  animation: rise-in 850ms 260ms both cubic-bezier(0.2, 0.75, 0.25, 1);
}

.live-card,
.daily-event-card,
.founders-strip,
.socio-strip {
  border-color: rgba(220, 246, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(11, 30, 55, 0.68), rgba(7, 17, 34, 0.5));
  box-shadow: 0 16px 34px rgba(0, 6, 20, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.live-card:hover,
.daily-event-card:hover {
  transform: translateY(-3px);
  border-color: rgba(228, 249, 255, 0.34);
}

.live-kicker,
.founders-kicker,
.sponsors-heading span {
  color: #ffd899;
}

.founders-strip {
  margin-top: 24px;
  padding: 23px;
  border-radius: 22px;
}

.founders-strip::before {
  width: 3px;
  background: linear-gradient(180deg, #fff0c0, #ffd08a, #a7e7ff);
}

.founders-heading strong {
  font-size: clamp(27px, 3vw, 40px);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.founder-card,
.sponsor-card {
  border-color: rgba(225, 248, 255, 0.16);
  border-radius: 14px;
  background: rgba(193, 235, 255, 0.08);
}

.shell {
  min-height: 100vh;
  background: rgba(4, 13, 28, 0.28);
}

.sidebar,
.topbar,
.tabs {
  background: rgba(6, 18, 37, 0.72);
  border-color: rgba(220, 246, 255, 0.16);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
}

.sidebar {
  padding: 20px;
}

.topbar {
  min-height: 100px;
}

.tabs {
  border-bottom: 1px solid rgba(220, 246, 255, 0.16);
}

.tab {
  border-radius: 12px;
}

.tab.active {
  color: #07121f;
  background: linear-gradient(135deg, #d6f6ff, #9edfff);
  box-shadow: 0 8px 18px rgba(113, 210, 255, 0.17);
}

.panel,
.install-strip,
.quick-card,
.savebar,
.login-panel {
  border-color: rgba(222, 247, 255, 0.19);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 47, 76, 0.68), rgba(7, 18, 38, 0.7));
  box-shadow: var(--soft-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.quick-card,
.install-strip {
  border-radius: 16px;
}

input,
select,
textarea {
  border-color: rgba(223, 246, 255, 0.18);
  border-radius: 11px;
  background: rgba(3, 14, 31, 0.5);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sky);
  background: rgba(3, 14, 31, 0.72);
  box-shadow: 0 0 0 3px rgba(158, 232, 255, 0.13);
}

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

@keyframes card-enter {
  from { opacity: 0; transform: translateY(35px) rotate(4deg) scale(0.96); }
  to { opacity: 1; transform: translateY(0) rotate(1.6deg) scale(1); }
}

@keyframes card-float {
  0%, 100% { transform: translateY(0) rotate(1.6deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.8); opacity: 0.68; }
}

@media (max-width: 880px) {
  .landing { padding: 14px 24px 36px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 72px 0 42px; }
  .hero-panel { width: min(100%, 560px); justify-self: start; transform: none; animation: rise-in 700ms 150ms both; }
  .hero-copy h1 { font-size: clamp(54px, 12vw, 88px); }
}

@media (max-width: 560px) {
  .landing { padding: 12px 16px 28px; }
  .landing-nav { align-items: center; min-height: 60px; }
  .landing-actions { gap: 7px; }
  .landing-actions .ghost-button { display: none; }
  .hero { padding: 60px 0 34px; gap: 40px; }
  .hero-copy { gap: 17px; }
  .hero-copy h1 { font-size: clamp(50px, 16vw, 72px); line-height: 0.91; }
  .hero-copy p { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 4px; }
  .hero-primary { width: 100%; }
  .hero-proof { gap: 8px 11px; font-size: 11px; }
  .hero-proof span + span { padding-left: 11px; }
  .hero-panel { min-height: auto; padding: 22px; border-radius: 21px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid div { min-height: 92px; }
  .founders-strip { padding: 19px; }
}

/* Abertura: nuvens se afastam e revelam o dashboard. */
.arrival-gate {
  isolation: isolate;
  background: #0a1930;
}

.arrival-gate::before {
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(ellipse 55% 50% at 50% 38%, rgba(255, 218, 158, 0.42), transparent 65%),
    linear-gradient(180deg, rgba(8, 24, 53, 0.15), rgba(6, 14, 33, 0.58)),
    var(--page-image) center / cover;
  transition: opacity 1.1s ease;
}

.arrival-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.34;
  background:
    radial-gradient(circle at 22% 28%, rgba(243, 251, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 18%, rgba(243, 251, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 68%, rgba(255, 220, 158, 0.85) 0 1px, transparent 2px);
  background-size: 190px 165px, 260px 220px, 320px 280px;
  animation: arrival-stars 5s linear infinite;
}

.arrival-gate .cloud-gate-scene {
  overflow: hidden;
  transition: opacity 500ms ease;
}

.arrival-gate .cloud-gate-cloud {
  width: clamp(380px, 62vw, 920px);
  height: clamp(180px, 30vw, 400px);
  background: url("/assets/cloud-fog.svg") center / 100% 100% no-repeat;
  filter:
    hue-rotate(142deg)
    saturate(0.52)
    brightness(1.14)
    drop-shadow(0 16px 22px rgba(22, 61, 96, 0.18))
    drop-shadow(0 0 30px rgba(255, 232, 182, 0.22));
  opacity: 0.98;
}

.arrival-gate .cloud-gate-cloud-a { left: -25vw; top: -13vh; transform: rotate(-8deg); animation: arrival-drift-a 3.8s ease-in-out infinite alternate; }
.arrival-gate .cloud-gate-cloud-b { right: -23vw; top: -16vh; transform: scaleX(-1) rotate(-10deg); animation: arrival-drift-b 4.4s ease-in-out infinite alternate; }
.arrival-gate .cloud-gate-cloud-c { left: 8vw; top: 10vh; width: clamp(570px, 94vw, 1240px); opacity: 0.88; animation: arrival-drift-c 5.2s ease-in-out infinite alternate; }
.arrival-gate .cloud-gate-cloud-d { left: -27vw; bottom: -10vh; transform: rotate(8deg); animation: arrival-drift-b 4.8s ease-in-out infinite alternate; }
.arrival-gate .cloud-gate-cloud-e { right: -28vw; bottom: -13vh; transform: scaleX(-1) rotate(7deg); animation: arrival-drift-a 4.2s ease-in-out infinite alternate; }
.arrival-gate .cloud-gate-cloud-f { left: 15vw; bottom: -18vh; width: clamp(540px, 88vw, 1100px); opacity: 0.9; animation: arrival-drift-c 5.6s ease-in-out infinite alternate; }
.arrival-gate .cloud-gate-cloud-g { left: -25vw; top: 39vh; opacity: 0.82; animation: arrival-drift-a 4.6s ease-in-out infinite alternate; }
.arrival-gate .cloud-gate-cloud-h { right: -25vw; top: 40vh; transform: scaleX(-1); opacity: 0.82; animation: arrival-drift-b 4.8s ease-in-out infinite alternate; }
.arrival-gate .cloud-gate-cloud-i { left: 29vw; top: 45vh; width: clamp(340px, 55vw, 720px); opacity: 0.82; animation: arrival-drift-c 4.1s ease-in-out infinite alternate; }

.arrival-mark {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #f8fcff;
  text-shadow: 0 3px 18px rgba(8, 20, 39, 0.56);
  animation: arrival-mark-in 750ms 170ms both ease-out;
}

.arrival-mark img {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(250, 254, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(240, 250, 255, 0.12), 0 20px 42px rgba(6, 17, 37, 0.26);
  object-fit: cover;
}

.arrival-mark span {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.arrival-gate.is-hiding::before,
.arrival-gate.is-hiding .arrival-sky,
.arrival-gate.is-hiding .arrival-mark {
  opacity: 0;
}

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

.arrival-gate.is-hiding .cloud-gate-cloud {
  filter:
    hue-rotate(142deg)
    saturate(0.52)
    brightness(1.14)
    drop-shadow(0 16px 22px rgba(22, 61, 96, 0.18))
    drop-shadow(0 0 30px rgba(255, 232, 182, 0.22));
  opacity: 0.96;
  transition: transform 1.15s cubic-bezier(0.68, 0, 0.18, 1), opacity 700ms ease;
}

.arrival-gate.is-hiding .cloud-gate-cloud-a { transform: translate3d(-86vw, -54vh, 0) rotate(-12deg); }
.arrival-gate.is-hiding .cloud-gate-cloud-b { transform: translate3d(86vw, -54vh, 0) scaleX(-1) rotate(-12deg); }
.arrival-gate.is-hiding .cloud-gate-cloud-c { transform: translate3d(0, -88vh, 0) scale(1.1); }
.arrival-gate.is-hiding .cloud-gate-cloud-d { transform: translate3d(-88vw, 52vh, 0) rotate(12deg); }
.arrival-gate.is-hiding .cloud-gate-cloud-e { transform: translate3d(88vw, 54vh, 0) scaleX(-1) rotate(12deg); }
.arrival-gate.is-hiding .cloud-gate-cloud-f { transform: translate3d(0, 96vh, 0) scale(1.12); }
.arrival-gate.is-hiding .cloud-gate-cloud-g { transform: translate3d(-96vw, 0, 0); }
.arrival-gate.is-hiding .cloud-gate-cloud-h { transform: translate3d(96vw, 0, 0) scaleX(-1); }
.arrival-gate.is-hiding .cloud-gate-cloud-i { transform: translate3d(0, 86vh, 0) scale(1.14); }

@keyframes arrival-stars {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 170px 120px, -150px 180px, 110px -160px; }
}

@keyframes arrival-drift-a {
  from { margin-top: -16px; margin-left: -14px; }
  to { margin-top: 12px; margin-left: 20px; }
}

@keyframes arrival-drift-b {
  from { margin-top: 14px; margin-right: -18px; }
  to { margin-top: -12px; margin-right: 16px; }
}

@keyframes arrival-drift-c {
  from { margin-top: -12px; }
  to { margin-top: 16px; }
}

@keyframes arrival-mark-in {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .arrival-mark img { width: 62px; height: 62px; }
  .arrival-mark span { font-size: 9px; }
  .arrival-gate .cloud-gate-cloud {
    filter:
      hue-rotate(142deg)
      saturate(0.52)
      brightness(1.14)
      drop-shadow(0 12px 18px rgba(22, 61, 96, 0.18));
  }
}

/* Abertura limpa — sem nuvens, apenas a identidade da Milky entrando em cena. */
.intro-gate {
  isolation: isolate;
  opacity: 1;
  background: #071326;
  transition: opacity 900ms cubic-bezier(0.65, 0, 0.25, 1);
}

.intro-gate::before {
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 211, 139, 0.22), transparent 19%),
    radial-gradient(ellipse 70% 50% at 50% 112%, rgba(86, 164, 226, 0.2), transparent 64%),
    linear-gradient(145deg, #091a33 0%, #071326 52%, #050d1b 100%);
  transition: opacity 600ms ease;
}

.intro-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 19% 27%, rgba(242, 251, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 77% 22%, rgba(242, 251, 255, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 71% 72%, rgba(255, 218, 156, 0.75) 0 1px, transparent 2px);
  background-size: 210px 185px, 280px 240px, 340px 290px;
  animation: intro-stars 5s linear infinite;
}

.intro-beam {
  position: absolute;
  z-index: 1;
  width: 42vw;
  min-width: 410px;
  height: 140vh;
  pointer-events: none;
  opacity: 0.2;
  background: linear-gradient(90deg, transparent, rgba(180, 230, 255, 0.72), transparent);
  filter: blur(24px);
}

.intro-beam-one {
  top: -26vh;
  left: -9vw;
  transform: rotate(29deg);
  animation: intro-beam-one 2.8s ease-in-out infinite alternate;
}

.intro-beam-two {
  right: -14vw;
  bottom: -34vh;
  opacity: 0.16;
  transform: rotate(27deg);
  animation: intro-beam-two 3.6s ease-in-out infinite alternate;
}

.intro-mark {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 13px;
  color: #f8fcff;
  text-shadow: 0 3px 18px rgba(8, 20, 39, 0.56);
  animation: intro-mark-in 740ms 90ms both cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: opacity 420ms ease, transform 700ms cubic-bezier(0.7, 0, 0.2, 1);
}

.intro-mark img {
  width: 80px;
  height: 80px;
  border: 1px solid rgba(250, 254, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(240, 250, 255, 0.1), 0 0 44px rgba(255, 213, 146, 0.25), 0 22px 42px rgba(6, 17, 37, 0.28);
  object-fit: cover;
  animation: intro-logo-float 2.7s ease-in-out infinite;
}

.intro-mark span {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro-gate.is-hiding {
  opacity: 0;
}

.intro-gate.is-hiding::before,
.intro-gate.is-hiding::after {
  opacity: 0;
}

.intro-gate.is-hiding .intro-mark {
  opacity: 0;
  transform: translateY(-14px) scale(1.05);
}

@keyframes intro-stars {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 150px 125px, -130px 170px, 100px -150px; }
}

@keyframes intro-beam-one {
  from { transform: translateX(-6vw) rotate(29deg); opacity: 0.1; }
  to { transform: translateX(8vw) rotate(29deg); opacity: 0.25; }
}

@keyframes intro-beam-two {
  from { transform: translateX(7vw) rotate(27deg); opacity: 0.08; }
  to { transform: translateX(-7vw) rotate(27deg); opacity: 0.22; }
}

@keyframes intro-mark-in {
  from { opacity: 0; transform: translateY(14px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes intro-logo-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.025); }
}

@media (max-width: 560px) {
  .intro-mark img { width: 64px; height: 64px; }
  .intro-mark span { font-size: 9px; }
  .intro-beam { min-width: 300px; filter: blur(18px); }
}

/* Navegação compacta e dashboard público. */
.site-menu-wrap {
  position: relative;
}

.site-menu-toggle {
  width: 48px;
  height: 48px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 0 13px;
  border: 1px solid rgba(230, 249, 255, 0.25);
  border-radius: 50%;
  background: rgba(9, 25, 46, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.site-menu-toggle span {
  width: 100%;
  height: 1.5px;
  display: block;
  border-radius: 2px;
  background: #eefaff;
  transition: transform 220ms ease, opacity 180ms ease;
}

.site-menu-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.site-menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  width: min(336px, calc(100vw - 32px));
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(226, 248, 255, 0.26);
  border-radius: 19px;
  background: rgba(6, 20, 41, 0.78);
  box-shadow: 0 24px 56px rgba(0, 6, 21, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  animation: menu-in 190ms ease both;
}

.site-menu-item {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.site-menu-item:hover {
  border-color: rgba(224, 247, 255, 0.22);
  background: rgba(157, 224, 255, 0.1);
}

.site-menu-main {
  border-color: rgba(255, 213, 143, 0.18);
  background: linear-gradient(135deg, rgba(255, 204, 126, 0.16), rgba(159, 226, 255, 0.1));
}

.site-menu-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #081524;
  background: linear-gradient(135deg, #f8e6b5, #9fe3ff);
  font-size: 20px;
  font-weight: 700;
}

.site-menu-item > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.site-menu-item strong,
.site-menu-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-menu-item strong { font-size: 14px; }
.site-menu-item small { color: rgba(229, 246, 255, 0.6); font-size: 11px; }
.site-menu-item b { color: #ffe1a5; font-size: 19px; }

.site-menu-login {
  min-height: 42px;
  margin-top: 2px;
  border-radius: 12px;
  color: rgba(234, 248, 255, 0.86);
  background: transparent;
  font-size: 13px;
  text-align: center;
}

.site-menu-login:hover { color: #fff9e8; background: rgba(255, 255, 255, 0.06); }
.site-menu-login span { color: var(--sun); margin-left: 4px; }

.landing.dashboard-open {
  min-height: 100vh;
}

.landing.dashboard-open .hero,
.landing.dashboard-open .landing-live,
.landing.dashboard-open .socio-strip,
.landing.dashboard-open .founders-strip {
  display: none;
}

.public-dashboard {
  min-height: calc(100vh - 142px);
  margin-top: clamp(38px, 7vh, 74px);
  padding-bottom: 36px;
  animation: rise-in 460ms ease both;
}

.public-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-bottom: 28px;
}

.public-dashboard-head h2 {
  margin: 16px 0 8px;
  color: #f8fcff;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.85;
  letter-spacing: -0.075em;
}

.public-dashboard-head h2 em {
  color: #ffe0a3;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.public-dashboard-head p {
  margin: 0;
  color: rgba(229, 246, 255, 0.72);
}

.dashboard-close {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(229, 247, 255, 0.22);
  border-radius: 999px;
  color: rgba(236, 249, 255, 0.85);
  background: rgba(6, 22, 43, 0.36);
}

.dashboard-close span { margin-left: 5px; color: var(--sun); font-size: 18px; }

.public-dashboard-tabs {
  display: flex;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 20px;
  padding: 6px;
  border: 1px solid rgba(226, 248, 255, 0.16);
  border-radius: 15px;
  background: rgba(6, 20, 40, 0.45);
  backdrop-filter: blur(16px);
  overflow-x: auto;
}

.public-dashboard-tab {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: rgba(233, 247, 255, 0.72);
  background: transparent;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 750;
}

.public-dashboard-tab.active {
  color: #071526;
  background: linear-gradient(135deg, #d9f5ff, #a8e5ff);
  box-shadow: 0 6px 16px rgba(115, 210, 255, 0.2);
}

.public-dashboard-tab span {
  margin-left: 5px;
  color: inherit;
  font-size: 10px;
  opacity: 0.72;
}

.public-dashboard-panel { display: none; }
.public-dashboard-panel.active { display: grid; animation: rise-in 340ms ease both; }

.dashboard-welcome {
  min-height: 220px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(230, 248, 255, 0.22);
  border-radius: 25px;
  background: linear-gradient(132deg, rgba(30, 73, 111, 0.55), rgba(8, 26, 50, 0.42));
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(21px) saturate(1.2);
}

.dashboard-welcome-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #0a1728;
  background: linear-gradient(135deg, #ffefc5, #ffd38e 50%, #a9e7ff);
  box-shadow: 0 14px 30px rgba(255, 195, 112, 0.18);
  font-size: 30px;
}

.dashboard-welcome h3,
.missions-head h3 { margin: 5px 0 8px; font-size: clamp(25px, 3.4vw, 42px); letter-spacing: -0.06em; }
.dashboard-welcome p,
.missions-head p { max-width: 600px; margin: 0; color: rgba(230, 247, 255, 0.72); line-height: 1.55; }

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 14px;
}

.dashboard-overview-grid article {
  min-height: 145px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 20px;
  border: 1px solid rgba(224, 247, 255, 0.16);
  border-radius: 18px;
  background: rgba(6, 24, 47, 0.4);
  backdrop-filter: blur(14px);
}

.dashboard-overview-grid span { color: #ffd99b; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.dashboard-overview-grid strong { font-size: 24px; letter-spacing: -0.05em; }
.dashboard-overview-grid p { margin: 0; color: rgba(229, 246, 255, 0.64); font-size: 13px; line-height: 1.45; }

.missions-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: clamp(23px, 4vw, 40px);
  border: 1px solid rgba(228, 248, 255, 0.2);
  border-radius: 24px 24px 0 0;
  background: linear-gradient(135deg, rgba(38, 82, 120, 0.56), rgba(8, 25, 48, 0.48));
  backdrop-filter: blur(20px);
}

.missions-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(181, 255, 215, 0.19);
  border-radius: 999px;
  color: rgba(224, 255, 239, 0.82);
  background: rgba(127, 235, 183, 0.08);
  font-size: 11px;
  white-space: nowrap;
}

.missions-live i { width: 7px; height: 7px; border-radius: 50%; background: #aaf5cf; box-shadow: 0 0 12px #aaf5cf; }

.daily-missions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(228, 248, 255, 0.18);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background: rgba(5, 18, 37, 0.42);
  backdrop-filter: blur(18px);
}

.daily-mission-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 1.46 / 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(62px, auto) minmax(0, 1fr);
  align-items: stretch;
  align-self: stretch;
  gap: 14px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(226, 248, 255, 0.16);
  border-radius: 18px;
  background: rgba(169, 224, 255, 0.07);
  transform-origin: center;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.daily-mission-card:hover {
  z-index: 2;
  transform: translateY(-7px) scale(1.035);
  border-color: rgba(235, 251, 255, 0.42);
  background: rgba(169, 224, 255, 0.16);
  box-shadow: 0 22px 42px rgba(0, 9, 28, 0.35);
}

.daily-mission-card > img {
  grid-row: 2;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: contain;
  background: rgba(215, 243, 255, 0.07);
}

.daily-mission-card > div { grid-row: 1; min-width: 0; display: grid; align-content: start; gap: 6px; padding: 4px 28px 0 2px; }
.daily-mission-card strong { color: #f7fcff; font-size: clamp(19px, 2vw, 24px); line-height: 1.2; letter-spacing: -0.04em; }
.candle-location { color: #ffe0a3; font-size: 13px; font-weight: 700; }

.candle-type-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 3px;
  border: 1px solid rgba(255, 235, 192, 0.32);
  border-radius: 13px;
  background: rgba(255, 242, 213, 0.14);
}

.candle-type-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mission-number {
  position: absolute;
  top: 10px;
  right: 12px;
  color: rgba(227, 247, 255, 0.35);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.missions-loading {
  min-height: 178px;
  display: grid;
  place-items: center;
  grid-column: 1 / -1;
  border: 1px dashed rgba(227, 248, 255, 0.24);
  border-radius: 17px;
  color: rgba(229, 247, 255, 0.65);
  text-align: center;
}

.candle-guide-card {
  grid-column: 1 / -1;
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 22px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 220, 154, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 13% 50%, rgba(255, 220, 149, 0.25), transparent 40%),
    linear-gradient(135deg, rgba(102, 68, 43, 0.48), rgba(42, 66, 90, 0.48));
}

.candle-guide-copy {
  display: grid;
  align-content: center;
  gap: 7px;
}

.candle-guide-copy strong {
  color: #fff7e6;
  font-size: clamp(24px, 3vw, 37px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.candle-guide-copy p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 244, 221, 0.72);
  line-height: 1.5;
}

.candle-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: center;
}

.candle-guide-item {
  min-height: 154px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 239, 199, 0.22);
  border-radius: 15px;
  background: rgba(255, 238, 201, 0.08);
}

.candle-guide-item img {
  width: 100%;
  height: 106px;
  object-fit: cover;
  background: rgba(255, 244, 215, 0.08);
}

.candle-guide-item span {
  display: grid;
  gap: 3px;
  padding: 9px 10px 10px;
}

.candle-guide-item b { color: #fff8e8; font-size: 13px; }
.candle-guide-item small { color: rgba(255, 241, 213, 0.67); font-size: 11px; }
}

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

@media (max-width: 720px) {
  .central-skypremium-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .central-skypremium-actions {
    justify-items: stretch;
  }

  .public-dashboard-head { align-items: start; flex-direction: column; }
  .dashboard-welcome { grid-template-columns: auto minmax(0, 1fr); }
  .dashboard-welcome .primary-button { grid-column: 1 / -1; width: 100%; }
  .dashboard-overview-grid { grid-template-columns: 1fr; }
  .missions-head { align-items: start; flex-direction: column; }
  .daily-missions-grid { grid-template-columns: 1fr; }
  .candle-guide-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-menu { right: -2px; }
  .public-dashboard { margin-top: 38px; }
  .public-dashboard-head h2 { font-size: 52px; }
  .dashboard-welcome { gap: 15px; padding: 20px; }
  .dashboard-welcome-icon { width: 50px; height: 50px; border-radius: 16px; font-size: 24px; }
  .daily-mission-card { min-height: 310px; aspect-ratio: auto; gap: 11px; }
  .daily-mission-card img { width: 100%; height: 210px; }
  .daily-mission-card strong { font-size: 19px; }
  .candle-guide-list { grid-template-columns: 1fr; }
}

/* Missões como uma aba do próprio site. */
.site-main-tabs {
  display: flex;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 5px;
  border: 1px solid rgba(226, 248, 255, 0.15);
  border-radius: 14px;
  background: rgba(6, 20, 40, 0.3);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.site-main-tab {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  color: rgba(235, 249, 255, 0.7);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.site-main-tab.active {
  color: #071526;
  background: linear-gradient(135deg, #e7f9ff, #afe5ff);
  box-shadow: 0 5px 14px rgba(115, 210, 255, 0.19);
}

.site-main-tab span {
  margin-left: 4px;
  color: inherit;
  font-size: 9px;
  opacity: 0.72;
}

.landing.missions-view .site-home-section {
  display: none;
}

.landing .hero { order: 1; }
.landing .public-dashboard { order: 2; }
.landing .landing-live { order: 3; }
.landing .socio-strip { order: 4; }
.landing .founders-strip { order: 5; }

.landing.missions-view .hero { display: grid; }
.landing.missions-view .landing-live { display: grid; }

.landing.missions-view .public-dashboard {
  margin-top: clamp(38px, 7vh, 74px);
}

.landing:not(.missions-view) .public-dashboard {
  min-height: 0;
  margin-top: 20px;
  padding-bottom: 14px;
}

.landing:not(.missions-view) .site-missions-head {
  padding: 18px 20px;
  border-radius: 18px 18px 0 0;
}

.landing:not(.missions-view) .public-dashboard-head h2 {
  margin: 7px 0 3px;
  font-size: clamp(28px, 3.8vw, 44px);
}

.landing:not(.missions-view) .daily-missions-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
}

.landing:not(.missions-view) .daily-mission-card {
  min-height: 0;
  aspect-ratio: 16 / 9;
  display: block;
  padding: 0;
}

.landing:not(.missions-view) .daily-mission-card > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.landing:not(.missions-view) .daily-mission-card > div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: block;
  min-width: 0;
  padding: 22px 8px 7px;
  background: linear-gradient(transparent, rgba(2, 10, 24, 0.96));
}

.landing:not(.missions-view) .daily-mission-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #f7fcff;
  font-size: clamp(9px, 0.9vw, 12px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.landing:not(.missions-view) .daily-mission-card .candle-location { display: none; }

.landing:not(.missions-view) .daily-candle-section {
  padding: 9px;
}

.landing:not(.missions-view) .daily-candle-divider {
  font-size: 9px;
}

@media (max-width: 720px) {
  .landing:not(.missions-view) .daily-missions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.site-missions-head {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(228, 248, 255, 0.2);
  border-radius: 24px 24px 0 0;
  background: linear-gradient(135deg, rgba(38, 82, 120, 0.56), rgba(8, 25, 48, 0.48));
  backdrop-filter: blur(20px);
}

.site-missions-head::after {
  content: "";
  position: absolute;
  inset: auto -8% -130px auto;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(221, 246, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.site-missions .daily-missions-grid {
  margin: 0;
}

@media (max-width: 560px) {
  .site-main-tabs { margin-top: 12px; }
  .site-main-tab { padding: 0 10px; }
  .site-missions-head { padding: 22px; }
}

/* Painel após o login: a mesma linguagem da home, agora para configurar o bot. */
.shell {
  width: min(1500px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 18px clamp(20px, 5vw, 76px) 52px;
  background: transparent;
}

.shell .sidebar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: auto;
  padding: 8px 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(225, 248, 255, 0.14);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.shell .sidebar .quick-card {
  display: none;
}

.shell .sidebar .brand {
  grid-column: 1;
}

.shell .sidebar .server-actions {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.shell .sidebar .server-actions > * {
  min-width: 116px;
}

.shell .sidebar .guild-list {
  grid-column: 1 / -1;
  display: flex;
  gap: 9px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 1px 5px;
  scrollbar-width: thin;
}

.shell .sidebar .guild-button {
  min-width: 205px;
  flex: 0 0 205px;
  border-color: rgba(225, 248, 255, 0.1);
  border-radius: 14px;
  background: rgba(7, 23, 44, 0.28);
}

.shell .sidebar .guild-button:hover,
.shell .sidebar .guild-button.active {
  border-color: rgba(225, 248, 255, 0.36);
  background: linear-gradient(135deg, rgba(255, 211, 139, 0.16), rgba(157, 224, 255, 0.13));
  box-shadow: 0 10px 24px rgba(0, 8, 24, 0.2);
}

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

.shell .topbar {
  min-height: 166px;
  margin: 2px 0 12px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(226, 248, 255, 0.23);
  border-radius: 25px;
  background:
    radial-gradient(circle at 83% 14%, rgba(255, 211, 139, 0.19), transparent 28%),
    linear-gradient(135deg, rgba(28, 70, 107, 0.58), rgba(7, 23, 45, 0.48));
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.shell .topbar h2 {
  max-width: 760px;
  font-size: clamp(37px, 5vw, 68px);
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.shell .topbar .eyebrow {
  color: #ffd99b;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shell .status-line {
  gap: 8px;
}

.shell .dashboard-sky-hub {
  margin: 0 0 12px;
}

.shell .dashboard-sky-tabs {
  display: flex;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 5px;
  border: 1px solid rgba(226, 248, 255, 0.15);
  border-radius: 14px;
  background: rgba(6, 20, 40, 0.3);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.shell .dashboard-sky-tab {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  color: rgba(229, 246, 255, 0.72);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

.shell .dashboard-sky-tab:hover { background: rgba(154, 226, 255, 0.12); }

.shell .dashboard-sky-tab.active {
  color: #102033;
  background: linear-gradient(135deg, #e7f9ff, #afe5ff);
  box-shadow: 0 5px 14px rgba(115, 210, 255, 0.19);
}

.shell .dashboard-sky-tab span { margin-left: 4px; font-size: 9px; opacity: 0.72; }

.shell .dashboard-sky-panel { display: none; }
.shell .dashboard-sky-panel.active { display: block; animation: rise-in 300ms ease both; }

.dashboard-config-intro {
  position: relative;
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(270px, 0.92fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(226, 248, 255, 0.26);
  border-radius: 24px;
  background: linear-gradient(130deg, rgba(14, 38, 68, 0.82), rgba(7, 22, 43, 0.64));
  box-shadow: 0 22px 52px rgba(0, 6, 20, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(1.15);
}

.dashboard-config-intro::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -190px;
  width: 410px;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 246, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.dashboard-config-copy { position: relative; z-index: 1; display: grid; gap: 13px; max-width: 580px; }
.dashboard-config-copy strong { color: #f8fcff; font-size: clamp(38px, 5vw, 68px); line-height: 0.9; letter-spacing: -0.07em; }
.dashboard-config-copy strong em { color: #ffe1a4; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.dashboard-config-copy p { margin: 0; max-width: 500px; color: rgba(229, 246, 255, 0.78); font-size: 15px; line-height: 1.55; }

.dashboard-config-glance {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(225, 248, 255, 0.2);
  border-radius: 20px;
  background: rgba(6, 23, 46, 0.42);
  backdrop-filter: blur(16px);
}
.dashboard-config-glance > div { display: grid; align-content: start; gap: 6px; min-height: 92px; padding: 14px; border: 1px solid rgba(224, 248, 255, 0.15); border-radius: 15px; background: rgba(118, 186, 230, 0.08); }
.dashboard-config-glance > .dashboard-config-glance-main { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(255, 207, 128, 0.2), rgba(105, 190, 234, 0.12)); }
.dashboard-config-glance span { color: #ffe0a3; font-size: 17px; line-height: 1; }
.dashboard-config-glance strong { color: #f8fcff; font-size: 14px; letter-spacing: -0.035em; }
.dashboard-config-glance small { color: rgba(229, 246, 255, 0.65); font-size: 11px; line-height: 1.32; }

.dashboard-live-strip {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
}

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

.dashboard-sky-card {
  min-height: 124px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 12px;
  padding: 12px;
  border: 1px solid rgba(226, 248, 255, 0.18);
  border-radius: 17px;
  background: rgba(7, 25, 48, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.dashboard-sky-card img {
  grid-row: 1 / -1;
  width: 56px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(219, 245, 255, 0.08);
}

.dashboard-sky-card .live-kicker { font-size: 10px; }
.dashboard-sky-card strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-sky-card > span:last-child { color: rgba(229, 246, 255, 0.64); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dashboard-fragment-card {
  background: linear-gradient(135deg, rgba(255, 201, 125, 0.15), rgba(71, 151, 200, 0.13));
}

.dashboard-missions-head {
  display: grid;
  gap: 5px;
  padding: 17px 18px;
  border: 1px solid rgba(226, 248, 255, 0.19);
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, rgba(35, 77, 114, 0.56), rgba(7, 23, 45, 0.48));
}

.dashboard-missions-head strong { font-size: 24px; letter-spacing: -0.05em; }
.dashboard-missions-head > span:last-child { color: rgba(229, 246, 255, 0.68); font-size: 12px; }

.dashboard-missions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(226, 248, 255, 0.17);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(5, 19, 39, 0.38);
  backdrop-filter: blur(15px);
}

.dashboard-missions-grid .daily-mission-card {
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  padding: 0;
  cursor: zoom-in;
}

.dashboard-missions-grid .daily-mission-card > img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  justify-self: stretch;
  transition: object-fit 180ms ease, transform 220ms ease, background 220ms ease;
}
.dashboard-missions-grid .daily-mission-card > div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: block;
  min-width: 0;
  padding: 28px 10px 9px;
  background: linear-gradient(transparent, rgba(2, 10, 24, 0.96));
  box-shadow: 0 -12px 24px rgba(2, 10, 24, 0.24);
}
.dashboard-missions-grid .daily-mission-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #f7fcff;
  font-size: clamp(10px, 1.12vw, 15px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.94), 0 1px 2px rgba(0, 0, 0, 0.9);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dashboard-missions-grid .daily-mission-card .candle-location { display: none; }
.dashboard-missions-grid .daily-mission-card:hover > img,
.dashboard-missions-grid .daily-mission-card:focus-visible > img {
  object-fit: contain;
  transform: scale(1.015);
  background: rgba(3, 15, 32, 0.52);
}
.dashboard-missions-grid .daily-mission-card:focus-visible {
  outline: 2px solid rgba(230, 249, 255, 0.82);
  outline-offset: 3px;
}

.daily-candle-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 219, 155, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 196, 111, 0.1), rgba(91, 174, 220, 0.08));
}
.daily-candle-divider { display: flex; align-items: center; gap: 10px; color: #ffe0a3; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.daily-candle-divider::before,
.daily-candle-divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(255, 222, 162, 0.54)); }
.daily-candle-divider::after { background: linear-gradient(90deg, rgba(255, 222, 162, 0.54), transparent); }
.daily-candle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dashboard-missions-grid .daily-candle-grid .daily-mission-card { min-width: 0; }

.mission-preview-dialog {
  width: min(1080px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 249, 255, 0.32);
  border-radius: 22px;
  color: #f7fcff;
  background: rgba(5, 18, 37, 0.96);
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.56);
}
.mission-preview-dialog::backdrop { background: rgba(2, 8, 19, 0.78); backdrop-filter: blur(12px); }
.mission-preview-panel { position: relative; display: grid; gap: 12px; max-height: calc(100vh - 32px); padding: 18px; }
.mission-preview-heading { display: grid; gap: 3px; padding-right: 42px; }
.mission-preview-heading span { color: #ffdca3; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.mission-preview-heading strong { font-size: clamp(18px, 2.4vw, 28px); letter-spacing: -0.04em; }
.mission-preview-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 1px solid rgba(229, 249, 255, 0.25); border-radius: 50%; color: #f7fcff; background: rgba(225, 247, 255, 0.1); font-size: 26px; line-height: 1; cursor: pointer; }
.mission-preview-close:hover { background: rgba(225, 247, 255, 0.2); }
.mission-preview-panel > img { display: block; width: 100%; min-height: 0; max-height: calc(100vh - 155px); border-radius: 14px; object-fit: contain; background: rgba(0, 8, 22, 0.7); }

.shell .feature-tabs {
  display: flex;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 5px;
  border: 1px solid rgba(226, 248, 255, 0.15);
  border-radius: 14px;
  background: rgba(6, 20, 40, 0.3);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.shell .feature-tab {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  color: rgba(229, 246, 255, 0.72);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  transition: background 180ms ease, color 180ms ease;
}

.shell .feature-tab:hover {
  background: rgba(154, 226, 255, 0.12);
}

.shell .feature-tab.active {
  color: #102033;
  background: linear-gradient(135deg, #e7f9ff, #afe5ff);
  box-shadow: 0 5px 14px rgba(115, 210, 255, 0.19);
}

.shell .tabs {
  width: fit-content;
  max-width: 100%;
  min-height: auto;
  margin: 0 0 8px;
  padding: 6px;
  border: 1px solid rgba(226, 248, 255, 0.16);
  border-radius: 15px;
  background: rgba(6, 20, 40, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.shell .tabs .tab {
  min-height: 40px;
  border-radius: 10px;
}

.shell .content {
  margin-top: 8px;
  padding: 8px 0 40px;
  overflow: visible;
}

.shell .content .panel {
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(20, 50, 80, 0.68), rgba(7, 20, 40, 0.62));
  backdrop-filter: blur(20px) saturate(1.13);
  -webkit-backdrop-filter: blur(20px) saturate(1.13);
}

.shell .tab-panel[data-panel="channels"] .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 390px));
  justify-content: start;
}

.shell .tab-panel[data-panel="channels"] .form-grid.stacked-fields {
  grid-template-columns: repeat(2, minmax(250px, 390px));
}

.shell .install-strip {
  margin: 8px 0 12px;
  border-radius: 20px;
}

.shell .savebar {
  border-radius: 16px;
}

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

  .shell .sidebar,
  .shell .workspace {
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .shell .content {
    min-height: 0;
  }
}

@media (max-width: 880px) {
  .shell .sidebar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .shell .sidebar .brand { grid-column: 1; }
  .shell .sidebar .server-actions { grid-column: 2; }
  .shell .topbar { margin-top: 0; }
  .dashboard-live-strip { grid-template-columns: 1fr; }
  .shell .tab-panel[data-panel="channels"] .form-grid.stacked-fields { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { padding: 12px 16px 35px; }
  .shell .sidebar { gap: 10px; padding-bottom: 12px; }
  .shell .sidebar .server-actions > * { min-width: auto; }
  .shell .sidebar .guild-button { min-width: 178px; flex-basis: 178px; }
  .shell .topbar { min-height: 145px; padding: 23px; border-radius: 21px; }
  .shell .topbar h2 { font-size: 42px; }
  .shell .dashboard-sky-tabs { max-width: 100%; overflow-x: auto; }
  .dashboard-daily-events { grid-template-columns: 1fr; }
  .dashboard-missions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-candle-grid { grid-template-columns: 1fr; }
  .dashboard-config-intro { min-height: 0; grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .dashboard-config-copy strong { font-size: clamp(36px, 12vw, 54px); }
  .dashboard-config-glance { grid-template-columns: 1fr; }
  .dashboard-config-glance > .dashboard-config-glance-main { grid-column: auto; }
  .shell .feature-tabs { margin-bottom: 8px; }
  .shell .tabs { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell .tabs .tab { width: 100%; }
}

/* Revisão do painel: hierarquia clara, cards proporcionais e configuração por fluxo. */
.brand img,
.intro-mark img {
  object-position: 50% 44%;
}

.shell .tab-panel[data-panel="channels"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.shell .tab-panel[data-panel="channels"] .missions-config-panel,
.shell .tab-panel[data-panel="channels"] .daily-events-config-panel {
  grid-column: 1 / -1;
}

.shell .config-feature-panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: clamp(19px, 2.5vw, 28px);
  border-color: rgba(218, 244, 255, 0.19);
  box-shadow: 0 18px 45px rgba(0, 7, 22, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.shell .config-feature-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #ffe1a8, #9ee1ff);
  opacity: 0.9;
}

.shell .missions-config-panel {
  background:
    radial-gradient(circle at 92% 15%, rgba(255, 217, 150, 0.17), transparent 27%),
    linear-gradient(135deg, rgba(35, 77, 112, 0.77), rgba(8, 25, 47, 0.68));
}

.shell .daily-events-config-panel {
  background:
    radial-gradient(circle at 95% 0%, rgba(143, 222, 255, 0.13), transparent 25%),
    linear-gradient(135deg, rgba(18, 52, 83, 0.72), rgba(7, 21, 41, 0.66));
}

.shell .journal-config-panel,
.shell .calendar-config-panel {
  min-height: 270px;
}

.shell .journal-config-panel {
  background: linear-gradient(145deg, rgba(43, 65, 101, 0.74), rgba(11, 25, 48, 0.68));
}

.shell .calendar-config-panel {
  background: linear-gradient(145deg, rgba(43, 80, 93, 0.7), rgba(10, 28, 46, 0.68));
}

.shell .config-feature-panel .panel-heading {
  align-items: flex-start;
  margin-bottom: 18px;
}

.config-heading-main {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 13px;
}

.config-heading-main > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.shell .config-heading-main .config-step {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 248, 255, 0.2);
  border-radius: 12px;
  color: #17314b;
  background: linear-gradient(135deg, #ffdfaa, #bfeaff);
  box-shadow: 0 8px 22px rgba(0, 9, 27, 0.22);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.shell .config-heading-main h3 {
  color: #f8fcff;
  font-size: clamp(20px, 2.1vw, 27px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.shell .config-heading-main > div > span {
  max-width: 680px;
  color: rgba(225, 245, 255, 0.65);
  line-height: 1.45;
}

.shell .config-status-chip {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 222, 166, 0.28);
  border-radius: 999px;
  color: #ffe3b2;
  background: rgba(255, 214, 146, 0.09);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.config-recommendation {
  max-width: 850px;
  margin: 0 0 20px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 220, 158, 0.2);
  border-radius: 13px;
  color: rgba(237, 248, 255, 0.76);
  background: rgba(255, 210, 137, 0.075);
  font-size: 13px;
  line-height: 1.55;
}

.config-recommendation strong {
  color: #ffe0a5;
}

.shell .daily-events-config-panel .live-events-config-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
}

.shell .daily-events-config-panel .live-event-config-card {
  min-height: 184px;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  padding: 16px;
  border-radius: 16px;
  border-color: rgba(191, 232, 255, 0.15);
  background: linear-gradient(145deg, rgba(17, 42, 70, 0.76), rgba(7, 20, 39, 0.66));
}

.shell .daily-events-config-panel .live-event-config-card h4 {
  min-height: 24px;
  color: #f4fbff;
  font-size: 14px;
}

.shell .daily-events-config-panel .toggle-line {
  min-height: 34px;
  padding-top: 0;
}

.shell .daily-events-config-panel .live-event-config-card label:not(.toggle-line) {
  align-self: end;
}

.birthdays-tab-panel {
  grid-template-columns: minmax(0, 760px);
}

.shell .birthdays-config-panel {
  min-height: 280px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 172, 189, 0.15), transparent 28%),
    linear-gradient(140deg, rgba(61, 55, 90, 0.74), rgba(12, 27, 49, 0.68));
}

.shell .birthdays-config-panel::before {
  background: linear-gradient(180deg, #ffc4d1, #c4eaff);
}

.shell .birthdays-config-panel .form-grid {
  grid-template-columns: minmax(250px, 420px);
}

.shell .empty-state {
  width: min(560px, 100%);
  margin: 24px auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(225, 247, 255, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 215, 150, 0.14), transparent 35%),
    rgba(7, 22, 43, 0.52);
  box-shadow: 0 24px 70px rgba(0, 7, 22, 0.3);
  backdrop-filter: blur(18px);
}

.shell .empty-state img {
  width: 88px;
  height: 88px;
  border: 1px solid rgba(234, 250, 255, 0.36);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 44%;
  box-shadow: 0 0 0 7px rgba(215, 244, 255, 0.07), 0 18px 38px rgba(0, 6, 20, 0.3);
}

.shell .empty-state strong {
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.05em;
}

.shell .empty-state span {
  max-width: 430px;
  color: rgba(225, 244, 255, 0.7);
  line-height: 1.55;
}

.shell .empty-state .primary-button {
  min-height: 46px;
  margin-top: 6px;
  padding: 0 20px;
}

@media (max-width: 1100px) {
  .shell .daily-events-config-panel .live-events-config-grid {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }
}

@media (max-width: 880px) {
  .shell .tab-panel[data-panel="channels"] {
    grid-template-columns: 1fr;
  }

  .shell .tab-panel[data-panel="channels"] .missions-config-panel,
  .shell .tab-panel[data-panel="channels"] .daily-events-config-panel {
    grid-column: auto;
  }

  .shell .journal-config-panel,
  .shell .calendar-config-panel {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .shell .config-feature-panel {
    padding: 18px;
  }

  .shell .config-feature-panel .panel-heading {
    display: grid;
  }

  .shell .config-status-chip {
    width: fit-content;
    margin-left: 51px;
  }

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

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

/* Início vivo: movimento contínuo e leve em todo o universo público. */
.landing {
  position: relative;
  isolation: isolate;
}

.landing > *:not(.landing-motion-field) {
  position: relative;
  z-index: 2;
}

.landing-motion-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.motion-aurora {
  position: absolute;
  width: min(70vw, 900px);
  aspect-ratio: 1.8;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.2;
  mix-blend-mode: screen;
  will-change: transform;
}

.motion-aurora-one {
  top: -18vh;
  left: -20vw;
  background: radial-gradient(ellipse, rgba(130, 222, 255, 0.85), rgba(107, 132, 255, 0.18) 48%, transparent 72%);
  animation: home-aurora-one 14s ease-in-out infinite alternate;
}

.motion-aurora-two {
  right: -23vw;
  bottom: -10vh;
  background: radial-gradient(ellipse, rgba(255, 207, 132, 0.65), rgba(255, 137, 156, 0.16) 48%, transparent 72%);
  animation: home-aurora-two 17s ease-in-out infinite alternate;
}

.landing-motion-field span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f7fdff;
  box-shadow: 0 0 9px 2px rgba(195, 239, 255, 0.76);
  animation: home-star-float 7s ease-in-out infinite, home-star-twinkle 2.6s ease-in-out infinite alternate;
}

.landing-motion-field span:nth-of-type(1) { top: 13%; left: 8%; animation-delay: -1s, -0.4s; }
.landing-motion-field span:nth-of-type(2) { top: 22%; left: 42%; width: 3px; height: 3px; animation-delay: -4.6s, -1.5s; }
.landing-motion-field span:nth-of-type(3) { top: 10%; right: 13%; animation-delay: -2.7s, -0.8s; }
.landing-motion-field span:nth-of-type(4) { top: 48%; left: 18%; width: 3px; height: 3px; animation-delay: -5.3s, -2s; }
.landing-motion-field span:nth-of-type(5) { top: 57%; right: 9%; animation-delay: -3.4s, -1.1s; }
.landing-motion-field span:nth-of-type(6) { top: 73%; left: 31%; width: 4px; height: 4px; animation-delay: -6.1s, -0.2s; }
.landing-motion-field span:nth-of-type(7) { top: 84%; right: 28%; width: 3px; height: 3px; animation-delay: -2.1s, -1.8s; }
.landing-motion-field span:nth-of-type(8) { top: 39%; right: 44%; width: 2px; height: 2px; animation-delay: -4s, -0.6s; }

body::after {
  animation: home-sky-drift 24s linear infinite, home-sky-twinkle 4s ease-in-out infinite alternate;
}

.landing > .landing-nav {
  z-index: 100;
  isolation: isolate;
  animation: home-nav-enter 750ms 80ms both cubic-bezier(0.2, 0.8, 0.2, 1);
}

.landing-nav .site-menu-wrap {
  z-index: 101;
}

.landing-nav .site-menu {
  z-index: 102;
  box-shadow: 0 30px 80px rgba(0, 5, 20, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero-copy > * {
  animation: home-copy-enter 720ms both cubic-bezier(0.2, 0.75, 0.2, 1);
}

.hero-copy > :nth-child(1) { animation-delay: 120ms; }
.hero-copy > :nth-child(2) { animation-delay: 220ms; }
.hero-copy > :nth-child(3) { animation-delay: 320ms; }
.hero-copy > :nth-child(4) { animation-delay: 420ms; }
.hero-copy > :nth-child(5) { animation-delay: 500ms; }
.hero-copy > :nth-child(6) { animation-delay: 570ms; }

.hero-copy h1 em {
  background: linear-gradient(100deg, #ffd99a 10%, #fff5d8 42%, #9fe6ff 58%, #ffd99a 90%);
  background-size: 240% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: home-title-shimmer 6.5s linear infinite;
}

.hero-kicker {
  animation: home-kicker-glow 3.2s ease-in-out infinite alternate;
}

.hero-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-primary::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% -45%;
  z-index: -1;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: skewX(-22deg);
  animation: home-button-sheen 4.8s 1.2s ease-in-out infinite;
}

.panel-orbit {
  transform-origin: center;
}

.orbit-one {
  animation: home-orbit-spin 16s linear infinite;
}

.orbit-two {
  animation: home-orbit-spin-reverse 22s linear infinite;
}

.panel-orbit::before,
.panel-orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffe1a6;
  box-shadow: 0 0 15px 3px rgba(255, 220, 158, 0.45);
}

.panel-orbit::before { top: 12%; left: 15%; }
.panel-orbit::after { right: 10%; bottom: 17%; width: 5px; height: 5px; background: #b8edff; }

.feature-grid div {
  animation: home-card-breathe 5.5s ease-in-out infinite;
}

.feature-grid div:nth-child(2) { animation-delay: -1.3s; }
.feature-grid div:nth-child(3) { animation-delay: -2.7s; }
.feature-grid div:nth-child(4) { animation-delay: -4.1s; }

.feature-symbol {
  display: inline-block;
  animation: none;
}

.landing-live,
.socio-strip,
.founders-strip {
  animation: home-section-enter 900ms both cubic-bezier(0.2, 0.75, 0.2, 1), home-glass-breathe 7s ease-in-out infinite;
}

.landing-live { animation-delay: 650ms, -1.2s; }
.socio-strip { animation-delay: 780ms, -3s; }
.founders-strip { animation-delay: 900ms, -4.8s; }

.live-card,
.daily-event-card,
.founder-card,
.sponsor-card {
  position: relative;
  overflow: hidden;
}

.live-card::after,
.daily-event-card::after,
.founder-card::after,
.sponsor-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(115deg, transparent 15%, rgba(226, 248, 255, 0.12) 46%, transparent 72%);
  transform: translateX(-100%);
  animation: home-card-sheen 8s ease-in-out infinite;
  pointer-events: none;
}

.daily-event-card:nth-child(2)::after,
.founder-card:nth-child(2)::after,
.sponsor-card:nth-child(2)::after {
  animation-delay: -4s;
}

@keyframes home-aurora-one {
  from { transform: translate3d(-6vw, -3vh, 0) rotate(-8deg) scale(0.92); }
  to { transform: translate3d(26vw, 20vh, 0) rotate(13deg) scale(1.16); }
}

@keyframes home-aurora-two {
  from { transform: translate3d(8vw, 8vh, 0) rotate(8deg) scale(1); }
  to { transform: translate3d(-30vw, -19vh, 0) rotate(-15deg) scale(1.2); }
}

@keyframes home-star-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(16px, -24px, 0); }
}

@keyframes home-star-twinkle {
  from { opacity: 0.25; scale: 0.65; }
  to { opacity: 1; scale: 1.25; }
}

@keyframes home-sky-drift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 180px -120px, -150px 190px, 120px 160px; }
}

@keyframes home-sky-twinkle {
  from { opacity: 0.42; }
  to { opacity: 0.8; }
}

@keyframes home-nav-enter {
  from { opacity: 0; transform: translateY(-22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes home-copy-enter {
  from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes home-title-shimmer {
  to { background-position: 240% center; }
}

@keyframes home-kicker-glow {
  from { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 rgba(142, 224, 255, 0); }
  to { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 24px rgba(142, 224, 255, 0.16); }
}

@keyframes home-button-sheen {
  0%, 62% { left: -45%; }
  86%, 100% { left: 120%; }
}

@keyframes home-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes home-orbit-spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes home-symbol-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(8deg); }
}

@keyframes home-card-breathe {
  0%, 100% { border-color: rgba(224, 248, 255, 0.14); box-shadow: 0 0 0 rgba(159, 226, 255, 0); }
  50% { border-color: rgba(224, 248, 255, 0.28); box-shadow: 0 10px 24px rgba(107, 195, 239, 0.08); }
}

@keyframes home-section-enter {
  from { opacity: 0; transform: translateY(38px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes home-glass-breathe {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.13) brightness(1.035); }
}

@keyframes home-card-sheen {
  0%, 72% { opacity: 0; transform: translateX(-100%); }
  78% { opacity: 1; }
  94%, 100% { opacity: 0; transform: translateX(100%); }
}

@media (max-width: 560px) {
  .landing-nav .site-menu {
    position: fixed;
    top: 132px;
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100vh - 152px);
    overflow-y: auto;
  }

  .motion-aurora {
    width: 120vw;
    filter: blur(52px);
    opacity: 0.16;
  }

  .landing-motion-field span:nth-of-type(n + 6) {
    display: none;
  }
}

/* O mesmo universo animado continua dentro do painel após o login. */
.shell {
  position: relative;
  isolation: isolate;
}

.shell > *:not(.dashboard-motion-field) {
  position: relative;
  z-index: 2;
}

.shell .dashboard-motion-field {
  z-index: 0;
}

.shell .sidebar {
  animation: dashboard-nav-enter 760ms 80ms both cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shell .workspace {
  animation: dashboard-workspace-enter 850ms 130ms both cubic-bezier(0.2, 0.76, 0.2, 1);
}

.shell .topbar {
  overflow: hidden;
  animation: dashboard-topbar-enter 850ms 210ms both cubic-bezier(0.2, 0.76, 0.2, 1), home-glass-breathe 8s -2s ease-in-out infinite;
}

.shell .topbar::after {
  content: "";
  position: absolute;
  top: -45%;
  right: -12%;
  width: 430px;
  aspect-ratio: 1;
  border: 1px solid rgba(226, 248, 255, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 55px rgba(152, 226, 255, 0.07);
  animation: dashboard-topbar-orbit 18s linear infinite;
  pointer-events: none;
}

.shell .topbar h2 {
  width: fit-content;
  background: linear-gradient(100deg, #f8fcff 8%, #fff0cb 42%, #aeeaff 62%, #f8fcff 92%);
  background-size: 240% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: home-title-shimmer 7s linear infinite;
}

.shell .status-line {
  position: relative;
  z-index: 2;
  animation: dashboard-controls-enter 700ms 430ms both;
}

.shell .guild-button {
  animation: dashboard-server-enter 620ms both cubic-bezier(0.2, 0.78, 0.2, 1);
}

.shell .guild-button:nth-child(2) { animation-delay: 80ms; }
.shell .guild-button:nth-child(3) { animation-delay: 140ms; }
.shell .guild-button:nth-child(4) { animation-delay: 200ms; }

.shell .guild-button.active {
  animation: dashboard-server-enter 620ms both, dashboard-active-server 4.8s 700ms ease-in-out infinite;
}

.shell .dashboard-sky-tabs,
.shell .tabs {
  animation: dashboard-controls-enter 680ms 500ms both cubic-bezier(0.2, 0.78, 0.2, 1);
}

.shell .dashboard-sky-tab.active,
.shell .tab.active {
  animation: dashboard-active-tab 3.6s ease-in-out infinite;
}

.dashboard-config-intro {
  animation: dashboard-card-enter 820ms 580ms both cubic-bezier(0.2, 0.78, 0.2, 1), home-glass-breathe 7.5s -3.5s ease-in-out infinite;
}

.dashboard-config-copy > * {
  animation: home-copy-enter 650ms both cubic-bezier(0.2, 0.75, 0.2, 1);
}

.dashboard-config-copy > :nth-child(1) { animation-delay: 620ms; }
.dashboard-config-copy > :nth-child(2) { animation-delay: 710ms; }
.dashboard-config-copy > :nth-child(3) { animation-delay: 800ms; }

.dashboard-config-copy strong em {
  background: linear-gradient(100deg, #ffd99a 10%, #fff5d8 42%, #9fe6ff 58%, #ffd99a 90%);
  background-size: 240% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: home-title-shimmer 6.5s linear infinite;
}

.dashboard-config-glance > div {
  animation: home-card-breathe 5.8s ease-in-out infinite;
}

.dashboard-config-glance > div:nth-child(2) { animation-delay: -1.8s; }
.dashboard-config-glance > div:nth-child(3) { animation-delay: -3.6s; }

.shell .content .panel,
.shell .dashboard-missions-head,
.shell .dashboard-missions-grid {
  animation: dashboard-card-enter 720ms both cubic-bezier(0.2, 0.78, 0.2, 1);
}

.shell .tab-panel.active .panel:nth-child(1) { animation-delay: 80ms; }
.shell .tab-panel.active .panel:nth-child(2) { animation-delay: 150ms; }
.shell .tab-panel.active .panel:nth-child(3) { animation-delay: 220ms; }
.shell .tab-panel.active .panel:nth-child(4) { animation-delay: 290ms; }

.shell .config-feature-panel {
  animation-name: dashboard-card-enter, dashboard-panel-breathe;
  animation-duration: 720ms, 7s;
  animation-timing-function: cubic-bezier(0.2, 0.78, 0.2, 1), ease-in-out;
  animation-fill-mode: both, none;
  animation-iteration-count: 1, infinite;
}

.shell .config-feature-panel:nth-child(2) { animation-delay: 150ms, -1.5s; }
.shell .config-feature-panel:nth-child(3) { animation-delay: 220ms, -3s; }
.shell .config-feature-panel:nth-child(4) { animation-delay: 290ms, -4.5s; }

.shell .config-step {
  animation: none;
}

.shell .primary-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.shell .primary-button::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% -45%;
  z-index: -1;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-22deg);
  animation: home-button-sheen 5.2s 1.4s ease-in-out infinite;
}

@keyframes dashboard-nav-enter {
  from { opacity: 0; transform: translateY(-26px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes dashboard-workspace-enter {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dashboard-topbar-enter {
  from { opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(7px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes dashboard-topbar-orbit {
  to { transform: rotate(360deg); }
}

@keyframes dashboard-controls-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dashboard-server-enter {
  from { opacity: 0; transform: translateX(-18px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes dashboard-active-server {
  0%, 100% { box-shadow: 0 10px 24px rgba(0, 8, 24, 0.2); }
  50% { box-shadow: 0 12px 34px rgba(113, 210, 255, 0.2), 0 0 0 1px rgba(214, 244, 255, 0.1); }
}

@keyframes dashboard-active-tab {
  0%, 100% { box-shadow: 0 5px 14px rgba(115, 210, 255, 0.19); }
  50% { box-shadow: 0 8px 22px rgba(115, 210, 255, 0.34), 0 0 0 1px rgba(225, 248, 255, 0.12); }
}

@keyframes dashboard-card-enter {
  from { opacity: 0; transform: translateY(26px) scale(0.975); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes dashboard-panel-breathe {
  0%, 100% { box-shadow: 0 18px 45px rgba(0, 7, 22, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
  50% { box-shadow: 0 22px 58px rgba(71, 170, 224, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.11); }
}

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

.shell .tab-panel.active > .panel.config-feature-panel:nth-child(n) {
  --dashboard-enter-delay: 80ms;
  --dashboard-breathe-delay: -0.5s;
  animation:
    dashboard-card-enter 720ms var(--dashboard-enter-delay) both cubic-bezier(0.2, 0.78, 0.2, 1),
    dashboard-panel-breathe 7s var(--dashboard-breathe-delay) ease-in-out infinite;
}

.shell .tab-panel.active > .panel.config-feature-panel:nth-child(2) {
  --dashboard-enter-delay: 150ms;
  --dashboard-breathe-delay: -2s;
}

.shell .tab-panel.active > .panel.config-feature-panel:nth-child(3) {
  --dashboard-enter-delay: 220ms;
  --dashboard-breathe-delay: -3.5s;
}

.shell .tab-panel.active > .panel.config-feature-panel:nth-child(4) {
  --dashboard-enter-delay: 290ms;
  --dashboard-breathe-delay: -5s;
}

/* Dashboard pós-login — central escura inspirada em interfaces fintech/cyber. */
.shell {
  --dash-bg: #061110;
  --dash-surface: #091817;
  --dash-surface-2: #0c201e;
  --dash-card: rgba(10, 28, 26, 0.92);
  --dash-line: rgba(126, 231, 211, 0.13);
  --dash-line-strong: rgba(68, 239, 207, 0.35);
  --dash-accent: #34e6c4;
  --dash-accent-2: #5df39f;
  --dash-text: #eefbf8;
  --dash-muted: #799b95;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 0;
  color: var(--dash-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(29, 192, 161, 0.16), transparent 26%),
    radial-gradient(circle at 92% 12%, rgba(16, 105, 96, 0.15), transparent 30%),
    linear-gradient(rgba(74, 139, 126, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 139, 126, 0.035) 1px, transparent 1px),
    var(--dash-bg);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
}

.shell .dashboard-motion-field {
  opacity: 0.22;
  filter: saturate(0.65) hue-rotate(38deg);
}

.shell .sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
  height: calc(100vh - 32px);
  min-height: 620px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-right-color: rgba(73, 238, 208, 0.2);
  border-radius: 18px 0 0 18px;
  background:
    linear-gradient(180deg, rgba(14, 43, 40, 0.94), rgba(5, 20, 19, 0.98)),
    var(--dash-surface);
  box-shadow: 18px 0 45px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px);
  animation: none;
}

.shell .sidebar::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 220px;
  aspect-ratio: 1;
  border: 1px solid rgba(52, 230, 196, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(40, 221, 188, 0.08);
  pointer-events: none;
}

.shell .sidebar .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px 17px;
  border-bottom: 1px solid var(--dash-line);
}

.shell .sidebar .brand img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(75, 238, 207, 0.4);
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(52, 230, 196, 0.16);
}

.shell .sidebar .brand strong {
  color: var(--dash-text);
  font-size: 17px;
  letter-spacing: -0.03em;
}

.shell .sidebar .brand span {
  color: var(--dash-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.shell .sidebar .server-actions {
  order: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.shell .sidebar .server-actions > * {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  color: var(--dash-muted);
  background: rgba(12, 35, 32, 0.7);
  font-size: 11px;
  font-weight: 700;
}

.shell .sidebar .server-actions > *:hover {
  color: var(--dash-text);
  border-color: var(--dash-line-strong);
  background: rgba(23, 63, 57, 0.72);
}

.shell .sidebar .guild-list {
  order: 1;
  flex: 1;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 1px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 230, 196, 0.25) transparent;
}

.shell .sidebar .guild-list::before {
  content: "SEUS SERVIDORES";
  padding: 0 7px 3px;
  color: #53756f;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.shell .sidebar .guild-button {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  min-height: 54px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #8fb0aa;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.shell .sidebar .guild-button:hover {
  color: var(--dash-text);
  border-color: var(--dash-line);
  background: rgba(48, 124, 112, 0.11);
  box-shadow: none;
}

.shell .sidebar .guild-button.active {
  color: var(--dash-text);
  border-color: rgba(52, 230, 196, 0.24);
  background: linear-gradient(90deg, rgba(50, 230, 195, 0.17), rgba(31, 95, 83, 0.07));
  box-shadow: inset 3px 0 0 var(--dash-accent), 0 12px 30px rgba(0, 0, 0, 0.12);
  animation: none;
}

.shell .sidebar .guild-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #112c28;
}

.shell .sidebar .guild-name {
  color: inherit;
  font-size: 12px;
}

.shell .sidebar .guild-meta {
  color: #54766f;
  font-size: 9px;
}

.shell .sidebar .quick-card {
  order: 3;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(52, 230, 196, 0.18);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(27, 86, 76, 0.45), rgba(9, 31, 28, 0.72));
}

.shell .sidebar .quick-card::after {
  right: -45px;
  bottom: -60px;
  width: 125px;
  background: rgba(55, 235, 199, 0.1);
}

.shell .sidebar .quick-card .quick-kicker {
  color: var(--dash-accent);
  font-size: 9px;
}

.shell .sidebar .quick-card strong {
  max-width: 150px;
  color: #dff7f2;
  font-size: 12px;
  line-height: 1.35;
}

.shell .sidebar .quick-card .primary-button {
  min-height: 34px;
  color: #03221d;
  background: linear-gradient(135deg, var(--dash-accent-2), var(--dash-accent));
  font-size: 10px;
}

.shell .workspace {
  min-width: 0;
  min-height: calc(100vh - 32px);
  display: block;
  padding: 0 20px 36px;
  overflow: visible;
  border: 1px solid var(--dash-line);
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background: rgba(4, 14, 14, 0.72);
  animation: none;
}

.shell .topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 76px;
  margin: 0 -20px 16px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  border-radius: 0;
  background: rgba(5, 20, 19, 0.88);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px);
  animation: none;
}

.shell .topbar::after {
  display: none;
}

.shell .topbar .eyebrow {
  color: var(--dash-accent);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.shell .topbar h2 {
  max-width: 460px;
  margin-top: 2px;
  color: var(--dash-text);
  background: none;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  animation: none;
}

.shell .status-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  animation: none;
}

.shell .status-line > span,
.shell .status-line .ghost-button,
.shell .status-line .primary-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--dash-line);
  border-radius: 9px;
  color: #9ab9b3;
  background: rgba(11, 34, 31, 0.78);
  font-size: 10px;
}

.shell .status-line .primary-button {
  border-color: transparent;
  color: #06251f;
  background: linear-gradient(135deg, var(--dash-accent-2), var(--dash-accent));
}

.shell .dashboard-sky-hub {
  margin: 0 0 14px;
}

.shell .dashboard-sky-tabs,
.shell .tabs {
  width: 100%;
  min-height: 44px;
  margin: 0 0 12px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--dash-line);
  border-radius: 11px;
  background: rgba(8, 26, 24, 0.84);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  animation: none;
}

.shell .dashboard-sky-tab,
.shell .tabs .tab {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: #63827c;
  background: transparent;
  font-size: 10px;
  font-weight: 760;
}

.shell .dashboard-sky-tab:hover,
.shell .tabs .tab:hover {
  color: #c9e6e0;
  background: rgba(43, 112, 101, 0.12);
}

.shell .dashboard-sky-tab.active,
.shell .tabs .tab.active {
  color: #06231e;
  background: linear-gradient(135deg, var(--dash-accent-2), var(--dash-accent));
  box-shadow: 0 5px 18px rgba(31, 221, 184, 0.16);
  animation: none;
}

.dashboard-config-intro {
  min-height: 310px;
  padding: clamp(24px, 3.5vw, 42px);
  border: 1px solid var(--dash-line);
  border-radius: 15px;
  background:
    radial-gradient(circle at 78% 24%, rgba(60, 238, 202, 0.16), transparent 28%),
    linear-gradient(125deg, rgba(14, 48, 44, 0.92), rgba(5, 21, 20, 0.96));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.045);
  animation: none;
}

.dashboard-config-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background:
    linear-gradient(rgba(75, 202, 178, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 202, 178, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(90deg, transparent 35%, black);
  pointer-events: none;
}

.dashboard-config-intro::after {
  right: 7%;
  bottom: -43%;
  width: 330px;
  border-color: rgba(62, 232, 200, 0.13);
  box-shadow: 0 0 70px rgba(53, 226, 193, 0.08), inset 0 0 50px rgba(53, 226, 193, 0.04);
}

.dashboard-config-copy .live-kicker {
  color: var(--dash-accent);
}

.dashboard-config-copy strong {
  color: var(--dash-text);
  font-size: clamp(35px, 4.3vw, 62px);
}

.dashboard-config-copy strong em {
  color: var(--dash-accent);
  background: none;
  font-family: inherit;
  font-style: normal;
  font-weight: 700;
  animation: none;
}

.dashboard-config-copy p {
  color: #789b94;
}

.dashboard-config-glance {
  padding: 10px;
  border: 1px solid var(--dash-line);
  border-radius: 14px;
  background: rgba(4, 19, 17, 0.72);
}

.dashboard-config-glance > div,
.dashboard-config-glance > .dashboard-config-glance-main {
  min-height: 84px;
  border: 1px solid rgba(94, 211, 190, 0.1);
  border-radius: 11px;
  background: rgba(22, 57, 52, 0.44);
  animation: none;
}

.dashboard-config-glance > .dashboard-config-glance-main {
  background: linear-gradient(135deg, rgba(55, 231, 196, 0.15), rgba(12, 50, 45, 0.44));
}

.dashboard-config-glance span {
  color: var(--dash-accent);
}

.dashboard-config-glance small {
  color: #668a83;
}

.shell .content {
  margin-top: 0;
  padding: 0 0 26px;
}

.shell .tab-panel[data-panel="channels"] {
  gap: 12px;
}

.shell .tab-panel[data-panel="channels"] .skypremium-profile-panel {
  grid-column: 1 / -1;
}

.shell .tab-panel[data-panel="channels"] .form-grid.skypremium-profile-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shell .content .panel,
.shell .content .config-feature-panel,
.shell .dashboard-missions-head,
.shell .dashboard-missions-grid {
  border-color: var(--dash-line);
  border-radius: 14px;
  background: var(--dash-card);
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.028);
  backdrop-filter: blur(18px);
  animation: none !important;
}

.shell .content .panel:hover {
  border-color: rgba(67, 230, 200, 0.25);
  transform: translateY(-1px);
}

.shell .config-feature-panel::before,
.shell .birthdays-config-panel::before {
  background: linear-gradient(90deg, var(--dash-accent), transparent);
}

.shell .panel-heading {
  border-bottom-color: var(--dash-line);
}

.shell .panel-heading h3,
.shell .config-heading-main h3 {
  color: var(--dash-text);
}

.shell .panel-heading span,
.shell .config-heading-main > div > span {
  color: var(--dash-muted);
}

.shell .config-heading-main .config-step {
  color: #06231e;
  border-color: transparent;
  background: linear-gradient(135deg, var(--dash-accent-2), var(--dash-accent));
  box-shadow: 0 0 20px rgba(52, 230, 196, 0.13);
}

.shell .config-status-chip {
  color: var(--dash-accent);
  border-color: rgba(52, 230, 196, 0.2);
  background: rgba(52, 230, 196, 0.08);
}

.shell .config-recommendation {
  color: #789b94;
  border-color: rgba(52, 230, 196, 0.11);
  background: rgba(26, 65, 59, 0.28);
}

.shell .config-recommendation strong {
  color: var(--dash-accent);
}

.shell label > span,
.shell .form-grid label > span {
  color: #8aaaa4;
}

.shell input,
.shell select,
.shell textarea {
  color: #dff7f2;
  border-color: rgba(108, 211, 192, 0.15);
  background: rgba(4, 19, 17, 0.78);
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.14);
}

.shell input:focus,
.shell select:focus,
.shell textarea:focus {
  border-color: var(--dash-accent);
  box-shadow: 0 0 0 3px rgba(52, 230, 196, 0.1);
}

.shell input:disabled,
.shell select:disabled,
.shell textarea:disabled,
.shell button:disabled {
  opacity: 0.43;
}

.shell .config-status-chip.locked {
  color: #ffd06f;
  border-color: rgba(255, 208, 111, 0.24);
  background: rgba(255, 208, 111, 0.08);
}

.shell .skypremium-preview-only input:disabled,
.shell .skypremium-preview-only textarea:disabled,
.shell .skypremium-preview-only button:disabled {
  cursor: not-allowed;
}

.shell .skypremium-preview-only .discord-profile-preview,
.shell .skypremium-preview-only .mission-layout-preview,
.shell .skypremium-preview-only .mission-today-panel {
  opacity: 1;
}

.shell .mission-mode-button,
.shell .live-event-config-card,
.shell .mission-today-card,
.shell .mission-catalog-item,
.shell .mission-layout-preview,
.shell .mission-today-panel,
.shell .mission-catalog-panel {
  border-color: var(--dash-line);
  background: rgba(8, 25, 23, 0.72);
}

.shell .mission-mode-button.active {
  border-color: var(--dash-line-strong);
  background: linear-gradient(135deg, rgba(52, 230, 196, 0.14), rgba(15, 54, 48, 0.6));
  box-shadow: inset 0 0 0 1px rgba(52, 230, 196, 0.06);
}

.shell .primary-button {
  color: #05241e;
  background: linear-gradient(135deg, var(--dash-accent-2), var(--dash-accent));
  box-shadow: 0 8px 24px rgba(34, 224, 187, 0.15);
}

.shell .primary-button::after {
  display: none;
}

.shell .ghost-button,
.shell button:not(.primary-button):not(.tab):not(.dashboard-sky-tab):not(.mission-mode-button) {
  border-color: var(--dash-line);
}

.shell .savebar {
  border-color: rgba(58, 232, 199, 0.24);
  background: rgba(7, 27, 24, 0.94);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.34);
}

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

  .shell .sidebar {
    min-height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    overflow: hidden;
  }

  .shell .workspace {
    min-height: calc(100vh - 32px);
    max-height: none;
  }
}

@media (max-width: 1040px) {
  .shell {
    grid-template-columns: 196px minmax(0, 1fr);
    padding: 10px;
  }

  .shell .sidebar {
    top: 10px;
    height: calc(100vh - 20px);
    min-height: 560px;
    padding-inline: 11px;
  }

  .shell .workspace {
    padding-inline: 14px;
  }

  .shell .topbar {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .shell .tab-panel[data-panel="channels"] .form-grid.skypremium-profile-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    display: block;
    padding: 0;
  }

  .shell .sidebar {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 12px;
    border: 0;
    border-bottom: 1px solid var(--dash-line);
    border-radius: 0;
  }

  .shell .sidebar .brand {
    padding-bottom: 10px;
  }

  .shell .sidebar .guild-list {
    flex-direction: row;
  }

  .shell .sidebar .guild-list::before,
  .shell .sidebar .quick-card {
    display: none;
  }

  .shell .sidebar .guild-button {
    min-width: 175px;
    width: 175px;
  }

  .shell .sidebar .server-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shell .workspace {
    min-height: 100vh;
    padding: 0 12px 28px;
    border: 0;
    border-radius: 0;
  }

  .shell .topbar {
    margin: 0 -12px 12px;
    padding: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .shell .status-line {
    justify-content: flex-start;
  }

  .dashboard-config-intro {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .shell .tab-panel[data-panel="channels"] .form-grid.skypremium-profile-fields {
    grid-template-columns: 1fr;
  }
}

/* Navegação lateral por servidor e por recurso. */
.shell .server-picker-button {
  width: 100%;
  flex: 0 0 auto;
  padding: 8px 7px 15px;
  color: var(--dash-text);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.shell .server-picker-button > div {
  min-width: 0;
  flex: 1;
}

.shell .server-picker-button strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell .server-picker-button > b {
  margin-left: auto;
  color: var(--dash-accent);
  font-size: 18px;
  transition: transform 180ms ease;
}

.shell .server-picker-button[aria-expanded="true"] > b {
  transform: rotate(180deg);
}

.shell .server-picker-menu {
  position: absolute;
  top: 78px;
  left: 12px;
  right: 12px;
  z-index: 80;
  padding: 10px;
  border: 1px solid var(--dash-line-strong);
  border-radius: 13px;
  background: rgba(28, 20, 9, 0.93);
  box-shadow: 0 20px 55px rgba(8, 5, 2, 0.48);
  backdrop-filter: blur(22px);
}

.shell .server-picker-menu > span {
  display: block;
  padding: 2px 6px 8px;
  color: var(--dash-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.shell .server-picker-menu .guild-list {
  width: 100%;
  max-height: 310px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  overflow-y: auto;
}

.shell .server-picker-menu .guild-list::before {
  display: none;
}

.shell .server-picker-menu .guild-button {
  width: 100%;
  min-width: 0;
}

.shell .sidebar-feature-nav {
  order: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.shell .sidebar-feature {
  width: 100%;
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #aa9878;
  background: transparent;
  font-size: 14px;
  text-align: left;
}

.shell .sidebar-feature span {
  font-size: 11px;
  font-weight: 720;
}

.shell .sidebar-feature > i,
.shell .sidebar-feature > svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 224, 165, 0.13);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(255, 241, 211, 0.12), rgba(255, 195, 77, 0.06));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 5px 13px rgba(12, 7, 2, 0.12);
  font-size: 14px;
  font-style: normal;
  filter: saturate(0.82);
  transition: transform 220ms ease, background 220ms ease, filter 220ms ease;
}

.shell .sidebar-feature > svg {
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
}

.shell .sidebar-feature > svg .icon-soft {
  fill: rgba(255, 208, 111, 0.16);
  stroke: rgba(255, 239, 207, 0.48);
}

.shell .sidebar-feature:hover {
  color: #fff7e6;
  border-color: var(--dash-line);
  background: rgba(255, 205, 104, 0.08);
}

.shell .sidebar-feature.active {
  color: #231705;
  border-color: transparent;
  background: linear-gradient(135deg, var(--dash-accent-2), var(--dash-accent));
  box-shadow: 0 7px 22px rgba(255, 184, 65, 0.16);
}

.shell .sidebar-feature.active > i,
.shell .sidebar-feature.active > svg {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.28);
  filter: saturate(0.95);
  animation: soft-emoji-breathe 2.8s ease-in-out infinite;
}

.shell .sidebar-feature.active > svg .icon-soft {
  fill: rgba(70, 45, 8, 0.15);
  stroke: rgba(45, 28, 5, 0.65);
}

.shell .sidebar-feature:hover > i,
.shell .sidebar-feature:hover > svg {
  transform: translateY(-1px) scale(1.06);
  filter: saturate(1);
}

.soft-content-enter {
  animation: soft-content-enter 420ms cubic-bezier(0.2, 0.78, 0.2, 1) both !important;
}

.shell.server-switching .workspace {
  opacity: 0.55;
  filter: blur(5px);
  transform: translateY(5px) scale(0.994);
  transition: opacity 220ms ease, filter 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.shell.server-switching .server-picker-button img {
  animation: soft-server-spin 850ms ease-in-out infinite;
}

.shell.server-switched .workspace {
  animation: soft-server-arrive 520ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

@keyframes soft-content-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.992); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes soft-emoji-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(68, 39, 4, 0.12); }
  50% { transform: scale(1.08) rotate(-2deg); box-shadow: 0 7px 18px rgba(68, 39, 4, 0.2); }
}

@keyframes soft-server-spin {
  0%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(5deg) scale(0.93); opacity: 0.72; }
}

@keyframes soft-server-arrive {
  from { opacity: 0.45; transform: translateY(8px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.skypremium-offer {
  display: grid;
  gap: 15px;
}

.skypremium-offer-hero {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid rgba(255, 213, 128, 0.22);
  border-radius: 15px;
  background:
    radial-gradient(circle at 90% 5%, rgba(255, 209, 111, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(91, 63, 24, 0.46), rgba(24, 17, 8, 0.7));
}

.skypremium-offer-hero > span {
  color: #ffd06f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.skypremium-offer-hero > strong {
  max-width: 470px;
  color: #fff8e8;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.skypremium-offer-hero p,
.skypremium-offer > small {
  margin: 0;
  color: rgba(255, 244, 222, 0.66);
  font-size: 11px;
  line-height: 1.5;
}

.skypremium-offer-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.skypremium-offer-benefits article {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 11px;
  border: 1px solid rgba(255, 216, 139, 0.12);
  border-radius: 12px;
  background: rgba(34, 25, 12, 0.58);
}

.skypremium-offer-benefits article:last-child {
  grid-column: 1 / -1;
}

.skypremium-offer-benefits i {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 207, 108, 0.1);
  font-size: 16px;
  font-style: normal;
}

.skypremium-offer-benefits article div {
  display: grid;
  gap: 3px;
}

.skypremium-offer-benefits strong {
  color: #fff8e8;
  font-size: 12px;
}

.skypremium-offer-benefits span {
  color: rgba(255, 243, 220, 0.59);
  font-size: 10px;
  line-height: 1.35;
}

.skypremium-offer-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.skypremium-offer-summary > div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 207, 108, 0.07);
  text-align: center;
}

.skypremium-offer-summary span {
  color: rgba(255, 243, 220, 0.56);
  font-size: 9px;
}

.skypremium-offer-summary strong {
  color: #ffd06f;
  font-size: 11px;
}

.skypremium-offer-continue {
  width: 100%;
  min-height: 45px;
}

.skypremium-offer > small {
  text-align: center;
}

@media (max-width: 560px) {
  .skypremium-offer-benefits,
  .skypremium-offer-summary {
    grid-template-columns: 1fr;
  }

  .skypremium-offer-benefits article:last-child {
    grid-column: auto;
  }
}

.shell .tabs {
  display: none;
}

.shell .tab-panel[data-panel="channels"].sidebar-single-feature {
  grid-template-columns: 1fr;
}

.shell .tab-panel[data-panel="channels"].sidebar-single-feature > [data-config-section] {
  grid-column: 1 / -1;
}

.discord-profile-preview {
  width: min(430px, 100%);
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 131, 0.2);
  border-radius: 16px;
  background: rgba(17, 18, 21, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.discord-profile-banner {
  height: 112px;
  background: linear-gradient(135deg, #ffd06f, #7d5523);
  background-position: center;
  background-size: cover;
}

.discord-profile-body {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 7px;
  padding: 52px 18px 18px;
}

.discord-profile-body > img {
  position: absolute;
  top: -47px;
  left: 18px;
  width: 88px;
  height: 88px;
  border: 7px solid #111215;
  border-radius: 50%;
  object-fit: cover;
  background: #202225;
}

.discord-profile-online {
  position: absolute;
  top: 25px;
  left: 86px;
  width: 20px;
  height: 20px;
  border: 4px solid #111215;
  border-radius: 50%;
  background: #23a55a;
}

.discord-profile-body strong {
  color: #f2f3f5;
  font-size: 20px;
}

.discord-profile-body small {
  width: fit-content;
  padding: 2px 5px;
  border-radius: 4px;
  color: #fff;
  background: #5865f2;
  font-size: 8px;
  font-weight: 800;
}

.discord-profile-body p {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #b5bac1;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.feature-preview-label {
  margin-bottom: 10px;
  color: var(--dash-accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-discord-preview,
.calendar-visual-preview {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--dash-line);
  border-radius: 14px;
  background: rgba(13, 10, 7, 0.42);
}

.feature-discord-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(30, 31, 34, 0.9);
}

.feature-discord-message > img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.feature-discord-message > div > strong {
  color: #f2f3f5;
  font-size: 13px;
}

.feature-discord-message > div > strong small {
  padding: 2px 4px;
  border-radius: 3px;
  color: #fff;
  background: #5865f2;
  font-size: 7px;
}

.feature-discord-message > div > span {
  margin-left: 5px;
  color: #949ba4;
  font-size: 9px;
}

.journal-preview-embed {
  max-width: 520px;
  margin-top: 7px;
  padding: 16px;
  border-left: 4px solid var(--dash-accent);
  border-radius: 4px 10px 10px 4px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 205, 105, 0.13), transparent 30%),
    #2b2d31;
}

.journal-preview-kicker {
  color: var(--dash-accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.journal-preview-embed h4 {
  margin: 7px 0 5px;
  color: #fff;
  font-size: 18px;
}

.journal-preview-embed p,
.journal-preview-event span,
.journal-preview-embed > small {
  color: #b5bac1;
  font-size: 11px;
  line-height: 1.45;
}

.journal-preview-event {
  display: grid;
  gap: 3px;
  margin: 12px 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 208, 111, 0.08);
}

.journal-preview-event b {
  color: #f2f3f5;
  font-size: 11px;
}

.calendar-preview-card {
  width: min(620px, 100%);
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 220, 148, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(25, 17, 8, 0.68), rgba(63, 40, 14, 0.48)),
    var(--page-image) center / cover;
  box-shadow: inset 0 0 80px rgba(8, 5, 2, 0.5);
}

.calendar-preview-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 17px;
}

.calendar-preview-card header div {
  display: grid;
  gap: 3px;
}

.calendar-preview-card header span {
  color: var(--dash-accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.calendar-preview-card header strong {
  color: #fff9eb;
  font-size: 23px;
}

.calendar-preview-card header > b {
  color: rgba(255, 249, 235, 0.7);
  font-size: 11px;
}

.calendar-preview-weekdays,
.calendar-preview-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-preview-weekdays span {
  padding: 4px;
  color: rgba(255, 238, 207, 0.55);
  font-size: 9px;
  text-align: center;
}

.calendar-preview-days b,
.calendar-preview-days > i {
  position: relative;
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 232, 188, 0.08);
  border-radius: 8px;
  color: rgba(255, 248, 232, 0.78);
  background: rgba(20, 14, 7, 0.48);
  font-size: 10px;
  font-style: normal;
}

.calendar-preview-days b.has-event::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dash-accent);
  box-shadow: 0 0 8px currentColor;
}

.calendar-preview-days b.blue::after,
.calendar-preview-card footer i.blue { background: #76caff; }
.calendar-preview-days b.violet::after,
.calendar-preview-card footer i.violet { background: #c49bff; }

.calendar-preview-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 13px;
  color: rgba(255, 244, 224, 0.65);
  font-size: 9px;
}

.calendar-preview-card footer span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.calendar-preview-card footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dash-accent);
}

@media (max-width: 760px) {
  .shell .server-picker-menu {
    position: fixed;
    top: 70px;
    left: 12px;
    right: 12px;
  }

  .shell .sidebar-feature-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .shell .sidebar-feature {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
  }
}

/* Variação dourada: o dashboard reutiliza o Vale do Triunfo da página inicial. */
.shell {
  --dash-bg: #171207;
  --dash-surface: #1a150d;
  --dash-surface-2: #261d10;
  --dash-card: rgba(24, 18, 9, 0.9);
  --dash-line: rgba(255, 216, 139, 0.16);
  --dash-line-strong: rgba(255, 205, 103, 0.42);
  --dash-accent: #ffd06f;
  --dash-accent-2: #ffb94f;
  --dash-text: #fff9eb;
  --dash-muted: #ad9875;
  background:
    linear-gradient(180deg, rgba(24, 17, 7, 0.28), rgba(13, 10, 5, 0.5)),
    radial-gradient(circle at 72% 8%, rgba(255, 204, 100, 0.16), transparent 36%),
    var(--page-image) center / cover;
}

.shell .dashboard-motion-field {
  opacity: 0.18;
  filter: sepia(0.72) saturate(1.18) hue-rotate(348deg);
}

.shell .motion-aurora-one {
  background: radial-gradient(ellipse, rgba(255, 220, 142, 0.7), rgba(255, 174, 77, 0.12) 48%, transparent 72%);
}

.shell .motion-aurora-two {
  background: radial-gradient(ellipse, rgba(255, 190, 83, 0.58), rgba(255, 218, 147, 0.12) 48%, transparent 72%);
}

/* Modo de baixo consumo após o login: preserva entradas e interações,
   mas evita repinturas permanentes de filtros e brilhos. */
body.dashboard-open::after {
  animation: none;
}

body.dashboard-open .shell .dashboard-motion-field .motion-aurora,
body.dashboard-open .shell .dashboard-motion-field span {
  animation: none !important;
  will-change: auto;
}

body.dashboard-open .shell .guild-button.active,
body.dashboard-open .shell .dashboard-sky-tab.active,
body.dashboard-open .shell .tab.active,
body.dashboard-open .shell .dashboard-config-intro,
body.dashboard-open .shell .dashboard-config-glance > div,
body.dashboard-open .shell .config-feature-panel,
body.dashboard-open .shell .sidebar-feature.active > i,
body.dashboard-open .shell .sidebar-feature.active > svg {
  animation: none !important;
}

body.dashboard-open .shell .primary-button::after {
  display: none;
  animation: none;
}

body.dashboard-open .shell .dashboard-motion-field {
  display: none;
  filter: none;
}

.shell .sidebar {
  border-right-color: rgba(255, 209, 113, 0.24);
  background: linear-gradient(180deg, rgba(38, 29, 15, 0.72), rgba(16, 12, 7, 0.78));
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.shell .sidebar::after {
  border-color: rgba(255, 209, 113, 0.16);
  box-shadow: 0 0 60px rgba(255, 190, 73, 0.09);
}

.shell .sidebar .brand img {
  border-color: rgba(255, 212, 124, 0.45);
  box-shadow: 0 0 24px rgba(255, 190, 73, 0.18);
}

.shell .sidebar .server-actions > * {
  background: rgba(45, 34, 18, 0.72);
}

.shell .sidebar .server-actions > *:hover {
  background: rgba(76, 56, 27, 0.72);
}

.shell .sidebar .guild-button:hover {
  background: rgba(255, 202, 95, 0.08);
}

.shell .sidebar .guild-button.active {
  border-color: rgba(255, 208, 111, 0.28);
  background: linear-gradient(90deg, rgba(255, 199, 85, 0.18), rgba(101, 73, 29, 0.08));
}

.shell .sidebar .guild-avatar {
  background: #302313;
}

.shell .sidebar .quick-card {
  border-color: rgba(255, 207, 105, 0.22);
  background: linear-gradient(145deg, rgba(105, 76, 31, 0.5), rgba(35, 25, 12, 0.76));
}

.shell .workspace {
  background: rgba(16, 12, 6, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.shell .topbar {
  background: rgba(24, 18, 9, 0.62);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
}

.shell .status-line > span,
.shell .status-line .ghost-button,
.shell .status-line .primary-button,
.shell .dashboard-sky-tabs,
.shell .tabs {
  background-color: rgba(37, 28, 14, 0.84);
}

.shell .dashboard-sky-tab:hover,
.shell .tabs .tab:hover {
  background: rgba(255, 202, 95, 0.1);
}

.dashboard-config-intro {
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 209, 112, 0.17), transparent 31%),
    linear-gradient(125deg, rgba(52, 38, 18, 0.64), rgba(20, 14, 7, 0.68));
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.dashboard-config-intro::before {
  background:
    linear-gradient(rgba(255, 211, 126, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 211, 126, 0.08) 1px, transparent 1px);
}

.dashboard-config-intro::after {
  border-color: rgba(255, 210, 116, 0.17);
  box-shadow: 0 0 70px rgba(255, 188, 65, 0.09), inset 0 0 50px rgba(255, 205, 98, 0.05);
}

.dashboard-config-glance {
  background: rgba(21, 15, 7, 0.5);
}

.dashboard-config-glance > div {
  border-color: rgba(255, 214, 133, 0.12);
  background: rgba(67, 49, 24, 0.34);
}

.dashboard-config-glance > .dashboard-config-glance-main {
  background: linear-gradient(135deg, rgba(255, 205, 101, 0.15), rgba(64, 45, 20, 0.34));
}

.shell .content .panel,
.shell .content .config-feature-panel,
.shell .dashboard-missions-head,
.shell .dashboard-missions-grid {
  background: rgba(24, 18, 9, 0.64);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

.shell .config-recommendation {
  border-color: rgba(255, 208, 109, 0.14);
  background: rgba(94, 67, 27, 0.2);
}

.shell input,
.shell select,
.shell textarea {
  border-color: rgba(255, 215, 133, 0.17);
  background: rgba(19, 13, 6, 0.8);
}

.shell .mission-mode-button,
.shell .live-event-config-card,
.shell .mission-today-card,
.shell .mission-catalog-item,
.shell .mission-layout-preview,
.shell .mission-today-panel,
.shell .mission-catalog-panel {
  background: rgba(28, 20, 9, 0.52);
}

.shell .mission-mode-button.active {
  background: linear-gradient(135deg, rgba(255, 207, 108, 0.16), rgba(75, 52, 21, 0.62));
}

.shell .savebar {
  border-color: rgba(255, 207, 105, 0.26);
  background: rgba(28, 20, 9, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (max-width: 760px) {
  .shell .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(27, 20, 10, 0.72);
    box-shadow: 0 12px 34px rgba(13, 8, 2, 0.26);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
  }

  .shell .topbar {
    position: relative;
    top: auto;
  }
}

/* Painel simplificado: menos camadas e ações principais visíveis logo após o login. */
.shell {
  grid-template-columns: 248px minmax(0, 1fr);
}

.shell .sidebar {
  gap: 10px;
  padding: 18px 14px;
}

.shell .sidebar .brand {
  padding: 4px 6px 14px;
}

.shell .sidebar .brand span {
  color: var(--dash-muted);
  letter-spacing: 0.08em;
  text-transform: none;
}

.shell .sidebar-feature-nav {
  gap: 2px;
  padding: 4px 0 10px;
}

.shell .sidebar-section-label {
  display: block;
  margin: 11px 10px 4px;
  color: rgba(255, 238, 204, 0.48);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shell .sidebar-section-label:first-child {
  margin-top: 2px;
}

.shell .sidebar-feature {
  min-height: 38px;
  padding: 0 9px;
  color: rgba(255, 246, 226, 0.68);
}

.shell .sidebar-feature > svg {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  padding: 5px;
}

.shell .sidebar-feature span {
  font-size: 11px;
}

.shell .sidebar-feature.active {
  color: #291a05;
  box-shadow: none;
}

.shell .sidebar .quick-card {
  display: none;
}

.shell .sidebar .server-actions {
  margin-top: auto;
}

.shell .workspace {
  padding: 0 24px 32px;
}

.shell .topbar {
  min-height: 72px;
  margin: 0 -24px 22px;
  padding: 12px 24px;
  background: rgba(26, 19, 9, 0.86);
}

.shell .topbar h2 {
  font-size: clamp(20px, 2vw, 26px);
}

.shell .status-line #userState::before {
  content: "Conectado: ";
  color: rgba(255, 240, 211, 0.48);
}

.shell #logoutButton {
  color: #ffc9bd;
  border-color: rgba(255, 151, 126, 0.2);
}

.shell > .workspace > .tabs {
  display: none !important;
}

.shell .dashboard-sky-hub {
  max-width: 1180px;
  margin: 0 auto;
}

.dashboard-home {
  display: grid;
  gap: 26px;
  padding: clamp(24px, 3.5vw, 42px);
  border: 1px solid rgba(255, 224, 166, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 203, 101, 0.1), transparent 27%),
    rgba(25, 18, 8, 0.74);
  box-shadow: 0 20px 48px rgba(12, 7, 2, 0.2);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.dashboard-home .dashboard-config-copy {
  max-width: 720px;
  gap: 8px;
}

.dashboard-home .dashboard-config-copy > * {
  animation: none;
}

.dashboard-home .dashboard-config-copy strong {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.dashboard-home .dashboard-config-copy p {
  max-width: 620px;
  color: rgba(255, 246, 228, 0.64);
  font-size: 14px;
}

.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.shell .dashboard-quick-actions button {
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 224, 166, 0.13);
  border-radius: 14px;
  color: #fff8ea;
  background: rgba(48, 34, 14, 0.55);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.shell .dashboard-quick-actions button:hover,
.shell .dashboard-quick-actions button:focus-visible {
  border-color: rgba(255, 208, 112, 0.5);
  background: rgba(76, 51, 17, 0.7);
  transform: translateY(-2px);
  outline: none;
}

.dashboard-quick-actions button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.dashboard-quick-actions .quick-action-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 218, 143, 0.22);
  border-radius: 11px;
  color: #ffd98f;
  background: rgba(255, 201, 91, 0.08);
  font-size: 10px;
  font-weight: 850;
}

.dashboard-quick-actions strong {
  overflow: hidden;
  color: #fff9ed;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-quick-actions small {
  overflow: hidden;
  color: rgba(255, 244, 222, 0.5);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-quick-actions b {
  color: #ffd27d;
  font-size: 18px;
  font-weight: 400;
}

.dashboard-howto {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 223, 160, 0.11);
  border-radius: 12px;
  color: rgba(255, 246, 228, 0.58);
  background: rgba(17, 12, 6, 0.36);
  font-size: 11px;
}

.dashboard-howto strong {
  color: #ffe0a3;
}

.dashboard-howto i {
  color: rgba(255, 211, 127, 0.42);
  font-style: normal;
}

@media (max-width: 1040px) {
  .shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  .shell {
    display: block;
  }

  .shell .sidebar {
    gap: 8px;
    padding: 10px 12px 8px;
  }

  .shell .sidebar .brand {
    padding: 2px 4px 9px;
  }

  .shell .sidebar-feature-nav {
    width: 100%;
    flex-direction: row;
    gap: 5px;
    padding: 0 0 2px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .shell .sidebar-section-label {
    display: none;
  }

  .shell .sidebar-feature {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    padding: 0 10px 0 7px;
  }

  .shell .sidebar .server-actions {
    display: none;
  }

  .shell .workspace {
    padding: 0 12px 24px;
  }

  .shell .topbar {
    min-height: 0;
    margin: 0 -12px 14px;
    padding: 13px 12px;
    gap: 10px;
  }

  .shell .status-line #userState,
  .shell #economyTopButton {
    display: none;
  }

  .dashboard-home {
    gap: 20px;
    padding: 20px;
    border-radius: 15px;
  }

  .dashboard-quick-actions {
    grid-template-columns: 1fr;
  }

  .shell .dashboard-quick-actions button {
    min-height: 78px;
    padding: 13px;
  }

  .dashboard-howto {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .dashboard-howto i {
    display: none;
  }
}

/* Glass dashboard — inspirado na referência enviada pelo usuário. */
body.dashboard-open {
  background-attachment: fixed;
}

body.dashboard-open::before {
  opacity: 1;
  background:
    radial-gradient(circle at 73% 16%, rgba(255, 165, 70, 0.16), transparent 30%),
    radial-gradient(circle at 12% 72%, rgba(29, 119, 139, 0.13), transparent 34%),
    linear-gradient(115deg, rgba(6, 10, 18, 0.5), rgba(24, 14, 8, 0.34) 58%, rgba(7, 9, 14, 0.56));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 56px);
  margin: 28px auto;
  padding: 0;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background: transparent;
}

.shell .sidebar {
  position: sticky;
  top: 28px;
  z-index: 2;
  width: 76px;
  height: calc(100vh - 56px);
  min-height: 620px;
  max-height: calc(100vh - 56px);
  gap: 12px;
  padding: 14px 9px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(60, 53, 48, 0.48), rgba(29, 26, 24, 0.52));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.shell .sidebar::after {
  display: none;
}

.shell .sidebar .brand {
  width: 56px;
  min-height: 54px;
  justify-content: center;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.shell .sidebar .brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-color: rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

.shell .sidebar .brand > div,
.shell .sidebar .brand > b {
  display: none;
}

.shell .server-picker-menu {
  position: fixed;
  top: 0;
  right: auto;
  left: calc(100% + 14px);
  z-index: 120;
  width: min(300px, calc(100vw - 150px));
  padding: 12px;
  border-color: rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  background: rgba(38, 33, 29, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform-origin: left top;
  animation: server-menu-enter 180ms ease both;
}

.shell .server-picker-menu > span {
  padding: 3px 7px 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.shell .server-picker-menu .guild-button {
  min-height: 60px;
  padding: 9px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
}

.shell .server-picker-menu .guild-button > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.shell .server-picker-menu .guild-name,
.shell .server-picker-menu .guild-meta {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell .server-picker-menu .guild-name {
  color: #fff;
  font-size: 12px;
}

.shell .server-picker-menu .guild-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
}

.shell .server-picker-menu .guild-button.active {
  border-color: rgba(255, 153, 65, 0.45);
  background: linear-gradient(135deg, rgba(255, 143, 53, 0.2), rgba(255, 255, 255, 0.06));
  box-shadow: inset 3px 0 #ff913b;
}

@keyframes server-menu-enter {
  from {
    opacity: 0;
    transform: translateX(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.shell .sidebar-feature-nav {
  width: 100%;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  overflow-x: hidden;
  scrollbar-width: none;
}

.shell .sidebar-feature-nav::-webkit-scrollbar {
  display: none;
}

.shell .sidebar-section-label,
.shell .sidebar-feature span {
  display: none;
}

.shell .sidebar-feature {
  width: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  justify-content: center;
  padding: 0;
  border-radius: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.shell .sidebar-feature > svg {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 7px;
  border-color: transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.shell .sidebar-feature:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
}

.shell .sidebar-feature.active {
  color: #fff;
  background: linear-gradient(145deg, #ff9a3d, #f16b2d);
  box-shadow: 0 10px 26px rgba(238, 105, 40, 0.34), inset 0 1px rgba(255, 255, 255, 0.32);
}

.shell .sidebar-feature.active > svg {
  border-color: transparent;
  background: transparent;
}

.shell .sidebar-feature.active > svg .icon-soft {
  fill: rgba(255, 255, 255, 0.18);
  stroke: rgba(255, 255, 255, 0.8);
}

.shell .sidebar .server-actions {
  width: 48px;
  display: block;
  margin: auto auto 0;
}

.shell .sidebar .server-actions #teiaAccessLink {
  display: none;
}

.shell .sidebar .server-actions #refreshGuilds {
  position: relative;
  width: 48px;
  min-height: 48px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  color: transparent;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0;
}

.shell .sidebar .server-actions #refreshGuilds::after {
  content: "↻";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
}

.shell .workspace {
  min-height: calc(100vh - 56px);
  padding: 0 26px 30px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), transparent 34%),
    rgba(34, 30, 28, 0.34);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.shell .topbar {
  position: relative;
  top: auto;
  min-height: 88px;
  margin: 0 -26px 22px;
  padding: 17px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px 28px 0 0;
  background: rgba(26, 23, 22, 0.14);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.shell .topbar .eyebrow {
  color: #ffab61;
}

.shell .topbar h2 {
  color: #fff;
  font-size: clamp(22px, 2.4vw, 30px);
}

.shell .status-line > span,
.shell .status-line .ghost-button,
.shell .status-line .primary-button {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.shell .status-line .primary-button {
  color: #fff;
  background: linear-gradient(145deg, #ff9f43, #ef6d31);
  box-shadow: 0 9px 24px rgba(229, 95, 37, 0.26);
}

.shell .dashboard-sky-hub {
  max-width: none;
}

.dashboard-home {
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 144, 54, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 24px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dashboard-home .dashboard-config-copy .live-kicker {
  color: #ffab61;
}

.dashboard-home .dashboard-config-copy strong {
  color: #fff;
}

.dashboard-home .dashboard-config-copy strong em {
  color: #ff9a43;
}

.dashboard-home .dashboard-config-copy p {
  color: rgba(255, 255, 255, 0.62);
}

.shell .dashboard-quick-actions button {
  min-height: 104px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 17px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(31, 28, 27, 0.34);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 15px 28px rgba(0, 0, 0, 0.12);
}

.shell .dashboard-quick-actions button:hover,
.shell .dashboard-quick-actions button:focus-visible {
  border-color: rgba(255, 164, 86, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 159, 67, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(40, 33, 29, 0.52);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.dashboard-quick-actions .quick-action-icon {
  border-color: rgba(255, 169, 94, 0.32);
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 155, 62, 0.88), rgba(225, 91, 35, 0.88));
  box-shadow: 0 8px 18px rgba(232, 96, 35, 0.24);
}

.dashboard-quick-actions strong {
  color: #fff;
}

.dashboard-quick-actions small {
  color: rgba(255, 255, 255, 0.5);
}

.dashboard-quick-actions b {
  color: #ffad68;
}

.dashboard-howto {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.05);
}

.dashboard-howto strong,
.dashboard-howto i {
  color: #ffab61;
}

.shell .content .panel,
.shell .content .config-feature-panel,
.shell .dashboard-missions-head,
.shell .dashboard-missions-grid {
  border-color: rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(28, 25, 24, 0.38);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 18px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.shell input,
.shell select,
.shell textarea {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(10, 9, 9, 0.3);
}

.shell input:focus,
.shell select:focus,
.shell textarea:focus {
  border-color: #ff9a43;
  box-shadow: 0 0 0 3px rgba(255, 142, 58, 0.14);
}

@media (max-width: 760px) {
  .shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    display: block;
  }

  .shell .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 10px 12px 8px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(31, 27, 25, 0.72);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .shell .sidebar .brand {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .shell .sidebar .brand > div,
  .shell .sidebar .brand > b {
    display: block;
  }

  .shell .sidebar .brand > b {
    margin-left: auto;
  }

  .shell .server-picker-menu {
    position: fixed;
    top: 70px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    transform-origin: top center;
  }

  .shell .sidebar-feature-nav {
    align-items: stretch;
    overflow-x: auto;
  }

  .shell .sidebar-feature {
    width: auto;
    min-width: max-content;
    flex-basis: auto;
    gap: 7px;
    padding: 0 10px 0 7px;
  }

  .shell .sidebar-feature span {
    display: inline;
  }

  .shell .workspace {
    min-height: 100vh;
    padding: 0 12px 24px;
    border: 0;
    border-radius: 0;
    background: rgba(25, 22, 21, 0.42);
  }

  .shell .topbar {
    margin: 0 -12px 14px;
    padding: 13px 12px;
    border-radius: 0;
  }

  .dashboard-home {
    padding: 20px;
    border-radius: 18px;
  }
}

/* Mantém conteúdos longos, como Missões, dentro da moldura do dashboard. */
@media (min-width: 761px) {
  .shell {
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
  }

  .shell .workspace {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
  }

  .shell .workspace:has(> .content:not([hidden]))::before,
  .shell .workspace:has(> .content:not([hidden]))::after {
    display: none;
  }

  .shell .topbar {
    flex: 0 0 auto;
  }

  .shell .dashboard-sky-hub:not([hidden]),
  .shell .content:not([hidden]) {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 157, 72, 0.5) rgba(255, 255, 255, 0.06);
    mask-image: linear-gradient(
      to bottom,
      transparent 0,
      #000 18px,
      #000 100%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0,
      #000 18px,
      #000 100%
    );
  }

  .shell .content:not([hidden]) {
    padding: 0 6px 96px 0;
  }

  .shell .dashboard-sky-hub:not([hidden])::-webkit-scrollbar,
  .shell .content:not([hidden])::-webkit-scrollbar {
    width: 8px;
  }

  .shell .dashboard-sky-hub:not([hidden])::-webkit-scrollbar-track,
  .shell .content:not([hidden])::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
  }

  .shell .dashboard-sky-hub:not([hidden])::-webkit-scrollbar-thumb,
  .shell .content:not([hidden])::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(255, 157, 72, 0.5);
    background-clip: padding-box;
  }

  .shell .savebar {
    position: sticky;
    right: auto;
    bottom: 12px;
    z-index: 30;
    width: fit-content;
    max-width: calc(100% - 20px);
    margin: 26px 10px 0 auto;
  }
}

@media (max-width: 760px) {
  .shell .savebar {
    position: sticky;
    right: auto;
    bottom: 10px;
    left: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr);
    width: calc(100% - 16px);
    max-width: none;
    margin: 22px 8px 0;
    gap: 8px;
    padding: 8px;
  }
}

.shell .savebar > button {
  min-width: 0;
  min-height: 42px;
  white-space: nowrap;
}

.shell .savebar {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 48%),
    rgba(18, 24, 34, 0.76);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}

.shell .save-config-button {
  gap: 9px;
  padding-inline: 16px;
}

.shell .save-action-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  color: #4a2d08;
  background: rgba(255, 255, 255, 0.34);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

@media (max-width: 430px) {
  .shell .savebar {
    grid-template-columns: 1fr;
  }

  .shell .savebar > button {
    width: 100%;
  }
}

/* Home pública na mesma linguagem visual do dashboard de vidro. */
body:not(.dashboard-open)::before {
  background:
    radial-gradient(circle at 76% 12%, rgba(255, 157, 65, 0.16), transparent 30%),
    radial-gradient(circle at 12% 75%, rgba(35, 121, 140, 0.13), transparent 36%),
    linear-gradient(115deg, rgba(6, 10, 18, 0.48), rgba(25, 15, 9, 0.3) 58%, rgba(6, 9, 15, 0.55));
}

.landing {
  width: min(1180px, calc(100% - 48px));
  padding: 28px 0 60px;
}

.landing .landing-nav {
  min-height: 72px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 45%),
    rgba(38, 33, 30, 0.34);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.landing .brand span {
  color: rgba(255, 255, 255, 0.55);
}

.landing .site-menu-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
}

.landing .site-menu-toggle:hover,
.landing .site-menu-toggle.is-open {
  border-color: rgba(255, 155, 66, 0.48);
  background: linear-gradient(145deg, #ff9a3d, #ef6b2e);
}

.landing .hero {
  min-height: 610px;
  margin-top: 18px;
  padding: clamp(38px, 5vw, 60px);
  gap: clamp(32px, 5vw, 68px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 145, 53, 0.11), transparent 29%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), transparent 40%),
    rgba(34, 30, 28, 0.31);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.15);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.landing .hero-copy {
  gap: 18px;
}

.landing .hero-kicker {
  border-color: rgba(255, 165, 88, 0.28);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
}

.landing .hero-kicker i {
  background: #ff9a43;
  box-shadow: 0 0 0 5px rgba(255, 142, 58, 0.1), 0 0 18px rgba(255, 142, 58, 0.58);
}

.landing .hero-copy h1 {
  font-size: clamp(50px, 6.4vw, 84px);
  line-height: 0.93;
}

.landing .hero-copy h1 em {
  color: #ff9a43;
  font-family: inherit;
  font-style: normal;
  font-weight: 720;
}

.landing .hero-copy p {
  color: rgba(255, 255, 255, 0.68);
}

.landing .hero-primary,
.landing .socio-actions .primary-button {
  color: #fff;
  background: linear-gradient(145deg, #ff9f43, #ef6d31);
  box-shadow: 0 11px 28px rgba(229, 95, 37, 0.28), inset 0 1px rgba(255, 255, 255, 0.3);
}

.landing .hero-link {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.065);
}

.landing .hero-link span,
.landing .hero-proof b {
  color: #ffad68;
}

.landing .hero-panel {
  padding: clamp(22px, 3vw, 30px);
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(32, 28, 27, 0.4);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 24px 48px rgba(0, 0, 0, 0.2);
}

.landing .feature-head > span,
.landing .feature-symbol {
  color: #ff9f4d;
}

.landing .feature-grid > div,
.landing .feature-grid .feature-main {
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.landing .feature-grid > div:hover {
  border-color: rgba(255, 157, 72, 0.4);
  background: rgba(255, 147, 58, 0.1);
}

.landing .live-strip,
.landing .socio-strip,
.landing .founders-strip {
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(31, 27, 25, 0.32);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.landing .live-card,
.landing .founder-card,
.landing .sponsor-card,
.landing .socio-members {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
}

@media (max-width: 760px) {
  .landing {
    width: calc(100% - 24px);
    padding: 12px 0 36px;
  }

  .landing .landing-nav {
    padding: 9px 12px;
    border-radius: 18px;
  }

  .landing .hero {
    min-height: 0;
    padding: 24px 20px;
    border-radius: 22px;
  }

  .landing .hero-copy h1 {
    font-size: clamp(44px, 14vw, 66px);
  }

  .landing .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .landing .hero-primary,
  .landing .hero-link {
    width: 100%;
    justify-content: center;
  }
}
