/* CSS Variables and Tokens */
:root {
  --color-obsidian: #08010f;
  --color-obsidian-rgb: 8, 1, 15;
  --color-graphite: #150a21;
  --color-graphite-rgb: 21, 10, 33;
  --color-electric: #a35ed4;
  --color-electric-rgb: 163, 94, 212;
  --color-electric-glow: rgba(163, 94, 212, 0.35);
  --color-violet: #7c3aed;
  --color-silver: #f1f5f9;
  --color-muted: #94a3b8;
  --color-steel: #2e1d3e;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --transition-smooth: 0.2s ease-in-out;
}

/* Base resets & styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-obsidian);
  color: var(--color-silver);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Global Space Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 10%, rgba(124, 58, 237, 0.15), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(163, 94, 212, 0.08), transparent 50%);
  z-index: -2;
  pointer-events: none;
}

/* Typography styling */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-silver);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font-family: inherit;
}

/* Container Shell */
.section-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-shell-wide {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Sticky Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(163, 94, 212, 0.25);
  background-color: rgba(8, 1, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 36px rgba(104, 40, 144, 0.18);
}

nav {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-container {
  position: relative;
  height: 48px;
  width: 48px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(163, 94, 212, 0.4);
  background-color: var(--color-graphite);
  box-shadow: 0 0 12px rgba(163, 94, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-silver);
  text-shadow: 0 0 12px rgba(163, 94, 212, 0.45);
}

.logo-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(163, 94, 212, 0.2);
  background-color: rgba(21, 10, 33, 0.55);
  padding: 4px;
}

.nav-links a {
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-muted);
  transition: var(--transition-smooth);
}

.nav-links a:hover, .nav-links a.active {
  background-color: rgba(163, 94, 212, 0.1);
  color: var(--color-silver);
  box-shadow: 0 0 18px rgba(163, 94, 212, 0.24);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-violet), var(--color-electric));
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(163, 94, 212, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(163, 94, 212, 0.58);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(163, 94, 212, 0.45);
  background-color: transparent;
  color: var(--color-silver);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  gap: 8px;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--color-electric);
  background-color: rgba(163, 94, 212, 0.1);
  box-shadow: 0 0 20px rgba(163, 94, 212, 0.25);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Glassmorphism Cards */
