:root {
  --bg: #080a07;
  --panel: rgba(24, 26, 30, .78);
  --panel-strong: rgba(32, 35, 41, .9);
  --text: #f3f7ed;
  --muted: #aeb8a5;
  --line: rgba(255,255,255,.12);
  --accent: #d7dde7;
  --accent-2: #8891a0;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(215,221,231,.18), transparent 28rem),
    linear-gradient(135deg, rgba(255,255,255,.04) 25%, transparent 25%) 0 0/36px 36px,
    linear-gradient(180deg, #1a1c21 0%, var(--bg) 58%, #0b0d10 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0/100% 4px;
  mix-blend-mode: overlay;
  opacity: .28;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.shell { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17,19,23,.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.logo-box {
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  aspect-ratio: 1 / 1;
  padding: 6px;
  border: 1px dashed rgba(215,221,231,.65);
  border-radius: 12px;
  color: var(--accent);
  font-size: .72rem;
  line-height: 1;
  text-align: center;
}
.nav-links { display: flex; align-items: center; gap: 12px; }
.nav-links > a:not(.btn), .link-button { color: var(--muted); background: none; border: 0; cursor: pointer; }
.nav-links > a:hover, .link-button:hover { color: var(--text); }
.nav-toggle { display: none; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 8px 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px;
  border: 1px solid rgba(215,221,231,.45);
  border-radius: 999px;
  color: #11160d;
  background: linear-gradient(135deg, var(--accent), #aeb7c5);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(110,161,59,.22);
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 9px 13px; font-size: .9rem; }
.btn-discord { background: linear-gradient(135deg, #94a3ff, #5865f2); color: #fff; border-color: rgba(255,255,255,.28); }
.ghost { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line); box-shadow: none; }
.full { width: 100%; }
.danger { background: rgba(255,107,107,.14); color: #ffdada; border-color: rgba(255,107,107,.45); box-shadow: none; }
.admin-chip { border: 1px solid var(--line); padding: 7px 11px; border-radius: 999px; }
.hero { min-height: 68vh; display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; padding: 72px 0 40px; }
.hero h1, .page-head h1 { margin: 0; font-size: clamp(3rem, 8vw, 6.8rem); line-height: .86; letter-spacing: -.08em; text-transform: uppercase; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); line-height: 1.7; max-width: 780px; }
.eyebrow { color: var(--accent); letter-spacing: .22em; font-weight: 800; font-size: .78rem; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.glass { border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.hero-panel { min-height: 360px; border-radius: 34px; padding: 34px; display: flex; flex-direction: column; justify-content: end; position: relative; overflow: hidden; }
.hero-panel::before { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(215,221,231,.2); border-radius: 28px; }
.hero-panel h2 { font-size: 2.3rem; margin: 0 0 8px; position: relative; }
.hero-panel p { color: var(--muted); line-height: 1.7; position: relative; }
.status-dot { width: 13px; height: 13px; border-radius: 99px; background: var(--accent); display: inline-block; box-shadow: 0 0 32px var(--accent); position: relative; z-index: 1; }
.pulse { animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { transform: scale(1.45); opacity: .55; } }
.section { padding: 48px 0; }
.section-title { margin-bottom: 22px; }
.section-title h2, .split h2, .form-card h2 { font-size: clamp(2rem, 4vw, 3.6rem); margin: 0; letter-spacing: -.06em; }
.server-grid, .pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.server-grid.large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.server-card, .price-card, .form-card { border-radius: 26px; padding: 24px; }
.server-topline { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.server-card h3, .price-card h2 { margin: 0; font-size: 1.4rem; }
.badge { padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.badge.online { background: rgba(215,221,231,.14); color: var(--accent); }
.badge.offline { background: rgba(255,107,107,.13); color: #ffa0a0; }
dl { display: grid; gap: 10px; margin: 22px 0; }
dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
dt { color: var(--muted); } dd { margin: 0; text-align: right; font-weight: 700; }
.card-link { color: var(--accent); font-weight: 800; }
.split { display: flex; justify-content: space-between; gap: 24px; align-items: center; border-top: 1px solid var(--line); }
.muted { color: var(--muted); line-height: 1.7; }
.page-head { padding: 70px 0 20px; }
.centered { text-align: center; display: grid; justify-items: center; }
.narrow { width: min(560px, calc(100% - 32px)); }
.price { font-size: 2rem; font-weight: 900; color: var(--accent); }
ul { padding-left: 20px; color: var(--muted); line-height: 1.9; }
.form-card { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px;
  background: rgba(0,0,0,.25); color: var(--text); outline: none;
}
textarea { min-height: 110px; resize: vertical; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-list { display: grid; gap: 14px; }
.row-form { grid-template-columns: 1.1fr 1fr .65fr 1.2fr auto auto auto; align-items: end; }
.plan-editor { display: grid; gap: 14px; }
.plan-edit { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 12px; background: rgba(255,255,255,.035); }
.flash-wrap { padding-top: 12px; }
.flash { padding: 10px 14px; border-radius: 14px; margin-bottom: 8px; }
.flash.success { background: rgba(215,221,231,.13); color: var(--accent); }
.flash.error { background: rgba(255,107,107,.13); color: #ffbaba; }
.footer { display: flex; justify-content: space-between; gap: 18px; padding: 38px 0; color: var(--muted); border-top: 1px solid var(--line); margin-top: 48px; }
code { background: rgba(255,255,255,.08); padding: 3px 6px; border-radius: 7px; }
@media (max-width: 900px) {
  .hero, .admin-grid { grid-template-columns: 1fr; }
  .server-grid, .server-grid.large, .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 12px; right: 12px; top: 72px; padding: 16px; border-radius: 18px; background: rgba(17,19,23,.95); border: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .server-grid, .server-grid.large, .pricing-grid, .row-form { grid-template-columns: 1fr; }
  .hero { padding-top: 50px; }
  .hero-panel { min-height: 260px; }
  .split, .footer { flex-direction: column; align-items: flex-start; }
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.metric {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.035);
}

.metric span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.metric strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  word-break: break-word;
}

@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.server-metrics-list {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
}

.server-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.server-metric-row span {
  color: var(--muted);
  font-size: 1rem;
}

.server-metric-row strong {
  color: var(--text);
  font-size: 1.05rem;
  text-align: right;
  word-break: break-word;
}

.mod-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.mod-list span {
  font-size: 0.75rem;
  border: 1px solid rgba(215, 221, 231, 0.25);
  background: rgba(215, 221, 231, 0.08);
  color: var(--text);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.tiny {
  font-size: 0.8rem;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .server-metric-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .server-metric-row strong {
    text-align: left;
  }
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
  position: relative;
  z-index: 2;
}

.page-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9;
  margin: 0;
  text-transform: uppercase;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 760px;
  margin: 1rem auto 0;
  font-size: 1.1rem;
}

.server-grid {
  display: grid;
  gap: 1.5rem;
}

.server-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(17, 19, 23, 0.86);
  backdrop-filter: blur(18px);
  border-radius: 32px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.server-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.server-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.online {
  color: #d7dde7;
  background: rgba(215, 221, 231, 0.13);
}

.status-pill.offline {
  color: #ff9a9a;
  background: rgba(255, 70, 70, 0.16);
}

.server-metrics-list {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
}

.server-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.server-metric-row span {
  color: var(--muted);
  font-size: 1.05rem;
}

.server-metric-row strong {
  color: var(--text);
  font-size: 1.1rem;
  text-align: right;
  word-break: break-word;
}

.mod-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.mod-list span {
  font-size: 0.75rem;
  border: 1px solid rgba(215, 221, 231, 0.25);
  background: rgba(215, 221, 231, 0.08);
  color: var(--text);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.tiny {
  font-size: 0.8rem;
  margin-top: 1rem;
}

@media (max-width: 700px) {
  .server-card-header {
    flex-direction: column;
  }

  .server-metric-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .server-metric-row strong {
    text-align: left;
  }
}

.servers-accordion {
  display: grid;
  gap: 1rem;
}

.server-accordion {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 19, 23, 0.88);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.server-accordion summary {
  list-style: none;
}

.server-accordion summary::-webkit-details-marker {
  display: none;
}

.server-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.server-summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.summary-main {
  flex: 1;
  min-width: 0;
}

.summary-server-name-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.summary-server-name {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1;
}

.summary-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.summary-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 90px;
}

.summary-label {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

.summary-stat strong {
  font-size: 1rem;
  color: var(--text);
}

.summary-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

.summary-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(215, 221, 231, 0.2);
  background: rgba(215, 221, 231, 0.06);
  color: #d7dde7;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.server-accordion[open] .summary-arrow {
  transform: rotate(45deg);
}

.server-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

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

.detail-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 1rem;
}

.detail-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
}

.detail-box strong,
.server-error-box strong {
  display: block;
  color: var(--text);
  word-break: break-word;
}

.mods-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 1rem;
}

.mods-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mods-panel-header h3 {
  margin: 0;
  font-size: 1rem;
}

.mods-panel-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(215, 221, 231, 0.08);
  border: 1px solid rgba(215, 221, 231, 0.2);
  color: #d7dde7;
  font-weight: 800;
}

.mod-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mod-list span {
  font-size: 0.78rem;
  border: 1px solid rgba(215, 221, 231, 0.2);
  background: rgba(215, 221, 231, 0.08);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.server-error-box {
  border: 1px solid rgba(255, 120, 120, 0.15);
  background: rgba(255, 70, 70, 0.08);
  border-radius: 18px;
  padding: 1rem;
}

@media (max-width: 900px) {
  .server-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-stats {
    width: 100%;
    justify-content: space-between;
  }

  .summary-stat {
    align-items: flex-start;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .summary-stats {
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-toggle {
    width: 100%;
    justify-content: space-between;
  }
}
/* Premium store product + checkout flow */
.premium-store-head h1 { max-width: 1000px; }
.premium-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.premium-product-card {
  border-radius: 34px;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: rgba(18, 18, 12, .9);
  border-color: rgba(220, 145, 0, .25);
}
.premium-card-image-link { display: block; }
.premium-product-image {
  min-height: 350px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.premium-product-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.45));
  z-index: -1;
}
.premium-product-image.large { min-height: 520px; border-radius: 8px; overflow: hidden; }
.premium-image-border {
  width: calc(100% - 54px);
  height: calc(100% - 54px);
  min-height: 260px;
  border: 4px solid rgba(255,255,255,.92);
  border-radius: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  padding: 28px;
}
.premium-image-border h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.04em;
}
.premium-image-border p {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3.3rem);
  font-weight: 900;
}
.premium-device-icon {
  width: 120px;
  height: 80px;
  border: 12px solid white;
  border-radius: 10px;
  margin-top: 20px;
  position: relative;
}
.premium-device-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -34px;
  width: 150px;
  height: 12px;
  background: white;
}
.premium-product-body {
  display: grid;
  gap: 18px;
  text-align: center;
  padding: 34px 32px 38px;
  flex: 1;
}
.premium-product-body h3 {
  margin: 0;
  font-size: 1.6rem;
}
.premium-small-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin-right: 8px;
  background: #d88900;
  color: white;
}
.premium-product-price {
  color: #45f27a;
  font-size: 1.75rem;
  font-weight: 900;
  margin: 0;
}
.premium-product-copy { color: #b8c7d8; line-height: 1.5; margin: 0; }
.btn.amber {
  background: linear-gradient(135deg, #e39a00, #c77a00);
  color: white;
  border-color: rgba(255, 180, 43, .55);
  box-shadow: 0 14px 32px rgba(216, 137, 0, .2);
}
.checkout-page { padding: 48px 0; }
.checkout-back { color: var(--muted); display: inline-flex; margin-bottom: 16px; }
.product-detail-card { border-radius: 26px; padding: clamp(1.2rem, 3vw, 2.5rem); }
.product-detail-card > h1 { text-align: center; margin: 0 0 24px; font-size: clamp(2rem, 4vw, 3.4rem); }
.product-detail-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 36px; align-items: start; }
.product-detail-copy h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.product-detail-copy li { color: var(--text); font-weight: 700; }
.premium-long-copy { color: var(--text); line-height: 1.65; margin: 24px 0 36px; }
.checkout-wizard { display: grid; gap: 18px; }
.wizard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 10px; }
.wizard-step {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  justify-items: center;
  gap: 5px;
  cursor: pointer;
}
.wizard-step strong {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
}
.wizard-step.active strong { color: #111; background: #d88900; }
.wizard-step.active span { color: #d88900; font-weight: 800; }
.wizard-panel { display: none; gap: 14px; }
.wizard-panel.active { display: grid; }
.connection-row, .select-box, .eligibility-box, .confirm-row, .connection-field, .gift-option {
  border: 1px solid rgba(120, 149, 180, .35);
  background: rgba(30, 43, 61, .72);
  border-radius: 8px;
  padding: 16px 18px;
  color: #c3cfdb;
}
.connection-row.verified, .eligibility-box { border-color: rgba(216, 137, 0, .7); }
.select-box select {
  margin-top: 8px;
  width: 100%;
  color: var(--text);
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 12px;
}
.required { color: #d88900; font-weight: 900; }
.gift-option, .confirm-row { display: flex; align-items: center; gap: 12px; }
.gift-option input, .confirm-row input { width: auto; }
.gift-fields { display: grid; gap: 12px; }
.wizard-actions { margin-top: 10px; }
.split-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-note { border: 1px solid rgba(216,137,0,.55); border-radius: 10px; padding: 12px; color: var(--muted); }
.checkout-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(4px);
}
.checkout-loader.hidden, .hidden { display: none !important; }
.loader-card { display: grid; justify-items: center; gap: 16px; color: var(--text); }
.sound-bars { display: flex; gap: 7px; align-items: center; height: 70px; }
.sound-bars span {
  width: 8px;
  border-radius: 10px;
  background: #d88900;
  animation: bars 900ms infinite ease-in-out;
}
.sound-bars span:nth-child(1) { height: 24px; animation-delay: 0ms; }
.sound-bars span:nth-child(2) { height: 42px; animation-delay: 80ms; }
.sound-bars span:nth-child(3) { height: 58px; animation-delay: 160ms; }
.sound-bars span:nth-child(4) { height: 34px; animation-delay: 240ms; }
.sound-bars span:nth-child(5) { height: 64px; animation-delay: 320ms; }
.sound-bars span:nth-child(6) { height: 44px; animation-delay: 400ms; }
.sound-bars span:nth-child(7) { height: 28px; animation-delay: 480ms; }
@keyframes bars { 50% { transform: scaleY(.35); opacity: .65; } }
.premium-admin-plan h3 { margin: 0; color: var(--accent); }
@media (max-width: 1000px) {
  .premium-product-grid, .product-detail-layout { grid-template-columns: 1fr; }
  .premium-product-image.large { min-height: 380px; }
}
@media (max-width: 620px) {
  .wizard-steps { grid-template-columns: 1fr; }
  .split-actions { grid-template-columns: 1fr; }
  .premium-product-image { min-height: 290px; }
}

/* Premium checkout flow refinements: centered pages, clean uploaded images, locked wizard, Steam verification */
.hero-centered {
  min-height: 54vh;
  display: flex !important;
  justify-content: center;
  align-items: center;
  text-align: center;
  grid-template-columns: 1fr !important;
  padding-top: 84px;
}
.hero-copy-centered {
  max-width: 940px;
  margin-inline: auto;
}
.hero-copy-centered .lead {
  margin-inline: auto;
}
.hero-actions-centered,
.server-status-centered .section-title,
.premium-store-head {
  justify-content: center;
  text-align: center;
}
.server-status-centered,
.premium-list-section {
  text-align: center;
}
.home-server-grid {
  justify-content: center;
}
.premium-home-cta {
  text-align: center;
  justify-content: center;
}

.premium-product-grid,
.premium-product-grid-centered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 456px)); /* was 300px, 380px */
  gap: 2.4rem; /* was 2rem */
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.premium-product-card {
  overflow: hidden;
  border-radius: 36px; /* was 30px */
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 744px; /* was 620px */
  text-align: center;
}
.premium-card-image-link {
  display: block;
}
.premium-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}
.premium-product-image.large {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
}
.clean-image-card {
  background-image: none !important;
}
.clean-image-card::before,
.clean-image-card::after,
.premium-image-border {
  display: none !important;
  content: none !important;
}
.clean-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.premium-product-body {
  padding: 2.4rem; /* was 2rem */
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 1.2rem;
}

.premium-product-body h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin: 0;
  font-size: 1.85rem; /* was 1.55rem */
}

.premium-small-icon {
  display: inline-grid;
  place-items: center;
  width: 38px; /* was 32px */
  height: 38px; /* was 32px */
  background: #d99400;
  color: white;
  border-radius: 11px;
}

.premium-product-price {
  color: #43f178;
  font-size: 2rem; /* was 1.65rem */
  font-weight: 900;
  margin: 0;
}

.premium-product-copy {
  color: #b9c3b1;
  line-height: 1.7;
  font-size: 1.1rem;
}
.btn.amber,
.amber {
  background: linear-gradient(135deg, #eda100, #d88b00) !important;
  color: #fff !important;
  border-color: rgba(255,190,50,.55) !important;
  box-shadow: 0 16px 32px rgba(237,161,0,.22) !important;
}

.checkout-page {
  padding: 3.5rem 0;
}
.checkout-back {
  display: inline-flex;
  color: var(--muted);
  margin-bottom: 1rem;
}
.product-detail-card {
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.product-detail-card > h1 {
  text-align: center;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.1;
  margin: 0 0 2rem;
  letter-spacing: -.05em;
}
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(320px, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.product-detail-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 1rem;
}
.premium-long-copy {
  color: var(--text);
  line-height: 1.65;
  margin: 1.5rem 0;
}

.checkout-wizard {
  margin-top: 2rem;
}
.wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.wizard-step {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  justify-items: center;
  gap: .45rem;
  cursor: pointer;
}
.wizard-step strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
}
.wizard-step.active strong {
  background: #e39a00;
  color: #111;
}
.wizard-step.active span {
  color: #e39a00;
  font-weight: 800;
}
.wizard-step.locked,
.wizard-step:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.wizard-panel {
  display: none;
}
.wizard-panel.active {
  display: grid;
  gap: 1rem;
}
.connection-stack {
  display: grid;
  gap: 1rem;
}
.connection-row,
.select-box,
.confirm-row,
.gift-option,
.eligibility-box {
  border: 1px solid rgba(130,160,200,.35);
  background: rgba(35,49,66,.72);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
}
.connection-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}
.connection-row p {
  margin: .25rem 0 0;
  color: var(--muted);
}
.connection-row.verified {
  border-color: rgba(215,221,231,.42);
  background: rgba(215,221,231,.08);
}
.connection-check {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(215,221,231,.18);
  color: var(--accent);
  font-weight: 900;
}
.steam-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.2);
}
.connection-field,
.select-box {
  display: grid;
  gap: .75rem;
}
.select-box select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline: none;
}
.required {
  color: #e39a00;
  font-weight: 900;
}
.eligibility-box {
  min-height: 64px;
  display: flex;
  align-items: center;
}
.eligibility-loading {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
}
.eligibility-result {
  font-weight: 800;
}
.eligibility-result.is-eligible {
  color: #d7dde7;
}
.eligibility-result.is-not-eligible {
  color: #ff9a9a;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.18);
  border-top-color: #d7dde7;
  border-radius: 999px;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.gift-option,
.confirm-row {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.gift-option input,
.confirm-row input {
  width: auto;
}
.gift-fields {
  display: grid;
  gap: 1rem;
}
.split-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.wizard-actions {
  margin-top: 1rem;
}
.wizard-help,
.checkout-note {
  color: var(--muted);
  text-align: center;
  font-size: .9rem;
}
button:disabled,
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
}
.checkout-loader {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.76);
  z-index: 9999;
  display: grid;
  place-items: center;
}
.loader-card {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(17,19,23,.92);
  border-radius: 24px;
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.sound-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  height: 54px;
  margin-bottom: 1rem;
}
.sound-bars span {
  width: 7px;
  height: 20px;
  border-radius: 99px;
  background: #e39a00;
  animation: bars .8s infinite ease-in-out alternate;
}
.sound-bars span:nth-child(2) { animation-delay: .08s; }
.sound-bars span:nth-child(3) { animation-delay: .16s; }
.sound-bars span:nth-child(4) { animation-delay: .24s; }
.sound-bars span:nth-child(5) { animation-delay: .32s; }
.sound-bars span:nth-child(6) { animation-delay: .4s; }
.sound-bars span:nth-child(7) { animation-delay: .48s; }
@keyframes bars { from { height: 14px; opacity: .55; } to { height: 52px; opacity: 1; } }
.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .product-detail-media {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }
}
@media (max-width: 640px) {
  .wizard-steps {
    grid-template-columns: 1fr;
  }
  .split-actions {
    grid-template-columns: 1fr;
  }
  .premium-product-grid,
  .premium-product-grid-centered {
    grid-template-columns: 1fr;
  }
}

/* === CDS layout hotfix: centered premium/home pages and sane product sizing === */
body {
  overflow-x: hidden;
}

/* Home hero must stay truly central regardless of older grid hero styles. */
.hero.hero-centered.shell {
  width: min(1060px, calc(100% - 32px));
  min-height: 62vh;
  margin-inline: auto;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  grid-template-columns: none !important;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2rem, 5vw, 4rem) !important;
}

.hero.hero-centered .hero-copy,
.hero.hero-centered .hero-copy-centered {
  width: min(920px, 100%);
  margin-inline: auto !important;
  text-align: center !important;
  display: grid;
  justify-items: center;
}

.hero.hero-centered h1,
.hero.hero-centered .lead,
.hero.hero-centered .eyebrow {
  text-align: center !important;
}

.hero.hero-centered .lead {
  max-width: 760px;
  margin: 1.15rem auto 0 !important;
}

.hero.hero-centered .actions,
.hero-actions-centered {
  justify-content: center !important;
}

/* Premium listing page: center cards even when there is only one product. */
.premium-store-head,
.page-head.centered {
  text-align: center !important;
  justify-items: center !important;
  margin-inline: auto;
}

.premium-store-head .lead,
.page-head.centered .lead {
  margin-inline: auto !important;
}

.premium-list-section {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start;
}

.premium-product-grid.premium-product-grid-centered,
.premium-product-grid-centered {
  width: 100%;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.premium-product-grid-centered > .premium-product-card,
.premium-product-grid > .premium-product-card {
  flex: 0 1 380px;
  width: min(380px, 100%);
  max-width: 380px;
}

/* Remove generated image overlays. Uploaded image should be the image. */
.premium-product-image,
.premium-product-image.large,
.clean-image-card {
  background-image: none !important;
  background-color: rgba(255,255,255,.035) !important;
}

.premium-product-image::before,
.premium-product-image::after,
.clean-image-card::before,
.clean-image-card::after,
.premium-image-border,
.premium-device-icon {
  display: none !important;
  content: none !important;
}

.premium-product-image img,
.clean-image-card img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
}

/* Premium detail page: stop the product image/copy from overflowing sideways. */
.checkout-page.shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.product-detail-card {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  overflow: hidden;
  padding: clamp(1.25rem, 3.5vw, 3rem) !important;
}

.product-detail-card > h1 {
  max-width: 980px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem) !important;
  text-align: center !important;
  font-size: clamp(2rem, 4.6vw, 3.6rem) !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere;
}

.product-detail-layout {
  display: grid !important;
  grid-template-columns: minmax(260px, 440px) minmax(0, 1fr) !important;
  gap: clamp(1.5rem, 4vw, 3rem) !important;
  align-items: start !important;
  width: 100%;
  max-width: 1060px;
  margin-inline: auto;
}

.product-detail-media {
  width: 100%;
  max-width: 440px;
  min-width: 0;
}

.product-detail-copy {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.premium-product-image.large {
  width: 100% !important;
  max-width: 440px !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

.product-detail-copy h2,
.product-detail-copy p,
.product-detail-copy ul,
.product-detail-copy li {
  max-width: 100%;
}

.product-detail-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem) !important;
}

.checkout-wizard {
  width: 100%;
  max-width: 100%;
}

/* Larger screens: keep the detail layout balanced and centered. */
@media (min-width: 1121px) {
  .product-detail-copy {
    padding-top: .4rem;
  }
}

@media (max-width: 1120px) {
  .product-detail-layout {
    grid-template-columns: 1fr !important;
    max-width: 760px;
  }

  .product-detail-media {
    max-width: 520px;
    margin-inline: auto;
  }

  .premium-product-image.large {
    max-width: 520px !important;
    margin-inline: auto;
  }

  .product-detail-copy {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .product-detail-card {
    border-radius: 20px;
  }

  .product-detail-card > h1 {
    font-size: clamp(1.8rem, 9vw, 2.5rem) !important;
  }

  .premium-product-grid-centered > .premium-product-card,
  .premium-product-grid > .premium-product-card {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* === CDS FINAL LAYOUT FIXES - 16:9 media, centered pages, no overflow === */
html, body { min-height: 100%; }
body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden !important;
}
body > main { flex: 1 0 auto; }
.footer { flex-shrink: 0; width: min(1160px, calc(100% - 32px)); }
.shell,
.page-shell {
  width: min(1160px, calc(100% - 32px)) !important;
  max-width: 1160px !important;
  margin-inline: auto !important;
}
img { max-width: 100%; }

/* Header safety */
.nav.shell {
  width: min(1160px, calc(100% - 32px)) !important;
  max-width: 1160px !important;
}
.nav, .nav * { min-width: 0; }
.nav-links form { margin: 0; }

/* Home page */
.cds-home-hero {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vw, 7rem) 0 !important;
}
.cds-home-card {
  width: min(900px, 100%);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4.5rem);
  text-align: center;
  border-radius: 34px;
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.cds-home-logo {
  display: grid;
  place-items: center;
  width: clamp(92px, 12vw, 140px);
  aspect-ratio: 1;
  border-radius: 28px;
  border: 2px dashed rgba(215,221,231,.65);
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .08em;
  background: rgba(215,221,231,.04);
  box-shadow: inset 0 0 40px rgba(215,221,231,.08), 0 30px 80px rgba(0,0,0,.35);
}
.cds-home-card h1 {
  margin: 0;
  max-width: 920px;
  text-align: center;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: .86;
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.cds-home-card .lead {
  margin: .25rem auto 0;
  max-width: 760px;
  text-align: center;
}
.cds-home-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .75rem;
}
.cds-social-placeholders {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 800;
}
.cds-social-placeholders a { color: var(--muted); }
.cds-social-placeholders a:hover { color: var(--accent); }

/* Legacy home sections hidden: landing should be clean */
.server-status-centered,
.premium-home-cta { display: none !important; }

/* Page heads */
.page-head.centered,
.premium-store-head,
.page-hero {
  text-align: center !important;
  display: grid !important;
  justify-items: center !important;
  margin-inline: auto !important;
  padding-top: clamp(3rem, 7vw, 5.5rem) !important;
}
.page-head.centered h1,
.premium-store-head h1,
.page-hero h1 {
  max-width: 1080px;
  text-align: center !important;
  overflow-wrap: anywhere;
}
.page-head.centered .lead,
.premium-store-head .lead,
.hero-subtitle {
  max-width: 760px;
  margin-inline: auto !important;
  text-align: center !important;
}

/* Premium listing */
.premium-list-section {
  display: flex !important;
  justify-content: center !important;
  padding-top: clamp(2rem, 5vw, 4rem) !important;
}
.premium-product-grid,
.premium-product-grid-centered {
  width: 100% !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 380px)) !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: clamp(1.25rem, 3vw, 2rem) !important;
}
.premium-product-card {
  width: 100% !important;
  max-width: 380px !important;
  margin-inline: auto !important;
  overflow: hidden !important;
  border-radius: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}
