:root {
  --bg: #050608;
  --bg-soft: #0b0d12;
  --card: rgba(31, 31, 36, 0.82);
  --card-strong: rgba(42, 42, 48, 0.95);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --gold: #d6b13f;
  --gold-2: #f1d36b;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, rgba(214, 177, 63, 0.13), transparent 28%),
    radial-gradient(circle at 90% 35%, rgba(255, 255, 255, 0.06), transparent 26%),
    linear-gradient(135deg, #050608 0%, #090a0f 55%, #050608 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.app {
  display: flex;
  min-height: 100vh;
  padding: 22px;
  gap: 22px;
}

.sidebar {
  width: 300px;
  position: sticky;
  top: 22px;
  height: calc(100vh - 44px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: rgba(16, 17, 22, 0.78);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: slideInLeft 0.45s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.seal {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #161616;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 28px rgba(214, 177, 63, 0.28);
}

.brand h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0.2px;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

nav a {
  position: relative;
  color: #d4d4d8;
  text-decoration: none;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: 0.22s ease;
}

nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.065);
  border-color: var(--border);
  transform: translateX(4px);
}
nav a.active {
  color: #fff;
  background: rgba(214, 177, 63, 0.16);
  border-color: rgba(214, 177, 63, 0.4);
}

nav a.active::before {
  height: 22px;
}

nav a::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 4px;
  height: 0;
  border-radius: 99px;
  background: var(--gold);
  transform: translateY(-50%);
  transition: 0.22s ease;
}

nav a:hover::before {
  height: 20px;
}

.user-card {
  margin-top: auto;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.user-card strong,
.user-card span,
.user-card small {
  display: block;
}

.user-card span {
  margin-top: 6px;
  color: var(--gold-2);
}

.user-card small {
  margin-top: 6px;
  color: var(--muted);
}

.content {
  flex: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: 14px 10px 40px;
  animation: fadeUp 0.45s ease both;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: 0.22s ease;
}

.card:hover {
  border-color: var(--border-strong);
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -1px;
}

h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

h3 {
  margin: 18px 0 12px;
}

p {
  color: #d4d4d8;
}

label {
  display: block;
  margin: 10px 0 6px;
  color: #c9c9d1;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: rgba(12, 13, 18, 0.82);
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(214, 177, 63, 0.85);
  box-shadow: 0 0 0 4px rgba(214, 177, 63, 0.12);
}

textarea {
  font-family: Consolas, monospace;
  resize: vertical;
}

button {
  border: 0;
  border-radius: 13px;
  padding: 12px 17px;
  margin: 5px 6px 5px 0;
  font-weight: 800;
  cursor: pointer;
  color: #111;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 10px 24px rgba(214, 177, 63, 0.18);
  transition: 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(214, 177, 63, 0.28);
}

button:active {
  transform: translateY(0);
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tabs button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--border);
}

.tabs button:hover {
  background: rgba(214, 177, 63, 0.16);
  border-color: rgba(214, 177, 63, 0.45);
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.table th {
  color: #f5f5f5;
  font-size: 13px;
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--border-strong);
}

.table td {
  color: #d4d4d8;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.table tr {
  transition: 0.18s ease;
}

.table tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-gold {
  background: rgba(214, 177, 63, 0.2);
  color: #fde68a;
  border: 1px solid rgba(214, 177, 63, 0.42);
}

.badge-gray {
  background: rgba(113, 113, 122, 0.22);
  color: #e4e4e7;
  border: 1px solid rgba(113, 113, 122, 0.35);
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.editor-panel textarea {
  min-height: 620px;
}

.preview-box {
  background: rgba(8, 9, 13, 0.82);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  color: #e5e7eb;
  min-height: 620px;
  overflow-x: auto;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.25);
}

.staff-row {
  margin-top: 15px;
  animation: fadeUp 0.25s ease both;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(520px, 100%);
  background: rgba(16, 17, 22, 0.82);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: fadeUp 0.45s ease both;
}

.auth-logo {
  width: 140px;
  height: 140px;

  object-fit: contain;

  display: block;
  margin: 0 auto 25px auto;
}