.glass-card {
  background-color: rgba(21, 10, 33, 0.55);
  border: 1px solid rgba(163, 94, 212, 0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.shadow-purple {
  box-shadow: 0 4px 20px rgba(163, 94, 212, 0.15);
}

.glass-card.interactive:hover {
  transform: translateY(-4px);
  border-color: rgba(163, 94, 212, 0.6);
  box-shadow: 0 0 36px rgba(163, 94, 212, 0.32);
}

/* Badges */
.badge-electric {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(163, 94, 212, 0.4);
  background-color: rgba(163, 94, 212, 0.15);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-silver);
  box-shadow: 0 0 18px rgba(163, 94, 212, 0.22);
}

.badge-muted {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(163, 94, 212, 0.25);
  background-color: rgba(21, 10, 33, 0.6);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

/* Sub-nav mobile scroll */
.mobile-nav-scroll {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.mobile-nav-scroll a {
  flex-shrink: 0;
  border-radius: var(--radius-full);
  border: 1px solid rgba(163, 94, 212, 0.2);
  background-color: rgba(21, 10, 33, 0.6);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
}

/* Hero Section */
.hero-section {
  display: grid;
  align-items: center;
  gap: 48px;
  padding: 48px 0;
}

@media (min-width: 1024px) {
  .hero-section {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.05;
  text-shadow: 0 0 24px rgba(163, 94, 212, 0.45);
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  color: var(--color-electric);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.hero-content p.headline {
  font-size: 1.25rem;
  color: var(--color-muted);
  font-weight: 500;
  margin-top: 24px;
}

.hero-content p.subtext {
  font-size: 1rem;
  color: var(--color-muted);
  margin-top: 16px;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-visual {
  position: relative;
}

.hero-blur-bg {
  position: absolute;
  inset: -24px;
  border-radius: 2rem;
  background-color: rgba(163, 94, 212, 0.18);
  filter: blur(48px);
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-image-container {
  position: relative;
  aspect-ratio: 2.1 / 1;
  min-height: 380px;
  background-color: rgba(8, 1, 15, 0.95);
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-features-bar {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(163, 94, 212, 0.2);
  background-color: rgba(8, 1, 15, 0.72);
  padding: 16px;
}

@media (min-width: 640px) {
  .hero-features-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(21, 10, 33, 0.72);
  border: 1px solid rgba(163, 94, 212, 0.25);
  border-radius: 8px;
  padding: 12px;
}

.feature-bar-item svg {
  color: var(--color-electric);
  flex-shrink: 0;
}

.feature-bar-item span {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-silver);
}

/* Featured Section / Products Section */
.products-section {
  padding: 56px 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.section-title-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-electric);
}

.section-title {
  font-size: 1.85rem;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.products-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  justify-content: center;
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 290px; /* Constrained card width */
  margin: 0 auto;  /* Centered in column */
  width: 100%;
}

.product-card-img-link {
  display: block;
}

.product-card-img-container {
  position: relative;
  aspect-ratio: 16/9; /* Set aspect ratio to 16:9 for a sleeker, smaller layout */
  overflow: hidden;
  background-color: var(--color-steel);
}

.product-card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.product-card:hover .product-card-img-container img {
  transform: scale(1.05);
}

.product-card-badge-pos {
  position: absolute;
  left: 16px;
  top: 16px;
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.product-card-game {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-electric);
}

.product-card-price {
  font-size: 1.125rem;
  font-weight: 900;
}

.product-card-title {
  font-size: 1.25rem;
  margin-top: 12px;
}

.product-card-desc {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 12px;
  line-height: 1.5;
  min-height: 64px;
}

.product-card-btn {
  margin-top: 20px;
  width: fit-content;
}

/* Why Us Section */
.why-us-section {
  padding: 56px 0;
}

.why-us-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  .why-us-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.why-us-cards {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .why-us-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-us-card {
  padding: 20px;
}

.why-us-card svg {
  color: var(--color-electric);
  width: 24px;
  height: 24px;
}

.why-us-card h3 {
  font-size: 1.125rem;
  margin-top: 16px;
}

.why-us-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  padding: 56px 0;
}

.faq-list {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .faq-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

details.glass-card {
  padding: 20px;
  cursor: pointer;
}

summary {
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

summary span::after {
  content: "+";
  color: var(--color-electric);
  font-weight: bold;
  font-size: 1.25rem;
  transition: transform 0.2s;
}

details[open] summary span::after {
  transform: rotate(45deg);
}

details p.answer {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Catalog Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.filter-btn {
  border-radius: var(--radius-full);
  border: 1px solid rgba(163, 94, 212, 0.2);
  background-color: rgba(21, 10, 33, 0.6);
  color: var(--color-muted);
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  border-color: rgba(163, 94, 212, 0.6);
  color: var(--color-silver);
}

.filter-btn.active {
  border-color: var(--color-electric);
  background-color: rgba(163, 94, 212, 0.2);
  color: var(--color-silver);
  box-shadow: 0 0 18px rgba(163, 94, 212, 0.24);
}

/* Product Detail Page Layout */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr; /* Side-by-side by default */
  gap: 40px;
  margin-top: 32px;
}

.product-detail-right-column {
  position: sticky;
  top: 100px; /* Lock checkout screen in place on scroll */
  align-self: start;
}

@media (max-width: 600px) {
  .product-detail-grid {
    grid-template-columns: 1fr; /* Stack ONLY on small mobile screens */
  }

  .product-detail-right-column {
    position: static;
  }
}

.product-gallery-main {
  position: relative;
  aspect-ratio: 16/10; /* Sleeker, wider layout so it takes up less vertical space */
  max-height: 400px;   /* Limit height on larger viewports */
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(163, 94, 212, 0.3);
  background-color: var(--color-steel);
  box-shadow: 0 4px 20px rgba(163, 94, 212, 0.15);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumbs {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(163, 94, 212, 0.2);
  background-color: var(--color-steel);
  cursor: pointer;
  padding: 0;
  transition: var(--transition-smooth);
}

.gallery-thumb.active {
  border-color: var(--color-electric);
  box-shadow: 0 0 12px rgba(163, 94, 212, 0.3);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-meta-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.product-title {
  font-size: 2.25rem;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .product-title {
    font-size: 3.5rem;
  }
}

.product-category-label {
  color: var(--color-electric);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-top: 16px;
}

.product-price-summary {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-muted);
  margin-top: 20px;
}

.product-price-summary span {
  font-size: 1.25rem;
  color: var(--color-silver);
}

.product-full-desc {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-muted);
}

.product-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.status-card {
  padding: 16px;
}

.status-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
}

.status-value {
  margin-top: 4px;
  font-weight: 700;
}

.status-value.running {
  color: #4ade80;
}

.status-value.detected {
  color: #f87171;
}

.status-value.updating {
  color: #fbbf24;
}

.access-header {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 640px) {
  .access-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.selected-price-box {
  border-radius: 8px;
  border: 1px solid rgba(163, 94, 212, 0.25);
  background-color: rgba(21, 10, 33, 0.6);
  padding: 12px 16px;
  text-align: left;
  min-width: 150px;
}

@media (min-width: 640px) {
  .selected-price-box {
    text-align: right;
  }
}

.selected-price-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
}

.selected-price-value {
  font-size: 1.5rem;
  font-weight: 900;
}

.plans-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.plan-card {
  width: 100%;
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(163, 94, 212, 0.2);
  background-color: rgba(21, 10, 33, 0.6);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  border-radius: 8px;
  color: var(--color-silver); /* Prevent browser-default black button text color */
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(163, 94, 212, 0.6);
  background-color: rgba(163, 94, 212, 0.1);
}

.plan-card.selected {
  border-color: var(--color-electric);
  background-color: rgba(163, 94, 212, 0.15);
  box-shadow: 0 0 28px rgba(163, 94, 212, 0.42);
}

.plan-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .plan-layout {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.plan-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.plan-duration {
  font-size: 1.125rem;
  font-weight: 900;
  color: #d8b4fe; /* Visual glow light purple for titles */
  transition: var(--transition-smooth);
}

.plan-card:hover .plan-duration {
  color: #f472b6; /* Vivid neon pink hover */
}

.plan-card.selected .plan-duration {
  color: #f472b6; /* Hot pink when selected */
  text-shadow: 0 0 8px rgba(244, 114, 182, 0.35);
}

.plan-badge {
  border-radius: var(--radius-full);
  border: 1px solid rgba(163, 94, 212, 0.35);
  background-color: rgba(163, 94, 212, 0.15);
  padding: 2px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.plan-sub {
  margin-top: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-electric);
}

.plan-desc {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.plan-price-col {
  text-align: left;
}

@media (min-width: 640px) {
  .plan-price-col {
    text-align: right;
  }
}

.plan-compare-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-muted);
  text-decoration: line-through;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: #4ade80; /* Visually appealing emerald green for prices */
  text-shadow: 0 0 6px rgba(74, 222, 128, 0.2);
  transition: var(--transition-smooth);
}

.plan-card.selected .plan-price {
  color: #34d399; /* Bright mint green on selected */
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

/* Checkout Form Card */
.checkout-card {
  margin-top: 24px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(163, 94, 212, 0.25);
  background-color: rgba(21, 10, 33, 0.55);
}

.checkout-fields {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .checkout-fields {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
}

.form-input {
  border-radius: 8px;
  border: 1px solid rgba(163, 94, 212, 0.2);
  background-color: rgba(8, 1, 15, 0.7);
  color: var(--color-silver);
  padding: 12px 16px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.form-input:focus {
  border-color: var(--color-electric);
  box-shadow: 0 0 16px rgba(163, 94, 212, 0.35);
}

.checkout-btn {
  margin-top: 16px;
  width: 100%;
}

@media (min-width: 640px) {
  .checkout-btn {
    width: auto;
  }
}

.checkout-disclaimer {
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
}

/* Product Features Grid */
.detail-info-grid {
  display: grid;
  gap: 24px;
  margin-top: 56px;
}

@media (min-width: 1024px) {
  .detail-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-card {
  padding: 24px;
}

.info-card h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.info-list-item {
  display: flex;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-muted);
}

.info-list-item svg {
  color: var(--color-electric);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 4px;
}

/* Embedded Showcase Video */
.video-showcase-container {
  margin-top: 56px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(163, 94, 212, 0.3);
  background-color: var(--color-steel);
  box-shadow: 0 4px 20px rgba(163, 94, 212, 0.15);
}

.video-wrapper iframe, .video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Related Guides */
.related-guides-container {
  margin-top: 64px;
}

/* Support Page Discord Card */
.support-wrapper {
  margin: 40px auto 0;
  max-width: 640px;
}

.support-card {
  padding: 32px;
  text-align: center;
}

.support-icon {
  margin: 0 auto 24px;
  display: flex;
  height: 64px;
  width: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(163, 94, 212, 0.35);
  background-color: rgba(163, 94, 212, 0.15);
  box-shadow: 0 0 20px rgba(163, 94, 212, 0.2);
}

.support-icon svg {
  color: var(--color-electric);
  width: 32px;
  height: 32px;
}

.support-card h2 {
  font-size: 1.85rem;
}

.support-card p.desc {
  margin: 12px auto 0;
  max-width: 448px;
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.support-discord-btn {
  margin-top: 28px;
  width: 100%;
}

@media (min-width: 640px) {
  .support-discord-btn {
    width: auto;
  }
}

/* Policies layouts */
.policy-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.policy-card {
  padding: 24px;
}

.policy-card h2 {
  font-size: 1.25rem;
}

.policy-card p {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* Footer layout */
footer {
  margin-top: 80px;
  border-top: 1px solid rgba(163, 94, 212, 0.25);
  background-color: rgba(8, 1, 15, 0.85);
  box-shadow: 0 -18px 42px rgba(104, 40, 144, 0.16);
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding: 40px 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
  }
}

.footer-desc {
  margin-top: 16px;
  max-width: 448px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.footer-column-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-electric);
}

.footer-links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
}

.footer-links a {
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--color-silver);
}

.footer-bottom-border {
  border-top: 1px solid rgba(163, 94, 212, 0.15);
  padding: 20px 0;
}

.footer-bottom-flex {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--color-muted);
}

@media (min-width: 640px) {
  .footer-bottom-flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Admin Styling */
.admin-login-wrapper {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
}

.admin-login-card h1 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 24px;
  text-shadow: 0 0 12px rgba(163, 94, 212, 0.4);
}

.admin-login-form {
  display: grid;
  gap: 16px;
}

.admin-login-btn {
  margin-top: 8px;
  width: 100%;
}

.error-message {
  border-radius: 6px;
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Admin Dashboard grid */
.dashboard-grid {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.dashboard-card {
  padding: 24px;
}

.dashboard-card h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-settings-form {
  display: grid;
  gap: 16px;
}

.dashboard-actions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Admin Product List Table/Cards */
.admin-products-list {
  display: grid;
  gap: 16px;
}

.admin-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  gap: 16px;
}

.admin-prod-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-prod-thumb {
  height: 48px;
  width: 48px;
  border-radius: 6px;
  object-fit: cover;
  background-color: var(--color-steel);
  border: 1px solid rgba(163, 94, 212, 0.3);
}

.admin-prod-details h3 {
  font-size: 1rem;
  font-weight: 700;
}

.admin-prod-details p {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.admin-prod-actions {
  display: flex;
  gap: 8px;
}

/* Forms */
.form-section-title {
  font-size: 1.125rem;
  border-bottom: 1px solid rgba(163, 94, 212, 0.2);
  padding-bottom: 8px;
  margin: 16px 0 12px;
}

.form-group-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-group-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-group-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.option-edit-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(163, 94, 212, 0.25);
  background-color: rgba(15, 6, 26, 0.65);
  margin-bottom: 20px;
  align-items: flex-end;
}

/* General Layout adjustments */
.margin-top-8 {
  margin-top: 32px;
}

.text-center {
  text-align: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive fixes */
@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }
  .mobile-nav-scroll {
    display: flex;
  }
}
