*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

a { text-decoration: none; }
a:not([class]) { color: var(--yellow); }
a:not([class]):visited { color: var(--yellow); }
a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
a:focus:not(:focus-visible) { outline: none; }

:root {
  /* brand + semantic accents (names unchanged, values refined) */
  --yellow:   #f5c518;
  --yellow-d: #d9a900;
  --green:    #34d399;
  --blue:     #60a5fa;
  --purple:   #c084fc;
  --orange:   #fb923c;
  --red:      #f87171;

  /* surfaces: near-black ground, cool undertone */
  --bg:       #08090d;
  --bg-2:     #0f1117;
  --bg-card:  #161923;
  --bg-3:     #1d212c;
  --bg-hover: #232733;

  /* borders */
  --border:      rgba(255,255,255,0.07);
  --border-str:  rgba(255,255,255,0.14);
  --border-soft: rgba(255,255,255,0.04);

  /* text scale */
  --text:   #f3f5f9;
  --text-2: #a8b0c0;
  --muted:  #6f7889;

  /* accent tints */
  /* Base accent. The --acc-* family below is derived from it; several rules
     referenced var(--acc) while only the derived tokens existed, so those
     colours silently fell back to inherit. */
  --acc:        var(--yellow);
  --acc-soft:   rgba(245,197,24,0.12);
  --acc-line:   rgba(245,197,24,0.28);
  --acc-glow:   rgba(245,197,24,0.55);

  /* status tints */
  --green-soft: rgba(52,211,153,0.12);
  --red-soft:   rgba(248,113,113,0.12);
  --blue-soft:  rgba(96,165,250,0.12);

  /* radii */
  --radius:    18px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --radius-pill: 999px;

  /* elevation */
  --shadow-sm: 0 2px 8px -2px rgba(0,0,0,.6);
  --shadow:    0 18px 40px -28px rgba(0,0,0,.9);
  --shadow-lg: 0 32px 70px -36px rgba(0,0,0,.95);
  --hairline:  inset 0 1px 0 rgba(255,255,255,.05);

  /* type */
  --font-display: 'Archivo', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.gradient-text {
  background: linear-gradient(135deg, var(--yellow), #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.005em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.btn-lg   { padding: 14px 30px; font-size: 15px; border-radius: 12px; }
.btn-sm   { padding: 8px 14px;  font-size: 13px; border-radius: var(--radius-xs); }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: linear-gradient(180deg, #f8d139, var(--yellow-d));
  color: #0a0b0e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 24px -12px var(--acc-glow);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 30px -12px var(--acc-glow); }
.btn-primary:active { filter: brightness(.97); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-str);
  box-shadow: var(--hairline);
}
.btn-ghost:hover { background: var(--bg-3); border-color: rgba(255,255,255,.2); }
.btn-ghost:active { background: var(--bg-card); }

.btn-danger {
  background: var(--red-soft);
  color: var(--red);
  border-color: rgba(248,113,113,.32);
}
.btn-danger:hover { background: rgba(248,113,113,.2); border-color: rgba(248,113,113,.5); }

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border-str);
}
.btn-outline:hover { border-color: var(--acc-line); color: var(--yellow); background: var(--acc-soft); }

.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(11,14,21,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  flex-shrink: 0;
}
.logo-img { height: 80px; width: auto; display: block; margin-top: 10px; }

.nav .logo-img,
.mobile-menu .logo-img {
  height: 32px;
  margin-top: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin-left: auto;
}
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(11,14,21,.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.mobile-menu a { color: var(--muted); text-decoration: none; font-weight: 500; }
.mobile-menu.open { display: flex; }

.profile-menu-wrap { position: relative; }
.profile-menu-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s;
}
.profile-menu-btn:hover { background: rgba(255,255,255,.10); }
.profile-menu-btn.open { border-color: rgba(245,197,24,.4); }
.profile-menu-caret { transition: transform .2s; flex-shrink: 0; }
.profile-menu-btn.open .profile-menu-caret { transform: rotate(180deg); }

.profile-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  padding: 16px;
  z-index: 400;
}
.profile-menu-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.profile-menu-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.profile-menu-server-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  transition: background .15s;
}
.profile-menu-server-row:hover { background: rgba(255,255,255,.04); }
.profile-menu-server-icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
  transition: box-shadow .15s;
}
.profile-menu-server-icon-btn:hover { box-shadow: 0 0 0 2px rgba(245,197,24,.4); }
.profile-menu-server-row .icon-modal-server-info { flex: 1; min-width: 0; }
.profile-menu-server-actions { display: flex; gap: 4px; flex-shrink: 0; }
.profile-menu-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.profile-menu-action-btn:hover { color: var(--yellow); border-color: rgba(245,197,24,.4); }
.profile-menu-manage-link {
  display: block;
  text-align: center;
  margin-top: 4px;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  text-decoration: none;
}
.profile-menu-manage-link:hover { color: var(--yellow-d); }

@media (max-width: 900px) {
  .profile-menu-wrap { display: none; }
}

.announcement-banner {
  position: sticky;
  top: 64px;
  z-index: 200;
  background: linear-gradient(90deg, rgba(245,197,24,.12), rgba(249,115,22,.10));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245,197,24,.25);
  padding: 12px 0;
}
.announcement-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.announcement-badge {
  flex-shrink: 0;
  background: rgba(245,197,24,.18);
  color: var(--yellow);
  border: 1px solid rgba(245,197,24,.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.announcement-banner p {
  font-size: 14px;
  color: var(--text);
  opacity: .9;
  margin: 0;
}
@media (max-width: 600px) {
  .announcement-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}


.hero {
  display: flex;
  flex-direction: row;
  height: 580px;
  overflow: hidden;
  contain: layout;
}

.hero-panel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 72px 56px 48px;
  overflow: hidden;
  min-width: 0;
  cursor: pointer;
  flex-basis: 50%;
  will-change: flex-basis;
  transition: flex-basis 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}


@media (min-width: 769px) {
  .hero:has(.hero-panel-host:hover) .hero-panel-host     { flex-basis: 65%; }
  .hero:has(.hero-panel-host:hover) .hero-panel-manage   { flex-basis: 35%; }
  .hero:has(.hero-panel-manage:hover) .hero-panel-manage { flex-basis: 65%; }
  .hero:has(.hero-panel-manage:hover) .hero-panel-host   { flex-basis: 35%; }
}


.hero-panel-content  { transition: opacity 0.4s ease; }
.hero-panel-host-img,
.hero-panel-manage-img { transition: opacity 0.4s ease; }

@media (min-width: 769px) {
  .hero:has(.hero-panel-host:hover) .hero-panel-manage .hero-panel-content   { opacity: 0.25; }
  .hero:has(.hero-panel-host:hover) .hero-panel-manage .hero-panel-manage-img { opacity: 0.15; }
  .hero:has(.hero-panel-manage:hover) .hero-panel-host .hero-panel-content   { opacity: 0.25; }
  .hero:has(.hero-panel-manage:hover) .hero-panel-host .hero-panel-host-img   { opacity: 0.15; }
}


.hero-panel-manage {
  border-left: 1px solid rgba(255,255,255,0.06);
}

.hero-panel-bg,
.hero-panel-host-bg,
.hero-panel-manage-bg { position: absolute; inset: 0; z-index: 0; }

.hero-panel-manage-img {
  position: absolute; inset: 0;
  background: url('/images/panel.webp') center center / cover no-repeat;
  opacity: .35;
}
.hero-panel-host-img {
  position: absolute; inset: 0;
  background: url('/images/host.webp') center center / cover no-repeat;
  opacity: .30;
}

.hero-panel-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(11,14,21,.55) 0%, rgba(11,14,21,.15) 50%, rgba(11,14,21,.75) 100%),
    linear-gradient(to right, rgba(11,14,21,.65) 0%, transparent 70%);
}

.hero-panel-overlay-manage {
  background:
    linear-gradient(to bottom, rgba(11,14,21,.65) 0%, rgba(11,14,21,.25) 50%, rgba(11,14,21,.80) 100%),
    linear-gradient(to left, rgba(11,14,21,.75) 0%, transparent 70%);
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-panel-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 40px;
}

.hero-panel-top { flex: 1; }


.hero-panel-host .hero-panel-content { padding-bottom: 88px; }
.hero-panel-host .hero-panel-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}


.hero-panel-manage .hero-panel-top { text-align: right; }
.hero-panel-manage .hero-cta { justify-content: flex-end; }
.hero-panel-manage .hero-panel-stats { justify-content: flex-end; }

.cubes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cube {
  position: absolute;
  border: 1.5px solid rgba(245, 197, 24, 0.12);
  border-radius: 4px;
  animation: cubeDrift linear infinite;
}
.cube::after {
  content: '';
  position: absolute;
  inset: 25%;
  border: 1px solid rgba(245, 197, 24, 0.07);
  border-radius: 2px;
}
.hero-panel-manage .cube {
  border-color: rgba(59, 130, 246, 0.12);
}
.hero-panel-manage .cube::after {
  border-color: rgba(59, 130, 246, 0.07);
}
.cube-1 { width: 56px;  height: 56px;  left: 7%;  bottom: -80px;  animation-duration: 26s; animation-delay: 0s; }
.cube-2 { width: 32px;  height: 32px;  left: 22%; bottom: -50px;  animation-duration: 20s; animation-delay: -7s; }
.cube-3 { width: 72px;  height: 72px;  left: 60%; bottom: -100px; animation-duration: 32s; animation-delay: -12s; }
.cube-4 { width: 24px;  height: 24px;  left: 20%; bottom: -40px;  animation-duration: 18s; animation-delay: -4s; }
.cube-5 { width: 44px;  height: 44px;  left: 44%; bottom: -70px;  animation-duration: 24s; animation-delay: -18s; }
.cube-6 { width: 20px;  height: 20px;  left: 75%; bottom: -35px;  animation-duration: 22s; animation-delay: -9s; }

@keyframes cubeDrift {
  0%   { transform: translateY(0)   rotate(0deg);   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(-720px) rotate(200deg); opacity: 0; }
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
  opacity: .8;
}
.hero-eyebrow-blue { color: var(--blue); }

.hero-title {
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.04em;
  margin-bottom: 20px;
  max-width: 560px;
}
.hero-title-manage { color: var(--text); }

.hero-sub {
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-manage {
  background: rgba(59,130,246,.15);
  color: var(--blue);
  border: 1.5px solid rgba(59,130,246,.35);
  box-shadow: var(--hairline);
}
.btn-manage:hover { background: rgba(59,130,246,.22); border-color: rgba(59,130,246,.55); color: #bfdbfe; }
.btn-manage:active { filter: brightness(.95); }


.hero-panel-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  padding-right: 24px;
}
.hero-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.hero-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px;
  white-space: nowrap;
}
.hero-stat-num { white-space: nowrap; }
.hero-stat-sep {
  width: 1px;
  height: 36px;
  align-self: center;
  background: rgba(255,255,255,0.10);
  margin-right: 24px;
  flex-shrink: 0;
}


@media (max-width: 768px) {
  .hero { flex-direction: column; height: auto; contain: none; }
  .hero-panel { padding: 48px 28px 36px; min-height: 320px; flex-basis: auto !important; }
  .hero-panel-manage { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
}


.shop-page-header {
  position: relative;
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
  background: url('/images/shop.webp') center center / cover no-repeat;
}
.shop-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11,14,21,.92) 0%, rgba(11,14,21,.65) 60%, rgba(11,14,21,.80) 100%);
}
.shop-page-header .container {
  position: relative;
  z-index: 1;
}
.shop-page-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--text);
  margin: 8px 0 16px;
  line-height: 1.1;
}
.plans-hero-stats {
  margin-top: 32px;
  max-width: 640px;
}

.shop-page-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
}


.nav-links a.nav-active { color: var(--text); }


.cta-strip {
  position: relative;
  overflow: hidden;
  background: url('/images/host.webp') center 55% / cover no-repeat;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11,14,21,.95) 0%, rgba(11,14,21,.75) 55%, rgba(11,14,21,.92) 100%);
}
.cta-strip-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 72px 24px;
}
.cta-strip-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow);
  opacity: .8;
  margin-bottom: 12px;
}
.cta-strip-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.cta-strip-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 440px;
}
.cta-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 768px) {
  .cta-strip-inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 24px; }
}

.section-header { margin-bottom: 56px; }
.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.section-sub { color: var(--muted); max-width: 560px; margin: 14px 0 0; font-size: 16px; line-height: 1.7; }