.auth-card a {
  color: var(--gold-2);
  text-decoration: none;
}

.auth-card a:hover {
  text-decoration: underline;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.error-code {
  font-size: clamp(80px, 18vw, 180px);
  line-height: 0.85;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 45px rgba(214, 177, 63, 0.25);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1150px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .editor-panel textarea,
  .preview-box {
    min-height: 420px;
  }
}

@media (max-width: 850px) {
  .app {
    flex-direction: column;
    padding: 12px;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content {
    padding: 0 0 30px;
  }

  .card {
    padding: 18px;
    border-radius: 18px;
  }
}

@media (max-width: 520px) {
  nav {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .tabs button {
    width: 100%;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
nav a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 24px;
  display: inline-flex;
  justify-content: center;
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(214, 177, 63, 0.18));
}
.page-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, rgba(214,177,63,0.16), rgba(255,255,255,0.035));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.45s ease both;
}

.eyebrow {
  color: var(--gold-2);
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 12px;
  margin: 0 0 10px;
}

.live-clock {
  min-width: 220px;
  text-align: right;
  padding: 18px;
  border-radius: 20px;
  background: rgba(0,0,0,0.26);
  border: 1px solid var(--border);
}

.live-clock span,
.live-clock strong {
  display: block;
}

.live-clock span {
  color: var(--muted);
  font-size: 13px;
}

.live-clock strong {
  margin-top: 6px;
  font-size: 30px;
  color: var(--gold-2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: 0.22s ease;
  animation: fadeUp 0.45s ease both;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214,177,63,0.38);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(214,177,63,0.12);
}

.stat-card span {
  font-size: 28px;
}

.stat-card p {
  margin: 14px 0 8px;
  color: var(--muted);
}

.stat-card strong {
  font-size: 34px;
  color: var(--text);
  text-transform: capitalize;
}

.toast-container {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 9999;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 260px;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--text);
  background: rgba(16, 17, 22, 0.92);
  border: 1px solid rgba(214,177,63,0.38);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: toastIn 0.25s ease both;
}

.toast strong {
  color: var(--gold-2);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 950px) {
  .page-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .live-clock {
    width: 100%;
    text-align: left;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(214, 177, 63, 0.35));
}

.brand h2 {
  color: var(--gold-2);
}
.user-avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 12px;
  border: 1px solid rgba(214,177,63,0.45);
  box-shadow: 0 0 22px rgba(214,177,63,0.22);
}
.template-help-btn {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;

  width: 64px;
  height: 64px;

  z-index: 999999;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;

  cursor: pointer;

  background: rgba(214,177,63,.18);
  border: 1px solid rgba(214,177,63,.45);

  backdrop-filter: blur(20px);
}

.template-help-btn:hover {
  transform: scale(1.08);
}

.template-help-panel {
  position: fixed !important;
  right: 24px !important;
  bottom: 100px !important;

  z-index: 999999;

  width: 500px;
}

.template-help-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.template-help-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 15px;
}

.template-help-header button {
  width: auto;
  padding: 6px 12px;
}
.template-help-btn {
  position: fixed !important;
  right: 26px !important;
  bottom: 26px !important;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  cursor: pointer;
  z-index: 1000001;
  background: linear-gradient(135deg, rgba(214,177,63,.95), rgba(241,211,107,.95));
  color: #111;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 16px 45px rgba(0,0,0,.45), 0 0 24px rgba(214,177,63,.35);
}

.template-help-btn:hover {
  transform: translateY(-3px) scale(1.04);
}

.template-help-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000000;
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
}

.template-help-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.template-help-panel {
  position: fixed !important;
  right: 26px !important;
  bottom: 104px !important;
  width: min(560px, calc(100vw - 52px));
  max-height: 72vh;
  overflow-y: auto;
  z-index: 1000002;
  padding: 22px;
  border-radius: 24px;
  background: #111217 !important;
  border: 1px solid rgba(214,177,63,.42);
  box-shadow: 0 25px 70px rgba(0,0,0,.65);
  opacity: 0 !important;
  transform: translateY(18px) scale(.98) !important;
  pointer-events: none !important;
  transition: .24s ease;
}