.premium-card-image-link { display: block; width: 100%; }
.premium-product-image,
.premium-product-image.large,
.product-media-frame,
.clean-image-card,
.server-banner-wrap,
.premium-image-frame {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.035) !important;
}
.premium-product-image img,
.product-media-frame img,
.clean-image-card img,
.server-banner-wrap img,
.server-info-banner,
.premium-image-frame img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
.premium-product-image::before,
.premium-product-image::after,
.clean-image-card::before,
.clean-image-card::after,
.product-media-frame::before,
.product-media-frame::after,
.premium-image-border,
.premium-device-icon {
  display: none !important;
  content: none !important;
}
.premium-product-body {
  padding: 1.5rem !important;
  display: grid;
  gap: .85rem;
  text-align: center;
  flex: 1;
}
.premium-product-body h3 {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
}
.premium-product-body .btn {
  min-height: 54px;
  font-size: 1.05rem;
  border-radius: 14px;
}
.premium-product-price {
  margin: 0;
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 900;
}
.premium-product-copy {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.amber,
.btn.amber {
  background: linear-gradient(135deg, #f1a400, #d88900) !important;
  border-color: rgba(255,190,64,.4) !important;
  color: #fff !important;
  box-shadow: 0 18px 36px rgba(216,137,0,.24) !important;
}

/* Premium detail/product page */
.checkout-page.shell {
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
  padding: clamp(2rem, 5vw, 4rem) 0 !important;
}
.checkout-back {
  display: inline-flex;
  margin: 0 0 1rem;
  color: var(--muted);
}
.product-detail-card {
  width: 100% !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
  padding: clamp(1.25rem, 3vw, 2.5rem) !important;
  border-radius: 30px !important;
  overflow: hidden !important;
}
.product-detail-card > h1 {
  margin: 0 auto clamp(1.5rem, 4vw, 2.5rem) !important;
  max-width: 980px !important;
  text-align: center !important;
  font-size: clamp(2rem, 4.2vw, 3.9rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em !important;
  overflow-wrap: anywhere !important;
}
.product-detail-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr) !important;
  gap: clamp(1.5rem, 4vw, 3rem) !important;
  align-items: start !important;
  width: 100% !important;
  min-width: 0 !important;
}
.product-detail-media,
.product-detail-copy,
.product-copy-panel,
.checkout-panel {
  min-width: 0 !important;
  max-width: 100% !important;
}
.product-media-frame {
  border-radius: 22px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.product-detail-copy {
  display: grid !important;
  gap: 1.25rem !important;
}
.product-copy-panel {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 22px;
  padding: clamp(1rem, 2vw, 1.35rem);
}
.product-copy-panel h2 { margin-top: 0; }
.perk-list { padding-left: 1.25rem; margin-bottom: 1rem; }
.premium-long-copy { color: var(--text); line-height: 1.75; }
.checkout-wizard { width: 100% !important; max-width: 100% !important; }
.wizard-steps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: .75rem !important;
  margin: 1.35rem 0 !important;
}
.wizard-step {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: .35rem;
}
.wizard-step strong {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  color: var(--text);
}
.wizard-step.active strong { background: #f1a400; color: #111; }
.wizard-step.locked { opacity: .45; cursor: not-allowed; }
.wizard-panel { display: none !important; }
.wizard-panel.active { display: grid !important; gap: 1rem !important; }
.connection-row,
.select-box,
.confirm-row,
.gift-option {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(20, 31, 43, .74);
  border-radius: 16px;
  padding: 1rem;
}
.connection-row {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.connection-row p { margin: .2rem 0 0; color: var(--muted); }
.connection-row.verified { border-color: rgba(215,221,231,.32); }
.steam-avatar { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.select-box select {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  margin-top: .6rem;
  background: rgba(0,0,0,.25);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.16);
  padding: 0 1rem;
}
.required { color: #f1a400; margin-left: .4rem; }
.eligibility-box { border: 1px solid rgba(241,164,0,.45); border-radius: 16px; padding: 1rem; background: rgba(20,31,43,.7); }
.eligibility-loading { display: flex; align-items: center; gap: .7rem; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.eligibility-result.is-eligible { color: var(--accent); font-weight: 800; }
.eligibility-result.is-not-eligible { color: #ffb0b0; font-weight: 800; }
.split-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-note { border: 1px solid rgba(241,164,0,.35); border-radius: 14px; padding: .9rem; color: var(--muted); }

/* Servers page */
.page-shell { padding: clamp(2.5rem, 6vw, 5rem) 0 !important; }
.servers-accordion { display: grid; gap: 1rem; }
.server-accordion {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(9,18,10,.88);
  border-radius: 24px;
  overflow: hidden;
}
.server-accordion summary { list-style: none; }
.server-accordion summary::-webkit-details-marker { display: none; }
.server-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
}
.summary-server-name-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.summary-server-name { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.status-pill { border-radius: 999px; padding: .45rem .8rem; font-weight: 900; }
.status-pill.online { color: var(--accent); background: rgba(215,221,231,.13); }
.status-pill.offline { color: #ff9d9d; background: rgba(255,100,100,.13); }
.summary-stats { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.summary-stat { display: grid; justify-items: end; }
.summary-label { color: var(--muted); font-size: .8rem; }
.summary-toggle { color: var(--muted); font-weight: 800; }
.summary-arrow { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: .45rem; border-radius: 50%; background: rgba(215,221,231,.12); color: var(--accent); }
.server-accordion[open] .summary-arrow { transform: rotate(45deg); }
.server-details { display: grid; gap: 1rem; padding: 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; }
.detail-box,
.mods-panel,
.server-info-panel,
.server-error-box {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 1rem;
  min-width: 0;
}
.detail-label { display: block; color: var(--muted); font-size: .82rem; margin-bottom: .3rem; }
.detail-box strong { overflow-wrap: anywhere; }
.mods-panel-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: .8rem; }
.mods-panel-header h3 { margin: 0; }
.mods-panel-header > span { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 999px; color: var(--accent); border: 1px solid rgba(215,221,231,.25); background: rgba(215,221,231,.08); font-weight: 900; }
.mod-inline-list { display: flex !important; flex-wrap: wrap !important; gap: .45rem 1rem !important; max-width: 100%; overflow-wrap: anywhere; }
.mod-inline-link { color: var(--text); border-bottom: 1px solid transparent; font-size: .95rem; }
.mod-inline-link:hover { color: var(--accent); border-bottom-color: rgba(215,221,231,.5); }
.server-info-panel { padding: 0 !important; overflow: hidden !important; }
.server-banner-wrap { border-radius: 0 !important; width: 100% !important; aspect-ratio: 16 / 9 !important; max-height: 520px !important; }
.server-info-placeholder { width: 100%; height: 100%; display: grid; place-content: center; text-align: center; gap: .4rem; background: repeating-linear-gradient(135deg, rgba(215,221,231,.08) 0 12px, transparent 12px 28px), rgba(255,255,255,.03); }
.server-info-placeholder strong { font-size: clamp(2rem, 5vw, 4rem); text-transform: uppercase; }
.server-info-placeholder span { color: var(--accent); font-weight: 800; }
.server-info-content { padding: 1.25rem; }
.server-info-content h3 { margin: 0 0 .5rem; }
.server-info-content h4 { color: var(--accent); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .75rem; }
.server-info-text { white-space: pre-wrap; color: var(--muted); line-height: 1.7; }

/* Admin */
.admin-head { display: grid; gap: .8rem; }
.admin-grid { align-items: start !important; }
.form-card { align-content: start !important; }
.form-card .btn.full { min-height: 52px; padding-top: 13px; padding-bottom: 13px; }
.admin-server-edit { display: grid !important; gap: 1rem !important; }
.admin-server-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
label small { color: var(--muted); font-weight: 600; }

.hidden { display: none !important; }

@media (max-width: 1050px) {
  .product-detail-layout { grid-template-columns: 1fr !important; }
  .product-detail-media { max-width: 760px; margin-inline: auto; width: 100%; }
  .admin-server-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .cds-home-card { border-radius: 24px; }
  .cds-home-card h1 { font-size: clamp(2.7rem, 15vw, 4.2rem); }
  .product-detail-card { border-radius: 22px !important; }
  .wizard-steps { grid-template-columns: 1fr !important; }
  .split-actions { grid-template-columns: 1fr; }
  .server-summary { align-items: flex-start; flex-direction: column; }
  .summary-stats { width: 100%; justify-content: space-between; }
  .detail-grid { grid-template-columns: 1fr; }
  .admin-server-grid { grid-template-columns: 1fr; }
}

/* Final homepage + blog/FAQ update */
.cds-social-placeholders { display: none !important; }
.cds-home-hero { min-height: auto !important; padding-top: clamp(2rem, 5vw, 4rem) !important; padding-bottom: clamp(2rem, 5vw, 4rem) !important; }
.home-blog-section { padding-top: clamp(2rem, 5vw, 4rem) !important; }
.section-title.centered,
.page-head.centered { text-align: center; margin-inline: auto; }
.section-title.centered .lead,
.page-head.centered .lead { margin-inline: auto; max-width: 760px; }
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1040px;
  margin: 1.5rem auto 0;
}
.blog-index-grid { max-width: 1100px; }
.blog-card {
  padding: 1.2rem;
  border-radius: 22px;
  display: grid;
  gap: .65rem;
  align-content: start;
}
.blog-card h3 { margin: 0; font-size: 1.25rem; }
.blog-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.blog-date { color: var(--accent) !important; font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.text-link { color: var(--accent); font-weight: 900; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.empty-panel { max-width: 720px; margin: 1rem auto 0; padding: 1.25rem; text-align: center; color: var(--muted); border-radius: 18px; }
.narrow-content { max-width: 900px !important; }
.article-card { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 26px; }
.article-card h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1; margin: .5rem 0 1rem; }
.article-body { white-space: pre-wrap; color: var(--muted); line-height: 1.8; font-size: 1.05rem; }
.faq-list { display: grid; gap: .8rem; }
.faq-item { border-radius: 18px; padding: 0; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 900; color: var(--text); }
.faq-item p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--muted); line-height: 1.7; }
.admin-nested-card {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 1rem;
  margin: 1rem 0;
  display: grid;
  gap: .75rem;
}
.blog-editor-list,
.faq-editor-list,
.faq-category-editor-list,
.faq-question-list { display: grid; gap: .75rem; }

.faq-category-edit-card {
  display: grid;
  gap: .85rem;
}

.faq-question-row {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.14);
  border-radius: 14px;
  padding: .85rem;
  display: grid;
  gap: .7rem;
}

/* Footer: centered compact store-style footer on every page */
.site-footer {
  width: 100%;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: 2.4rem 1.25rem 2rem;
  background: #020403;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  position: relative;
  z-index: 2;
}
.footer-inner {
  width: min(820px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: .75rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
}
.footer-logo-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px dashed rgba(215, 221, 231, 0.65);
  background: rgba(215, 221, 231, 0.08);
  display: inline-grid;
  place-items: center;
  color: #d7dde7;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.footer-brand h2 { margin: 0; color: var(--text); font-size: 1.15rem; line-height: 1; }
.footer-description { max-width: 640px; margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.footer-main-links { display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin-top: .35rem; }
.footer-main-links a { color: var(--text); text-decoration: none; font-weight: 800; font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; transition: color .2s ease, transform .2s ease; }
.footer-main-links a:hover { color: #d7dde7; transform: translateY(-1px); }
.footer-link-icon { color: #df9800; font-weight: 900; font-size: .95rem; line-height: 1; }
.footer-link-icon.discord-icon { color: #6d7cff; }
.footer-policy-links { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; color: var(--muted); }
.footer-policy-links a { color: var(--muted); text-decoration: none; font-size: .82rem; }
.footer-policy-links a:hover { color: #d7dde7; }
.footer-copyright,
.footer-powered { margin: 0; color: var(--muted); font-size: .82rem; }
.footer-powered { margin-top: -.35rem; }

@media (max-width: 640px) {
  .footer-main-links { gap: .8rem 1rem; }
  .footer-description { font-size: .92rem; }
}

/* === MERGED FINAL: compact premium cards + hover glow === */
:root {
  --cds-card-compact-width: 317px !important;
}

.premium-product-grid,
.premium-product-grid-centered {
  grid-template-columns: repeat(auto-fit, minmax(var(--cds-card-compact-width), var(--cds-card-compact-width))) !important;
  gap: 22px !important;
  align-items: start !important;
  justify-content: center !important;
}

.premium-product-grid-centered > .premium-product-card,
.premium-product-grid > .premium-product-card,
.premium-product-card {
  width: var(--cds-card-compact-width) !important;
  max-width: var(--cds-card-compact-width) !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  border: 1px solid rgba(218, 145, 0, 0.28) !important;
  background: rgba(22, 24, 28, 0.92) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease !important;
}

.premium-product-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(255, 176, 0, 0.75) !important;
  box-shadow: 0 0 0 1px rgba(255,176,0,.28), 0 0 28px rgba(255,176,0,.22), 0 22px 55px rgba(0,0,0,.42) !important;
  filter: saturate(1.08) !important;
}

.premium-product-body {
  padding: 16px 17px 17px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  gap: 9px !important;
  min-height: 0 !important;
  text-align: center !important;
}

.premium-product-body h3 {
  min-height: 0 !important;
  margin: 0 auto !important;
  font-size: 1.25rem !important;
  line-height: 1.16 !important;
}

.premium-product-price {
  margin: 4px 0 0 !important;
  font-size: .98rem !important;
  line-height: 1.1 !important;
}

.premium-product-copy {
  margin: 6px 0 8px !important;
  font-size: .82rem !important;
  line-height: 1.42 !important;
}

.premium-product-card .btn,
.premium-product-card .btn.full,
.premium-product-card a.btn {
  width: 100% !important;
  min-height: 46px !important;
  height: 46px !important;
  padding: 8px 12px !important;
  margin-top: 2px !important;
  border-radius: 10px !important;
  font-size: .98rem !important;
  line-height: 1 !important;
}

.premium-product-card .premium-small-icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
}

@media (max-width: 680px) {
  :root { --cds-card-compact-width: min(100%, 290px) !important; }
}

/* === MERGED FINAL: product page layout — info below image, subscribe down right === */
.product-detail-card-v2 {
  padding: clamp(1.25rem, 2.6vw, 2.25rem) !important;
}

.product-detail-card-v2 > h1 {
  font-size: clamp(2rem, 4vw, 3.15rem) !important;
  margin-bottom: clamp(1.25rem, 3vw, 2rem) !important;
}

.product-detail-layout-v2 {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr) !important;
  gap: clamp(1.25rem, 3vw, 2rem) !important;
  align-items: start !important;
}

.product-info-column,
.product-subscribe-column {
  min-width: 0 !important;
}

.product-info-column {
  display: grid !important;
  gap: 1rem !important;
}

.product-hero-image {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: rgba(0,0,0,.24) !important;
}

.product-hero-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.product-info-panel,
.subscribe-panel,
.glass-soft {
  border: 1px solid rgba(255,255,255,.1) !important;
  background: rgba(255,255,255,.035) !important;
  border-radius: 22px !important;
  padding: clamp(1rem, 2vw, 1.35rem) !important;
}

.product-info-panel h2,
.subscribe-panel h2 {
  margin-top: 0 !important;
}

.product-perks-list {
  margin: 0 0 1rem !important;
  padding-left: 1.25rem !important;
  display: grid !important;
  gap: .35rem !important;
}

.product-subscribe-column {
  position: sticky !important;
  top: 6rem !important;
}

.subscribe-panel {
  display: grid !important;
  gap: 1rem !important;
}

@media (max-width: 1050px) {
  .product-detail-layout-v2 {
    grid-template-columns: 1fr !important;
  }
  .product-subscribe-column {
    position: static !important;
  }
}

/* Profile page */
.profile-page {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.profile-head {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-card,
.profile-section {
  border-radius: 28px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.account-card {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
}

.profile-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(215,221,231,.45), rgba(255,166,0,.22));
  box-shadow: 0 16px 45px rgba(0,0,0,.35);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 24px;
  background: rgba(255,255,255,.04);
}

.account-label,
.connection-type {
  margin: 0;
  color: var(--accent);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 900;
}

.account-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.profile-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .45rem;
}

.profile-actions form {
  margin: 0;
}

.profile-section {
  margin-top: 1rem;
}

.compact-title h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

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

.connection-card {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: .35rem;
}

.connection-card strong {
  word-break: break-word;
}

.empty-state {
  border: 1px dashed rgba(255,255,255,.13);
  border-radius: 18px;
  padding: 1.25rem;
  text-align: center;
  background: rgba(255,255,255,.025);
}

.orders-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.orders-table th,
.orders-table td {
  padding: .9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: middle;
}

.orders-table th {
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.orders-table td strong,
.orders-table td span {
  display: block;
}

.status-badge {
  display: inline-flex !important;
  width: fit-content;
  border-radius: 999px;
  padding: .3rem .65rem;
  color: var(--accent);
  background: rgba(215,221,231,.08);
  border: 1px solid rgba(215,221,231,.18);
  font-size: .8rem;
  font-weight: 800;
}

.connection-row-form {
  margin: 0;
}

.connection-row-form .connection-row {
  width: 100%;
  text-align: left;
  color: inherit;
}

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

@media (max-width: 420px) {
  .discord-steam-choice-actions {
    grid-template-columns: 1fr;
  }
}

/* Discord-linked Steam choice on product checkout */
.discord-steam-choice {
  border: 1px solid rgba(105, 145, 191, 0.42);
  background: rgba(20, 33, 43, 0.88);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.discord-steam-choice-copy {
  display: grid;
  gap: 0.25rem;
  color: var(--text);
}

.discord-steam-choice-copy strong {
  font-weight: 900;
}

.discord-steam-choice-copy p,
.discord-steam-choice-copy span {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.discord-steam-choice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.discord-steam-choice-actions .btn {
  width: 100% !important;
  min-width: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  white-space: normal;
  line-height: 1.15;
}

.discord-steam-choice-actions .btn.small {
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
}

.btn.small {
  min-height: 44px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

.btn.success {
  background: linear-gradient(135deg, rgba(181, 255, 45, 0.95), rgba(126, 204, 45, 0.95));
  color: #061006;
  border-color: rgba(188, 255, 56, 0.75);
}

.btn.success:hover {
  box-shadow: 0 0 28px rgba(188, 255, 56, 0.22);
  transform: translateY(-1px);
}

.profile-card .copy-button,
.profile-card .copy-id-button,
.profile-card button[data-copy],
.profile-card .btn.copy-btn {
  min-width: 210px;
  min-height: 58px;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
}

.profile-card .profile-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;

  width: fit-content;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  margin-bottom: 1.25rem;

  border-radius: 999px;
  border: 1px solid rgba(188, 255, 56, 0.75);
  background: linear-gradient(135deg, rgba(181, 255, 45, 0.95), rgba(126, 204, 45, 0.95));

  color: #061006;
  font-weight: 900;
  font-size: 0.95rem;
  text-decoration: none;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checkout-back:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.36),
    0 0 28px rgba(188, 255, 56, 0.22);
}

.checkout-back:active {
  transform: translateY(0);
}
/* Stripe profile order actions */
.order-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.order-actions form {
  margin: 0;
}

@media (max-width: 820px) {
  .order-actions {
    justify-content: flex-start;
  }
}

/* === Gift codes, admin page split, and uploaded logo overrides === */
.logo-box img,
.footer-logo-placeholder img,
.cds-home-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-box:has(img),
.footer-logo-placeholder:has(img) {
  padding: 4px;
  overflow: hidden;
}

.cds-home-logo:has(img) {
  padding: 14px;
  overflow: hidden;
}

.admin-section-nav,
.admin-dashboard-grid {
  display: grid;
  gap: 14px;
}

.admin-section-nav {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: stretch;
  margin-top: 20px;
}

.admin-dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-dashboard-card {
  padding: 24px;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease;
}

.admin-dashboard-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 202, 87, .55);
}

.admin-logo-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}

.admin-logo-preview img {
  max-width: 220px;
  max-height: 120px;
  object-fit: contain;
}

.admin-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, auto);
  justify-content: space-between;
  gap: 1.35rem;
  align-items: start;
}

.gift-redeem-form,
.gift-code-list,
.gift-redeem-card {
  display: grid;
  gap: 14px;
}

.gift-redeem-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.gift-code-list {
  margin-top: 22px;
}

.gift-code-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}

.gift-code-card code,
.orders-table code,
.receipt-card code {
  user-select: all;
  white-space: nowrap;
}

.activation-wait-note {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.countdown-button {
  width: max-content;
  font-variant-numeric: tabular-nums;
}

.receipt-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  gap: 14px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 720px) {
  .gift-redeem-form,
  .admin-order-card,
  .receipt-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}

/* === Admin settings save/logos v5 === */
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
}
.admin-settings-grid code {
  color: var(--accent);
}

/* === Logo override hardening v7 === */
.logo-box.has-site-logo,
.footer-logo-placeholder.has-site-logo,
.cds-home-logo.has-site-logo {
  overflow: hidden;
  text-indent: 0;
}

.logo-box.has-site-logo {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.footer-logo-placeholder.has-site-logo {
  padding: 3px;
}

.cds-home-logo.has-site-logo {
  padding: 12px;
}

.site-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.site-logo-text {
  display: inline-block;
}


/* === Uploaded logo image-only cleanup v8 === */
.logo-box.has-site-logo,
.footer-logo-placeholder.has-site-logo,
.cds-home-logo.has-site-logo {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.logo-box.has-site-logo,
.footer-logo-placeholder.has-site-logo,
.cds-home-logo.has-site-logo,
.logo-box:has(img),
.footer-logo-placeholder:has(img),
.cds-home-logo:has(img) {
  padding: 0 !important;
}

.footer-logo-placeholder.has-site-logo {
  border-radius: 0;
}

.cds-home-logo.has-site-logo {
  border-radius: 0;
}

.admin-logo-remove-form,
.admin-logo-upload-form {
  display: grid;
  gap: 14px;
}

.admin-logo-remove-form {
  margin: 0;
}

/* === Remove-logo route fix + larger home logo v9 === */
.cds-home-logo.has-site-logo {
  width: clamp(150px, 16vw, 220px);
  max-width: 42vw;
  aspect-ratio: 1;
  margin-bottom: .25rem;
}

.cds-home-logo.has-site-logo .site-logo-image {
  width: 100%;
  height: 100%;
  transform: scale(1.12);
  transform-origin: center;
}

@media (max-width: 640px) {
  .cds-home-logo.has-site-logo {
    width: clamp(120px, 34vw, 170px);
  }
}


/* === Simple logo upload controls v14 === */
.admin-logo-upload-form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

/* === Feature pack: loader, scroll fade, direct mod links, profile archive, map, header buttons === */
.site-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(7px);
  transition: opacity .45s ease, visibility .45s ease;
}
.site-loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-loader-card {
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border: 1px solid rgba(215,221,231,.24);
  border-radius: 28px;
  background: rgba(17,19,23,.84);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 42px rgba(215,221,231,.12);
  min-width: min(420px, calc(100vw - 32px));
}
.site-loader-card p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
  letter-spacing: .02em;
}
.site-loader-card p strong {
  color: var(--accent);
}
.site-loader-card .spinner {
  width: 26px;
  height: 26px;
  border-width: 3px;
}
.scroll-fade {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(6px);
  transition: opacity .8s ease, transform .8s ease, filter .8s ease;
}
.scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.faq-item {
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .25s ease;
}
.faq-item[open],
.faq-item.is-selected {
  border-color: rgba(215,221,231,.45) !important;
  background: rgba(215,221,231,.055) !important;
  box-shadow: 0 0 34px rgba(215,221,231,.14), inset 0 0 0 1px rgba(215,221,231,.12);
}
.faq-item[open] summary,
.faq-item.is-selected summary {
  color: var(--accent);
}
.mod-inline-link-disabled {
  cursor: default;
  opacity: .7;
  border-style: dashed !important;
  color: var(--muted) !important;
}
.orders-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.orders-title-row h2,
.orders-title-row p {
  margin-bottom: 0;
}
.order-actions .btn,
.order-actions form {
  width: max-content;
}
.btn-login {
  background: linear-gradient(135deg, var(--accent), #aeb7c5);
  color: #11160d;
}
.btn-logout {
  background: linear-gradient(135deg, #ff7777, #d93d3d) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.24) !important;
  box-shadow: 0 14px 30px rgba(255,107,107,.18) !important;
}
.nav-links .btn-discord {
  background: linear-gradient(135deg, #7289da, #5865f2) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.28) !important;
}
.centered-actions {
  justify-content: center;
}
.map-section {
  padding-top: 1rem !important;
}
.map-frame-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: min(78vh, 850px);
}
.map-frame {
  display: block;
  width: 100%;
  height: min(78vh, 850px);
  min-height: 560px;
  border: 0;
  background: rgba(0,0,0,.35);
}
.map-fallback-note {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  pointer-events: none;
  text-align: center;
}
.map-fallback-note p {
  display: inline-block;
  margin: 0;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  border: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 760px) {
  .orders-title-row {
    align-items: stretch;
    flex-direction: column;
  }
  .orders-title-row .btn {
    width: max-content;
  }
  .map-frame {
    min-height: 520px;
    height: 72vh;
  }
}

/* === Requested fixes: active header, tidy map page, mod buttons, expired/order states === */
.nav-links > a.is-active:not(.btn) {
  color: var(--accent);
  border: 1px solid rgba(215,221,231,.34);
  background: rgba(215,221,231,.08);
  box-shadow: inset 0 0 0 1px rgba(215,221,231,.08), 0 0 24px rgba(215,221,231,.08);
  border-radius: 999px;
  padding: 7px 11px;
}
.nav-links > a.is-active:not(.btn):hover {
  color: var(--accent);
  background: rgba(215,221,231,.13);
}

.map-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .55fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: stretch;
  padding: clamp(3rem, 8vw, 6rem) 0 1.2rem;
}
.map-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: .86;
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.map-tips-card {
  border-radius: 28px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  align-self: end;
}
.map-tips-card ul {
  margin: 0;
  padding-left: 1.1rem;
}
.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 24px 24px 0 0;
  border-bottom: 0;
}
.map-toolbar h2,
.map-toolbar p { margin: 0; }
.map-toolbar-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.map-toolbar + .map-frame-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.mod-inline-list {
  gap: .65rem !important;
}
.mod-inline-link {
  display: inline-flex !important;
  align-items: center;
  gap: .4rem;
  padding: .55rem .78rem;
  border: 1px solid rgba(215,221,231,.22) !important;
  border-radius: 999px;
  background: rgba(215,221,231,.055);
  color: var(--text) !important;
  font-weight: 800;
  font-size: .88rem !important;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.mod-inline-link:hover,
.mod-inline-link:focus-visible {
  color: #10160c !important;
  background: linear-gradient(135deg, var(--accent), #aeb7c5);
  border-color: rgba(215,221,231,.72) !important;
  box-shadow: 0 12px 28px rgba(215,221,231,.18);
  transform: translateY(-2px);
  outline: none;
}
.mod-inline-link-disabled,
.mod-inline-link-disabled:hover {
  cursor: default;
  opacity: .72;
  color: var(--muted) !important;
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: none !important;
  transform: none !important;
}

.status-badge + .muted.tiny {
  display: block;
  margin-top: .35rem;
}
.expired-orders-page .orders-table td {
  vertical-align: top;
}

@media (max-width: 840px) {
  .map-hero {
    grid-template-columns: 1fr;
  }
  .map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .map-toolbar-actions {
    justify-content: flex-start;
  }
}

/* === Map selector + 5 second iZurvive loading state === */
.map-selector-card {
  border-radius: 28px;
  padding: clamp(1.1rem, 3vw, 1.45rem);
  margin-bottom: 1.1rem;
}
.map-selector-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.map-selector-header h2,
.map-selector-header p {
  margin: 0;
}
.map-selector-header > p {
  max-width: 520px;
  text-align: right;
}
.map-selector-groups {
  display: grid;
  gap: 1rem;
}
.map-selector-group {
  display: grid;
  gap: .65rem;
}
.map-selector-group h3 {
  margin: 0;
  color: var(--accent);
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.map-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.map-choice {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
  min-width: 148px;
  border: 1px solid rgba(215,221,231,.2);
  border-radius: 18px;
  padding: .78rem .9rem;
  background: rgba(215,221,231,.045);
  color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.map-choice span {
  font-weight: 900;
  line-height: 1.05;
}
.map-choice small {
  color: var(--muted);
  font-weight: 800;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.map-choice:hover,
.map-choice:focus-visible,
.map-choice.is-active {
  border-color: rgba(215,221,231,.68);
  background: linear-gradient(135deg, rgba(215,221,231,.18), rgba(141,207,63,.08));
  box-shadow: 0 14px 30px rgba(215,221,231,.12), inset 0 0 0 1px rgba(215,221,231,.08);
  transform: translateY(-2px);
  outline: none;
}
.map-choice.is-active {
  color: var(--accent);
}
.map-choice.is-active small {
  color: var(--text);
}
.map-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}
.map-loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.map-loader-card {
  transform: translateY(0);
  animation: mapLoaderFloat 1.7s ease-in-out infinite alternate;
}
.map-frame.is-map-loading {
  filter: grayscale(.2) brightness(.62);
}
.map-frame-card:has(.map-loading-overlay.is-visible) .map-fallback-note {
  display: none;
}
@keyframes mapLoaderFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}

@media (max-width: 840px) {
  .map-selector-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .map-selector-header > p {
    text-align: left;
  }
  .map-choice {
    min-width: min(100%, 160px);
    flex: 1 1 145px;
  }
}

.priority-sync-card {
  margin: 1rem 0;
  border: 1px solid rgba(215,221,231,.12);
}
.priority-sync-card summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: .03em;
}
.priority-sync-card summary::marker {
  color: var(--accent);
}
.admin-logo-reset-form,
.admin-inline-sync {
  margin-top: .85rem;
}
.admin-inline-sync {
  margin-bottom: 1rem;
}
.admin-order-card code,
.order-sync-card code {
  color: var(--accent);
  background: rgba(215,221,231,.08);
  border: 1px solid rgba(215,221,231,.12);
  border-radius: 8px;
  padding: .08rem .35rem;
}

/* === Order admin workflow === */
.manual-order-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin: 1rem 0 1.4rem;
  border-radius: 22px;
}
.manual-order-panel p {
  margin: 0;
}
.admin-actions.compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}
.admin-order-section-heading {
  margin: 1.4rem 0 .9rem;
}
.admin-order-section-heading h3,
.admin-order-section-heading p {
  margin-bottom: .25rem;
}
.synced-heading {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
  min-width: min(100%, 340px);
}
.admin-order-actions form {
  margin: 0;
}
.admin-order-actions .btn {
  width: max-content;
  white-space: nowrap;
}
.synced-order-card {
  border-color: rgba(215,221,231,.16);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .28rem .58rem;
  background: rgba(215,221,231,.1);
  border: 1px solid rgba(215,221,231,.18);
  color: var(--accent);
  font-weight: 900;
  text-transform: capitalize;
}
@media (max-width: 780px) {
  .manual-order-panel,
  .admin-order-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-actions.compact,
  .admin-order-actions {
    justify-content: flex-start;
  }
  .admin-order-actions .btn,
  .admin-order-actions form {
    width: 100%;
  }
}


/* === Admin order views: confirm, active, cancelled === */
.admin-orders-shell {
  display: grid;
  gap: 1.1rem;
}
.admin-order-hero {
  padding: clamp(1rem, 2vw, 1.45rem);
  border-radius: 28px;
  border-color: rgba(215,221,231,.12);
  align-items: center;
}
.admin-order-hero .lead {
  max-width: 820px;
}
.admin-order-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .85rem;
}
.admin-order-stat {
  display: grid;
  gap: .35rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.admin-order-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(215,221,231,.32);
  background: rgba(215,221,231,.06);
}
.admin-order-stat span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.admin-order-stat strong {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1;
}
.admin-order-list {
  display: grid;
  gap: 1rem;
}
.admin-order-main {
  display: grid;
  gap: .72rem;
  min-width: 0;
}
.admin-order-main h3 {
  margin: 0;
}
.admin-order-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}
.admin-order-card-head .eyebrow {
  margin: 0;
}
.admin-order-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .65rem;
}
.admin-order-meta-grid p {
  display: grid;
  gap: .2rem;
  margin: 0;
  padding: .65rem .75rem;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  min-width: 0;
}
.admin-order-meta-grid strong {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.admin-order-meta-grid span,
.admin-order-meta-grid code {
  overflow-wrap: anywhere;
}
.admin-order-alert {
  margin: .15rem 0 0;
  padding: .75rem .85rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 202, 87, .24);
  background: rgba(255, 202, 87, .08);
  color: #ffe6a5;
  font-weight: 800;
}
.needs-confirmation-card {
  border-color: rgba(255, 202, 87, .18);
}
.active-order-card {
  border-color: rgba(215,221,231,.16);
}
.cancelled-order-card {
  border-color: rgba(255, 111, 111, .18);
}
.admin-order-actions {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: .72rem;
  min-width: min(100%, 260px);
  padding: .85rem;
  border-radius: 20px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.admin-order-actions form {
  margin: 0;
}
.admin-order-actions .btn,
.admin-order-actions form {
  width: 100%;
}
.admin-order-actions .btn {
  justify-content: center;
  min-height: 42px;
  white-space: normal;
  text-align: center;
}
.relaxed-actions {
  gap: .85rem;
}
.status-badge.warning {
  color: #ffe6a5;
  background: rgba(255, 202, 87, .1);
  border-color: rgba(255, 202, 87, .24);
}
.status-badge.danger {
  color: #ffd0d0;
  background: rgba(255, 111, 111, .1);
  border-color: rgba(255, 111, 111, .24);
}
@media (max-width: 920px) {
  .admin-order-card {
    grid-template-columns: 1fr;
  }
  .admin-order-actions {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}
@media (max-width: 560px) {
  .admin-order-meta-grid {
    grid-template-columns: 1fr;
  }
  .admin-order-actions {
    grid-template-columns: 1fr;
  }
}

/* === Priority sync admin polish === */
.priority-sync-card .admin-server-grid > label {
  min-width: 0;
}
.priority-sync-card .admin-server-grid input,
.priority-sync-card .admin-server-grid select {
  width: 100%;
  box-sizing: border-box;
}
.priority-sync-card .priority-path-field small {
  display: block;
  line-height: 1.35;
  margin-top: .55rem;
}
.priority-sync-actions {
  gap: 1.2rem !important;
  margin-top: 1.2rem;
  align-items: center;
}
.priority-sync-actions .btn {
  min-width: 220px;
  justify-content: center;
}
@media (max-width: 780px) {
  .priority-sync-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* === Priority sync server form size/spacing fix === */
.priority-sync-card .admin-server-grid {
  align-items: start !important;
  row-gap: 1.35rem !important;
}

.priority-sync-card .admin-server-grid > label {
  align-self: start !important;
  min-height: 0 !important;
}

.priority-sync-card .admin-server-grid input,
.priority-sync-card .admin-server-grid select {
  height: 64px !important;
  min-height: 64px !important;
  line-height: 1.2 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.priority-sync-card .priority-path-field {
  align-self: start !important;
}

.priority-sync-card .priority-path-field small {
  min-height: 0 !important;
}

.priority-sync-actions {
  margin-top: 2rem !important;
  padding-top: .35rem !important;
  gap: 1.35rem !important;
}

/* === Admin servers layout refinement === */
.admin-server-create-section {
  display: block !important;
}

.admin-server-create-form {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem 1.45rem !important;
  width: 100%;
}

.admin-server-create-form > h2,
.admin-server-create-form > .priority-sync-card,
.admin-server-create-form > .admin-server-submit {
  grid-column: 1 / -1;
}

.admin-server-create-form > .admin-server-info-field,
.admin-server-create-form > .admin-server-mods-field {
  grid-column: span 3;
}

.admin-server-create-form > .admin-featured-field {
  grid-column: 1 / -1;
}

.admin-server-create-form textarea {
  min-height: 130px;
}

.priority-sync-card .admin-server-grid {
  align-items: start !important;
}

.priority-sync-card .admin-server-grid > label {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: .55rem !important;
  height: auto !important;
  min-height: 0 !important;
}

.priority-sync-card .admin-server-grid input,
.priority-sync-card .admin-server-grid select {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  flex: 0 0 56px !important;
}

.priority-sync-card .priority-path-help {
  margin: .9rem 0 0 !important;
  max-width: 880px;
}

.priority-sync-actions {
  margin-top: 1.55rem !important;
}

@media (max-width: 980px) {
  .admin-server-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-server-create-form > .admin-server-info-field,
  .admin-server-create-form > .admin-server-mods-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .admin-server-create-form {
    grid-template-columns: 1fr;
  }
}

/* === Store product mappings === */
.product-sync-mappings-field {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}
.product-sync-mappings-field textarea {
  width: 100%;
  min-height: 118px;
  box-sizing: border-box;
  resize: vertical;
}
.product-sync-mappings-field small {
  color: var(--muted);
  line-height: 1.4;
}
.priority-sync-actions {
  align-items: stretch;
}
.priority-sync-actions .btn {
  margin-top: .15rem;
}

/* Business store additions */
.product-carousel-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.75rem;
}
.product-carousel-strip img,
.blog-card-image,
.article-hero-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
}
.blog-card-image { margin-bottom: 1rem; }
.article-hero-image { margin-bottom: 1.25rem; max-height: 620px; }
.steam-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.admin-successful-orders-table code,
.orders-table code { word-break: break-word; }
.optional-connection { opacity: 0.85; }

.website-package-panel,
.currency-guide {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}
.checkbox-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}
.currency-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.currency-select-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}
.currency-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.variant-summary {
  display: block;
  margin-top: 0.5rem;
}
.inline-admin-form {
  display: grid;
  gap: 0.5rem;
  min-width: 170px;
}
.inline-admin-form input[type="date"] {
  width: 100%;
}
.admin-order-actions-cell {
  min-width: 190px;
}

