/* ──────────────────────────────────────────────────────────────
   Game Server VPS — Page Styles
   ────────────────────────────────────────────────────────────── */

/* Hero */
.gs-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, #0a1428 0%, #060d1c 50%, #03060f 100%);
  isolation: isolate;
}
#gs-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}
.gs-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,224,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,224,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  animation: gs-grid-pan 40s linear infinite;
}
@keyframes gs-grid-pan {
  from { background-position: 0 0; }
  to   { background-position: 48px 48px; }
}
.gs-hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,224,255,0.12) 0%, transparent 65%);
  top: 30%;
  left: 35%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.gs-hero-content { position: relative; z-index: 2; }
.gs-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 20px;
  padding-bottom: 0.12em;
  background: linear-gradient(135deg, #ffffff 0%, #c0e8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gs-hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 580px;
}
.gs-hero-support {
  font-size: 0.95rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
}
.gs-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero floating game cards */
.gs-hero-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gs-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15,29,56,0.85);
  border: 1px solid rgba(0,224,255,0.15);
  border-radius: 12px;
  padding: 14px 18px;
  backdrop-filter: blur(8px);
  animation: gs-card-float 6s ease-in-out infinite;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.gs-hero-card:nth-child(2) { animation-delay: -2s; }
.gs-hero-card:nth-child(3) { animation-delay: -4s; }
.gs-hero-card:hover {
  border-color: rgba(0,224,255,0.4);
  box-shadow: 0 0 24px rgba(0,224,255,0.15);
}
@keyframes gs-card-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.gs-hero-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.gs-hero-card-name { font-size: 14px; font-weight: 700; color: var(--text-1); }
.gs-hero-card-meta { font-size: 12px; color: var(--text-4); }

/* Game cards grid — theme-aware */
.gs-games-section {
  position: relative;
  overflow: hidden;
}
.gs-games-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image:
    linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  z-index: 0;
}
.gs-games-section > .container { position: relative; z-index: 1; }
.gs-games-section .section-header { margin-bottom: 48px; }
.gs-games-section .section-eyebrow { color: var(--cyan); }
.gs-games-section .section-title {
  text-shadow: 0 0 28px rgba(0,224,255,0.12);
}
.gs-game-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  height: 100%;
}
.gs-game-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.7;
}
.gs-game-card::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  right: -62px;
  bottom: -64px;
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  opacity: 0.3;
  pointer-events: none;
}
.gs-game-card:hover {
  border-color: rgba(0,224,255,0.45);
  box-shadow: 0 16px 44px rgba(0,224,255,0.1), var(--shadow-md);
  transform: translateY(-6px);
}
.gs-game-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
.gs-game-card-top { position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.gs-game-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(0,224,255,0.1);
  border: 1px solid rgba(0,224,255,0.15);
}
.gs-game-card-name {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.gs-game-card-desc {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 14px;
}
.gs-game-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: rgba(0,98,255,0.14);
  border: 1px solid rgba(0,98,255,0.25);
  color: var(--blue-light);
}
.gs-game-card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-4);
  margin-top: 10px;
}
.gs-game-card-meta span:first-child { color: var(--cyan); }
.gs-game-card-meta span:last-child { color: var(--text-4); }
.gs-game-card-meta i { color: inherit; }

/* Keep the game page's FAQ in the same dark visual system in every theme. */
.gs-faq-section {
  background: #060d1c !important;
  color: #ffffff !important;
}
.gs-faq-section h2 { color: #ffffff !important; }
.gs-faq-section .accordion-item-svps {
  background: #0f1d38 !important;
  border-color: rgba(255,255,255,0.11) !important;
}
.gs-faq-section .accordion-btn-svps {
  background: #0f1d38 !important;
  color: #ffffff !important;
}
.gs-faq-section .accordion-btn-svps:not(.collapsed) {
  background: #132748 !important;
  color: #ffffff !important;
}
.gs-faq-section .accordion-body {
  background: #0f1d38 !important;
  color: rgba(220,237,255,0.72) !important;
}
.gs-faq-section .accordion-body strong { color: #ffffff !important; }
.gs-faq-section .accordion-body code {
  background: rgba(0,224,255,0.1) !important;
  color: var(--cyan) !important;
}
.gs-game-card-meta span { display: flex; align-items: center; gap: 4px; }

/* Light-mode game cards — clean white with neon accent rails */
body.light-mode .gs-games-section .gs-game-card {
  background: #ffffff;
  border-color: rgba(0,20,60,0.12);
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}
body.light-mode .gs-games-section .gs-game-card::before {
  opacity: 0.5;
}
body.light-mode .gs-games-section .gs-game-card:hover {
  border-color: rgba(0,98,255,0.35);
  box-shadow: 0 16px 44px rgba(0,98,255,0.1), 0 2px 14px rgba(0,0,0,0.08);
}
body.light-mode .gs-games-section .gs-game-card::after {
  border-color: rgba(0,98,255,0.12);
  opacity: 0.4;
}
body.light-mode .gs-games-section .gs-game-card-icon {
  background: rgba(0,98,255,0.08) !important;
  border-color: rgba(0,98,255,0.15) !important;
}

/* CPU Toggle */
.gs-cpu-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 32px;
  max-width: 720px;
  padding: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-full);
}
.gs-cpu-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  color: var(--text-3);
}
.gs-cpu-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-1); }
.gs-cpu-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.gs-cpu-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 4px 20px var(--blue-glow);
}
.gs-cpu-btn-label { font-size: 14px; font-weight: 700; }
.gs-cpu-btn-sub { font-size: 11px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }

/* Tier info */
.gs-tier-info {
  max-width: 800px;
  margin: 0 auto 32px;
  text-align: center;
}
.gs-tier-labels {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.gs-tier-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: rgba(0,224,255,0.1);
  border: 1px solid rgba(0,224,255,0.2);
  color: var(--cyan);
}
.gs-tier-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 14px;
}
.gs-tier-bestfor {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 10px;
}
.gs-tier-bestfor strong { color: var(--text-2); }
.gs-tier-note {
  font-size: 12px;
  color: var(--text-4);
  line-height: 1.6;
  font-style: italic;
}
.gs-tier-warning {
  font-size: 12px;
  color: var(--warning);
  line-height: 1.6;
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--r-sm);
  text-align: left;
}

/* Pricing table */
.gs-pricing-wrap {
  transition: opacity 0.3s;
}
.gs-pricing-wrap.switching { opacity: 0.3; }
/* Center pricing table content */
.gs-pricing-wrap .table-svps th,
.gs-pricing-wrap .table-svps td { text-align: center; }
.gs-pricing-wrap .table-svps thead tr th:first-child,
.gs-pricing-wrap .table-svps tbody tr td:first-child { text-align: center; }
@media (max-width: 991px) {
  .gs-pricing-wrap .table-svps th,
  .gs-pricing-wrap .table-svps td { text-align: left; }
  .gs-pricing-wrap .table-svps tbody tr td:first-child { justify-content: flex-start; }
}
/* Light mode: keep btn-order visible on dark sections */
body.light-mode .section-py:not(.section-lm-light) .btn-order { color: #fff !important; }
body.light-mode .section-py:not(.section-lm-light) .btn-order:hover { color: #fff !important; }

/* Matrix table */
.gs-matrix-table td { font-size: 13.5px; }
.gs-matrix-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.gs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gs-dot-green  { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.gs-dot-amber  { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,0.4); }
.gs-dot-red    { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.4); }
.gs-matrix-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.gs-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
}

/* Setup cards */
.gs-setup-card {
  background: linear-gradient(145deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  padding: 32px;
  height: 100%;
}
.gs-setup-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(0,98,255,0.12);
  border: 1px solid rgba(0,98,255,0.2);
  color: var(--blue-light);
  margin-bottom: 20px;
}
.gs-setup-icon-alt {
  background: rgba(0,224,255,0.12);
  border-color: rgba(0,224,255,0.2);
  color: var(--cyan);
}
.gs-setup-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
}
.gs-setup-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 20px;
}
.gs-setup-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gs-setup-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.gs-setup-list li i { font-size: 16px; flex-shrink: 0; }
.gs-setup-list li .bi-check-lg { color: var(--green); }
.gs-setup-list li .bi-exclamation-triangle { color: var(--warning); }
.gs-setup-list li .bi-x-circle { color: var(--error); }
.gs-setup-note {
  font-size: 12.5px;
  color: var(--text-4);
  line-height: 1.6;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.gs-setup-note code {
  background: rgba(0,224,255,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--cyan);
}

/* Responsive */
@media (max-width: 768px) {
  .gs-cpu-toggle { flex-direction: column; border-radius: var(--r-lg); }
  .gs-cpu-btn { flex-direction: row; justify-content: center; gap: 8px; }
  .gs-hero-cards { display: none; }
}
@media (max-width: 575px) {
  .gs-game-card { padding: 18px; }
  .gs-setup-card { padding: 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gs-hero-grid { animation: none; }
  .gs-hero-card { animation: none; }
  #gs-canvas { display: none; }
  .gs-game-card:hover { transform: none; }
  .gs-pricing-wrap { transition: none; }
}

@media (max-width: 768px) {
  .gs-games-section::before { opacity: 0.04; }
  .gs-game-card { box-shadow: var(--shadow-sm); }
}
