:root {
  --bg-0: #03050d;
  --bg-1: #0a1230;
  --bg-2: #120b25;
  --panel: rgba(15, 20, 42, 0.72);
  --panel-strong: rgba(16, 24, 52, 0.88);
  --line: rgba(101, 149, 255, 0.32);
  --line-soft: rgba(101, 149, 255, 0.18);
  --text: #e9f0ff;
  --muted: #98a9d8;
  --brand: #5ee4ff;
  --brand-2: #7effb2;
  --accent: #ff9d5c;
  --danger: #ff6f8f;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -8%, rgba(92, 168, 255, 0.25), transparent 42%),
    radial-gradient(circle at 85% -12%, rgba(255, 157, 92, 0.22), transparent 45%),
    radial-gradient(circle at 55% 120%, rgba(126, 255, 178, 0.16), transparent 36%),
    linear-gradient(160deg, var(--bg-0) 8%, var(--bg-1) 46%, var(--bg-2) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(100, 130, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(100, 130, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000 34%, transparent 100%);
  z-index: -2;
}

.bg-orb {
  position: fixed;
  width: 38vw;
  min-width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.34;
  pointer-events: none;
  z-index: -1;
  animation: drift 14s ease-in-out infinite alternate;
}

.orb-a {
  top: -16vw;
  left: -9vw;
  background: radial-gradient(circle, rgba(94, 228, 255, 0.9) 0%, rgba(94, 228, 255, 0) 68%);
}

.orb-b {
  right: -12vw;
  bottom: -20vw;
  animation-delay: 2s;
  background: radial-gradient(circle, rgba(255, 157, 92, 0.8) 0%, rgba(255, 157, 92, 0) 66%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(5, 10, 24, 0.9), rgba(5, 10, 24, 0.62));
}

.account-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 8px 10px;
}

.account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.account-meta p {
  margin: 0;
  line-height: 1.2;
}

#account-name {
  font-weight: 700;
  font-size: 0.9rem;
}

#account-plan {
  color: var(--muted);
  font-size: 0.82rem;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
  margin-left: 6px;
}