/* v5 checkout cleanup */
.select-box select {
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.variant-summary {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
}
.variant-summary strong {
  color: var(--accent);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.variant-summary span {
  color: var(--text);
  font-weight: 800;
}
.variant-summary ul {
  margin: 0.2rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}
.currency-panel span {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.currency-panel small {
  color: var(--muted);
  font-size: 0.82rem;
}
.currency-panel.hidden,
.currency-panel[hidden] {
  display: none !important;
}
.gift-requirements {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* v8 product option clarity and live checkout currency */
.variant-option-guide {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding: 0.9rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
}
.variant-option-guide > strong {
  color: var(--text);
  font-size: 0.95rem;
}
.variant-option-list {
  display: grid;
  gap: 0.65rem;
}
.variant-option-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  width: 100%;
  padding: 0.8rem;
  text-align: left;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  cursor: pointer;
}
.variant-option-card:hover,
.variant-option-card.active {
  border-color: rgba(245, 174, 0, 0.65);
  background: rgba(245, 174, 0, 0.08);
}
.variant-option-number {
  grid-row: span 3;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  color: #111;
  background: var(--accent);
  font-weight: 900;
}
.variant-option-name {
  font-weight: 900;
  line-height: 1.25;
}
.variant-option-card small,
.variant-option-card em {
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}
.variant-option-card em {
  font-size: 0.82rem;
}
@media (max-width: 680px) {
  .variant-option-card {
    grid-template-columns: 1fr;
  }
  .variant-option-number,
  .variant-option-card small,
  .variant-option-card em {
    grid-column: 1;
  }
}

/* v9 GBP-only checkout and modal product option picker */
.native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.select-box-heading {
  color: var(--text);
  font-weight: 900;
  font-size: 1.05rem;
}
.variant-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 0 1rem;
  background: rgba(0,0,0,.28);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  text-align: left;
}
.variant-picker-trigger:hover,
.variant-picker-trigger[aria-expanded="true"] {
  border-color: rgba(241,164,0,.6);
  background: rgba(241,164,0,.08);
}
.variant-picker-chevron {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
}
.variant-picker-open {
  overflow: hidden;
}
.variant-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}
.variant-picker-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.variant-picker-dialog {
  position: relative;
  width: min(760px, 96vw);
  max-height: min(82vh, 760px);
  overflow-y: auto;
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(23, 35, 47, .98), rgba(12, 19, 16, .98));
  box-shadow: 0 24px 90px rgba(0,0,0,.55);
  color: var(--text);
}
.variant-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.variant-picker-header h4 {
  margin: .1rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}
.variant-picker-header .eyebrow {
  margin: 0;
}
.variant-picker-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.variant-option-list-modal {
  gap: .8rem;
}
.variant-option-list-modal .variant-option-card,
.product-option-box .variant-option-card {
  appearance: none;
  font: inherit;
  color: var(--text) !important;
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 18px !important;
  padding: 1rem !important;
  box-shadow: none !important;
  text-align: left !important;
}
.variant-option-list-modal .variant-option-card:hover,
.variant-option-list-modal .variant-option-card.active,
.product-option-box .variant-option-card:hover,
.product-option-box .variant-option-card.active {
  border-color: rgba(241,164,0,.72) !important;
  background: rgba(241,164,0,.1) !important;
}
.variant-option-list-modal .variant-option-number,
.product-option-box .variant-option-number {
  color: #151515 !important;
  background: var(--accent) !important;
}
.variant-option-list-modal .variant-option-name,
.product-option-box .variant-option-name {
  color: var(--text) !important;
  font-weight: 900 !important;
  font-style: normal !important;
}
.variant-option-list-modal .variant-option-card small,
.variant-option-list-modal .variant-option-card em,
.product-option-box .variant-option-card small,
.product-option-box .variant-option-card em {
  color: var(--muted) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  text-align: left !important;
}
@media (max-width: 680px) {
  .variant-picker-dialog {
    width: 96vw;
    max-height: 88vh;
    border-radius: 20px;
  }
  .variant-option-list-modal .variant-option-card {
    grid-template-columns: 1fr;
  }
}

/* v10 clean product option modal */
.product-option-picker-v10 {
  display: grid;
  gap: 1rem;
}
.product-option-picker-v10 > select.native-select-hidden,
.product-option-picker-v10 select.native-select-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}
.product-option-picker-v10 .cds-option-trigger-v10,
.product-option-picker-v10 button.cds-option-trigger-v10 {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 64px !important;
  padding: 0 1.2rem !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 18px !important;
  background: rgba(6, 11, 15, .76) !important;
  color: var(--text) !important;
  font: inherit !important;
  font-weight: 900 !important;
  text-align: left !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035) !important;
  cursor: pointer !important;
}
.product-option-picker-v10 .cds-option-trigger-v10:hover,
.product-option-picker-v10 .cds-option-trigger-v10[aria-expanded="true"] {
  border-color: rgba(241,164,0,.78) !important;
  background: rgba(241,164,0,.08) !important;
}
.product-option-picker-v10 .variant-summary {
  padding: .9rem 1rem;
  border: 1px solid rgba(241,164,0,.28);
  border-radius: 16px;
  background: rgba(241,164,0,.065);
}
.variant-picker-modal:not(.hidden) {
  display: grid !important;
}
.variant-picker-modal .variant-picker-backdrop {
  background: rgba(0, 0, 0, .82) !important;
}
.variant-picker-modal .cds-option-dialog-v10 {
  width: min(820px, calc(100vw - 2rem)) !important;
  max-height: min(84vh, 780px) !important;
  overflow: auto !important;
  padding: clamp(1.1rem, 3vw, 1.7rem) !important;
  border: 1px solid rgba(241,164,0,.24) !important;
  border-radius: 28px !important;
  background: linear-gradient(180deg, rgba(18, 31, 42, .98), rgba(13, 22, 17, .98)) !important;
  box-shadow: 0 28px 100px rgba(0,0,0,.65) !important;
}
.cds-option-list-v10 {
  display: grid !important;
  gap: .95rem !important;
}
.variant-picker-modal .cds-option-card-v10,
.variant-picker-modal button.cds-option-card-v10 {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 1rem !important;
  width: 100% !important;
  min-height: 96px !important;
  padding: 1rem !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.055) !important;
  color: var(--text) !important;
  text-align: left !important;
  font: inherit !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
.variant-picker-modal .cds-option-card-v10:hover,
.variant-picker-modal .cds-option-card-v10.active,
.variant-picker-modal .cds-option-card-v10:focus-visible {
  border-color: rgba(241,164,0,.82) !important;
  background: rgba(241,164,0,.12) !important;
  outline: none !important;
}
.variant-picker-modal .cds-option-card-v10 .variant-option-number {
  grid-row: auto !important;
  min-width: 92px !important;
  padding: .55rem .75rem !important;
  border-radius: 999px !important;
  background: var(--accent) !important;
  color: #111 !important;
  font-weight: 950 !important;
  text-align: center !important;
}
.variant-option-content-v10 {
  display: grid !important;
  gap: .25rem !important;
  min-width: 0 !important;
}
.variant-picker-modal .variant-option-name {
  color: var(--text) !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
}
.variant-picker-modal .variant-option-price {
  color: var(--accent) !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}
.variant-picker-modal .variant-option-perk {
  color: var(--muted) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}
.variant-option-cta-v10 {
  white-space: nowrap !important;
  align-self: center !important;
  padding: .55rem .75rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(241,164,0,.4) !important;
  color: var(--text) !important;
  background: rgba(241,164,0,.14) !important;
  font-weight: 900 !important;
  font-size: .85rem !important;
}
@media (max-width: 720px) {
  .variant-picker-modal .cds-option-dialog-v10 {
    width: calc(100vw - 1rem) !important;
    max-height: 88vh !important;
    border-radius: 22px !important;
  }
  .variant-picker-modal .cds-option-card-v10,
  .variant-picker-modal button.cds-option-card-v10 {
    grid-template-columns: 1fr !important;
  }
  .variant-picker-modal .cds-option-card-v10 .variant-option-number,
  .variant-option-cta-v10 {
    width: fit-content !important;
  }
}

/* v11 option modal viewport fix: keep package picker in the customer's current viewport and make it scroll cleanly */
body.variant-picker-open {
  overflow: hidden !important;
}
body > .variant-picker-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: grid !important;
  place-items: center !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}
body > .variant-picker-modal.hidden {
  display: none !important;
}
body > .variant-picker-modal .variant-picker-backdrop {
  position: fixed !important;
  inset: 0 !important;
}
body > .variant-picker-modal .cds-option-dialog-v10,
body > .variant-picker-modal .variant-picker-dialog {
  width: min(820px, calc(100vw - 2rem)) !important;
  max-height: calc(100dvh - 2rem) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  margin: auto !important;
}
@media (max-height: 720px), (max-width: 720px) {
  body > .variant-picker-modal {
    place-items: start center !important;
  }
  body > .variant-picker-modal .cds-option-dialog-v10,
  body > .variant-picker-modal .variant-picker-dialog {
    max-height: none !important;
    margin: 0 auto !important;
  }
}


/* === v12 dark-grey branding refresh === */
:root {
  --bg: #111317;
  --panel: rgba(24, 26, 30, .82);
  --panel-strong: rgba(32, 35, 41, .92);
  --text: #f5f7fa;
  --muted: #b4bbc6;
  --line: rgba(255,255,255,.10);
  --accent: #d7dde7;
  --accent-2: #8a93a3;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
}
body {
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(215,221,231,.12), transparent 24rem),
    linear-gradient(180deg, #1b1d22 0%, #121418 56%, #0c0d10 100%) !important;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('/img/cds-logo-pattern.png');
  background-repeat: repeat;
  background-size: 560px 560px;
  opacity: .18;
}
.nav, .nav-links.open, .server-card, .server-accordion, .premium-product-card, .site-loader-card, .hero-panel, .cds-home-card, .form-card, .price-card, .faq-item, .faq-category-card, .blog-card, .profile-section-card, .glass {
  background: rgba(19, 21, 26, .84) !important;
}
.btn {
  border-color: rgba(255,255,255,.18) !important;
  background: linear-gradient(135deg, #f2f4f7, #bcc4d0) !important;
  color: #10131a !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.18), 0 0 26px rgba(188,196,208,.14) !important;
}
.btn:hover { box-shadow: 0 16px 32px rgba(0,0,0,.26), 0 0 28px rgba(188,196,208,.18) !important; }
.ghost, .danger, .admin-chip { box-shadow: none !important; }
.ghost { background: rgba(255,255,255,.05) !important; color: var(--text) !important; }
.logo-box.has-site-logo,
.footer-logo-placeholder.has-site-logo,
.cds-home-logo.has-site-logo {
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.04) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.22) !important;
}
.logo-box.has-site-logo { padding: 8px !important; border-radius: 14px !important; }
.footer-logo-placeholder.has-site-logo { padding: 4px !important; border-radius: 10px !important; }
.cds-home-logo.has-site-logo {
  padding: 18px !important;
  border-radius: 30px !important;
  width: min(340px, 78vw) !important;
  max-width: min(340px, 78vw) !important;
  aspect-ratio: 1.15 / 1 !important;
}
.cds-home-logo.has-site-logo .site-logo-image {
  transform: none !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand .site-logo-image, .footer-brand .site-logo-image { filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.hero-panel::before, .footer-main-links a:hover, .footer-policy-links a:hover { color: var(--accent); }
.status-dot { box-shadow: 0 0 26px rgba(215,221,231,.65); }
.page-shell, .shell, main { position: relative; z-index: 1; }


/* === v13 logo asset swap === */
.logo-box.has-site-logo { padding: 6px !important; }
.logo-box .site-logo-image, .footer-logo-placeholder .site-logo-image { object-fit: contain; }
.cds-home-logo.has-site-logo { width: min(520px, 82vw) !important; max-width: min(520px, 82vw) !important; aspect-ratio: auto !important; height: auto !important; min-height: 0 !important; }
.cds-home-logo.has-site-logo .site-logo-image { width: 100%; height: auto; object-fit: contain; }
body::after { background-size: 420px 420px !important; opacity: .16 !important; }


/* === v14 full uploaded CDS logo usage === */
body::after {
  background-image: url('/img/cds-logo-pattern.png') !important;
  background-size: 620px 420px !important;
  opacity: .22 !important;
}

.logo-box.has-site-logo {
  width: 104px !important;
  min-width: 104px !important;
  height: 48px !important;
  padding: 6px !important;
  border-radius: 12px !important;
}

.footer-logo-placeholder.has-site-logo {
  width: 78px !important;
  height: 34px !important;
  padding: 4px !important;
  border-radius: 10px !important;
}

.logo-box.has-site-logo .site-logo-image,
.footer-logo-placeholder.has-site-logo .site-logo-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transform: none !important;
}

/* The homepage logo box now wraps the uploaded image size/ratio instead of forcing a fixed shape.
   Padding gives the "uploaded size + box" effect: square uploads stay square, tall uploads stay tall,
   and wide logos stay wide without getting cut off. */
.cds-home-logo.has-site-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: min(860px, 92vw) !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 24px !important;
  border-radius: 34px !important;
}

.cds-home-logo.has-site-logo .site-logo-image {
  display: block !important;
  width: auto !important;
  max-width: min(780px, calc(92vw - 48px)) !important;
  height: auto !important;
  max-height: min(54vh, 520px) !important;
  object-fit: contain !important;
  transform: none !important;
}

/* Browser-favicon cache helper: these unique v14 icon URLs replace old cached /favicon.ico usage. */


/* === v15 square logo containers + admin-upload consistency ===
   Every visible site logo container is square. The uploaded logo is contained
   without stretching/cropping, and the homepage uses the same uploaded logo
   source as header/footer so CPanel uploads update all main placements. */
