@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Rajdhani:wght@400;500;600;700&display=swap");

/* === Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: inherit;
}

/* === Theme Tokens === */
:root {
  --neon-blue: #00c6ff;
  --deep-blue: #007bff;
  --bg-0: #050505;
  --bg-1: #0c0c0c;
  --glass-surface: rgba(20, 20, 20, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text: #f2f7ff;
  --muted: #97a3b7;
  --danger: #ff4d4f;
  --success: #27d0a3;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  --glow: 0 0 30px rgba(0, 198, 255, 0.45);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: "Rajdhani", "Inter", sans-serif;
  --font-display: "Orbitron", "Inter", sans-serif;
  --btn-height-mobile: 56px;
  --btn-height-desktop: 48px;
  --space-internal: 1.5rem;
  --grid-gap: 1.5rem;
}

/* === Base Elements === */
html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(700px circle at 10% 10%, rgba(0, 198, 255, 0.12), transparent 60%),
    radial-gradient(600px circle at 90% 0%, rgba(0, 123, 255, 0.2), transparent 65%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  color: var(--text);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
}

h1,
h2 {
  background: linear-gradient(90deg, #00c6ff, #9d00ff, #00ff94);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

input {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

/* === Layout Helpers === */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* === Product Launch Overlay === */
#product-launch-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--transition), visibility 0.8s var(--transition);
}

#product-launch-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

#product-launch-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--transition), visibility 0.5s var(--transition);
}

.launch-content {
  width: min(1100px, 92%);
  display: grid;
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.launch-video {
  width: 100%;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.launch-cta {
  padding: 1rem 2.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  box-shadow: 0 0 40px rgba(0, 198, 255, 0.6);
  animation: pulse 2.2s infinite;
}

.launch-cta:hover,
.launch-cta:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 55px rgba(0, 198, 255, 0.8);
}

.launch-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.launch-close:hover,
.launch-close:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 30px rgba(0, 198, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 55px rgba(0, 198, 255, 0.85);
  }
  100% {
    box-shadow: 0 0 30px rgba(0, 198, 255, 0.5);
  }
}

/* === Glassmorphism Surface === */
.glass {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

/* === Header / Navigation === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}

/* === Desktop Nav Frame (Custom Outline) === */
.nav-desktop {
  position: relative;
  width: 520px;
  height: 60px;
  margin-inline: auto;
}

.nav-desktop-container {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 28, 0.7);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 0.9em;
  border-radius: 12px;
  color: #fff;
  --slider-left: 0px;
  --slider-width: 0px;
  --slider-fill: linear-gradient(90deg, #00c6ff, #9d00ff, #00ff94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.nav-desktop-container::after,
.nav-desktop-container::before {
  background: var(--slider-fill, linear-gradient(90deg, #00c6ff, #9d00ff, #00ff94));
}

.nav-btn.active {
  background: var(--slider-fill, linear-gradient(90deg, #00c6ff, #9d00ff, #00ff94));
  opacity: 0.3;
  border-radius: 6px;
  align-self: stretch;
  margin: 6px 0;
  display: flex;
  align-items: center;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.8),
    0 0 28px rgba(0, 198, 255, 0.6);
  z-index: 3;
}

/* Twin slider lines (top + bottom) */
.nav-desktop-container::before,
.nav-desktop-container::after {
  content: "";
  position: absolute;
  left: var(--slider-left);
  width: var(--slider-width);
  height: 2px;
  background: var(--slider-fill, linear-gradient(90deg, #00c6ff, #9d00ff, #00ff94));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  transition: left 0.18s var(--transition), width 0.18s var(--transition);
  z-index: 1;
}

.nav-desktop-container::before {
  top: 6px;
}

.nav-desktop-container::after {
  bottom: 6px;
}

.nav-btn {
  padding: 0.5em 1.1em;
  color: #fff;
  cursor: pointer;
  transition: 0.1s;
  border-radius: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  z-index: 3;
  text-shadow: 0 0 10px rgba(0, 198, 255, 0.55);
}

.nav-btn:hover {
  background: #fff3;
}


.logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 1.05rem;
  text-transform: uppercase;
  background: linear-gradient(90deg, #00c6ff, #9d00ff, #00ff94);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo img {
  height: 36px;
  width: 36px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 10px rgba(0, 198, 255, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

@media (min-width: 1025px) {
  .nav-links {
    display: none;
  }
}

.nav-links a {
  color: var(--muted);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-search {
  flex: 1;
  min-width: 180px;
}

/* Search input with neon focus ring */
.search-input {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: rgba(0, 198, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.18);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* User dropdown */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-toggle {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  padding: 0.6rem;
  border-radius: 12px;
  background: rgba(8, 8, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 0.35rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 40;
}

.user-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.user-dropdown a {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.user-dropdown .nav-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-blue);
}

.user-dropdown .nav-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.user-dropdown a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.user-menu:hover .user-dropdown,
.user-menu.open .user-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 30;
}

.user-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* === Dashboard === */
.dashboard-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.sidebar-nav {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  border-left: 4px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.nav-item.active {
  border-left-color: var(--neon-blue);
  background: rgba(0, 198, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.35);
}

.nav-item.logout {
  margin-top: 1rem;
  border-left-color: transparent;
}

.nav-item.logout:hover {
  background: rgba(255, 77, 79, 0.16);
  border-left-color: rgba(255, 77, 79, 0.6);
}

.dashboard-content {
  display: grid;
  gap: 2rem;
}

.dashboard-card {
  padding: 2.5rem;
  border-radius: 20px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

/* Profile hero */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.profile-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: transparent;
  background: url("assets/img/Profilbild.webp") center/cover no-repeat;
}

.profile-avatar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--neon-blue);
  box-shadow: 0 0 25px rgba(0, 198, 255, 0.45);
  animation: pulse-ring 2.4s ease-in-out infinite;
}

.member-tag {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 198, 255, 0.4);
  background: rgba(0, 198, 255, 0.12);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.profile-meta {
  display: grid;
  gap: 0.4rem;
}

.stats-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0.75rem;
}

.level-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.level-fill {
  height: 100%;
  width: 58%;
  background: linear-gradient(90deg, #00c6ff, #9d00ff, #00ff94);
}

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

.badge-card {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.settings-grid {
  display: grid;
  gap: 1.25rem;
}

.settings-card {
  padding: 2.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 1.25rem;
}

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

.settings-columns.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-columns.zip-city {
  grid-template-columns: 0.3fr 0.7fr;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.orders-table {
  display: grid;
  gap: 0.75rem;
}

.order-row {
  display: grid;
  grid-template-columns: 120px 1fr 1.2fr 120px 120px;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.order-row:hover {
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.25);
  transform: translateY(-2px);
}

.order-details {
  grid-column: 1 / -1;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  display: none;
}

.order-row.open .order-details {
  display: block;
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.cart-table {
  display: grid;
  gap: 1rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px 100px 40px;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-row img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.qty-stepper button {
  font-weight: 700;
}

.remove-btn {
  color: var(--muted);
}

.remove-btn:hover {
  color: #fff;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 0.6rem 0;
  color: var(--muted);
}

.summary-row.total {
  font-size: 1.1rem;
  color: #fff;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-grid input {
  position: absolute;
  opacity: 0;
}

.payment-card {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.payment-grid input:checked + .payment-card {
  border: 2px solid var(--neon-blue);
  box-shadow: 0 0 18px rgba(0, 198, 255, 0.35);
}

.checkout-summary {
  position: sticky;
  top: 100px;
}

.checkout-items {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.checkout-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 0.4rem;
}

.checkout-item span {
  color: var(--muted);
  font-size: 0.85rem;
}

.cart-empty {
  text-align: center;
  display: grid;
  gap: 1rem;
}

.cart-empty h2 {
  margin-bottom: 0.4rem;
}

.cart-empty .btn {
  margin-top: 0.5rem;
}

.checkout-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
}

.checkout-overlay.hidden {
  display: none;
}

.buy-now {
  animation: pulse 2.2s infinite;
}

@media (max-width: 1024px) {
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.order-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.status-badge {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  justify-content: center;
}

.status-processing {
  background: rgba(255, 195, 66, 0.2);
  color: #ffd28a;
  animation: pulse-processing 1.8s ease-in-out infinite;
}

.status-shipped {
  background: rgba(0, 198, 255, 0.2);
  color: #9adfff;
}

.status-delivered {
  background: rgba(39, 208, 163, 0.2);
  color: #8cf1d2;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  gap: 1.5rem;
}

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

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

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

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

@keyframes pulse-processing {
  0% {
    box-shadow: 0 0 0 rgba(255, 195, 66, 0.2);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 195, 66, 0.6);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 195, 66, 0.2);
  }
}

@media (max-width: 768px) {
  .launch-content {
    width: min(520px, 92%);
    gap: 1rem;
  }

  .launch-video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 14px;
  }
  .sidebar-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding: 1rem;
    gap: 0.5rem;
    white-space: nowrap;
  }

  .nav-item {
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .nav-item.active {
    border-bottom-color: var(--neon-blue);
    border-left-color: transparent;
  }
}

/* Legacy nav support for static pages */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.cart svg {
  width: 18px;
  height: 18px;
  fill: var(--text);
}

.cart-count {
  font-size: 0.8rem;
  font-weight: 600;
}

/* Gamified user bar */
.user-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.avatar {
  width: 34px;
  height: 34px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  background: url("assets/img/Profilbild.webp") center/cover no-repeat;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: transparent;
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.user-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.user-xp,
.user-balance {
  color: var(--muted);
  font-size: 0.75rem;
}

.cart-button {
  position: relative;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-button svg {
  width: 18px;
  height: 18px;
  fill: var(--text);
}

.cart-count {
  font-size: 0.8rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Content === */
.main-content {
  padding: 2.5rem 0 4rem;
}

.hero {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* Legacy hero layout */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  color: var(--muted);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .hero-sub {
  color: var(--muted);
  max-width: 640px;
  line-height: 1.6;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* === Video Hero === */
.hero-video-container {
  position: relative;
  min-height: 36vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.7) 0%,
    rgba(5, 5, 5, 0.9) 70%
  );
  z-index: 1;
}

.hero-video-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem 0;
}


.hero-glitch-text {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, #00c6ff, #9d00ff, #00ff94);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.btn-ghost {
  border: 1px solid rgba(0, 198, 255, 0.45);
  color: #e6f6ff;
  background: transparent;
  box-shadow: 0 0 14px rgba(0, 198, 255, 0.2);
}

.btn-ghost:hover {
  background: rgba(0, 198, 255, 0.12);
}

@media (max-width: 768px) {
  .hero-video-container {
    min-height: 30vh;
  }

  .hero-video-content {
    padding: 1.2rem 0;
  }
}

.hero-card {
  padding: 2.5rem;
  display: grid;
  gap: 1.1rem;
}

.hero-card h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-card ul {
  margin: 0;
  padding: 0 0 0 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-card .btn {
  margin-top: 0.4rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

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

.usp-card {
  padding: 2rem;
}

.usp-card h3 {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.usp-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* === Bento Grid === */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.bento-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: var(--space-internal);
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.bento-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform var(--transition);
}

.bento-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 15%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.bento-item > * {
  position: relative;
  z-index: 1;
}

.bento-item:hover::before {
  transform: scale(1.02);
}

.bento-item:hover {
  box-shadow: 0 0 14px rgba(0, 198, 255, 0.12);
}

.bento-item:hover::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 18%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.bento-large {
  grid-column: span 2;
}

.bento-small {
  grid-column: span 1;
}

@media (min-width: 1025px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-large,
  .bento-small {
    grid-column: span 1;
  }
}

.bento-optimizer::before {
  background-image: url("https://images.unsplash.com/photo-1555680202-c86f0e12f086?auto=format&fit=crop&w=800&q=80");
}

.bento-shop::before {
  background-image: url("https://images.unsplash.com/photo-1517336714731-489689fd1ca8?auto=format&fit=crop&w=800&q=80");
}

.bento-vision::before {
  background-image: url("https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=600&q=80");
}

.bento-community::before {
  background-image: url("https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=600&q=80");
}

.bento-content {
  display: grid;
  gap: 0.75rem;
  max-width: 80%;
  text-align: left;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.bento-title {
  grid-column: 1 / -1;
}

.bento-text {
  grid-column: 1 / 2;
}

.bento-content .btn {
  grid-column: 2 / 3;
  justify-self: end;
  align-self: end;
}

.bento-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #ffffff;
}

.bento-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bento-text {
  color: #ffffff;
  opacity: 0.85;
}

.teaser {
  padding: 2.5rem;
  text-align: center;
  display: grid;
  gap: 1.2rem;
  justify-items: center;
}

.teaser h2 {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

.teaser-image {
  width: min(520px, 90%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 198, 255, 0.2));
}

.reveal-one {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.reveal-one::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 198, 255, 0.1), rgba(157, 0, 255, 0.15));
  opacity: 0.8;
  pointer-events: none;
}

.reveal-content,
.reveal-visual {
  position: relative;
  z-index: 1;
}

.reveal-eyebrow {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  background: linear-gradient(120deg, #00c6ff, #9d00ff, #00ff94);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal-one h2 {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reveal-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.reveal-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  background: rgba(8, 8, 8, 0.6);
}

.reveal-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reveal-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.waitlist-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.waitlist-form input {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 12, 12, 0.8);
  color: #fff;
}

.waitlist-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.waitlist-btn {
  animation: pulseGlow 2.4s infinite;
}

.reveal-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(6, 6, 6, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}


.reveal-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 198, 255, 0.15) 0px,
    rgba(0, 198, 255, 0.15) 2px,
    transparent 2px,
    transparent 8px
  );
  mix-blend-mode: screen;
  opacity: 0.6;
  pointer-events: none;
}

.reveal-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: contrast(1.05) saturate(1.2);
}

.success-page {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem;
}

.success-card {
  max-width: 520px;
  width: 100%;
  padding: 3rem;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 255, 148, 0.15);
  border: 2px solid rgba(0, 255, 148, 0.5);
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 25px rgba(0, 255, 148, 0.4);
}

.success-icon svg {
  width: 36px;
  height: 36px;
  color: #00ff94;
}

.success-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

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

  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .reveal-visual {
    order: -1;
  }
}

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

.about-hero .hero-sub {
  max-width: 60ch;
  color: var(--muted);
}

.mission-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.mission-copy h2 {
  margin-bottom: 1rem;
}

.mission-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.mission-visual {
  min-height: 320px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 198, 255, 0.15), rgba(157, 0, 255, 0.2));
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.mission-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 198, 255, 0.15) 0px,
    rgba(0, 198, 255, 0.15) 2px,
    transparent 2px,
    transparent 10px
  );
  opacity: 0.7;
}

.mission-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.1) contrast(1.05);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pillar-card {
  padding: 2rem;
  text-align: left;
}

.pillar-card i {
  font-size: 2rem;
  color: var(--neon-blue);
  margin-bottom: 1rem;
}

.pillar-card h3 {
  margin-bottom: 0.6rem;
}

.pillar-card p {
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 198, 255, 0.6), rgba(0, 255, 148, 0.4));
}

.timeline-item {
  position: relative;
  padding-left: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.2rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 198, 255, 0.6);
}

.timeline-date {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.team-card {
  padding: 2rem;
}

.community-cta {
  text-align: center;
  padding: 3rem;
}

.community-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.community-links a {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.community-hero .hero-sub {
  max-width: 65ch;
  color: var(--muted);
}

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

.channel-card {
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
  height: 100%;
}

.channel-card h3 {
  margin-bottom: 0.6rem;
}

.channel-card p {
  color: var(--muted);
}

.channel-card .btn {
  width: fit-content;
}

.channel-discord:hover {
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.35);
  border-color: rgba(88, 101, 242, 0.45);
}

.channel-discord .btn:hover {
  background: #5865f2;
}

.channel-youtube:hover,
.channel-devlog:hover {
  box-shadow: 0 0 30px rgba(255, 64, 64, 0.35);
  border-color: rgba(255, 64, 64, 0.45);
}

.academy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.academy-card {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.academy-thumb {
  border-radius: 16px;
  min-height: 160px;
  background: linear-gradient(135deg, rgba(0, 198, 255, 0.2), rgba(157, 0, 255, 0.25));
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.6rem;
  text-shadow: 0 0 15px rgba(0, 198, 255, 0.5);
  pointer-events: none;
}

.play-icon::before {
  content: "";
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 18px rgba(0, 198, 255, 0.35);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.play-icon i {
  position: relative;
  z-index: 1;
}

.academy-card p {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.academy-beginner {
  background-image: url("assets/img/First.webp");
}

.academy-advanced {
  background-image: url("assets/img/Optimizing.webp");
}

.academy-visionary {
  background-image: url("assets/img/understanding.webp");
}

.showcase-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  padding: 2rem;
  align-items: center;
}

.showcase-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  height: 100%;
  min-height: 260px;
}

.showcase-content p {
  color: var(--muted);
}

.showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(0, 198, 255, 0.2);
  border: 1px solid rgba(0, 198, 255, 0.5);
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* === Shop Layout === */
.shop-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

/* === Optimizer === */
.optimizer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.optimizer-visual {
  padding: 1.5rem;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.optimizer-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 20px 40px rgba(0, 198, 255, 0.18));
}

.optimizer-form,
.optimizer-results {
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}

.field-group {
  display: grid;
  gap: 0.6rem;
}

.field-group label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
}

.field-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

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

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

.goal-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

.goal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.goal-input:checked + .goal-card {
  border-color: rgba(0, 198, 255, 0.7);
  box-shadow: 0 0 24px rgba(0, 198, 255, 0.35);
}

.goal-title {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.goal-games {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.optimizer-results.hidden {
  display: none;
}

.scan-status {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
}

.scan-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.scan-bar span {
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, #00c6ff, #9d00ff, #00ff94);
  animation: scan 1.1s infinite;
}

.diagnosis-card,
.upgrade-card {
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0.75rem;
}

.diagnosis-card.critical {
  border-color: rgba(255, 77, 79, 0.6);
  color: #ff9496;
}

.diagnosis-card.warning {
  border-color: rgba(255, 195, 66, 0.6);
  color: #ffd28a;
}

.diagnosis-card.ok {
  border-color: rgba(39, 208, 163, 0.6);
  color: #8cf1d2;
}

.upgrade-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
}

.upgrade-grid img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
}

.upgrade-meta {
  display: grid;
  gap: 0.4rem;
}

.upgrade-meta strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.upgrade-meta span {
  color: var(--muted);
  font-size: 0.85rem;
}

.upgrade-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filters {
  position: sticky;
  top: 96px;
  height: fit-content;
  padding: 1.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filters h2 {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.filter-group {
  display: grid;
  gap: 0.6rem;
}

.filter-group h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.filter-option input {
  accent-color: var(--neon-blue);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* === Product Card === */
.product-card {
  position: relative;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.85rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 198, 255, 0.35);
}

.product-image {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  height: 170px;
  display: grid;
  place-items: center;
  position: relative;
  background: transparent;
  border: 1px solid rgba(0, 198, 255, 0.18);
  box-shadow: 0 0 12px rgba(0, 198, 255, 0.18);
  padding: 6px;
  box-sizing: border-box;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.6rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 198, 255, 0.4);
  background: rgba(0, 198, 255, 0.18);
}

.badge-hot {
  border-color: rgba(255, 95, 109, 0.6);
  background: rgba(255, 95, 109, 0.18);
}

.badge-new {
  border-color: rgba(39, 208, 163, 0.6);
  background: rgba(39, 208, 163, 0.2);
}

.product-title {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

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

.chip {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  color: var(--muted);
  position: relative;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.price {
  font-weight: 700;
  font-size: 1.05rem;
}

.old-price {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
}

.scarcity {
  font-size: 0.8rem;
  color: var(--danger);
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.1rem;
  margin-top: auto;
  flex-wrap: wrap;
}


/* Shop card CTA sizing */

/* === Button Redesign === */
.btn,
.button {
  position: relative;
  width: auto;
  min-width: 120px;
  height: var(--btn-height-desktop);
  background-color: #000;
  display: flex;
  align-items: center;
  color: #ffffff;
  flex-direction: row;
  justify-content: center;
  border: none;
  padding: 12px;
  gap: 8px;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.btn svg,
.button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn::before,
.button::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 10px;
  background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
  z-index: -10;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn::after,
.button::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100%);
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
  transition: filter 0.3s ease;
}

.btn:hover::after,
.button:hover::after {
  filter: blur(30px);
}

.btn:hover::before,
.button:hover::before {
  transform: none;
}

.btn:active::before,
.button:active::before {
  scale: 0.7;
}

.btn:hover,
.button:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.wishlist-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  transition: transform var(--transition), border-color var(--transition);
}

.share-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 198, 255, 0.35);
  background: rgba(0, 198, 255, 0.08);
  display: grid;
  place-items: center;
  color: #00c6ff;
  transition: transform var(--transition), box-shadow var(--transition);
}