.template-help-panel.open {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.template-help-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: -22px;
  background: #111217;
  padding: 4px 0 14px;
  z-index: 2;
}

.template-help-header h3 {
  margin: 0;
}

.template-help-header button {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}
.template-help-overlay {
  display: none !important;
}

.template-help-btn {
  right: 18px !important;
  bottom: 18px !important;
  transform: translateX(0) !important;
}

.template-help-panel {
  right: 18px !important;
  bottom: 92px !important;
  width: 420px !important;
  max-height: 70vh;
  background: rgba(17, 18, 23, 0.98) !important;
  backdrop-filter: none !important;
}

.template-help-panel.open {
  pointer-events: auto !important;
}
.discord-login {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.discord-login a {
  width: auto;
}

.discord-login button {
  width: auto !important;
  min-width: 240px;
}
.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.roster-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: .22s ease;
  animation: fadeUp .35s ease both;
}

.roster-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214,177,63,.38);
}

.roster-card img {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(214,177,63,.45);
  box-shadow: 0 0 22px rgba(214,177,63,.2);
}

.roster-card h3 {
  margin: 0 0 5px;
}

.roster-card p {
  margin: 0;
  color: var(--gold-2);
}

.roster-card small {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .roster-grid {
    grid-template-columns: 1fr;
  }
}
.roster-section {
  margin-bottom: 30px;
}

.roster-center {
  display: flex;
  justify-content: center;
}

.roster-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
}

.roster-card {
  width: 260px;
  text-align: center;
}

.roster-ag {
  width: 320px;
  transform: scale(1.08);
  border: 1px solid rgba(214,177,63,.45);
  box-shadow:
    0 0 35px rgba(214,177,63,.25),
    0 15px 45px rgba(0,0,0,.25);
}
.org-chart {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.org-section {
  animation: fadeUp .35s ease both;
}

.org-section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.org-section-title span {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(214,177,63,.45),
    transparent
  );
}

.org-section-title h2 {
  margin: 0;
  color: var(--gold-2);
  font-size: 18px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.org-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.org-card {
  width: 260px;
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: .22s ease;
  position: relative;
  overflow: hidden;
}

.org-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(214,177,63,.08);
}

.org-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214,177,63,.4);
}

.org-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  z-index: 1;
}

.org-avatar-wrap img {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(214,177,63,.45);
  box-shadow: 0 0 20px rgba(214,177,63,.18);
}

.org-info {
  min-width: 0;
  z-index: 1;
}

.org-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.15;
  word-break: break-word;
}

.org-info small {
  color: var(--muted);
  word-break: break-word;
}

.roster-rank-ag .org-row {
  justify-content: center;
}

.roster-rank-ag .org-card {
  width: 330px;
  border-color: rgba(214,177,63,.55);
  background: linear-gradient(135deg, rgba(214,177,63,.16), rgba(31,31,36,.86));
  box-shadow:
    0 0 35px rgba(214,177,63,.22),
    0 18px 55px rgba(0,0,0,.32);
}

.roster-rank-ag .org-avatar-wrap img {
  width: 78px;
  height: 78px;
  border-radius: 24px;
}

.developer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #5865f2, #8b5cf6);
  box-shadow: 0 0 20px rgba(88,101,242,.38);
}

.developer-card {
  border-color: rgba(88,101,242,.65) !important;
  box-shadow:
    0 0 32px rgba(88,101,242,.26),
    0 15px 45px rgba(0,0,0,.28);
}

@media (max-width: 620px) {
  .org-card {
    width: 100%;
  }

  .roster-rank-ag .org-card {
    width: 100%;
  }

  .org-section-title {
    grid-template-columns: 1fr;
  }

  .org-section-title span {
    display: none;
  }
}
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 28px;
  margin-bottom: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 20%, rgba(214,177,63,.20), transparent 32%),
    linear-gradient(135deg, rgba(31,31,36,.92), rgba(13,14,19,.92));
  border: 1px solid rgba(214,177,63,.24);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: fadeUp .45s ease both;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dashboard-user img {
  width: 94px;
  height: 94px;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid rgba(214,177,63,.5);
  box-shadow: 0 0 28px rgba(214,177,63,.22);
}