.rank-executive {
  color: #07131b;
  background: linear-gradient(90deg, #ff3cac, #784ba0, #2b86c5, #23d5ab, #ff3cac);
  background-size: 300% 300%;
  animation: executiveGlow 3.5s ease infinite;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 10px rgba(255, 60, 172, 0.6),
    0 0 18px rgba(43, 134, 197, 0.5),
    0 0 26px rgba(35, 213, 171, 0.45);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.rank-directorate {
  color: #07131b;
  background: linear-gradient(135deg, #6dd3ff, #5ee4ff);
  border-color: rgba(94, 228, 255, 0.6);
}

.rank-management {
  color: #07131b;
  background: linear-gradient(135deg, #7effb2, #5ee4ff);
  border-color: rgba(126, 255, 178, 0.6);
}

.rank-supervision {
  color: #07131b;
  background: linear-gradient(135deg, #c4b2ff, #9ad0ff);
  border-color: rgba(154, 208, 255, 0.6);
}

.rank-development {
  color: #07131b;
  background: linear-gradient(135deg, #ffd6a5, #ffadad);
  border-color: rgba(255, 173, 173, 0.6);
}

.rank-support {
  color: #07131b;
  background: linear-gradient(135deg, #b3ffab, #12fff7);
  border-color: rgba(18, 255, 247, 0.6);
}

.rank-staff {
  color: #07131b;
  background: linear-gradient(135deg, #c8d6ff, #8ec5ff);
  border-color: rgba(142, 197, 255, 0.6);
}

@keyframes executiveGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.account-actions {
  display: flex;
  gap: 6px;
}

.account-actions .btn {
  padding: 6px 10px;
  font-size: 0.82rem;
}

.lang-flag {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #071424;
  background: linear-gradient(140deg, var(--brand), #9ad0ff);
  box-shadow: 0 0 26px rgba(94, 228, 255, 0.5);
}

.brand-name {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.topnav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.container {
  width: min(1160px, 92vw);
  margin: 26px auto 44px;
  display: grid;
  gap: 22px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.hero-copy,
.hero-status,
.panel {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(20, 29, 62, 0.74), rgba(12, 17, 36, 0.6));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-copy::after,
.hero-status::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(94, 228, 255, 0.08), transparent 35%, rgba(255, 157, 92, 0.08));
  opacity: 0.7;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 34px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(94, 228, 255, 0.55), rgba(126, 255, 178, 0), rgba(255, 157, 92, 0.45));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.kicker {
  color: var(--brand);
  font-size: 0.86rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.04;
  margin-bottom: 14px;
  text-wrap: balance;
}

.hero-text {
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(130deg, var(--brand) 0%, #6db7ff 50%, var(--brand-2) 100%);
  color: #051020;
  box-shadow: 0 10px 24px rgba(94, 228, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(94, 228, 255, 0.38);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: rgba(126, 255, 178, 0.7);
  box-shadow: 0 8px 22px rgba(126, 255, 178, 0.2);
}

.hero-status {
  padding: 20px;
  background: linear-gradient(160deg, rgba(18, 30, 70, 0.88), rgba(13, 17, 38, 0.86));
}

.hero-status h2 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

#status-line {
  color: var(--muted);
  margin-bottom: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 228, 255, 0.55);
  box-shadow: 0 8px 20px rgba(18, 127, 255, 0.2);
}

.stat-card h3 {
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 5px;
}

.stat-card p {
  font-size: 1.18rem;
  font-weight: 700;
}

.panel {
  padding: 22px;
}

.panel h2 {
  font-size: 1.42rem;
  margin-bottom: 12px;
}

.sub {
  color: var(--muted);
  margin-bottom: 14px;
}

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

.feature-grid article {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.2s ease, border-color 0.25s ease;
  backdrop-filter: blur(6px);
}

.server-card {
  cursor: pointer;
}

.server-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(94, 228, 255, 0.2) inset;
}

.server-card img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 8px;
}

.module-card.locked {
  opacity: 0.55;
  filter: grayscale(0.3);
  border-style: dashed;
  cursor: not-allowed;
}

.server-layout {
  grid-template-columns: 280px 1fr;
  align-items: start;
}

.server-sidebar {
  position: sticky;
  top: 86px;
}

.server-sidebar.collapsed {
  width: 88px;
  overflow: hidden;
}

.server-sidebar.collapsed h2,
.server-sidebar.collapsed .sub,
.server-sidebar.collapsed .feature-grid h3 {
  display: none;
}

.feature-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(126, 255, 178, 0.52);
}

.feature-grid h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--accent);
}

.feature-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.server-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
}

.server-content {
  display: grid;
  gap: 16px;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.sidebar-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-soft);
}

.sidebar-link.active {
  color: var(--text);
  background: rgba(94, 228, 255, 0.12);
  border-color: rgba(94, 228, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(94, 228, 255, 0.2) inset;
}

.sidebar-title {
  margin-top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cfg-input {
  width: 100%;
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.cfg-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(94, 228, 255, 0.15);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(2, 6, 20, 0.32);
}

.update-box {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  display: grid;
  gap: 8px;
  backdrop-filter: blur(6px);
}

.update-box p {
  color: var(--muted);
}

.update-box strong {
  color: var(--text);
}

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

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
}

th {
  font-size: 0.84rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background: rgba(94, 228, 255, 0.08);
}

code {
  color: var(--brand);
}

h1,
h2,
h3 {
  text-shadow: 0 0 14px rgba(94, 228, 255, 0.12);
}

.footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 8px;
  padding: 16px 20px 24px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.footer a {
  color: var(--brand);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(0, 24px, 0) scale(1.08);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

  .server-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding-inline: 16px;
  }

  .topnav {
    width: 100%;
    flex-wrap: wrap;
  }

  .container {
    width: min(1120px, 94vw);
  }

  .hero-copy,
  .hero-status,
  .panel {
    border-radius: 14px;
  }

  .hero-copy {
    padding: 24px;
  }

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

  .account-box {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* Google Translate UI cleanup: hide banner/message and keep layout stable */
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-text-highlight {
  display: none !important;
}

body {
  top: 0 !important;
}
