:root {
  --bg: #050913;
  --bg-soft: #0a1020;
  --panel: rgba(9, 13, 26, 0.84);
  --panel-strong: rgba(8, 12, 23, 0.94);
  --text: #eef3ff;
  --muted: #a9b4ce;
  --gold: #efcb88;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  --zeus: #2d97ff;
  --hera: #9a61ff;
  --st10: #1192ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(41, 127, 255, 0.16), transparent 22%),
    radial-gradient(circle at 86% 18%, rgba(154, 97, 255, 0.16), transparent 22%),
    linear-gradient(165deg, #04070e 0%, #0a1020 46%, #04070f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 112px 112px;
  opacity: 0.07;
  pointer-events: none;
}

.layout {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 420px);
  gap: 28px;
  align-items: center;
  padding: 28px 0;
}

.stack-layout {
  min-height: 100vh;
  padding: 30px 0;
  display: grid;
  gap: 24px;
  align-content: start;
}

.hero-panel,
.auth-panel,
.server-card,
.service-card,
.topbar {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  min-height: 760px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 78% 26%, rgba(163, 98, 255, 0.22), transparent 18%),
    radial-gradient(circle at 81% 30%, rgba(239, 203, 136, 0.12), transparent 10%),
    linear-gradient(135deg, rgba(14, 8, 29, 0.98), rgba(5, 10, 22, 0.98));
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(130, 90, 255, 0.08) 60%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%);
  pointer-events: none;
}

.hero-panel-copy,
.auth-panel,
.server-meta,
.topbar,
.service-card {
  z-index: 1;
}

.brand-chip,
.eyebrow,
.server-badge,
.service-kind,
.service-status,
.user-badge,
.poster-chip,
.brand-banner-chip,
.server-count {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.brand-chip {
  display: inline-flex;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--gold);
  border: 1px solid rgba(239, 203, 136, 0.28);
  background: rgba(154, 97, 255, 0.08);
}

.eyebrow {
  margin: 18px 0 10px;
  color: #a9b6d6;
}

.display-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f3e0b0;
  text-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.display-title-sm {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #f4f0ff;
  overflow-wrap: anywhere;
}

.hero-text,
.server-description,
.service-card p,
.page-description {
  color: var(--muted);
  line-height: 1.72;
}

.hero-text {
  max-width: 58ch;
  font-size: 1.05rem;
}

.posters-grid,
.server-grid,
.service-grid,
.brand-banner {
  display: grid;
  gap: 18px;
}

.posters-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.poster-tile {
  position: relative;
  min-height: 230px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #08101d;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.poster-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 20, 0.08), rgba(5, 8, 17, 0.18) 36%, rgba(5, 8, 17, 0.9) 100%);
  pointer-events: none;
}

.poster-frame {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.poster-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: 0.05em;
}

.poster-line {
  color: #cdd6ee;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.poster-chip,
.brand-banner-chip,
.server-badge,
.service-kind,
.service-status,
.user-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.poster-tile-hera {
  background-image:
    linear-gradient(180deg, rgba(34, 15, 61, 0.12), rgba(34, 15, 61, 0.12)),
    url("/assets/posters/hera-source.jpg");
}

.poster-tile-hera .poster-name,
.theme-hera .poster-title {
  color: #f3d79e;
}

.poster-tile-zeus {
  background-image:
    linear-gradient(180deg, rgba(7, 19, 48, 0.1), rgba(7, 19, 48, 0.1)),
    url("/assets/posters/zeus-source.jpg");
}

.poster-tile-zeus .poster-name,
.theme-zeus .poster-title {
  color: #f2f6ff;
}

.poster-tile-st10 {
  background-image:
    linear-gradient(180deg, rgba(8, 22, 50, 0.08), rgba(8, 22, 50, 0.08)),
    url("/assets/posters/st10-source.jpg");
}

.poster-tile-st10 .poster-name,
.theme-st10 .poster-title {
  color: #e9f3ff;
}

.theme-st10 .poster-title {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.94;
}

.hero-footnote,
.brand-banner {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-footnote span,
.brand-banner-chip {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #d6dff7;
  text-align: center;
}

.auth-panel {
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(10, 15, 31, 0.98), rgba(7, 11, 23, 0.96));
}

.auth-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.auth-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(239, 203, 136, 0.28), rgba(45, 151, 255, 0.28));
  color: var(--gold);
  font-weight: 700;
}

.auth-heading h2,
.topbar h1,
.server-card h2,
.service-card h2 {
  margin: 0.2rem 0 0;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.auth-form input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(80, 133, 255, 0.24);
  background: rgba(6, 11, 23, 0.84);
  color: var(--text);
  outline: none;
}