.share-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share-icon-btn:hover {
  box-shadow: 0 0 16px rgba(0, 198, 255, 0.45);
}


.wishlist-btn svg {
  width: 18px;
  height: 18px;
  fill: transparent;
  stroke: var(--muted);
  stroke-width: 1.8;
  transition: fill var(--transition), stroke var(--transition);
}

.wishlist-btn.active svg {
  fill: #ff4d7d;
  stroke: #ff4d7d;
}

.wishlist-btn.pop {
  animation: pop 0.4s ease;
}

/* === Skeleton Loading === */
.skeleton-card {
  padding: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: shimmer 1.2s infinite;
}

.skeleton-image {
  height: 170px;
}

.skeleton-line {
  height: 12px;
}

.skeleton-line.short {
  width: 55%;
}

.skeleton-line.medium {
  width: 80%;
}

/* === Toast Notifications === */
.toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 120;
}

.toast {
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toast-in 0.3s var(--transition);
}

.toast.success {
  border-color: rgba(39, 208, 163, 0.5);
}

.toast.error {
  border-color: rgba(255, 77, 79, 0.6);
}

/* === Cart Drawer === */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 90;
}

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

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(400px, 92vw);
  background: rgba(8, 8, 10, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.drawer-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

.cart-items {
  display: grid;
  gap: 1rem;
}

.cart-item {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

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

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item-price {
  color: var(--muted);
  font-size: 0.85rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.qty-controls button {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.drawer-summary {
  display: grid;
  gap: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

/* === Floating Label Fields === */
.checkout-form {
  display: grid;
  gap: 0.9rem;
}

.floating-field {
  position: relative;
}

.floating-field input {
  width: 100%;
  padding: 1rem 0.9rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.floating-field label {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  transition: all var(--transition);
  pointer-events: none;
}

.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label {
  top: 10px;
  font-size: 0.65rem;
  color: var(--neon-blue);
}

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 140;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  max-width: 80vw;
  max-height: 80vh;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
}

.lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
  transform-origin: center;
}

.lightbox.zooming .lightbox-image {
  transform: scale(1.6);
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-hint {
  position: absolute;
  bottom: 36px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* === Tooltip === */
.tooltip,
[data-tooltip] {
  position: relative;
}

.tooltip::after,
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 8px);
  background: rgba(10, 10, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 0.7rem;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
  z-index: 4;
}

.tooltip:hover::after,
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

mark.highlight {
  background: rgba(0, 198, 255, 0.25);
  color: var(--text);
  padding: 0 0.2rem;
  border-radius: 4px;
}

/* === Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 10px rgba(0, 198, 255, 0.35));
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #00c6ff, #9d00ff, #00ff94);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-brand .logo-text {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  line-height: 1;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-self: start;
  justify-content: flex-start;
}

.footer-copy {
  justify-self: end;
  white-space: nowrap;
}

.footer-motto {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
}

.footer-note {
  margin: 0;
  white-space: nowrap;
}

/* === Animations === */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes scan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(250%);
  }
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

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

@media (max-width: 1024px) {
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.5rem;
  }

  .nav-desktop {
    display: none;
  }

  .nav-search {
    order: 2;
    width: 100%;
  }

  .shop-section {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: auto;
    width: min(560px, 100%);
  }

  .hero-grid,
  .about-grid,
  .optimizer-grid {
    grid-template-columns: 1fr;
  }

  .mission-section {
    grid-template-columns: 1fr;
  }

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

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

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

  .showcase-card {
    grid-template-columns: 1fr;
  }

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

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

  .bento-large,
  .bento-small {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .hero {
    display: none;
  }
  .section {
    padding: 2.5rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 6vw, 2.6rem);
    letter-spacing: 0.04em;
  }

  .hero .hero-sub {
    margin-inline: auto;
    max-width: 34ch;
  }

  .cta-group {
    width: 100%;
    justify-content: center;
  }
  .nav {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    height: 56px;
    padding: 0.75rem 0;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-actions,
  .nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    height: 100%;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: calc(64px + env(safe-area-inset-top));
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.35), rgba(157, 0, 255, 0.35), rgba(0, 255, 148, 0.35));
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    z-index: 20;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 0 0 18px 18px;
    transform-origin: top;
    transform: translateY(-12px);
    opacity: 0;
    transition: transform 1s var(--transition), opacity 1s var(--transition);
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links.open {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.5rem 1.25rem 1.75rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(0);
    opacity: 1;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open a {
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    background: #000;
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #e6f6ff;
  }

  .nav-links.open a[href$="logout.html"] {
    font-size: 0.8rem;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.2);
    align-self: flex-start;
  }

  .nav-links .nav-icon {
    font-size: 0.85rem;
    width: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
  }

  .nav-links .nav-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
  }

  .nav-links.open .nav-dashboard {
    background: rgba(0, 198, 255, 0.18);
    border: 1px solid rgba(0, 198, 255, 0.35);
  }

  .user-bar .user-meta,
  .user-bar .user-balance {
    display: none;
  }

  .avatar {
    display: grid;
  }

  .nav-right .user-menu {
    display: flex;
  }

  .nav-links.open ~ .nav-right .user-menu {
    display: flex;
  }

  .nav-right {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .nav-right .user-menu {
    position: fixed;
  }

  .nav-right .cart-button,
  .nav-right .cart {
    margin-left: auto;
    align-self: center;
  }

  .nav-right .menu-toggle {
    align-self: center;
    margin-left: 0;
  }

  .nav-right .cart-button,
  .nav-right .cart,
  .nav-right .menu-toggle {
    display: inline-flex;
    align-items: center;
    height: 34px;
  }

  .nav-right .cart-button,
  .nav-right .cart {
    display: none;
  }

  .user-dropdown {
    right: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(320px, 86vw);
    border-radius: 16px;
  }

  .nav-right .cart-button {
    padding: 0.35rem 0.6rem;
  }

  .nav-right .menu-toggle {
    padding: 0.25rem 0;
  }

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

  .cart-layout {
    gap: 1.5rem;
  }

  .cart-row {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto auto;
    position: relative;
    align-items: start;
  }

  .cart-row img {
    width: 64px;
    height: 64px;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
  }

  .cart-row > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    font-weight: 600;
  }

  .cart-row .qty-stepper {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .cart-row > div:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
    font-weight: 600;
  }

  .cart-row .remove-btn {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
  }

  .checkout-summary {
    position: static;
  }

  .product-card {
    padding: 1.4rem;
    gap: 0.85rem;
  }

  .product-image {
    height: 170px;
    border-radius: 14px;
    background: transparent;
    border: none;
    backdrop-filter: none;
  }

  .product-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 0;
    margin: auto;
  }

  .badge-row {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

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

  .btn {
    width: 100%;
    height: var(--btn-height-mobile);
    margin-inline: auto;
  }

  .product-actions .btn {
    width: auto;
    min-width: 130px;
    height: 40px;
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .site-footer {
    padding: 2rem 0 2.5rem;
  }

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

  .footer-links {
    justify-content: center;
    justify-self: center;
    order: 2;
  }

  .footer-copy {
    justify-self: center;
    order: 3;
  }

  .footer-brand {
    order: 1;
  }
}

/* Back to portfolio */
.back-to-portfolio {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.75);
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
}

.back-to-portfolio svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.back-to-portfolio:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 640px) {
  .back-to-portfolio {
    top: 12px;
    left: 12px;
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}