.logo-box,
.logo-box.has-site-logo {
  width: 64px !important;
  min-width: 64px !important;
  height: 64px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 8px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.footer-logo-placeholder,
.footer-logo-placeholder.has-site-logo {
  width: 54px !important;
  min-width: 54px !important;
  height: 54px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 7px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.cds-home-logo,
.cds-home-logo.has-site-logo {
  width: min(560px, 82vw) !important;
  max-width: min(560px, 82vw) !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  padding: clamp(20px, 4vw, 38px) !important;
  border-radius: 34px !important;
  overflow: hidden !important;
}

.logo-box .site-logo-image,
.logo-box.has-site-logo .site-logo-image,
.footer-logo-placeholder .site-logo-image,
.footer-logo-placeholder.has-site-logo .site-logo-image,
.cds-home-logo .site-logo-image,
.cds-home-logo.has-site-logo .site-logo-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transform: none !important;
}

/* Admin/logo preview helpers also stay square so uploads preview like the live site. */
.admin-logo-preview,
.logo-preview,
.current-logo-preview,
.site-logo-preview,
.uploaded-logo-preview,
.admin-logo-current {
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
}

/* Keep brand alignment tidy now the header logo is square. */
.brand {
  min-width: 0;
}
.brand > span:last-child {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .logo-box,
  .logo-box.has-site-logo {
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
  }
  .cds-home-logo,
  .cds-home-logo.has-site-logo {
    width: min(440px, 84vw) !important;
  }
}

/* === v16 profile, FAQ, and store customization === */
.profile-avatar-wrap {
  background: linear-gradient(135deg, rgba(255,214,102,.82), rgba(191,132,24,.92)) !important;
  box-shadow: 0 0 0 1px rgba(255,198,72,.28), 0 0 34px rgba(255,198,72,.22), 0 16px 45px rgba(0,0,0,.35) !important;
}
.profile-card .profile-actions,
.profile-card .profile-actions form {
  width: 100%;
}
.profile-card .profile-actions {
  display: flex;
  align-items: stretch;
  gap: .85rem;
}
.profile-card .profile-actions > *,
.profile-card .profile-actions form {
  flex: 1 1 260px;
  display: flex;
}
.profile-card .profile-actions .btn,
.profile-card .profile-actions form .btn,
.profile-card .profile-actions a.btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 62px !important;
  height: 62px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
}
.profile-action-btn.discord-action {
  background: linear-gradient(135deg, #7289da, #5865f2) !important;
  color: #ffffff !important;
  border-color: rgba(114,137,218,.58) !important;
  box-shadow: 0 0 26px rgba(88,101,242,.18) !important;
}
.profile-action-btn.steam-action {
  background: linear-gradient(135deg, #1b2838, #2a475e) !important;
  color: #ffffff !important;
  border-color: rgba(101,148,193,.32) !important;
  box-shadow: 0 0 26px rgba(42,71,94,.24) !important;
}
.profile-action-btn.danger {
  background: linear-gradient(135deg, #692727, #a43b3b) !important;
  color: #ffffff !important;
}
.gift-redeem-form .btn.success {
  background: linear-gradient(135deg, #4fc968, #2a9e46) !important;
  color: #ffffff !important;
  border-color: rgba(99,216,122,.52) !important;
  box-shadow: 0 0 28px rgba(79,201,104,.18) !important;
}
.faq-item {
  border: 1px solid var(--faq-outline, rgba(255,255,255,.14)) !important;
  box-shadow: 0 10px 34px rgba(0,0,0,.16);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.faq-item[open], .faq-item.is-selected {
  border-color: var(--faq-open-outline, #d7a12f) !important;
  box-shadow: 0 0 0 1px var(--faq-open-outline, #d7a12f), 0 0 28px var(--faq-glow, rgba(215,161,47,.22)), 0 16px 42px rgba(0,0,0,.22) !important;
}
.premium-product-card {
  position: relative;
  border-color: var(--plan-glow, rgba(255,176,0,.22)) !important;
}
.premium-product-card::after {
  content: "";
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: -18px;
  height: 84px;
  background: var(--plan-glow, rgba(255,176,0,.22));
  filter: blur(26px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.premium-product-card:hover {
  border-color: var(--plan-glow, rgba(255,176,0,.42)) !important;
  box-shadow: 0 0 0 1px var(--plan-glow, rgba(255,176,0,.22)), 0 0 28px var(--plan-glow, rgba(255,176,0,.22)), 0 22px 55px rgba(0,0,0,.42) !important;
}
.premium-product-card > * { position: relative; z-index: 1; }
.premium-small-icon {
  border-radius: 999px;
  background: rgba(255,255,255,.08) !important;
  color: #ffffff !important;
  font-size: .95rem !important;
}
.premium-card-cta,
.premium-product-card .premium-card-cta.btn,
.premium-product-card .premium-card-cta.btn.full {
  background: var(--plan-button, #e2a10a) !important;
  color: var(--plan-button-text, #ffffff) !important;
  border-color: transparent !important;
  box-shadow: 0 16px 26px rgba(0,0,0,.22) !important;
}
.premium-card-cta:hover { filter: brightness(1.05); }
@media (max-width: 760px) {
  .profile-card .profile-actions { grid-template-columns: 1fr; }
  .profile-card .profile-actions > *,
  .profile-card .profile-actions form {
    flex-basis: 100%;
  }
  .gift-redeem-form {
    grid-template-columns: 1fr;
  }
  .gift-redeem-form .btn.success {
    width: 100%;
  }
}


/* === v17 responsive polish: desktop logo/blog fixes + mobile/tablet cleanup === */
/* Desktop-specific request: homepage logo half-size while keeping the uploaded square logo behaviour. */
.cds-home-logo,
.cds-home-logo.has-site-logo {
  width: min(280px, 42vw) !important;
  max-width: min(280px, 42vw) !important;
}

/* Desktop/blog request: keep blog images small and inside the same card on the right. */
.blog-preview-grid .blog-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(118px, 18vw, 172px) !important;
  grid-template-areas:
    "date image"
    "title image"
    "copy image"
    "link image" !important;
  column-gap: 1rem !important;
  align-items: center !important;
}
.blog-preview-grid .blog-card .blog-card-image {
  grid-area: image !important;
  width: 100% !important;
  height: clamp(92px, 12vw, 132px) !important;
  max-height: 132px !important;
  margin: 0 !important;
  border-radius: 16px !important;
  object-fit: cover !important;
}
.blog-preview-grid .blog-card .blog-date { grid-area: date !important; }
.blog-preview-grid .blog-card h3 { grid-area: title !important; }
.blog-preview-grid .blog-card p:not(.blog-date) { grid-area: copy !important; }
.blog-preview-grid .blog-card .text-link { grid-area: link !important; }

@media (hover: none), (pointer: coarse), (max-width: 900px) {
  /* Remove mouse-follow / white radial glow on touch screens. */
  body {
    background: linear-gradient(180deg, #1b1d22 0%, #121418 56%, #0c0d10 100%) !important;
  }
}

@media (max-width: 1024px) {
  html, body { overflow-x: hidden !important; }
  body::after {
    background-image: url('/img/cds-logo-pattern.png') !important;
    background-size: 360px 244px !important;
    background-position: center 18px !important;
    opacity: .28 !important;
  }
  .shell,
  .page-shell {
    width: min(100% - 24px, 920px) !important;
  }
  .page-head,
  .page-hero,
  .premium-store-head,
  .profile-head {
    padding-top: clamp(2rem, 7vw, 4rem) !important;
    text-align: center !important;
  }
  .page-head h1,
  .page-hero h1,
  .premium-store-head h1,
  .profile-head h1 {
    font-size: clamp(2.25rem, 8.5vw, 4.5rem) !important;
    line-height: .95 !important;
    letter-spacing: -.055em !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: balance;
  }
  .lead,
  .hero-subtitle {
    max-width: 620px !important;
    margin-inline: auto !important;
    text-align: center !important;
  }
  .premium-product-grid,
  .premium-product-grid-centered {
    justify-content: center !important;
    justify-items: center !important;
  }
}

@media (max-width: 720px) {
  /* Mobile header menu must sit above the hero/store/cards. */
  .nav {
    position: sticky !important;
    top: 10px !important;
    z-index: 10000 !important;
    width: min(100% - 22px, 420px) !important;
    margin: 10px auto 0 !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }
  .brand { gap: 8px !important; min-width: 0 !important; }
  .brand > span:last-child {
    font-size: .86rem !important;
    max-width: 210px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .logo-box,
  .logo-box.has-site-logo {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    padding: 6px !important;
  }
  .nav-toggle {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
  }
  .nav-links {
    position: fixed !important;
    z-index: 10001 !important;
    top: 76px !important;
    left: 18px !important;
    right: 18px !important;
    max-height: calc(100dvh - 94px) !important;
    overflow-y: auto !important;
    padding: 14px !important;
    border-radius: 18px !important;
    background: rgba(17,19,23,.985) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    box-shadow: 0 28px 80px rgba(0,0,0,.62), 0 0 0 9999px rgba(0,0,0,.18) !important;
    backdrop-filter: blur(16px) !important;
  }
  .nav-links.open { display: flex !important; }
  .nav-links a,
  .nav-links form,
  .nav-links .btn,
  .nav-links button {
    width: 100% !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }
  .nav-links > a:not(.btn),
  .nav-links .btn,
  .nav-links button {
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }

  /* Mobile centralisation and controlled hero sizing. */
  .cds-home-hero {
    min-height: auto !important;
    padding: 1.35rem 0 3rem !important;
    place-items: center !important;
  }
  .cds-home-card {
    width: min(100%, 390px) !important;
    padding: clamp(1.35rem, 7vw, 2.2rem) !important;
    border-radius: 24px !important;
    text-align: center !important;
    gap: .85rem !important;
  }
  .cds-home-logo,
  .cds-home-logo.has-site-logo {
    width: min(190px, 58vw) !important;
    max-width: min(190px, 58vw) !important;
    padding: 14px !important;
    border-radius: 22px !important;
    margin-inline: auto !important;
  }
  .cds-home-card h1 {
    font-size: clamp(2.55rem, 12.5vw, 4.25rem) !important;
    line-height: .92 !important;
    letter-spacing: -.065em !important;
  }
  .cds-home-card .lead {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }
  .cds-home-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: min(100%, 280px) !important;
    margin-inline: auto !important;
  }
  .cds-home-actions .btn { width: 100% !important; }

  /* Store mobile: avoid split/overflowed hero text and keep product cards centered. */
  .premium-store-head h1 {
    font-size: clamp(2.05rem, 10vw, 3.1rem) !important;
    line-height: .94 !important;
    letter-spacing: -.05em !important;
    max-width: 12ch !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  .premium-store-head .lead {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    max-width: 320px !important;
  }
  :root { --cds-card-compact-width: min(100%, 306px) !important; }
  .premium-product-grid,
  .premium-product-grid-centered {
    grid-template-columns: minmax(0, var(--cds-card-compact-width)) !important;
    gap: 1.35rem !important;
  }
  .premium-list-section { padding-top: 1.5rem !important; }

  /* Blog/update cards on mobile stay readable and not giant. */
  .blog-preview-grid .blog-card {
    grid-template-columns: 1fr !important;
    grid-template-areas: "image" "date" "title" "copy" "link" !important;
    justify-items: start !important;
    gap: .65rem !important;
    text-align: left !important;
  }
  .blog-preview-grid .blog-card .blog-card-image {
    width: 100% !important;
    height: 145px !important;
    max-height: 145px !important;
    object-fit: cover !important;
  }

  /* Partnered servers: more compact but still visible. */
  .page-shell { padding: 2rem 0 3rem !important; }
  .page-hero { margin-bottom: 1.35rem !important; }
  .page-hero h1 { font-size: clamp(2.05rem, 10vw, 3.2rem) !important; }
  .hero-subtitle { font-size: .95rem !important; line-height: 1.45 !important; max-width: 320px !important; }
  .servers-accordion { gap: .75rem !important; }
  .server-accordion {
    border-radius: 18px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,.28) !important;
  }
  .server-summary {
    padding: .9rem !important;
    gap: .75rem !important;
  }
  .summary-server-name-wrap {
    gap: .55rem !important;
    align-items: center !important;
  }
  .summary-server-name {
    font-size: 1rem !important;
    line-height: 1.15 !important;
  }
  .status-pill {
    font-size: .68rem !important;
    padding: .38rem .62rem !important;
  }
  .summary-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: .55rem !important;
    width: 100% !important;
    align-items: center !important;
  }
  .summary-stat {
    min-width: 0 !important;
    align-items: start !important;
  }
  .summary-label { font-size: .7rem !important; }
  .summary-stat strong { font-size: .82rem !important; }
  .summary-toggle {
    justify-content: end !important;
    font-size: .76rem !important;
    gap: .35rem !important;
  }
  .summary-arrow {
    width: 1.55rem !important;
    height: 1.55rem !important;
  }
  .server-details {
    padding: .9rem !important;
    gap: .85rem !important;
  }
  .detail-grid {
    grid-template-columns: 1fr !important;
    gap: .55rem !important;
  }
  .detail-box {
    padding: .72rem !important;
    border-radius: 13px !important;
  }
  .detail-label { font-size: .68rem !important; margin-bottom: .25rem !important; }
  .detail-box strong { font-size: .82rem !important; line-height: 1.25 !important; }
  .mods-panel { padding: .75rem !important; border-radius: 14px !important; }
  .mods-panel-header { margin-bottom: .65rem !important; }
  .mod-inline-list,
  .mod-list {
    gap: .35rem !important;
  }
  .mod-inline-link,
  .mod-list span,
  .mod-list a {
    font-size: .68rem !important;
    padding: .32rem .48rem !important;
    border-radius: 999px !important;
  }

  /* General footer/mobile centering. */
  .site-footer { padding-inline: 14px !important; }
  .footer-inner { max-width: 360px !important; }
  .footer-main-links { gap: .7rem .9rem !important; }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .nav { z-index: 10000 !important; }
  .nav-links.open { z-index: 10001 !important; }
  .cds-home-logo,
  .cds-home-logo.has-site-logo {
    width: min(240px, 34vw) !important;
    max-width: min(240px, 34vw) !important;
  }
  .server-summary { padding: 1.1rem !important; }
  .server-details { padding: 1.1rem !important; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}


/* === v18 server status + ping colours === */
.status-pill.online,
.badge.online,
.server-status-text.online,
[data-role="status-text"].online {
  color: #78f08a !important;
}

.status-pill.online,
.badge.online {
  background: rgba(49, 214, 88, .16) !important;
  border: 1px solid rgba(94, 240, 122, .36) !important;
  box-shadow: 0 0 22px rgba(49, 214, 88, .12) !important;
}

.status-pill.offline,
.badge.offline,
.server-status-text.offline,
[data-role="status-text"].offline {
  color: #ff7777 !important;
}

.status-pill.offline,
.badge.offline {
  background: rgba(255, 82, 82, .15) !important;
  border: 1px solid rgba(255, 113, 113, .34) !important;
  box-shadow: 0 0 22px rgba(255, 82, 82, .10) !important;
}

.ping-value.ping-good,
[data-role="ping"].ping-good,
[data-role="ping-detail"].ping-good {
  color: #78f08a !important;
  text-shadow: 0 0 18px rgba(49, 214, 88, .14);
}

.ping-value.ping-warn,
[data-role="ping"].ping-warn,
[data-role="ping-detail"].ping-warn {
  color: #ffbf45 !important;
  text-shadow: 0 0 18px rgba(255, 176, 0, .14);
}

.ping-value.ping-bad,
[data-role="ping"].ping-bad,
[data-role="ping-detail"].ping-bad {
  color: #ff7777 !important;
  text-shadow: 0 0 18px rgba(255, 82, 82, .14);
}

@media (max-width: 720px) {
  .status-pill.online,
  .status-pill.offline {
    font-weight: 900;
  }
}


/* === v19 mobile server summary layout === */
@media (max-width: 720px) {
  .server-accordion .server-summary {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.9rem !important;
    padding: 1.25rem 1rem !important;
  }

  .server-summary .summary-main {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .server-summary .summary-server-name-wrap {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    flex-wrap: wrap !important;
    text-align: center !important;
  }

  .server-summary .summary-server-name {
    margin: 0 !important;
    text-align: center !important;
    line-height: 1.08 !important;
  }

  .server-summary .status-pill {
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  .server-summary .summary-stats {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(90px, auto)) !important;
    justify-content: center !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 0.7rem 1.75rem !important;
    text-align: center !important;
  }

  .server-summary .summary-stat {
    min-width: 0 !important;
    width: auto !important;
    display: grid !important;
    justify-items: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .server-summary .summary-label,
  .server-summary .summary-stat strong {
    width: 100% !important;
    text-align: center !important;
  }

  .server-summary .summary-toggle {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.65rem !important;
    margin-top: 0.15rem !important;
    text-align: center !important;
  }

  .server-summary .summary-toggle > span:first-child {
    text-align: center !important;
  }
}


/* === v20 mobile server summary: details on line two === */
@media (max-width: 720px) {
  .server-summary .summary-stats {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(74px, auto)) !important;
    justify-content: center !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 0.45rem 0.85rem !important;
    text-align: center !important;
  }

  .server-summary .summary-toggle {
    grid-column: auto !important;
    width: auto !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.45rem !important;
    margin-top: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .server-summary .summary-toggle > span:first-child {
    text-align: center !important;
    font-size: clamp(0.88rem, 3.25vw, 1rem) !important;
    line-height: 1.1 !important;
  }

  .server-summary .summary-arrow {
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
    margin-left: 0 !important;
  }

  .server-summary .summary-label {
    font-size: clamp(0.74rem, 3vw, 0.88rem) !important;
  }

  .server-summary .summary-stat strong {
    font-size: clamp(0.95rem, 3.75vw, 1.12rem) !important;
  }
}

@media (max-width: 380px) {
  .server-summary .summary-stats {
    grid-template-columns: repeat(3, minmax(64px, auto)) !important;
    gap: 0.35rem 0.55rem !important;
  }
  .server-summary .summary-toggle > span:first-child {
    font-size: 0.82rem !important;
  }
  .server-summary .summary-arrow {
    width: 1.75rem !important;
    height: 1.75rem !important;
    min-width: 1.75rem !important;
  }
}


/* === v21 mobile store title fit === */
.store-mobile-fit-title {
  display: grid;
  justify-items: center;
  text-align: center;
}

.store-mobile-fit-title span {
  display: block;
  max-width: 100%;
}

@media (max-width: 720px) {
  .premium-store-head,
  .premium-store-head.page-head,
  .page-head.shell.centered.premium-store-head {
    width: min(100%, calc(100vw - 32px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
  }

  .premium-store-head .store-mobile-fit-title,
  .store-mobile-fit-title {
    width: 100% !important;
    max-width: calc(100vw - 34px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    justify-items: center !important;
    font-size: clamp(2.35rem, 11vw, 3.45rem) !important;
    line-height: .92 !important;
    letter-spacing: -.055em !important;
    overflow: hidden !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .store-mobile-fit-title span {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .premium-store-head .lead {
    width: min(100%, 360px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}

@media (max-width: 390px) {
  .premium-store-head .store-mobile-fit-title,
  .store-mobile-fit-title {
    font-size: clamp(2rem, 10.3vw, 2.75rem) !important;
    letter-spacing: -.05em !important;
  }
}


/* === v22 server owner portal, countdowns, FAQ groups, badges, order tracking === */
.admin-owner-tools .admin-grid,
.server-owner-grid,
.owner-date-grid,
.server-countdown-grid,
.server-owner-info-grid,
.faq-category-grid {
  display: grid;
  gap: 1rem;
}

.admin-owner-tools .admin-grid,
.server-owner-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-date-grid,
.server-countdown-grid,
.server-owner-info-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-mini-list,
.owner-submission-history {
  display: grid;
  gap: .75rem;
}

.admin-inline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: .8rem;
  background: rgba(255,255,255,.035);
}

.owner-submission-preview {
  display: grid;
  gap: .45rem;
  max-height: 280px;
  overflow: auto;
  padding-right: .35rem;
}

.owner-submission-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.server-countdown-card {
  border: 1px solid rgba(215,161,47,.34);
  background: rgba(215,161,47,.07);
  box-shadow: 0 0 24px rgba(215,161,47,.09);
  border-radius: 20px;
  padding: 1rem;
  display: grid;
  gap: .25rem;
}

.server-countdown-card span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 900;
}

.server-countdown-card strong {
  font-size: 1.2rem;
}

.server-countdown-card em {
  font-style: normal;
  color: #ffbf45;
  font-weight: 900;
  font-size: 1.45rem;
}

.server-countdown-card small {
  color: var(--muted);
}

.server-owner-info-grid .detail-box strong {
  white-space: pre-wrap;
  line-height: 1.55;
}

.profile-badge-strip {
  margin: 0 0 1rem;
  border-radius: 26px;
  padding: 1rem;
}

.profile-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .48rem .78rem;
  border-radius: 999px;
  border: 1px solid rgba(215,161,47,.35);
  background: rgba(215,161,47,.10);
  color: #ffd166;
  font-weight: 900;
  font-size: .86rem;
  box-shadow: 0 0 18px rgba(215,161,47,.08);
}

.profile-badge.owner-portal-link {
  color: #fff;
  background: linear-gradient(135deg, #5c6df2, #3446c7);
  border-color: rgba(120,138,255,.45);
}

.order-tracker {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .55rem;
}

.order-track-step {
  display: inline-flex;
  align-items: center;
  padding: .28rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.order-track-step.is-done {
  color: #78f08a;
  border-color: rgba(94,240,122,.32);
  background: rgba(49,214,88,.10);
}

.faq-category-grid {
  gap: 1.25rem;
}

.faq-category-card {
  border-radius: 24px;
  padding: 1.1rem;
  border: 1px solid var(--faq-outline, rgba(255,255,255,.14)) !important;
  box-shadow: 0 0 22px var(--faq-glow, rgba(215,161,47,.10));
}

.faq-category-card .compact-title {
  margin-bottom: .65rem;
}

.faq-category-card .compact-title h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.server-owner-page textarea {
  min-height: 130px;
}

@media (max-width: 900px) {
  .admin-owner-tools .admin-grid,
  .server-owner-grid {
    grid-template-columns: 1fr;
  }
  .admin-inline-row {
    flex-direction: column;
    align-items: stretch;
  }
}


/* === v24 orders/downloads + compact store editor === */
.profile-orders-table-clean th:nth-child(1),
.profile-orders-table-clean td:nth-child(1) { width: 34%; }
.profile-orders-table-clean th:nth-child(2),
.profile-orders-table-clean td:nth-child(2) { width: 14%; }
.profile-orders-table-clean th:nth-child(3),
.profile-orders-table-clean td:nth-child(3) { width: 30%; }
.profile-orders-table-clean th:nth-child(4),
.profile-orders-table-clean td:nth-child(4) { width: 22%; }

.downloads-grid {
  display: grid;
  gap: .85rem;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 1rem;
}

.download-card > div {
  display: grid;
  gap: .25rem;
}

.admin-product-dropdown {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.035);
  padding: 0 !important;
  overflow: hidden;
}

.admin-product-dropdown + .admin-product-dropdown {
  margin-top: 1rem;
}

.admin-product-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-weight: 900;
}

.admin-product-summary::-webkit-details-marker {
  display: none;
}

.admin-product-summary::after {
  content: "▾";
  color: var(--muted);
  transition: transform .2s ease;
}

.admin-product-dropdown[open] .admin-product-summary::after {
  transform: rotate(180deg);
}

.admin-product-summary small {
  color: var(--muted);
  font-weight: 800;
}

.admin-product-fields {
  display: grid;
  gap: .9rem;
  padding: 0 1.15rem 1.15rem;
}

@media (max-width: 760px) {
  .profile-orders-table-clean,
  .profile-orders-table-clean thead,
  .profile-orders-table-clean tbody,
  .profile-orders-table-clean tr,
  .profile-orders-table-clean th,
  .profile-orders-table-clean td {
    display: block;
    width: 100% !important;
  }

  .profile-orders-table-clean thead {
    display: none;
  }

  .profile-orders-table-clean tr {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .profile-orders-table-clean td {
    padding: .45rem 0 !important;
  }

  .download-card {
    align-items: stretch;
    flex-direction: column;
  }

  .download-card .btn {
    width: 100%;
  }
}

/* === v25 refined store product CPanel === */
.store-editor-form {
  gap: 1.15rem;
  padding-bottom: 34rem;
}

.store-editor-hero,
.admin-block-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.store-admin-layout {
  display: block;
}

.store-product-list {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.store-product-editor.is-live-previewing {
  border-color: rgba(226,161,10,.55);
  box-shadow: 0 0 0 1px rgba(226,161,10,.18), 0 18px 45px rgba(0,0,0,.22);
}

.refined-product-fields {
  gap: 1rem;
}

.admin-editor-block {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: .85rem;
}

.admin-editor-block h3,
.discord-fulfilment-guide h4 {
  margin: 0;
  color: var(--accent);
}

.admin-editor-block label {
  display: grid;
  gap: .35rem;
}

.variant-row-list {
  display: grid;
  gap: .8rem;
}

.variant-admin-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
  border-radius: 16px;
  padding: .85rem;
}

.variant-admin-row .variant-remove {
  align-self: end;
}

.admin-advanced-settings {
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 16px;
  padding: .9rem;
  background: rgba(255,255,255,.025);
}

.admin-advanced-settings summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--accent);
}

.admin-advanced-settings[open] {
  display: grid;
  gap: .8rem;
}

.store-live-viewer {
  position: fixed;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  z-index: 70;
  width: min(760px, calc(100vw - 2rem));
  max-height: min(72vh, calc(100vh - 6rem));
  overflow: auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  box-shadow: 0 22px 70px rgba(0,0,0,.48);
}

.live-viewer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: .35rem;
  background: linear-gradient(180deg, rgba(9,11,18,.95) 0%, rgba(9,11,18,.88) 70%, rgba(9,11,18,0) 100%);
}

.live-viewer-header h3 {
  margin: .15rem 0 0;
}

.store-live-viewer.is-collapsed {
  width: min(340px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
}

.store-live-viewer.is-collapsed .store-preview-card,
.store-live-viewer.is-collapsed .discord-fulfilment-guide {
  display: none;
}

.store-preview-card {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: .85rem;
  background: rgba(255,255,255,.035);
  display: grid;
  gap: .7rem;
}

.store-preview-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(0,0,0,.22);
}

.store-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-preview-options {
  display: grid;
  gap: .4rem;
}

.store-preview-options span,
.store-preview-note {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  border-radius: 12px;
  padding: .55rem .65rem;
  font-size: .86rem;
}

.store-preview-options em {
  color: var(--muted);
  font-style: normal;
  margin-left: .25rem;
}

.discord-fulfilment-guide {
  border: 1px solid rgba(226,161,10,.28);
  background: rgba(226,161,10,.08);
  border-radius: 18px;
  padding: 1rem;
}

.discord-fulfilment-guide ol {
  margin: .7rem 0 0 1.15rem;
  padding: 0;
  color: var(--muted);
  display: grid;
  gap: .45rem;
  font-size: .86rem;
}

.store-editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

@media (max-width: 980px) {
  .store-editor-form {
    padding-bottom: 30rem;
  }

  .store-live-viewer {
    width: min(680px, calc(100vw - 1.5rem));
    bottom: 1rem;
  }
}

@media (max-width: 760px) {
  .store-editor-form {
    padding-bottom: 0;
  }

  .store-live-viewer {
    position: static;
    transform: none;
    width: auto;
    max-height: none;
    overflow: visible;
    margin-top: 1rem;
  }

  .live-viewer-header {
    position: static;
    background: transparent;
    padding-bottom: 0;
  }
}

@media (max-width: 700px) {
  .server-card-header {
    flex-direction: column;
  }

  .server-metric-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .server-metric-row strong {
    text-align: left;
  }
}

.servers-accordion {
  display: grid;
  gap: 1rem;
}

.server-accordion {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 19, 23, 0.88);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.server-accordion summary {
  list-style: none;
}

.server-accordion summary::-webkit-details-marker {
  display: none;
}

.server-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.server-summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.summary-main {
  flex: 1;
  min-width: 0;
}

.summary-server-name-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.summary-server-name {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1;
}

.summary-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.summary-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 90px;
}

.summary-label {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

.summary-stat strong {
  font-size: 1rem;
  color: var(--text);
}

.summary-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

.summary-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(215, 221, 231, 0.2);
  background: rgba(215, 221, 231, 0.06);
  color: #d7dde7;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.server-accordion[open] .summary-arrow {
  transform: rotate(45deg);
}

.server-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

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

.detail-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 1rem;
}

.detail-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
}

.detail-box strong,
.server-error-box strong {
  display: block;
  color: var(--text);
  word-break: break-word;
}

.mods-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 1rem;
}

.mods-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mods-panel-header h3 {
  margin: 0;
  font-size: 1rem;
}

.mods-panel-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(215, 221, 231, 0.08);
  border: 1px solid rgba(215, 221, 231, 0.2);
  color: #d7dde7;
  font-weight: 800;
}

.mod-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mod-list span {
  font-size: 0.78rem;
  border: 1px solid rgba(215, 221, 231, 0.2);
  background: rgba(215, 221, 231, 0.08);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.server-error-box {
  border: 1px solid rgba(255, 120, 120, 0.15);
  background: rgba(255, 70, 70, 0.08);
  border-radius: 18px;
  padding: 1rem;
}

@media (max-width: 900px) {
  .server-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-stats {
    width: 100%;
    justify-content: space-between;
  }

  .summary-stat {
    align-items: flex-start;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .summary-stats {
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-toggle {
    width: 100%;
    justify-content: space-between;
  }
}
/* Premium store product + checkout flow */
.premium-store-head h1 { max-width: 1000px; }
.premium-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.premium-product-card {
  border-radius: 34px;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: rgba(18, 18, 12, .9);
  border-color: rgba(220, 145, 0, .25);
}
.premium-card-image-link { display: block; }
.premium-product-image {
  min-height: 350px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.premium-product-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.45));
  z-index: -1;
}
.premium-product-image.large { min-height: 520px; border-radius: 8px; overflow: hidden; }
.premium-image-border {
  width: calc(100% - 54px);
  height: calc(100% - 54px);
  min-height: 260px;
  border: 4px solid rgba(255,255,255,.92);
  border-radius: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  padding: 28px;
}
.premium-image-border h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.04em;
}
.premium-image-border p {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3.3rem);
  font-weight: 900;
}
.premium-device-icon {
  width: 120px;
  height: 80px;
  border: 12px solid white;
  border-radius: 10px;
  margin-top: 20px;
  position: relative;
}
.premium-device-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -34px;
  width: 150px;
  height: 12px;
  background: white;
}
.premium-product-body {
  display: grid;
  gap: 18px;
  text-align: center;
  padding: 34px 32px 38px;
  flex: 1;
}
.premium-product-body h3 {
  margin: 0;
  font-size: 1.6rem;
}
.premium-small-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin-right: 8px;
  background: #d88900;
  color: white;
}
.premium-product-price {
  color: #45f27a;
  font-size: 1.75rem;
  font-weight: 900;
  margin: 0;
}
.premium-product-copy { color: #b8c7d8; line-height: 1.5; margin: 0; }
.btn.amber {
  background: linear-gradient(135deg, #e39a00, #c77a00);
  color: white;
  border-color: rgba(255, 180, 43, .55);
  box-shadow: 0 14px 32px rgba(216, 137, 0, .2);
}
.checkout-page { padding: 48px 0; }
.checkout-back { color: var(--muted); display: inline-flex; margin-bottom: 16px; }
.product-detail-card { border-radius: 26px; padding: clamp(1.2rem, 3vw, 2.5rem); }
.product-detail-card > h1 { text-align: center; margin: 0 0 24px; font-size: clamp(2rem, 4vw, 3.4rem); }
.product-detail-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 36px; align-items: start; }
.product-detail-copy h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.product-detail-copy li { color: var(--text); font-weight: 700; }
.premium-long-copy { color: var(--text); line-height: 1.65; margin: 24px 0 36px; }
.checkout-wizard { display: grid; gap: 18px; }
.wizard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 10px; }
.wizard-step {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  justify-items: center;
  gap: 5px;
  cursor: pointer;
}
.wizard-step strong {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
}
.wizard-step.active strong { color: #111; background: #d88900; }
.wizard-step.active span { color: #d88900; font-weight: 800; }
.wizard-panel { display: none; gap: 14px; }
.wizard-panel.active { display: grid; }
.connection-row, .select-box, .eligibility-box, .confirm-row, .connection-field, .gift-option {
  border: 1px solid rgba(120, 149, 180, .35);
  background: rgba(30, 43, 61, .72);
  border-radius: 8px;
  padding: 16px 18px;
  color: #c3cfdb;
}
.connection-row.verified, .eligibility-box { border-color: rgba(216, 137, 0, .7); }
.select-box select {
  margin-top: 8px;
  width: 100%;
  color: var(--text);
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 12px;
}
.required { color: #d88900; font-weight: 900; }
.gift-option, .confirm-row { display: flex; align-items: center; gap: 12px; }
.gift-option input, .confirm-row input { width: auto; }
.gift-fields { display: grid; gap: 12px; }
.wizard-actions { margin-top: 10px; }
.split-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-note { border: 1px solid rgba(216,137,0,.55); border-radius: 10px; padding: 12px; color: var(--muted); }
.checkout-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(4px);
}
.checkout-loader.hidden, .hidden { display: none !important; }
.loader-card { display: grid; justify-items: center; gap: 16px; color: var(--text); }
.sound-bars { display: flex; gap: 7px; align-items: center; height: 70px; }
.sound-bars span {
  width: 8px;
  border-radius: 10px;
  background: #d88900;
  animation: bars 900ms infinite ease-in-out;
}
.sound-bars span:nth-child(1) { height: 24px; animation-delay: 0ms; }
.sound-bars span:nth-child(2) { height: 42px; animation-delay: 80ms; }
.sound-bars span:nth-child(3) { height: 58px; animation-delay: 160ms; }
.sound-bars span:nth-child(4) { height: 34px; animation-delay: 240ms; }
.sound-bars span:nth-child(5) { height: 64px; animation-delay: 320ms; }
.sound-bars span:nth-child(6) { height: 44px; animation-delay: 400ms; }
.sound-bars span:nth-child(7) { height: 28px; animation-delay: 480ms; }
@keyframes bars { 50% { transform: scaleY(.35); opacity: .65; } }
.premium-admin-plan h3 { margin: 0; color: var(--accent); }
@media (max-width: 1000px) {
  .premium-product-grid, .product-detail-layout { grid-template-columns: 1fr; }
  .premium-product-image.large { min-height: 380px; }
}
@media (max-width: 620px) {
  .wizard-steps { grid-template-columns: 1fr; }
  .split-actions { grid-template-columns: 1fr; }
  .premium-product-image { min-height: 290px; }
}

/* Premium checkout flow refinements: centered pages, clean uploaded images, locked wizard, Steam verification */
.hero-centered {
  min-height: 54vh;
  display: flex !important;
  justify-content: center;
  align-items: center;
  text-align: center;
  grid-template-columns: 1fr !important;
  padding-top: 84px;
}
.hero-copy-centered {
  max-width: 940px;
  margin-inline: auto;
}
.hero-copy-centered .lead {
  margin-inline: auto;
}
.hero-actions-centered,
.server-status-centered .section-title,
.premium-store-head {
  justify-content: center;
  text-align: center;
}
.server-status-centered,
.premium-list-section {
  text-align: center;
}
.home-server-grid {
  justify-content: center;
}
.premium-home-cta {
  text-align: center;
  justify-content: center;
}

.premium-product-grid,
.premium-product-grid-centered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 456px)); /* was 300px, 380px */
  gap: 2.4rem; /* was 2rem */
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.premium-product-card {
  overflow: hidden;
  border-radius: 36px; /* was 30px */
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 744px; /* was 620px */
  text-align: center;
}
.premium-card-image-link {
  display: block;
}
.premium-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}
.premium-product-image.large {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
}
.clean-image-card {
  background-image: none !important;
}
.clean-image-card::before,
.clean-image-card::after,
.premium-image-border {
  display: none !important;
  content: none !important;
}
.clean-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.premium-product-body {
  padding: 2.4rem; /* was 2rem */
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 1.2rem;
}

.premium-product-body h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin: 0;
  font-size: 1.85rem; /* was 1.55rem */
}

.premium-small-icon {
  display: inline-grid;
  place-items: center;
  width: 38px; /* was 32px */
  height: 38px; /* was 32px */
  background: #d99400;
  color: white;
  border-radius: 11px;
}

.premium-product-price {
  color: #43f178;
  font-size: 2rem; /* was 1.65rem */
  font-weight: 900;
  margin: 0;
}

.premium-product-copy {
  color: #b9c3b1;
  line-height: 1.7;
  font-size: 1.1rem;
}
.btn.amber,
.amber {
  background: linear-gradient(135deg, #eda100, #d88b00) !important;
  color: #fff !important;
  border-color: rgba(255,190,50,.55) !important;
  box-shadow: 0 16px 32px rgba(237,161,0,.22) !important;
}

.checkout-page {
  padding: 3.5rem 0;
}
.checkout-back {
  display: inline-flex;
  color: var(--muted);
  margin-bottom: 1rem;
}
.product-detail-card {
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.product-detail-card > h1 {
  text-align: center;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.1;
  margin: 0 0 2rem;
  letter-spacing: -.05em;
}
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(320px, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.product-detail-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 1rem;
}
.premium-long-copy {
  color: var(--text);
  line-height: 1.65;
  margin: 1.5rem 0;
}

.checkout-wizard {
  margin-top: 2rem;
}
.wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.wizard-step {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  justify-items: center;
  gap: .45rem;
  cursor: pointer;
}
.wizard-step strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
}
.wizard-step.active strong {
  background: #e39a00;
  color: #111;
}
.wizard-step.active span {
  color: #e39a00;
  font-weight: 800;
}
.wizard-step.locked,
.wizard-step:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.wizard-panel {
  display: none;
}
.wizard-panel.active {
  display: grid;
  gap: 1rem;
}
.connection-stack {
  display: grid;
  gap: 1rem;
}
.connection-row,
.select-box,
.confirm-row,
.gift-option,
.eligibility-box {
  border: 1px solid rgba(130,160,200,.35);
  background: rgba(35,49,66,.72);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
}
.connection-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}
.connection-row p {
  margin: .25rem 0 0;
  color: var(--muted);
}
.connection-row.verified {
  border-color: rgba(215,221,231,.42);
  background: rgba(215,221,231,.08);
}
.connection-check {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(215,221,231,.18);
  color: var(--accent);
  font-weight: 900;
}
.steam-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.2);
}
.connection-field,
.select-box {
  display: grid;
  gap: .75rem;
}
.select-box select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline: none;
}
.required {
  color: #e39a00;
  font-weight: 900;
}
.eligibility-box {
  min-height: 64px;
  display: flex;
  align-items: center;
}
.eligibility-loading {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
}
.eligibility-result {
  font-weight: 800;
}
.eligibility-result.is-eligible {
  color: #d7dde7;
}
.eligibility-result.is-not-eligible {
  color: #ff9a9a;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.18);
  border-top-color: #d7dde7;
  border-radius: 999px;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.gift-option,
.confirm-row {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.gift-option input,
.confirm-row input {
  width: auto;
}
.gift-fields {
  display: grid;
  gap: 1rem;
}
.split-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.wizard-actions {
  margin-top: 1rem;
}
.wizard-help,
.checkout-note {
  color: var(--muted);
  text-align: center;
  font-size: .9rem;
}
button:disabled,
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
}
.checkout-loader {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.76);
  z-index: 9999;
  display: grid;
  place-items: center;
}
.loader-card {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(17,19,23,.92);
  border-radius: 24px;
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.sound-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  height: 54px;
  margin-bottom: 1rem;
}
.sound-bars span {
  width: 7px;
  height: 20px;
  border-radius: 99px;
  background: #e39a00;
  animation: bars .8s infinite ease-in-out alternate;
}
.sound-bars span:nth-child(2) { animation-delay: .08s; }
.sound-bars span:nth-child(3) { animation-delay: .16s; }
.sound-bars span:nth-child(4) { animation-delay: .24s; }
.sound-bars span:nth-child(5) { animation-delay: .32s; }
.sound-bars span:nth-child(6) { animation-delay: .4s; }
.sound-bars span:nth-child(7) { animation-delay: .48s; }
@keyframes bars { from { height: 14px; opacity: .55; } to { height: 52px; opacity: 1; } }
.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .product-detail-media {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }
}
@media (max-width: 640px) {
  .wizard-steps {
    grid-template-columns: 1fr;
  }
  .split-actions {
    grid-template-columns: 1fr;
  }
  .premium-product-grid,
  .premium-product-grid-centered {
    grid-template-columns: 1fr;
  }
}

/* === CDS layout hotfix: centered premium/home pages and sane product sizing === */
body {
  overflow-x: hidden;
}

/* Home hero must stay truly central regardless of older grid hero styles. */
.hero.hero-centered.shell {
  width: min(1060px, calc(100% - 32px));
  min-height: 62vh;
  margin-inline: auto;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  grid-template-columns: none !important;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2rem, 5vw, 4rem) !important;
}

.hero.hero-centered .hero-copy,
.hero.hero-centered .hero-copy-centered {
  width: min(920px, 100%);
  margin-inline: auto !important;
  text-align: center !important;
  display: grid;
  justify-items: center;
}

.hero.hero-centered h1,
.hero.hero-centered .lead,
.hero.hero-centered .eyebrow {
  text-align: center !important;
}

.hero.hero-centered .lead {
  max-width: 760px;
  margin: 1.15rem auto 0 !important;
}

.hero.hero-centered .actions,
.hero-actions-centered {
  justify-content: center !important;
}

/* Premium listing page: center cards even when there is only one product. */
.premium-store-head,
.page-head.centered {
  text-align: center !important;
  justify-items: center !important;
  margin-inline: auto;
}

.premium-store-head .lead,
.page-head.centered .lead {
  margin-inline: auto !important;
}

.premium-list-section {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start;
}

.premium-product-grid.premium-product-grid-centered,
.premium-product-grid-centered {
  width: 100%;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.premium-product-grid-centered > .premium-product-card,
.premium-product-grid > .premium-product-card {
  flex: 0 1 380px;
  width: min(380px, 100%);
  max-width: 380px;
}

/* Remove generated image overlays. Uploaded image should be the image. */
.premium-product-image,
.premium-product-image.large,
.clean-image-card {
  background-image: none !important;
  background-color: rgba(255,255,255,.035) !important;
}

.premium-product-image::before,
.premium-product-image::after,
.clean-image-card::before,
.clean-image-card::after,
.premium-image-border,
.premium-device-icon {
  display: none !important;
  content: none !important;
}

.premium-product-image img,
.clean-image-card img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
}

/* Premium detail page: stop the product image/copy from overflowing sideways. */
.checkout-page.shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.product-detail-card {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  overflow: hidden;
  padding: clamp(1.25rem, 3.5vw, 3rem) !important;
}

.product-detail-card > h1 {
  max-width: 980px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem) !important;
  text-align: center !important;
  font-size: clamp(2rem, 4.6vw, 3.6rem) !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere;
}

.product-detail-layout {
  display: grid !important;
  grid-template-columns: minmax(260px, 440px) minmax(0, 1fr) !important;
  gap: clamp(1.5rem, 4vw, 3rem) !important;
  align-items: start !important;
  width: 100%;
  max-width: 1060px;
  margin-inline: auto;
}

.product-detail-media {
  width: 100%;
  max-width: 440px;
  min-width: 0;
}

.product-detail-copy {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.premium-product-image.large {
  width: 100% !important;
  max-width: 440px !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

.product-detail-copy h2,
.product-detail-copy p,
.product-detail-copy ul,
.product-detail-copy li {
  max-width: 100%;
}

.product-detail-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem) !important;
}

.checkout-wizard {
  width: 100%;
  max-width: 100%;
}

/* Larger screens: keep the detail layout balanced and centered. */
@media (min-width: 1121px) {
  .product-detail-copy {
    padding-top: .4rem;
  }
}