.howto { background: var(--bg); border-bottom: 1px solid var(--border); }
.howto .section-title { margin-bottom: 48px; }
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}
.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  overflow: hidden;
}
.step-num {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,.04);
  letter-spacing: -.04em;
  pointer-events: none;
  user-select: none;
}
.step-icon {
  width: 44px; height: 44px;
  background: rgba(245,197,24,.1);
  border: 1px solid rgba(245,197,24,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--yellow);
}
.step-icon svg { width: 20px; height: 20px; }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p  { color: var(--muted); font-size: 14px; line-height: 1.7; }
.step-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px;
  margin-top: 56px;
  color: rgba(245,197,24,.4);
}
.step-arrow svg { width: 20px; height: 20px; }


.showcase { background: var(--bg-2); }
.showcase .section-header { margin-bottom: 40px; }

.feat-cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.feat-cat-chip {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: .01em;
  color: var(--muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.feat-cat-chip:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.feat-cat-chip.is-active { color: var(--bg); background: var(--yellow); border-color: var(--yellow); }
.feat-cat-chip[data-cat="pvp"].is-active       { background: var(--red); border-color: var(--red); }
.feat-cat-chip[data-cat="smp"].is-active       { background: var(--green); border-color: var(--green); }
.feat-cat-chip[data-cat="gen"].is-active       { background: var(--blue); border-color: var(--blue); }
.feat-cat-chip[data-cat="box"].is-active       { background: var(--orange); border-color: var(--orange); }
.feat-cat-chip[data-cat="prison"].is-active    { background: var(--purple); border-color: var(--purple); }
.feat-cat-chip[data-cat="farming"].is-active   { background: #a3e635; border-color: #a3e635; }
.feat-cat-chip[data-cat="minigames"].is-active { background: #f472b6; border-color: #f472b6; }
.feat-cat-chip[data-cat="skyblock"].is-active  { background: #38bdf8; border-color: #38bdf8; }

.carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.carousel-viewport {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track {
  display: flex;
  gap: 20px;
  padding: 4px 24px;
}


.feat-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  position: relative;
  background:
    radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0/3px 3px,
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: border-color .2s ease;
}
.feat-card:hover { border-color: rgba(245,197,24,.3); }

.feat-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feat-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.feat-card-icon {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  flex-shrink: 0;
  border-radius: 6px;
}

.feat-info { min-width: 0; flex: 1; }
.feat-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.feat-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.feat-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.feat-status-dot.online  { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,.7); animation: feat-pulse 2s ease-in-out infinite; }
.feat-status-dot.offline { background: var(--muted); }
.feat-status.online  { color: var(--green); }
.feat-status.offline { color: var(--muted); }
@keyframes feat-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.feat-motd-line {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.5em;
}

.feat-ip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.feat-ip {
  flex: 1;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--text);
  letter-spacing: .01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-copy-ip {
  background: rgba(245,197,24,.08);
  border: 1px solid rgba(245,197,24,.2);
  border-radius: 7px;
  padding: 7px 9px;
  color: var(--yellow);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  flex-shrink: 0;
}
.btn-copy-ip:hover { background: rgba(245,197,24,.14); border-color: rgba(245,197,24,.4); }


.carousel-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
  font-family: inherit;
}
.carousel-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.carousel-btn:disabled { opacity: .3; cursor: default; }


.how { background: var(--bg); }
.how .section-header { margin-bottom: 48px; }
.how .section-header .section-title { margin-bottom: 0; }
.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.how-step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.how-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(245,197,24,.10);
  border: 1.5px solid rgba(245,197,24,.25);
  color: var(--yellow);
  font-size: 22px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.how-step h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.how-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.how-connector {
  flex-shrink: 0;
  width: 60px;
  height: 1px;
  background: var(--border);
  margin-top: 26px;
  position: relative;
}
.how-connector::after {
  content: '';
  position: absolute;
  right: -4px; top: -3px;
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--border);
  border-top: 1.5px solid var(--border);
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .feat-card { flex-basis: 260px; }
  .carousel-track { gap: 14px; padding: 4px 16px; }
  .how-steps { flex-direction: column; align-items: center; gap: 32px; }
  .how-connector { width: 1px; height: 32px; margin-top: 0; }
  .how-connector::after { right: -3px; top: auto; bottom: -4px; transform: rotate(135deg); }
}

.panel-section { background: var(--bg); }
.panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.panel-text .section-title { text-align: left; }
.panel-desc { color: var(--muted); margin: 20px 0 28px; line-height: 1.75; }
.panel-desc strong { color: var(--text); }
.panel-perks { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.panel-perks li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.check { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

.panel-mockup {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
}
.pm-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pm-dot { width: 10px; height: 10px; border-radius: 50%; }
.pm-dot.red    { background: var(--red); }
.pm-dot.yellow { background: var(--yellow); }
.pm-dot.green  { background: var(--green); }
.pm-url {
  margin: 0 auto;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-2);
  padding: 2px 16px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.06);
}
.pm-body { display: flex; }
.pm-sidebar {
  width: 120px;
  flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pm-nav-item {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
  cursor: default;
}
.pm-nav-item.active { background: rgba(245,197,24,.12); color: var(--yellow); font-weight: 600; }
.pm-main { flex: 1; padding: 14px; min-width: 0; }
.pm-stats-row { display: flex; gap: 8px; margin-bottom: 12px; }
.pm-stat-box {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 8px;
}
.pm-stat-label { display: block; font-size: 9px; color: var(--muted); margin-bottom: 2px; }
.pm-stat-val   { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.green-text  { color: var(--green); }
.yellow-text { color: var(--yellow); }
.blue-text   { color: var(--blue); }
.pm-bar-chart { height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.pm-bar-fill  { height: 100%; background: var(--green); border-radius: 2px; }
.pm-bar-fill.yellow { background: var(--yellow); }
.pm-bar-fill.blue   { background: var(--blue); }
.pm-console {
  background: #0a0d12;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 6px;
  padding: 10px;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pm-console-line { color: var(--muted); }
.pm-ts { color: var(--muted); }
.pm-cursor { animation: blink .8s step-end infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.pricing { background: var(--bg-2); }
.pricing .section-header { margin-bottom: 48px; }

.pricing { background: var(--bg-2); }

.credits-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.credits-header > div:nth-child(2) { flex: 1; min-width: 200px; }

.credit-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  align-self: center;
  flex-shrink: 0;
  margin-left: auto;
}
.ctoggle-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: none;
  letter-spacing: 0;
}
.ctoggle-btn:hover { color: var(--text); }
.ctoggle-active {
  background: rgba(245,197,24,.12);
  color: var(--yellow);
}
.ctoggle-save {
  font-size: 10px;
  font-weight: 700;
  background: rgba(34,197,94,.15);
  color: var(--green);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 999px;
  padding: 1px 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.credits-icon-wrap {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(245,197,24,.10);
  border: 1px solid rgba(245,197,24,.20);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--yellow);
  margin-top: 4px;
}


.credit-packages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}
.credit-pkg {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  transition: border-color .2s, transform .2s;
}
.credit-pkg:hover { border-color: rgba(245,197,24,.25); transform: translateY(-2px); }
.credit-pkg-best {
  border-color: rgba(245,197,24,.30);
  box-shadow: 0 0 0 1px rgba(245,197,24,.12), 0 16px 40px rgba(245,197,24,.08);
}
.credit-pkg-best:hover { border-color: rgba(245,197,24,.5); }

.pkg-best-badge {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--yellow);
  color: var(--bg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0 var(--radius) 0 6px;
}
.pkg-icon {
  color: var(--yellow);
  width: 22px; height: 22px;
  margin-bottom: 6px;
}
.pkg-amount {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
}
.pkg-unit {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  margin-bottom: 8px;
}
.pkg-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 14px;
}
.pkg-was {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  margin-left: 4px;
  text-decoration: line-through;
}


.pricing-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pricing-divider::before,
.pricing-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}


.pc-credit-icon {
  width: 14px; height: 14px;
  color: var(--yellow);
  flex-shrink: 0;
  margin-bottom: 2px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.pricing-card:hover { border-color: rgba(255,255,255,.14); transform: translateY(-2px); }


.tier-free      { border-top: 2px solid #b48c50; }
.tier-diamond   { border-top: 2px solid #38bdf8; }
.tier-emerald   { border-top: 2px solid #34d399; }
.tier-netherite { border-top: 2px solid #a78bfa; }

.tier-rank-basic  { border-top: 2px solid var(--text-2); }
.tier-rank-elite  { border-top: 2px solid var(--yellow); }
.tier-rank-legend { border-top: 2px solid var(--orange); }
.tier-rank-basic  .pc-name, .tier-rank-basic  .pc-amount { color: var(--text-2); }
.tier-rank-elite  .pc-name, .tier-rank-elite  .pc-amount { color: var(--yellow); }
.tier-rank-legend .pc-name, .tier-rank-legend .pc-amount { color: var(--orange); }

.shop-plans-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 8px;
}
.shop-plans-cta-text h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.shop-plans-cta-text p { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .shop-plans-cta { flex-direction: column; align-items: flex-start; }
}

.tier-gem { width: 28px; height: 28px; flex-shrink: 0; image-rendering: pixelated; }


.pc-header {
  padding: 22px 22px 0;
}
.pc-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.pc-name {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}
.tier-free      .pc-name { color: #b48c50; }
.tier-diamond   .pc-name { color: #38bdf8; }
.tier-emerald   .pc-name { color: #34d399; }
.tier-netherite .pc-name { color: #a78bfa; }

.pc-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.pc-price {
  padding: 16px 22px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 5px;
}
.pc-amount {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
}
.tier-free      .pc-amount { color: #b48c50; }
.tier-diamond   .pc-amount { color: #38bdf8; }
.tier-emerald   .pc-amount { color: #34d399; }
.tier-netherite .pc-amount { color: #a78bfa; }

.pc-period { font-size: 13px; color: var(--muted); }

.pc-features {
  list-style: none;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.pc-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.pc-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.pc-footer {
  padding: 0 22px 22px;
}


.pricing-popular {
  border-color: rgba(56,189,248,.35);
  box-shadow: 0 0 0 1px rgba(56,189,248,.2), 0 20px 48px rgba(56,189,248,.12);
}
.pricing-popular:hover { border-color: rgba(56,189,248,.5); }

.popular-badge {
  margin-left: auto;
  background: rgba(56,189,248,.14);
  border: 1px solid rgba(56,189,248,.3);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.faq { background: var(--bg); }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-inner .section-title { margin-bottom: 40px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(245,197,24,.3); }
.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  font-size: 15px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--yellow);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 22px 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.faq-body strong { color: var(--text); }

.TOS { background: var(--bg); }
.TOS-inner { max-width: 760px; margin: 0 auto; }
.TOS-inner .section-title { margin-bottom: 40px; }
.TOS-list { display: flex; flex-direction: column; gap: 12px; }
.TOS-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .4s;
}
.TOS-item[open] { border-color: rgba(245,197,24,.3); }
.TOS-item summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  font-size: 15px;
}
.TOS-item summary::-webkit-details-marker { display: none; }
.TOS-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--yellow);
  flex-shrink: 0;
  transition: transform .4s;
}
.TOS-item[open] summary::after { transform: rotate(45deg); }
.TOS-body { padding: 0 22px 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.TOS-body strong { color: var(--text); }

.contact { background: var(--bg-2); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-text .section-title { margin-bottom: 16px; }
.contact-desc { color: var(--muted); margin-bottom: 32px; line-height: 1.75; }
.contact-channels { display: flex; flex-direction: column; gap: 14px; }
.channel {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color .2s;
}
.channel:hover { color: var(--yellow); }
.channel svg { width: 20px; height: 20px; color: var(--yellow); flex-shrink: 0; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--yellow); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { appearance: none; cursor: pointer; }
.form-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 4px; }


.custom-select-wrap {
  width: 100%;
}
.custom-select-wrap select {
  display: none;
}
.custom-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s;
  box-sizing: border-box;
}
.custom-select-btn.placeholder { color: var(--muted); }
.custom-select-btn:focus,
.custom-select-btn.open { border-color: var(--yellow); outline: none; }
.custom-select-btn svg { flex-shrink: 0; transition: transform .15s; }
.custom-select-btn.open svg { transform: rotate(180deg); }
.custom-select-dropdown {
  position: fixed;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: auto;
  z-index: 99999;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  max-height: 240px;
}
.custom-select-dropdown::-webkit-scrollbar { width: 8px; }
.custom-select-dropdown::-webkit-scrollbar-track { background: var(--bg-card); }
.custom-select-dropdown::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.custom-select-dropdown.open { display: block; }
.custom-select-option {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background .1s;
}
.custom-select-option:hover   { background: rgba(255,255,255,.07); }
.custom-select-option.selected { background: rgba(245,197,24,.12); color: var(--yellow); }
.custom-select-option.placeholder-opt { color: var(--muted); }


.auth-page { min-height: 100vh; display: flex; flex-direction: column; }

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-header { text-align: center; }
.auth-title { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.auth-sub { font-size: 14px; color: var(--muted); margin: 0; }
.auth-sub a { color: var(--yellow); text-decoration: none; }
.auth-sub a:hover { text-decoration: underline; }

.btn-discord {
  background: #5865f2;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s;
}
.btn-discord:hover { filter: brightness(1.1); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 40px; }
.pw-toggle {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--muted); cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.pw-toggle:hover { color: var(--text); }

.pw-strength { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.pw-strength-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.pw-strength-fill { height: 100%; border-radius: 2px; transition: width .3s, background .3s; }
.pw-strength-label { font-size: 11px; color: var(--muted); white-space: nowrap; }

.auth-tos { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }
.auth-tos a { color: var(--muted); text-decoration: underline; }

.label-link {
  float: right;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
}
.label-link:hover { color: var(--text); }


.server-creator {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sc-step { padding: 32px; }

.sc-slots-full-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(245,197,24,.08);
  border: 1px solid rgba(245,197,24,.3);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.sc-slots-full-banner svg { color: var(--yellow); flex-shrink: 0; margin-top: 1px; }
.sc-slots-full-banner a { color: var(--yellow); font-weight: 600; text-decoration: none; }
.sc-slots-full-banner a:hover { text-decoration: underline; }

.sc-tier-card-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

.sc-step-header { margin-bottom: 24px; }
.sc-step-title { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.sc-step-sub { font-size: 14px; color: var(--muted); margin: 0; }

.sc-tier-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.sc-tier-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  position: relative;
  transition: border-color .2s, background .2s, transform .15s;
}
.sc-tier-card:hover { border-color: rgba(245,197,24,.4); background: rgba(245,197,24,.03); transform: translateY(-3px); }

.sc-tier-card-popular { border-color: rgba(245,197,24,.3); }

.sc-tier-card.tier-free      { border-top: 2px solid #b48c50; }
.sc-tier-card.tier-diamond   { border-top: 2px solid #38bdf8; }
.sc-tier-card.tier-emerald   { border-top: 2px solid #34d399; }
.sc-tier-card.tier-netherite { border-top: 2px solid #a78bfa; }
/* External is not a gem tier: a stroked glyph rather than pixel art, and the
   card is a link out of the wizard, so it needs the anchor defaults reset. */
.sc-tier-card.tier-external  { border-top: 2px solid #f59e0b; }
a.sc-tier-card { text-decoration: none; color: inherit; }
.tier-external .sc-tier-card-gem-wrap { background: radial-gradient(circle, rgba(245,158,11,.18), transparent 72%); }
.tier-external .sc-tier-card-gem { image-rendering: auto; color: #f59e0b; }

.sc-tier-card-badge {
  position: absolute;
  top: -1px; right: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--yellow);
  color: var(--bg);
  padding: 3px 8px;
  border-radius: 0 0 6px 6px;
}

.sc-tier-card-gem-wrap {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 10px;
}
.tier-free      .sc-tier-card-gem-wrap { background: radial-gradient(circle, rgba(180,140,80,.18), transparent 72%); }
.tier-diamond   .sc-tier-card-gem-wrap { background: radial-gradient(circle, rgba(56,189,248,.18), transparent 72%); }
.tier-emerald   .sc-tier-card-gem-wrap { background: radial-gradient(circle, rgba(52,211,153,.18), transparent 72%); }
.tier-netherite .sc-tier-card-gem-wrap { background: radial-gradient(circle, rgba(167,139,250,.18), transparent 72%); }

.sc-tier-card-gem { width: 44px; height: 44px; image-rendering: pixelated; }

.sc-tier-card-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.sc-tier-card-price {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
  margin-top: 4px;
}

.sc-tier-card-blurb {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 10px 0 4px;
}

.sc-tier-card-specs {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 10px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex: 1;
  width: 100%;
}
.sc-tier-card-spec {
  font-size: 12.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-tier-card-spec svg { color: var(--muted); flex-shrink: 0; }

.sc-tier-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-top: 18px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color .15s, color .15s;
}
.sc-tier-card:hover .sc-tier-card-cta { color: var(--yellow); border-color: rgba(245,197,24,.4); }

.sc-step-2-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.sc-step-2-header .sc-step-title { flex: 1; }

.sc-mode-toggle {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.sc-mode-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.sc-mode-btn:hover { color: var(--text); }
.sc-mode-btn.active {
  background: var(--yellow);
  color: #1a1400;
}

.sc-software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.sc-software-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 10px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, transform .15s, background .15s;
}
.sc-software-card:hover { border-color: rgba(245,197,24,.4); transform: translateY(-2px); }
.sc-software-card.active {
  border-color: var(--yellow);
  background: rgba(245,197,24,.08);
  box-shadow: 0 0 0 3px rgba(245,197,24,.1);
}
.sc-software-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  image-rendering: pixelated;
}
.sc-software-name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.sc-software-tag {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--yellow);
}

.sc-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-pill-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.sc-pill-btn:hover { border-color: rgba(245,197,24,.4); }
.sc-pill-btn.active {
  border-color: var(--yellow);
  background: rgba(245,197,24,.1);
  color: var(--yellow);
}

.sc-pvp-field { display: flex; flex-direction: column; gap: 8px; }
.sc-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.sc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.sc-switch-track {
  position: relative;
  width: 38px;
  height: 22px;
  background: var(--border);
  border-radius: 999px;
  flex-shrink: 0;
  transition: background .2s;
}
.sc-switch-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.sc-switch input:checked + .sc-switch-track { background: var(--yellow); }
.sc-switch input:checked + .sc-switch-track .sc-switch-thumb { transform: translateX(16px); }
.sc-switch-label { font-size: 12.5px; color: var(--muted); }

.sc-wizard-progress {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.sc-wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.sc-wizard-step:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
}
.sc-wizard-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color .2s, background .2s, color .2s;
}
.sc-wizard-step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.sc-wizard-step.active .sc-wizard-step-dot { border-color: var(--yellow); background: var(--yellow); color: #1a1400; }
.sc-wizard-step.active .sc-wizard-step-label { color: var(--text); }
.sc-wizard-step.completed .sc-wizard-step-dot { border-color: var(--yellow); background: rgba(245,197,24,.15); color: var(--yellow); }
@media (max-width: 640px) {
  .sc-wizard-step-label { display: none; }
}

.sc-wizard-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: sc-adv-in .18s ease;
}
@keyframes sc-adv-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.sc-wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.sc-review-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sc-review-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
}
.sc-review-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.sc-review-key { color: var(--muted); font-weight: 600; }
.sc-review-val { color: var(--text); font-weight: 600; text-align: right; }

.field-note-inline {
  display: inline-block;
  color: var(--yellow);
  font-weight: 700;
  font-size: 11.5px;
  margin-left: 4px;
}

.sc-form-area .form-group input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  padding: 0;
  border: none;
  margin-top: 10px;
}
.sc-form-area .form-group input[type="range"]:focus { box-shadow: none; }
.sc-form-area .form-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--yellow);
  cursor: pointer;
  border: 2px solid #1a1400;
}
.sc-form-area .form-group input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--yellow);
  cursor: pointer;
  border: 2px solid #1a1400;
}

.sc-version-more-toggle {
  align-self: flex-start;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 0 0;
  transition: color .15s;
}
.sc-version-more-toggle:hover { color: var(--yellow); }
.sc-version-full-select { margin-top: 8px; max-width: 260px; }

.sc-step2-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.sc-summary-col { position: sticky; top: 84px; }
.sc-summary-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sc-summary-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sc-summary-gem-wrap { display: flex; align-items: center; gap: 12px; }
.sc-summary-gem { width: 40px; height: 40px; image-rendering: pixelated; flex-shrink: 0; }
.sc-summary-name { font-size: 17px; font-weight: 800; color: var(--text); }
.sc-summary-price { font-size: 13px; font-weight: 600; color: var(--yellow); margin-top: 2px; }
.sc-summary-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.sc-summary-feats li {
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-summary-feats li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .sc-step2-layout { grid-template-columns: 1fr; }
  .sc-summary-col { position: static; order: -1; }
}

.sc-back-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
  white-space: nowrap;
  margin-top: 4px;
  transition: color .15s;
}
.sc-back-btn:hover { color: var(--text); }

.sc-step-2-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sc-selected-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px 4px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.sc-selected-gem { width: 18px; height: 18px; image-rendering: pixelated; }

.sc-form-area {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sc-form-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.sc-form-section:first-child { padding-top: 0; border-top: none; }
.sc-form-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sc-form-hint {
  margin: 4px 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.sc-region-flag {
  display: block;
  width: 36px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.sc-form-area .form-group input,
.sc-form-area .form-group select {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s;
}
.sc-form-area .form-group input:focus,
.sc-form-area .form-group select:focus {
  border-color: rgba(245,197,24,.5);
  box-shadow: 0 0 0 3px rgba(245,197,24,.1);
}
.sc-form-area .form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.sc-login-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 10px 14px;
}
.sc-login-prompt a { color: var(--yellow); text-decoration: none; }
.sc-login-prompt a:hover { text-decoration: underline; }

.sc-panel-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #fbbf24;
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.25);
  border-radius: 8px;
  padding: 10px 14px;
}
.sc-panel-warning svg { flex-shrink: 0; margin-top: 1px; }

.sc-credit-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.sc-credit-balance svg { color: var(--yellow); flex-shrink: 0; }
.sc-credit-balance strong { color: var(--text); }

.sc-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
}
.sc-checkboxes { display: flex; flex-direction: column; gap: 10px; }

.sc-success {
  padding: 12px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sc-success-icon {
  width: 52px; height: 52px;
  background: rgba(52,211,153,.12);
  border: 1px solid rgba(52,211,153,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
}
.sc-success-title { font-size: 20px; font-weight: 800; margin: 0; }
.sc-success-sub { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; max-width: 420px; }

@media (max-width: 900px) {
  .sc-tier-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sc-step { padding: 20px; }
  .sc-tier-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sc-tier-card { padding: 20px 16px 18px; }
  .sc-tier-card-gem-wrap { width: 48px; height: 48px; margin-bottom: 6px; }
  .sc-tier-card-gem { width: 32px; height: 32px; }
  .sc-form-footer { flex-direction: column; align-items: flex-start; }
  .sc-step-2-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sc-mode-toggle { align-self: stretch; }
  .sc-mode-btn { flex: 1; text-align: center; }
}


.promo-section { background: var(--bg-2); }

.promo-card {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.promo-card-left { flex: 1; min-width: 0; }
.promo-card-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 180px;
  text-align: center;
}

.promo-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 10px;
}
.promo-card-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.2;
}
.promo-card-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.6;
  max-width: 520px;
}

.promo-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.promo-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.promo-perk svg { color: var(--green); flex-shrink: 0; }

.promo-price-wrap { display: flex; align-items: baseline; gap: 4px; }
.promo-price-amount { font-size: 48px; font-weight: 900; line-height: 1; }
.promo-price-period { font-size: 16px; color: var(--muted); }
.promo-price-note { font-size: 12px; color: var(--muted); margin: 0 0 16px; }

@media (max-width: 700px) {
  .promo-card { flex-direction: column; padding: 24px; gap: 28px; }
  .promo-card-right { align-items: flex-start; text-align: left; width: 100%; }
}

.promo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.promo-modal {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.promo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.promo-modal-title { font-size: 17px; font-weight: 700; margin: 0; }
.promo-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  padding: 4px 8px;
  line-height: 1;
}
.promo-modal-close:hover { color: var(--text); }
.promo-modal-sub { font-size: 13px; color: var(--muted); margin: 8px 24px 16px; line-height: 1.5; }
.promo-modal-servers {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.promo-server-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  background: var(--bg-2);
  text-align: left;
  width: 100%;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.promo-server-row:hover { border-color: rgba(245,197,24,.4); background: rgba(245,197,24,.03); }
.promo-server-row.is-selected { border-color: var(--yellow); background: rgba(245,197,24,.06); }
.promo-server-name { font-size: 14px; font-weight: 600; display: block; color: var(--text); }
.promo-server-sub { font-size: 12px; color: var(--muted); display: block; }
.promo-modal-empty { font-size: 14px; color: var(--muted); padding: 24px 0; text-align: center; }
.promo-modal-loading { font-size: 14px; color: var(--muted); padding: 24px 0; text-align: center; }
.promo-modal-error { font-size: 13px; color: #fca5a5; padding: 8px 24px 0; margin: 0; }

#promo-modal-campaign {
  overflow-y: auto;
  max-height: 42vh;
  padding: 4px 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.promo-field { margin-bottom: 14px; }
.promo-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.promo-field-row .promo-field { margin-bottom: 0; }
.promo-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.promo-field-hint { font-size: 11px; font-weight: 400; color: var(--muted); text-transform: none; }
.promo-field-input {
  width: 100%;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
}
.promo-field-input:focus { outline: none; border-color: var(--yellow); }
.promo-cat-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.promo-cat-pill {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--muted);
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.promo-cat-pill:hover { border-color: rgba(255,255,255,.25); color: var(--text); }
.promo-cat-pill.is-selected { color: var(--bg); background: var(--yellow); border-color: var(--yellow); }
.promo-cat-pill[data-cat="pvp"].is-selected       { background: var(--red); border-color: var(--red); }
.promo-cat-pill[data-cat="smp"].is-selected       { background: var(--green); border-color: var(--green); }
.promo-cat-pill[data-cat="gen"].is-selected       { background: var(--blue); border-color: var(--blue); }
.promo-cat-pill[data-cat="box"].is-selected       { background: var(--orange); border-color: var(--orange); }
.promo-cat-pill[data-cat="prison"].is-selected    { background: var(--purple); border-color: var(--purple); }
.promo-cat-pill[data-cat="farming"].is-selected   { background: #a3e635; border-color: #a3e635; }
.promo-cat-pill[data-cat="minigames"].is-selected { background: #f472b6; border-color: #f472b6; }
.promo-cat-pill[data-cat="skyblock"].is-selected  { background: #38bdf8; border-color: #38bdf8; }
.promo-total-cost { font-size: 14px; color: var(--text); margin: 4px 0 10px; }
.promo-total-cost strong { color: var(--yellow); font-size: 16px; }
.promo-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}


.icons-section { background: var(--bg); }
.icons-loading { color: var(--muted); font-size: 14px; padding: 40px 0; text-align: center; }

.icons-rotation-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 24px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: fit-content;
}
.icons-rotation-label { font-size: 13px; color: var(--muted); }
.icons-rotation-timer { font-size: 14px; font-weight: 700; color: var(--yellow); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.icons-rotation-clock { image-rendering: pixelated; flex-shrink: 0; }
.icons-empty   { color: var(--muted); font-size: 14px; padding: 40px 0; text-align: center; }

.icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.icon-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.icon-card:hover { border-color: rgba(245,197,24,.35); transform: translateY(-2px); }
.icon-card.selected { border-color: var(--yellow); box-shadow: 0 0 0 1px rgba(245,197,24,.2); }

.icon-card-img {
  width: 56px; height: 56px;
  image-rendering: pixelated;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  padding: 4px;
}
.icon-card-img-placeholder {
  width: 56px; height: 56px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.icon-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.icon-card-price {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
}
.icon-card-price svg { flex-shrink: 0; }
.icon-card-free { color: var(--green); }

.icon-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.icon-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 90vh;
  overflow-y: auto;
}
.icon-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.icon-modal-preview {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-modal-img {
  width: 52px; height: 52px;
  image-rendering: pixelated;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  padding: 4px;
  flex-shrink: 0;
}
.icon-modal-name { font-size: 16px; font-weight: 700; color: var(--text); }
.icon-modal-price {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--yellow); margin-top: 3px;
}
.icon-modal-close {
  background: none; border: none; color: var(--muted);
  font-size: 18px; cursor: pointer; padding: 4px 8px;
  border-radius: 6px; font-family: inherit; line-height: 1;
  transition: color .15s; flex-shrink: 0;
}
.icon-modal-close:hover { color: var(--text); }
.icon-modal-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(251,191,36,.07);
  border: 1px solid rgba(251,191,36,.25);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #fbbf24;
  line-height: 1.5;
}
.icon-modal-warning svg { flex-shrink: 0; margin-top: 1px; }
.icon-modal-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0;
}
.icon-modal-servers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.icon-modal-server-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color .15s, background .15s;
  width: 100%;
}
.icon-modal-server-row:hover { border-color: rgba(245,197,24,.35); background: rgba(245,197,24,.03); }
.icon-modal-server-row.is-selected { border-color: var(--yellow); background: rgba(245,197,24,.06); }
.icon-modal-server-icon {
  width: 32px; height: 32px;
  image-rendering: pixelated;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgba(255,255,255,.05);
  padding: 2px;
}
.icon-modal-server-icon-none {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgba(255,255,255,.04);
  border: 1px dashed var(--border);
}
.icon-modal-server-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.icon-modal-server-name { font-size: 14px; font-weight: 600; color: var(--text); }
.icon-modal-server-sub  { font-size: 12px; color: var(--muted); }
.icon-modal-loading, .icon-modal-empty { font-size: 13px; color: var(--muted); padding: 8px 0; }
.icon-modal-empty a { color: var(--yellow); text-decoration: none; }
.icon-modal-error { font-size: 13px; color: var(--red); margin: 0; }
.icon-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

@media (max-width: 600px) {
  .icons-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .icon-modal { padding: 20px; }
}

.footer {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 340px; line-height: 1.7; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom a { color: var(--yellow); }
.footer-bottom a:hover { color: var(--yellow-d); }
.footer-bottom {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .pricing-grid    { grid-template-columns: repeat(2, 1fr); }
  .credit-packages { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .footer-inner  { grid-template-columns: 1fr; }
  .footer-links  { gap: 40px; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .pricing-grid    { grid-template-columns: 1fr; }
  .credit-packages { grid-template-columns: 1fr 1fr; }
  .hero-cta        { flex-direction: column; align-items: flex-start; }
  .features-grid   { grid-template-columns: 1fr; }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.modal-header h2 { font-size: 20px; font-weight: 800; }
.modal-close-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px;
  display: flex; align-items: center;
  transition: color .15s;
}
.modal-close-btn:hover { color: var(--text); }
.modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }


.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.form-group input,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s;
}
.form-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--yellow);
}
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.checkbox-field a {
  color: var(--yellow);
  text-decoration: underline;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--yellow);
}
.form-group input::placeholder { color: var(--muted); }
.label-badge {
  font-size: 11px;
  font-weight: 600;
  background: rgba(245,197,24,0.15);
  color: var(--yellow);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.subdomain-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s;
}
.subdomain-wrap:focus-within { border-color: var(--yellow); }
.subdomain-wrap input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 10px 14px;
}
.subdomain-suffix {
  padding: 0 14px 0 0;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.field-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.form-error {
  font-size: 13px;
  color: #fca5a5;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .modal-box { padding: 24px 20px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .hero-panel-manage .hero-panel-top  { text-align: left; }
  .hero-panel-manage .hero-cta        { justify-content: flex-start; }
  .hero-panel-manage .hero-panel-stats { justify-content: flex-start; }

  .hero-panel-host .hero-panel-content { padding-bottom: 0; }
  .hero-panel-host .hero-panel-stats   { position: static; }

  .credits-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .credit-toggle  { margin-left: 0; }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }

  .hero-panel { padding: 36px 18px 28px; min-height: unset; }
  .hero-eyebrow { margin-bottom: 12px; }
  .hero-sub { margin-bottom: 24px; }
  .hero-panel-stats { padding-top: 16px; }

  .sc-form-area { padding: 18px; gap: 14px; }
  .sc-plan-info  { padding: 18px; }
  #sc-submit     { width: 100%; justify-content: center; }

  .credit-packages { grid-template-columns: 1fr 1fr; }

  .cta-strip-inner { padding: 44px 24px; }

  .footer-links { flex-direction: column; gap: 24px; }
}

/* ==========================================================================
   DARK PREMIUM REFINEMENT LAYER
   Visual-only overrides. No class is renamed and no layout mode is changed,
   so every JS-generated element keeps working.
   ========================================================================== */

/* --- typography ------------------------------------------------------- */
h1, h2, h3,
.hero-title, .hero-title-manage,
.section-title, .shop-page-title, .cta-strip-title,
.promo-card-title, .sc-tier-card h3, .adm-card-title {
  font-family: var(--font-display);
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.hero-title, .shop-page-title { letter-spacing: -0.032em; line-height: 1.06; font-weight: 800; }
.hero-sub, .shop-page-sub, .section-sub { color: var(--text-2); }

/* numbers read as data, not decoration */
.hero-stat-num, .promo-price-amount, .sc-summary-price,
.pkg-price, .pc-price, .acct-stat-card-value, .adm-stat-card-value {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  font-weight: 800;
}

/* quieter uppercase: keep the label role, lose the shouting */
.hero-stat-label, .hero-eyebrow, .cta-strip-eyebrow,
.acct-card-label, .adm-stat-card-label, .adm-dashboard-eyebrow,
.promo-card-eyebrow {
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}

/* --- navigation ------------------------------------------------------- */
.nav-wrapper {
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav { height: 68px; }
.nav-links a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-xs);
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-active { color: var(--yellow); }

/* --- surfaces: lifted, not outlined ----------------------------------- */
.feat-card, .acct-card, .adm-card, .auth-card, .promo-card,
.sc-tier-card, .sc-software-card, .sc-summary-card, .pricing-card,
.acct-stat-card, .adm-stat-card, .adm-user-card, .adm-empty-card,
.faq-item, .action-tile, .acct-danger-card, .hero-panel {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--hairline), var(--shadow);
}
.feat-card:hover, .sc-tier-card:hover, .pricing-card:hover, .action-tile:hover {
  border-color: var(--border-str);
  box-shadow: var(--hairline), var(--shadow-lg);
}

/* rows sit inside cards, so they stay flat and just gain a divider */
.acct-server-row, .acct-session-item, .acct-field-row, .acct-campaign-row,
.adm-srv-row, .adm-claim-row, .adm-incident-row, .adm-overview-inc-row,
.billing-charge-row, .billing-sub-row, .credential-row {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* --- chips and pills --------------------------------------------------- */
.feat-cat-chip {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 550;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.feat-cat-chip:hover { background: var(--bg-3); color: var(--text); }
.feat-cat-chip.is-active,
.feat-cat-chip[aria-selected="true"] {
  background: var(--acc-soft);
  border-color: var(--acc-line);
  color: var(--yellow);
}

/* --- forms ------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="number"], select, textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--acc-line);
  box-shadow: 0 0 0 3px var(--acc-soft);
}
::placeholder { color: var(--muted); }

/* --- modals ------------------------------------------------------------ */
.modal-box, .adm-modal-box, .icon-modal {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-2));
  border: 1px solid var(--border-str);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.modal-overlay { background: rgba(4, 5, 8, .72); backdrop-filter: blur(6px); }

/* --- breathing room ---------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-header { margin-bottom: clamp(28px, 4vw, 44px); }

/* --- normalized breakpoints -------------------------------------------- */
@media (max-width: 960px) {
  .nav { height: 62px; }
  .section { padding-block: 56px; }
}
@media (max-width: 640px) {
  .btn-lg { padding: 13px 24px; font-size: 14px; }
  .hero-title, .shop-page-title { letter-spacing: -0.028em; }
  .section { padding-block: 44px; }
}

/* --- accessibility ------------------------------------------------------ */
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* --- coal tier (slate, sits between diamond and emerald) ---------------- */
.tier-coal      { border-top: 2px solid #9aa7b8; }
.tier-coal      .pc-name   { color: #9aa7b8; }
.tier-coal      .pc-amount { color: #9aa7b8; }
.sc-tier-card.tier-coal    { border-top: 2px solid #9aa7b8; }
.tier-coal      .sc-tier-card-gem-wrap { background: radial-gradient(circle, rgba(154,167,184,.30), transparent 74%); }


/* ── VPS nav dropdown ─────────────────────────────────────────────────────── */
.nav-dd { position: relative; }
.nav-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s;
}
.nav-dd-toggle:hover,
.nav-dd.open .nav-dd-toggle { color: var(--text); }
.nav-dd-caret { transition: transform .2s; flex-shrink: 0; }
.nav-dd.open .nav-dd-caret { transform: rotate(180deg); }

.nav-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  padding: 8px;
  z-index: 400;
}
.nav-dd.open .nav-dd-menu { display: block; }
/* keeps the pointer from falling through the gap between trigger and menu */
.nav-dd-menu::before {
  content: '';
  position: absolute;
  top: -12px; left: 0; right: 0;
  height: 12px;
}
.nav-dd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 6px;
}
.nav-dd-head-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.nav-dd-head-os {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(96,165,250,.12);
  border: 1px solid rgba(96,165,250,.28);
  border-radius: 999px;
  padding: 2px 8px;
}
.nav-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s;
}
.nav-dd-item:hover { background: var(--bg-hover); }
.nav-dd-item-body { flex: 1; min-width: 0; }
.nav-dd-item-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.nav-dd-item-specs {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-dd-item-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  flex-shrink: 0;
}
.nav-dd-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bg);
  background: var(--yellow);
  border-radius: 999px;
  padding: 1px 6px;
}
.nav-dd-foot {
  display: block;
  margin-top: 6px;
  padding: 9px 10px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-dd-foot:hover { background: var(--bg-hover); color: var(--text); }

/* mobile: the dropdown flattens into an indented list */
.mobile-menu .mobile-dd-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
}
.mobile-menu .mobile-dd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
}
.mobile-menu .mobile-dd-item span:last-child { color: var(--yellow); font-weight: 700; font-size: 13px; }


/* ── /vps page ────────────────────────────────────────────────────────────── */
.vps-hero {
  padding: 84px 0 56px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 380px at 50% -10%, rgba(96,165,250,.10), transparent 70%),
    var(--bg);
}
.vps-hero-inner { text-align: center; }
.vps-hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(96,165,250,.12);
  border: 1px solid rgba(96,165,250,.28);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.vps-hero-title {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 14px;
  color: var(--text);
}
.vps-hero-sub {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
}
.vps-hero-feats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 28px;
}
.vps-hero-feat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.vps-hero-feat svg { color: var(--green); flex-shrink: 0; }

.vps-balance {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 28px;
  padding: 9px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
}
.vps-balance span    { color: var(--muted); }
.vps-balance strong  { color: var(--yellow); display: inline-flex; align-items: center; gap: 5px; }
.vps-balance-buy     { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 13px; }
.vps-balance-buy:hover { color: var(--text); }

.vps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.vps-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

.vps-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--border-str);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  transition: border-color .2s, transform .2s;
}
.vps-card:hover { transform: translateY(-3px); border-color: var(--border-str); }
.vps-card-popular { border-top-color: var(--yellow); }
.vps-card-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--bg);
  background: var(--yellow);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.vps-card-name {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.vps-card-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--yellow);
  margin-bottom: 12px;
}
.vps-card-price svg    { align-self: center; }
.vps-card-price strong { font-size: 30px; font-weight: 800; line-height: 1; }
.vps-card-price span   { font-size: 13px; color: var(--muted); font-weight: 600; }
.vps-card-blurb {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 18px;
  min-height: 40px;
}
.vps-card-specs {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  margin-bottom: 20px;
}
.vps-card-spec {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-2);
}
.vps-card-spec svg { color: var(--muted); flex-shrink: 0; }
.vps-card-cta { margin-top: auto; width: 100%; justify-content: center; }
.vps-card-cta:disabled { opacity: .5; cursor: not-allowed; }
.vps-card-cta-short { background: var(--bg-3); color: var(--text-2); border-color: var(--border); }

