.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  transition: background-color 500ms ease, color 500ms ease;
}

.bg-orb {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}


.orb-1 {
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.6), transparent 70%);
}

.orb-2 {
  bottom: -200px;
  right: -140px;
  background: radial-gradient(circle, rgba(95, 214, 255, 0.6), transparent 70%);
}

.content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
}

.section-sub {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.is-hidden {
  display: none !important;
}

.navbar {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 0 20px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(2px) saturate(110%);
  -webkit-backdrop-filter: blur(2px) saturate(110%);
  transition: background-color 500ms ease, border-color 500ms ease, box-shadow 500ms ease, color 500ms ease;
  overflow: visible;
}


.navbar-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.35;
  transform: translateY(-4px) scale(1.05);
  backdrop-filter: blur(4px) saturate(160%);
  -webkit-backdrop-filter: blur(4px) saturate(160%);
  mask-image: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.35) 58%, transparent 78%);
  pointer-events: none;
}

.navbar-inner::after {
  content: none;
}

.navbar-inner > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: inherit;
}

.brand-mark {
  height: 40px;
  width: auto;
  max-width: 80px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.nav-link {
  padding: 6px 0;
  position: relative;
}

.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 999px;
  background: var(--nav-underline);
}

.nav-link-shop {
  color: #ffbf73;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 168, 61, 0.28);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .nav-link-shop {
    background-image: linear-gradient(90deg, #ffb347 0%, #ffd45f 35%, #ff8a3d 70%, #ffd45f 100%);
    background-size: 220% auto;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: donate-shimmer 3.2s linear infinite;
    text-shadow: none;
  }
  .nav-link-shop.is-active {
    color: transparent;
    background-image: linear-gradient(90deg, #ffb347 0%, #ffd45f 35%, #ff8a3d 70%, #ffd45f 100%);
    background-size: 220% auto;
    background-position: 0% 50%;
    animation: donate-shimmer 3.2s linear infinite;
  }
}

.nav-link-shop:hover {
  filter: brightness(1.08);
}

.nav-link-shop.is-active {
  filter: brightness(1.12);
}

@keyframes donate-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  padding: 6px 0;
}

.nav-dropdown-toggle.is-open,
.nav-dropdown-toggle:hover {
  color: var(--text);
}

.nav-dropdown-toggle.is-active {
  color: var(--text);
  position: relative;
}

.nav-dropdown-toggle.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.nav-caret {
  font-size: 12px;
  opacity: 0.8;
}

.nav-dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 12px;
  display: flex;
  pointer-events: none;
  visibility: hidden;
  flex-direction: column;
  gap: 8px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  z-index: 10003;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 320ms ease, transform 320ms ease;
}

.nav-dropdown-menu.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.18);
  color: #cbb9ff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 6px 10px;
  cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  background: rgba(124, 92, 255, 0.26);
  border-color: rgba(124, 92, 255, 0.6);
}

:root[data-theme="light"] .nav-toggle {
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.06);
  color: #111111;
}

:root[data-theme="light"] .nav-toggle:hover {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.35);
}

.nav-social {
  display: flex;
  gap: 10px;
}

.nav-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4da3ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.nav-social-btn svg {
  display: block;
  fill: currentColor;
}

.nav-social-btn:hover {
  transform: translateY(-1px);
  background: rgba(77, 163, 255, 0.18);
  border-color: rgba(77, 163, 255, 0.4);
  color: #78b9ff;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: center;
}

.hero-home {
  grid-template-columns: 1fr;
}

.hero-home-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 28px;
  padding: 0;
}

.hero-home-art {
  display: flex;
  justify-content: flex-end;
}