@media (max-width: 1120px) {
  .product-detail-layout {
    grid-template-columns: 1fr !important;
    max-width: 760px;
  }

  .product-detail-media {
    max-width: 520px;
    margin-inline: auto;
  }

  .premium-product-image.large {
    max-width: 520px !important;
    margin-inline: auto;
  }

  .product-detail-copy {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .product-detail-card {
    border-radius: 20px;
  }

  .product-detail-card > h1 {
    font-size: clamp(1.8rem, 9vw, 2.5rem) !important;
  }

  .premium-product-grid-centered > .premium-product-card,
  .premium-product-grid > .premium-product-card {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* === CDS FINAL LAYOUT FIXES - 16:9 media, centered pages, no overflow === */
html, body { min-height: 100%; }
body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden !important;
}
body > main { flex: 1 0 auto; }
.footer { flex-shrink: 0; width: min(1160px, calc(100% - 32px)); }
.shell,
.page-shell {
  width: min(1160px, calc(100% - 32px)) !important;
  max-width: 1160px !important;
  margin-inline: auto !important;
}
img { max-width: 100%; }

/* Header safety */
.nav.shell {
  width: min(1160px, calc(100% - 32px)) !important;
  max-width: 1160px !important;
}
.nav, .nav * { min-width: 0; }
.nav-links form { margin: 0; }

/* Home page */
.cds-home-hero {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vw, 7rem) 0 !important;
}
.cds-home-card {
  width: min(900px, 100%);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4.5rem);
  text-align: center;
  border-radius: 34px;
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.cds-home-logo {
  display: grid;
  place-items: center;
  width: clamp(92px, 12vw, 140px);
  aspect-ratio: 1;
  border-radius: 28px;
  border: 2px dashed rgba(215,221,231,.65);
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .08em;
  background: rgba(215,221,231,.04);
  box-shadow: inset 0 0 40px rgba(215,221,231,.08), 0 30px 80px rgba(0,0,0,.35);
}
.cds-home-card h1 {
  margin: 0;
  max-width: 920px;
  text-align: center;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: .86;
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.cds-home-card .lead {
  margin: .25rem auto 0;
  max-width: 760px;
  text-align: center;
}
.cds-home-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .75rem;
}
.cds-social-placeholders {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 800;
}
.cds-social-placeholders a { color: var(--muted); }
.cds-social-placeholders a:hover { color: var(--accent); }

/* Legacy home sections hidden: landing should be clean */
.server-status-centered,
.premium-home-cta { display: none !important; }

/* Page heads */
.page-head.centered,
.premium-store-head,
.page-hero {
  text-align: center !important;
  display: grid !important;
  justify-items: center !important;
  margin-inline: auto !important;
  padding-top: clamp(3rem, 7vw, 5.5rem) !important;
}
.page-head.centered h1,
.premium-store-head h1,
.page-hero h1 {
  max-width: 1080px;
  text-align: center !important;
  overflow-wrap: anywhere;
}
.page-head.centered .lead,
.premium-store-head .lead,
.hero-subtitle {
  max-width: 760px;
  margin-inline: auto !important;
  text-align: center !important;
}

/* Premium listing */
.premium-list-section {
  display: flex !important;
  justify-content: center !important;
  padding-top: clamp(2rem, 5vw, 4rem) !important;
}
.premium-product-grid,
.premium-product-grid-centered {
  width: 100% !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 380px)) !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: clamp(1.25rem, 3vw, 2rem) !important;
}
.premium-product-card {
  width: 100% !important;
  max-width: 380px !important;
  margin-inline: auto !important;
  overflow: hidden !important;
  border-radius: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}
.premium-card-image-link { display: block; width: 100%; }
.premium-product-image,
.premium-product-image.large,
.product-media-frame,
.clean-image-card,
.server-banner-wrap,
.premium-image-frame {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.035) !important;
}
.premium-product-image img,
.product-media-frame img,
.clean-image-card img,
.server-banner-wrap img,
.server-info-banner,
.premium-image-frame img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
.premium-product-image::before,
.premium-product-image::after,
.clean-image-card::before,
.clean-image-card::after,
.product-media-frame::before,
.product-media-frame::after,
.premium-image-border,
.premium-device-icon {
  display: none !important;
  content: none !important;
}
.premium-product-body {
  padding: 1.5rem !important;
  display: grid;
  gap: .85rem;
  text-align: center;
  flex: 1;
}
.premium-product-body h3 {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
}
.premium-product-body .btn {
  min-height: 54px;
  font-size: 1.05rem;
  border-radius: 14px;
}
.premium-product-price {
  margin: 0;
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 900;
}
.premium-product-copy {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.amber,
.btn.amber {
  background: linear-gradient(135deg, #f1a400, #d88900) !important;
  border-color: rgba(255,190,64,.4) !important;
  color: #fff !important;
  box-shadow: 0 18px 36px rgba(216,137,0,.24) !important;
}

/* Premium detail/product page */
.checkout-page.shell {
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
  padding: clamp(2rem, 5vw, 4rem) 0 !important;
}
.checkout-back {
  display: inline-flex;
  margin: 0 0 1rem;
  color: var(--muted);
}
.product-detail-card {
  width: 100% !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
  padding: clamp(1.25rem, 3vw, 2.5rem) !important;
  border-radius: 30px !important;
  overflow: hidden !important;
}
.product-detail-card > h1 {
  margin: 0 auto clamp(1.5rem, 4vw, 2.5rem) !important;
  max-width: 980px !important;
  text-align: center !important;
  font-size: clamp(2rem, 4.2vw, 3.9rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em !important;
  overflow-wrap: anywhere !important;
}
.product-detail-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr) !important;
  gap: clamp(1.5rem, 4vw, 3rem) !important;
  align-items: start !important;
  width: 100% !important;
  min-width: 0 !important;
}
.product-detail-media,
.product-detail-copy,
.product-copy-panel,
.checkout-panel {
  min-width: 0 !important;
  max-width: 100% !important;
}
.product-media-frame {
  border-radius: 22px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.product-detail-copy {
  display: grid !important;
  gap: 1.25rem !important;
}
.product-copy-panel {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 22px;
  padding: clamp(1rem, 2vw, 1.35rem);
}
.product-copy-panel h2 { margin-top: 0; }
.perk-list { padding-left: 1.25rem; margin-bottom: 1rem; }
.premium-long-copy { color: var(--text); line-height: 1.75; }
.checkout-wizard { width: 100% !important; max-width: 100% !important; }
.wizard-steps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: .75rem !important;
  margin: 1.35rem 0 !important;
}
.wizard-step {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: .35rem;
}
.wizard-step strong {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  color: var(--text);
}
.wizard-step.active strong { background: #f1a400; color: #111; }
.wizard-step.locked { opacity: .45; cursor: not-allowed; }
.wizard-panel { display: none !important; }
.wizard-panel.active { display: grid !important; gap: 1rem !important; }
.connection-row,
.select-box,
.confirm-row,
.gift-option {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(20, 31, 43, .74);
  border-radius: 16px;
  padding: 1rem;
}
.connection-row {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.connection-row p { margin: .2rem 0 0; color: var(--muted); }
.connection-row.verified { border-color: rgba(215,221,231,.32); }
.steam-avatar { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.select-box select {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  margin-top: .6rem;
  background: rgba(0,0,0,.25);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.16);
  padding: 0 1rem;
}
.required { color: #f1a400; margin-left: .4rem; }
.eligibility-box { border: 1px solid rgba(241,164,0,.45); border-radius: 16px; padding: 1rem; background: rgba(20,31,43,.7); }
.eligibility-loading { display: flex; align-items: center; gap: .7rem; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.eligibility-result.is-eligible { color: var(--accent); font-weight: 800; }
.eligibility-result.is-not-eligible { color: #ffb0b0; font-weight: 800; }
.split-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-note { border: 1px solid rgba(241,164,0,.35); border-radius: 14px; padding: .9rem; color: var(--muted); }

/* Servers page */
.page-shell { padding: clamp(2.5rem, 6vw, 5rem) 0 !important; }
.servers-accordion { display: grid; gap: 1rem; }
.server-accordion {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(9,18,10,.88);
  border-radius: 24px;
  overflow: hidden;
}
.server-accordion summary { list-style: none; }
.server-accordion summary::-webkit-details-marker { display: none; }
.server-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
}
.summary-server-name-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.summary-server-name { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.status-pill { border-radius: 999px; padding: .45rem .8rem; font-weight: 900; }
.status-pill.online { color: var(--accent); background: rgba(215,221,231,.13); }
.status-pill.offline { color: #ff9d9d; background: rgba(255,100,100,.13); }
.summary-stats { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.summary-stat { display: grid; justify-items: end; }
.summary-label { color: var(--muted); font-size: .8rem; }
.summary-toggle { color: var(--muted); font-weight: 800; }
.summary-arrow { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: .45rem; border-radius: 50%; background: rgba(215,221,231,.12); color: var(--accent); }
.server-accordion[open] .summary-arrow { transform: rotate(45deg); }
.server-details { display: grid; gap: 1rem; padding: 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; }
.detail-box,
.mods-panel,
.server-info-panel,
.server-error-box {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 1rem;
  min-width: 0;
}
.detail-label { display: block; color: var(--muted); font-size: .82rem; margin-bottom: .3rem; }
.detail-box strong { overflow-wrap: anywhere; }
.mods-panel-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: .8rem; }
.mods-panel-header h3 { margin: 0; }
.mods-panel-header > span { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 999px; color: var(--accent); border: 1px solid rgba(215,221,231,.25); background: rgba(215,221,231,.08); font-weight: 900; }
.mod-inline-list { display: flex !important; flex-wrap: wrap !important; gap: .45rem 1rem !important; max-width: 100%; overflow-wrap: anywhere; }
.mod-inline-link { color: var(--text); border-bottom: 1px solid transparent; font-size: .95rem; }
.mod-inline-link:hover { color: var(--accent); border-bottom-color: rgba(215,221,231,.5); }
.server-info-panel { padding: 0 !important; overflow: hidden !important; }
.server-banner-wrap { border-radius: 0 !important; width: 100% !important; aspect-ratio: 16 / 9 !important; max-height: 520px !important; }
.server-info-placeholder { width: 100%; height: 100%; display: grid; place-content: center; text-align: center; gap: .4rem; background: repeating-linear-gradient(135deg, rgba(215,221,231,.08) 0 12px, transparent 12px 28px), rgba(255,255,255,.03); }
.server-info-placeholder strong { font-size: clamp(2rem, 5vw, 4rem); text-transform: uppercase; }
.server-info-placeholder span { color: var(--accent); font-weight: 800; }
.server-info-content { padding: 1.25rem; }
.server-info-content h3 { margin: 0 0 .5rem; }
.server-info-content h4 { color: var(--accent); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .75rem; }
.server-info-text { white-space: pre-wrap; color: var(--muted); line-height: 1.7; }

/* Admin */
.admin-head { display: grid; gap: .8rem; }
.admin-grid { align-items: start !important; }
.form-card { align-content: start !important; }
.form-card .btn.full { min-height: 52px; padding-top: 13px; padding-bottom: 13px; }
.admin-server-edit { display: grid !important; gap: 1rem !important; }
.admin-server-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
label small { color: var(--muted); font-weight: 600; }

.hidden { display: none !important; }

@media (max-width: 1050px) {
  .product-detail-layout { grid-template-columns: 1fr !important; }
  .product-detail-media { max-width: 760px; margin-inline: auto; width: 100%; }
  .admin-server-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .cds-home-card { border-radius: 24px; }
  .cds-home-card h1 { font-size: clamp(2.7rem, 15vw, 4.2rem); }
  .product-detail-card { border-radius: 22px !important; }
  .wizard-steps { grid-template-columns: 1fr !important; }
  .split-actions { grid-template-columns: 1fr; }
  .server-summary { align-items: flex-start; flex-direction: column; }
  .summary-stats { width: 100%; justify-content: space-between; }
  .detail-grid { grid-template-columns: 1fr; }
  .admin-server-grid { grid-template-columns: 1fr; }
}

/* Final homepage + blog/FAQ update */
.cds-social-placeholders { display: none !important; }
.cds-home-hero { min-height: auto !important; padding-top: clamp(2rem, 5vw, 4rem) !important; padding-bottom: clamp(2rem, 5vw, 4rem) !important; }
.home-blog-section { padding-top: clamp(2rem, 5vw, 4rem) !important; }
.section-title.centered,
.page-head.centered { text-align: center; margin-inline: auto; }
.section-title.centered .lead,
.page-head.centered .lead { margin-inline: auto; max-width: 760px; }
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1040px;
  margin: 1.5rem auto 0;
}
.blog-index-grid { max-width: 1100px; }
.blog-card {
  padding: 1.2rem;
  border-radius: 22px;
  display: grid;
  gap: .65rem;
  align-content: start;
}
.blog-card h3 { margin: 0; font-size: 1.25rem; }
.blog-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.blog-date { color: var(--accent) !important; font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.text-link { color: var(--accent); font-weight: 900; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.empty-panel { max-width: 720px; margin: 1rem auto 0; padding: 1.25rem; text-align: center; color: var(--muted); border-radius: 18px; }
.narrow-content { max-width: 900px !important; }
.article-card { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 26px; }
.article-card h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1; margin: .5rem 0 1rem; }
.article-body { white-space: pre-wrap; color: var(--muted); line-height: 1.8; font-size: 1.05rem; }
.faq-list { display: grid; gap: .8rem; }
.faq-item { border-radius: 18px; padding: 0; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 900; color: var(--text); }
.faq-item p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--muted); line-height: 1.7; }
.admin-nested-card {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 1rem;
  margin: 1rem 0;
  display: grid;
  gap: .75rem;
}
.blog-editor-list,
.faq-editor-list,
.faq-category-editor-list,
.faq-question-list { display: grid; gap: .75rem; }

.faq-category-edit-card {
  display: grid;
  gap: .85rem;
}

.faq-question-row {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.14);
  border-radius: 14px;
  padding: .85rem;
  display: grid;
  gap: .7rem;
}

/* Footer: centered compact store-style footer on every page */
.site-footer {
  width: 100%;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: 2.4rem 1.25rem 2rem;
  background: #020403;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  position: relative;
  z-index: 2;
}
.footer-inner {
  width: min(820px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: .75rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
}
.footer-logo-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px dashed rgba(215, 221, 231, 0.65);
  background: rgba(215, 221, 231, 0.08);
  display: inline-grid;
  place-items: center;
  color: #d7dde7;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.footer-brand h2 { margin: 0; color: var(--text); font-size: 1.15rem; line-height: 1; }
.footer-description { max-width: 640px; margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.footer-main-links { display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin-top: .35rem; }
.footer-main-links a { color: var(--text); text-decoration: none; font-weight: 800; font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; transition: color .2s ease, transform .2s ease; }
.footer-main-links a:hover { color: #d7dde7; transform: translateY(-1px); }
.footer-link-icon { color: #df9800; font-weight: 900; font-size: .95rem; line-height: 1; }
.footer-link-icon.discord-icon { color: #6d7cff; }
.footer-policy-links { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; color: var(--muted); }
.footer-policy-links a { color: var(--muted); text-decoration: none; font-size: .82rem; }
.footer-policy-links a:hover { color: #d7dde7; }
.footer-copyright,
.footer-powered { margin: 0; color: var(--muted); font-size: .82rem; }
.footer-powered { margin-top: -.35rem; }

@media (max-width: 640px) {
  .footer-main-links { gap: .8rem 1rem; }
  .footer-description { font-size: .92rem; }
}

/* === MERGED FINAL: compact premium cards + hover glow === */
:root {
  --cds-card-compact-width: 317px !important;
}

.premium-product-grid,
.premium-product-grid-centered {
  grid-template-columns: repeat(auto-fit, minmax(var(--cds-card-compact-width), var(--cds-card-compact-width))) !important;
  gap: 22px !important;
  align-items: start !important;
  justify-content: center !important;
}

.premium-product-grid-centered > .premium-product-card,
.premium-product-grid > .premium-product-card,
.premium-product-card {
  width: var(--cds-card-compact-width) !important;
  max-width: var(--cds-card-compact-width) !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  border: 1px solid rgba(218, 145, 0, 0.28) !important;
  background: rgba(22, 24, 28, 0.92) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease !important;
}

.premium-product-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(255, 176, 0, 0.75) !important;
  box-shadow: 0 0 0 1px rgba(255,176,0,.28), 0 0 28px rgba(255,176,0,.22), 0 22px 55px rgba(0,0,0,.42) !important;
  filter: saturate(1.08) !important;
}

.premium-product-body {
  padding: 16px 17px 17px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  gap: 9px !important;
  min-height: 0 !important;
  text-align: center !important;
}

.premium-product-body h3 {
  min-height: 0 !important;
  margin: 0 auto !important;
  font-size: 1.25rem !important;
  line-height: 1.16 !important;
}

.premium-product-price {
  margin: 4px 0 0 !important;
  font-size: .98rem !important;
  line-height: 1.1 !important;
}

.premium-product-copy {
  margin: 6px 0 8px !important;
  font-size: .82rem !important;
  line-height: 1.42 !important;
}

.premium-product-card .btn,
.premium-product-card .btn.full,
.premium-product-card a.btn {
  width: 100% !important;
  min-height: 46px !important;
  height: 46px !important;
  padding: 8px 12px !important;
  margin-top: 2px !important;
  border-radius: 10px !important;
  font-size: .98rem !important;
  line-height: 1 !important;
}

.premium-product-card .premium-small-icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
}

@media (max-width: 680px) {
  :root { --cds-card-compact-width: min(100%, 290px) !important; }
}

/* === MERGED FINAL: product page layout — info below image, subscribe down right === */
.product-detail-card-v2 {
  padding: clamp(1.25rem, 2.6vw, 2.25rem) !important;
}

.product-detail-card-v2 > h1 {
  font-size: clamp(2rem, 4vw, 3.15rem) !important;
  margin-bottom: clamp(1.25rem, 3vw, 2rem) !important;
}

.product-detail-layout-v2 {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr) !important;
  gap: clamp(1.25rem, 3vw, 2rem) !important;
  align-items: start !important;
}

.product-info-column,
.product-subscribe-column {
  min-width: 0 !important;
}

.product-info-column {
  display: grid !important;
  gap: 1rem !important;
}

.product-hero-image {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: rgba(0,0,0,.24) !important;
}

.product-hero-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.product-info-panel,
.subscribe-panel,
.glass-soft {
  border: 1px solid rgba(255,255,255,.1) !important;
  background: rgba(255,255,255,.035) !important;
  border-radius: 22px !important;
  padding: clamp(1rem, 2vw, 1.35rem) !important;
}

.product-info-panel h2,
.subscribe-panel h2 {
  margin-top: 0 !important;
}

.product-perks-list {
  margin: 0 0 1rem !important;
  padding-left: 1.25rem !important;
  display: grid !important;
  gap: .35rem !important;
}

.product-subscribe-column {
  position: sticky !important;
  top: 6rem !important;
}

.subscribe-panel {
  display: grid !important;
  gap: 1rem !important;
}

@media (max-width: 1050px) {
  .product-detail-layout-v2 {
    grid-template-columns: 1fr !important;
  }
  .product-subscribe-column {
    position: static !important;
  }
}

/* Profile page */
.profile-page {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.profile-head {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-card,
.profile-section {
  border-radius: 28px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.account-card {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
}

.profile-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(215,221,231,.45), rgba(255,166,0,.22));
  box-shadow: 0 16px 45px rgba(0,0,0,.35);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 24px;
  background: rgba(255,255,255,.04);
}

.account-label,
.connection-type {
  margin: 0;
  color: var(--accent);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 900;
}

.account-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.profile-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .45rem;
}

.profile-actions form {
  margin: 0;
}

.profile-section {
  margin-top: 1rem;
}

.compact-title h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

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

.connection-card {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: .35rem;
}

.connection-card strong {
  word-break: break-word;
}

.empty-state {
  border: 1px dashed rgba(255,255,255,.13);
  border-radius: 18px;
  padding: 1.25rem;
  text-align: center;
  background: rgba(255,255,255,.025);
}

.orders-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.orders-table th,
.orders-table td {
  padding: .9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: middle;
}

.orders-table th {
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.orders-table td strong,
.orders-table td span {
  display: block;
}

.status-badge {
  display: inline-flex !important;
  width: fit-content;
  border-radius: 999px;
  padding: .3rem .65rem;
  color: var(--accent);
  background: rgba(215,221,231,.08);
  border: 1px solid rgba(215,221,231,.18);
  font-size: .8rem;
  font-weight: 800;
}

.connection-row-form {
  margin: 0;
}

.connection-row-form .connection-row {
  width: 100%;
  text-align: left;
  color: inherit;
}

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

@media (max-width: 420px) {
  .discord-steam-choice-actions {
    grid-template-columns: 1fr;
  }
}

/* Discord-linked Steam choice on product checkout */
.discord-steam-choice {
  border: 1px solid rgba(105, 145, 191, 0.42);
  background: rgba(20, 33, 43, 0.88);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.discord-steam-choice-copy {
  display: grid;
  gap: 0.25rem;
  color: var(--text);
}

.discord-steam-choice-copy strong {
  font-weight: 900;
}

.discord-steam-choice-copy p,
.discord-steam-choice-copy span {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.discord-steam-choice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.discord-steam-choice-actions .btn {
  width: 100% !important;
  min-width: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  white-space: normal;
  line-height: 1.15;
}

.discord-steam-choice-actions .btn.small {
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
}

.btn.small {
  min-height: 44px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

.btn.success {
  background: linear-gradient(135deg, rgba(181, 255, 45, 0.95), rgba(126, 204, 45, 0.95));
  color: #061006;
  border-color: rgba(188, 255, 56, 0.75);
}

.btn.success:hover {
  box-shadow: 0 0 28px rgba(188, 255, 56, 0.22);
  transform: translateY(-1px);
}

.profile-card .copy-button,
.profile-card .copy-id-button,
.profile-card button[data-copy],
.profile-card .btn.copy-btn {
  min-width: 210px;
  min-height: 58px;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
}

.profile-card .profile-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;

  width: fit-content;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  margin-bottom: 1.25rem;

  border-radius: 999px;
  border: 1px solid rgba(188, 255, 56, 0.75);
  background: linear-gradient(135deg, rgba(181, 255, 45, 0.95), rgba(126, 204, 45, 0.95));

  color: #061006;
  font-weight: 900;
  font-size: 0.95rem;
  text-decoration: none;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checkout-back:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.36),
    0 0 28px rgba(188, 255, 56, 0.22);
}

.checkout-back:active {
  transform: translateY(0);
}
/* Stripe profile order actions */
.order-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.order-actions form {
  margin: 0;
}

@media (max-width: 820px) {
  .order-actions {
    justify-content: flex-start;
  }
}

/* === Gift codes, admin page split, and uploaded logo overrides === */
.logo-box img,
.footer-logo-placeholder img,
.cds-home-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-box:has(img),
.footer-logo-placeholder:has(img) {
  padding: 4px;
  overflow: hidden;
}

.cds-home-logo:has(img) {
  padding: 14px;
  overflow: hidden;
}

.admin-section-nav,
.admin-dashboard-grid {
  display: grid;
  gap: 14px;
}

.admin-section-nav {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: stretch;
  margin-top: 20px;
}

.admin-dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-dashboard-card {
  padding: 24px;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease;
}

.admin-dashboard-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 202, 87, .55);
}

.admin-logo-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}

.admin-logo-preview img {
  max-width: 220px;
  max-height: 120px;
  object-fit: contain;
}

.admin-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, auto);
  justify-content: space-between;
  gap: 1.35rem;
  align-items: start;
}

.gift-redeem-form,
.gift-code-list,
.gift-redeem-card {
  display: grid;
  gap: 14px;
}

.gift-redeem-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.gift-code-list {
  margin-top: 22px;
}

.gift-code-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}

.gift-code-card code,
.orders-table code,
.receipt-card code {
  user-select: all;
  white-space: nowrap;
}

.activation-wait-note {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.countdown-button {
  width: max-content;
  font-variant-numeric: tabular-nums;
}

.receipt-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  gap: 14px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 720px) {
  .gift-redeem-form,
  .admin-order-card,
  .receipt-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}

/* === Admin settings save/logos v5 === */
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
}
.admin-settings-grid code {
  color: var(--accent);
}

/* === Logo override hardening v7 === */
.logo-box.has-site-logo,
.footer-logo-placeholder.has-site-logo,
.cds-home-logo.has-site-logo {
  overflow: hidden;
  text-indent: 0;
}

.logo-box.has-site-logo {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.footer-logo-placeholder.has-site-logo {
  padding: 3px;
}

.cds-home-logo.has-site-logo {
  padding: 12px;
}

.site-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.site-logo-text {
  display: inline-block;
}


/* === Uploaded logo image-only cleanup v8 === */
.logo-box.has-site-logo,
.footer-logo-placeholder.has-site-logo,
.cds-home-logo.has-site-logo {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.logo-box.has-site-logo,
.footer-logo-placeholder.has-site-logo,
.cds-home-logo.has-site-logo,
.logo-box:has(img),
.footer-logo-placeholder:has(img),
.cds-home-logo:has(img) {
  padding: 0 !important;
}

.footer-logo-placeholder.has-site-logo {
  border-radius: 0;
}

.cds-home-logo.has-site-logo {
  border-radius: 0;
}

.admin-logo-remove-form,
.admin-logo-upload-form {
  display: grid;
  gap: 14px;
}

.admin-logo-remove-form {
  margin: 0;
}

/* === Remove-logo route fix + larger home logo v9 === */
.cds-home-logo.has-site-logo {
  width: clamp(150px, 16vw, 220px);
  max-width: 42vw;
  aspect-ratio: 1;
  margin-bottom: .25rem;
}

.cds-home-logo.has-site-logo .site-logo-image {
  width: 100%;
  height: 100%;
  transform: scale(1.12);
  transform-origin: center;
}

@media (max-width: 640px) {
  .cds-home-logo.has-site-logo {
    width: clamp(120px, 34vw, 170px);
  }
}


/* === Simple logo upload controls v14 === */
.admin-logo-upload-form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

/* === Feature pack: loader, scroll fade, direct mod links, profile archive, map, header buttons === */
.site-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(7px);
  transition: opacity .45s ease, visibility .45s ease;
}
.site-loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-loader-card {
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border: 1px solid rgba(215,221,231,.24);
  border-radius: 28px;
  background: rgba(17,19,23,.84);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 42px rgba(215,221,231,.12);
  min-width: min(420px, calc(100vw - 32px));
}
.site-loader-card p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
  letter-spacing: .02em;
}
.site-loader-card p strong {
  color: var(--accent);
}
.site-loader-card .spinner {
  width: 26px;
  height: 26px;
  border-width: 3px;
}
.scroll-fade {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(6px);
  transition: opacity .8s ease, transform .8s ease, filter .8s ease;
}
.scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.faq-item {
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .25s ease;
}
.faq-item[open],
.faq-item.is-selected {
  border-color: rgba(215,221,231,.45) !important;
  background: rgba(215,221,231,.055) !important;
  box-shadow: 0 0 34px rgba(215,221,231,.14), inset 0 0 0 1px rgba(215,221,231,.12);
}
.faq-item[open] summary,
.faq-item.is-selected summary {
  color: var(--accent);
}
.mod-inline-link-disabled {
  cursor: default;
  opacity: .7;
  border-style: dashed !important;
  color: var(--muted) !important;
}
.orders-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.orders-title-row h2,
.orders-title-row p {
  margin-bottom: 0;
}
.order-actions .btn,
.order-actions form {
  width: max-content;
}
.btn-login {
  background: linear-gradient(135deg, var(--accent), #aeb7c5);
  color: #11160d;
}
.btn-logout {
  background: linear-gradient(135deg, #ff7777, #d93d3d) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.24) !important;
  box-shadow: 0 14px 30px rgba(255,107,107,.18) !important;
}
.nav-links .btn-discord {
  background: linear-gradient(135deg, #7289da, #5865f2) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.28) !important;
}
.centered-actions {
  justify-content: center;
}
.map-section {
  padding-top: 1rem !important;
}
.map-frame-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: min(78vh, 850px);
}
.map-frame {
  display: block;
  width: 100%;
  height: min(78vh, 850px);
  min-height: 560px;
  border: 0;
  background: rgba(0,0,0,.35);
}
.map-fallback-note {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  pointer-events: none;
  text-align: center;
}
.map-fallback-note p {
  display: inline-block;
  margin: 0;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  border: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 760px) {
  .orders-title-row {
    align-items: stretch;
    flex-direction: column;
  }
  .orders-title-row .btn {
    width: max-content;
  }
  .map-frame {
    min-height: 520px;
    height: 72vh;
  }
}

/* === Requested fixes: active header, tidy map page, mod buttons, expired/order states === */
.nav-links > a.is-active:not(.btn) {
  color: var(--accent);
  border: 1px solid rgba(215,221,231,.34);
  background: rgba(215,221,231,.08);
  box-shadow: inset 0 0 0 1px rgba(215,221,231,.08), 0 0 24px rgba(215,221,231,.08);
  border-radius: 999px;
  padding: 7px 11px;
}
.nav-links > a.is-active:not(.btn):hover {
  color: var(--accent);
  background: rgba(215,221,231,.13);
}

.map-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .55fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: stretch;
  padding: clamp(3rem, 8vw, 6rem) 0 1.2rem;
}
.map-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: .86;
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.map-tips-card {
  border-radius: 28px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  align-self: end;
}
.map-tips-card ul {
  margin: 0;
  padding-left: 1.1rem;
}
.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 24px 24px 0 0;
  border-bottom: 0;
}
.map-toolbar h2,
.map-toolbar p { margin: 0; }
.map-toolbar-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.map-toolbar + .map-frame-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.mod-inline-list {
  gap: .65rem !important;
}
.mod-inline-link {
  display: inline-flex !important;
  align-items: center;
  gap: .4rem;
  padding: .55rem .78rem;
  border: 1px solid rgba(215,221,231,.22) !important;
  border-radius: 999px;
  background: rgba(215,221,231,.055);
  color: var(--text) !important;
  font-weight: 800;
  font-size: .88rem !important;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.mod-inline-link:hover,
.mod-inline-link:focus-visible {
  color: #10160c !important;
  background: linear-gradient(135deg, var(--accent), #aeb7c5);
  border-color: rgba(215,221,231,.72) !important;
  box-shadow: 0 12px 28px rgba(215,221,231,.18);
  transform: translateY(-2px);
  outline: none;
}
.mod-inline-link-disabled,
.mod-inline-link-disabled:hover {
  cursor: default;
  opacity: .72;
  color: var(--muted) !important;
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: none !important;
  transform: none !important;
}

.status-badge + .muted.tiny {
  display: block;
  margin-top: .35rem;
}
.expired-orders-page .orders-table td {
  vertical-align: top;
}

@media (max-width: 840px) {
  .map-hero {
    grid-template-columns: 1fr;
  }
  .map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .map-toolbar-actions {
    justify-content: flex-start;
  }
}

/* === Map selector + 5 second iZurvive loading state === */
.map-selector-card {
  border-radius: 28px;
  padding: clamp(1.1rem, 3vw, 1.45rem);
  margin-bottom: 1.1rem;
}
.map-selector-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.map-selector-header h2,
.map-selector-header p {
  margin: 0;
}
.map-selector-header > p {
  max-width: 520px;
  text-align: right;
}
.map-selector-groups {
  display: grid;
  gap: 1rem;
}
.map-selector-group {
  display: grid;
  gap: .65rem;
}
.map-selector-group h3 {
  margin: 0;
  color: var(--accent);
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.map-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.map-choice {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
  min-width: 148px;
  border: 1px solid rgba(215,221,231,.2);
  border-radius: 18px;
  padding: .78rem .9rem;
  background: rgba(215,221,231,.045);
  color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.map-choice span {
  font-weight: 900;
  line-height: 1.05;
}
.map-choice small {
  color: var(--muted);
  font-weight: 800;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.map-choice:hover,
.map-choice:focus-visible,
.map-choice.is-active {
  border-color: rgba(215,221,231,.68);
  background: linear-gradient(135deg, rgba(215,221,231,.18), rgba(141,207,63,.08));
  box-shadow: 0 14px 30px rgba(215,221,231,.12), inset 0 0 0 1px rgba(215,221,231,.08);
  transform: translateY(-2px);
  outline: none;
}
.map-choice.is-active {
  color: var(--accent);
}
.map-choice.is-active small {
  color: var(--text);
}
.map-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}
.map-loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.map-loader-card {
  transform: translateY(0);
  animation: mapLoaderFloat 1.7s ease-in-out infinite alternate;
}
.map-frame.is-map-loading {
  filter: grayscale(.2) brightness(.62);
}
.map-frame-card:has(.map-loading-overlay.is-visible) .map-fallback-note {
  display: none;
}
@keyframes mapLoaderFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}

@media (max-width: 840px) {
  .map-selector-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .map-selector-header > p {
    text-align: left;
  }
  .map-choice {
    min-width: min(100%, 160px);
    flex: 1 1 145px;
  }
}

.priority-sync-card {
  margin: 1rem 0;
  border: 1px solid rgba(215,221,231,.12);
}
.priority-sync-card summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: .03em;
}
.priority-sync-card summary::marker {
  color: var(--accent);
}
.admin-logo-reset-form,
.admin-inline-sync {
  margin-top: .85rem;
}
.admin-inline-sync {
  margin-bottom: 1rem;
}
.admin-order-card code,
.order-sync-card code {
  color: var(--accent);
  background: rgba(215,221,231,.08);
  border: 1px solid rgba(215,221,231,.12);
  border-radius: 8px;
  padding: .08rem .35rem;
}

/* === Order admin workflow === */
.manual-order-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin: 1rem 0 1.4rem;
  border-radius: 22px;
}
.manual-order-panel p {
  margin: 0;
}
.admin-actions.compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}
.admin-order-section-heading {
  margin: 1.4rem 0 .9rem;
}
.admin-order-section-heading h3,
.admin-order-section-heading p {
  margin-bottom: .25rem;
}
.synced-heading {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
  min-width: min(100%, 340px);
}
.admin-order-actions form {
  margin: 0;
}
.admin-order-actions .btn {
  width: max-content;
  white-space: nowrap;
}
.synced-order-card {
  border-color: rgba(215,221,231,.16);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .28rem .58rem;
  background: rgba(215,221,231,.1);
  border: 1px solid rgba(215,221,231,.18);
  color: var(--accent);
  font-weight: 900;
  text-transform: capitalize;
}
@media (max-width: 780px) {
  .manual-order-panel,
  .admin-order-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-actions.compact,
  .admin-order-actions {
    justify-content: flex-start;
  }
  .admin-order-actions .btn,
  .admin-order-actions form {
    width: 100%;
  }
}


/* === Admin order views: confirm, active, cancelled === */
.admin-orders-shell {
  display: grid;
  gap: 1.1rem;
}
.admin-order-hero {
  padding: clamp(1rem, 2vw, 1.45rem);
  border-radius: 28px;
  border-color: rgba(215,221,231,.12);
  align-items: center;
}
.admin-order-hero .lead {
  max-width: 820px;
}
.admin-order-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .85rem;
}
.admin-order-stat {
  display: grid;
  gap: .35rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.admin-order-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(215,221,231,.32);
  background: rgba(215,221,231,.06);
}
.admin-order-stat span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.admin-order-stat strong {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1;
}
.admin-order-list {
  display: grid;
  gap: 1rem;
}
.admin-order-main {
  display: grid;
  gap: .72rem;
  min-width: 0;
}
.admin-order-main h3 {
  margin: 0;
}
.admin-order-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}
.admin-order-card-head .eyebrow {
  margin: 0;
}
.admin-order-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .65rem;
}
.admin-order-meta-grid p {
  display: grid;
  gap: .2rem;
  margin: 0;
  padding: .65rem .75rem;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  min-width: 0;
}
.admin-order-meta-grid strong {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.admin-order-meta-grid span,
.admin-order-meta-grid code {
  overflow-wrap: anywhere;
}
.admin-order-alert {
  margin: .15rem 0 0;
  padding: .75rem .85rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 202, 87, .24);
  background: rgba(255, 202, 87, .08);
  color: #ffe6a5;
  font-weight: 800;
}
.needs-confirmation-card {
  border-color: rgba(255, 202, 87, .18);
}
.active-order-card {
  border-color: rgba(215,221,231,.16);
}
.cancelled-order-card {
  border-color: rgba(255, 111, 111, .18);
}
.admin-order-actions {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: .72rem;
  min-width: min(100%, 260px);
  padding: .85rem;
  border-radius: 20px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.admin-order-actions form {
  margin: 0;
}
.admin-order-actions .btn,
.admin-order-actions form {
  width: 100%;
}
.admin-order-actions .btn {
  justify-content: center;
  min-height: 42px;
  white-space: normal;
  text-align: center;
}
.relaxed-actions {
  gap: .85rem;
}
.status-badge.warning {
  color: #ffe6a5;
  background: rgba(255, 202, 87, .1);
  border-color: rgba(255, 202, 87, .24);
}
.status-badge.danger {
  color: #ffd0d0;
  background: rgba(255, 111, 111, .1);
  border-color: rgba(255, 111, 111, .24);
}
@media (max-width: 920px) {
  .admin-order-card {
    grid-template-columns: 1fr;
  }
  .admin-order-actions {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}
@media (max-width: 560px) {
  .admin-order-meta-grid {
    grid-template-columns: 1fr;
  }
  .admin-order-actions {
    grid-template-columns: 1fr;
  }
}

/* === Priority sync admin polish === */
.priority-sync-card .admin-server-grid > label {
  min-width: 0;
}
.priority-sync-card .admin-server-grid input,
.priority-sync-card .admin-server-grid select {
  width: 100%;
  box-sizing: border-box;
}
.priority-sync-card .priority-path-field small {
  display: block;
  line-height: 1.35;
  margin-top: .55rem;
}
.priority-sync-actions {
  gap: 1.2rem !important;
  margin-top: 1.2rem;
  align-items: center;
}
.priority-sync-actions .btn {
  min-width: 220px;
  justify-content: center;
}
@media (max-width: 780px) {
  .priority-sync-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* === Priority sync server form size/spacing fix === */
.priority-sync-card .admin-server-grid {
  align-items: start !important;
  row-gap: 1.35rem !important;
}

.priority-sync-card .admin-server-grid > label {
  align-self: start !important;
  min-height: 0 !important;
}

.priority-sync-card .admin-server-grid input,
.priority-sync-card .admin-server-grid select {
  height: 64px !important;
  min-height: 64px !important;
  line-height: 1.2 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.priority-sync-card .priority-path-field {
  align-self: start !important;
}

.priority-sync-card .priority-path-field small {
  min-height: 0 !important;
}

.priority-sync-actions {
  margin-top: 2rem !important;
  padding-top: .35rem !important;
  gap: 1.35rem !important;
}

/* === Admin servers layout refinement === */
.admin-server-create-section {
  display: block !important;
}

.admin-server-create-form {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem 1.45rem !important;
  width: 100%;
}

.admin-server-create-form > h2,
.admin-server-create-form > .priority-sync-card,
.admin-server-create-form > .admin-server-submit {
  grid-column: 1 / -1;
}

.admin-server-create-form > .admin-server-info-field,
.admin-server-create-form > .admin-server-mods-field {
  grid-column: span 3;
}

.admin-server-create-form > .admin-featured-field {
  grid-column: 1 / -1;
}

.admin-server-create-form textarea {
  min-height: 130px;
}

.priority-sync-card .admin-server-grid {
  align-items: start !important;
}

.priority-sync-card .admin-server-grid > label {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: .55rem !important;
  height: auto !important;
  min-height: 0 !important;
}

.priority-sync-card .admin-server-grid input,
.priority-sync-card .admin-server-grid select {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  flex: 0 0 56px !important;
}

.priority-sync-card .priority-path-help {
  margin: .9rem 0 0 !important;
  max-width: 880px;
}

.priority-sync-actions {
  margin-top: 1.55rem !important;
}

@media (max-width: 980px) {
  .admin-server-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-server-create-form > .admin-server-info-field,
  .admin-server-create-form > .admin-server-mods-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .admin-server-create-form {
    grid-template-columns: 1fr;
  }
}

/* === Store product mappings === */
.product-sync-mappings-field {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}
.product-sync-mappings-field textarea {
  width: 100%;
  min-height: 118px;
  box-sizing: border-box;
  resize: vertical;
}
.product-sync-mappings-field small {
  color: var(--muted);
  line-height: 1.4;
}
.priority-sync-actions {
  align-items: stretch;
}
.priority-sync-actions .btn {
  margin-top: .15rem;
}

/* Business store additions */
.product-carousel-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.75rem;
}
.product-carousel-strip img,
.blog-card-image,
.article-hero-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
}
.blog-card-image { margin-bottom: 1rem; }
.article-hero-image { margin-bottom: 1.25rem; max-height: 620px; }
.steam-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.admin-successful-orders-table code,
.orders-table code { word-break: break-word; }
.optional-connection { opacity: 0.85; }

.website-package-panel,
.currency-guide {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}
.checkbox-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}
.currency-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.currency-select-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}
.currency-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.variant-summary {
  display: block;
  margin-top: 0.5rem;
}
.inline-admin-form {
  display: grid;
  gap: 0.5rem;
  min-width: 170px;
}
.inline-admin-form input[type="date"] {
  width: 100%;
}
.admin-order-actions-cell {
  min-width: 190px;
}