/* orders */
.vps-orders { display: flex; flex-direction: column; gap: 12px; }
.vps-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.vps-order-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.vps-order-specs { font-size: 13px; color: var(--muted); margin-top: 4px; }
.vps-order-side  { text-align: right; }
.vps-order-ip    { font-size: 13px; font-weight: 600; color: var(--text-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.vps-order-date  { font-size: 12px; color: var(--muted); margin-top: 3px; }
.vps-order-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 999px;
  padding: 3px 9px;
}
.vps-order-status-pending      { color: var(--orange); background: rgba(251,146,60,.12); border: 1px solid rgba(251,146,60,.28); }
.vps-order-status-provisioning { color: var(--blue);   background: rgba(96,165,250,.12); border: 1px solid rgba(96,165,250,.28); }
.vps-order-status-active       { color: var(--green);  background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.28); }
.vps-order-status-refunded,
.vps-order-status-cancelled    { color: var(--muted);  background: rgba(255,255,255,.05); border: 1px solid var(--border); }

/* faq */
.vps-faq { display: flex; flex-direction: column; gap: 10px; max-width: 780px; margin: 0 auto; }
.vps-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.vps-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  list-style: none;
}
.vps-faq-item summary::-webkit-details-marker { display: none; }
.vps-faq-item summary::after { content: '+'; float: right; color: var(--muted); font-weight: 400; }
.vps-faq-item[open] summary::after { content: '\2212'; }
.vps-faq-item p { margin: 12px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.65; }
.vps-faq-item a { color: var(--yellow); }