.hero-home-art img {
  height: 520px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: none;
  opacity: 0.9;
  filter: saturate(0.9) brightness(0.95);
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-buttons {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.neu-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: background-color 500ms ease, box-shadow 500ms ease, color 500ms ease;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.news-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: stretch;
}

.video-section {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.video-intro {
  text-align: center;
}

.video-kicker {
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.video-frame {
  width: 1000px;
  height: 600px;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.servers_section {
  margin-top: 30px;
}

.servers_section .title {
  text-align: center;
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.cards-server {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.card-server {
  width: 446px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

 .card-server__top {
  position: relative;
  border-radius: 15px;
  padding: 14px;
  min-height: 255px;
  overflow: hidden;
  background:
    linear-gradient(var(--card-overlay), var(--card-overlay)),
    var(--card-bg) center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.card-server__top::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 22px;
  box-shadow: 0 0 22px rgba(124, 92, 255, 0.35), 0 0 42px rgba(124, 92, 255, 0.25);
  opacity: 0.65;
  pointer-events: none;
}

.card-server__logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #eaf1ff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 10px;
}

.card-server__description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.card-server__online {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7ffe0;
  font-weight: 600;
  font-size: 12px;
  margin-top: 6px;
}

.card-server__online.is-offline {
  color: #ffb3b3;
}

.circle-container {
  position: relative;
  width: 12px;
  height: 12px;
}

.circle {
  position: absolute;
  border-radius: 50%;
}

.outer-circle {
  inset: -3px;
  background: rgba(90, 220, 140, 0.25);
}

.inner-circle {
  inset: 2px;
  background: #4bd983;
}

.card-server__online.is-offline .outer-circle {
  background: rgba(255, 120, 120, 0.25);
}

.card-server__online.is-offline .inner-circle {
  background: #ff7c7c;
}

.card-server__status {
  margin-top: 6px;
  font-size: 10px;
  color: #a6ffb7;
}

.card-server__status.is-offline {
  color: #ff9b9b;
}

.card-server__more {
  text-align: center;
  font-weight: 600;
  color: #4da3ff;
}

.news-card {
  display: grid;
  gap: 16px;
}

.news-card--featured {
  grid-row: span 3;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-card--featured .news-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 auto;
  display: block;
  object-position: top center;
}

.news-card--featured {
  align-content: start;
}

.news-card--featured .news-body {
  width: 80%;
  margin: 0 auto;
  margin-top: 12px;
}

.news-card--compact {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: start;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-card--compact .news-thumb {
  width: 180px;
  aspect-ratio: 16 / 9;
  height: auto;
}

.news-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-card--compact .news-body h3 {
  font-size: 15px;
}

.news-card--compact .news-body p {
  font-size: 12.5px;
}

.news-card--compact .news-link {
  font-size: 12px;
}

.news-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.news-body p {
  margin: 0;
  color: var(--muted);
}

.news-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 600;
}

.news-link:hover {
  text-decoration: underline;
}

.news-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.news-list {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.news-empty {
  margin-top: 16px;
  color: var(--muted);
}

.news-hero {
  display: flex;
  justify-content: center;
  text-align: center;
}

.news-back {
  color: var(--muted);
  text-decoration: none;
}

.news-back:hover {
  color: var(--text);
}

.news-detail {
  display: grid;
  gap: 20px;
}

.news-detail-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.news-detail-media img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 18px;
  object-fit: contain;
  background: transparent;
}

.news-detail-body p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(124, 92, 255, 0.12);
  margin-bottom: 18px;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background-color 500ms ease, border-color 500ms ease, box-shadow 500ms ease, color 500ms ease;
}

.glass-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.stats {
  display: flex;
  gap: 24px;
  align-items: center;
}

.stat-block {
  text-align: center;
}

.stat-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.divider {
  width: 1px;
  height: 50px;
  background: var(--glass-border);
}

.form-panel {
  display: grid;
  gap: 18px;
}

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

.label {
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.input,
.textarea {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  outline: none;
  transition: background-color 500ms ease, border-color 500ms ease, color 500ms ease, box-shadow 500ms ease;
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  border-radius: var(--radius-sm);
  background-clip: padding-box;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 22px) 52%,
    calc(100% - 16px) 52%,
    100% 0;
  background-size: 6px 6px, 6px 6px, 2.5em 2.5em;
  background-repeat: no-repeat;
}

select.input option {
  background-color: #120d1c;
  color: #f7f8ff;
}

:root[data-theme="light"] select.input option {
  background-color: #ffffff;
  color: #111318;
}

.input:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.25);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--speed) ease, box-shadow var(--speed) ease;
  transition: transform var(--speed) ease, box-shadow var(--speed) ease, background-color 500ms ease, color 500ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 12px 20px rgba(124, 92, 255, 0.25);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--card-shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}

:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(124, 92, 255, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] .btn-secondary,
:root[data-theme="light"] .btn-ghost {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

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

.btn.is-active {
  box-shadow: 0 12px 24px rgba(124, 92, 255, 0.35);
  border: 1px solid rgba(124, 92, 255, 0.45);
}

.btn.is-disabled {
  opacity: 0.6;
  pointer-events: none;
  transform: none;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.toggle input {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--glass-border);
  position: relative;
  cursor: pointer;
}

.toggle input::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  background: var(--text);
  transition: transform var(--speed) ease;
}

.toggle input:checked {
  background: rgba(124, 92, 255, 0.4);
}

.toggle input:checked::after {
  transform: translateX(20px);
  background: #fff;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 40px 24px 60px;
  color: var(--muted);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.footer-split {
  align-items: flex-start;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-right {
  text-align: right;
  align-items: flex-end;
}

.footer-link {
  color: #4da3ff;
  text-decoration: none;
}

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

.footer-disclaimer {
  max-width: 520px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.toast-stack {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 12px;
  z-index: 20000;
  width: min(520px, calc(100% - 24px));
  pointer-events: none;
}

.toast {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(18, 18, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f6ff;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  position: relative;
}

.toast-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.toast-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c5cff;
  background: rgba(124, 92, 255, 0.2);
  border-radius: 10px;
}

.toast-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.toast-title {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toast-message {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(244, 246, 255, 0.9);
}

.toast-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 16px;
}

.toast.is-info {
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 18px 30px rgba(80, 60, 180, 0.25);
}

.toast.is-success {
  border-color: rgba(56, 217, 150, 0.45);
  box-shadow: 0 18px 30px rgba(56, 217, 150, 0.2);
}

.toast.is-error {
  border-color: rgba(255, 122, 107, 0.5);
  box-shadow: 0 18px 30px rgba(255, 122, 107, 0.2);
}

:root[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.96);
  color: #1a1b2e;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .toast-message {
  color: rgba(20, 24, 40, 0.8);
}

:root[data-theme="light"] .toast-icon {
  color: #ffffff;
  background: #7c5cff;
}

.toast {
  animation: toast-in 240ms ease;
}

.toast.is-leaving {
  animation: toast-out 180ms ease forwards;
}

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

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

 

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

@media (max-width: 920px) {
  .navbar-inner {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  .nav-toggle {
    display: inline-flex;
    order: 2;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    padding: 16px;
    border-radius: 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    z-index: 10001;
    width: 100%;
    max-height: calc(100vh - 140px);
    overflow: auto;
  }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 8px 0 0;
    display: none;
  }
  .nav-dropdown-menu.is-open {
    display: flex;
  }
  .navbar.is-open .nav-links {
    display: flex;
  }
  .nav-actions {
    margin-left: auto;
    order: 2;
  }
  .hero-title {
    font-size: 38px;
  }
}

@media (max-width: 640px) {
  .content {
    padding: 96px 16px 64px;
  }
  .glass-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats {
    width: 100%;
    justify-content: space-between;
  }
  .divider {
    display: none;
  }
}

@media (max-width: 1200px) {
  .content,
  .navbar-inner {
    max-width: 1040px;
  }
  .video-frame {
    width: 100%;
    height: 520px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .content {
    gap: 56px;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-home-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-home-art {
    justify-content: center;
  }
  .hero-home-art img {
    height: 360px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .video-frame {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .cards-server {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .card-server {
    width: min(442px, 100%);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 12px;
    top: 12px;
  }
  .navbar-inner {
    padding: 12px 14px;
  }
  .hero-title {
    font-size: 34px;
  }
  .section-title {
    font-size: 24px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .news-card--featured .news-thumb {
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .news-card--featured .news-body {
    width: 100%;
  }
  .news-card--compact {
    grid-template-columns: 130px 1fr;
  }
  .news-card--compact .news-thumb {
    width: 130px;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    height: 32px;
  }
  .nav-links {
    gap: 10px;
    font-size: 12px;
  }
  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }
  .nav-toggle {
    width: 38px;
    height: 38px;
  }
  .hero-title {
    font-size: 30px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .video-frame {
    border-radius: 14px;
  }
  .card-server__top {
    min-height: 240px;
  }
  .news-card--compact {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1400px) {
  .content,
  .navbar-inner {
    max-width: 1320px;
  }
  .nav-links {
    font-size: 16px;
  }
  .nav-link {
    padding: 8px 0;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    height: 46px;
  }
  .video-frame {
    width: 1100px;
    height: 620px;
  }
}

@media (max-width: 640px) {
  .nav-user {
    min-width: 0;
  }
  #authLink {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 1600px) {
  .content,
  .navbar-inner {
    max-width: 1440px;
  }
  .nav-links {
    font-size: 18px;
  }
  .brand {
    font-size: 20px;
  }
  .hero-title {
    font-size: 56px;
  }
}

.hero-center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.hero-center-content {
  max-width: 720px;
  align-items: center;
}

.hero-center-content {
  text-align: center;
}

.hero-center .hero-title,
.hero-center .section-sub,
.hero-center .hero-buttons {
  text-align: center;
  justify-content: center;
}

.hero-center .hero-buttons {
  width: 100%;
}

.start-hero {
  display: flex;
  justify-content: center;
  text-align: center;
}

.start-steps {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.step-card {
  position: relative;
}

.start-arch {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.start-download {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  margin-bottom: 16px;
}

.auth-hero {
  display: flex;
  justify-content: center;
  text-align: center;
}

.auth-card {
  max-width: 520px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.auth-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-tabs .is-tab {
  flex: 1;
}

.auth-tabs .is-tab.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  box-shadow: 0 12px 20px rgba(124, 92, 255, 0.25);
}

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

.auth-panel.is-active {
  display: grid;
}

.auth-panel .btn {
  width: 100%;
}


.auth-message {
  min-height: 24px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
}

.auth-message.success {
  color: #38d996;
}

.auth-message.error {
  color: #ff7a6b;
}

.auth-message.info {
  color: var(--accent);
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field .input {
  padding-right: 44px;
  width: 100%;
}

.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
}

.auth-card {
  width: min(520px, 100%);
  height: auto;
  max-width: 520px;
  max-height: none;
  overflow: visible;
}

.input-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.input-group .label {
  margin-bottom: 6px;
}

.auth-panel[data-panel="register"] {
  margin-top: -20px;
}

.auth-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-card .input-group,
.auth-card .auth-tabs,
.auth-card .auth-message,
.auth-card .auth-panel {
  width: 100%;
}

.auth-panel {
  align-items: center;
}

.auth-panel .input-group {
  align-items: center;
}

.auth-panel .label {
  text-align: center;
  width: 100%;
}

.auth-panel .input {
  width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 18px;
  }
  .auth-tabs {
    flex-direction: column;
  }
  .auth-panel {
    gap: 12px;
  }
  .pw-toggle {
    right: 8px;
  }
  .forgot-access-card {
    padding: 18px;
  }
  .forgot-access-title {
    font-size: 19px;
  }
  .forgot-access-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .forgot-access-submit {
    min-width: 0;
  }
}

.account-card {
  max-width: 1100px;
  width: min(1100px, 94vw);
  margin: 0 auto;
  padding: 32px;
  display: grid;
  gap: 20px;
}

.account-message {
  min-height: 22px;
  font-size: 14px;
  color: var(--muted);
}

.account-message.success {
  color: #38d996;
}

.account-message.error {
  color: #ff7a6b;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.account-skin {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.skin-frame {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.18), rgba(18, 13, 28, 0.2));
  border: 1px solid rgba(124, 92, 255, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}

.skin-frame canvas {
  width: 450px;
  height: 563px;
  display: block;
}

.skin-toggles {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.skin-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
}

.skin-placeholder small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3px;
}

.account-details {
  display: grid;
  gap: 16px;
}

.account-grid {
  display: grid;
  gap: 16px;
}

.account-empty {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 0;
}

.account-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-server-roles-field {
  display: grid;
  gap: 10px;
  align-items: stretch;
}

.account-server-roles-list {
  display: grid;
  gap: 8px;
}

.account-server-role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-server-role-name {
  color: var(--muted);
  font-weight: 600;
}

.account-server-role-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.account-server-role-expires {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .account-server-role-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .account-server-role-meta {
    justify-items: start;
  }
}

.account-label {
  font-weight: 600;
}

.account-value {
  color: var(--muted);
}

.account-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.account-social-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-social-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

#telegramWidgetWrap {
  display: inline-flex;
  align-items: center;
}

.media-card {
  max-width: 1100px;
  width: min(1100px, 94vw);
  margin: 0 auto;
  padding: 32px;
  display: grid;
  gap: 24px;
}

.media-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.media-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.media-toggle input {
  width: 42px;
  height: 22px;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.media-toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 200ms ease;
}

.media-toggle input:checked {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: rgba(124, 92, 255, 0.4);
}

.media-toggle input:checked::after {
  transform: translateX(20px);
}

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

.account-totp-card {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.account-totp-card .media-header {
  text-align: center;
  justify-content: center;
}

.account-totp-card .media-header > div {
  width: 100%;
}

.account-totp-card .media-grid {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.account-totp-card .media-upload {
  width: min(100%, 540px);
}

.account-totp-card .media-upload > .btn {
  justify-self: center;
}

.media-preview {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.media-preview img {
  width: 200px;
  height: 250px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  max-width: 100%;
  max-height: 100%;
}

.media-upload {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.totp-status-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.totp-status-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.totp-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9aa3b5;
  box-shadow: 0 0 0 4px rgba(154, 163, 181, 0.2);
}

.totp-status-text {
  font-weight: 700;
}

.totp-status-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.totp-status-card[data-state="enabled"] {
  border-color: rgba(83, 214, 159, 0.42);
  background: rgba(83, 214, 159, 0.08);
}

.totp-status-card[data-state="enabled"] .totp-status-dot {
  background: #53d69f;
  box-shadow: 0 0 0 4px rgba(83, 214, 159, 0.24);
}

.totp-status-card[data-state="pending"] {
  border-color: rgba(255, 191, 102, 0.42);
  background: rgba(255, 191, 102, 0.08);
}

.totp-status-card[data-state="pending"] .totp-status-dot {
  background: #ffc777;
  box-shadow: 0 0 0 4px rgba(255, 199, 119, 0.24);
}

.totp-status-card[data-state="disabled"],
.totp-status-card[data-state="error"] {
  border-color: rgba(255, 138, 138, 0.34);
  background: rgba(255, 138, 138, 0.08);
}

.totp-status-card[data-state="disabled"] .totp-status-dot,
.totp-status-card[data-state="error"] .totp-status-dot {
  background: #ff8a8a;
  box-shadow: 0 0 0 4px rgba(255, 138, 138, 0.22);
}

.totp-setup-modal .modal-backdrop {
  background: radial-gradient(130% 140% at 100% 0%, rgba(255, 170, 67, 0.18) 0%, rgba(8, 10, 16, 0.76) 52%);
  backdrop-filter: blur(9px);
}

.totp-setup-card {
  width: min(94vw, 780px);
  max-width: 780px;
  border: 1px solid rgba(255, 178, 71, 0.3);
  background:
    radial-gradient(140% 160% at 0% 0%, rgba(255, 181, 85, 0.13) 0%, rgba(255, 181, 85, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.42);
}

.totp-setup-head {
  align-items: start;
  gap: 10px;
}

.totp-setup-head h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.totp-setup-kicker {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #ffc777;
  border: 1px solid rgba(255, 178, 71, 0.35);
  background: rgba(255, 178, 71, 0.12);
}

.totp-setup-body {
  display: grid;
  gap: 14px;
}

.totp-setup-sub {
  margin: 0;
  color: var(--muted);
}

.totp-setup-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.totp-setup-qr-wrap {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  padding: 12px;
  display: grid;
  place-items: center;
}

.totp-setup-qr {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #fff;
  object-fit: contain;
}

.totp-setup-meta {
  gap: 8px;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.totp-setup-uri {
  word-break: break-all;
}

.totp-setup-actions {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.totp-disable-card {
  width: min(92vw, 460px);
  max-width: 460px;
}

:root[data-theme="light"] .totp-setup-card {
  border-color: rgba(255, 165, 51, 0.34);
  background:
    radial-gradient(140% 160% at 0% 0%, rgba(255, 181, 85, 0.18) 0%, rgba(255, 181, 85, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
}

:root[data-theme="light"] .totp-setup-meta,
:root[data-theme="light"] .totp-setup-qr-wrap {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(23, 35, 56, 0.12);
}

:root[data-theme="light"] .totp-setup-actions {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(23, 35, 56, 0.12);
}

:root[data-theme="light"] .totp-status-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(23, 35, 56, 0.14);
}

.media-message {
  min-height: 22px;
  font-size: 14px;
  color: var(--muted);
}

.media-message.success {
  color: #38d996;
}

.media-message.error {
  color: #ff7a6b;
}

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

  .account-skin {
    justify-items: start;
  }

  .account-actions {
    justify-content: flex-start;
  }

  .account-social-primary {
    width: 100%;
  }
}

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

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

  .totp-setup-qr-wrap {
    max-width: 244px;
    width: 100%;
    margin: 0 auto;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

.theme-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: 0.45;
  transition: opacity var(--speed) ease, color var(--speed) ease, transform var(--speed) ease;
}

.theme-icon svg {
  width: 20px;
  height: 20px;
}

:root[data-theme="light"] .theme-icon.sun {
  color: #5b5ce6;
  opacity: 1;
  transform: scale(1.05);
}

:root[data-theme="dark"] .theme-icon.moon {
  color: #d2d5e7;
  opacity: 1;
  transform: scale(1.05);
}

.account-field-stack {
  align-items: flex-start;
}

.nav-user {
  position: relative;
  z-index: 10002;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 6px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  z-index: 10002;
}

.nav-menu.is-open {
  display: flex;
}

.nav-menu-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.nav-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-menu-item.is-logout {
  color: #ff7a6b;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  padding: 24px;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 120px;
}

.admin-title {
  margin: 0;
  font-size: 20px;
}

.admin-nav {
  display: grid;
  gap: 10px;
}

.admin-tab {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.admin-tab.is-active {
  border-color: var(--glass-border);
  background: rgba(124, 92, 255, 0.18);
}

.admin-panel {
  display: grid;
  gap: 20px;
}

.admin-section {
  display: none;
}

.admin-section.is-active {
  display: grid;
  gap: 16px;
}

.admin-hero {
  padding: 24px;
}

.admin-mc-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.admin-mc-day {
  font-size: 13px;
  color: var(--muted);
}

.admin-metrics {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.admin-metric {
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
  flex: 1 1 220px;
  max-width: 100%;
}

.metric-label {
  font-size: 13px;
  color: var(--muted);
}

.metric-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  margin-top: 6px;
}

.admin-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.admin-chart {
  padding: 18px;
  display: grid;
  gap: 12px;
  min-height: 220px;
}

.admin-chart-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.admin-chart-header h3 {
  margin: 0;
  font-size: 16px;
}

.admin-chart-note {
  font-size: 12px;
  color: var(--muted);
}

.admin-chart-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(26px, 1fr);
  align-items: end;
  gap: 8px;
  min-height: 160px;
}

.admin-chart-bar {
  display: grid;
  align-items: end;
  gap: 6px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}

.admin-chart-bar-fill {
  height: calc(var(--value, 0.1) * 120px);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.9), rgba(124, 92, 255, 0.2));
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.2);
}

[data-chart="green"] .admin-chart-bar-fill {
  background: linear-gradient(180deg, rgba(68, 214, 142, 0.95), rgba(68, 214, 142, 0.2));
  box-shadow: 0 6px 16px rgba(68, 214, 142, 0.2);
}

.admin-chart-bar-value {
  font-size: 11px;
  color: var(--text);
}

.admin-chart-bar-label {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.admin-table-head,
.admin-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.5fr 120px 120px 140px;
  gap: 12px;
  align-items: center;
}

.admin-table-head {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-row {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-table-bans-accounts .admin-table-head,
.admin-table-bans-accounts .admin-row {
  grid-template-columns: 60px 1fr 1.5fr 140px 160px 1.5fr 120px;
}

.admin-table-bans-ips .admin-table-head,
.admin-table-bans-ips .admin-row {
  grid-template-columns: 1.2fr 160px 2fr 180px 120px;
}

.admin-table-analytics .admin-table-head,
.admin-table-analytics .admin-row {
  grid-template-columns: 1.4fr 120px 120px 120px;
}

.admin-table-logs .admin-table-head,
.admin-table-logs .admin-row {
  grid-template-columns: 180px 140px 140px 1.2fr 140px 2fr;
}

.admin-table-logs {
  max-width: 500px;
}

.admin-table-logs .admin-table-head,
.admin-table-logs .admin-row {
  grid-template-columns: 1fr;
  gap: 6px;
}

.admin-table-logs .admin-table-head {
  display: none;
}

.admin-table-logs .admin-row {
  align-items: flex-start;
  word-break: break-word;
}

.admin-log-list {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.admin-log-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}

.admin-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-log-title {
  font-weight: 700;
  display: block;
}

.admin-log-sub {
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.admin-log-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.18);
  color: var(--text);
  font-size: 12px;
}

.admin-log-grid {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
  }
  .admin-metrics {
    gap: 10px;
  }
  .admin-metric {
    flex: 1 1 calc(50% - 10px);
    padding: 14px 16px;
  }
  .metric-value {
    font-size: 24px;
  }
  .admin-table-head,
  .admin-row {
    grid-template-columns: 60px 1fr 1fr;
  }
  .admin-table-head span:nth-child(n+4),
  .admin-row span:nth-child(n+4) {
    display: none;
  }
}

@media (max-width: 640px) {
  .admin-metric {
    flex: 1 1 100%;
  }
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.admin-search {
  min-width: 260px;
  flex: 1 1 260px;
}

.admin-select {
  min-width: 180px;
}

.admin-input {
  min-width: 140px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.role-badge-inline {
  --role-color: #9ca3af;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--role-color);
  background: color-mix(in oklab, var(--role-color) 18%, transparent);
  border: 1px solid color-mix(in oklab, var(--role-color) 45%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
  line-height: 1.2;
}

.admin-row.is-edit {
  background: rgba(124, 92, 255, 0.12);
}

.admin-news {
  padding: 20px;
  display: grid;
  gap: 20px;
}

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

.admin-news-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-news-upload {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.admin-message {
  margin-top: 6px;
  font-size: 13px;
}

.admin-message.success {
  color: #6be4b2;
}

.admin-message.error {
  color: #ff9b7a;
}

.admin-message.info {
  color: #7fd1ff;
}

.admin-news-list {
  display: grid;
  gap: 16px;
}

.admin-news-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
}

.admin-news-card img {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
}

.admin-news-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.admin-news-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.admin-pages {
  padding: 20px;
  display: grid;
  gap: 20px;
}

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

.admin-pages-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-pages-list {
  display: grid;
  gap: 12px;
}

.admin-page-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 10px;
}

.admin-page-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.admin-page-status {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 980px) {
  .admin-pages-actions {
    flex-direction: column;
  }
}

.editor-shell {
  min-height: 100vh;
  background: var(--bg);
}

.editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 18, 0.6);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

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

.editor-title {
  font-weight: 700;
}

.editor-path {
  font-size: 12px;
  color: var(--muted);
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editor-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 280px;
  gap: 16px;
  padding: 16px 24px 40px;
}

.editor-panel {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 12px;
  height: fit-content;
}

.editor-list {
  display: grid;
  gap: 8px;
}

.editor-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: grab;
}

.editor-canvas {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  display: grid;
  gap: 16px;
  min-height: 520px;
}

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

.editor-canvas-static {
  max-width: 1100px;
  margin: 0 auto;
}

.editor-html {
  min-height: 520px;
}

.editor-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.editor-canvas-body {
  display: grid;
  gap: 12px;
  min-height: 320px;
}

.editor-block {
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
}

.editor-block.is-selected {
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.2);
}

.editor-placeholder {
  color: var(--muted);
  font-size: 13px;
}

.editor-empty {
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
}

.editor-inspector {
  display: grid;
  gap: 12px;
}

.editor-muted {
  color: var(--muted);
  font-size: 13px;
}
.editor-muted {
  color: var(--muted);
  font-size: 13px;
}
.rules-page {
  gap: 40px;
}

.rules-hero {
  display: grid;
  gap: 12px;
}

.rules-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rules-accordion {
  display: grid;
  gap: 12px;
}

.rules-accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.rules-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  padding: 18px 20px;
}

.rules-accordion-index {
  color: #ffd45f;
  font-weight: 800;
}

.rules-accordion-title {
  flex: 1;
  font-weight: 700;
}

.rules-accordion-caret {
  color: var(--muted);
  transition: transform 220ms ease;
}

.rules-accordion-item.is-open .rules-accordion-caret {
  transform: rotate(180deg);
}

.rules-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease;
}

.rules-accordion-panel .rules-list {
  margin: 0;
  padding: 0 20px 18px 38px;
}

.rules-card {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
}

.rules-list {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.rule-punish {
  color: #ff4d4f;
  font-weight: 600;
}

.rules-admin-editor {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.rules-admin-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
}

.rules-admin-item-toggle {
  width: 100%;
  border: 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.rules-admin-item-toggle strong {
  flex: 1;
}

.rules-admin-item-caret {
  color: var(--muted);
  transition: transform 220ms ease;
}

.rules-admin-item.is-open .rules-admin-item-caret {
  transform: rotate(180deg);
}

.rules-admin-item-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.rules-admin-item-inner {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.server-list-section {
  text-align: center;
}

.server-section-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.server-list-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 99999;
  padding: 24px;
}

.image-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-overlay-img {
  max-width: min(90vw, 1000px);
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.server-media {
  cursor: zoom-in;
}

.server-tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  min-height: 220px;
}

.server-tile--cobblemon {
  background: linear-gradient(135deg, rgba(124, 255, 225, 0.2), rgba(124, 181, 255, 0.2));
}

.server-tile--skytech {
  background: linear-gradient(135deg, rgba(186, 124, 255, 0.2), rgba(255, 160, 124, 0.2));
}

.server-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.7));
}

.server-tile-content {
  position: relative;
  z-index: 1;
  padding: 18px;
  display: grid;
  gap: 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55));
}

.server-tile-content h3 {
  font-size: 20px;
  margin: 0;
}

.server-tile-desc {
  margin: 0;
  color: var(--muted);
}

.server-tile-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.1);
  width: fit-content;
}

.server-tile-online.is-up {
  color: #6be4b2;
}

.server-tile-online.is-down {
  color: #ff9b7a;
}

.server-tile-button {
  margin-top: 6px;
  font-weight: 600;
}


@media (max-width: 1100px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
}


.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 12000;
  padding: 16px;
  overflow-y: auto;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 12, 0.6);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  max-width: 720px;
  width: min(90vw, 720px);
  padding: 20px;
  display: grid;
  gap: 16px;
  z-index: 12001;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

#userModal .modal-card {
  width: min(96vw, 1180px);
  max-width: 1180px;
}

#userModal .modal-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.modal-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

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

.admin-totp-modal .modal-backdrop {
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 166, 0, 0.16) 0%, rgba(8, 10, 16, 0.76) 55%);
  backdrop-filter: blur(8px);
}

.admin-totp-modal-card {
  width: min(94vw, 520px);
  max-width: 520px;
  padding: 24px;
  border: 1px solid rgba(255, 176, 42, 0.34);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(255, 166, 0, 0.15) 0%, rgba(255, 166, 0, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 164, 36, 0.16) inset;
}

.admin-totp-modal-head {
  display: grid;
  justify-content: flex-start;
  gap: 10px;
}

.admin-totp-modal-head h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
}

.admin-totp-modal-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-totp-modal-badge {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffcf88;
  background: linear-gradient(135deg, rgba(255, 171, 37, 0.2), rgba(255, 141, 47, 0.1));
  border: 1px solid rgba(255, 176, 42, 0.34);
}

.admin-totp-modal-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: rgba(255, 176, 42, 0.15);
  border: 1px solid rgba(255, 176, 42, 0.26);
}

.admin-totp-modal-body {
  display: grid;
  gap: 10px;
}

.admin-totp-modal-sub {
  margin: 0;
  color: var(--muted);
}

.admin-totp-code-input {
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.22em;
  font-weight: 700;
}

.admin-totp-modal-tip {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .modal {
    align-items: flex-start;
    padding: 10px;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 14px;
  }
}

.forgot-access-modal .modal-backdrop {
  background: rgba(8, 10, 18, 0.72);
  backdrop-filter: blur(10px);
}

.forgot-access-card {
  width: min(92vw, 520px);
  max-width: 520px;
  padding: 24px;
  border: 1px solid rgba(136, 160, 255, 0.28);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(132, 108, 255, 0.16) inset;
}

.auth-totp-modal .modal-backdrop {
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 166, 0, 0.15) 0%, rgba(8, 10, 16, 0.74) 55%);
  backdrop-filter: blur(8px);
}