/* v5 checkout cleanup */
.select-box select {
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.variant-summary {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
}
.variant-summary strong {
  color: var(--accent);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.variant-summary span {
  color: var(--text);
  font-weight: 800;
}
.variant-summary ul {
  margin: 0.2rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}
.currency-panel span {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.currency-panel small {
  color: var(--muted);
  font-size: 0.82rem;
}
.currency-panel.hidden,
.currency-panel[hidden] {
  display: none !important;
}
.gift-requirements {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* v8 product option clarity and live checkout currency */
.variant-option-guide {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding: 0.9rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
}
.variant-option-guide > strong {
  color: var(--text);
  font-size: 0.95rem;
}
.variant-option-list {
  display: grid;
  gap: 0.65rem;
}
.variant-option-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  width: 100%;
  padding: 0.8rem;
  text-align: left;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  cursor: pointer;
}
.variant-option-card:hover,
.variant-option-card.active {
  border-color: rgba(245, 174, 0, 0.65);
  background: rgba(245, 174, 0, 0.08);
}
.variant-option-number {
  grid-row: span 3;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  color: #111;
  background: var(--accent);
  font-weight: 900;
}
.variant-option-name {
  font-weight: 900;
  line-height: 1.25;
}
.variant-option-card small,
.variant-option-card em {
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}
.variant-option-card em {
  font-size: 0.82rem;
}
@media (max-width: 680px) {
  .variant-option-card {
    grid-template-columns: 1fr;
  }
  .variant-option-number,
  .variant-option-card small,
  .variant-option-card em {
    grid-column: 1;
  }
}

/* v9 GBP-only checkout and modal product option picker */
.native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.select-box-heading {
  color: var(--text);
  font-weight: 900;
  font-size: 1.05rem;
}
.variant-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 0 1rem;
  background: rgba(0,0,0,.28);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  text-align: left;
}
.variant-picker-trigger:hover,
.variant-picker-trigger[aria-expanded="true"] {
  border-color: rgba(241,164,0,.6);
  background: rgba(241,164,0,.08);
}
.variant-picker-chevron {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
}
.variant-picker-open {
  overflow: hidden;
}
.variant-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}
.variant-picker-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.variant-picker-dialog {
  position: relative;
  width: min(760px, 96vw);
  max-height: min(82vh, 760px);
  overflow-y: auto;
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(23, 35, 47, .98), rgba(12, 19, 16, .98));
  box-shadow: 0 24px 90px rgba(0,0,0,.55);
  color: var(--text);
}
.variant-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.variant-picker-header h4 {
  margin: .1rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}
.variant-picker-header .eyebrow {
  margin: 0;
}
.variant-picker-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.variant-option-list-modal {
  gap: .8rem;
}
.variant-option-list-modal .variant-option-card,
.product-option-box .variant-option-card {
  appearance: none;
  font: inherit;
  color: var(--text) !important;
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 18px !important;
  padding: 1rem !important;
  box-shadow: none !important;
  text-align: left !important;
}
.variant-option-list-modal .variant-option-card:hover,
.variant-option-list-modal .variant-option-card.active,
.product-option-box .variant-option-card:hover,
.product-option-box .variant-option-card.active {
  border-color: rgba(241,164,0,.72) !important;
  background: rgba(241,164,0,.1) !important;
}
.variant-option-list-modal .variant-option-number,
.product-option-box .variant-option-number {
  color: #151515 !important;
  background: var(--accent) !important;
}
.variant-option-list-modal .variant-option-name,
.product-option-box .variant-option-name {
  color: var(--text) !important;
  font-weight: 900 !important;
  font-style: normal !important;
}
.variant-option-list-modal .variant-option-card small,
.variant-option-list-modal .variant-option-card em,
.product-option-box .variant-option-card small,
.product-option-box .variant-option-card em {
  color: var(--muted) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  text-align: left !important;
}
@media (max-width: 680px) {
  .variant-picker-dialog {
    width: 96vw;
    max-height: 88vh;
    border-radius: 20px;
  }
  .variant-option-list-modal .variant-option-card {
    grid-template-columns: 1fr;
  }
}

/* v10 clean product option modal */
.product-option-picker-v10 {
  display: grid;
  gap: 1rem;
}
.product-option-picker-v10 > select.native-select-hidden,
.product-option-picker-v10 select.native-select-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}
.product-option-picker-v10 .cds-option-trigger-v10,
.product-option-picker-v10 button.cds-option-trigger-v10 {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 64px !important;
  padding: 0 1.2rem !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 18px !important;
  background: rgba(6, 11, 15, .76) !important;
  color: var(--text) !important;
  font: inherit !important;
  font-weight: 900 !important;
  text-align: left !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035) !important;
  cursor: pointer !important;
}
.product-option-picker-v10 .cds-option-trigger-v10:hover,
.product-option-picker-v10 .cds-option-trigger-v10[aria-expanded="true"] {
  border-color: rgba(241,164,0,.78) !important;
  background: rgba(241,164,0,.08) !important;
}
.product-option-picker-v10 .variant-summary {
  padding: .9rem 1rem;
  border: 1px solid rgba(241,164,0,.28);
  border-radius: 16px;
  background: rgba(241,164,0,.065);
}
.variant-picker-modal:not(.hidden) {
  display: grid !important;
}
.variant-picker-modal .variant-picker-backdrop {
  background: rgba(0, 0, 0, .82) !important;
}
.variant-picker-modal .cds-option-dialog-v10 {
  width: min(820px, calc(100vw - 2rem)) !important;
  max-height: min(84vh, 780px) !important;
  overflow: auto !important;
  padding: clamp(1.1rem, 3vw, 1.7rem) !important;
  border: 1px solid rgba(241,164,0,.24) !important;
  border-radius: 28px !important;
  background: linear-gradient(180deg, rgba(18, 31, 42, .98), rgba(13, 22, 17, .98)) !important;
  box-shadow: 0 28px 100px rgba(0,0,0,.65) !important;
}
.cds-option-list-v10 {
  display: grid !important;
  gap: .95rem !important;
}
.variant-picker-modal .cds-option-card-v10,
.variant-picker-modal button.cds-option-card-v10 {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 1rem !important;
  width: 100% !important;
  min-height: 96px !important;
  padding: 1rem !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.055) !important;
  color: var(--text) !important;
  text-align: left !important;
  font: inherit !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
.variant-picker-modal .cds-option-card-v10:hover,
.variant-picker-modal .cds-option-card-v10.active,
.variant-picker-modal .cds-option-card-v10:focus-visible {
  border-color: rgba(241,164,0,.82) !important;
  background: rgba(241,164,0,.12) !important;
  outline: none !important;
}
.variant-picker-modal .cds-option-card-v10 .variant-option-number {
  grid-row: auto !important;
  min-width: 92px !important;
  padding: .55rem .75rem !important;
  border-radius: 999px !important;
  background: var(--accent) !important;
  color: #111 !important;
  font-weight: 950 !important;
  text-align: center !important;
}
.variant-option-content-v10 {
  display: grid !important;
  gap: .25rem !important;
  min-width: 0 !important;
}
.variant-picker-modal .variant-option-name {
  color: var(--text) !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
}
.variant-picker-modal .variant-option-price {
  color: var(--accent) !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}
.variant-picker-modal .variant-option-perk {
  color: var(--muted) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}
.variant-option-cta-v10 {
  white-space: nowrap !important;
  align-self: center !important;
  padding: .55rem .75rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(241,164,0,.4) !important;
  color: var(--text) !important;
  background: rgba(241,164,0,.14) !important;
  font-weight: 900 !important;
  font-size: .85rem !important;
}
@media (max-width: 720px) {
  .variant-picker-modal .cds-option-dialog-v10 {
    width: calc(100vw - 1rem) !important;
    max-height: 88vh !important;
    border-radius: 22px !important;
  }
  .variant-picker-modal .cds-option-card-v10,
  .variant-picker-modal button.cds-option-card-v10 {
    grid-template-columns: 1fr !important;
  }
  .variant-picker-modal .cds-option-card-v10 .variant-option-number,
  .variant-option-cta-v10 {
    width: fit-content !important;
  }
}

/* v11 option modal viewport fix: keep package picker in the customer's current viewport and make it scroll cleanly */
body.variant-picker-open {
  overflow: hidden !important;
}
body > .variant-picker-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: grid !important;
  place-items: center !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}
body > .variant-picker-modal.hidden {
  display: none !important;
}
body > .variant-picker-modal .variant-picker-backdrop {
  position: fixed !important;
  inset: 0 !important;
}
body > .variant-picker-modal .cds-option-dialog-v10,
body > .variant-picker-modal .variant-picker-dialog {
  width: min(820px, calc(100vw - 2rem)) !important;
  max-height: calc(100dvh - 2rem) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  margin: auto !important;
}
@media (max-height: 720px), (max-width: 720px) {
  body > .variant-picker-modal {
    place-items: start center !important;
  }
  body > .variant-picker-modal .cds-option-dialog-v10,
  body > .variant-picker-modal .variant-picker-dialog {
    max-height: none !important;
    margin: 0 auto !important;
  }
}


/* === v12 dark-grey branding refresh === */
:root {
  --bg: #111317;
  --panel: rgba(24, 26, 30, .82);
  --panel-strong: rgba(32, 35, 41, .92);
  --text: #f5f7fa;
  --muted: #b4bbc6;
  --line: rgba(255,255,255,.10);
  --accent: #d7dde7;
  --accent-2: #8a93a3;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
}
body {
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(215,221,231,.12), transparent 24rem),
    linear-gradient(180deg, #1b1d22 0%, #121418 56%, #0c0d10 100%) !important;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('/img/cds-logo-pattern.png');
  background-repeat: repeat;
  background-size: 560px 560px;
  opacity: .18;
}
.nav, .nav-links.open, .server-card, .server-accordion, .premium-product-card, .site-loader-card, .hero-panel, .cds-home-card, .form-card, .price-card, .faq-item, .faq-category-card, .blog-card, .profile-section-card, .glass {
  background: rgba(19, 21, 26, .84) !important;
}
.btn {
  border-color: rgba(255,255,255,.18) !important;
  background: linear-gradient(135deg, #f2f4f7, #bcc4d0) !important;
  color: #10131a !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.18), 0 0 26px rgba(188,196,208,.14) !important;
}
.btn:hover { box-shadow: 0 16px 32px rgba(0,0,0,.26), 0 0 28px rgba(188,196,208,.18) !important; }
.ghost, .danger, .admin-chip { box-shadow: none !important; }
.ghost { background: rgba(255,255,255,.05) !important; color: var(--text) !important; }
.logo-box.has-site-logo,
.footer-logo-placeholder.has-site-logo,
.cds-home-logo.has-site-logo {
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.04) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.22) !important;
}
.logo-box.has-site-logo { padding: 8px !important; border-radius: 14px !important; }
.footer-logo-placeholder.has-site-logo { padding: 4px !important; border-radius: 10px !important; }
.cds-home-logo.has-site-logo {
  padding: 18px !important;
  border-radius: 30px !important;
  width: min(340px, 78vw) !important;
  max-width: min(340px, 78vw) !important;
  aspect-ratio: 1.15 / 1 !important;
}
.cds-home-logo.has-site-logo .site-logo-image {
  transform: none !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand .site-logo-image, .footer-brand .site-logo-image { filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.hero-panel::before, .footer-main-links a:hover, .footer-policy-links a:hover { color: var(--accent); }
.status-dot { box-shadow: 0 0 26px rgba(215,221,231,.65); }
.page-shell, .shell, main { position: relative; z-index: 1; }


/* === v13 logo asset swap === */
.logo-box.has-site-logo { padding: 6px !important; }
.logo-box .site-logo-image, .footer-logo-placeholder .site-logo-image { object-fit: contain; }
.cds-home-logo.has-site-logo { width: min(520px, 82vw) !important; max-width: min(520px, 82vw) !important; aspect-ratio: auto !important; height: auto !important; min-height: 0 !important; }
.cds-home-logo.has-site-logo .site-logo-image { width: 100%; height: auto; object-fit: contain; }
body::after { background-size: 420px 420px !important; opacity: .16 !important; }


/* === v14 full uploaded CDS logo usage === */
body::after {
  background-image: url('/img/cds-logo-pattern.png') !important;
  background-size: 620px 420px !important;
  opacity: .22 !important;
}

.logo-box.has-site-logo {
  width: 104px !important;
  min-width: 104px !important;
  height: 48px !important;
  padding: 6px !important;
  border-radius: 12px !important;
}

.footer-logo-placeholder.has-site-logo {
  width: 78px !important;
  height: 34px !important;
  padding: 4px !important;
  border-radius: 10px !important;
}

.logo-box.has-site-logo .site-logo-image,
.footer-logo-placeholder.has-site-logo .site-logo-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transform: none !important;
}

/* The homepage logo box now wraps the uploaded image size/ratio instead of forcing a fixed shape.
   Padding gives the "uploaded size + box" effect: square uploads stay square, tall uploads stay tall,
   and wide logos stay wide without getting cut off. */
.cds-home-logo.has-site-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: min(860px, 92vw) !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 24px !important;
  border-radius: 34px !important;
}

.cds-home-logo.has-site-logo .site-logo-image {
  display: block !important;
  width: auto !important;
  max-width: min(780px, calc(92vw - 48px)) !important;
  height: auto !important;
  max-height: min(54vh, 520px) !important;
  object-fit: contain !important;
  transform: none !important;
}

/* Browser-favicon cache helper: these unique v14 icon URLs replace old cached /favicon.ico usage. */


/* === v15 square logo containers + admin-upload consistency ===
   Every visible site logo container is square. The uploaded logo is contained
   without stretching/cropping, and the homepage uses the same uploaded logo
   source as header/footer so CPanel uploads update all main placements. */