/* order modal */
.vps-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 900;
}
.vps-modal-overlay[hidden] { display: none; }
.vps-modal {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-str);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  padding: 24px;
}
.vps-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.vps-modal-title  { font-family: 'Archivo','Inter',sans-serif; font-size: 19px; font-weight: 700; margin: 0; color: var(--text); }
.vps-modal-close  { background: none; border: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px; }
.vps-modal-close:hover { color: var(--text); }
.vps-modal-spec { border: 1px solid var(--border); border-radius: 10px; padding: 4px 14px; margin-bottom: 18px; }
.vps-modal-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-soft);
}
.vps-modal-spec-row:last-child { border-bottom: none; }
.vps-modal-spec-row span    { color: var(--muted); }
.vps-modal-spec-row strong  { color: var(--text); font-weight: 600; text-align: right; }
.vps-modal-spec-total strong { color: var(--yellow); display: inline-flex; align-items: center; gap: 5px; }
.vps-field { margin-bottom: 16px; }
.vps-field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.vps-field-hint  { font-weight: 400; color: var(--muted); }
.vps-field-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.vps-field-input:focus { outline: none; border-color: var(--acc-line); }
.vps-modal-note  { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; }
.vps-modal-error {
  font-size: 13px;
  color: var(--red);
  background: rgba(248,113,113,.1);
  border: 1px solid rgba(248,113,113,.28);
  border-radius: 8px;
  padding: 9px 12px;
  margin: 0 0 14px;
}
.vps-modal-footer { display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 720px) {
  .vps-hero { padding: 60px 0 44px; }
  .vps-order { flex-direction: column; align-items: flex-start; }
  .vps-order-side { text-align: left; }
}