.auth-totp-card {
  width: min(94vw, 500px);
  max-width: 500px;
  border: 1px solid rgba(255, 176, 42, 0.3);
  background:
    radial-gradient(140% 160% at 0% 0%, rgba(255, 181, 85, 0.12) 0%, rgba(255, 181, 85, 0) 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.auth-totp-head {
  align-items: flex-start;
  gap: 10px;
}

.auth-totp-kicker {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffc777;
  border: 1px solid rgba(255, 178, 71, 0.35);
  background: rgba(255, 178, 71, 0.12);
}

.auth-totp-body {
  display: grid;
  gap: 10px;
}

.auth-totp-sub {
  margin: 0;
  color: var(--muted);
}

.auth-totp-input {
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.22em;
  font-weight: 700;
}

.forgot-access-head {
  align-items: flex-start;
  gap: 10px;
}

.forgot-access-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.forgot-access-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.forgot-access-group .input {
  height: 46px;
  font-size: 15px;
}

.forgot-access-actions {
  justify-content: space-between;
}

.forgot-access-submit {
  min-width: 180px;
}

.user-wallet-logs-card {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.user-wallet-logs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-wallet-logs-head h4 {
  margin: 0;
  font-size: 14px;
}

.user-wallet-logs-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.user-wallet-logs-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}

.user-wallet-logs-list .admin-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr) auto auto;
  gap: 10px;
}