.logo-box,
.logo-box.has-site-logo {
  width: 64px !important;
  min-width: 64px !important;
  height: 64px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 8px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.footer-logo-placeholder,
.footer-logo-placeholder.has-site-logo {
  width: 54px !important;
  min-width: 54px !important;
  height: 54px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 7px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.cds-home-logo,
.cds-home-logo.has-site-logo {
  width: min(560px, 82vw) !important;
  max-width: min(560px, 82vw) !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  padding: clamp(20px, 4vw, 38px) !important;
  border-radius: 34px !important;
  overflow: hidden !important;
}

.logo-box .site-logo-image,
.logo-box.has-site-logo .site-logo-image,
.footer-logo-placeholder .site-logo-image,
.footer-logo-placeholder.has-site-logo .site-logo-image,
.cds-home-logo .site-logo-image,
.cds-home-logo.has-site-logo .site-logo-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transform: none !important;
}

/* Admin/logo preview helpers also stay square so uploads preview like the live site. */
.admin-logo-preview,
.logo-preview,
.current-logo-preview,
.site-logo-preview,
.uploaded-logo-preview,
.admin-logo-current {
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
}

/* Keep brand alignment tidy now the header logo is square. */
.brand {
  min-width: 0;
}
.brand > span:last-child {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .logo-box,
  .logo-box.has-site-logo {
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
  }
  .cds-home-logo,
  .cds-home-logo.has-site-logo {
    width: min(440px, 84vw) !important;
  }
}

/* === v16 profile, FAQ, and store customization === */
.profile-avatar-wrap {
  background: linear-gradient(135deg, rgba(255,214,102,.82), rgba(191,132,24,.92)) !important;
  box-shadow: 0 0 0 1px rgba(255,198,72,.28), 0 0 34px rgba(255,198,72,.22), 0 16px 45px rgba(0,0,0,.35) !important;
}
.profile-card .profile-actions,
.profile-card .profile-actions form {
  width: 100%;
}
.profile-card .profile-actions {
  display: flex;
  align-items: stretch;
  gap: .85rem;
}
.profile-card .profile-actions > *,
.profile-card .profile-actions form {
  flex: 1 1 260px;
  display: flex;
}
.profile-card .profile-actions .btn,
.profile-card .profile-actions form .btn,
.profile-card .profile-actions a.btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 62px !important;
  height: 62px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
}
.profile-action-btn.discord-action {
  background: linear-gradient(135deg, #7289da, #5865f2) !important;
  color: #ffffff !important;
  border-color: rgba(114,137,218,.58) !important;
  box-shadow: 0 0 26px rgba(88,101,242,.18) !important;
}
.profile-action-btn.steam-action {
  background: linear-gradient(135deg, #1b2838, #2a475e) !important;
  color: #ffffff !important;
  border-color: rgba(101,148,193,.32) !important;
  box-shadow: 0 0 26px rgba(42,71,94,.24) !important;
}
.profile-action-btn.danger {
  background: linear-gradient(135deg, #692727, #a43b3b) !important;
  color: #ffffff !important;
}
.gift-redeem-form .btn.success {
  background: linear-gradient(135deg, #4fc968, #2a9e46) !important;
  color: #ffffff !important;
  border-color: rgba(99,216,122,.52) !important;
  box-shadow: 0 0 28px rgba(79,201,104,.18) !important;
}
.faq-item {
  border: 1px solid var(--faq-outline, rgba(255,255,255,.14)) !important;
  box-shadow: 0 10px 34px rgba(0,0,0,.16);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.faq-item[open], .faq-item.is-selected {
  border-color: var(--faq-open-outline, #d7a12f) !important;
  box-shadow: 0 0 0 1px var(--faq-open-outline, #d7a12f), 0 0 28px var(--faq-glow, rgba(215,161,47,.22)), 0 16px 42px rgba(0,0,0,.22) !important;
}
.premium-product-card {
  position: relative;
  border-color: var(--plan-glow, rgba(255,176,0,.22)) !important;
}
.premium-product-card::after {
  content: "";
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: -18px;
  height: 84px;
  background: var(--plan-glow, rgba(255,176,0,.22));
  filter: blur(26px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.premium-product-card:hover {
  border-color: var(--plan-glow, rgba(255,176,0,.42)) !important;
  box-shadow: 0 0 0 1px var(--plan-glow, rgba(255,176,0,.22)), 0 0 28px var(--plan-glow, rgba(255,176,0,.22)), 0 22px 55px rgba(0,0,0,.42) !important;
}
.premium-product-card > * { position: relative; z-index: 1; }
.premium-small-icon {
  border-radius: 999px;
  background: rgba(255,255,255,.08) !important;
  color: #ffffff !important;
  font-size: .95rem !important;
}
.premium-card-cta,
.premium-product-card .premium-card-cta.btn,
.premium-product-card .premium-card-cta.btn.full {
  background: var(--plan-button, #e2a10a) !important;
  color: var(--plan-button-text, #ffffff) !important;
  border-color: transparent !important;
  box-shadow: 0 16px 26px rgba(0,0,0,.22) !important;
}
.premium-card-cta:hover { filter: brightness(1.05); }
@media (max-width: 760px) {
  .profile-card .profile-actions { grid-template-columns: 1fr; }
  .profile-card .profile-actions > *,
  .profile-card .profile-actions form {
    flex-basis: 100%;
  }
  .gift-redeem-form {
    grid-template-columns: 1fr;
  }
  .gift-redeem-form .btn.success {
    width: 100%;
  }
}


/* === v17 responsive polish: desktop logo/blog fixes + mobile/tablet cleanup === */
/* Desktop-specific request: homepage logo half-size while keeping the uploaded square logo behaviour. */
.cds-home-logo,
.cds-home-logo.has-site-logo {
  width: min(280px, 42vw) !important;
  max-width: min(280px, 42vw) !important;
}

/* Desktop/blog request: keep blog images small and inside the same card on the right. */
.blog-preview-grid .blog-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(118px, 18vw, 172px) !important;
  grid-template-areas:
    "date image"
    "title image"
    "copy image"
    "link image" !important;
  column-gap: 1rem !important;
  align-items: center !important;
}
.blog-preview-grid .blog-card .blog-card-image {
  grid-area: image !important;
  width: 100% !important;
  height: clamp(92px, 12vw, 132px) !important;
  max-height: 132px !important;
  margin: 0 !important;
  border-radius: 16px !important;
  object-fit: cover !important;
}
.blog-preview-grid .blog-card .blog-date { grid-area: date !important; }
.blog-preview-grid .blog-card h3 { grid-area: title !important; }
.blog-preview-grid .blog-card p:not(.blog-date) { grid-area: copy !important; }
.blog-preview-grid .blog-card .text-link { grid-area: link !important; }

@media (hover: none), (pointer: coarse), (max-width: 900px) {
  /* Remove mouse-follow / white radial glow on touch screens. */
  body {
    background: linear-gradient(180deg, #1b1d22 0%, #121418 56%, #0c0d10 100%) !important;
  }
}

@media (max-width: 1024px) {
  html, body { overflow-x: hidden !important; }
  body::after {
    background-image: url('/img/cds-logo-pattern.png') !important;
    background-size: 360px 244px !important;
    background-position: center 18px !important;
    opacity: .28 !important;
  }
  .shell,
  .page-shell {
    width: min(100% - 24px, 920px) !important;
  }
  .page-head,
  .page-hero,
  .premium-store-head,
  .profile-head {
    padding-top: clamp(2rem, 7vw, 4rem) !important;
    text-align: center !important;
  }
  .page-head h1,
  .page-hero h1,
  .premium-store-head h1,
  .profile-head h1 {
    font-size: clamp(2.25rem, 8.5vw, 4.5rem) !important;
    line-height: .95 !important;
    letter-spacing: -.055em !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: balance;
  }
  .lead,
  .hero-subtitle {
    max-width: 620px !important;
    margin-inline: auto !important;
    text-align: center !important;
  }
  .premium-product-grid,
  .premium-product-grid-centered {
    justify-content: center !important;
    justify-items: center !important;
  }
}

@media (max-width: 720px) {
  /* Mobile header menu must sit above the hero/store/cards. */
  .nav {
    position: sticky !important;
    top: 10px !important;
    z-index: 10000 !important;
    width: min(100% - 22px, 420px) !important;
    margin: 10px auto 0 !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }
  .brand { gap: 8px !important; min-width: 0 !important; }
  .brand > span:last-child {
    font-size: .86rem !important;
    max-width: 210px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .logo-box,
  .logo-box.has-site-logo {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    padding: 6px !important;
  }
  .nav-toggle {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
  }
  .nav-links {
    position: fixed !important;
    z-index: 10001 !important;
    top: 76px !important;
    left: 18px !important;
    right: 18px !important;
    max-height: calc(100dvh - 94px) !important;
    overflow-y: auto !important;
    padding: 14px !important;
    border-radius: 18px !important;
    background: rgba(17,19,23,.985) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    box-shadow: 0 28px 80px rgba(0,0,0,.62), 0 0 0 9999px rgba(0,0,0,.18) !important;
    backdrop-filter: blur(16px) !important;
  }
  .nav-links.open { display: flex !important; }
  .nav-links a,
  .nav-links form,
  .nav-links .btn,
  .nav-links button {
    width: 100% !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }
  .nav-links > a:not(.btn),
  .nav-links .btn,
  .nav-links button {
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }

  /* Mobile centralisation and controlled hero sizing. */
  .cds-home-hero {
    min-height: auto !important;
    padding: 1.35rem 0 3rem !important;
    place-items: center !important;
  }
  .cds-home-card {
    width: min(100%, 390px) !important;
    padding: clamp(1.35rem, 7vw, 2.2rem) !important;
    border-radius: 24px !important;
    text-align: center !important;
    gap: .85rem !important;
  }
  .cds-home-logo,
  .cds-home-logo.has-site-logo {
    width: min(190px, 58vw) !important;
    max-width: min(190px, 58vw) !important;
    padding: 14px !important;
    border-radius: 22px !important;
    margin-inline: auto !important;
  }
  .cds-home-card h1 {
    font-size: clamp(2.55rem, 12.5vw, 4.25rem) !important;
    line-height: .92 !important;
    letter-spacing: -.065em !important;
  }
  .cds-home-card .lead {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }
  .cds-home-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: min(100%, 280px) !important;
    margin-inline: auto !important;
  }
  .cds-home-actions .btn { width: 100% !important; }

  /* Store mobile: avoid split/overflowed hero text and keep product cards centered. */
  .premium-store-head h1 {
    font-size: clamp(2.05rem, 10vw, 3.1rem) !important;
    line-height: .94 !important;
    letter-spacing: -.05em !important;
    max-width: 12ch !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  .premium-store-head .lead {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    max-width: 320px !important;
  }
  :root { --cds-card-compact-width: min(100%, 306px) !important; }
  .premium-product-grid,
  .premium-product-grid-centered {
    grid-template-columns: minmax(0, var(--cds-card-compact-width)) !important;
    gap: 1.35rem !important;
  }
  .premium-list-section { padding-top: 1.5rem !important; }

  /* Blog/update cards on mobile stay readable and not giant. */
  .blog-preview-grid .blog-card {
    grid-template-columns: 1fr !important;
    grid-template-areas: "image" "date" "title" "copy" "link" !important;
    justify-items: start !important;
    gap: .65rem !important;
    text-align: left !important;
  }
  .blog-preview-grid .blog-card .blog-card-image {
    width: 100% !important;
    height: 145px !important;
    max-height: 145px !important;
    object-fit: cover !important;
  }

  /* Partnered servers: more compact but still visible. */
  .page-shell { padding: 2rem 0 3rem !important; }
  .page-hero { margin-bottom: 1.35rem !important; }
  .page-hero h1 { font-size: clamp(2.05rem, 10vw, 3.2rem) !important; }
  .hero-subtitle { font-size: .95rem !important; line-height: 1.45 !important; max-width: 320px !important; }
  .servers-accordion { gap: .75rem !important; }
  .server-accordion {
    border-radius: 18px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,.28) !important;
  }
  .server-summary {
    padding: .9rem !important;
    gap: .75rem !important;
  }
  .summary-server-name-wrap {
    gap: .55rem !important;
    align-items: center !important;
  }
  .summary-server-name {
    font-size: 1rem !important;
    line-height: 1.15 !important;
  }
  .status-pill {
    font-size: .68rem !important;
    padding: .38rem .62rem !important;
  }
  .summary-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: .55rem !important;
    width: 100% !important;
    align-items: center !important;
  }
  .summary-stat {
    min-width: 0 !important;
    align-items: start !important;
  }
  .summary-label { font-size: .7rem !important; }
  .summary-stat strong { font-size: .82rem !important; }
  .summary-toggle {
    justify-content: end !important;
    font-size: .76rem !important;
    gap: .35rem !important;
  }
  .summary-arrow {
    width: 1.55rem !important;
    height: 1.55rem !important;
  }
  .server-details {
    padding: .9rem !important;
    gap: .85rem !important;
  }
  .detail-grid {
    grid-template-columns: 1fr !important;
    gap: .55rem !important;
  }
  .detail-box {
    padding: .72rem !important;
    border-radius: 13px !important;
  }
  .detail-label { font-size: .68rem !important; margin-bottom: .25rem !important; }
  .detail-box strong { font-size: .82rem !important; line-height: 1.25 !important; }
  .mods-panel { padding: .75rem !important; border-radius: 14px !important; }
  .mods-panel-header { margin-bottom: .65rem !important; }
  .mod-inline-list,
  .mod-list {
    gap: .35rem !important;
  }
  .mod-inline-link,
  .mod-list span,
  .mod-list a {
    font-size: .68rem !important;
    padding: .32rem .48rem !important;
    border-radius: 999px !important;
  }

  /* General footer/mobile centering. */
  .site-footer { padding-inline: 14px !important; }
  .footer-inner { max-width: 360px !important; }
  .footer-main-links { gap: .7rem .9rem !important; }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .nav { z-index: 10000 !important; }
  .nav-links.open { z-index: 10001 !important; }
  .cds-home-logo,
  .cds-home-logo.has-site-logo {
    width: min(240px, 34vw) !important;
    max-width: min(240px, 34vw) !important;
  }
  .server-summary { padding: 1.1rem !important; }
  .server-details { padding: 1.1rem !important; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}


/* === v18 server status + ping colours === */
.status-pill.online,
.badge.online,
.server-status-text.online,
[data-role="status-text"].online {
  color: #78f08a !important;
}

.status-pill.online,
.badge.online {
  background: rgba(49, 214, 88, .16) !important;
  border: 1px solid rgba(94, 240, 122, .36) !important;
  box-shadow: 0 0 22px rgba(49, 214, 88, .12) !important;
}

.status-pill.offline,
.badge.offline,
.server-status-text.offline,
[data-role="status-text"].offline {
  color: #ff7777 !important;
}

.status-pill.offline,
.badge.offline {
  background: rgba(255, 82, 82, .15) !important;
  border: 1px solid rgba(255, 113, 113, .34) !important;
  box-shadow: 0 0 22px rgba(255, 82, 82, .10) !important;
}

.ping-value.ping-good,
[data-role="ping"].ping-good,
[data-role="ping-detail"].ping-good {
  color: #78f08a !important;
  text-shadow: 0 0 18px rgba(49, 214, 88, .14);
}

.ping-value.ping-warn,
[data-role="ping"].ping-warn,
[data-role="ping-detail"].ping-warn {
  color: #ffbf45 !important;
  text-shadow: 0 0 18px rgba(255, 176, 0, .14);
}

.ping-value.ping-bad,
[data-role="ping"].ping-bad,
[data-role="ping-detail"].ping-bad {
  color: #ff7777 !important;
  text-shadow: 0 0 18px rgba(255, 82, 82, .14);
}

@media (max-width: 720px) {
  .status-pill.online,
  .status-pill.offline {
    font-weight: 900;
  }
}


/* === v19 mobile server summary layout === */
@media (max-width: 720px) {
  .server-accordion .server-summary {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.9rem !important;
    padding: 1.25rem 1rem !important;
  }

  .server-summary .summary-main {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .server-summary .summary-server-name-wrap {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    flex-wrap: wrap !important;
    text-align: center !important;
  }

  .server-summary .summary-server-name {
    margin: 0 !important;
    text-align: center !important;
    line-height: 1.08 !important;
  }

  .server-summary .status-pill {
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  .server-summary .summary-stats {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(90px, auto)) !important;
    justify-content: center !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 0.7rem 1.75rem !important;
    text-align: center !important;
  }

  .server-summary .summary-stat {
    min-width: 0 !important;
    width: auto !important;
    display: grid !important;
    justify-items: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .server-summary .summary-label,
  .server-summary .summary-stat strong {
    width: 100% !important;
    text-align: center !important;
  }

  .server-summary .summary-toggle {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.65rem !important;
    margin-top: 0.15rem !important;
    text-align: center !important;
  }

  .server-summary .summary-toggle > span:first-child {
    text-align: center !important;
  }
}


/* === v20 mobile server summary: details on line two === */
@media (max-width: 720px) {
  .server-summary .summary-stats {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(74px, auto)) !important;
    justify-content: center !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 0.45rem 0.85rem !important;
    text-align: center !important;
  }

  .server-summary .summary-toggle {
    grid-column: auto !important;
    width: auto !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.45rem !important;
    margin-top: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .server-summary .summary-toggle > span:first-child {
    text-align: center !important;
    font-size: clamp(0.88rem, 3.25vw, 1rem) !important;
    line-height: 1.1 !important;
  }

  .server-summary .summary-arrow {
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
    margin-left: 0 !important;
  }

  .server-summary .summary-label {
    font-size: clamp(0.74rem, 3vw, 0.88rem) !important;
  }

  .server-summary .summary-stat strong {
    font-size: clamp(0.95rem, 3.75vw, 1.12rem) !important;
  }
}

@media (max-width: 380px) {
  .server-summary .summary-stats {
    grid-template-columns: repeat(3, minmax(64px, auto)) !important;
    gap: 0.35rem 0.55rem !important;
  }
  .server-summary .summary-toggle > span:first-child {
    font-size: 0.82rem !important;
  }
  .server-summary .summary-arrow {
    width: 1.75rem !important;
    height: 1.75rem !important;
    min-width: 1.75rem !important;
  }
}


/* === v21 mobile store title fit === */
.store-mobile-fit-title {
  display: grid;
  justify-items: center;
  text-align: center;
}

.store-mobile-fit-title span {
  display: block;
  max-width: 100%;
}

@media (max-width: 720px) {
  .premium-store-head,
  .premium-store-head.page-head,
  .page-head.shell.centered.premium-store-head {
    width: min(100%, calc(100vw - 32px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
  }

  .premium-store-head .store-mobile-fit-title,
  .store-mobile-fit-title {
    width: 100% !important;
    max-width: calc(100vw - 34px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    justify-items: center !important;
    font-size: clamp(2.35rem, 11vw, 3.45rem) !important;
    line-height: .92 !important;
    letter-spacing: -.055em !important;
    overflow: hidden !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .store-mobile-fit-title span {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .premium-store-head .lead {
    width: min(100%, 360px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}

@media (max-width: 390px) {
  .premium-store-head .store-mobile-fit-title,
  .store-mobile-fit-title {
    font-size: clamp(2rem, 10.3vw, 2.75rem) !important;
    letter-spacing: -.05em !important;
  }
}


/* === v22 server owner portal, countdowns, FAQ groups, badges, order tracking === */
.admin-owner-tools .admin-grid,
.server-owner-grid,
.owner-date-grid,
.server-countdown-grid,
.server-owner-info-grid,
.faq-category-grid {
  display: grid;
  gap: 1rem;
}

.admin-owner-tools .admin-grid,
.server-owner-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-date-grid,
.server-countdown-grid,
.server-owner-info-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-mini-list,
.owner-submission-history {
  display: grid;
  gap: .75rem;
}

.admin-inline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: .8rem;
  background: rgba(255,255,255,.035);
}

.owner-submission-preview {
  display: grid;
  gap: .45rem;
  max-height: 280px;
  overflow: auto;
  padding-right: .35rem;
}

.owner-submission-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.server-countdown-card {
  border: 1px solid rgba(215,161,47,.34);
  background: rgba(215,161,47,.07);
  box-shadow: 0 0 24px rgba(215,161,47,.09);
  border-radius: 20px;
  padding: 1rem;
  display: grid;
  gap: .25rem;
}

.server-countdown-card span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 900;
}

.server-countdown-card strong {
  font-size: 1.2rem;
}

.server-countdown-card em {
  font-style: normal;
  color: #ffbf45;
  font-weight: 900;
  font-size: 1.45rem;
}

.server-countdown-card small {
  color: var(--muted);
}

.server-owner-info-grid .detail-box strong {
  white-space: pre-wrap;
  line-height: 1.55;
}

.profile-badge-strip {
  margin: 0 0 1rem;
  border-radius: 26px;
  padding: 1rem;
}

.profile-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .48rem .78rem;
  border-radius: 999px;
  border: 1px solid rgba(215,161,47,.35);
  background: rgba(215,161,47,.10);
  color: #ffd166;
  font-weight: 900;
  font-size: .86rem;
  box-shadow: 0 0 18px rgba(215,161,47,.08);
}

.profile-badge.owner-portal-link {
  color: #fff;
  background: linear-gradient(135deg, #5c6df2, #3446c7);
  border-color: rgba(120,138,255,.45);
}

.order-tracker {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .55rem;
}

.order-track-step {
  display: inline-flex;
  align-items: center;
  padding: .28rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.order-track-step.is-done {
  color: #78f08a;
  border-color: rgba(94,240,122,.32);
  background: rgba(49,214,88,.10);
}

.faq-category-grid {
  gap: 1.25rem;
}

.faq-category-card {
  border-radius: 24px;
  padding: 1.1rem;
  border: 1px solid var(--faq-outline, rgba(255,255,255,.14)) !important;
  box-shadow: 0 0 22px var(--faq-glow, rgba(215,161,47,.10));
}

.faq-category-card .compact-title {
  margin-bottom: .65rem;
}

.faq-category-card .compact-title h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.server-owner-page textarea {
  min-height: 130px;
}

@media (max-width: 900px) {
  .admin-owner-tools .admin-grid,
  .server-owner-grid {
    grid-template-columns: 1fr;
  }
  .admin-inline-row {
    flex-direction: column;
    align-items: stretch;
  }
}


/* === v24 orders/downloads + compact store editor === */
.profile-orders-table-clean th:nth-child(1),
.profile-orders-table-clean td:nth-child(1) { width: 34%; }
.profile-orders-table-clean th:nth-child(2),
.profile-orders-table-clean td:nth-child(2) { width: 14%; }
.profile-orders-table-clean th:nth-child(3),
.profile-orders-table-clean td:nth-child(3) { width: 30%; }
.profile-orders-table-clean th:nth-child(4),
.profile-orders-table-clean td:nth-child(4) { width: 22%; }

.downloads-grid {
  display: grid;
  gap: .85rem;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 1rem;
}

.download-card > div {
  display: grid;
  gap: .25rem;
}

.admin-product-dropdown {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.035);
  padding: 0 !important;
  overflow: hidden;
}

.admin-product-dropdown + .admin-product-dropdown {
  margin-top: 1rem;
}

.admin-product-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-weight: 900;
}

.admin-product-summary::-webkit-details-marker {
  display: none;
}

.admin-product-summary::after {
  content: "▾";
  color: var(--muted);
  transition: transform .2s ease;
}

.admin-product-dropdown[open] .admin-product-summary::after {
  transform: rotate(180deg);
}

.admin-product-summary small {
  color: var(--muted);
  font-weight: 800;
}

.admin-product-fields {
  display: grid;
  gap: .9rem;
  padding: 0 1.15rem 1.15rem;
}

@media (max-width: 760px) {
  .profile-orders-table-clean,
  .profile-orders-table-clean thead,
  .profile-orders-table-clean tbody,
  .profile-orders-table-clean tr,
  .profile-orders-table-clean th,
  .profile-orders-table-clean td {
    display: block;
    width: 100% !important;
  }

  .profile-orders-table-clean thead {
    display: none;
  }

  .profile-orders-table-clean tr {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .profile-orders-table-clean td {
    padding: .45rem 0 !important;
  }

  .download-card {
    align-items: stretch;
    flex-direction: column;
  }

  .download-card .btn {
    width: 100%;
  }
}

/* === v25 refined store product CPanel === */
.store-editor-form {
  gap: 1.15rem;
  padding-bottom: 34rem;
}

.store-editor-hero,
.admin-block-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.store-admin-layout {
  display: block;
}

.store-product-list {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.store-product-editor.is-live-previewing {
  border-color: rgba(226,161,10,.55);
  box-shadow: 0 0 0 1px rgba(226,161,10,.18), 0 18px 45px rgba(0,0,0,.22);
}

.refined-product-fields {
  gap: 1rem;
}

.admin-editor-block {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: .85rem;
}

.admin-editor-block h3,
.discord-fulfilment-guide h4 {
  margin: 0;
  color: var(--accent);
}

.admin-editor-block label {
  display: grid;
  gap: .35rem;
}

.variant-row-list {
  display: grid;
  gap: .8rem;
}

.variant-admin-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
  border-radius: 16px;
  padding: .85rem;
}

.variant-admin-row .variant-remove {
  align-self: end;
}

.admin-advanced-settings {
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 16px;
  padding: .9rem;
  background: rgba(255,255,255,.025);
}

.admin-advanced-settings summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--accent);
}

.admin-advanced-settings[open] {
  display: grid;
  gap: .8rem;
}

.store-live-viewer {
  position: fixed;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  z-index: 70;
  width: min(760px, calc(100vw - 2rem));
  max-height: min(72vh, calc(100vh - 6rem));
  overflow: auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  box-shadow: 0 22px 70px rgba(0,0,0,.48);
}

.live-viewer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: .35rem;
  background: linear-gradient(180deg, rgba(9,11,18,.95) 0%, rgba(9,11,18,.88) 70%, rgba(9,11,18,0) 100%);
}

.live-viewer-header h3 {
  margin: .15rem 0 0;
}

.store-live-viewer.is-collapsed {
  width: min(340px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
}

.store-live-viewer.is-collapsed .store-preview-card,
.store-live-viewer.is-collapsed .discord-fulfilment-guide {
  display: none;
}

.store-preview-card {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: .85rem;
  background: rgba(255,255,255,.035);
  display: grid;
  gap: .7rem;
}

.store-preview-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(0,0,0,.22);
}

.store-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-preview-options {
  display: grid;
  gap: .4rem;
}

.store-preview-options span,
.store-preview-note {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  border-radius: 12px;
  padding: .55rem .65rem;
  font-size: .86rem;
}

.store-preview-options em {
  color: var(--muted);
  font-style: normal;
  margin-left: .25rem;
}

.discord-fulfilment-guide {
  border: 1px solid rgba(226,161,10,.28);
  background: rgba(226,161,10,.08);
  border-radius: 18px;
  padding: 1rem;
}

.discord-fulfilment-guide ol {
  margin: .7rem 0 0 1.15rem;
  padding: 0;
  color: var(--muted);
  display: grid;
  gap: .45rem;
  font-size: .86rem;
}

.store-editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

@media (max-width: 980px) {
  .store-editor-form {
    padding-bottom: 30rem;
  }

  .store-live-viewer {
    width: min(680px, calc(100vw - 1.5rem));
    bottom: 1rem;
  }
}

@media (max-width: 760px) {
  .store-editor-form {
    padding-bottom: 0;
  }

  .store-live-viewer {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: auto;
    max-height: none;
    overflow: visible;
    margin-top: 1rem;
  }

  .live-viewer-header {
    position: static;
    background: transparent;
    padding-bottom: 0;
  }
}

@media (max-width: 700px) {
  .store-editor-hero,
  .admin-block-heading,
  .store-editor-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .variant-admin-row {
    grid-template-columns: 1fr;
  }
}

/* === v26 live viewer top-fixed centred === */
.store-editor-form {
  padding-bottom: 8rem;
}

.store-live-viewer {
  top: 6rem;
  bottom: auto;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 2rem));
  max-height: calc(100vh - 7rem);
}

@media (max-width: 980px) {
  .store-live-viewer {
    top: 5.5rem;
    bottom: auto;
    width: min(680px, calc(100vw - 1.5rem));
  }
}

@media (max-width: 760px) {
  .store-editor-form {
    padding-bottom: 0;
  }

  .store-live-viewer {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    width: auto;
    max-height: none;
    overflow: visible;
    margin-top: 1rem;
  }
}

/* === v27 store viewer modal toggle === */
.admin-head-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.admin-viewer-button[hidden] {
  display: none !important;
}

.store-editor-form {
  padding-bottom: 2rem;
}

.store-live-viewer {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  z-index: 120;
  width: min(660px, calc(100vw - 2rem));
  max-height: min(78vh, calc(100vh - 5rem));
  overflow: auto;
  padding: 1rem;
  box-shadow: 0 28px 90px rgba(0,0,0,.62);
}

.store-live-viewer.is-closed {
  display: none !important;
}

.store-live-viewer.is-collapsed {
  width: min(340px, calc(100vw - 2rem));
}

.store-live-viewer.is-collapsed .store-preview-card,
.store-live-viewer.is-collapsed .discord-fulfilment-guide {
  display: none;
}

.live-viewer-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: .5rem;
  background: linear-gradient(180deg, rgba(15,17,24,.98) 0%, rgba(15,17,24,.9) 74%, rgba(15,17,24,0) 100%);
}

@media (max-width: 760px) {
  .store-live-viewer {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    margin-top: 0;
  }
}


/* === v28 viewport-pinned store viewer ===
   The live viewer is moved to <body> by JS and fixed to the browser viewport.
   It no longer belongs to the scrolling Store CPanel form, so the page scrolls behind it. */
.store-live-viewer[data-store-live-viewer] {
  position: fixed !important;
  top: clamp(96px, 12vh, 132px) !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  z-index: 9999 !important;
  width: min(700px, calc(100vw - 2rem)) !important;
  max-height: calc(100dvh - 9rem) !important;
  overflow: auto !important;
  margin: 0 !important;
  overscroll-behavior: contain;
}

.store-live-viewer[data-store-live-viewer].is-closed {
  display: none !important;
}

.store-live-viewer[data-store-live-viewer] .live-viewer-header {
  position: sticky;
  top: 0;
  z-index: 2;
}

@media (max-width: 760px) {
  .store-live-viewer[data-store-live-viewer] {
    position: fixed !important;
    top: 1rem !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 1rem) !important;
    max-height: calc(100dvh - 2rem) !important;
    overflow: auto !important;
  }
}

/* === v29 bottom-flushed viewport viewer ===
   The viewer stays attached to the browser window, flush with the bottom edge,
   while the Store CPanel page scrolls behind it. */
.store-live-viewer[data-store-live-viewer] {
  position: fixed !important;
  top: auto !important;
  bottom: 0 !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 9999 !important;
  width: min(760px, calc(100vw - 2rem)) !important;
  max-height: min(72dvh, calc(100dvh - 5rem)) !important;
  overflow: auto !important;
  margin: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom: 0 !important;
  box-shadow: 0 -18px 80px rgba(0,0,0,.65) !important;
  overscroll-behavior: contain;
}

.store-live-viewer[data-store-live-viewer].is-closed {
  display: none !important;
}

@media (max-width: 760px) {
  .store-live-viewer[data-store-live-viewer] {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    max-height: 76dvh !important;
    overflow: auto !important;
    border-radius: 18px 18px 0 0 !important;
  }
}

/* Launch Website storefront page - public pre-order frontend */
.launch-website-page {
  padding: clamp(3.5rem, 7vw, 7rem) 0 4rem;
}
.launch-hero {
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1rem 1rem;
}
.launch-eyebrow {
  color: #8894ff;
  letter-spacing: .28em;
  font-weight: 900;
}
.launch-hero h1 {
  margin: .4rem 0 .75rem;
  font-size: clamp(4rem, 11vw, 8.8rem);
  line-height: .88;
  letter-spacing: -.08em;
  color: #f6f8ff;
  text-transform: uppercase;
  text-shadow: 0 18px 55px rgba(0,0,0,.5);
}
.launch-hero-copy {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.2rem, 2.15vw, 1.85rem);
  line-height: 1.5;
  color: rgba(239,244,255,.76);
}
.launch-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.25rem);
  max-width: 820px;
  margin: clamp(2rem, 4vw, 3.25rem) auto 0;
  text-align: left;
}
.launch-benefit {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
.launch-benefit-icon,
.launch-trust-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(111,124,255,.92), rgba(75,83,210,.62));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 16px 40px rgba(74,88,255,.22);
  font-weight: 900;
}
.launch-benefit strong {
  display: block;
  margin-bottom: .15rem;
  color: #fff;
  font-size: 1rem;
}
.launch-benefit p {
  margin: 0;
  color: rgba(239,244,255,.68);
  line-height: 1.35;
}
.launch-plan-heading {
  text-align: center;
  max-width: 760px;
  margin: clamp(4rem, 8vw, 7rem) auto clamp(1.75rem, 4vw, 3rem);
}
.launch-plan-heading h2 {
  margin: .3rem 0 .75rem;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  letter-spacing: -.06em;
  color: #fff;
}
.launch-plan-heading p:not(.eyebrow) {
  margin: 0 auto;
  color: rgba(239,244,255,.68);
  font-size: 1.1rem;
  line-height: 1.6;
}
.launch-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}
.launch-plan-card {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(210,159,31,.34);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(23,27,34,.92), rgba(16,18,23,.96));
  box-shadow: 0 22px 55px rgba(0,0,0,.38);
}
.launch-plan-card.is-featured {
  border-color: rgba(113,126,255,.86);
  box-shadow: 0 0 0 1px rgba(113,126,255,.2), 0 28px 70px rgba(74,88,255,.18), 0 22px 55px rgba(0,0,0,.44);
}
.launch-plan-badge {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: .48rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(107,116,238,.95), rgba(70,76,178,.95));
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.launch-plan-art {
  display: block;
  height: 155px;
  overflow: hidden;
  border-radius: 23px 23px 0 0;
  background: radial-gradient(circle at 68% 32%, rgba(161,202,63,.45), transparent 10%), linear-gradient(135deg, rgba(36,63,22,.82), rgba(12,24,13,.9));
}
.launch-plan-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .52;
  mix-blend-mode: screen;
  filter: saturate(1.08) contrast(1.1);
}
.launch-plan-body {
  padding: clamp(1.25rem, 2.25vw, 1.85rem);
}
.launch-plan-body h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  text-transform: uppercase;
  letter-spacing: -.04em;
  text-align: center;
}
.launch-plan-mini {
  margin: .2rem 0 1.45rem;
  color: rgba(239,244,255,.6);
  text-align: center;
  font-size: .88rem;
}
.launch-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .25rem;
  margin-bottom: 1rem;
}
.launch-price strong {
  color: #fff;
  font-size: clamp(2.7rem, 5vw, 4.1rem);
  line-height: .95;
  letter-spacing: -.07em;
}
.launch-price span {
  color: #8e97ff;
  font-weight: 800;
}
.launch-plan-summary {
  min-height: 3.1em;
  margin: 0 auto 1.35rem;
  color: rgba(239,244,255,.76);
  text-align: center;
  line-height: 1.5;
}
.launch-feature-list {
  display: grid;
  gap: .85rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}
.launch-feature-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(239,244,255,.82);
  font-weight: 700;
}
.launch-feature-list span {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #7d8dff, #515fff);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}
.launch-plan-button {
  display: inline-flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff !important;
  background: linear-gradient(135deg, #7b8bff, #505eff);
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 14px 34px rgba(71,86,255,.24);
  transition: transform .18s ease, box-shadow .18s ease;
}
.launch-plan-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(71,86,255,.34);
}
.launch-trust-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: center;
  max-width: 980px;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding: 1.35rem 1.6rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 20px 55px rgba(0,0,0,.2);
}
.launch-trust-panel strong {
  color: #fff;
  font-size: 1.25rem;
}
.launch-trust-panel p {
  margin: .15rem 0 0;
  color: rgba(239,244,255,.72);
  line-height: 1.55;
}
@media (max-width: 980px) {
  .launch-benefits,
  .launch-pricing-grid { grid-template-columns: 1fr; }
  .launch-benefits { max-width: 560px; }
  .launch-plan-card { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .launch-website-page { padding-top: 2.25rem; }
  .launch-hero h1 { font-size: clamp(3.25rem, 17vw, 5.3rem); }
  .launch-hero-copy { font-size: 1.05rem; }
  .launch-benefit { align-items: flex-start; }
  .launch-plan-art { height: 125px; }
  .launch-trust-panel { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* Platform production-style homepage and setup checklist overrides */
.platform-home-v2 {
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
.platform-hero-v2 {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 15%, rgba(123,139,255,.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.026));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 28px 90px rgba(0,0,0,.32), inset 0 0 0 1px rgba(255,255,255,.025);
}
.platform-hero-copy h1 {
  margin: .55rem 0 1rem;
  max-width: 820px;
  color: #f7f9ff;
  font-size: clamp(3.2rem, 7.5vw, 6.4rem);
  line-height: .86;
  letter-spacing: -.085em;
  text-transform: uppercase;
  text-wrap: balance;
}
.platform-hero-copy .lead {
  max-width: 690px;
  margin: 0;
  color: rgba(235,241,255,.73);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.72;
}
.platform-home-actions-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.55rem;
}
.platform-hero-panel-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.platform-mini-stat {
  min-height: 118px;
  padding: 1.15rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.028));
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  place-items: center;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.platform-mini-stat strong {
  display: block;
  place-items: center;
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.platform-mini-stat span {
  display: block;
  margin-top: .45rem;
  place-items: center;
  color: rgba(235,241,255,.68);
  font-size: .9rem;
  font-weight: 800;
}
.platform-home-section-v2 {
  padding-top: clamp(2rem, 5vw, 4rem) !important;
  padding-bottom: clamp(1.5rem, 4vw, 2.8rem) !important;
}
.compact-section-title h2 {
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  line-height: .95;
  letter-spacing: -.07em;
}
.platform-process-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.platform-process-card-v2 {
  padding: 1.25rem;
  border-radius: 22px;
  min-height: 190px;
}
.platform-process-card-v2 span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #7b8bff, #505eff);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(79,92,255,.28);
}
.platform-process-card-v2 h3 {
  margin: 1rem 0 .45rem;
  color: #fff;
  font-size: 1.15rem;
}
.platform-process-card-v2 p {
  color: rgba(236,242,255,.68);
  line-height: 1.55;
  margin: 0;
}
.platform-home-cta-v2 {
  padding-top: 1rem !important;
}
.platform-final-cta-v2 {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  display: grid;
  gap: .85rem;
  justify-items: center;
  text-align: center;
  border-radius: 24px;
}
.platform-final-cta-v2 h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: .95;
  letter-spacing: -.065em;
}
.platform-final-cta-v2 p {
  max-width: 680px;
  margin: 0 0 .35rem;
  color: rgba(235,241,255,.72);
}

.setup-shell-v2 {
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.setup-hero-v2 {
  max-width: 1180px;
  margin: 0 auto 1.25rem;
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  border-radius: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 1.4rem;
  align-items: stretch;
  background:
    radial-gradient(circle at 10% 10%, rgba(123,139,255,.14), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.028));
}
.setup-hero-v2 h1 {
  margin: .55rem 0 .7rem;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: .9;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.setup-hero-v2 .lead {
  max-width: 760px;
  color: rgba(235,241,255,.72);
  line-height: 1.7;
  margin: 0;
}
.setup-order-card-v2 {
  padding: 1.15rem;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.11);
  display: grid;
  align-content: center;
  gap: .35rem;
}
.setup-order-card-v2 span,
.setup-order-card-v2 small {
  color: rgba(235,241,255,.58);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
}
.setup-order-card-v2 strong {
  color: #fff;
  font-size: 1.15rem;
}
.setup-order-card-v2 code {
  display: inline-block;
  color: rgba(235,241,255,.78);
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: .45rem .55rem;
  overflow-wrap: anywhere;
}
.setup-order-actions-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .45rem;
}
.setup-order-actions-v2 a {
  color: #fff;
  text-decoration: none;
  padding: .55rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.055);
  font-weight: 900;
}
.setup-wizard-v2 {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.55rem);
  border-radius: 26px;
  overflow: hidden;
}
.setup-progress-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: .7rem;
  margin-bottom: 1.25rem;
}
.setup-step-v2 {
  appearance: none;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.035);
  border-radius: 16px;
  min-height: 82px;
  padding: .85rem .7rem;
  color: rgba(235,241,255,.72);
  cursor: pointer;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .35rem;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}