/* ── /vps/manage - customer control panel ─────────────────────────────────── */

.vpsm-main { padding: 120px 0 90px; min-height: 70vh; }

.vpsm-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 34px;
}
.vpsm-title { font-family: Archivo, Inter, sans-serif; font-size: 2.1rem; font-weight: 800; margin: 0 0 6px; }
.vpsm-sub   { color: var(--text-2); margin: 0; font-size: .96rem; }
.vpsm-head-side { display: flex; align-items: center; gap: 14px; }

.vpsm-balance {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 15px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 11px;
}
.vpsm-balance-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.vpsm-balance-val   { display: flex; align-items: center; gap: 5px; font-weight: 800; color: var(--yellow); }

.vpsm-list { display: flex; flex-direction: column; gap: 20px; }
.vpsm-loading { color: var(--muted); padding: 40px 0; text-align: center; }

.vpsm-empty {
  text-align: center; padding: 64px 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 16px;
}
.vpsm-empty h2 { font-family: Archivo, Inter, sans-serif; font-size: 1.35rem; margin: 0 0 8px; }
.vpsm-empty p  { color: var(--text-2); margin: 0 0 20px; }

/* card */
.vpsm-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 24px; transition: opacity .18s ease;
}
.vpsm-card-busy { opacity: .55; pointer-events: none; }

.vpsm-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; flex-wrap: wrap; margin-bottom: 18px;
}
.vpsm-card-name {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: Archivo, Inter, sans-serif; font-size: 1.2rem; font-weight: 700; margin: 0 0 5px;
}
.vpsm-card-meta { color: var(--muted); font-size: .84rem; margin: 0; }

.vpsm-card-conn { display: flex; gap: 22px; flex-wrap: wrap; }
.vpsm-ip { display: flex; flex-direction: column; gap: 3px; }
.vpsm-ip span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.vpsm-ip code {
  font-size: .88rem; color: var(--text); background: var(--bg-3);
  border: 1px solid var(--border); border-radius: 7px; padding: 3px 9px;
}
.vpsm-muted { color: var(--muted) !important; }

/* status pill */
.vpsm-pill {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.vpsm-pill-running     { color: var(--green);  background: rgba(52,211,153,.13); border-color: rgba(52,211,153,.3); }
.vpsm-pill-stopped     { color: var(--muted);  background: rgba(255,255,255,.05); border-color: var(--border-str); }
.vpsm-pill-stopping,
.vpsm-pill-paused      { color: var(--orange); background: rgba(251,146,60,.13); border-color: rgba(251,146,60,.3); }
.vpsm-pill-crashed,
.vpsm-pill-unavailable { color: var(--red);    background: rgba(248,113,113,.13); border-color: rgba(248,113,113,.3); }
.vpsm-pill-pending,
.vpsm-pill-unknown     { color: var(--blue);   background: rgba(96,165,250,.13); border-color: rgba(96,165,250,.3); }

/* specs */
.vpsm-specs {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 0;
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); margin-bottom: 18px;
}
.vpsm-spec {
  display: flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 9px; padding: 6px 11px;
}
.vpsm-spec svg { color: var(--muted); flex-shrink: 0; }
.vpsm-spec-cost { color: var(--yellow); font-weight: 600; }
.vpsm-spec-cost svg { color: var(--yellow); }
.vpsm-spec-renew { margin-left: auto; color: var(--muted); background: transparent; border-color: transparent; }

/* notices */
.vpsm-notice {
  font-size: .87rem; color: var(--text-2); line-height: 1.55;
  background: rgba(96,165,250,.07); border: 1px solid rgba(96,165,250,.2);
  border-radius: 11px; padding: 12px 15px;
}
.vpsm-notice-info { margin-bottom: 16px; background: var(--acc-soft); border-color: var(--acc-line); }
.vpsm-notice-error {
  margin-bottom: 14px; color: var(--text-2);
  background: rgba(248,113,113,.07); border-color: rgba(248,113,113,.28);
}
.vpsm-notice-error strong { color: var(--red); }
.vpsm-notice-error a { color: var(--acc); font-weight: 600; }
/* The raw provisioner error. Worth pasting into a ticket, so it stays
   selectable and wraps rather than being clipped, but visually demoted. */
.vpsm-err-detail { margin-top: 9px; }
.vpsm-err-detail code {
  display: block; font-size: .76rem; color: var(--muted); line-height: 1.5;
  background: var(--bg-3); border: 1px solid var(--border-soft); border-radius: 8px;
  padding: 8px 10px; white-space: pre-wrap; word-break: break-word;
  max-height: 8.5em; overflow-y: auto;
}

/* copy-to-clipboard beside the RDP address */
.vpsm-ip-copy { display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 7px; }
.vpsm-ip-copy > span { grid-column: 1 / -1; }

/* The address players are given. On a box running a game server it sits above
   RDP, so it has to read as the headline rather than as one more row. */
.vpsm-ip-primary > span { color: var(--yellow); }
.vpsm-ip-primary code  { color: var(--text); font-weight: 700; }
/* Sits under the address inside its grid, because it explains that address and
   must not drift next to RDP when the row wraps. */
.vpsm-ip-hint {
  grid-column: 1 / -1;
  margin: 1px 0 0;
  max-width: 34ch;
  font-size: .7rem;
  line-height: 1.35;
  color: var(--muted);
}
.vpsm-copy {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; cursor: pointer;
  color: var(--muted); background: var(--bg-3);
  border: 1px solid var(--border); border-radius: 7px;
  transition: color .15s, border-color .15s, background .15s;
}
.vpsm-copy:hover { color: var(--acc); border-color: var(--acc-line); background: var(--acc-soft); }
.vpsm-copy:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* action buttons */
.vpsm-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.vpsm-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .87rem; font-weight: 600; padding: 9px 15px; border-radius: 10px;
  background: var(--bg-3); color: var(--text); border: 1px solid var(--border-str);
  cursor: pointer; transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.vpsm-btn:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--yellow); }
.vpsm-btn:disabled { opacity: .38; cursor: not-allowed; }
.vpsm-btn svg { flex-shrink: 0; }
.vpsm-btn-up { margin-left: auto; color: var(--yellow); border-color: var(--acc-line); background: var(--acc-soft); }
.vpsm-btn-up:hover:not(:disabled) { background: rgba(245,197,24,.18); }