@media (max-width: 760px) {
  .user-wallet-logs-list .admin-row {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="light"] .user-wallet-logs-card {
  border-color: rgba(17, 19, 24, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.server-page {
  gap: 90px;
}

.server-hero {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  padding: 40px 0 20px;
}

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

.server-kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.server-title {
  font-size: 48px;
  margin: 0;
}

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

.server-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.server-hero-art {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
}

.server-orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 181, 255, 0.4), transparent 70%);
  filter: blur(40px);
}

.server-orb.frost {
  background: radial-gradient(circle, rgba(124, 229, 255, 0.45), transparent 70%);
}

.server-hero-frost .server-orb {
  opacity: 0.9;
}

.server-art-card {
  position: relative;
  z-index: 1;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 6px;
}

.server-section {
  display: grid;
  gap: 20px;
}

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

.server-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.server-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.server-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 12px;
}

.server-media {
  width: 100%;
  height: 140px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 255, 225, 0.2), rgba(124, 181, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-size: cover;
  background-position: center;
}

.server-media-tall {
  height: 180px;
}

.server-split {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

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

.server-feature {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.server-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.server-list span {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

:root[data-theme="light"] .news-card,
:root[data-theme="light"] .step-card,
:root[data-theme="light"] .account-card,
:root[data-theme="light"] .media-card,
:root[data-theme="light"] .admin-hero,
:root[data-theme="light"] .admin-table,
:root[data-theme="light"] .admin-sidebar,
:root[data-theme="light"] .admin-news-card,
:root[data-theme="light"] .admin-page-card,
:root[data-theme="light"] .rules-card,
:root[data-theme="light"] .modal-card,
:root[data-theme="light"] .server-art-card,
:root[data-theme="light"] .server-card,
:root[data-theme="light"] .server-media,
:root[data-theme="light"] .server-feature,
:root[data-theme="light"] .server-list span {
  border-color: rgba(17, 19, 24, 0.16);
}

:root[data-theme="light"] .account-empty,
:root[data-theme="light"] .editor-empty,
:root[data-theme="light"] .server-list span {
  border-color: rgba(17, 19, 24, 0.22);
}

:root[data-theme="light"] .account-card,
:root[data-theme="light"] .media-card,
:root[data-theme="light"] .media-upload,
:root[data-theme="light"] .account-row {
  border-color: rgba(17, 19, 24, 0.42);
  box-shadow: 0 12px 28px rgba(30, 30, 40, 0.12);
}

:root[data-theme="light"] .media-upload {
  background: rgba(255, 255, 255, 0.85);
}

:root[data-theme="light"] .account-field {
  border: 2px solid rgba(17, 19, 24, 0.45);
  background: rgba(255, 255, 255, 0.75);
}

:root[data-theme="light"] .account-server-role-row {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(17, 19, 24, 0.12);
}

/* Admin 1:1 reference-like layout */
.content.admin-layout {
  position: relative;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 24px 28px 40px;
  min-height: 100vh;
  display: block;
}

.content.admin-layout::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(65, 95, 215, 0.2), transparent 36%),
    radial-gradient(circle at 90% 80%, rgba(108, 64, 205, 0.16), transparent 34%),
    rgba(5, 5, 5, 0.96);
}

.admin-layout {
  position: relative;
  z-index: 1;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 288px;
  height: 100vh;
  padding: 24px 16px;
  z-index: 25;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(24px);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px 10px;
}

.admin-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.22);
}