.dashboard-user h1 {
  margin: 0 0 8px;
}

.dashboard-user p {
  margin: 0 0 6px;
  color: var(--gold-2);
  font-weight: 800;
}

.dashboard-user small {
  color: var(--muted);
}

@media (max-width: 850px) {
  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-user {
    flex-direction: column;
    align-items: flex-start;
  }
}
.developer-card::before {
  content: "★";
  position: absolute;
  top: 10px;
  right: 14px;
  color: #8b5cf6;
  font-size: 20px;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(139,92,246,.65));
}

.roster-rank-ag .org-card::before {
  content: "👑";
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 20px;
  z-index: 2;
}
.card,
.stat-card,
.org-card,
.server-card,
.server-mini-card,
.dashboard-hero,
.page-hero {
  animation: fadeUp .45s ease both;
}

.card:hover,
.stat-card:hover,
.server-card:hover,
.server-mini-card:hover {
  transform: translateY(-3px);
}

.server-card {
  margin-bottom: 22px;
  padding: 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(214,177,63,.18), transparent 30%),
    linear-gradient(135deg, rgba(31,31,36,.92), rgba(13,14,19,.92));
  border: 1px solid rgba(214,177,63,.22);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: .22s ease;
}

.server-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.server-card-header h2 {
  margin: 0 0 8px;
}

.server-card-header p {
  margin: 0;
}

.server-grid {
  display: grid;
  gap: 18px;
}

.server-mini-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 22px;
  background: rgba(0,0,0,.22);
  border: 1px solid var(--border);
  transition: .22s ease;
}

.server-mini-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(214,177,63,.12);
}

.server-mini-card span {
  font-size: 28px;
}

.server-mini-card p {
  margin: 12px 0 8px;
  color: var(--muted);
}

.server-mini-card strong {
  font-size: 24px;
  color: var(--text);
}

@keyframes softPulse {
  0%, 100% {
    box-shadow: 0 0 22px rgba(214,177,63,.18);
  }

  50% {
    box-shadow: 0 0 38px rgba(214,177,63,.34);
  }
}

.dashboard-user img,
.user-avatar,
.org-avatar-wrap img {
  animation: softPulse 3s ease-in-out infinite;
}

@media (max-width: 900px) {
  .server-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .server-grid {
    grid-template-columns: 1fr;
  }
}
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: -1;

  background:
    radial-gradient(circle, rgba(214,177,63,.12) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,.06) 0 1px, transparent 2px);

  background-size: 90px 90px, 140px 140px;
  animation: bgParticles 38s linear infinite;
  opacity: .55;
}

@keyframes bgParticles {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  to {
    transform: translate3d(120px, 80px, 0) rotate(8deg);
  }
}

body {
  background:
    radial-gradient(circle at 15% 20%, rgba(214,177,63,.15), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(88,101,242,.10), transparent 30%),
    radial-gradient(circle at 70% 80%, rgba(214,177,63,.08), transparent 28%),
    linear-gradient(135deg, #050608 0%, #090a0f 55%, #050608 100%);
}
.server-grid-extended {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.server-grid-extended .server-mini-card:nth-child(2) {
  grid-column: span 2;
  border-color: rgba(214,177,63,.45);
  background:
    radial-gradient(circle at 90% 10%, rgba(214,177,63,.18), transparent 35%),
    rgba(0,0,0,.24);
}

.server-grid-extended .server-mini-card:nth-child(2) strong {
  color: var(--gold-2);
}

@media (max-width: 1200px) {
  .server-grid-extended {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-grid-extended .server-mini-card:nth-child(2) {
    grid-column: span 1;
  }
}

@media (max-width: 650px) {
  .server-grid-extended {
    grid-template-columns: 1fr;
  }
}