/* password rules */
.vpsm-pw-rules { display: flex; flex-direction: column; gap: 5px; margin: -4px 0 14px; }
.vpsm-rule { font-size: .8rem; }
.vpsm-rule-bad { color: var(--orange); }
.vpsm-rule-ok  { color: var(--green); }

/* upgrade options */
.vps-modal-wide { max-width: 560px; }
.vpsm-up-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.vpsm-up-opt {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .15s ease, background .15s ease;
}
.vpsm-up-opt:hover { border-color: var(--border-str); background: var(--bg-3); }
.vpsm-up-opt:has(input:checked) { border-color: var(--yellow); background: var(--acc-soft); }
.vpsm-up-opt-poor { opacity: .5; cursor: not-allowed; }
.vpsm-up-opt input { accent-color: var(--yellow); width: 16px; height: 16px; flex-shrink: 0; }
.vpsm-up-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.vpsm-up-name { font-weight: 700; }
.vpsm-up-spec { font-size: .8rem; color: var(--text-2); }
.vpsm-up-price { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.vpsm-up-price strong { display: flex; align-items: center; gap: 4px; color: var(--yellow); font-size: 1rem; }
.vpsm-up-price span { font-size: .72rem; color: var(--muted); }
.vpsm-up-then { color: var(--text-2) !important; }

/* toast */
.vpsm-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 9999; max-width: min(92vw, 520px);
  padding: 13px 20px; border-radius: 12px; font-size: .9rem; font-weight: 500;
  background: var(--bg-3); color: var(--text); border: 1px solid var(--border-str);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.vpsm-toast-ok    { border-color: rgba(52,211,153,.4);  color: var(--green); }
.vpsm-toast-error { border-color: rgba(248,113,113,.4); color: var(--red); }

@media (max-width: 700px) {
  .vpsm-main { padding: 100px 0 70px; }
  .vpsm-head { flex-direction: column; align-items: stretch; }
  .vpsm-head-side { justify-content: space-between; }
  .vpsm-card-top { flex-direction: column; }
  .vpsm-spec-renew { margin-left: 0; }
  .vpsm-actions { flex-direction: column; }
  .vpsm-btn { justify-content: center; }
  .vpsm-btn-up { margin-left: 0; }
  .vpsm-up-opt { flex-wrap: wrap; }
  .vpsm-up-price { align-items: flex-start; text-align: left; width: 100%; }
}

.vps-orders-cta { margin-top: 20px; display: flex; justify-content: center; }

/* "Manage my VPS" - injected by vps-nav.js for signed-in visitors only. */
.nav-dd-manage { color: var(--yellow); font-weight: 700; }
.mobile-menu .mobile-dd-manage { color: var(--yellow); font-weight: 700; padding: 6px 0; }

/* ══ Nav: Resources dropdown & mobile groups ══════════════════════════════ */

/* The plan menu is a wide 320px panel centred under its trigger. A link list
   needs less room, and this one sits at the end of the nav, centring it there
   pushes it past the right edge on narrower desktops, so it anchors right. */
.nav-dd-menu-simple {
  width: 268px;
  left: auto;
  right: 0;
  transform: none;
  padding: 6px;
}
.nav-dd-menu-simple::before { left: auto; right: 28px; transform: none; }

.nav-dd-link {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--text-2);
  text-decoration: none;
  transition: background .16s, color .16s;
}
.nav-dd-link:hover,
.nav-dd-link:focus-visible {
  background: var(--bg-3);
  color: var(--text);
  outline: none;
}
.nav-dd-link:focus-visible { box-shadow: inset 0 0 0 1px var(--acc); }

.nav-dd-ico { color: var(--muted); flex-shrink: 0; margin-top: 1px; transition: color .16s; }
.nav-dd-link:hover .nav-dd-ico,
.nav-dd-link:focus-visible .nav-dd-ico { color: var(--yellow); }

.nav-dd-link-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nav-dd-link-name { font-size: 13.5px; font-weight: 600; color: inherit; }
.nav-dd-link-sub  { font-size: 11.5px; color: var(--muted); line-height: 1.35; }

.nav-dd-sep { height: 1px; background: var(--border-soft); margin: 6px 8px; }
.nav-dd-group-label {
  display: block; padding: 2px 10px 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}

/* A dropdown whose contents include the current page reads as active too. */
.nav-dd-toggle.nav-active { color: var(--yellow); }

/* ── mobile: collapsible groups ──────────────────────────────────────────── */

.mobile-group { display: flex; flex-direction: column; }
.mobile-group-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 0; margin: 0;
  background: none; border: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 500;
  color: var(--muted); text-align: left;
  transition: color .18s;
}
.mobile-group-toggle:hover { color: var(--text); }

/* A top-level entry in the mobile menu that opens a page instead of a group.
   It matches .mobile-group-toggle on purpose: an unclassed <a> in here falls
   through to a:not([class]) and comes out gold and misaligned. */
.mobile-link {
  display: block; padding: 0; font-size: 15px; font-weight: 500;
  color: var(--muted); transition: color .18s;
}
.mobile-link:hover { color: var(--text); }
.mobile-group.open > .mobile-group-toggle { color: var(--text); }
.mobile-group-toggle .nav-dd-caret { transition: transform .2s; }
.mobile-group.open > .mobile-group-toggle .nav-dd-caret { transform: rotate(180deg); }

/* Collapsed by default. grid-template-rows 0fr -> 1fr animates to the content's
   natural height, which plain max-height cannot do without a magic number.
   It requires exactly ONE grid child, hence .mobile-group-inner: extra children
   would land in implicit auto-sized rows and refuse to collapse. */
.mobile-group-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .22s ease;
}
.mobile-group.open > .mobile-group-body { grid-template-rows: 1fr; }
.mobile-group-inner { overflow: hidden; min-height: 0; }
.mobile-group-inner > a,
.mobile-group-inner > div > a {
  display: block;
  padding: 7px 0 7px 14px;
  font-size: 14px;
  border-left: 2px solid var(--border-soft);
}
.mobile-group-inner > a:hover,
.mobile-group-inner > div > a:hover { color: var(--text); border-left-color: var(--yellow); }
/* Spacing lives inside the animating box, so the collapsed state is truly
   zero-height rather than leaving a sliver of padding behind. */
.mobile-group.open > .mobile-group-body > .mobile-group-inner { padding-top: 8px; }

.mobile-menu a.nav-active { color: var(--yellow); }

/* ── hamburger: morph to a close icon while the menu is open ─────────────── */

.hamburger span { transform-origin: center; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  /* Desktop dropdowns must not linger in the mobile layout, where the same
     links are reachable through the collapsible groups instead. */
  .nav-dd-menu { display: none !important; }
}

/* ── Nav: Minecraft plan + credit pack dropdown items ─────────────────────── */

/* The credit glyph inside a nav menu item. The plan menus reuse
   .nav-dd-item-* wholesale, so only the pieces those menus lack are new. */
.nav-dd-cr { flex-shrink: 0; margin-right: 4px; color: var(--yellow); }
.nav-dd-item-name .nav-dd-cr { vertical-align: -1px; }

/* The free tier has no price to show, and rendering "0" reads as broken. */
.nav-dd-item-free { color: var(--green); }

/* Credit amounts are the headline in the shop menu, so its name line carries
   the glyph inline. Scoped to that menu: unscoped, it overrode the base
   .nav-dd-item-name and squashed the "Popular" tag against the plan name in
   the VPS and Minecraft menus. */
.nav-dd-menu-credits .nav-dd-item-name { gap: 3px; }

/* With four triggers the nav is wider; the Shop menu is third of four and its
   centred panel can reach past the viewport on a narrow desktop. Nudging it
   toward the right keeps it on screen without the full right-anchor the
   Resources menu uses. */
@media (max-width: 1180px) {
  .nav-links > .nav-dd:nth-last-child(2) > .nav-dd-menu {
    left: auto;
    right: 0;
    transform: none;
  }
  .nav-links > .nav-dd:nth-last-child(2) > .nav-dd-menu::before { left: auto; right: 28px; transform: none; }
}

/* The desktop nav used to hand over to the hamburger at 900px. With four
   triggers plus the action buttons it needs roughly 980px of the container's
   1112px, so between 900 and ~1080 it was overflowing its own bar. Switching
   earlier is the fix; the mobile menu already carries every link. */
@media (max-width: 1080px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; margin-left: auto; }
}

/* ── Nav polish: hover affordance + roomier menus ─────────────────────────── */

/* Triggers get a hit area and a hover surface rather than being bare text.
   The negative margin keeps the visual spacing between items unchanged while
   giving each one a real, clickable pill. */
.nav-links > li > .nav-dd-toggle,
.nav-links > li > a:not(.nav-dd-toggle) {
  padding: 7px 11px;
  margin: -7px -11px;
  border-radius: 9px;
  transition: color .18s ease, background .18s ease;
}
.nav-links > li > .nav-dd-toggle:hover,
.nav-links > li > a:not(.nav-dd-toggle):hover,
.nav-dd.open > .nav-dd-toggle {
  background: rgba(255,255,255,.055);
  color: var(--text);
}
.nav-links > li > .nav-dd-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--acc-line);
}

/* Tighten the gap now that each item carries its own padding, so the row does
   not read as over-spaced. */
.nav-links { gap: 18px; align-items: center; }

/* The plan menus carry three lines of content per row; 320px crowded the
   specs onto two lines at some tier names. */
.nav-dd-menu { width: 340px; }
.nav-dd-menu-simple { width: 268px; }

/* Hovering a menu row should read as a target, matching the trigger pills. */
.nav-dd-item { transition: background .15s ease; }
.nav-dd-item:hover,
.nav-dd-item:focus-visible { background: var(--bg-3); outline: none; }
.nav-dd-item:focus-visible { box-shadow: inset 0 0 0 1px var(--acc); }

/* A gap between the trigger and its panel breaks the hover chain on the way
   down. This bridges it invisibly so the menu does not close mid-move. */
.nav-dd-menu::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -14px;
  height: 14px;
}

/* ── Custom VPS configurator (/vps) ───────────────────────────────────────
   The Custom card sits in the same auto-fit grid as the named plans and opens
   this panel underneath instead of the confirm modal. */
.vps-card-custom { border-color: rgba(245,197,24,.35); }
.vps-card-price-custom strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--yellow);
}

.vps-custom-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
  padding: 24px;
  background: var(--bg);
  border: 1.5px solid var(--yellow);
  border-radius: 16px;
}
.vps-custom-head { display: flex; flex-direction: column; gap: 4px; }
.vps-custom-title { font-size: 17px; font-weight: 800; margin: 0; color: var(--text); }
.vps-custom-sub   { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }

.vps-custom-group { display: flex; flex-direction: column; gap: 10px; }
.vps-custom-group-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.vps-custom-slider { display: flex; flex-direction: column; gap: 10px; }

.vps-slider-head { display: flex; align-items: center; gap: 8px; }
.vps-slider-head svg { color: var(--yellow); flex-shrink: 0; }
.vps-slider-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.vps-slider-input {
  --fill: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.vps-slider-input:focus { outline: none; }

/* The filled part of the track is a hard-stop gradient driven by --fill, which
   the script rewrites on every input event so it keeps up with a drag. Chrome
   and Firefox need the track declared separately -- they cannot be combined
   into one rule, an unknown pseudo-element drops the whole selector. */
.vps-slider-input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right,
    var(--yellow) 0 var(--fill), var(--border) var(--fill) 100%);
}
.vps-slider-input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right,
    var(--yellow) 0 var(--fill), var(--border) var(--fill) 100%);
}

.vps-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px; /* centres an 18px thumb on the 6px track */
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--bg);
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  transition: transform .12s, box-shadow .12s;
}
.vps-slider-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--bg);
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  transition: transform .12s, box-shadow .12s;
}
.vps-slider-input:hover::-webkit-slider-thumb,
.vps-slider-input:active::-webkit-slider-thumb { transform: scale(1.12); }
.vps-slider-input:hover::-moz-range-thumb,
.vps-slider-input:active::-moz-range-thumb { transform: scale(1.12); }
.vps-slider-input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(245,197,24,.32);
}
.vps-slider-input:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(245,197,24,.32);
}

/* Labels are absolutely placed at the thumb's real stops -- see vps.js. */
.vps-slider-ticks { position: relative; height: 15px; }
.vps-slider-tick {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color .15s;
}
.vps-slider-tick.is-active  { color: var(--yellow); }
.vps-slider-tick.is-blocked { color: var(--border); text-decoration: line-through; }