.admin-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-brand-text p {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}

.admin-title {
  margin: 0;
  font-size: 19px;
  color: #fff;
}

.admin-nav {
  display: grid;
  gap: 4px;
  overflow: auto;
  padding-right: 4px;
}

.admin-tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.admin-tab-icon {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}

.admin-tab:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

.admin-tab.is-active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.admin-tab.is-active .admin-tab-icon {
  color: #22d3ee;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}

.admin-sidebar-bottom {
  padding: 12px 8px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-bottom .btn {
  width: 100%;
  justify-content: center;
}

.admin-panel {
  margin-left: 320px;
  width: calc(100% - 320px);
  padding: 8px 0 0;
  display: grid;
  gap: 18px;
}

.admin-topbar {
  padding: 18px 22px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-topbar-main h1 {
  margin: 6px 0 0;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-topbar-kicker {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.admin-topbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-topbar-search {
  width: 280px;
}

.admin-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.admin-user-chip {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  color: #fff;
}

.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  overflow: hidden;
}

.admin-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-user-meta {
  display: grid;
  text-align: left;
  line-height: 1.1;
}

.admin-user-meta small {
  font-size: 10px;
  color: rgba(34, 211, 238, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-hero,
.admin-table,
.admin-news,
.admin-log-list {
  border-radius: 18px;
}

@media (max-width: 1200px) {
  .admin-sidebar {
    width: 260px;
  }

  .admin-panel {
    margin-left: 284px;
    width: calc(100% - 284px);
  }
}

@media (max-width: 980px) {
  .content.admin-layout {
    padding: 12px 14px 20px;
  }

  .content.admin-layout::before {
    position: absolute;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    margin-bottom: 14px;
    backdrop-filter: blur(18px);
  }

  .admin-panel {
    margin-left: 0;
    width: 100%;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-topbar-tools {
    width: 100%;
    flex-wrap: wrap;
  }

  .admin-topbar-search {
    width: 100%;
  }
}

:root[data-theme="light"] .content.admin-layout::before {
  background:
    radial-gradient(circle at 8% 0%, rgba(67, 126, 255, 0.14), transparent 36%),
    radial-gradient(circle at 90% 80%, rgba(130, 93, 255, 0.12), transparent 34%),
    rgba(244, 247, 253, 0.98);
}

:root[data-theme="light"] .admin-sidebar {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(17, 19, 24, 0.1);
}

:root[data-theme="light"] .admin-brand-text p,
:root[data-theme="light"] .admin-topbar-kicker {
  color: rgba(17, 19, 24, 0.45);
}

:root[data-theme="light"] .admin-title,
:root[data-theme="light"] .admin-topbar-main h1,
:root[data-theme="light"] .admin-user-chip {
  color: #111827;
}

:root[data-theme="light"] .admin-tab {
  color: rgba(17, 19, 24, 0.62);
}

:root[data-theme="light"] .admin-tab-icon {
  color: rgba(17, 19, 24, 0.35);
}

:root[data-theme="light"] .admin-tab:hover {
  color: #111827;
  background: rgba(17, 19, 24, 0.05);
}

:root[data-theme="light"] .admin-tab.is-active {
  background: rgba(17, 19, 24, 0.1);
  color: #111827;
}

:root[data-theme="light"] .admin-icon-btn,
:root[data-theme="light"] .admin-user-chip {
  border-color: rgba(17, 19, 24, 0.14);
  background: rgba(255, 255, 255, 0.86);
}

:root[data-theme="light"] .admin-icon-btn {
  color: rgba(17, 19, 24, 0.7);
}

/* Admin layout stability fixes */
.admin-layout {
  display: block;
}

.admin-panel {
  max-width: calc(100vw - 360px);
}

.admin-panel > *,
.admin-section > *,
.admin-news-form > * {
  min-width: 0;
}

.admin-section {
  position: relative;
  z-index: 1;
}

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

.admin-table-head,
.admin-row {
  min-width: 820px;
}

.admin-table-analytics .admin-table-head,
.admin-table-analytics .admin-row {
  min-width: 520px;
}

.admin-table-logs .admin-table-head,
.admin-table-logs .admin-row {
  min-width: 0;
}

.admin-news-upload {
  grid-template-columns: minmax(0, 1fr) auto;
}

.input,
.textarea,
select.input {
  max-width: 100%;
}

@media (max-width: 980px) {
  .admin-panel {
    max-width: 100%;
  }
}

/* Shop admin layout */
.store-editor {
  padding: 18px;
  display: grid;
  gap: 18px;
}

.store-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.2fr);
  gap: 16px;
  align-items: start;
}

.store-list-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.store-list-panel h3 {
  margin: 0;
  font-size: 16px;
}

.store-list-panel .admin-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.store-list-panel .admin-actions {
  justify-content: flex-end;
}

.store-list-panel .promo-row {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto;
  align-items: start;
  gap: 10px;
}

.store-list-panel .promo-code,
.store-list-panel .promo-meta {
  min-width: 0;
  line-height: 1.35;
}

.store-list-panel .promo-code {
  font-weight: 700;
}

.store-list-panel .promo-meta {
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.store-list-panel .promo-actions {
  justify-content: flex-end;
  align-self: start;
}

.store-form {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.store-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.store-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.store-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.store-message {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.store-message.is-success {
  color: #53d69f;
}

.store-message.is-error {
  color: #ff8a8a;
}

.store-message.error {
  color: #ff8a8a;
}

.store-message.success {
  color: #53d69f;
}

.admin-totp-required-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.admin-totp-required-card {
  width: min(92vw, 680px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 176, 42, 0.24);
  background:
    radial-gradient(140% 160% at 0% 0%, rgba(255, 178, 71, 0.12) 0%, rgba(255, 178, 71, 0) 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
  display: grid;
  gap: 14px;
}

.admin-totp-required-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: rgba(255, 176, 42, 0.14);
  border: 1px solid rgba(255, 176, 42, 0.25);
}

.admin-totp-required-kicker {
  margin: 0;
  color: #ffb44d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-totp-required-card h1 {
  margin: 0;
}

.admin-totp-required-sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-totp-required-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-totp-required-steps {
  display: grid;
  gap: 8px;
}

.admin-totp-required-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #f0f3ff;
}

.admin-totp-required-step span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #1a1310;
  background: linear-gradient(135deg, #ffce80, #ff9d4f);
}

.shop-kit-grid {
  display: grid;
  gap: 8px;
}

.shop-kit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
  gap: 8px;
}

.shop-kit-preview {
  grid-column: 1 / -1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  max-width: 520px;
}

.shop-kit-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  background: transparent;
}

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

@media (max-width: 760px) {
  .shop-kit-row {
    grid-template-columns: 1fr;
  }

  .store-list-panel .admin-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .store-list-panel .admin-actions {
    justify-content: flex-start;
  }

  .store-list-panel .promo-row {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="light"] .store-list-panel,
:root[data-theme="light"] .store-form {
  border-color: rgba(17, 19, 24, 0.14);
  background: rgba(255, 255, 255, 0.86);
}

/* Files admin redesign */
.files-toolbar,
.files-explorer {
  padding: 18px;
  border-radius: 18px;
}

.files-toolbar h1 {
  margin: 0 0 6px;
}

.files-toolbar p {
  margin: 0;
  color: var(--muted);
}

.files-path-row,
.files-upload-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.files-upload-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.files-header {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 120px 120px minmax(180px, auto);
  gap: 12px;
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.files-explorer #filesList {
  display: grid;
  gap: 8px;
}

.files-explorer .admin-row {
  min-width: 0;
  grid-template-columns: minmax(240px, 1fr) 120px 120px minmax(180px, auto);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.files-explorer .admin-actions {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .files-path-row,
  .files-upload-row {
    grid-template-columns: 1fr;
  }

  .files-header {
    display: none;
  }

  .files-explorer .admin-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .files-explorer .admin-actions {
    justify-content: flex-start;
  }
}

:root[data-theme="light"] .files-explorer .admin-row {
  border-color: rgba(17, 19, 24, 0.12);
  background: rgba(255, 255, 255, 0.84);
}

/* Users section redesign */
.admin-users-hero {
  padding: 20px;
}

.admin-users-filters {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(170px, 1fr));
  gap: 10px;
}

.admin-table-users {
  padding: 16px;
}

.admin-table-users .admin-table-head,
.admin-table-users .admin-row {
  min-width: 900px;
  grid-template-columns: 72px minmax(150px, 0.9fr) minmax(260px, 1.6fr) minmax(140px, 0.8fr) minmax(120px, 0.7fr) minmax(130px, auto);
}

.admin-table-users .admin-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.user-email {
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.user-status.is-active {
  color: #60d8a4;
  border-color: rgba(96, 216, 164, 0.3);
  background: rgba(96, 216, 164, 0.12);
}

.user-status.is-inactive {
  color: #ff9f8a;
  border-color: rgba(255, 159, 138, 0.35);
  background: rgba(255, 159, 138, 0.12);
}

.admin-users-pagination {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-users-pagination #usersPageInfo {
  color: var(--muted);
  font-size: 13px;
}

.admin-users-pagination #donateUsersPageInfo {
  color: var(--muted);
  font-size: 13px;
}

.admin-donate-users-filters {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(2, minmax(170px, 1fr)) auto;
  gap: 10px;
}

.admin-table-donate-users {
  padding: 16px;
}

.admin-table-donate-users .admin-table-head,
.admin-table-donate-users .admin-row {
  min-width: 980px;
  grid-template-columns: minmax(170px, 1fr) minmax(240px, 1.4fr) minmax(140px, 0.9fr) minmax(200px, 1.1fr) minmax(160px, 1fr) minmax(260px, auto);
}

.admin-table-donate-users .admin-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.donate-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.donate-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

@media (max-width: 1200px) {
  .admin-users-filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
  .admin-donate-users-filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-users-filters {
    grid-template-columns: 1fr;
  }
  .admin-donate-users-filters {
    grid-template-columns: 1fr;
  }

  .admin-users-pagination {
    flex-wrap: wrap;
  }
}

:root[data-theme="light"] .admin-table-users .admin-row {
  border-color: rgba(17, 19, 24, 0.12);
  background: rgba(255, 255, 255, 0.84);
}

/* News section (reference-like cards) */
.admin-news-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-news-compose {
  padding: 18px;
  border-radius: 18px;
}

.admin-news-compose h3 {
  margin: 0 0 12px;
}

.admin-news-feed {
  min-width: 0;
}

.admin-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.admin-news-card {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  will-change: transform;
}

.admin-news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 215, 255, 0.45);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.admin-news-media {
  height: 150px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.admin-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 320ms ease, filter 320ms ease;
}

.admin-news-card:hover .admin-news-media img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.03);
}

.admin-news-content {
  padding: 14px;
}

.admin-news-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #67d7ff;
}

.admin-news-content h3 {
  margin: 0 0 8px;
}

.admin-news-content p {
  margin: 0 0 10px;
}

.admin-news-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.news-card-appear {
  animation: newsCardIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--stagger, 0) * 36ms);
}