.setup-step-v2 strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);
  font-weight: 950;
}
.setup-step-v2 span {
  font-weight: 900;
  font-size: .88rem;
}
.setup-step-v2.active {
  border-color: rgba(123,139,255,.8);
  background: linear-gradient(180deg, rgba(123,139,255,.18), rgba(123,139,255,.055));
  box-shadow: 0 14px 35px rgba(70,85,255,.12);
}
.setup-step-v2.active strong {
  background: linear-gradient(135deg, #7b8bff, #505eff);
  color: #fff;
}
.setup-step-v2.locked,
.setup-step-v2:disabled {
  opacity: .48;
  cursor: not-allowed;
}
.setup-panel-v2 {
  display: none;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.085);
}
.setup-panel-v2.active {
  display: grid;
  gap: 1.35rem;
  animation: setupPanelIn .18s ease both;
}
@keyframes setupPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.setup-panel-heading-v2 h2 {
  margin: .3rem 0 .5rem;
  color: #fff;
  font-size: clamp(1.75rem, 3.8vw, 3.2rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.setup-panel-heading-v2 p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(235,241,255,.72);
  line-height: 1.65;
  margin: 0;
}
.setup-form-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.setup-form-grid-v2 label {
  display: grid;
  gap: .55rem;
  color: rgba(245,248,255,.92);
  font-weight: 900;
}
.setup-form-grid-v2 input,
.setup-form-grid-v2 textarea,
.setup-form-grid-v2 select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(0,0,0,.26);
  color: #fff;
  padding: .95rem 1rem;
  font: inherit;
  outline: none;
}
.setup-form-grid-v2 input:focus,
.setup-form-grid-v2 textarea:focus {
  border-color: rgba(123,139,255,.76);
  box-shadow: 0 0 0 4px rgba(123,139,255,.12);
}
.setup-form-grid-v2 small {
  color: rgba(235,241,255,.55);
  font-weight: 700;
  line-height: 1.45;
}
.setup-page-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .85rem;
}
.setup-check-card-v2,
.setup-confirm-v2 {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .75rem;
  padding: .95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  cursor: pointer;
}
.setup-check-card-v2 input,
.setup-confirm-v2 input {
  width: 18px;
  height: 18px;
  accent-color: #6977ff;
}
.setup-check-card-v2 strong,
.setup-confirm-v2 span {
  font-weight: 950;
}
.setup-check-card-v2 small {
  display: block;
  margin-top: .18rem;
  color: rgba(235,241,255,.56);
  font-weight: 700;
}
.dns-guide-v2,
.included-url-v2 {
  border-radius: 20px;
  border: 1px solid rgba(123,139,255,.24);
  background:
    radial-gradient(circle at 12% 5%, rgba(123,139,255,.16), transparent 28%),
    rgba(255,255,255,.035);
  padding: clamp(1rem, 2.5vw, 1.5rem);
}
.dns-guide-heading-v2 {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.dns-guide-heading-v2 > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #7b8bff, #505eff);
  color: #fff;
  font-weight: 950;
}
.dns-guide-heading-v2 h3,
.included-url-v2 strong {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
}
.dns-guide-heading-v2 p,
.dns-note-v2,
.included-url-v2 p {
  margin: .18rem 0 0;
  color: rgba(235,241,255,.67);
  line-height: 1.55;
}
.dns-record-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.dns-record-grid-v2 article {
  display: grid;
  gap: .38rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.1);
}
.dns-record-grid-v2 strong {
  color: #9fa8ff;
  font-size: .82rem;
  letter-spacing: .12em;
}
.dns-record-grid-v2 span {
  color: rgba(235,241,255,.52);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.dns-record-grid-v2 code {
  color: #fff;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: .45rem .55rem;
  overflow-wrap: anywhere;
}
.setup-summary-grid-v2 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .85rem;
}
.setup-summary-grid-v2 article {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
}
.setup-summary-grid-v2 span,
.setup-summary-grid-v2 small {
  display: block;
  color: rgba(235,241,255,.56);
  font-weight: 800;
}
.setup-summary-grid-v2 strong {
  display: block;
  margin: .35rem 0 .1rem;
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: -.03em;
}
.setup-actions-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-top: .2rem;
}
.required {
  color: #ffcc54;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
@media (max-width: 980px) {
  .platform-hero-v2,
  .setup-hero-v2 { grid-template-columns: 1fr; }
  .platform-process-grid-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-form-grid-v2,
  .dns-record-grid-v2 { grid-template-columns: 1fr; }
  .setup-summary-grid-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .platform-home-v2,
  .setup-shell-v2 { padding-top: 1rem; }
  .platform-hero-copy h1 { font-size: clamp(2.5rem, 17vw, 4.3rem); }
  .platform-hero-panel-v2,
  .platform-process-grid-v2,
  .setup-summary-grid-v2 { grid-template-columns: 1fr; }
  .platform-home-actions-v2 .btn,
  .setup-actions-v2 .btn { width: 100%; justify-content: center; }
}

/* === v29 client setup dashboard + client-owned theme backgrounds === */
body.client-body {
  --client-primary: var(--site-primary, #111318);
  --client-accent: var(--site-accent, #7b8bff);
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 20%), color-mix(in srgb, var(--client-accent) 20%, transparent), transparent 24rem),
    linear-gradient(180deg, color-mix(in srgb, var(--client-primary) 82%, #242833), #0b0d10 70%) !important;
}
body.client-body::after {
  background-image: none !important;
  opacity: 0 !important;
}
body.client-body.has-custom-bg::after {
  background-image: linear-gradient(rgba(7,9,13,.78), rgba(7,9,13,.86)), var(--site-bg-image) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  opacity: var(--site-bg-opacity, .24) !important;
  filter: saturate(.95) contrast(1.05);
}
body.client-body .btn:not(.ghost):not(.danger) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--client-accent) 92%, #fff), color-mix(in srgb, var(--client-accent) 68%, #10131a)) !important;
  color: #fff !important;
}
body.client-body .status-dot { box-shadow: 0 0 26px color-mix(in srgb, var(--client-accent) 65%, transparent); }

.client-config-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  padding: clamp(2.5rem, 6vw, 5rem) 0 1rem;
}
.client-config-title {
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 16% 8%, rgba(123,139,255,.13), transparent 28%),
    rgba(19,21,26,.72);
  border-radius: 32px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 26px 70px rgba(0,0,0,.28);
}
.client-config-title h1 {
  max-width: 850px;
  margin: .35rem 0 .75rem;
  font-size: clamp(2.6rem, 8vw, 7.2rem);
  line-height: .86;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.client-config-title .lead { max-width: 780px; margin: 0; }
.client-plan-summary {
  display: grid;
  align-content: start;
  gap: 1rem;
  border-radius: 30px !important;
  padding: clamp(1.25rem, 2.5vw, 2rem) !important;
}
.plan-pill {
  justify-self: start;
  display: inline-flex;
  padding: .5rem .8rem;
  border-radius: 999px;
  background: rgba(123,139,255,.18);
  border: 1px solid rgba(123,139,255,.34);
  color: #dfe4ff;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
}
.client-plan-summary > strong {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  letter-spacing: -.06em;
}
.client-plan-summary p { margin: 0; color: rgba(235,241,255,.68); line-height: 1.55; }
.client-plan-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}
.client-plan-metrics span {
  padding: .85rem;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(235,241,255,.68);
  font-size: .86rem;
  font-weight: 800;
}
.client-plan-metrics b { display: block; color: #fff; font-size: 1.12rem; }
.client-config-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.client-config-shell { padding-top: 1rem; }
.client-config-form { display: grid; gap: 1.2rem; }
.client-config-section {
  border-radius: 28px !important;
  padding: clamp(1.2rem, 3vw, 2rem) !important;
  display: grid;
  gap: 1.2rem;
}
.config-section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.config-step {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(123,139,255,.92), rgba(80,94,255,.74));
  box-shadow: 0 16px 36px rgba(70,85,255,.16);
  color: #fff;
  font-weight: 950;
  letter-spacing: -.04em;
}
.config-section-head h2 {
  margin: .15rem 0 .35rem;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  letter-spacing: -.045em;
}
.config-section-head p:not(.eyebrow) {
  max-width: 860px;
  margin: 0;
  color: rgba(235,241,255,.66);
  line-height: 1.55;
}
.guide-box {
  border: 1px solid rgba(123,139,255,.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 20%, rgba(123,139,255,.14), transparent 25%),
    rgba(255,255,255,.035);
  padding: 1rem 1.1rem;
}
.guide-box strong {
  display: block;
  margin-bottom: .25rem;
  color: #fff;
  font-size: .95rem;
  letter-spacing: -.02em;
}
.guide-box p { margin: 0; color: rgba(235,241,255,.68); line-height: 1.55; }
.config-grid { display: grid; gap: .95rem; }
.config-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.config-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.config-grid label {
  display: grid;
  gap: .5rem;
  color: rgba(245,248,255,.92);
  font-weight: 900;
}
.config-grid input,
.config-grid textarea,
.config-grid select {
  width: 100%;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(0,0,0,.28);
  color: #fff;
  padding: .9rem 1rem;
  outline: none;
}
.config-grid input[readonly] { color: rgba(255,255,255,.72); background: rgba(255,255,255,.04); }
.config-grid input[type="color"] { min-height: 48px; padding: .35rem; cursor: pointer; }
.config-grid input[type="range"] { accent-color: #7b8bff; }
.config-grid input:focus,
.config-grid textarea:focus,
.config-grid select:focus {
  border-color: rgba(123,139,255,.7);
  box-shadow: 0 0 0 4px rgba(123,139,255,.12);
}
.config-grid small { color: rgba(235,241,255,.52); font-weight: 750; line-height: 1.4; }
.background-preview-card,
.included-url-card {
  min-height: 118px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(0,0,0,.24);
  padding: 1rem;
  display: grid;
  align-content: center;
  gap: .65rem;
}
.background-preview-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
}
.background-preview-card p,
.included-url-card p { margin: 0; color: rgba(235,241,255,.62); line-height: 1.5; }
.included-url-card code {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.starter-only-card {
  border-color: rgba(255,204,84,.2);
  background: linear-gradient(180deg, rgba(255,204,84,.06), rgba(255,255,255,.025));
}
.inline-check {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .65rem !important;
  color: rgba(245,248,255,.9) !important;
  font-weight: 900;
}
.inline-check input { width: 18px !important; height: 18px; accent-color: #7b8bff; }
.panel-check {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 1rem;
}
.page-toggle-grid-pro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .85rem;
}
.page-toggle-pro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: center;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: .95rem 1rem;
  cursor: pointer;
}
.page-toggle-pro input { width: 18px; height: 18px; accent-color: #7b8bff; }
.page-toggle-pro strong { display: block; color: #fff; }
.page-toggle-pro small { display: block; color: rgba(235,241,255,.54); margin-top: .1rem; }
.page-toggle-pro.locked {
  opacity: .52;
  cursor: not-allowed;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.035) 8px, rgba(255,255,255,.018) 8px, rgba(255,255,255,.018) 16px);
}
.dns-guide-card .dns-record-grid-v2 { margin-top: 1rem; }
.client-config-savebar {
  position: sticky;
  bottom: 16px;
  z-index: 6;
  border-radius: 24px !important;
  padding: 1rem !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.client-config-savebar p { margin: .15rem 0 0; color: rgba(235,241,255,.62); }
.danger-zone { margin-top: 1.25rem; }
.danger-zone .config-step { background: linear-gradient(135deg, #ff7b7b, #a83232); }
@media (max-width: 980px) {
  .client-config-hero,
  .config-grid.two,
  .config-grid.three { grid-template-columns: 1fr; }
  .client-plan-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .config-section-head { grid-template-columns: 1fr; }
  .client-plan-metrics,
  .page-toggle-grid-pro { grid-template-columns: 1fr; }
  .client-config-actions .btn,
  .client-config-savebar .btn { width: 100%; justify-content: center; }
  .client-config-savebar { position: static; display: grid; }
}

/* Production client portal */
.client-auth-hero,
.client-dashboard-hero {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(2rem, 6vw, 4rem);
}
.client-auth-card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3rem) !important;
  border-radius: 32px !important;
  text-align: center;
}
.client-auth-card h1,
.client-dashboard-hero h1 {
  margin: .25rem 0 1rem;
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: -.07em;
  line-height: .92;
}
.client-auth-actions,
.client-site-actions,
.client-membership-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.2rem;
}
.client-auth-guide { margin-top: 1.4rem; text-align: left; }
.client-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 1.2rem;
  align-items: end;
}
.client-steam-card {
  border-radius: 24px !important;
  padding: 1.35rem !important;
}
.client-steam-card span,
.client-site-meta span { color: rgba(235,241,255,.58); font-weight: 800; }
.client-steam-card strong {
  display: block;
  margin-top: .25rem;
  color: #fff;
  font-size: 1.15rem;
}
.client-site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
}
.client-site-card {
  border-radius: 28px !important;
  padding: 1.4rem !important;
  display: grid;
  gap: 1rem;
}
.client-site-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: -.05em;
}
.client-site-card p { margin: 0; color: rgba(235,241,255,.66); line-height: 1.55; }
.client-site-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
}
.membership-badge {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: .42rem .7rem;
  font-weight: 950;
  font-size: .78rem;
}
.membership-badge.ok { color: #b8ffd2; background: rgba(33, 190, 94, .12); border-color: rgba(77,255,150,.24); }
.membership-badge.warn { color: #ffdca3; background: rgba(255,172,54,.12); border-color: rgba(255,198,95,.28); }
.client-site-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.client-site-meta span {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: .8rem;
}
.client-site-meta strong { display: block; color: #fff; }
.empty-client-sites {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  border-radius: 28px !important;
  padding: 2rem !important;
}
.client-membership-section { margin-top: -1rem; margin-bottom: 1.5rem; }
.client-membership-card {
  border-radius: 28px !important;
  padding: 1.4rem !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr);
  gap: 1.2rem;
  align-items: center;
}
.client-membership-card.is-warning { border-color: rgba(255,181,71,.38) !important; box-shadow: 0 18px 55px rgba(255, 158, 36, .08); }
.client-membership-card h2 { margin: .1rem 0 .5rem; color: #fff; font-size: clamp(1.45rem, 3vw, 2.2rem); letter-spacing: -.045em; }
.client-membership-card p { margin: .35rem 0 0; color: rgba(235,241,255,.66); line-height: 1.55; }
.danger-copy { color: #ffb3b3 !important; font-weight: 850; }
.cancel-membership-form { display: grid; gap: .85rem; }
.btn.danger { background: linear-gradient(135deg, #ff6b6b, #b93131); color: #fff; box-shadow: 0 16px 36px rgba(220, 60, 60, .18); }
.cancellation-warning {
  border: 1px solid rgba(255,181,71,.25);
  border-radius: 16px;
  background: rgba(255,181,71,.08);
  padding: .9rem;
}
.cancellation-warning.compact p { font-size: .92rem; }
@media (max-width: 860px) {
  .client-dashboard-hero,
  .client-membership-card { grid-template-columns: 1fr; }
  .client-site-meta { grid-template-columns: 1fr; }
  .client-auth-actions .btn,
  .client-site-actions .btn,
  .client-membership-actions .btn { width: 100%; justify-content: center; }
}

/* === v35 safer client Stripe/Discord setup guides === */
.guide-rich {
  padding: 1.15rem 1.25rem;
}
.guide-steps {
  margin: .65rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .58rem;
  color: rgba(235,241,255,.72);
  line-height: 1.58;
}
.guide-steps.compact { gap: .45rem; }
.guide-steps li::marker { color: var(--client-accent, #7b8bff); font-weight: 950; }
.guide-steps b { color: #fff; }
.guide-steps code,
.secret-status-card code {
  color: #fff;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  padding: .16rem .38rem;
  overflow-wrap: anywhere;
}
.sub-setup-card,
.secret-status-card,
.steam-managed-card,
.plan-locked-notice {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  border-radius: 22px;
  padding: clamp(1rem, 2vw, 1.25rem);
}
.sub-setup-card { display: grid; gap: 1rem; }
.sub-setup-head h3 {
  margin: .15rem 0 .35rem;
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  letter-spacing: -.04em;
}
.sub-setup-head p,
.secret-status-card p,
.steam-managed-card p,
.plan-locked-notice p {
  margin: 0;
  color: rgba(235,241,255,.66);
  line-height: 1.55;
}
.warning-guide {
  border-color: rgba(255,204,84,.22);
  background:
    radial-gradient(circle at 8% 10%, rgba(255,204,84,.12), transparent 28%),
    rgba(255,255,255,.032);
}
.secret-status-card {
  display: grid;
  align-content: center;
  gap: .65rem;
  min-height: 110px;
}
.secret-status-card strong,
.steam-managed-card strong,
.plan-locked-notice strong {
  color: #fff;
  font-size: 1.02rem;
}
.full-span { grid-column: 1 / -1; }
.steam-managed-card {
  border-color: rgba(123,139,255,.2);
  background:
    radial-gradient(circle at 10% 15%, rgba(123,139,255,.12), transparent 28%),
    rgba(255,255,255,.035);
}
.plan-locked-notice {
  border-color: rgba(255,204,84,.18);
  background: rgba(255,204,84,.045);
}
@media (max-width: 980px) {
  .full-span { grid-column: auto; }
}

.profile-grid-centered { align-items: stretch; }
.simple-icon-card { display:flex; align-items:center; justify-content:center; font-size:3rem; }


/* CDS patch: more breathing room for platform/client setup panels */
.platform-active-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}
.platform-active-site-card {
  display: grid;
  gap: .75rem;
  min-height: 100%;
}
.client-config-shell { padding-top: 2rem; padding-bottom: 3rem; }
.client-config-form { gap: 2rem; }
.client-config-section { padding: clamp(1.6rem, 3vw, 2.5rem) !important; gap: 1.65rem; }
.config-grid { gap: 1.25rem; }
.guide-box.free-starter-banner {
  margin-top: 1rem;
  border-color: rgba(114, 255, 180, .28);
  background: linear-gradient(135deg, rgba(77, 255, 157, .12), rgba(123,139,255,.07));
}

/* === v31 platform homepage highlight cards refresh === */
.platform-hero-v2 {
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
}
.platform-hero-panel-v2 {
  width: min(100%, 390px);
  justify-self: center;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.25rem);
  padding: clamp(.75rem, 1.6vw, 1rem);
  border-radius: 30px;
  position: relative;
  isolation: isolate;
}
.platform-hero-panel-v2::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 25% 20%, rgba(123,139,255,.22), transparent 38%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,.12), transparent 40%);
  opacity: .85;
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.platform-hero-panel-v2:hover::before {
  opacity: 1;
  transform: scale(1.025);
}
.platform-mini-stat {
  min-height: 136px;
  padding: 1.25rem 1rem 1.15rem;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 30% 12%, rgba(255,255,255,.2), transparent 25%),
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.035) 55%, rgba(123,139,255,.07));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    0 18px 46px rgba(0,0,0,.26),
    inset 0 0 0 1px rgba(255,255,255,.035);
  transform: translateY(0) scale(1);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.platform-mini-stat::before {
  content: "";
  width: 42px;
  height: 42px;
  margin-bottom: .85rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.04)),
    rgba(123,139,255,.18);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 30px rgba(123,139,255,.18);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
}
.platform-mini-stat:nth-child(1)::before { content: "✦"; }
.platform-mini-stat:nth-child(2)::before { content: "↗"; }
.platform-mini-stat:nth-child(3)::before { content: "⌁"; }
.platform-mini-stat:nth-child(4)::before { content: "▣"; }
.platform-mini-stat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 12%, rgba(255,255,255,.13), transparent 38%);
  transform: translateX(-135%);
  transition: transform .55s ease;
  pointer-events: none;
}
.platform-mini-stat:hover {
  transform: translateY(-7px) scale(1.025);
  border-color: rgba(215,221,231,.34);
  box-shadow:
    0 24px 62px rgba(0,0,0,.34),
    0 0 34px rgba(123,139,255,.16),
    inset 0 0 0 1px rgba(255,255,255,.07);
  background:
    radial-gradient(circle at 30% 12%, rgba(255,255,255,.25), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.04) 52%, rgba(123,139,255,.12));
}
.platform-mini-stat:hover::after {
  transform: translateX(135%);
}
.platform-mini-stat strong {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  letter-spacing: -.06em;
  text-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.platform-mini-stat span {
  margin-top: .5rem;
  color: rgba(239,244,255,.78);
  line-height: 1.15;
}
@media (max-width: 980px) {
  .platform-hero-v2 { grid-template-columns: 1fr; }
  .platform-hero-panel-v2 { width: min(100%, 460px); margin-top: .5rem; }
}
@media (max-width: 520px) {
  .platform-hero-panel-v2 { grid-template-columns: 1fr; padding: .25rem; }
  .platform-mini-stat { min-height: 112px; }
}

/* Pricing card refresh: central content, reactive icons, stronger plan art */
.launch-plan-card {
  isolation: isolate;
  text-align: center;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}
.launch-plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(117,129,255,.18), transparent 34%), radial-gradient(circle at 80% 18%, rgba(210,159,31,.14), transparent 28%);
  opacity: .55;
  transition: opacity .24s ease;
  z-index: -1;
}
.launch-plan-card:hover {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(128,139,255,.78);
  box-shadow: 0 0 0 1px rgba(128,139,255,.22), 0 34px 86px rgba(74,88,255,.18), 0 28px 70px rgba(0,0,0,.54);
}
.launch-plan-card:hover::before { opacity: .95; }
.launch-plan-card:hover .launch-plan-art img {
  transform: scale(1.075) rotate(.4deg);
  opacity: .95;
  filter: saturate(1.25) contrast(1.12) brightness(1.07);
}
.launch-plan-art {
  position: relative;
  height: 172px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.launch-plan-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.14) 42%, transparent 64%);
  transform: translateX(-120%) skewX(-16deg);
  transition: transform .6s ease;
  pointer-events: none;
}
.launch-plan-card:hover .launch-plan-art::after { transform: translateX(120%) skewX(-16deg); }
.launch-plan-art img {
  opacity: .82;
  mix-blend-mode: normal;
  filter: saturate(1.12) contrast(1.08);
  transition: transform .35s ease, opacity .24s ease, filter .24s ease;
}
.launch-plan-body {
  display: flex;
  min-height: 548px;
  flex-direction: column;
  align-items: center;
}
.launch-plan-summary {
  min-height: 0;
  max-width: 290px;
}
.launch-feature-list {
  width: 100%;
  max-width: 310px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}
.launch-feature-list li {
  width: 100%;
  justify-content: center;
  text-align: center;
  gap: .65rem;
  padding: .2rem .35rem;
  border-radius: 999px;
  transition: transform .18s ease, color .18s ease, background .18s ease;
}
.launch-feature-list li:hover {
  transform: translateY(-2px);
  color: #fff;
  background: rgba(255,255,255,.045);
}
.launch-feature-list li span {
  box-shadow: 0 0 0 rgba(100,117,255,0);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.launch-feature-list li:hover span {
  transform: scale(1.12) rotate(-8deg);
  box-shadow: 0 0 24px rgba(100,117,255,.35);
}
.launch-feature-list li.is-negative span {
  background: linear-gradient(135deg, #ff6b6b, #b53636);
}
.launch-feature-list li.is-negative:hover span {
  box-shadow: 0 0 24px rgba(255,88,88,.3);
}
.launch-plan-button {
  margin-top: auto;
}
@media (max-width: 980px) {
  .launch-plan-body { min-height: auto; }
}

/* Compact launch/pricing page pass - tighter vertical rhythm and smaller plan cards */
.launch-website-page {
  padding: clamp(1.4rem, 3vw, 2.6rem) 0 clamp(2.2rem, 4vw, 3rem) !important;
}
.launch-hero {
  max-width: 820px !important;
  padding: clamp(1.35rem, 3vw, 2.35rem) 1rem .25rem !important;
}
.launch-hero h1 {
  margin: .25rem 0 .45rem !important;
  font-size: clamp(3.6rem, 8.5vw, 6.8rem) !important;
  line-height: .86 !important;
}
.launch-hero-copy {
  max-width: 620px !important;
  font-size: clamp(1.05rem, 1.65vw, 1.45rem) !important;
  line-height: 1.38 !important;
}
.launch-benefits {
  max-width: 720px !important;
  gap: clamp(.8rem, 2vw, 1.4rem) !important;
  margin: clamp(1.35rem, 2.8vw, 2rem) auto 0 !important;
}
.launch-benefit-icon,
.launch-trust-icon {
  width: 44px !important;
  height: 44px !important;
  flex-basis: 44px !important;
}
.launch-benefit strong { font-size: .9rem !important; }
.launch-benefit p { font-size: .82rem !important; }
.launch-plan-heading {
  max-width: 680px !important;
  margin: clamp(2.2rem, 4vw, 3.4rem) auto clamp(1rem, 2vw, 1.4rem) !important;
}
.launch-plan-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem) !important;
  margin-bottom: .4rem !important;
}
.launch-plan-heading p:not(.eyebrow) {
  font-size: .95rem !important;
  line-height: 1.45 !important;
}
.launch-pricing-grid {
  max-width: 1120px !important;
  margin: 0 auto !important;
  gap: clamp(1rem, 2vw, 1.35rem) !important;
}
.launch-plan-card {
  border-radius: 20px !important;
  max-width: 355px !important;
  width: 100% !important;
  margin: 0 auto !important;
}
.launch-plan-badge {
  padding: .38rem .9rem !important;
  font-size: .66rem !important;
}
.launch-plan-art {
  height: 126px !important;
  border-radius: 19px 19px 0 0 !important;
}
.launch-plan-body {
  min-height: 432px !important;
  padding: 1rem 1.05rem 1.15rem !important;
}
.launch-plan-body h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.55rem) !important;
}
.launch-plan-mini {
  margin: .15rem 0 .9rem !important;
  font-size: .78rem !important;
}
.launch-price {
  margin-bottom: .65rem !important;
}
.launch-price strong {
  font-size: clamp(2.35rem, 3.6vw, 3.25rem) !important;
}
.launch-price span {
  font-size: .82rem !important;
}
.launch-plan-summary {
  max-width: 255px !important;
  margin-bottom: .9rem !important;
  font-size: .84rem !important;
  line-height: 1.35 !important;
}
.launch-feature-list {
  max-width: 285px !important;
  gap: .48rem !important;
  margin-bottom: 1rem !important;
}
.launch-feature-list li {
  gap: .48rem !important;
  padding: .1rem .25rem !important;
  font-size: .82rem !important;
  line-height: 1.25 !important;
}
.launch-feature-list span {
  width: 18px !important;
  height: 18px !important;
  flex-basis: 18px !important;
  font-size: .62rem !important;
}
.launch-plan-button {
  min-height: 48px !important;
  border-radius: 10px !important;
  font-size: .86rem !important;
}
.launch-trust-panel {
  max-width: 900px !important;
  margin: clamp(1.4rem, 3vw, 2.1rem) auto 0 !important;
  padding: 1rem 1.2rem !important;
}
.launch-trust-panel strong { font-size: 1.05rem !important; }
.launch-trust-panel p { font-size: .86rem !important; line-height: 1.35 !important; }
@media (max-width: 980px) {
  .launch-plan-card { max-width: 430px !important; }
  .launch-plan-body { min-height: auto !important; }
  .launch-benefits { grid-template-columns: 1fr !important; max-width: 390px !important; }
}
@media (max-width: 640px) {
  .launch-website-page { padding-top: 1.25rem !important; }
  .launch-hero h1 { font-size: clamp(3rem, 15vw, 4.4rem) !important; }
  .launch-plan-art { height: 112px !important; }
}

/* First 5 Starter free promo */
.launch-plan-badge.is-free {
  background: linear-gradient(135deg, #18d37f, #6d7cff);
  color: #fff;
  box-shadow: 0 14px 34px rgba(24, 211, 127, 0.28);
}
.launch-plan-card.has-free-starter {
  border-color: rgba(24, 211, 127, 0.5);
  box-shadow: 0 18px 55px rgba(24, 211, 127, 0.12), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.free-starter-strip {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(24, 211, 127, 0.35);
  border-radius: 16px;
  background: rgba(24, 211, 127, 0.09);
  color: #f6fff9;
  font-weight: 800;
}