@media (prefers-reduced-motion: reduce) {
  .vps-slider-input::-webkit-slider-thumb,
  .vps-slider-input::-moz-range-thumb,
  .vps-slider-tick { transition: none; }
}

.vps-custom-note {
  margin: 0;
  font-size: 13px;
  color: var(--orange, #fb923c);
  line-height: 1.5;
}
.vps-custom-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.vps-custom-price {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vps-custom-price strong { color: var(--yellow); font-size: 20px; font-weight: 800; }
.vps-custom-price svg { color: var(--yellow); }
#vps-custom-continue:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 600px) {
  .vps-custom-panel  { padding: 18px; }
  .vps-custom-footer { flex-direction: column; align-items: stretch; }
  #vps-custom-continue { width: 100%; }
}

/* Credit checkout popup (js/checkout.js): our own checkout around Stripe's
   Payment Element, plus PayPal/Venmo and paysafecard on one-time buys. */
html.pay-open { overflow: hidden; }
.pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pay-overlay[hidden] { display: none; }
.pay-modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-str);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  animation: pay-in .18s ease-out;
}
@keyframes pay-in { from { opacity: 0; transform: translateY(12px); } }
.pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.pay-title { margin: 0; font-size: 18px; font-weight: 800; }
.pay-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.pay-summary-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  color: var(--yellow);
  background: rgba(245,197,24,.12);
}
.pay-summary-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pay-item { font-size: 15px; }
.pay-term { font-size: 12.5px; color: var(--text-2); }
.pay-amount { font-size: 17px; font-weight: 800; white-space: nowrap; }
.pay-was { color: var(--muted); font-weight: 600; font-size: 14px; margin-right: 4px; }
.pay-code { margin: -6px 0 16px; }
.pay-code[hidden], .pay-code-box[hidden], .pay-code-on[hidden], .pay-code-msg[hidden], .pay-code-toggle[hidden] { display: none; }
.pay-code-toggle { background: none; border: 0; padding: 4px 0; color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pay-code-toggle:hover { color: var(--yellow); }
.pay-code-box { display: flex; gap: 8px; }
.pay-code-input { flex: 1; min-width: 0; background: var(--bg-2); border: 1.5px solid var(--border-str); border-radius: 9px; padding: 10px 12px; color: inherit; font: inherit; font-size: 14.5px; text-transform: uppercase; letter-spacing: .04em; }
.pay-code-input:focus { outline: none; border-color: var(--yellow); }
.pay-code-apply { flex: none; padding: 0 16px; }
.pay-code-on { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.3); border-radius: 9px; padding: 9px 12px; }
.pay-code-tag { color: var(--green); font-weight: 700; font-size: 14px; }
.pay-code-remove { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.pay-code-remove:hover { color: var(--text); }
.pay-code-msg { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.pay-code-msg.is-error { color: var(--red); }
.pay-form[hidden] { display: none; }
.pay-element { min-height: 120px; }
.pay-submit { margin-top: 18px; height: 48px; font-size: 15px; }
.pay-submit:disabled { opacity: .6; cursor: default; }
.pay-fine { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.pay-fine a { color: var(--text-2); text-decoration: underline; }
.pay-banner {
  margin-bottom: 24px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #4ade80;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
}
.pay-banner.is-error { color: var(--red); background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.25); }
.pay-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}
.pay-close:hover { color: var(--text); }
.pay-body { padding: 18px 22px 22px; }
.pay-body[hidden], .pay-alt[hidden], .pay-note[hidden], .pay-status[hidden],
.pay-done[hidden], .pay-card-redirect[hidden] { display: none; }
.pay-alt { display: flex; flex-direction: column; gap: 10px; }
.pay-alt-paypal:empty, .pay-alt-paysafecard:empty { display: none; }
.pay-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 16px;
  font-size: 12px;
  color: var(--muted);
}
.pay-or::before, .pay-or::after { content: ""; flex: 1; height: 1px; background: var(--border-str); }
.pay-note { margin: 0 0 14px; font-size: 13px; color: var(--text-2); }
.pay-status { margin: 12px 0 0; font-size: 14px; color: var(--text-2); text-align: center; }
.pay-status.is-error { color: var(--red); }
.pay-card-redirect { margin-top: 4px; }
.pay-done { padding: 36px 22px 30px; text-align: center; }
.pay-done svg { color: var(--green); }
.pay-done h3 { margin: 10px 0 6px; font-size: 20px; }
.pay-done p { margin: 0 0 20px; color: var(--text-2); font-size: 14px; }
@media (max-width: 560px) {
  .pay-overlay { padding: 0; align-items: stretch; }
  .pay-modal { border-radius: 0; border: none; min-height: 100%; }
}

/* ── expanded plan catalogue ────────────────────────────────────────────────
 *
 * Seven tiers were added between the original five (Stone/Copper below
 * Diamond, Iron/Gold between Coal and Emerald, Lapis/Redstone/Obsidian above
 * it). Each needs the same accent treatment the first five got: a top rule on
 * the card, the name and price colour on the pricing table, and the radial
 * glow behind the icon.
 *
 * The accents are picked to stay apart from each other on a dark background
 * rather than to match the ore exactly - real obsidian is near-black and real
 * iron is near-white, and neither reads as a distinct tier at card size.
 */