.auth-form button,
.ghost-button,
.service-link,
.server-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.auth-form button,
.ghost-button,
.service-link {
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.auth-form button {
  background: linear-gradient(135deg, #1f5ed9, #3479ff 52%, #8a7bff);
  color: #fff;
  box-shadow: 0 18px 36px rgba(31, 94, 217, 0.34);
}

.ghost-button {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-error {
  min-height: 1.3rem;
  margin: 0;
  color: #ffbbbb;
}

.topbar {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}

.topbar-poster {
  background:
    linear-gradient(120deg, rgba(10, 14, 29, 0.96), rgba(7, 12, 23, 0.95));
}

.topbar-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  align-items: center;
}

.service-topbar-copy {
  max-width: 66ch;
}

.service-topbar-poster {
  display: flex;
  justify-content: center;
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.server-card,
.service-card {
  padding: 22px;
  color: inherit;
  text-decoration: none;
}

.server-card:hover,
.service-link:hover,
.auth-form button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.server-card:hover {
  border-color: rgba(239, 203, 136, 0.3);
}

.server-poster {
  position: relative;
  min-height: 270px;
  padding: 24px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.theme-zeus .server-poster {
  background:
    linear-gradient(180deg, rgba(5, 10, 20, 0.12), rgba(5, 10, 20, 0.24) 36%, rgba(4, 8, 17, 0.9) 100%),
    url("/assets/posters/zeus-source.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.theme-hera .server-poster {
  background:
    linear-gradient(180deg, rgba(17, 10, 28, 0.08), rgba(17, 10, 28, 0.24) 36%, rgba(7, 5, 14, 0.9) 100%),
    url("/assets/posters/hera-source.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.theme-st10 .server-poster {
  background:
    linear-gradient(180deg, rgba(5, 14, 30, 0.08), rgba(5, 14, 30, 0.22) 36%, rgba(4, 9, 18, 0.9) 100%),
    url("/assets/posters/st10-source.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.poster-copy {
  position: relative;
  z-index: 2;
  max-width: 70%;
}

.poster-title {
  margin: 14px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

.poster-subtitle {
  margin: 0;
  color: #d9e3ff;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.poster-emblem {
  position: absolute;
  right: 18px;
  top: 22px;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.poster-insignia {
  position: absolute;
  left: 24px;
  top: 24px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 9, 19, 0.35);
  color: #f4f0ff;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
}

.poster-orbit,
.poster-glow {
  position: absolute;
  border-radius: 50%;
}

.poster-orbit {
  right: 28px;
  bottom: 22px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.03);
  opacity: 0.6;
}

.poster-glow {
  right: 48px;
  bottom: 42px;
  width: 62px;
  height: 62px;
}

.theme-zeus .poster-glow {
  background: radial-gradient(circle, rgba(45, 151, 255, 0.95), rgba(45, 151, 255, 0));
}

.theme-hera .poster-glow {
  background: radial-gradient(circle, rgba(154, 97, 255, 0.95), rgba(154, 97, 255, 0));
}

.theme-st10 .poster-glow {
  background: radial-gradient(circle, rgba(17, 146, 255, 0.92), rgba(17, 146, 255, 0));
}

.server-meta {
  display: grid;
  gap: 10px;
}

.server-subtitle {
  margin: 8px 0 10px;
  color: #dde7ff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.server-summary,
.service-access,
.page-subtitle {
  margin: 0;
  color: #f5dfb1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.server-footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.server-count {
  color: #d5dff6;
}

.server-cta {
  color: #9bd2ff;
  font-weight: 700;
}

.theme-zeus {
  box-shadow: inset 0 0 0 1px rgba(45, 151, 255, 0.14), var(--shadow);
}

.theme-hera {
  box-shadow: inset 0 0 0 1px rgba(154, 97, 255, 0.16), var(--shadow);
}

.theme-st10 {
  box-shadow: inset 0 0 0 1px rgba(17, 146, 255, 0.16), var(--shadow);
}

.server-page-crest {
  width: 8rem;
  height: 8rem;
  display: grid;
  place-items: center;
  border-radius: 32px;
  font-size: 3rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.theme-zeus .server-page-crest {
  background: linear-gradient(135deg, rgba(45, 151, 255, 0.76), rgba(83, 202, 255, 0.16));
}

.theme-hera .server-page-crest {
  background: linear-gradient(135deg, rgba(154, 97, 255, 0.78), rgba(239, 203, 136, 0.14));
}

.theme-st10 .server-page-crest {
  background: linear-gradient(135deg, rgba(17, 146, 255, 0.8), rgba(96, 204, 255, 0.16));
}

.theme-zeus .server-page-crest,
.theme-hera .server-page-crest,
.theme-st10 .server-page-crest {
  color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.theme-zeus .server-page-crest {
  background-image:
    linear-gradient(180deg, rgba(7, 14, 28, 0.08), rgba(7, 14, 28, 0.18)),
    url("/assets/posters/zeus-source.jpg");
}

.theme-hera .server-page-crest {
  background-image:
    linear-gradient(180deg, rgba(24, 11, 41, 0.08), rgba(24, 11, 41, 0.18)),
    url("/assets/posters/hera-source.jpg");
}

.theme-st10 .server-page-crest {
  background-image:
    linear-gradient(180deg, rgba(6, 18, 42, 0.08), rgba(6, 18, 42, 0.18)),
    url("/assets/posters/st10-source.jpg");
}

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

.service-card {
  min-height: 250px;
}

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

.service-orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f8fbff;
}

.theme-zeus .service-orb {
  background: radial-gradient(circle, rgba(45, 151, 255, 0.9), rgba(45, 151, 255, 0.08));
}

.theme-hera .service-orb {
  background: radial-gradient(circle, rgba(154, 97, 255, 0.9), rgba(154, 97, 255, 0.08));
}

.theme-st10 .service-orb {
  background: radial-gradient(circle, rgba(17, 146, 255, 0.9), rgba(17, 146, 255, 0.08));
}

.service-status-online {
  color: #9df3c1;
}

.service-status-implantacao {
  color: #ffd994;
}

.service-status-planejado {
  color: #c7bfd9;
}

.service-link {
  margin-top: 12px;
  color: white;
  background: linear-gradient(135deg, rgba(41, 118, 255, 0.96), rgba(151, 89, 255, 0.96));
}

.service-access-masked {
  color: #efcb88;
}

.service-access-external {
  color: #96cdff;
}

.service-disabled {
  display: inline-block;
  margin-top: 12px;
  color: #cdb8ff;
  font-weight: 700;
}

.backdrop {
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
}

.backdrop-left {
  top: -10rem;
  left: -12rem;
  background: rgba(45, 151, 255, 0.46);
}

.backdrop-right {
  right: -12rem;
  bottom: -10rem;
  background: rgba(154, 97, 255, 0.42);
}

.flash,
.panel-block {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.flash {
  padding: 16px 18px;
  color: #f6f9ff;
}

.flash-info {
  border-color: rgba(45, 151, 255, 0.28);
}

.flash-error {
  border-color: rgba(255, 119, 119, 0.35);
  color: #ffd2d2;
}

.panel-block {
  padding: 24px;
}

.panel-block-centered {
  text-align: center;
  max-width: 720px;
  margin: 8vh auto 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #d5def4;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.table-muted {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.92rem;
}

.table-link {
  color: #8fc0ff;
  text-decoration: none;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
}

.pill-admin {
  background: rgba(239, 203, 136, 0.14);
  color: #f6d995;
}

.pill-active {
  background: rgba(78, 202, 127, 0.14);
  color: #8ef1a0;
}

.pill-inactive {
  background: rgba(255, 117, 117, 0.14);
  color: #ffb3b3;
}

.admin-form {
  display: grid;
  gap: 24px;
}

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

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

.field span,
.permissions-header p,
.permission-group p,
.toggle-card p,
.field small {
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(80, 133, 255, 0.24);
  background: rgba(6, 11, 23, 0.84);
  color: var(--text);
  outline: none;
}

.toggle-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.toggle-card input {
  margin-top: 4px;
}

.permissions-shell {
  display: grid;
  gap: 18px;
  border: 0;
  margin: 0;
  padding: 0;
}

.permissions-shell:disabled {
  opacity: 0.55;
}

.permissions-header h2,
.permission-group h3 {
  margin: 0;
}

.permission-group {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.permission-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.permission-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 11, 23, 0.58);
}

.permission-item input {
  justify-self: start;
}

.permission-item small {
  color: #9bb0d2;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.form-actions button {
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #1f5ed9, #3479ff 52%, #8a7bff);
  color: #fff;
  box-shadow: 0 18px 36px rgba(31, 94, 217, 0.34);
}

.empty-state {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .login-layout,
  .server-grid,
  .service-grid,
  .posters-grid,
  .hero-footnote,
  .brand-banner,
  .form-grid,
  .toggle-grid,
  .permission-grid {
    grid-template-columns: 1fr;
  }

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

  .service-topbar-poster,
  .topbar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .layout {
    width: min(100% - 20px, 1280px);
  }

  .hero-panel,
  .auth-panel,
  .topbar,
  .server-card,
  .service-card {
    padding: 20px;
  }

  .poster-copy {
    max-width: 100%;
  }

  .poster-emblem {
    width: 4.3rem;
    height: 4.3rem;
    font-size: 1.6rem;
  }

  .server-page-crest {
    width: 6rem;
    height: 6rem;
    font-size: 2.2rem;
  }

  .server-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-table {
    min-width: 720px;
  }

  .table-wrap {
    overflow-x: auto;
  }
}