@keyframes newsCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1100px) {
  .admin-news-shell {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="light"] .admin-news-card {
  border-color: rgba(17, 19, 24, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .admin-news-card:hover {
  border-color: rgba(70, 127, 255, 0.38);
  box-shadow: 0 16px 34px rgba(40, 60, 90, 0.16);
}

:root[data-theme="light"] .admin-news-media {
  border-bottom-color: rgba(17, 19, 24, 0.1);
}

/* Roles section */
.roles-editor {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 1fr);
  gap: 16px;
  align-items: start;
}

.roles-list-panel,
.roles-form {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.roles-list-panel h3 {
  margin: 0 0 10px;
}

.roles-list-panel #rolesList {
  display: grid;
  gap: 8px;
}

.roles-list-panel .admin-row {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.roles-form {
  display: grid;
  gap: 10px;
}

.roles-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.roles-permissions-block {
  display: grid;
  gap: 8px;
}

.roles-permissions-block > span {
  color: var(--muted);
  font-size: 13px;
}

.roles-permissions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 8px;
}

.roles-permissions-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.role-permission-group {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.role-permission-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.role-permission-group-head h4 {
  margin: 0;
  font-size: 14px;
}

.role-permission-group-actions {
  display: flex;
  gap: 6px;
}

.role-permission-group-actions .btn {
  padding: 6px 8px;
  font-size: 11px;
}

.role-permission-list {
  display: grid;
  gap: 6px;
}

.role-permission-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
}

.role-permission-item span {
  display: grid;
  gap: 2px;
}

.role-permission-item strong {
  font-size: 13px;
  font-weight: 700;
}

.role-permission-item small {
  color: var(--muted);
  font-size: 11px;
}

.roles-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .roles-editor {
    grid-template-columns: 1fr;
  }

  .roles-list-panel .admin-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .roles-permissions-grid {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="light"] .roles-list-panel,
:root[data-theme="light"] .roles-form {
  border-color: rgba(17, 19, 24, 0.14);
  background: rgba(255, 255, 255, 0.86);
}

:root[data-theme="light"] .role-permission-item {
  border-color: rgba(17, 19, 24, 0.12);
  background: rgba(255, 255, 255, 0.84);
}

:root[data-theme="light"] .role-permission-group {
  border-color: rgba(17, 19, 24, 0.12);
  background: rgba(255, 255, 255, 0.84);
}

.admin-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  font-size: 0.85rem;
}