.tier-stone     { border-top: 2px solid #a8a29e; }
.tier-copper    { border-top: 2px solid #e08b55; }
.tier-iron      { border-top: 2px solid #dcdcdc; }
.tier-gold      { border-top: 2px solid #f7cf3f; }
.tier-lapis     { border-top: 2px solid #5b7fd6; }
.tier-redstone  { border-top: 2px solid #ef4444; }
.tier-obsidian  { border-top: 2px solid #7c4ddb; }

.tier-stone     .pc-name, .tier-stone     .pc-amount { color: #a8a29e; }
.tier-copper    .pc-name, .tier-copper    .pc-amount { color: #e08b55; }
.tier-iron      .pc-name, .tier-iron      .pc-amount { color: #dcdcdc; }
.tier-gold      .pc-name, .tier-gold      .pc-amount { color: #f7cf3f; }
.tier-lapis     .pc-name, .tier-lapis     .pc-amount { color: #5b7fd6; }
.tier-redstone  .pc-name, .tier-redstone  .pc-amount { color: #ef4444; }
.tier-obsidian  .pc-name, .tier-obsidian  .pc-amount { color: #7c4ddb; }

.sc-tier-card.tier-stone    { border-top: 2px solid #a8a29e; }
.sc-tier-card.tier-copper   { border-top: 2px solid #e08b55; }
.sc-tier-card.tier-iron     { border-top: 2px solid #dcdcdc; }
.sc-tier-card.tier-gold     { border-top: 2px solid #f7cf3f; }
.sc-tier-card.tier-lapis    { border-top: 2px solid #5b7fd6; }
.sc-tier-card.tier-redstone { border-top: 2px solid #ef4444; }
.sc-tier-card.tier-obsidian { border-top: 2px solid #7c4ddb; }

.tier-stone    .sc-tier-card-gem-wrap { background: radial-gradient(circle, rgba(168,162,158,.26), transparent 73%); }
.tier-copper   .sc-tier-card-gem-wrap { background: radial-gradient(circle, rgba(224,139,85,.24),  transparent 73%); }
.tier-iron     .sc-tier-card-gem-wrap { background: radial-gradient(circle, rgba(220,220,220,.20), transparent 73%); }
.tier-gold     .sc-tier-card-gem-wrap { background: radial-gradient(circle, rgba(247,207,63,.22),  transparent 73%); }
.tier-lapis    .sc-tier-card-gem-wrap { background: radial-gradient(circle, rgba(91,127,214,.26),  transparent 73%); }
.tier-redstone .sc-tier-card-gem-wrap { background: radial-gradient(circle, rgba(239,68,68,.22),   transparent 73%); }
.tier-obsidian .sc-tier-card-gem-wrap { background: radial-gradient(circle, rgba(124,77,219,.30),  transparent 73%); }

/* Pixel-art icons: keep the pixels. The browser's default smoothing turns a
   16x16 source upscaled to 44px into mush. */
.sc-tier-card-gem { image-rendering: pixelated; }

/* /plans#lapis lands here from the nav. The card is rendered after the
   browser's own anchor jump has already happened, so script.js scrolls to it
   and adds this; it fades out on its own rather than leaving the page in a
   state the customer has to click away. */
.sc-tier-card-targeted { animation: sc-card-target 2.4s ease-out backwards; }
@keyframes sc-card-target {
  0%   { box-shadow: 0 0 0 3px var(--accent, #d2e314); }
  70%  { box-shadow: 0 0 0 3px var(--accent, #d2e314); }
  100% { box-shadow: 0 0 0 3px transparent; }
}

/* Everything shared by every plan, said once under the grid instead of on all
   twelve cards. */
.sc-included {
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}
.sc-included-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 10px;
}
.sc-included-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.sc-included-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  opacity: .85;
}
.sc-included-item svg { color: var(--accent, #d2e314); flex: none; }

/* The plan dropdown holds a dozen tiers plus External, which is taller than
   the viewport on a laptop. Scroll the list rather than letting it run off the
   bottom of the screen where the cheapest plans would be unreachable. */
.nav-dd-menu-plans {
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
}


/* ── /vps/manage dashboard (vps-manage.js) ────────────────────────────────── */

.vpsd-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.vpsd-hello { font-family: Archivo, Inter, sans-serif; font-size: 2.1rem; font-weight: 800; margin: 0; }
.vpsd-hello span { font-weight: 600; color: var(--text-2); }
.vpsd-crumb { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.vpsd-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.vpsd-links a {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-2); font-size: .92rem; font-weight: 500; text-decoration: none;
}
.vpsd-links a:hover { color: var(--text); }
.vpsd-credits {
  padding: 8px 13px; border-radius: 10px; color: var(--yellow) !important; font-weight: 700 !important;
  background: var(--acc-soft); border: 1px solid var(--acc-line);
}

/* top row */
.vpsd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.vpsd-card, .vpsd-panel {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px;
  min-width: 0;
}
.vpsd-card-head, .vpsd-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px;
}
.vpsd-card-head h2, .vpsd-panel-head h2 { font-family: Archivo, Inter, sans-serif; font-size: 1.12rem; font-weight: 700; margin: 0; }
.vpsd-sub { color: var(--muted); font-size: .8rem; }
.vpsd-email {
  color: var(--text-2); font-size: .82rem; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vpsd-count {
  min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-weight: 700; font-size: .9rem; color: var(--yellow); background: var(--acc-soft);
}

.vpsd-rows { display: flex; flex-direction: column; gap: 11px; }
.vpsd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .88rem; }
.vpsd-row > span { color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; }
.vpsd-row > span svg { color: var(--muted); }
.vpsd-row > b { font-weight: 600; text-align: right; }
.vpsd-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 7px; background: var(--bg-3); color: var(--text-2); text-decoration: none;
}
.vpsd-tag-ok  { color: var(--green); background: var(--green-soft); }
.vpsd-tag-off { color: var(--orange); background: rgba(251,146,60,.12); }
.vpsd-tag-off:hover { background: rgba(251,146,60,.2); }

.vpsd-none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 0 6px; color: var(--muted); }
.vpsd-none svg { color: var(--green); opacity: .7; }
.vpsd-none p { margin: 0; font-size: .88rem; }
.vpsd-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 180px; overflow-y: auto; }
.vpsd-note { display: flex; gap: 10px; font-size: .86rem; line-height: 1.45; }
.vpsd-note-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--blue); }
.vpsd-note-error .vpsd-note-dot { background: var(--red); }
.vpsd-note-staff .vpsd-note-dot { background: var(--yellow); }
.vpsd-note-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vpsd-note-body a { color: var(--text); text-decoration: none; }
.vpsd-note-body a:hover { color: var(--yellow); }
.vpsd-note-body small { color: var(--muted); font-size: .74rem; }

/* traffic */
.vpsd-ttable { width: 100%; border-collapse: collapse; font-size: .84rem; margin-bottom: 12px; }
.vpsd-ttable th, .vpsd-ttable td { padding: 5px 4px; text-align: right; white-space: nowrap; }
.vpsd-ttable thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.vpsd-ttable thead th i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.vpsd-ttable tbody th { text-align: left; color: var(--text-2); font-weight: 500; }
.vpsd-ttable td { font-weight: 600; font-variant-numeric: tabular-nums; }
.vpsd-ttable td:last-child { color: var(--text); }
.vpsd-tchart { position: relative; height: 70px; }
.vpsd-tchart svg { width: 100%; height: 100%; display: block; }
.vpsd-bar:hover rect:not([fill=transparent]) { opacity: .8; }

/* tooltips + crosshair, shared by every chart */
.vpsc-tip {
  position: absolute; top: 4px; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; gap: 3px; white-space: nowrap;
  padding: 8px 10px; border-radius: 9px; font-size: .76rem;
  background: var(--bg-2); border: 1px solid var(--border-str); box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.vpsc-tip b { font-weight: 600; color: var(--text-2); }
.vpsc-tip span { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.vpsc-tip i { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.vpsc-tip em { font-style: normal; font-weight: 700; color: var(--text); margin-left: auto; padding-left: 10px; }
.vpsc-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border-str); pointer-events: none; }

/* summary tiles */
.vpsd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 34px; }
.vpsd-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
}
.vpsd-tile span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.vpsd-tile b { display: flex; align-items: center; gap: 6px; font-family: Archivo, Inter, sans-serif; font-size: 1.6rem; font-weight: 800; }
.vpsd-tile b svg { color: var(--yellow); width: 18px; height: 18px; }
.vpsd-tile small { color: var(--text-2); font-size: .8rem; }

/* server list */
.vpsd-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.vpsd-tabs { display: inline-flex; border: 1px solid var(--border-str); border-radius: 12px; overflow: hidden; }
.vpsd-tab {
  padding: 11px 18px; background: transparent; color: var(--text-2); border: 0; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600;
}
.vpsd-tab + .vpsd-tab { border-left: 1px solid var(--border-str); }
.vpsd-tab span { margin-left: 4px; color: var(--muted); font-weight: 500; }
.vpsd-tab:hover { color: var(--text); background: var(--bg-3); }
.vpsd-tab.is-on { background: var(--yellow); color: #111; }
.vpsd-tab.is-on span { color: rgba(0,0,0,.55); }
.vpsd-tools { display: flex; align-items: center; gap: 12px; }
.vpsd-search {
  display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 11px; color: var(--muted);
}
.vpsd-search:focus-within { border-color: var(--acc-line); }
.vpsd-search input { background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: .88rem; width: 180px; }

.vpsd-list { display: flex; flex-direction: column; gap: 14px; }
.vpsd-thead, .vpsd-srv { display: grid; grid-template-columns: minmax(0, 1fr) 170px 160px 300px; gap: 20px; align-items: center; }
.vpsd-thead { padding: 0 24px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.vpsd-thead span:nth-child(2), .vpsd-thead span:nth-child(3) { text-align: center; }
.vpsd-srv {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px;
  transition: border-color .15s ease;
}
.vpsd-srv:hover { border-color: var(--border-str); }
.vpsd-srv-main { min-width: 0; }
.vpsd-srv-name {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  font-family: Archivo, Inter, sans-serif; font-size: 1.18rem; font-weight: 700; color: var(--text); text-decoration: none;
}
.vpsd-srv-name:hover { color: var(--yellow); }
.vpsd-os { display: inline-flex; color: #3ea6f2; flex-shrink: 0; }
.vpsd-os-lg svg { width: 34px; height: 34px; }
.vpsd-srv-meta { margin: 6px 0 0; color: var(--text-2); font-size: .84rem; line-height: 1.5; }
.vpsd-srv-meta svg { vertical-align: -2px; margin-right: 4px; }
.vpsd-srv-meta svg { color: var(--muted); }
.vpsd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.vpsd-chip {
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 10px; border-radius: 7px; background: var(--bg-3); color: var(--text-2);
}
.vpsd-chip-arch { background: transparent; color: var(--orange); border: 1px solid rgba(251,146,60,.5); }
.vpsd-srv-status { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vpsd-srv-status .vpsm-pill { padding: 8px 16px; font-size: .72rem; border-radius: 8px; }
.vpsd-uses { width: 100%; display: flex; flex-direction: column; gap: 5px; }
.vpsd-use { display: grid; grid-template-columns: 30px 1fr 48px; align-items: center; gap: 7px; font-size: .7rem; color: var(--muted); }
.vpsd-use b { color: var(--text-2); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.vpsd-use-track { height: 5px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.vpsd-use-track i { display: block; height: 100%; border-radius: 3px; background: var(--yellow); }
.vpsd-srv-date { text-align: center; color: var(--text-2); font-size: .9rem; }
.vpsd-srv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.vpsd-manage { min-width: 120px; justify-content: center; }
.vpsd-srv-ips { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.vpsd-ipchip {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  padding: 3px 3px 3px 10px; border-radius: 9px; background: var(--bg-3);
}
.vpsd-ipchip code { font-size: .8rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpsd-ipchip .vpsm-copy { width: 26px; height: 26px; border: 0; background: transparent; }
.vpsd-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0;
  background: transparent; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer;
}
.vpsd-mark:hover { color: var(--text); background: var(--bg-3); }
.vpsd-mark.is-on { color: var(--yellow); }
.vpsd-mark.is-on svg { fill: currentColor; }
.vpsd-nomatch { padding: 34px; text-align: center; color: var(--muted); background: var(--bg-card); border: 1px dashed var(--border-str); border-radius: 16px; }

/* single server */
.vpsd-back { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); text-decoration: none; font-size: .9rem; margin-bottom: 16px; }
.vpsd-back:hover { color: var(--yellow); }
.vpsd-dhead {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; margin-bottom: 18px;
}
.vpsd-dhead-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.vpsd-dname {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: Archivo, Inter, sans-serif; font-size: 1.6rem; font-weight: 800; margin: 0;
}
.vpsd-dhead .vpsd-mark { align-self: flex-start; }
.vpsm-btn-go:not(:disabled) { color: var(--green); border-color: rgba(52,211,153,.35); }
.vpsm-btn-kill:not(:disabled) { color: var(--red); border-color: rgba(248,113,113,.3); }
.vpsm-btn-kill:hover:not(:disabled) { border-color: var(--red) !important; }
.vpsd-notice, .vpsd-dhead + .vpsm-notice { margin-bottom: 18px; }
.vpsd-retry { margin-top: 12px; }

.vpsd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.vpsd-col-main, .vpsd-col-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.vpsd-live { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.vpsd-live-off {
  display: block; padding: 18px 22px; color: var(--muted); font-size: .9rem;
  background: var(--bg-card); border: 1px dashed var(--border-str); border-radius: 14px;
}
.vpsd-live-tile {
  display: flex; flex-direction: column; gap: 6px; padding: 15px 18px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
}
.vpsd-live-tile span { display: flex; align-items: center; gap: 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.vpsd-live-tile b { font-family: Archivo, Inter, sans-serif; font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.vpsd-live-tile small { color: var(--text-2); font-size: .78rem; }
.vpsd-key { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }

.vpsd-ranges { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.vpsd-range {
  padding: 6px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2);
  font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.vpsd-range:hover { color: var(--text); }
.vpsd-range.is-on { background: var(--bg-3); color: var(--yellow); }
.vpsd-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }
.vpsd-chart-empty { grid-column: 1 / -1; padding: 40px 10px; text-align: center; color: var(--muted); font-size: .9rem; }
.vpsd-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.vpsd-chart-head h3 { margin: 0; font-size: .9rem; font-weight: 600; color: var(--text-2); }
.vpsd-legend { display: flex; gap: 12px; font-size: .76rem; color: var(--text-2); }
.vpsd-legend span { display: inline-flex; align-items: center; gap: 5px; }
.vpsd-legend i { width: 8px; height: 8px; border-radius: 2px; }
.vpsd-plot { position: relative; height: 140px; cursor: crosshair; }
.vpsd-plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.vpsd-grid-l { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.vpsd-base-l { stroke: var(--border-str); stroke-width: 1; }
.vpsd-ylab {
  position: absolute; left: 0; z-index: 1; font-size: .68rem; color: var(--text-2); pointer-events: none;
  padding: 0 5px; border-radius: 4px; background: rgba(22,25,35,.85); transform: translateY(-50%);
}
.vpsd-ylab-top { transform: none; }
.vpsd-ylab-top { top: 0; }
.vpsd-ylab-mid { top: 50%; }
.vpsd-xlab { display: flex; justify-content: space-between; margin-top: 5px; font-size: .7rem; color: var(--muted); }

.vpsd-conn { display: flex; flex-direction: column; gap: 5px; padding: 11px 0; border-top: 1px solid var(--border-soft); }
.vpsd-conn:first-of-type { border-top: 0; padding-top: 0; }
.vpsd-conn > span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.vpsd-conn > div { display: flex; align-items: center; gap: 8px; }
.vpsd-conn code {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .88rem; color: var(--text); background: var(--bg-3); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px;
}
.vpsd-conn small { color: var(--muted); font-size: .74rem; line-height: 1.4; }
.vpsd-conn-primary > span { color: var(--yellow); }
.vpsd-conn-primary code { font-weight: 700; }
.vpsd-panel-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.vpsd-panel-actions .vpsm-btn { flex: 1; justify-content: center; }
.vpsd-panel-actions .vpsm-btn-up { margin-left: 0; }
.vpsd-price { display: inline-flex; align-items: center; gap: 4px; color: var(--yellow); }
.vpsd-muted { color: var(--muted); font-size: .88rem; margin: 0; }
.vpsd-acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vpsd-acts li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: .86rem; border-top: 1px solid var(--border-soft); }
.vpsd-acts li:first-child { border-top: 0; padding-top: 0; }
.vpsd-acts li.is-bad span { color: var(--red); }
.vpsd-acts em { font-style: normal; color: var(--yellow); font-size: .76rem; }
.vpsd-acts time { color: var(--muted); font-size: .8rem; white-space: nowrap; }

@media (max-width: 1100px) {
  .vpsd-cards { grid-template-columns: 1fr 1fr; }
  .vpsd-traffic { grid-column: 1 / -1; }
  .vpsd-thead { display: none; }
  .vpsd-srv { grid-template-columns: minmax(0, 1fr) auto; }
  .vpsd-srv-status { align-items: flex-end; grid-column: 2; grid-row: 1; }
  .vpsd-srv-date { display: none; }
  .vpsd-srv-side { grid-column: 1 / -1; flex-direction: row-reverse; justify-content: space-between; align-items: center; }
  .vpsd-grid { grid-template-columns: 1fr; }
  .vpsd-live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .vpsd-hello { font-size: 1.6rem; }
  .vpsd-cards, .vpsd-charts { grid-template-columns: 1fr; }
  .vpsd-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .vpsd-toolbar, .vpsd-tools { flex-direction: column; align-items: stretch; }
  .vpsd-tabs { display: flex; }
  .vpsd-tab { flex: 1; padding: 10px 8px; font-size: .84rem; }
  .vpsd-search input { width: 100%; }
  .vpsd-srv { grid-template-columns: 1fr; padding: 18px; }
  .vpsd-srv-status { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; }
  .vpsd-srv-side { flex-direction: column-reverse; align-items: stretch; }
  .vpsd-srv-ips { justify-content: space-between; }
  .vpsd-dhead { padding: 18px; }
  .vpsd-dname { font-size: 1.3rem; }
  .vpsd-dhead .vpsm-actions { width: 100%; flex-direction: row; }
  .vpsd-dhead .vpsm-btn { flex: 1 1 45%; justify-content: center; }
}

/* External sits above the plan grid as one wide row: glyph + name on the
   left, the six specs flowing in the middle, the CTA on the right. */
.sc-external-strip {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.sc-external-strip .sc-tier-card-gem-wrap { margin: 0; flex-shrink: 0; width: 56px; height: 56px; }
.sc-external-strip .sc-tier-card-gem { width: 36px; height: 36px; }
.sc-external-strip .sc-tier-card-name { white-space: nowrap; }
.sc-external-strip .sc-tier-card-price { white-space: nowrap; }
.sc-external-title { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.sc-external-strip .sc-tier-card-specs {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0 0 0 20px;
  border-top: 0;
  border-left: 1px solid var(--border);
}
.sc-external-strip .sc-tier-card-cta { width: auto; margin: 0; padding: 10px 18px; flex-shrink: 0; white-space: nowrap; }
@media (max-width: 900px) {
  .sc-external-strip { flex-wrap: wrap; }
  .sc-external-strip .sc-tier-card-specs { flex-basis: 100%; order: 3; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .sc-external-strip .sc-tier-card-cta { margin-left: auto; }
}
@media (max-width: 600px) {
  .sc-external-strip { padding: 18px 16px; gap: 14px; }
  .sc-external-strip .sc-tier-card-cta { order: 4; flex-basis: 100%; margin: 0; }
}
